1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for GNU Libmicrohttpd 0.9.74.
4#
5# Report bugs to <libmicrohttpd@gnu.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
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  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186test \$(( 1 + 1 )) = 2 || exit 1
187
188  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192    PATH=/empty FPATH=/empty; export PATH FPATH
193    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
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'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279$0: libmicrohttpd@gnu.org about your system, including any
280$0: error possibly output before this message. Then install
281$0: a modern shell, or manually run the script under such a
282$0: shell if you do have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306
307# as_fn_set_status STATUS
308# -----------------------
309# Set $? to STATUS, without forking.
310as_fn_set_status ()
311{
312  return $1
313} # as_fn_set_status
314
315# as_fn_exit STATUS
316# -----------------
317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318as_fn_exit ()
319{
320  set +e
321  as_fn_set_status $1
322  exit $1
323} # as_fn_exit
324# as_fn_nop
325# ---------
326# Do nothing but, unlike ":", preserve the value of $?.
327as_fn_nop ()
328{
329  return $?
330}
331as_nop=as_fn_nop
332
333# as_fn_mkdir_p
334# -------------
335# Create "$as_dir" as a directory, including parents if necessary.
336as_fn_mkdir_p ()
337{
338
339  case $as_dir in #(
340  -*) as_dir=./$as_dir;;
341  esac
342  test -d "$as_dir" || eval $as_mkdir_p || {
343    as_dirs=
344    while :; do
345      case $as_dir in #(
346      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347      *) as_qdir=$as_dir;;
348      esac
349      as_dirs="'$as_qdir' $as_dirs"
350      as_dir=`$as_dirname -- "$as_dir" ||
351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352	 X"$as_dir" : 'X\(//\)[^/]' \| \
353	 X"$as_dir" : 'X\(//\)$' \| \
354	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355printf "%s\n" X"$as_dir" |
356    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357	    s//\1/
358	    q
359	  }
360	  /^X\(\/\/\)[^/].*/{
361	    s//\1/
362	    q
363	  }
364	  /^X\(\/\/\)$/{
365	    s//\1/
366	    q
367	  }
368	  /^X\(\/\).*/{
369	    s//\1/
370	    q
371	  }
372	  s/.*/./; q'`
373      test -d "$as_dir" && break
374    done
375    test -z "$as_dirs" || eval "mkdir $as_dirs"
376  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379} # as_fn_mkdir_p
380
381# as_fn_executable_p FILE
382# -----------------------
383# Test if FILE is an executable regular file.
384as_fn_executable_p ()
385{
386  test -f "$1" && test -x "$1"
387} # as_fn_executable_p
388# as_fn_append VAR VALUE
389# ----------------------
390# Append the text in VALUE to the end of the definition contained in VAR. Take
391# advantage of any shell optimizations that allow amortized linear growth over
392# repeated appends, instead of the typical quadratic growth present in naive
393# implementations.
394if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395then :
396  eval 'as_fn_append ()
397  {
398    eval $1+=\$2
399  }'
400else $as_nop
401  as_fn_append ()
402  {
403    eval $1=\$$1\$2
404  }
405fi # as_fn_append
406
407# as_fn_arith ARG...
408# ------------------
409# Perform arithmetic evaluation on the ARGs, and store the result in the
410# global $as_val. Take advantage of shells that can avoid forks. The arguments
411# must be portable across $(()) and expr.
412if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413then :
414  eval 'as_fn_arith ()
415  {
416    as_val=$(( $* ))
417  }'
418else $as_nop
419  as_fn_arith ()
420  {
421    as_val=`expr "$@" || test $? -eq 1`
422  }
423fi # as_fn_arith
424
425# as_fn_nop
426# ---------
427# Do nothing but, unlike ":", preserve the value of $?.
428as_fn_nop ()
429{
430  return $?
431}
432as_nop=as_fn_nop
433
434# as_fn_error STATUS ERROR [LINENO LOG_FD]
435# ----------------------------------------
436# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438# script with STATUS, using 1 if that was 0.
439as_fn_error ()
440{
441  as_status=$1; test $as_status -eq 0 && as_status=1
442  if test "$4"; then
443    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445  fi
446  printf "%s\n" "$as_me: error: $2" >&2
447  as_fn_exit $as_status
448} # as_fn_error
449
450if expr a : '\(a\)' >/dev/null 2>&1 &&
451   test "X`expr 00001 : '.*\(...\)'`" = X001; then
452  as_expr=expr
453else
454  as_expr=false
455fi
456
457if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458  as_basename=basename
459else
460  as_basename=false
461fi
462
463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464  as_dirname=dirname
465else
466  as_dirname=false
467fi
468
469as_me=`$as_basename -- "$0" ||
470$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471	 X"$0" : 'X\(//\)$' \| \
472	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473printf "%s\n" X/"$0" |
474    sed '/^.*\/\([^/][^/]*\)\/*$/{
475	    s//\1/
476	    q
477	  }
478	  /^X\/\(\/\/\)$/{
479	    s//\1/
480	    q
481	  }
482	  /^X\/\(\/\).*/{
483	    s//\1/
484	    q
485	  }
486	  s/.*/./; q'`
487
488# Avoid depending upon Character Ranges.
489as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492as_cr_digits='0123456789'
493as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496  as_lineno_1=$LINENO as_lineno_1a=$LINENO
497  as_lineno_2=$LINENO as_lineno_2a=$LINENO
498  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
501  sed -n '
502    p
503    /[$]LINENO/=
504  ' <$as_myself |
505    sed '
506      s/[$]LINENO.*/&-/
507      t lineno
508      b
509      :lineno
510      N
511      :loop
512      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513      t loop
514      s/-\n.*//
515    ' >$as_me.lineno &&
516  chmod +x "$as_me.lineno" ||
517    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520  # already done that, so ensure we don't try to do so again and fall
521  # in an infinite loop.  This has already happened in practice.
522  _as_can_reexec=no; export _as_can_reexec
523  # Don't try to exec as it changes $[0], causing all sort of problems
524  # (the dirname of $[0] is not the place where we might find the
525  # original and so on.  Autoconf is especially sensitive to this).
526  . "./$as_me.lineno"
527  # Exit status is that of the last command.
528  exit
529}
530
531
532# Determine whether it's possible to make 'echo' print without a newline.
533# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534# for compatibility with existing Makefiles.
535ECHO_C= ECHO_N= ECHO_T=
536case `echo -n x` in #(((((
537-n*)
538  case `echo 'xy\c'` in
539  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
540  xy)  ECHO_C='\c';;
541  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
542       ECHO_T='	';;
543  esac;;
544*)
545  ECHO_N='-n';;
546esac
547
548# For backward compatibility with old third-party macros, we provide
549# the shell variables $as_echo and $as_echo_n.  New code should use
550# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551as_echo='printf %s\n'
552as_echo_n='printf %s'
553
554
555rm -f conf$$ conf$$.exe conf$$.file
556if test -d conf$$.dir; then
557  rm -f conf$$.dir/conf$$.file
558else
559  rm -f conf$$.dir
560  mkdir conf$$.dir 2>/dev/null
561fi
562if (echo >conf$$.file) 2>/dev/null; then
563  if ln -s conf$$.file conf$$ 2>/dev/null; then
564    as_ln_s='ln -s'
565    # ... but there are two gotchas:
566    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568    # In both cases, we have to default to `cp -pR'.
569    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570      as_ln_s='cp -pR'
571  elif ln conf$$.file conf$$ 2>/dev/null; then
572    as_ln_s=ln
573  else
574    as_ln_s='cp -pR'
575  fi
576else
577  as_ln_s='cp -pR'
578fi
579rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580rmdir conf$$.dir 2>/dev/null
581
582if mkdir -p . 2>/dev/null; then
583  as_mkdir_p='mkdir -p "$as_dir"'
584else
585  test -d ./-p && rmdir ./-p
586  as_mkdir_p=false
587fi
588
589as_test_x='test -x'
590as_executable_p=as_fn_executable_p
591
592# Sed expression to map a string onto a valid CPP name.
593as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595# Sed expression to map a string onto a valid variable name.
596as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601test -n "$DJDIR" || exec 7<&0 </dev/null
602exec 6>&1
603
604# Name of the host.
605# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606# so uname gets run too.
607ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609#
610# Initializations.
611#
612ac_default_prefix=/usr/local
613ac_clean_files=
614ac_config_libobj_dir=.
615LIBOBJS=
616cross_compiling=no
617subdirs=
618MFLAGS=
619MAKEFLAGS=
620
621# Identity of this package.
622PACKAGE_NAME='GNU Libmicrohttpd'
623PACKAGE_TARNAME='libmicrohttpd'
624PACKAGE_VERSION='0.9.74'
625PACKAGE_STRING='GNU Libmicrohttpd 0.9.74'
626PACKAGE_BUGREPORT='libmicrohttpd@gnu.org'
627PACKAGE_URL='https://www.gnu.org/software/libmicrohttpd/'
628
629# Factoring default headers for most tests.
630ac_includes_default="\
631#include <stddef.h>
632#ifdef HAVE_STDIO_H
633# include <stdio.h>
634#endif
635#ifdef HAVE_STDLIB_H
636# include <stdlib.h>
637#endif
638#ifdef HAVE_STRING_H
639# include <string.h>
640#endif
641#ifdef HAVE_INTTYPES_H
642# include <inttypes.h>
643#endif
644#ifdef HAVE_STDINT_H
645# include <stdint.h>
646#endif
647#ifdef HAVE_STRINGS_H
648# include <strings.h>
649#endif
650#ifdef HAVE_SYS_TYPES_H
651# include <sys/types.h>
652#endif
653#ifdef HAVE_SYS_STAT_H
654# include <sys/stat.h>
655#endif
656#ifdef HAVE_UNISTD_H
657# include <unistd.h>
658#endif"
659
660ac_header_c_list=
661gt_needs=
662ac_func_c_list=
663ac_subst_vars='am__EXEEXT_FALSE
664am__EXEEXT_TRUE
665LTLIBOBJS
666LIBOBJS
667HAVE_EXPERIMENTAL_FALSE
668HAVE_EXPERIMENTAL_TRUE
669MHD_PLUGIN_INSTALL_PREFIX
670EMPTY_VAR
671ac_configure_args
672MHD_LIBDEPS_PKGCFG
673MHD_REQ_PRIVATE
674MHD_TLS_LIBDEPS
675MHD_TLS_LIB_LDFLAGS
676MHD_TLS_LIB_CFLAGS
677MHD_TLS_LIB_CPPFLAGS
678MHD_LIBDEPS
679MHD_LIB_LDFLAGS
680MHD_LIB_CFLAGS
681MHD_LIB_CPPFLAGS
682HEAVY_TESTS_NOTPARALLEL
683CPU_COUNT
684AM_TESTS_ENVIRONMENT
685AM_LSAN_OPTIONS
686AM_UBSAN_OPTIONS
687AM_ASAN_OPTIONS
688USE_SANITIZERS_FALSE
689USE_SANITIZERS_TRUE
690USE_COVERAGE_FALSE
691USE_COVERAGE_TRUE
692HAVE_FORK_WAITPID_FALSE
693HAVE_FORK_WAITPID_TRUE
694ENABLE_UPGRADE_FALSE
695ENABLE_UPGRADE_TRUE
696ENABLE_DAUTH_FALSE
697ENABLE_DAUTH_TRUE
698ENABLE_BAUTH_FALSE
699ENABLE_BAUTH_TRUE
700USE_UPGRADE_TLS_TESTS_FALSE
701USE_UPGRADE_TLS_TESTS_TRUE
702HAVE_GNUTLS_MTHREAD_BROKEN_FALSE
703HAVE_GNUTLS_MTHREAD_BROKEN_TRUE
704GNUTLS_LDFLAGS
705GNUTLS_CPPFLAGS
706HTTPS_REQUIRE_GCRYPT_FALSE
707HTTPS_REQUIRE_GCRYPT_TRUE
708ENABLE_HTTPS_FALSE
709ENABLE_HTTPS_TRUE
710HAVE_GNUTLS_SNI_FALSE
711HAVE_GNUTLS_SNI_TRUE
712HAVE_GNUTLS_FALSE
713HAVE_GNUTLS_TRUE
714LIBGCRYPT_LIBS
715LIBGCRYPT_CFLAGS
716LIBGCRYPT_CONFIG
717GNUTLS_LIBS
718GNUTLS_CFLAGS
719PKG_CONFIG_LIBDIR
720PKG_CONFIG_PATH
721PKG_CONFIG
722HAVE_SOCAT_FALSE
723HAVE_SOCAT_TRUE
724HAVE_ZZUF_FALSE
725HAVE_ZZUF_TRUE
726have_socat
727have_zzuf
728HAVE_POSTPROCESSOR_FALSE
729HAVE_POSTPROCESSOR_TRUE
730MHD_HAVE_LIBMAGIC_FALSE
731MHD_HAVE_LIBMAGIC_TRUE
732HAVE_CURL_FALSE
733HAVE_CURL_TRUE
734LIBCURL
735LIBCURL_CPPFLAGS
736_libcurl_config
737HIDDEN_VISIBILITY_CFLAGS
738HAVE_ZLIB_FALSE
739HAVE_ZLIB_TRUE
740MHD_HAVE_TLS_PLUGIN_FALSE
741MHD_HAVE_TLS_PLUGIN_TRUE
742MHD_HAVE_EPOLL_FALSE
743MHD_HAVE_EPOLL_TRUE
744HEAVY_TESTS_FALSE
745HEAVY_TESTS_TRUE
746BUILD_EXAMPLES_FALSE
747BUILD_EXAMPLES_TRUE
748BUILD_DOC_FALSE
749BUILD_DOC_TRUE
750W32_STATIC_LIB_FALSE
751W32_STATIC_LIB_TRUE
752HAVE_MAKEINFO_BINARY_FALSE
753HAVE_MAKEINFO_BINARY_TRUE
754HAVE_MAKEINFO_BINARY
755HAVE_CURL_BINARY_FALSE
756HAVE_CURL_BINARY_TRUE
757HAVE_CURL_BINARY
758HAVE_LISTEN_SHUTDOWN_FALSE
759HAVE_LISTEN_SHUTDOWN_TRUE
760USE_EXPORT_FILE_FALSE
761USE_EXPORT_FILE_TRUE
762USE_MS_LIB_TOOL_FALSE
763USE_MS_LIB_TOOL_TRUE
764W32_SHARED_LIB_EXP_FALSE
765W32_SHARED_LIB_EXP_TRUE
766HAVE_W32_FALSE
767HAVE_W32_TRUE
768DISABLE_THREADS_FALSE
769DISABLE_THREADS_TRUE
770USE_THREADS_FALSE
771USE_THREADS_TRUE
772USE_W32_THREADS_FALSE
773USE_W32_THREADS_TRUE
774USE_POSIX_THREADS_FALSE
775USE_POSIX_THREADS_TRUE
776HAVE_POSIX_THREADS_FALSE
777HAVE_POSIX_THREADS_TRUE
778PTHREAD_CFLAGS
779PTHREAD_LIBS
780PTHREAD_CXX
781PTHREAD_CC
782ax_pthread_config
783W32CRT
784CYGWIN_TARGET_FALSE
785CYGWIN_TARGET_TRUE
786lt_cv_objdir
787MS_LIB_TOOL
788MHD_W32_DLL_SUFF
789PACKAGE_VERSION_SUBMINOR
790PACKAGE_VERSION_MINOR
791PACKAGE_VERSION_MAJOR
792HAVE_PO_FALSE
793HAVE_PO_TRUE
794POSUB
795LTLIBINTL
796LIBINTL
797INTLLIBS
798LTLIBICONV
799LIBICONV
800INTL_MACOSX_LIBS
801XGETTEXT_EXTRA_OPTIONS
802MSGMERGE_FOR_MSGFMT_OPTION
803MSGMERGE
804XGETTEXT_015
805XGETTEXT
806GMSGFMT_015
807GMSGFMT
808MSGFMT
809GETTEXT_MACRO_VERSION
810USE_NLS
811MHD_HAVE_TSEARCH_FALSE
812MHD_HAVE_TSEARCH_TRUE
813REPLACE_TSEARCH
814HAVE_TWALK
815HAVE_TSEARCH
816GNULIB_MDA_LSEARCH
817GNULIB_MDA_LFIND
818GNULIB_TSEARCH
819RC
820LT_SYS_LIBRARY_PATH
821OTOOL64
822OTOOL
823LIPO
824NMEDIT
825DSYMUTIL
826MANIFEST_TOOL
827RANLIB
828ac_ct_AR
829AR
830NM
831ac_ct_DUMPBIN
832DUMPBIN
833LD
834EGREP
835SED
836LIBTOOL
837OBJDUMP
838DLLTOOL
839AS
840CPP
841am__fastdepCC_FALSE
842am__fastdepCC_TRUE
843CCDEPMODE
844am__nodep
845AMDEPBACKSLASH
846AMDEP_FALSE
847AMDEP_TRUE
848am__include
849DEPDIR
850OBJEXT
851EXEEXT
852ac_ct_CC
853CPPFLAGS
854LDFLAGS
855CFLAGS
856CC
857host_os
858host_vendor
859host_cpu
860host
861build_os
862build_vendor
863build_cpu
864build
865LN_S
866FGREP
867GREP
868LIB_VERSION_AGE
869LIB_VERSION_REVISION
870LIB_VERSION_CURRENT
871AM_BACKSLASH
872AM_DEFAULT_VERBOSITY
873AM_DEFAULT_V
874AM_V
875CSCOPE
876ETAGS
877CTAGS
878am__untar
879am__tar
880AMTAR
881am__leading_dot
882SET_MAKE
883AWK
884mkdir_p
885MKDIR_P
886INSTALL_STRIP_PROGRAM
887STRIP
888install_sh
889MAKEINFO
890AUTOHEADER
891AUTOMAKE
892AUTOCONF
893ACLOCAL
894VERSION
895PACKAGE
896CYGPATH_W
897am__isrc
898INSTALL_DATA
899INSTALL_SCRIPT
900INSTALL_PROGRAM
901target_alias
902host_alias
903build_alias
904LIBS
905ECHO_T
906ECHO_N
907ECHO_C
908DEFS
909mandir
910localedir
911libdir
912psdir
913pdfdir
914dvidir
915htmldir
916infodir
917docdir
918oldincludedir
919includedir
920runstatedir
921localstatedir
922sharedstatedir
923sysconfdir
924datadir
925datarootdir
926libexecdir
927sbindir
928bindir
929program_transform_name
930prefix
931exec_prefix
932PACKAGE_URL
933PACKAGE_BUGREPORT
934PACKAGE_STRING
935PACKAGE_VERSION
936PACKAGE_TARNAME
937PACKAGE_NAME
938PATH_SEPARATOR
939SHELL
940am__quote'
941ac_subst_files=''
942ac_user_opts='
943enable_option_checking
944enable_silent_rules
945enable_dependency_tracking
946enable_shared
947enable_static
948with_pic
949enable_fast_install
950with_aix_soname
951with_gnu_ld
952with_sysroot
953enable_libtool_lock
954enable_nls
955enable_rpath
956with_libiconv_prefix
957with_libintl_prefix
958enable_gcc_hardening
959enable_linker_hardening
960with_threads
961enable_thread_names
962enable_doc
963enable_examples
964enable_heavy_tests
965enable_poll
966enable_epoll
967enable_itc
968enable_curl
969with_libcurl
970enable_largefile
971enable_sendfile
972enable_messages
973enable_postprocessor
974enable_https
975with_gnutls
976with_libgcrypt_prefix
977enable_bauth
978enable_dauth
979enable_httpupgrade
980enable_coverage
981enable_asserts
982enable_sanitizers
983enable_experimental
984'
985      ac_precious_vars='build_alias
986host_alias
987target_alias
988CC
989CFLAGS
990LDFLAGS
991LIBS
992CPPFLAGS
993CPP
994LT_SYS_LIBRARY_PATH
995PKG_CONFIG
996PKG_CONFIG_PATH
997PKG_CONFIG_LIBDIR
998GNUTLS_CFLAGS
999GNUTLS_LIBS'
1000
1001
1002# Initialize some variables set by options.
1003ac_init_help=
1004ac_init_version=false
1005ac_unrecognized_opts=
1006ac_unrecognized_sep=
1007# The variables have the same names as the options, with
1008# dashes changed to underlines.
1009cache_file=/dev/null
1010exec_prefix=NONE
1011no_create=
1012no_recursion=
1013prefix=NONE
1014program_prefix=NONE
1015program_suffix=NONE
1016program_transform_name=s,x,x,
1017silent=
1018site=
1019srcdir=
1020verbose=
1021x_includes=NONE
1022x_libraries=NONE
1023
1024# Installation directory options.
1025# These are left unexpanded so users can "make install exec_prefix=/foo"
1026# and all the variables that are supposed to be based on exec_prefix
1027# by default will actually change.
1028# Use braces instead of parens because sh, perl, etc. also accept them.
1029# (The list follows the same order as the GNU Coding Standards.)
1030bindir='${exec_prefix}/bin'
1031sbindir='${exec_prefix}/sbin'
1032libexecdir='${exec_prefix}/libexec'
1033datarootdir='${prefix}/share'
1034datadir='${datarootdir}'
1035sysconfdir='${prefix}/etc'
1036sharedstatedir='${prefix}/com'
1037localstatedir='${prefix}/var'
1038runstatedir='${localstatedir}/run'
1039includedir='${prefix}/include'
1040oldincludedir='/usr/include'
1041docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1042infodir='${datarootdir}/info'
1043htmldir='${docdir}'
1044dvidir='${docdir}'
1045pdfdir='${docdir}'
1046psdir='${docdir}'
1047libdir='${exec_prefix}/lib'
1048localedir='${datarootdir}/locale'
1049mandir='${datarootdir}/man'
1050
1051ac_prev=
1052ac_dashdash=
1053for ac_option
1054do
1055  # If the previous option needs an argument, assign it.
1056  if test -n "$ac_prev"; then
1057    eval $ac_prev=\$ac_option
1058    ac_prev=
1059    continue
1060  fi
1061
1062  case $ac_option in
1063  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1064  *=)   ac_optarg= ;;
1065  *)    ac_optarg=yes ;;
1066  esac
1067
1068  case $ac_dashdash$ac_option in
1069  --)
1070    ac_dashdash=yes ;;
1071
1072  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1073    ac_prev=bindir ;;
1074  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1075    bindir=$ac_optarg ;;
1076
1077  -build | --build | --buil | --bui | --bu)
1078    ac_prev=build_alias ;;
1079  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1080    build_alias=$ac_optarg ;;
1081
1082  -cache-file | --cache-file | --cache-fil | --cache-fi \
1083  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1084    ac_prev=cache_file ;;
1085  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1086  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1087    cache_file=$ac_optarg ;;
1088
1089  --config-cache | -C)
1090    cache_file=config.cache ;;
1091
1092  -datadir | --datadir | --datadi | --datad)
1093    ac_prev=datadir ;;
1094  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1095    datadir=$ac_optarg ;;
1096
1097  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1098  | --dataroo | --dataro | --datar)
1099    ac_prev=datarootdir ;;
1100  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1101  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1102    datarootdir=$ac_optarg ;;
1103
1104  -disable-* | --disable-*)
1105    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1106    # Reject names that are not valid shell variable names.
1107    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1109    ac_useropt_orig=$ac_useropt
1110    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1111    case $ac_user_opts in
1112      *"
1113"enable_$ac_useropt"
1114"*) ;;
1115      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1116	 ac_unrecognized_sep=', ';;
1117    esac
1118    eval enable_$ac_useropt=no ;;
1119
1120  -docdir | --docdir | --docdi | --doc | --do)
1121    ac_prev=docdir ;;
1122  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1123    docdir=$ac_optarg ;;
1124
1125  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1126    ac_prev=dvidir ;;
1127  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1128    dvidir=$ac_optarg ;;
1129
1130  -enable-* | --enable-*)
1131    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1132    # Reject names that are not valid shell variable names.
1133    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1135    ac_useropt_orig=$ac_useropt
1136    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1137    case $ac_user_opts in
1138      *"
1139"enable_$ac_useropt"
1140"*) ;;
1141      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1142	 ac_unrecognized_sep=', ';;
1143    esac
1144    eval enable_$ac_useropt=\$ac_optarg ;;
1145
1146  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1147  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1148  | --exec | --exe | --ex)
1149    ac_prev=exec_prefix ;;
1150  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1151  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1152  | --exec=* | --exe=* | --ex=*)
1153    exec_prefix=$ac_optarg ;;
1154
1155  -gas | --gas | --ga | --g)
1156    # Obsolete; use --with-gas.
1157    with_gas=yes ;;
1158
1159  -help | --help | --hel | --he | -h)
1160    ac_init_help=long ;;
1161  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1162    ac_init_help=recursive ;;
1163  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1164    ac_init_help=short ;;
1165
1166  -host | --host | --hos | --ho)
1167    ac_prev=host_alias ;;
1168  -host=* | --host=* | --hos=* | --ho=*)
1169    host_alias=$ac_optarg ;;
1170
1171  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1172    ac_prev=htmldir ;;
1173  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1174  | --ht=*)
1175    htmldir=$ac_optarg ;;
1176
1177  -includedir | --includedir | --includedi | --included | --include \
1178  | --includ | --inclu | --incl | --inc)
1179    ac_prev=includedir ;;
1180  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1181  | --includ=* | --inclu=* | --incl=* | --inc=*)
1182    includedir=$ac_optarg ;;
1183
1184  -infodir | --infodir | --infodi | --infod | --info | --inf)
1185    ac_prev=infodir ;;
1186  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1187    infodir=$ac_optarg ;;
1188
1189  -libdir | --libdir | --libdi | --libd)
1190    ac_prev=libdir ;;
1191  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1192    libdir=$ac_optarg ;;
1193
1194  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1195  | --libexe | --libex | --libe)
1196    ac_prev=libexecdir ;;
1197  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1198  | --libexe=* | --libex=* | --libe=*)
1199    libexecdir=$ac_optarg ;;
1200
1201  -localedir | --localedir | --localedi | --localed | --locale)
1202    ac_prev=localedir ;;
1203  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1204    localedir=$ac_optarg ;;
1205
1206  -localstatedir | --localstatedir | --localstatedi | --localstated \
1207  | --localstate | --localstat | --localsta | --localst | --locals)
1208    ac_prev=localstatedir ;;
1209  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1210  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1211    localstatedir=$ac_optarg ;;
1212
1213  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1214    ac_prev=mandir ;;
1215  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1216    mandir=$ac_optarg ;;
1217
1218  -nfp | --nfp | --nf)
1219    # Obsolete; use --without-fp.
1220    with_fp=no ;;
1221
1222  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1223  | --no-cr | --no-c | -n)
1224    no_create=yes ;;
1225
1226  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1227  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1228    no_recursion=yes ;;
1229
1230  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1231  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1232  | --oldin | --oldi | --old | --ol | --o)
1233    ac_prev=oldincludedir ;;
1234  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1235  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1236  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1237    oldincludedir=$ac_optarg ;;
1238
1239  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1240    ac_prev=prefix ;;
1241  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1242    prefix=$ac_optarg ;;
1243
1244  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1245  | --program-pre | --program-pr | --program-p)
1246    ac_prev=program_prefix ;;
1247  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1248  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1249    program_prefix=$ac_optarg ;;
1250
1251  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1252  | --program-suf | --program-su | --program-s)
1253    ac_prev=program_suffix ;;
1254  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1255  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1256    program_suffix=$ac_optarg ;;
1257
1258  -program-transform-name | --program-transform-name \
1259  | --program-transform-nam | --program-transform-na \
1260  | --program-transform-n | --program-transform- \
1261  | --program-transform | --program-transfor \
1262  | --program-transfo | --program-transf \
1263  | --program-trans | --program-tran \
1264  | --progr-tra | --program-tr | --program-t)
1265    ac_prev=program_transform_name ;;
1266  -program-transform-name=* | --program-transform-name=* \
1267  | --program-transform-nam=* | --program-transform-na=* \
1268  | --program-transform-n=* | --program-transform-=* \
1269  | --program-transform=* | --program-transfor=* \
1270  | --program-transfo=* | --program-transf=* \
1271  | --program-trans=* | --program-tran=* \
1272  | --progr-tra=* | --program-tr=* | --program-t=*)
1273    program_transform_name=$ac_optarg ;;
1274
1275  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1276    ac_prev=pdfdir ;;
1277  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1278    pdfdir=$ac_optarg ;;
1279
1280  -psdir | --psdir | --psdi | --psd | --ps)
1281    ac_prev=psdir ;;
1282  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1283    psdir=$ac_optarg ;;
1284
1285  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1286  | -silent | --silent | --silen | --sile | --sil)
1287    silent=yes ;;
1288
1289  -runstatedir | --runstatedir | --runstatedi | --runstated \
1290  | --runstate | --runstat | --runsta | --runst | --runs \
1291  | --run | --ru | --r)
1292    ac_prev=runstatedir ;;
1293  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1294  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1295  | --run=* | --ru=* | --r=*)
1296    runstatedir=$ac_optarg ;;
1297
1298  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1299    ac_prev=sbindir ;;
1300  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1301  | --sbi=* | --sb=*)
1302    sbindir=$ac_optarg ;;
1303
1304  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1305  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1306  | --sharedst | --shareds | --shared | --share | --shar \
1307  | --sha | --sh)
1308    ac_prev=sharedstatedir ;;
1309  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1310  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1311  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1312  | --sha=* | --sh=*)
1313    sharedstatedir=$ac_optarg ;;
1314
1315  -site | --site | --sit)
1316    ac_prev=site ;;
1317  -site=* | --site=* | --sit=*)
1318    site=$ac_optarg ;;
1319
1320  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1321    ac_prev=srcdir ;;
1322  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1323    srcdir=$ac_optarg ;;
1324
1325  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1326  | --syscon | --sysco | --sysc | --sys | --sy)
1327    ac_prev=sysconfdir ;;
1328  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1329  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1330    sysconfdir=$ac_optarg ;;
1331
1332  -target | --target | --targe | --targ | --tar | --ta | --t)
1333    ac_prev=target_alias ;;
1334  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1335    target_alias=$ac_optarg ;;
1336
1337  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1338    verbose=yes ;;
1339
1340  -version | --version | --versio | --versi | --vers | -V)
1341    ac_init_version=: ;;
1342
1343  -with-* | --with-*)
1344    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1345    # Reject names that are not valid shell variable names.
1346    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1347      as_fn_error $? "invalid package name: \`$ac_useropt'"
1348    ac_useropt_orig=$ac_useropt
1349    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1350    case $ac_user_opts in
1351      *"
1352"with_$ac_useropt"
1353"*) ;;
1354      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1355	 ac_unrecognized_sep=', ';;
1356    esac
1357    eval with_$ac_useropt=\$ac_optarg ;;
1358
1359  -without-* | --without-*)
1360    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1361    # Reject names that are not valid shell variable names.
1362    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1363      as_fn_error $? "invalid package name: \`$ac_useropt'"
1364    ac_useropt_orig=$ac_useropt
1365    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1366    case $ac_user_opts in
1367      *"
1368"with_$ac_useropt"
1369"*) ;;
1370      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1371	 ac_unrecognized_sep=', ';;
1372    esac
1373    eval with_$ac_useropt=no ;;
1374
1375  --x)
1376    # Obsolete; use --with-x.
1377    with_x=yes ;;
1378
1379  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1380  | --x-incl | --x-inc | --x-in | --x-i)
1381    ac_prev=x_includes ;;
1382  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1383  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1384    x_includes=$ac_optarg ;;
1385
1386  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1387  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1388    ac_prev=x_libraries ;;
1389  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1390  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1391    x_libraries=$ac_optarg ;;
1392
1393  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1394Try \`$0 --help' for more information"
1395    ;;
1396
1397  *=*)
1398    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1399    # Reject names that are not valid shell variable names.
1400    case $ac_envvar in #(
1401      '' | [0-9]* | *[!_$as_cr_alnum]* )
1402      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1403    esac
1404    eval $ac_envvar=\$ac_optarg
1405    export $ac_envvar ;;
1406
1407  *)
1408    # FIXME: should be removed in autoconf 3.0.
1409    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1410    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1411      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1412    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1413    ;;
1414
1415  esac
1416done
1417
1418if test -n "$ac_prev"; then
1419  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1420  as_fn_error $? "missing argument to $ac_option"
1421fi
1422
1423if test -n "$ac_unrecognized_opts"; then
1424  case $enable_option_checking in
1425    no) ;;
1426    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1427    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1428  esac
1429fi
1430
1431# Check all directory arguments for consistency.
1432for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1433		datadir sysconfdir sharedstatedir localstatedir includedir \
1434		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1435		libdir localedir mandir runstatedir
1436do
1437  eval ac_val=\$$ac_var
1438  # Remove trailing slashes.
1439  case $ac_val in
1440    */ )
1441      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1442      eval $ac_var=\$ac_val;;
1443  esac
1444  # Be sure to have absolute directory names.
1445  case $ac_val in
1446    [\\/$]* | ?:[\\/]* )  continue;;
1447    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1448  esac
1449  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1450done
1451
1452# There might be people who depend on the old broken behavior: `$host'
1453# used to hold the argument of --host etc.
1454# FIXME: To remove some day.
1455build=$build_alias
1456host=$host_alias
1457target=$target_alias
1458
1459# FIXME: To remove some day.
1460if test "x$host_alias" != x; then
1461  if test "x$build_alias" = x; then
1462    cross_compiling=maybe
1463  elif test "x$build_alias" != "x$host_alias"; then
1464    cross_compiling=yes
1465  fi
1466fi
1467
1468ac_tool_prefix=
1469test -n "$host_alias" && ac_tool_prefix=$host_alias-
1470
1471test "$silent" = yes && exec 6>/dev/null
1472
1473
1474ac_pwd=`pwd` && test -n "$ac_pwd" &&
1475ac_ls_di=`ls -di .` &&
1476ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1477  as_fn_error $? "working directory cannot be determined"
1478test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1479  as_fn_error $? "pwd does not report name of working directory"
1480
1481
1482# Find the source files, if location was not specified.
1483if test -z "$srcdir"; then
1484  ac_srcdir_defaulted=yes
1485  # Try the directory containing this script, then the parent directory.
1486  ac_confdir=`$as_dirname -- "$as_myself" ||
1487$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1488	 X"$as_myself" : 'X\(//\)[^/]' \| \
1489	 X"$as_myself" : 'X\(//\)$' \| \
1490	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1491printf "%s\n" X"$as_myself" |
1492    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1493	    s//\1/
1494	    q
1495	  }
1496	  /^X\(\/\/\)[^/].*/{
1497	    s//\1/
1498	    q
1499	  }
1500	  /^X\(\/\/\)$/{
1501	    s//\1/
1502	    q
1503	  }
1504	  /^X\(\/\).*/{
1505	    s//\1/
1506	    q
1507	  }
1508	  s/.*/./; q'`
1509  srcdir=$ac_confdir
1510  if test ! -r "$srcdir/$ac_unique_file"; then
1511    srcdir=..
1512  fi
1513else
1514  ac_srcdir_defaulted=no
1515fi
1516if test ! -r "$srcdir/$ac_unique_file"; then
1517  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1518  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1519fi
1520ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1521ac_abs_confdir=`(
1522	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1523	pwd)`
1524# When building in place, set srcdir=.
1525if test "$ac_abs_confdir" = "$ac_pwd"; then
1526  srcdir=.
1527fi
1528# Remove unnecessary trailing slashes from srcdir.
1529# Double slashes in file names in object file debugging info
1530# mess up M-x gdb in Emacs.
1531case $srcdir in
1532*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1533esac
1534for ac_var in $ac_precious_vars; do
1535  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1536  eval ac_env_${ac_var}_value=\$${ac_var}
1537  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1538  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1539done
1540
1541#
1542# Report the --help message.
1543#
1544if test "$ac_init_help" = "long"; then
1545  # Omit some internal or obsolete options to make the list less imposing.
1546  # This message is too long to be a string in the A/UX 3.1 sh.
1547  cat <<_ACEOF
1548\`configure' configures GNU Libmicrohttpd 0.9.74 to adapt to many kinds of systems.
1549
1550Usage: $0 [OPTION]... [VAR=VALUE]...
1551
1552To assign environment variables (e.g., CC, CFLAGS...), specify them as
1553VAR=VALUE.  See below for descriptions of some of the useful variables.
1554
1555Defaults for the options are specified in brackets.
1556
1557Configuration:
1558  -h, --help              display this help and exit
1559      --help=short        display options specific to this package
1560      --help=recursive    display the short help of all the included packages
1561  -V, --version           display version information and exit
1562  -q, --quiet, --silent   do not print \`checking ...' messages
1563      --cache-file=FILE   cache test results in FILE [disabled]
1564  -C, --config-cache      alias for \`--cache-file=config.cache'
1565  -n, --no-create         do not create output files
1566      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1567
1568Installation directories:
1569  --prefix=PREFIX         install architecture-independent files in PREFIX
1570                          [$ac_default_prefix]
1571  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1572                          [PREFIX]
1573
1574By default, \`make install' will install all the files in
1575\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1576an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1577for instance \`--prefix=\$HOME'.
1578
1579For better control, use the options below.
1580
1581Fine tuning of the installation directories:
1582  --bindir=DIR            user executables [EPREFIX/bin]
1583  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1584  --libexecdir=DIR        program executables [EPREFIX/libexec]
1585  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1586  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1587  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1588  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1589  --libdir=DIR            object code libraries [EPREFIX/lib]
1590  --includedir=DIR        C header files [PREFIX/include]
1591  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1592  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1593  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1594  --infodir=DIR           info documentation [DATAROOTDIR/info]
1595  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1596  --mandir=DIR            man documentation [DATAROOTDIR/man]
1597  --docdir=DIR            documentation root [DATAROOTDIR/doc/libmicrohttpd]
1598  --htmldir=DIR           html documentation [DOCDIR]
1599  --dvidir=DIR            dvi documentation [DOCDIR]
1600  --pdfdir=DIR            pdf documentation [DOCDIR]
1601  --psdir=DIR             ps documentation [DOCDIR]
1602_ACEOF
1603
1604  cat <<\_ACEOF
1605
1606Program names:
1607  --program-prefix=PREFIX            prepend PREFIX to installed program names
1608  --program-suffix=SUFFIX            append SUFFIX to installed program names
1609  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1610
1611System types:
1612  --build=BUILD     configure for building on BUILD [guessed]
1613  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1614_ACEOF
1615fi
1616
1617if test -n "$ac_init_help"; then
1618  case $ac_init_help in
1619     short | recursive ) echo "Configuration of GNU Libmicrohttpd 0.9.74:";;
1620   esac
1621  cat <<\_ACEOF
1622
1623Optional Features:
1624  --disable-option-checking  ignore unrecognized --enable/--with options
1625  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1626  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1627  --enable-silent-rules   less verbose build output (undo: "make V=1")
1628  --disable-silent-rules  verbose build output (undo: "make V=0")
1629  --enable-dependency-tracking
1630                          do not reject slow dependency extractors
1631  --disable-dependency-tracking
1632                          speeds up one-time build
1633  --enable-shared[=PKGS]  build shared libraries [default=yes]
1634  --enable-static[=PKGS]  build static libraries [default=yes]
1635  --enable-fast-install[=PKGS]
1636                          optimize for fast installation [default=yes]
1637  --disable-libtool-lock  avoid locking (might break parallel builds)
1638  --disable-nls           do not use Native Language Support
1639  --disable-rpath         do not hardcode runtime library paths
1640  --enable-gcc-hardening  enable compiler security checks
1641  --enable-linker-hardening
1642                          enable linker security fixups
1643  --disable-thread-names  do not set names on MHD generated threads [auto]
1644  --disable-doc           do not build any documentation
1645  --disable-examples      do not build any examples
1646  --enable-heavy-tests    use heavy tests in test-suite. WARNING: a dedicated
1647                          host with minimal number of background processes and
1648                          no network activity is recommended to enable.
1649  --enable-poll[=ARG]     enable poll support (yes, no, auto) [auto]
1650  --enable-epoll[=ARG]    enable epoll support (yes, no, auto) [auto]
1651  --enable-itc=TYPE       use TYPE of inter-thread communication (pipe,
1652                          socketpair, eventfd) [auto]
1653  --disable-curl          disable cURL based testcases
1654  --disable-largefile     omit support for large files
1655  --disable-sendfile      disable usage of sendfile() for HTTP connections
1656                          [auto]
1657  --disable-messages      disable MHD error messages
1658  --disable-postprocessor disable MHD PostProcessor functionality
1659  --enable-https          enable HTTPS support (yes, no, auto)[auto]
1660  --disable-bauth         disable HTTP basic Auth support
1661  --disable-dauth         disable HTTP basic and digest Auth support
1662  --disable-httpupgrade   disable HTTP "Upgrade" support
1663  --enable-coverage       compile the library with code coverage support
1664  --enable-asserts        enable test build with debug asserts
1665  --enable-sanitizers[=address,undefined,leak,user-poison]
1666                          enable run-time sanitizers, specify the list of
1667                          types of sanitizers to enable or leave the list
1668                          empty to enable all suppoted and availabe sanitizers
1669  --enable-experimental   enable compiling experimental code
1670
1671Optional Packages:
1672  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1673  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1674  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1675                          both]
1676  --with-aix-soname=aix|svr4|both
1677                          shared library versioning (aka "SONAME") variant to
1678                          provide on AIX, [default=aix].
1679  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1680  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1681                          compiler's sysroot if not specified).
1682  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1683  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1684  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1685  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1686  --without-libintl-prefix     don't search for libintl in includedir and libdir
1687  --with-threads=LIB      choose threading library (posix, w32, auto, none)
1688                          [auto]
1689  --with-libcurl=PREFIX   look for the curl library in PREFIX/lib and headers
1690                          in PREFIX/include
1691  --with-gnutls[=PFX]     use GnuTLS for HTTPS support, optional PFX overrides
1692                          pkg-config data for GnuTLS headers (PFX/include) and
1693                          libs (PFX/lib)
1694  --with-libgcrypt-prefix=PFX
1695                          prefix where LIBGCRYPT is installed (optional)
1696
1697Some influential environment variables:
1698  CC          C compiler command
1699  CFLAGS      C compiler flags
1700  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1701              nonstandard directory <lib dir>
1702  LIBS        libraries to pass to the linker, e.g. -l<library>
1703  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1704              you have headers in a nonstandard directory <include dir>
1705  CPP         C preprocessor
1706  LT_SYS_LIBRARY_PATH
1707              User-defined run-time library search path.
1708  PKG_CONFIG  path to pkg-config utility
1709  PKG_CONFIG_PATH
1710              directories to add to pkg-config's search path
1711  PKG_CONFIG_LIBDIR
1712              path overriding pkg-config's built-in search path
1713  GNUTLS_CFLAGS
1714              C compiler flags for GNUTLS, overriding pkg-config
1715  GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
1716
1717Use these variables to override the choices made by `configure' or to help
1718it to find libraries and programs with nonstandard names/locations.
1719
1720Report bugs to <libmicrohttpd@gnu.org>.
1721GNU Libmicrohttpd home page: <https://www.gnu.org/software/libmicrohttpd/>.
1722General help using GNU software: <https://www.gnu.org/gethelp/>.
1723_ACEOF
1724ac_status=$?
1725fi
1726
1727if test "$ac_init_help" = "recursive"; then
1728  # If there are subdirs, report their specific --help.
1729  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1730    test -d "$ac_dir" ||
1731      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1732      continue
1733    ac_builddir=.
1734
1735case "$ac_dir" in
1736.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1737*)
1738  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1739  # A ".." for each directory in $ac_dir_suffix.
1740  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1741  case $ac_top_builddir_sub in
1742  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1743  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1744  esac ;;
1745esac
1746ac_abs_top_builddir=$ac_pwd
1747ac_abs_builddir=$ac_pwd$ac_dir_suffix
1748# for backward compatibility:
1749ac_top_builddir=$ac_top_build_prefix
1750
1751case $srcdir in
1752  .)  # We are building in place.
1753    ac_srcdir=.
1754    ac_top_srcdir=$ac_top_builddir_sub
1755    ac_abs_top_srcdir=$ac_pwd ;;
1756  [\\/]* | ?:[\\/]* )  # Absolute name.
1757    ac_srcdir=$srcdir$ac_dir_suffix;
1758    ac_top_srcdir=$srcdir
1759    ac_abs_top_srcdir=$srcdir ;;
1760  *) # Relative name.
1761    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1762    ac_top_srcdir=$ac_top_build_prefix$srcdir
1763    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1764esac
1765ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1766
1767    cd "$ac_dir" || { ac_status=$?; continue; }
1768    # Check for configure.gnu first; this name is used for a wrapper for
1769    # Metaconfig's "Configure" on case-insensitive file systems.
1770    if test -f "$ac_srcdir/configure.gnu"; then
1771      echo &&
1772      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1773    elif test -f "$ac_srcdir/configure"; then
1774      echo &&
1775      $SHELL "$ac_srcdir/configure" --help=recursive
1776    else
1777      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1778    fi || ac_status=$?
1779    cd "$ac_pwd" || { ac_status=$?; break; }
1780  done
1781fi
1782
1783test -n "$ac_init_help" && exit $ac_status
1784if $ac_init_version; then
1785  cat <<\_ACEOF
1786GNU Libmicrohttpd configure 0.9.74
1787generated by GNU Autoconf 2.71
1788
1789Copyright (C) 2021 Free Software Foundation, Inc.
1790This configure script is free software; the Free Software Foundation
1791gives unlimited permission to copy, distribute and modify it.
1792_ACEOF
1793  exit
1794fi
1795
1796## ------------------------ ##
1797## Autoconf initialization. ##
1798## ------------------------ ##
1799
1800# ac_fn_c_try_compile LINENO
1801# --------------------------
1802# Try to compile conftest.$ac_ext, and return whether this succeeded.
1803ac_fn_c_try_compile ()
1804{
1805  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806  rm -f conftest.$ac_objext conftest.beam
1807  if { { ac_try="$ac_compile"
1808case "(($ac_try" in
1809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810  *) ac_try_echo=$ac_try;;
1811esac
1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813printf "%s\n" "$ac_try_echo"; } >&5
1814  (eval "$ac_compile") 2>conftest.err
1815  ac_status=$?
1816  if test -s conftest.err; then
1817    grep -v '^ *+' conftest.err >conftest.er1
1818    cat conftest.er1 >&5
1819    mv -f conftest.er1 conftest.err
1820  fi
1821  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822  test $ac_status = 0; } && {
1823	 test -z "$ac_c_werror_flag" ||
1824	 test ! -s conftest.err
1825       } && test -s conftest.$ac_objext
1826then :
1827  ac_retval=0
1828else $as_nop
1829  printf "%s\n" "$as_me: failed program was:" >&5
1830sed 's/^/| /' conftest.$ac_ext >&5
1831
1832	ac_retval=1
1833fi
1834  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835  as_fn_set_status $ac_retval
1836
1837} # ac_fn_c_try_compile
1838
1839# ac_fn_c_try_cpp LINENO
1840# ----------------------
1841# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1842ac_fn_c_try_cpp ()
1843{
1844  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845  if { { ac_try="$ac_cpp conftest.$ac_ext"
1846case "(($ac_try" in
1847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848  *) ac_try_echo=$ac_try;;
1849esac
1850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851printf "%s\n" "$ac_try_echo"; } >&5
1852  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1853  ac_status=$?
1854  if test -s conftest.err; then
1855    grep -v '^ *+' conftest.err >conftest.er1
1856    cat conftest.er1 >&5
1857    mv -f conftest.er1 conftest.err
1858  fi
1859  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860  test $ac_status = 0; } > conftest.i && {
1861	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1862	 test ! -s conftest.err
1863       }
1864then :
1865  ac_retval=0
1866else $as_nop
1867  printf "%s\n" "$as_me: failed program was:" >&5
1868sed 's/^/| /' conftest.$ac_ext >&5
1869
1870    ac_retval=1
1871fi
1872  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873  as_fn_set_status $ac_retval
1874
1875} # ac_fn_c_try_cpp
1876
1877# ac_fn_c_try_link LINENO
1878# -----------------------
1879# Try to link conftest.$ac_ext, and return whether this succeeded.
1880ac_fn_c_try_link ()
1881{
1882  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1884  if { { ac_try="$ac_link"
1885case "(($ac_try" in
1886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887  *) ac_try_echo=$ac_try;;
1888esac
1889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890printf "%s\n" "$ac_try_echo"; } >&5
1891  (eval "$ac_link") 2>conftest.err
1892  ac_status=$?
1893  if test -s conftest.err; then
1894    grep -v '^ *+' conftest.err >conftest.er1
1895    cat conftest.er1 >&5
1896    mv -f conftest.er1 conftest.err
1897  fi
1898  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899  test $ac_status = 0; } && {
1900	 test -z "$ac_c_werror_flag" ||
1901	 test ! -s conftest.err
1902       } && test -s conftest$ac_exeext && {
1903	 test "$cross_compiling" = yes ||
1904	 test -x conftest$ac_exeext
1905       }
1906then :
1907  ac_retval=0
1908else $as_nop
1909  printf "%s\n" "$as_me: failed program was:" >&5
1910sed 's/^/| /' conftest.$ac_ext >&5
1911
1912	ac_retval=1
1913fi
1914  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1915  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1916  # interfere with the next link command; also delete a directory that is
1917  # left behind by Apple's compiler.  We do this before executing the actions.
1918  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1919  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920  as_fn_set_status $ac_retval
1921
1922} # ac_fn_c_try_link
1923
1924# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1925# -------------------------------------------------------
1926# Tests whether HEADER exists and can be compiled using the include files in
1927# INCLUDES, setting the cache variable VAR accordingly.
1928ac_fn_c_check_header_compile ()
1929{
1930  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932printf %s "checking for $2... " >&6; }
1933if eval test \${$3+y}
1934then :
1935  printf %s "(cached) " >&6
1936else $as_nop
1937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938/* end confdefs.h.  */
1939$4
1940#include <$2>
1941_ACEOF
1942if ac_fn_c_try_compile "$LINENO"
1943then :
1944  eval "$3=yes"
1945else $as_nop
1946  eval "$3=no"
1947fi
1948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1949fi
1950eval ac_res=\$$3
1951	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952printf "%s\n" "$ac_res" >&6; }
1953  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954
1955} # ac_fn_c_check_header_compile
1956
1957# ac_fn_c_check_func LINENO FUNC VAR
1958# ----------------------------------
1959# Tests whether FUNC exists, setting the cache variable VAR accordingly
1960ac_fn_c_check_func ()
1961{
1962  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1964printf %s "checking for $2... " >&6; }
1965if eval test \${$3+y}
1966then :
1967  printf %s "(cached) " >&6
1968else $as_nop
1969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970/* end confdefs.h.  */
1971/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1972   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1973#define $2 innocuous_$2
1974
1975/* System header to define __stub macros and hopefully few prototypes,
1976   which can conflict with char $2 (); below.  */
1977
1978#include <limits.h>
1979#undef $2
1980
1981/* Override any GCC internal prototype to avoid an error.
1982   Use char because int might match the return type of a GCC
1983   builtin and then its argument prototype would still apply.  */
1984#ifdef __cplusplus
1985extern "C"
1986#endif
1987char $2 ();
1988/* The GNU C library defines this for functions which it implements
1989    to always fail with ENOSYS.  Some functions are actually named
1990    something starting with __ and the normal name is an alias.  */
1991#if defined __stub_$2 || defined __stub___$2
1992choke me
1993#endif
1994
1995int
1996main (void)
1997{
1998return $2 ();
1999  ;
2000  return 0;
2001}
2002_ACEOF
2003if ac_fn_c_try_link "$LINENO"
2004then :
2005  eval "$3=yes"
2006else $as_nop
2007  eval "$3=no"
2008fi
2009rm -f core conftest.err conftest.$ac_objext conftest.beam \
2010    conftest$ac_exeext conftest.$ac_ext
2011fi
2012eval ac_res=\$$3
2013	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014printf "%s\n" "$ac_res" >&6; }
2015  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016
2017} # ac_fn_c_check_func
2018
2019# ac_fn_c_try_run LINENO
2020# ----------------------
2021# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2022# executables *can* be run.
2023ac_fn_c_try_run ()
2024{
2025  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026  if { { ac_try="$ac_link"
2027case "(($ac_try" in
2028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2029  *) ac_try_echo=$ac_try;;
2030esac
2031eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2032printf "%s\n" "$ac_try_echo"; } >&5
2033  (eval "$ac_link") 2>&5
2034  ac_status=$?
2035  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2036  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2037  { { case "(($ac_try" in
2038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2039  *) ac_try_echo=$ac_try;;
2040esac
2041eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2042printf "%s\n" "$ac_try_echo"; } >&5
2043  (eval "$ac_try") 2>&5
2044  ac_status=$?
2045  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2046  test $ac_status = 0; }; }
2047then :
2048  ac_retval=0
2049else $as_nop
2050  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2051       printf "%s\n" "$as_me: failed program was:" >&5
2052sed 's/^/| /' conftest.$ac_ext >&5
2053
2054       ac_retval=$ac_status
2055fi
2056  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2057  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058  as_fn_set_status $ac_retval
2059
2060} # ac_fn_c_try_run
2061
2062# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2063# -------------------------------------------
2064# Tests whether TYPE exists after having included INCLUDES, setting cache
2065# variable VAR accordingly.
2066ac_fn_c_check_type ()
2067{
2068  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2070printf %s "checking for $2... " >&6; }
2071if eval test \${$3+y}
2072then :
2073  printf %s "(cached) " >&6
2074else $as_nop
2075  eval "$3=no"
2076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077/* end confdefs.h.  */
2078$4
2079int
2080main (void)
2081{
2082if (sizeof ($2))
2083	 return 0;
2084  ;
2085  return 0;
2086}
2087_ACEOF
2088if ac_fn_c_try_compile "$LINENO"
2089then :
2090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091/* end confdefs.h.  */
2092$4
2093int
2094main (void)
2095{
2096if (sizeof (($2)))
2097	    return 0;
2098  ;
2099  return 0;
2100}
2101_ACEOF
2102if ac_fn_c_try_compile "$LINENO"
2103then :
2104
2105else $as_nop
2106  eval "$3=yes"
2107fi
2108rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2109fi
2110rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2111fi
2112eval ac_res=\$$3
2113	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2114printf "%s\n" "$ac_res" >&6; }
2115  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2116
2117} # ac_fn_c_check_type
2118
2119# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2120# ------------------------------------------------------------------
2121# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2122# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2123ac_fn_check_decl ()
2124{
2125  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2126  as_decl_name=`echo $2|sed 's/ *(.*//'`
2127  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2128printf %s "checking whether $as_decl_name is declared... " >&6; }
2129if eval test \${$3+y}
2130then :
2131  printf %s "(cached) " >&6
2132else $as_nop
2133  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2134  eval ac_save_FLAGS=\$$6
2135  as_fn_append $6 " $5"
2136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137/* end confdefs.h.  */
2138$4
2139int
2140main (void)
2141{
2142#ifndef $as_decl_name
2143#ifdef __cplusplus
2144  (void) $as_decl_use;
2145#else
2146  (void) $as_decl_name;
2147#endif
2148#endif
2149
2150  ;
2151  return 0;
2152}
2153_ACEOF
2154if ac_fn_c_try_compile "$LINENO"
2155then :
2156  eval "$3=yes"
2157else $as_nop
2158  eval "$3=no"
2159fi
2160rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2161  eval $6=\$ac_save_FLAGS
2162
2163fi
2164eval ac_res=\$$3
2165	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166printf "%s\n" "$ac_res" >&6; }
2167  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2168
2169} # ac_fn_check_decl
2170
2171# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2172# --------------------------------------------
2173# Tries to find the compile-time value of EXPR in a program that includes
2174# INCLUDES, setting VAR accordingly. Returns whether the value could be
2175# computed
2176ac_fn_c_compute_int ()
2177{
2178  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179  if test "$cross_compiling" = yes; then
2180    # Depending upon the size, compute the lo and hi bounds.
2181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182/* end confdefs.h.  */
2183$4
2184int
2185main (void)
2186{
2187static int test_array [1 - 2 * !(($2) >= 0)];
2188test_array [0] = 0;
2189return test_array [0];
2190
2191  ;
2192  return 0;
2193}
2194_ACEOF
2195if ac_fn_c_try_compile "$LINENO"
2196then :
2197  ac_lo=0 ac_mid=0
2198  while :; do
2199    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200/* end confdefs.h.  */
2201$4
2202int
2203main (void)
2204{
2205static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2206test_array [0] = 0;
2207return test_array [0];
2208
2209  ;
2210  return 0;
2211}
2212_ACEOF
2213if ac_fn_c_try_compile "$LINENO"
2214then :
2215  ac_hi=$ac_mid; break
2216else $as_nop
2217  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2218			if test $ac_lo -le $ac_mid; then
2219			  ac_lo= ac_hi=
2220			  break
2221			fi
2222			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2223fi
2224rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2225  done
2226else $as_nop
2227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2228/* end confdefs.h.  */
2229$4
2230int
2231main (void)
2232{
2233static int test_array [1 - 2 * !(($2) < 0)];
2234test_array [0] = 0;
2235return test_array [0];
2236
2237  ;
2238  return 0;
2239}
2240_ACEOF
2241if ac_fn_c_try_compile "$LINENO"
2242then :
2243  ac_hi=-1 ac_mid=-1
2244  while :; do
2245    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246/* end confdefs.h.  */
2247$4
2248int
2249main (void)
2250{
2251static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2252test_array [0] = 0;
2253return test_array [0];
2254
2255  ;
2256  return 0;
2257}
2258_ACEOF
2259if ac_fn_c_try_compile "$LINENO"
2260then :
2261  ac_lo=$ac_mid; break
2262else $as_nop
2263  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2264			if test $ac_mid -le $ac_hi; then
2265			  ac_lo= ac_hi=
2266			  break
2267			fi
2268			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2269fi
2270rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2271  done
2272else $as_nop
2273  ac_lo= ac_hi=
2274fi
2275rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2276fi
2277rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2278# Binary search between lo and hi bounds.
2279while test "x$ac_lo" != "x$ac_hi"; do
2280  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282/* end confdefs.h.  */
2283$4
2284int
2285main (void)
2286{
2287static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2288test_array [0] = 0;
2289return test_array [0];
2290
2291  ;
2292  return 0;
2293}
2294_ACEOF
2295if ac_fn_c_try_compile "$LINENO"
2296then :
2297  ac_hi=$ac_mid
2298else $as_nop
2299  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2300fi
2301rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2302done
2303case $ac_lo in #((
2304?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2305'') ac_retval=1 ;;
2306esac
2307  else
2308    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309/* end confdefs.h.  */
2310$4
2311static long int longval (void) { return $2; }
2312static unsigned long int ulongval (void) { return $2; }
2313#include <stdio.h>
2314#include <stdlib.h>
2315int
2316main (void)
2317{
2318
2319  FILE *f = fopen ("conftest.val", "w");
2320  if (! f)
2321    return 1;
2322  if (($2) < 0)
2323    {
2324      long int i = longval ();
2325      if (i != ($2))
2326	return 1;
2327      fprintf (f, "%ld", i);
2328    }
2329  else
2330    {
2331      unsigned long int i = ulongval ();
2332      if (i != ($2))
2333	return 1;
2334      fprintf (f, "%lu", i);
2335    }
2336  /* Do not output a trailing newline, as this causes \r\n confusion
2337     on some platforms.  */
2338  return ferror (f) || fclose (f) != 0;
2339
2340  ;
2341  return 0;
2342}
2343_ACEOF
2344if ac_fn_c_try_run "$LINENO"
2345then :
2346  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2347else $as_nop
2348  ac_retval=1
2349fi
2350rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2351  conftest.$ac_objext conftest.beam conftest.$ac_ext
2352rm -f conftest.val
2353
2354  fi
2355  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2356  as_fn_set_status $ac_retval
2357
2358} # ac_fn_c_compute_int
2359
2360# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2361# ----------------------------------------------------
2362# Tries to find if the field MEMBER exists in type AGGR, after including
2363# INCLUDES, setting cache variable VAR accordingly.
2364ac_fn_c_check_member ()
2365{
2366  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2367  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2368printf %s "checking for $2.$3... " >&6; }
2369if eval test \${$4+y}
2370then :
2371  printf %s "(cached) " >&6
2372else $as_nop
2373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374/* end confdefs.h.  */
2375$5
2376int
2377main (void)
2378{
2379static $2 ac_aggr;
2380if (ac_aggr.$3)
2381return 0;
2382  ;
2383  return 0;
2384}
2385_ACEOF
2386if ac_fn_c_try_compile "$LINENO"
2387then :
2388  eval "$4=yes"
2389else $as_nop
2390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391/* end confdefs.h.  */
2392$5
2393int
2394main (void)
2395{
2396static $2 ac_aggr;
2397if (sizeof ac_aggr.$3)
2398return 0;
2399  ;
2400  return 0;
2401}
2402_ACEOF
2403if ac_fn_c_try_compile "$LINENO"
2404then :
2405  eval "$4=yes"
2406else $as_nop
2407  eval "$4=no"
2408fi
2409rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2410fi
2411rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2412fi
2413eval ac_res=\$$4
2414	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2415printf "%s\n" "$ac_res" >&6; }
2416  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2417
2418} # ac_fn_c_check_member
2419ac_configure_args_raw=
2420for ac_arg
2421do
2422  case $ac_arg in
2423  *\'*)
2424    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2425  esac
2426  as_fn_append ac_configure_args_raw " '$ac_arg'"
2427done
2428
2429case $ac_configure_args_raw in
2430  *$as_nl*)
2431    ac_safe_unquote= ;;
2432  *)
2433    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2434    ac_unsafe_a="$ac_unsafe_z#~"
2435    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2436    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2437esac
2438
2439cat >config.log <<_ACEOF
2440This file contains any messages produced by compilers while
2441running configure, to aid debugging if configure makes a mistake.
2442
2443It was created by GNU Libmicrohttpd $as_me 0.9.74, which was
2444generated by GNU Autoconf 2.71.  Invocation command line was
2445
2446  $ $0$ac_configure_args_raw
2447
2448_ACEOF
2449exec 5>>config.log
2450{
2451cat <<_ASUNAME
2452## --------- ##
2453## Platform. ##
2454## --------- ##
2455
2456hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2457uname -m = `(uname -m) 2>/dev/null || echo unknown`
2458uname -r = `(uname -r) 2>/dev/null || echo unknown`
2459uname -s = `(uname -s) 2>/dev/null || echo unknown`
2460uname -v = `(uname -v) 2>/dev/null || echo unknown`
2461
2462/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2463/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2464
2465/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2466/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2467/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2468/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2469/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2470/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2471/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2472
2473_ASUNAME
2474
2475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476for as_dir in $PATH
2477do
2478  IFS=$as_save_IFS
2479  case $as_dir in #(((
2480    '') as_dir=./ ;;
2481    */) ;;
2482    *) as_dir=$as_dir/ ;;
2483  esac
2484    printf "%s\n" "PATH: $as_dir"
2485  done
2486IFS=$as_save_IFS
2487
2488} >&5
2489
2490cat >&5 <<_ACEOF
2491
2492
2493## ----------- ##
2494## Core tests. ##
2495## ----------- ##
2496
2497_ACEOF
2498
2499
2500# Keep a trace of the command line.
2501# Strip out --no-create and --no-recursion so they do not pile up.
2502# Strip out --silent because we don't want to record it for future runs.
2503# Also quote any args containing shell meta-characters.
2504# Make two passes to allow for proper duplicate-argument suppression.
2505ac_configure_args=
2506ac_configure_args0=
2507ac_configure_args1=
2508ac_must_keep_next=false
2509for ac_pass in 1 2
2510do
2511  for ac_arg
2512  do
2513    case $ac_arg in
2514    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2515    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2516    | -silent | --silent | --silen | --sile | --sil)
2517      continue ;;
2518    *\'*)
2519      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2520    esac
2521    case $ac_pass in
2522    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2523    2)
2524      as_fn_append ac_configure_args1 " '$ac_arg'"
2525      if test $ac_must_keep_next = true; then
2526	ac_must_keep_next=false # Got value, back to normal.
2527      else
2528	case $ac_arg in
2529	  *=* | --config-cache | -C | -disable-* | --disable-* \
2530	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2531	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2532	  | -with-* | --with-* | -without-* | --without-* | --x)
2533	    case "$ac_configure_args0 " in
2534	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2535	    esac
2536	    ;;
2537	  -* ) ac_must_keep_next=true ;;
2538	esac
2539      fi
2540      as_fn_append ac_configure_args " '$ac_arg'"
2541      ;;
2542    esac
2543  done
2544done
2545{ ac_configure_args0=; unset ac_configure_args0;}
2546{ ac_configure_args1=; unset ac_configure_args1;}
2547
2548# When interrupted or exit'd, cleanup temporary files, and complete
2549# config.log.  We remove comments because anyway the quotes in there
2550# would cause problems or look ugly.
2551# WARNING: Use '\'' to represent an apostrophe within the trap.
2552# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2553trap 'exit_status=$?
2554  # Sanitize IFS.
2555  IFS=" ""	$as_nl"
2556  # Save into config.log some information that might help in debugging.
2557  {
2558    echo
2559
2560    printf "%s\n" "## ---------------- ##
2561## Cache variables. ##
2562## ---------------- ##"
2563    echo
2564    # The following way of writing the cache mishandles newlines in values,
2565(
2566  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2567    eval ac_val=\$$ac_var
2568    case $ac_val in #(
2569    *${as_nl}*)
2570      case $ac_var in #(
2571      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2572printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2573      esac
2574      case $ac_var in #(
2575      _ | IFS | as_nl) ;; #(
2576      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2577      *) { eval $ac_var=; unset $ac_var;} ;;
2578      esac ;;
2579    esac
2580  done
2581  (set) 2>&1 |
2582    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2583    *${as_nl}ac_space=\ *)
2584      sed -n \
2585	"s/'\''/'\''\\\\'\'''\''/g;
2586	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2587      ;; #(
2588    *)
2589      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2590      ;;
2591    esac |
2592    sort
2593)
2594    echo
2595
2596    printf "%s\n" "## ----------------- ##
2597## Output variables. ##
2598## ----------------- ##"
2599    echo
2600    for ac_var in $ac_subst_vars
2601    do
2602      eval ac_val=\$$ac_var
2603      case $ac_val in
2604      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2605      esac
2606      printf "%s\n" "$ac_var='\''$ac_val'\''"
2607    done | sort
2608    echo
2609
2610    if test -n "$ac_subst_files"; then
2611      printf "%s\n" "## ------------------- ##
2612## File substitutions. ##
2613## ------------------- ##"
2614      echo
2615      for ac_var in $ac_subst_files
2616      do
2617	eval ac_val=\$$ac_var
2618	case $ac_val in
2619	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2620	esac
2621	printf "%s\n" "$ac_var='\''$ac_val'\''"
2622      done | sort
2623      echo
2624    fi
2625
2626    if test -s confdefs.h; then
2627      printf "%s\n" "## ----------- ##
2628## confdefs.h. ##
2629## ----------- ##"
2630      echo
2631      cat confdefs.h
2632      echo
2633    fi
2634    test "$ac_signal" != 0 &&
2635      printf "%s\n" "$as_me: caught signal $ac_signal"
2636    printf "%s\n" "$as_me: exit $exit_status"
2637  } >&5
2638  rm -f core *.core core.conftest.* &&
2639    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2640    exit $exit_status
2641' 0
2642for ac_signal in 1 2 13 15; do
2643  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2644done
2645ac_signal=0
2646
2647# confdefs.h avoids OS command line length limits that DEFS can exceed.
2648rm -f -r conftest* confdefs.h
2649
2650printf "%s\n" "/* confdefs.h */" > confdefs.h
2651
2652# Predefined preprocessor variables.
2653
2654printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2655
2656printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2657
2658printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2659
2660printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2661
2662printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2663
2664printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2665
2666
2667# Let the site file select an alternate cache file if it wants to.
2668# Prefer an explicitly selected file to automatically selected ones.
2669if test -n "$CONFIG_SITE"; then
2670  ac_site_files="$CONFIG_SITE"
2671elif test "x$prefix" != xNONE; then
2672  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2673else
2674  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2675fi
2676
2677for ac_site_file in $ac_site_files
2678do
2679  case $ac_site_file in #(
2680  */*) :
2681     ;; #(
2682  *) :
2683    ac_site_file=./$ac_site_file ;;
2684esac
2685  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2686    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2687printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2688    sed 's/^/| /' "$ac_site_file" >&5
2689    . "$ac_site_file" \
2690      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2691printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2692as_fn_error $? "failed to load site script $ac_site_file
2693See \`config.log' for more details" "$LINENO" 5; }
2694  fi
2695done
2696
2697if test -r "$cache_file"; then
2698  # Some versions of bash will fail to source /dev/null (special files
2699  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2700  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2701    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2702printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2703    case $cache_file in
2704      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2705      *)                      . "./$cache_file";;
2706    esac
2707  fi
2708else
2709  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2710printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2711  >$cache_file
2712fi
2713
2714# Test code for whether the C compiler supports C89 (global declarations)
2715ac_c_conftest_c89_globals='
2716/* Does the compiler advertise C89 conformance?
2717   Do not test the value of __STDC__, because some compilers set it to 0
2718   while being otherwise adequately conformant. */
2719#if !defined __STDC__
2720# error "Compiler does not advertise C89 conformance"
2721#endif
2722
2723#include <stddef.h>
2724#include <stdarg.h>
2725struct stat;
2726/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2727struct buf { int x; };
2728struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2729static char *e (p, i)
2730     char **p;
2731     int i;
2732{
2733  return p[i];
2734}
2735static char *f (char * (*g) (char **, int), char **p, ...)
2736{
2737  char *s;
2738  va_list v;
2739  va_start (v,p);
2740  s = g (p, va_arg (v,int));
2741  va_end (v);
2742  return s;
2743}
2744
2745/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2746   function prototypes and stuff, but not \xHH hex character constants.
2747   These do not provoke an error unfortunately, instead are silently treated
2748   as an "x".  The following induces an error, until -std is added to get
2749   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2750   array size at least.  It is necessary to write \x00 == 0 to get something
2751   that is true only with -std.  */
2752int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2753
2754/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2755   inside strings and character constants.  */
2756#define FOO(x) '\''x'\''
2757int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2758
2759int test (int i, double x);
2760struct s1 {int (*f) (int a);};
2761struct s2 {int (*f) (double a);};
2762int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2763               int, int);'
2764
2765# Test code for whether the C compiler supports C89 (body of main).
2766ac_c_conftest_c89_main='
2767ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2768'
2769
2770# Test code for whether the C compiler supports C99 (global declarations)
2771ac_c_conftest_c99_globals='
2772// Does the compiler advertise C99 conformance?
2773#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2774# error "Compiler does not advertise C99 conformance"
2775#endif
2776
2777#include <stdbool.h>
2778extern int puts (const char *);
2779extern int printf (const char *, ...);
2780extern int dprintf (int, const char *, ...);
2781extern void *malloc (size_t);
2782
2783// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2784// dprintf is used instead of fprintf to avoid needing to declare
2785// FILE and stderr.
2786#define debug(...) dprintf (2, __VA_ARGS__)
2787#define showlist(...) puts (#__VA_ARGS__)
2788#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2789static void
2790test_varargs_macros (void)
2791{
2792  int x = 1234;
2793  int y = 5678;
2794  debug ("Flag");
2795  debug ("X = %d\n", x);
2796  showlist (The first, second, and third items.);
2797  report (x>y, "x is %d but y is %d", x, y);
2798}
2799
2800// Check long long types.
2801#define BIG64 18446744073709551615ull
2802#define BIG32 4294967295ul
2803#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2804#if !BIG_OK
2805  #error "your preprocessor is broken"
2806#endif
2807#if BIG_OK
2808#else
2809  #error "your preprocessor is broken"
2810#endif
2811static long long int bignum = -9223372036854775807LL;
2812static unsigned long long int ubignum = BIG64;
2813
2814struct incomplete_array
2815{
2816  int datasize;
2817  double data[];
2818};
2819
2820struct named_init {
2821  int number;
2822  const wchar_t *name;
2823  double average;
2824};
2825
2826typedef const char *ccp;
2827
2828static inline int
2829test_restrict (ccp restrict text)
2830{
2831  // See if C++-style comments work.
2832  // Iterate through items via the restricted pointer.
2833  // Also check for declarations in for loops.
2834  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2835    continue;
2836  return 0;
2837}
2838
2839// Check varargs and va_copy.
2840static bool
2841test_varargs (const char *format, ...)
2842{
2843  va_list args;
2844  va_start (args, format);
2845  va_list args_copy;
2846  va_copy (args_copy, args);
2847
2848  const char *str = "";
2849  int number = 0;
2850  float fnumber = 0;
2851
2852  while (*format)
2853    {
2854      switch (*format++)
2855	{
2856	case '\''s'\'': // string
2857	  str = va_arg (args_copy, const char *);
2858	  break;
2859	case '\''d'\'': // int
2860	  number = va_arg (args_copy, int);
2861	  break;
2862	case '\''f'\'': // float
2863	  fnumber = va_arg (args_copy, double);
2864	  break;
2865	default:
2866	  break;
2867	}
2868    }
2869  va_end (args_copy);
2870  va_end (args);
2871
2872  return *str && number && fnumber;
2873}
2874'
2875
2876# Test code for whether the C compiler supports C99 (body of main).
2877ac_c_conftest_c99_main='
2878  // Check bool.
2879  _Bool success = false;
2880  success |= (argc != 0);
2881
2882  // Check restrict.
2883  if (test_restrict ("String literal") == 0)
2884    success = true;
2885  char *restrict newvar = "Another string";
2886
2887  // Check varargs.
2888  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2889  test_varargs_macros ();
2890
2891  // Check flexible array members.
2892  struct incomplete_array *ia =
2893    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2894  ia->datasize = 10;
2895  for (int i = 0; i < ia->datasize; ++i)
2896    ia->data[i] = i * 1.234;
2897
2898  // Check named initializers.
2899  struct named_init ni = {
2900    .number = 34,
2901    .name = L"Test wide string",
2902    .average = 543.34343,
2903  };
2904
2905  ni.number = 58;
2906
2907  int dynamic_array[ni.number];
2908  dynamic_array[0] = argv[0][0];
2909  dynamic_array[ni.number - 1] = 543;
2910
2911  // work around unused variable warnings
2912  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2913	 || dynamic_array[ni.number - 1] != 543);
2914'
2915
2916# Test code for whether the C compiler supports C11 (global declarations)
2917ac_c_conftest_c11_globals='
2918// Does the compiler advertise C11 conformance?
2919#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2920# error "Compiler does not advertise C11 conformance"
2921#endif
2922
2923// Check _Alignas.
2924char _Alignas (double) aligned_as_double;
2925char _Alignas (0) no_special_alignment;
2926extern char aligned_as_int;
2927char _Alignas (0) _Alignas (int) aligned_as_int;
2928
2929// Check _Alignof.
2930enum
2931{
2932  int_alignment = _Alignof (int),
2933  int_array_alignment = _Alignof (int[100]),
2934  char_alignment = _Alignof (char)
2935};
2936_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2937
2938// Check _Noreturn.
2939int _Noreturn does_not_return (void) { for (;;) continue; }
2940
2941// Check _Static_assert.
2942struct test_static_assert
2943{
2944  int x;
2945  _Static_assert (sizeof (int) <= sizeof (long int),
2946                  "_Static_assert does not work in struct");
2947  long int y;
2948};
2949
2950// Check UTF-8 literals.
2951#define u8 syntax error!
2952char const utf8_literal[] = u8"happens to be ASCII" "another string";
2953
2954// Check duplicate typedefs.
2955typedef long *long_ptr;
2956typedef long int *long_ptr;
2957typedef long_ptr long_ptr;
2958
2959// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2960struct anonymous
2961{
2962  union {
2963    struct { int i; int j; };
2964    struct { int k; long int l; } w;
2965  };
2966  int m;
2967} v1;
2968'
2969
2970# Test code for whether the C compiler supports C11 (body of main).
2971ac_c_conftest_c11_main='
2972  _Static_assert ((offsetof (struct anonymous, i)
2973		   == offsetof (struct anonymous, w.k)),
2974		  "Anonymous union alignment botch");
2975  v1.i = 2;
2976  v1.w.k = 5;
2977  ok |= v1.i != 5;
2978'
2979
2980# Test code for whether the C compiler supports C11 (complete).
2981ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2982${ac_c_conftest_c99_globals}
2983${ac_c_conftest_c11_globals}
2984
2985int
2986main (int argc, char **argv)
2987{
2988  int ok = 0;
2989  ${ac_c_conftest_c89_main}
2990  ${ac_c_conftest_c99_main}
2991  ${ac_c_conftest_c11_main}
2992  return ok;
2993}
2994"
2995
2996# Test code for whether the C compiler supports C99 (complete).
2997ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2998${ac_c_conftest_c99_globals}
2999
3000int
3001main (int argc, char **argv)
3002{
3003  int ok = 0;
3004  ${ac_c_conftest_c89_main}
3005  ${ac_c_conftest_c99_main}
3006  return ok;
3007}
3008"
3009
3010# Test code for whether the C compiler supports C89 (complete).
3011ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3012
3013int
3014main (int argc, char **argv)
3015{
3016  int ok = 0;
3017  ${ac_c_conftest_c89_main}
3018  return ok;
3019}
3020"
3021
3022mhd_undef_all_extensions="
3023#ifdef _GNU_SOURCE
3024#undef _GNU_SOURCE
3025#endif
3026#ifdef _XOPEN_SOURCE__
3027#undef _XOPEN_SOURCE__
3028#endif
3029#ifdef _XOPEN_SOURCE___EXTENDED
3030#undef _XOPEN_SOURCE___EXTENDED
3031#endif
3032#ifdef _XOPEN_VERSION
3033#undef _XOPEN_VERSION
3034#endif
3035#ifdef _POSIX_C_SOURCE
3036#undef _POSIX_C_SOURCE
3037#endif
3038#ifdef _POSIX_SOURCE
3039#undef _POSIX_SOURCE
3040#endif
3041#ifdef _DEFAULT_SOURCE
3042#undef _DEFAULT_SOURCE
3043#endif
3044#ifdef _BSD_SOURCE
3045#undef _BSD_SOURCE
3046#endif
3047#ifdef _SVID_SOURCE
3048#undef _SVID_SOURCE
3049#endif
3050#ifdef __EXTENSIONS__
3051#undef __EXTENSIONS__
3052#endif
3053#ifdef _ALL_SOURCE
3054#undef _ALL_SOURCE
3055#endif
3056#ifdef _TANDEM_SOURCE
3057#undef _TANDEM_SOURCE
3058#endif
3059#ifdef _DARWIN_C_SOURCE
3060#undef _DARWIN_C_SOURCE
3061#endif
3062#ifdef __BSD_VISIBLE__
3063#undef __BSD_VISIBLE__
3064#endif
3065#ifdef _NETBSD_SOURCE
3066#undef _NETBSD_SOURCE
3067#endif
3068"
3069
3070as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3071as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3072as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3073as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3074as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3075as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3076as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3077as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3078as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3079as_fn_append ac_header_c_list " errno.h errno_h HAVE_ERRNO_H"
3080as_fn_append ac_header_c_list " limits.h limits_h HAVE_LIMITS_H"
3081as_fn_append ac_header_c_list " fcntl.h fcntl_h HAVE_FCNTL_H"
3082gt_needs="$gt_needs need-ngettext"
3083as_fn_append ac_func_c_list " accept4 HAVE_ACCEPT4"
3084as_fn_append ac_func_c_list " gmtime_r HAVE_GMTIME_R"
3085as_fn_append ac_func_c_list " memmem HAVE_MEMMEM"
3086as_fn_append ac_func_c_list " snprintf HAVE_SNPRINTF"
3087
3088# Auxiliary files required by this configure script.
3089ac_aux_files="config.rpath ltmain.sh compile config.guess config.sub missing install-sh"
3090
3091# Locations in which to look for auxiliary files.
3092ac_aux_dir_candidates="${srcdir}/build-aux"
3093
3094# Search for a directory containing all of the required auxiliary files,
3095# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3096# If we don't find one directory that contains all the files we need,
3097# we report the set of missing files from the *first* directory in
3098# $ac_aux_dir_candidates and give up.
3099ac_missing_aux_files=""
3100ac_first_candidate=:
3101printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103as_found=false
3104for as_dir in $ac_aux_dir_candidates
3105do
3106  IFS=$as_save_IFS
3107  case $as_dir in #(((
3108    '') as_dir=./ ;;
3109    */) ;;
3110    *) as_dir=$as_dir/ ;;
3111  esac
3112  as_found=:
3113
3114  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3115  ac_aux_dir_found=yes
3116  ac_install_sh=
3117  for ac_aux in $ac_aux_files
3118  do
3119    # As a special case, if "install-sh" is required, that requirement
3120    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3121    # and $ac_install_sh is set appropriately for whichever one is found.
3122    if test x"$ac_aux" = x"install-sh"
3123    then
3124      if test -f "${as_dir}install-sh"; then
3125        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3126        ac_install_sh="${as_dir}install-sh -c"
3127      elif test -f "${as_dir}install.sh"; then
3128        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3129        ac_install_sh="${as_dir}install.sh -c"
3130      elif test -f "${as_dir}shtool"; then
3131        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3132        ac_install_sh="${as_dir}shtool install -c"
3133      else
3134        ac_aux_dir_found=no
3135        if $ac_first_candidate; then
3136          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3137        else
3138          break
3139        fi
3140      fi
3141    else
3142      if test -f "${as_dir}${ac_aux}"; then
3143        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3144      else
3145        ac_aux_dir_found=no
3146        if $ac_first_candidate; then
3147          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3148        else
3149          break
3150        fi
3151      fi
3152    fi
3153  done
3154  if test "$ac_aux_dir_found" = yes; then
3155    ac_aux_dir="$as_dir"
3156    break
3157  fi
3158  ac_first_candidate=false
3159
3160  as_found=false
3161done
3162IFS=$as_save_IFS
3163if $as_found
3164then :
3165
3166else $as_nop
3167  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3168fi
3169
3170
3171# These three variables are undocumented and unsupported,
3172# and are intended to be withdrawn in a future Autoconf release.
3173# They can cause serious problems if a builder's source tree is in a directory
3174# whose full name contains unusual characters.
3175if test -f "${ac_aux_dir}config.guess"; then
3176  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3177fi
3178if test -f "${ac_aux_dir}config.sub"; then
3179  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3180fi
3181if test -f "$ac_aux_dir/configure"; then
3182  ac_configure="$SHELL ${ac_aux_dir}configure"
3183fi
3184
3185# Check that the precious variables saved in the cache have kept the same
3186# value.
3187ac_cache_corrupted=false
3188for ac_var in $ac_precious_vars; do
3189  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3190  eval ac_new_set=\$ac_env_${ac_var}_set
3191  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3192  eval ac_new_val=\$ac_env_${ac_var}_value
3193  case $ac_old_set,$ac_new_set in
3194    set,)
3195      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3196printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3197      ac_cache_corrupted=: ;;
3198    ,set)
3199      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3200printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3201      ac_cache_corrupted=: ;;
3202    ,);;
3203    *)
3204      if test "x$ac_old_val" != "x$ac_new_val"; then
3205	# differences in whitespace do not lead to failure.
3206	ac_old_val_w=`echo x $ac_old_val`
3207	ac_new_val_w=`echo x $ac_new_val`
3208	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3209	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3210printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3211	  ac_cache_corrupted=:
3212	else
3213	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3214printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3215	  eval $ac_var=\$ac_old_val
3216	fi
3217	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3218printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3219	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3220printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3221      fi;;
3222  esac
3223  # Pass precious variables to config.status.
3224  if test "$ac_new_set" = set; then
3225    case $ac_new_val in
3226    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3227    *) ac_arg=$ac_var=$ac_new_val ;;
3228    esac
3229    case " $ac_configure_args " in
3230      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3231      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3232    esac
3233  fi
3234done
3235if $ac_cache_corrupted; then
3236  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3237printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3238  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3239printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3240  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3241	    and start over" "$LINENO" 5
3242fi
3243## -------------------- ##
3244## Main body of script. ##
3245## -------------------- ##
3246
3247ac_ext=c
3248ac_cpp='$CPP $CPPFLAGS'
3249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3251ac_compiler_gnu=$ac_cv_c_compiler_gnu
3252
3253
3254
3255am__api_version='1.16'
3256
3257
3258
3259  # Find a good install program.  We prefer a C program (faster),
3260# so one script is as good as another.  But avoid the broken or
3261# incompatible versions:
3262# SysV /etc/install, /usr/sbin/install
3263# SunOS /usr/etc/install
3264# IRIX /sbin/install
3265# AIX /bin/install
3266# AmigaOS /C/install, which installs bootblocks on floppy discs
3267# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3268# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3269# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3270# OS/2's system install, which has a completely different semantic
3271# ./install, which can be erroneously created by make from ./install.sh.
3272# Reject install programs that cannot install multiple files.
3273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3274printf %s "checking for a BSD-compatible install... " >&6; }
3275if test -z "$INSTALL"; then
3276if test ${ac_cv_path_install+y}
3277then :
3278  printf %s "(cached) " >&6
3279else $as_nop
3280  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281for as_dir in $PATH
3282do
3283  IFS=$as_save_IFS
3284  case $as_dir in #(((
3285    '') as_dir=./ ;;
3286    */) ;;
3287    *) as_dir=$as_dir/ ;;
3288  esac
3289    # Account for fact that we put trailing slashes in our PATH walk.
3290case $as_dir in #((
3291  ./ | /[cC]/* | \
3292  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3293  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3294  /usr/ucb/* ) ;;
3295  *)
3296    # OSF1 and SCO ODT 3.0 have their own names for install.
3297    # Don't use installbsd from OSF since it installs stuff as root
3298    # by default.
3299    for ac_prog in ginstall scoinst install; do
3300      for ac_exec_ext in '' $ac_executable_extensions; do
3301	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3302	  if test $ac_prog = install &&
3303	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3304	    # AIX install.  It has an incompatible calling convention.
3305	    :
3306	  elif test $ac_prog = install &&
3307	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3308	    # program-specific install script used by HP pwplus--don't use.
3309	    :
3310	  else
3311	    rm -rf conftest.one conftest.two conftest.dir
3312	    echo one > conftest.one
3313	    echo two > conftest.two
3314	    mkdir conftest.dir
3315	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3316	      test -s conftest.one && test -s conftest.two &&
3317	      test -s conftest.dir/conftest.one &&
3318	      test -s conftest.dir/conftest.two
3319	    then
3320	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3321	      break 3
3322	    fi
3323	  fi
3324	fi
3325      done
3326    done
3327    ;;
3328esac
3329
3330  done
3331IFS=$as_save_IFS
3332
3333rm -rf conftest.one conftest.two conftest.dir
3334
3335fi
3336  if test ${ac_cv_path_install+y}; then
3337    INSTALL=$ac_cv_path_install
3338  else
3339    # As a last resort, use the slow shell script.  Don't cache a
3340    # value for INSTALL within a source directory, because that will
3341    # break other packages using the cache if that directory is
3342    # removed, or if the value is a relative name.
3343    INSTALL=$ac_install_sh
3344  fi
3345fi
3346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3347printf "%s\n" "$INSTALL" >&6; }
3348
3349# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3350# It thinks the first close brace ends the variable substitution.
3351test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3352
3353test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3354
3355test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3356
3357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3358printf %s "checking whether build environment is sane... " >&6; }
3359# Reject unsafe characters in $srcdir or the absolute working directory
3360# name.  Accept space and tab only in the latter.
3361am_lf='
3362'
3363case `pwd` in
3364  *[\\\"\#\$\&\'\`$am_lf]*)
3365    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3366esac
3367case $srcdir in
3368  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3369    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3370esac
3371
3372# Do 'set' in a subshell so we don't clobber the current shell's
3373# arguments.  Must try -L first in case configure is actually a
3374# symlink; some systems play weird games with the mod time of symlinks
3375# (eg FreeBSD returns the mod time of the symlink's containing
3376# directory).
3377if (
3378   am_has_slept=no
3379   for am_try in 1 2; do
3380     echo "timestamp, slept: $am_has_slept" > conftest.file
3381     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3382     if test "$*" = "X"; then
3383	# -L didn't work.
3384	set X `ls -t "$srcdir/configure" conftest.file`
3385     fi
3386     if test "$*" != "X $srcdir/configure conftest.file" \
3387	&& test "$*" != "X conftest.file $srcdir/configure"; then
3388
3389	# If neither matched, then we have a broken ls.  This can happen
3390	# if, for instance, CONFIG_SHELL is bash and it inherits a
3391	# broken ls alias from the environment.  This has actually
3392	# happened.  Such a system could not be considered "sane".
3393	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3394  alias in your environment" "$LINENO" 5
3395     fi
3396     if test "$2" = conftest.file || test $am_try -eq 2; then
3397       break
3398     fi
3399     # Just in case.
3400     sleep 1
3401     am_has_slept=yes
3402   done
3403   test "$2" = conftest.file
3404   )
3405then
3406   # Ok.
3407   :
3408else
3409   as_fn_error $? "newly created file is older than distributed files!
3410Check your system clock" "$LINENO" 5
3411fi
3412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3413printf "%s\n" "yes" >&6; }
3414# If we didn't sleep, we still need to ensure time stamps of config.status and
3415# generated files are strictly newer.
3416am_sleep_pid=
3417if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3418  ( sleep 1 ) &
3419  am_sleep_pid=$!
3420fi
3421
3422rm -f conftest.file
3423
3424test "$program_prefix" != NONE &&
3425  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3426# Use a double $ so make ignores it.
3427test "$program_suffix" != NONE &&
3428  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3429# Double any \ or $.
3430# By default was `s,x,x', remove it if useless.
3431ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3432program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3433
3434
3435# Expand $ac_aux_dir to an absolute path.
3436am_aux_dir=`cd "$ac_aux_dir" && pwd`
3437
3438
3439  if test x"${MISSING+set}" != xset; then
3440  MISSING="\${SHELL} '$am_aux_dir/missing'"
3441fi
3442# Use eval to expand $SHELL
3443if eval "$MISSING --is-lightweight"; then
3444  am_missing_run="$MISSING "
3445else
3446  am_missing_run=
3447  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3448printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3449fi
3450
3451if test x"${install_sh+set}" != xset; then
3452  case $am_aux_dir in
3453  *\ * | *\	*)
3454    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3455  *)
3456    install_sh="\${SHELL} $am_aux_dir/install-sh"
3457  esac
3458fi
3459
3460# Installed binaries are usually stripped using 'strip' when the user
3461# run "make install-strip".  However 'strip' might not be the right
3462# tool to use in cross-compilation environments, therefore Automake
3463# will honor the 'STRIP' environment variable to overrule this program.
3464if test "$cross_compiling" != no; then
3465  if test -n "$ac_tool_prefix"; then
3466  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3467set dummy ${ac_tool_prefix}strip; ac_word=$2
3468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3469printf %s "checking for $ac_word... " >&6; }
3470if test ${ac_cv_prog_STRIP+y}
3471then :
3472  printf %s "(cached) " >&6
3473else $as_nop
3474  if test -n "$STRIP"; then
3475  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3476else
3477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478for as_dir in $PATH
3479do
3480  IFS=$as_save_IFS
3481  case $as_dir in #(((
3482    '') as_dir=./ ;;
3483    */) ;;
3484    *) as_dir=$as_dir/ ;;
3485  esac
3486    for ac_exec_ext in '' $ac_executable_extensions; do
3487  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3488    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3489    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3490    break 2
3491  fi
3492done
3493  done
3494IFS=$as_save_IFS
3495
3496fi
3497fi
3498STRIP=$ac_cv_prog_STRIP
3499if test -n "$STRIP"; then
3500  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3501printf "%s\n" "$STRIP" >&6; }
3502else
3503  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504printf "%s\n" "no" >&6; }
3505fi
3506
3507
3508fi
3509if test -z "$ac_cv_prog_STRIP"; then
3510  ac_ct_STRIP=$STRIP
3511  # Extract the first word of "strip", so it can be a program name with args.
3512set dummy strip; ac_word=$2
3513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3514printf %s "checking for $ac_word... " >&6; }
3515if test ${ac_cv_prog_ac_ct_STRIP+y}
3516then :
3517  printf %s "(cached) " >&6
3518else $as_nop
3519  if test -n "$ac_ct_STRIP"; then
3520  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3521else
3522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523for as_dir in $PATH
3524do
3525  IFS=$as_save_IFS
3526  case $as_dir in #(((
3527    '') as_dir=./ ;;
3528    */) ;;
3529    *) as_dir=$as_dir/ ;;
3530  esac
3531    for ac_exec_ext in '' $ac_executable_extensions; do
3532  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3533    ac_cv_prog_ac_ct_STRIP="strip"
3534    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3535    break 2
3536  fi
3537done
3538  done
3539IFS=$as_save_IFS
3540
3541fi
3542fi
3543ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3544if test -n "$ac_ct_STRIP"; then
3545  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3546printf "%s\n" "$ac_ct_STRIP" >&6; }
3547else
3548  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3549printf "%s\n" "no" >&6; }
3550fi
3551
3552  if test "x$ac_ct_STRIP" = x; then
3553    STRIP=":"
3554  else
3555    case $cross_compiling:$ac_tool_warned in
3556yes:)
3557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3558printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3559ac_tool_warned=yes ;;
3560esac
3561    STRIP=$ac_ct_STRIP
3562  fi
3563else
3564  STRIP="$ac_cv_prog_STRIP"
3565fi
3566
3567fi
3568INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3569
3570
3571  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3572printf %s "checking for a race-free mkdir -p... " >&6; }
3573if test -z "$MKDIR_P"; then
3574  if test ${ac_cv_path_mkdir+y}
3575then :
3576  printf %s "(cached) " >&6
3577else $as_nop
3578  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3580do
3581  IFS=$as_save_IFS
3582  case $as_dir in #(((
3583    '') as_dir=./ ;;
3584    */) ;;
3585    *) as_dir=$as_dir/ ;;
3586  esac
3587    for ac_prog in mkdir gmkdir; do
3588	 for ac_exec_ext in '' $ac_executable_extensions; do
3589	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3590	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3591	     'mkdir ('*'coreutils) '* | \
3592	     'BusyBox '* | \
3593	     'mkdir (fileutils) '4.1*)
3594	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3595	       break 3;;
3596	   esac
3597	 done
3598       done
3599  done
3600IFS=$as_save_IFS
3601
3602fi
3603
3604  test -d ./--version && rmdir ./--version
3605  if test ${ac_cv_path_mkdir+y}; then
3606    MKDIR_P="$ac_cv_path_mkdir -p"
3607  else
3608    # As a last resort, use the slow shell script.  Don't cache a
3609    # value for MKDIR_P within a source directory, because that will
3610    # break other packages using the cache if that directory is
3611    # removed, or if the value is a relative name.
3612    MKDIR_P="$ac_install_sh -d"
3613  fi
3614fi
3615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3616printf "%s\n" "$MKDIR_P" >&6; }
3617
3618for ac_prog in gawk mawk nawk awk
3619do
3620  # Extract the first word of "$ac_prog", so it can be a program name with args.
3621set dummy $ac_prog; ac_word=$2
3622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3623printf %s "checking for $ac_word... " >&6; }
3624if test ${ac_cv_prog_AWK+y}
3625then :
3626  printf %s "(cached) " >&6
3627else $as_nop
3628  if test -n "$AWK"; then
3629  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3630else
3631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632for as_dir in $PATH
3633do
3634  IFS=$as_save_IFS
3635  case $as_dir in #(((
3636    '') as_dir=./ ;;
3637    */) ;;
3638    *) as_dir=$as_dir/ ;;
3639  esac
3640    for ac_exec_ext in '' $ac_executable_extensions; do
3641  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3642    ac_cv_prog_AWK="$ac_prog"
3643    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3644    break 2
3645  fi
3646done
3647  done
3648IFS=$as_save_IFS
3649
3650fi
3651fi
3652AWK=$ac_cv_prog_AWK
3653if test -n "$AWK"; then
3654  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3655printf "%s\n" "$AWK" >&6; }
3656else
3657  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3658printf "%s\n" "no" >&6; }
3659fi
3660
3661
3662  test -n "$AWK" && break
3663done
3664
3665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3666printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3667set x ${MAKE-make}
3668ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3669if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3670then :
3671  printf %s "(cached) " >&6
3672else $as_nop
3673  cat >conftest.make <<\_ACEOF
3674SHELL = /bin/sh
3675all:
3676	@echo '@@@%%%=$(MAKE)=@@@%%%'
3677_ACEOF
3678# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3679case `${MAKE-make} -f conftest.make 2>/dev/null` in
3680  *@@@%%%=?*=@@@%%%*)
3681    eval ac_cv_prog_make_${ac_make}_set=yes;;
3682  *)
3683    eval ac_cv_prog_make_${ac_make}_set=no;;
3684esac
3685rm -f conftest.make
3686fi
3687if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3688  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3689printf "%s\n" "yes" >&6; }
3690  SET_MAKE=
3691else
3692  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693printf "%s\n" "no" >&6; }
3694  SET_MAKE="MAKE=${MAKE-make}"
3695fi
3696
3697rm -rf .tst 2>/dev/null
3698mkdir .tst 2>/dev/null
3699if test -d .tst; then
3700  am__leading_dot=.
3701else
3702  am__leading_dot=_
3703fi
3704rmdir .tst 2>/dev/null
3705
3706# Check whether --enable-silent-rules was given.
3707if test ${enable_silent_rules+y}
3708then :
3709  enableval=$enable_silent_rules;
3710fi
3711
3712case $enable_silent_rules in # (((
3713  yes) AM_DEFAULT_VERBOSITY=0;;
3714   no) AM_DEFAULT_VERBOSITY=1;;
3715    *) AM_DEFAULT_VERBOSITY=1;;
3716esac
3717am_make=${MAKE-make}
3718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3719printf %s "checking whether $am_make supports nested variables... " >&6; }
3720if test ${am_cv_make_support_nested_variables+y}
3721then :
3722  printf %s "(cached) " >&6
3723else $as_nop
3724  if printf "%s\n" 'TRUE=$(BAR$(V))
3725BAR0=false
3726BAR1=true
3727V=1
3728am__doit:
3729	@$(TRUE)
3730.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3731  am_cv_make_support_nested_variables=yes
3732else
3733  am_cv_make_support_nested_variables=no
3734fi
3735fi
3736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3737printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3738if test $am_cv_make_support_nested_variables = yes; then
3739    AM_V='$(V)'
3740  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3741else
3742  AM_V=$AM_DEFAULT_VERBOSITY
3743  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3744fi
3745AM_BACKSLASH='\'
3746
3747if test "`cd $srcdir && pwd`" != "`pwd`"; then
3748  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3749  # is not polluted with repeated "-I."
3750  am__isrc=' -I$(srcdir)'
3751  # test to see if srcdir already configured
3752  if test -f $srcdir/config.status; then
3753    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3754  fi
3755fi
3756
3757# test whether we have cygpath
3758if test -z "$CYGPATH_W"; then
3759  if (cygpath --version) >/dev/null 2>/dev/null; then
3760    CYGPATH_W='cygpath -w'
3761  else
3762    CYGPATH_W=echo
3763  fi
3764fi
3765
3766
3767# Define the identity of the package.
3768 PACKAGE='libmicrohttpd'
3769 VERSION='0.9.74'
3770
3771
3772printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3773
3774
3775printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3776
3777# Some tools Automake needs.
3778
3779ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3780
3781
3782AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3783
3784
3785AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3786
3787
3788AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3789
3790
3791MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3792
3793# For better backward compatibility.  To be removed once Automake 1.9.x
3794# dies out for good.  For more background, see:
3795# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3796# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3797mkdir_p='$(MKDIR_P)'
3798
3799# We need awk for the "check" target (and possibly the TAP driver).  The
3800# system "awk" is bad on some platforms.
3801# Always define AMTAR for backward compatibility.  Yes, it's still used
3802# in the wild :-(  We should find a proper way to deprecate it ...
3803AMTAR='$${TAR-tar}'
3804
3805
3806# We'll loop over all known methods to create a tar archive until one works.
3807_am_tools='gnutar  pax cpio none'
3808
3809am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3810
3811
3812
3813
3814
3815# Variables for tags utilities; see am/tags.am
3816if test -z "$CTAGS"; then
3817  CTAGS=ctags
3818fi
3819
3820if test -z "$ETAGS"; then
3821  ETAGS=etags
3822fi
3823
3824if test -z "$CSCOPE"; then
3825  CSCOPE=cscope
3826fi
3827
3828
3829
3830# POSIX will say in a future version that running "rm -f" with no argument
3831# is OK; and we want to be able to make that assumption in our Makefile
3832# recipes.  So use an aggressive probe to check that the usage we want is
3833# actually supported "in the wild" to an acceptable degree.
3834# See automake bug#10828.
3835# To make any issue more visible, cause the running configure to be aborted
3836# by default if the 'rm' program in use doesn't match our expectations; the
3837# user can still override this though.
3838if rm -f && rm -fr && rm -rf; then : OK; else
3839  cat >&2 <<'END'
3840Oops!
3841
3842Your 'rm' program seems unable to run without file operands specified
3843on the command line, even when the '-f' option is present.  This is contrary
3844to the behaviour of most rm programs out there, and not conforming with
3845the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3846
3847Please tell bug-automake@gnu.org about your system, including the value
3848of your $PATH and any error possibly output before this message.  This
3849can help us improve future automake versions.
3850
3851END
3852  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3853    echo 'Configuration will proceed anyway, since you have set the' >&2
3854    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3855    echo >&2
3856  else
3857    cat >&2 <<'END'
3858Aborting the configuration process, to ensure you take notice of the issue.
3859
3860You can download and install GNU coreutils to get an 'rm' implementation
3861that behaves properly: <https://www.gnu.org/software/coreutils/>.
3862
3863If you want to complete the configuration process using your problematic
3864'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3865to "yes", and re-run configure.
3866
3867END
3868    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3869  fi
3870fi
3871
3872ac_config_headers="$ac_config_headers MHD_config.h"
3873
3874
3875
3876LIB_VERSION_CURRENT=71
3877LIB_VERSION_REVISION=0
3878LIB_VERSION_AGE=59
3879
3880
3881
3882
3883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether z/OS special settings are required" >&5
3884printf %s "checking whether z/OS special settings are required... " >&6; }
3885if test `uname -s` = "OS/390"
3886then :
3887
3888# configure binaries for z/OS
3889  if test -z "$CC"
3890then :
3891  CC=`pwd`"/contrib/xcc"
3892         chmod +x $CC || true
3893fi
3894  if test -z "$CPP"
3895then :
3896  CPP="c89 -E"
3897fi
3898  if test -z "$CXXCPP"
3899then :
3900  CXXCPP="c++ -E -+"
3901fi
3902  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3903printf "%s\n" "yes" >&6; }
3904#  _CCC_CCMODE=1
3905#  _C89_CCMODE=1
3906
3907else $as_nop
3908  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909printf "%s\n" "no" >&6; }
3910
3911fi
3912
3913# Checks for programs.
3914for ac_prog in gawk mawk nawk awk
3915do
3916  # Extract the first word of "$ac_prog", so it can be a program name with args.
3917set dummy $ac_prog; ac_word=$2
3918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3919printf %s "checking for $ac_word... " >&6; }
3920if test ${ac_cv_prog_AWK+y}
3921then :
3922  printf %s "(cached) " >&6
3923else $as_nop
3924  if test -n "$AWK"; then
3925  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3926else
3927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928for as_dir in $PATH
3929do
3930  IFS=$as_save_IFS
3931  case $as_dir in #(((
3932    '') as_dir=./ ;;
3933    */) ;;
3934    *) as_dir=$as_dir/ ;;
3935  esac
3936    for ac_exec_ext in '' $ac_executable_extensions; do
3937  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3938    ac_cv_prog_AWK="$ac_prog"
3939    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3940    break 2
3941  fi
3942done
3943  done
3944IFS=$as_save_IFS
3945
3946fi
3947fi
3948AWK=$ac_cv_prog_AWK
3949if test -n "$AWK"; then
3950  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3951printf "%s\n" "$AWK" >&6; }
3952else
3953  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954printf "%s\n" "no" >&6; }
3955fi
3956
3957
3958  test -n "$AWK" && break
3959done
3960
3961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3962printf %s "checking for grep that handles long lines and -e... " >&6; }
3963if test ${ac_cv_path_GREP+y}
3964then :
3965  printf %s "(cached) " >&6
3966else $as_nop
3967  if test -z "$GREP"; then
3968  ac_path_GREP_found=false
3969  # Loop through the user's path and test for each of PROGNAME-LIST
3970  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3972do
3973  IFS=$as_save_IFS
3974  case $as_dir in #(((
3975    '') as_dir=./ ;;
3976    */) ;;
3977    *) as_dir=$as_dir/ ;;
3978  esac
3979    for ac_prog in grep ggrep
3980   do
3981    for ac_exec_ext in '' $ac_executable_extensions; do
3982      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
3983      as_fn_executable_p "$ac_path_GREP" || continue
3984# Check for GNU ac_path_GREP and select it if it is found.
3985  # Check for GNU $ac_path_GREP
3986case `"$ac_path_GREP" --version 2>&1` in
3987*GNU*)
3988  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3989*)
3990  ac_count=0
3991  printf %s 0123456789 >"conftest.in"
3992  while :
3993  do
3994    cat "conftest.in" "conftest.in" >"conftest.tmp"
3995    mv "conftest.tmp" "conftest.in"
3996    cp "conftest.in" "conftest.nl"
3997    printf "%s\n" 'GREP' >> "conftest.nl"
3998    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3999    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4000    as_fn_arith $ac_count + 1 && ac_count=$as_val
4001    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4002      # Best one so far, save it but keep looking for a better one
4003      ac_cv_path_GREP="$ac_path_GREP"
4004      ac_path_GREP_max=$ac_count
4005    fi
4006    # 10*(2^10) chars as input seems more than enough
4007    test $ac_count -gt 10 && break
4008  done
4009  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4010esac
4011
4012      $ac_path_GREP_found && break 3
4013    done
4014  done
4015  done
4016IFS=$as_save_IFS
4017  if test -z "$ac_cv_path_GREP"; then
4018    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4019  fi
4020else
4021  ac_cv_path_GREP=$GREP
4022fi
4023
4024fi
4025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4026printf "%s\n" "$ac_cv_path_GREP" >&6; }
4027 GREP="$ac_cv_path_GREP"
4028
4029
4030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4031printf %s "checking for fgrep... " >&6; }
4032if test ${ac_cv_path_FGREP+y}
4033then :
4034  printf %s "(cached) " >&6
4035else $as_nop
4036  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4037   then ac_cv_path_FGREP="$GREP -F"
4038   else
4039     if test -z "$FGREP"; then
4040  ac_path_FGREP_found=false
4041  # Loop through the user's path and test for each of PROGNAME-LIST
4042  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4044do
4045  IFS=$as_save_IFS
4046  case $as_dir in #(((
4047    '') as_dir=./ ;;
4048    */) ;;
4049    *) as_dir=$as_dir/ ;;
4050  esac
4051    for ac_prog in fgrep
4052   do
4053    for ac_exec_ext in '' $ac_executable_extensions; do
4054      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4055      as_fn_executable_p "$ac_path_FGREP" || continue
4056# Check for GNU ac_path_FGREP and select it if it is found.
4057  # Check for GNU $ac_path_FGREP
4058case `"$ac_path_FGREP" --version 2>&1` in
4059*GNU*)
4060  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4061*)
4062  ac_count=0
4063  printf %s 0123456789 >"conftest.in"
4064  while :
4065  do
4066    cat "conftest.in" "conftest.in" >"conftest.tmp"
4067    mv "conftest.tmp" "conftest.in"
4068    cp "conftest.in" "conftest.nl"
4069    printf "%s\n" 'FGREP' >> "conftest.nl"
4070    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4071    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4072    as_fn_arith $ac_count + 1 && ac_count=$as_val
4073    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4074      # Best one so far, save it but keep looking for a better one
4075      ac_cv_path_FGREP="$ac_path_FGREP"
4076      ac_path_FGREP_max=$ac_count
4077    fi
4078    # 10*(2^10) chars as input seems more than enough
4079    test $ac_count -gt 10 && break
4080  done
4081  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4082esac
4083
4084      $ac_path_FGREP_found && break 3
4085    done
4086  done
4087  done
4088IFS=$as_save_IFS
4089  if test -z "$ac_cv_path_FGREP"; then
4090    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4091  fi
4092else
4093  ac_cv_path_FGREP=$FGREP
4094fi
4095
4096   fi
4097fi
4098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4099printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4100 FGREP="$ac_cv_path_FGREP"
4101
4102
4103
4104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4105printf %s "checking whether ln -s works... " >&6; }
4106LN_S=$as_ln_s
4107if test "$LN_S" = "ln -s"; then
4108  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4109printf "%s\n" "yes" >&6; }
4110else
4111  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4112printf "%s\n" "no, using $LN_S" >&6; }
4113fi
4114
4115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4116printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4117set x ${MAKE-make}
4118ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4119if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4120then :
4121  printf %s "(cached) " >&6
4122else $as_nop
4123  cat >conftest.make <<\_ACEOF
4124SHELL = /bin/sh
4125all:
4126	@echo '@@@%%%=$(MAKE)=@@@%%%'
4127_ACEOF
4128# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4129case `${MAKE-make} -f conftest.make 2>/dev/null` in
4130  *@@@%%%=?*=@@@%%%*)
4131    eval ac_cv_prog_make_${ac_make}_set=yes;;
4132  *)
4133    eval ac_cv_prog_make_${ac_make}_set=no;;
4134esac
4135rm -f conftest.make
4136fi
4137if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4138  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4139printf "%s\n" "yes" >&6; }
4140  SET_MAKE=
4141else
4142  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143printf "%s\n" "no" >&6; }
4144  SET_MAKE="MAKE=${MAKE-make}"
4145fi
4146
4147
4148
4149  # Make sure we can run config.sub.
4150$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4151  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4152
4153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4154printf %s "checking build system type... " >&6; }
4155if test ${ac_cv_build+y}
4156then :
4157  printf %s "(cached) " >&6
4158else $as_nop
4159  ac_build_alias=$build_alias
4160test "x$ac_build_alias" = x &&
4161  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4162test "x$ac_build_alias" = x &&
4163  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4164ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4165  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4166
4167fi
4168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4169printf "%s\n" "$ac_cv_build" >&6; }
4170case $ac_cv_build in
4171*-*-*) ;;
4172*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4173esac
4174build=$ac_cv_build
4175ac_save_IFS=$IFS; IFS='-'
4176set x $ac_cv_build
4177shift
4178build_cpu=$1
4179build_vendor=$2
4180shift; shift
4181# Remember, the first character of IFS is used to create $*,
4182# except with old shells:
4183build_os=$*
4184IFS=$ac_save_IFS
4185case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4186
4187
4188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4189printf %s "checking host system type... " >&6; }
4190if test ${ac_cv_host+y}
4191then :
4192  printf %s "(cached) " >&6
4193else $as_nop
4194  if test "x$host_alias" = x; then
4195  ac_cv_host=$ac_cv_build
4196else
4197  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4198    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4199fi
4200
4201fi
4202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4203printf "%s\n" "$ac_cv_host" >&6; }
4204case $ac_cv_host in
4205*-*-*) ;;
4206*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4207esac
4208host=$ac_cv_host
4209ac_save_IFS=$IFS; IFS='-'
4210set x $ac_cv_host
4211shift
4212host_cpu=$1
4213host_vendor=$2
4214shift; shift
4215# Remember, the first character of IFS is used to create $*,
4216# except with old shells:
4217host_os=$*
4218IFS=$ac_save_IFS
4219case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4220
4221
4222
4223# Find C compiler and compiler options to support
4224# the latest C standard (C11). Fallback to C99 and C89
4225# if later C versions are not supported.
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235ac_ext=c
4236ac_cpp='$CPP $CPPFLAGS'
4237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4239ac_compiler_gnu=$ac_cv_c_compiler_gnu
4240if test -n "$ac_tool_prefix"; then
4241  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4242set dummy ${ac_tool_prefix}gcc; ac_word=$2
4243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4244printf %s "checking for $ac_word... " >&6; }
4245if test ${ac_cv_prog_CC+y}
4246then :
4247  printf %s "(cached) " >&6
4248else $as_nop
4249  if test -n "$CC"; then
4250  ac_cv_prog_CC="$CC" # Let the user override the test.
4251else
4252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253for as_dir in $PATH
4254do
4255  IFS=$as_save_IFS
4256  case $as_dir in #(((
4257    '') as_dir=./ ;;
4258    */) ;;
4259    *) as_dir=$as_dir/ ;;
4260  esac
4261    for ac_exec_ext in '' $ac_executable_extensions; do
4262  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4263    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4264    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4265    break 2
4266  fi
4267done
4268  done
4269IFS=$as_save_IFS
4270
4271fi
4272fi
4273CC=$ac_cv_prog_CC
4274if test -n "$CC"; then
4275  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4276printf "%s\n" "$CC" >&6; }
4277else
4278  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4279printf "%s\n" "no" >&6; }
4280fi
4281
4282
4283fi
4284if test -z "$ac_cv_prog_CC"; then
4285  ac_ct_CC=$CC
4286  # Extract the first word of "gcc", so it can be a program name with args.
4287set dummy gcc; ac_word=$2
4288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4289printf %s "checking for $ac_word... " >&6; }
4290if test ${ac_cv_prog_ac_ct_CC+y}
4291then :
4292  printf %s "(cached) " >&6
4293else $as_nop
4294  if test -n "$ac_ct_CC"; then
4295  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4296else
4297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298for as_dir in $PATH
4299do
4300  IFS=$as_save_IFS
4301  case $as_dir in #(((
4302    '') as_dir=./ ;;
4303    */) ;;
4304    *) as_dir=$as_dir/ ;;
4305  esac
4306    for ac_exec_ext in '' $ac_executable_extensions; do
4307  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4308    ac_cv_prog_ac_ct_CC="gcc"
4309    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4310    break 2
4311  fi
4312done
4313  done
4314IFS=$as_save_IFS
4315
4316fi
4317fi
4318ac_ct_CC=$ac_cv_prog_ac_ct_CC
4319if test -n "$ac_ct_CC"; then
4320  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4321printf "%s\n" "$ac_ct_CC" >&6; }
4322else
4323  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324printf "%s\n" "no" >&6; }
4325fi
4326
4327  if test "x$ac_ct_CC" = x; then
4328    CC=""
4329  else
4330    case $cross_compiling:$ac_tool_warned in
4331yes:)
4332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4333printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4334ac_tool_warned=yes ;;
4335esac
4336    CC=$ac_ct_CC
4337  fi
4338else
4339  CC="$ac_cv_prog_CC"
4340fi
4341
4342if test -z "$CC"; then
4343          if test -n "$ac_tool_prefix"; then
4344    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4345set dummy ${ac_tool_prefix}cc; ac_word=$2
4346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4347printf %s "checking for $ac_word... " >&6; }
4348if test ${ac_cv_prog_CC+y}
4349then :
4350  printf %s "(cached) " >&6
4351else $as_nop
4352  if test -n "$CC"; then
4353  ac_cv_prog_CC="$CC" # Let the user override the test.
4354else
4355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356for as_dir in $PATH
4357do
4358  IFS=$as_save_IFS
4359  case $as_dir in #(((
4360    '') as_dir=./ ;;
4361    */) ;;
4362    *) as_dir=$as_dir/ ;;
4363  esac
4364    for ac_exec_ext in '' $ac_executable_extensions; do
4365  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4366    ac_cv_prog_CC="${ac_tool_prefix}cc"
4367    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4368    break 2
4369  fi
4370done
4371  done
4372IFS=$as_save_IFS
4373
4374fi
4375fi
4376CC=$ac_cv_prog_CC
4377if test -n "$CC"; then
4378  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4379printf "%s\n" "$CC" >&6; }
4380else
4381  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382printf "%s\n" "no" >&6; }
4383fi
4384
4385
4386  fi
4387fi
4388if test -z "$CC"; then
4389  # Extract the first word of "cc", so it can be a program name with args.
4390set dummy cc; ac_word=$2
4391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4392printf %s "checking for $ac_word... " >&6; }
4393if test ${ac_cv_prog_CC+y}
4394then :
4395  printf %s "(cached) " >&6
4396else $as_nop
4397  if test -n "$CC"; then
4398  ac_cv_prog_CC="$CC" # Let the user override the test.
4399else
4400  ac_prog_rejected=no
4401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402for as_dir in $PATH
4403do
4404  IFS=$as_save_IFS
4405  case $as_dir in #(((
4406    '') as_dir=./ ;;
4407    */) ;;
4408    *) as_dir=$as_dir/ ;;
4409  esac
4410    for ac_exec_ext in '' $ac_executable_extensions; do
4411  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4412    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4413       ac_prog_rejected=yes
4414       continue
4415     fi
4416    ac_cv_prog_CC="cc"
4417    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4418    break 2
4419  fi
4420done
4421  done
4422IFS=$as_save_IFS
4423
4424if test $ac_prog_rejected = yes; then
4425  # We found a bogon in the path, so make sure we never use it.
4426  set dummy $ac_cv_prog_CC
4427  shift
4428  if test $# != 0; then
4429    # We chose a different compiler from the bogus one.
4430    # However, it has the same basename, so the bogon will be chosen
4431    # first if we set CC to just the basename; use the full file name.
4432    shift
4433    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4434  fi
4435fi
4436fi
4437fi
4438CC=$ac_cv_prog_CC
4439if test -n "$CC"; then
4440  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4441printf "%s\n" "$CC" >&6; }
4442else
4443  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444printf "%s\n" "no" >&6; }
4445fi
4446
4447
4448fi
4449if test -z "$CC"; then
4450  if test -n "$ac_tool_prefix"; then
4451  for ac_prog in cl.exe
4452  do
4453    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4454set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4456printf %s "checking for $ac_word... " >&6; }
4457if test ${ac_cv_prog_CC+y}
4458then :
4459  printf %s "(cached) " >&6
4460else $as_nop
4461  if test -n "$CC"; then
4462  ac_cv_prog_CC="$CC" # Let the user override the test.
4463else
4464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465for as_dir in $PATH
4466do
4467  IFS=$as_save_IFS
4468  case $as_dir in #(((
4469    '') as_dir=./ ;;
4470    */) ;;
4471    *) as_dir=$as_dir/ ;;
4472  esac
4473    for ac_exec_ext in '' $ac_executable_extensions; do
4474  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4475    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4476    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4477    break 2
4478  fi
4479done
4480  done
4481IFS=$as_save_IFS
4482
4483fi
4484fi
4485CC=$ac_cv_prog_CC
4486if test -n "$CC"; then
4487  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4488printf "%s\n" "$CC" >&6; }
4489else
4490  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491printf "%s\n" "no" >&6; }
4492fi
4493
4494
4495    test -n "$CC" && break
4496  done
4497fi
4498if test -z "$CC"; then
4499  ac_ct_CC=$CC
4500  for ac_prog in cl.exe
4501do
4502  # Extract the first word of "$ac_prog", so it can be a program name with args.
4503set dummy $ac_prog; ac_word=$2
4504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4505printf %s "checking for $ac_word... " >&6; }
4506if test ${ac_cv_prog_ac_ct_CC+y}
4507then :
4508  printf %s "(cached) " >&6
4509else $as_nop
4510  if test -n "$ac_ct_CC"; then
4511  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4512else
4513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514for as_dir in $PATH
4515do
4516  IFS=$as_save_IFS
4517  case $as_dir in #(((
4518    '') as_dir=./ ;;
4519    */) ;;
4520    *) as_dir=$as_dir/ ;;
4521  esac
4522    for ac_exec_ext in '' $ac_executable_extensions; do
4523  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4524    ac_cv_prog_ac_ct_CC="$ac_prog"
4525    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4526    break 2
4527  fi
4528done
4529  done
4530IFS=$as_save_IFS
4531
4532fi
4533fi
4534ac_ct_CC=$ac_cv_prog_ac_ct_CC
4535if test -n "$ac_ct_CC"; then
4536  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4537printf "%s\n" "$ac_ct_CC" >&6; }
4538else
4539  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540printf "%s\n" "no" >&6; }
4541fi
4542
4543
4544  test -n "$ac_ct_CC" && break
4545done
4546
4547  if test "x$ac_ct_CC" = x; then
4548    CC=""
4549  else
4550    case $cross_compiling:$ac_tool_warned in
4551yes:)
4552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4553printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4554ac_tool_warned=yes ;;
4555esac
4556    CC=$ac_ct_CC
4557  fi
4558fi
4559
4560fi
4561if test -z "$CC"; then
4562  if test -n "$ac_tool_prefix"; then
4563  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4564set dummy ${ac_tool_prefix}clang; ac_word=$2
4565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4566printf %s "checking for $ac_word... " >&6; }
4567if test ${ac_cv_prog_CC+y}
4568then :
4569  printf %s "(cached) " >&6
4570else $as_nop
4571  if test -n "$CC"; then
4572  ac_cv_prog_CC="$CC" # Let the user override the test.
4573else
4574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575for as_dir in $PATH
4576do
4577  IFS=$as_save_IFS
4578  case $as_dir in #(((
4579    '') as_dir=./ ;;
4580    */) ;;
4581    *) as_dir=$as_dir/ ;;
4582  esac
4583    for ac_exec_ext in '' $ac_executable_extensions; do
4584  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4585    ac_cv_prog_CC="${ac_tool_prefix}clang"
4586    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4587    break 2
4588  fi
4589done
4590  done
4591IFS=$as_save_IFS
4592
4593fi
4594fi
4595CC=$ac_cv_prog_CC
4596if test -n "$CC"; then
4597  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4598printf "%s\n" "$CC" >&6; }
4599else
4600  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601printf "%s\n" "no" >&6; }
4602fi
4603
4604
4605fi
4606if test -z "$ac_cv_prog_CC"; then
4607  ac_ct_CC=$CC
4608  # Extract the first word of "clang", so it can be a program name with args.
4609set dummy clang; ac_word=$2
4610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4611printf %s "checking for $ac_word... " >&6; }
4612if test ${ac_cv_prog_ac_ct_CC+y}
4613then :
4614  printf %s "(cached) " >&6
4615else $as_nop
4616  if test -n "$ac_ct_CC"; then
4617  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4618else
4619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620for as_dir in $PATH
4621do
4622  IFS=$as_save_IFS
4623  case $as_dir in #(((
4624    '') as_dir=./ ;;
4625    */) ;;
4626    *) as_dir=$as_dir/ ;;
4627  esac
4628    for ac_exec_ext in '' $ac_executable_extensions; do
4629  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4630    ac_cv_prog_ac_ct_CC="clang"
4631    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4632    break 2
4633  fi
4634done
4635  done
4636IFS=$as_save_IFS
4637
4638fi
4639fi
4640ac_ct_CC=$ac_cv_prog_ac_ct_CC
4641if test -n "$ac_ct_CC"; then
4642  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4643printf "%s\n" "$ac_ct_CC" >&6; }
4644else
4645  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646printf "%s\n" "no" >&6; }
4647fi
4648
4649  if test "x$ac_ct_CC" = x; then
4650    CC=""
4651  else
4652    case $cross_compiling:$ac_tool_warned in
4653yes:)
4654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4655printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4656ac_tool_warned=yes ;;
4657esac
4658    CC=$ac_ct_CC
4659  fi
4660else
4661  CC="$ac_cv_prog_CC"
4662fi
4663
4664fi
4665
4666
4667test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4668printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4669as_fn_error $? "no acceptable C compiler found in \$PATH
4670See \`config.log' for more details" "$LINENO" 5; }
4671
4672# Provide some information about the compiler.
4673printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4674set X $ac_compile
4675ac_compiler=$2
4676for ac_option in --version -v -V -qversion -version; do
4677  { { ac_try="$ac_compiler $ac_option >&5"
4678case "(($ac_try" in
4679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680  *) ac_try_echo=$ac_try;;
4681esac
4682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4683printf "%s\n" "$ac_try_echo"; } >&5
4684  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4685  ac_status=$?
4686  if test -s conftest.err; then
4687    sed '10a\
4688... rest of stderr output deleted ...
4689         10q' conftest.err >conftest.er1
4690    cat conftest.er1 >&5
4691  fi
4692  rm -f conftest.er1 conftest.err
4693  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4694  test $ac_status = 0; }
4695done
4696
4697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698/* end confdefs.h.  */
4699
4700int
4701main (void)
4702{
4703
4704  ;
4705  return 0;
4706}
4707_ACEOF
4708ac_clean_files_save=$ac_clean_files
4709ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4710# Try to create an executable without -o first, disregard a.out.
4711# It will help us diagnose broken compilers, and finding out an intuition
4712# of exeext.
4713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4714printf %s "checking whether the C compiler works... " >&6; }
4715ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4716
4717# The possible output files:
4718ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4719
4720ac_rmfiles=
4721for ac_file in $ac_files
4722do
4723  case $ac_file in
4724    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4725    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4726  esac
4727done
4728rm -f $ac_rmfiles
4729
4730if { { ac_try="$ac_link_default"
4731case "(($ac_try" in
4732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4733  *) ac_try_echo=$ac_try;;
4734esac
4735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4736printf "%s\n" "$ac_try_echo"; } >&5
4737  (eval "$ac_link_default") 2>&5
4738  ac_status=$?
4739  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4740  test $ac_status = 0; }
4741then :
4742  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4743# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4744# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4745# so that the user can short-circuit this test for compilers unknown to
4746# Autoconf.
4747for ac_file in $ac_files ''
4748do
4749  test -f "$ac_file" || continue
4750  case $ac_file in
4751    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4752	;;
4753    [ab].out )
4754	# We found the default executable, but exeext='' is most
4755	# certainly right.
4756	break;;
4757    *.* )
4758	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4759	then :; else
4760	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4761	fi
4762	# We set ac_cv_exeext here because the later test for it is not
4763	# safe: cross compilers may not add the suffix if given an `-o'
4764	# argument, so we may need to know it at that point already.
4765	# Even if this section looks crufty: it has the advantage of
4766	# actually working.
4767	break;;
4768    * )
4769	break;;
4770  esac
4771done
4772test "$ac_cv_exeext" = no && ac_cv_exeext=
4773
4774else $as_nop
4775  ac_file=''
4776fi
4777if test -z "$ac_file"
4778then :
4779  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4780printf "%s\n" "no" >&6; }
4781printf "%s\n" "$as_me: failed program was:" >&5
4782sed 's/^/| /' conftest.$ac_ext >&5
4783
4784{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4785printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4786as_fn_error 77 "C compiler cannot create executables
4787See \`config.log' for more details" "$LINENO" 5; }
4788else $as_nop
4789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4790printf "%s\n" "yes" >&6; }
4791fi
4792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4793printf %s "checking for C compiler default output file name... " >&6; }
4794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4795printf "%s\n" "$ac_file" >&6; }
4796ac_exeext=$ac_cv_exeext
4797
4798rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4799ac_clean_files=$ac_clean_files_save
4800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4801printf %s "checking for suffix of executables... " >&6; }
4802if { { ac_try="$ac_link"
4803case "(($ac_try" in
4804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805  *) ac_try_echo=$ac_try;;
4806esac
4807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4808printf "%s\n" "$ac_try_echo"; } >&5
4809  (eval "$ac_link") 2>&5
4810  ac_status=$?
4811  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4812  test $ac_status = 0; }
4813then :
4814  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4815# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4816# work properly (i.e., refer to `conftest.exe'), while it won't with
4817# `rm'.
4818for ac_file in conftest.exe conftest conftest.*; do
4819  test -f "$ac_file" || continue
4820  case $ac_file in
4821    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4822    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4823	  break;;
4824    * ) break;;
4825  esac
4826done
4827else $as_nop
4828  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4829printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4830as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4831See \`config.log' for more details" "$LINENO" 5; }
4832fi
4833rm -f conftest conftest$ac_cv_exeext
4834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4835printf "%s\n" "$ac_cv_exeext" >&6; }
4836
4837rm -f conftest.$ac_ext
4838EXEEXT=$ac_cv_exeext
4839ac_exeext=$EXEEXT
4840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4841/* end confdefs.h.  */
4842#include <stdio.h>
4843int
4844main (void)
4845{
4846FILE *f = fopen ("conftest.out", "w");
4847 return ferror (f) || fclose (f) != 0;
4848
4849  ;
4850  return 0;
4851}
4852_ACEOF
4853ac_clean_files="$ac_clean_files conftest.out"
4854# Check that the compiler produces executables we can run.  If not, either
4855# the compiler is broken, or we cross compile.
4856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4857printf %s "checking whether we are cross compiling... " >&6; }
4858if test "$cross_compiling" != yes; then
4859  { { ac_try="$ac_link"
4860case "(($ac_try" in
4861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4862  *) ac_try_echo=$ac_try;;
4863esac
4864eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4865printf "%s\n" "$ac_try_echo"; } >&5
4866  (eval "$ac_link") 2>&5
4867  ac_status=$?
4868  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4869  test $ac_status = 0; }
4870  if { ac_try='./conftest$ac_cv_exeext'
4871  { { case "(($ac_try" in
4872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4873  *) ac_try_echo=$ac_try;;
4874esac
4875eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4876printf "%s\n" "$ac_try_echo"; } >&5
4877  (eval "$ac_try") 2>&5
4878  ac_status=$?
4879  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4880  test $ac_status = 0; }; }; then
4881    cross_compiling=no
4882  else
4883    if test "$cross_compiling" = maybe; then
4884	cross_compiling=yes
4885    else
4886	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4887printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4888as_fn_error 77 "cannot run C compiled programs.
4889If you meant to cross compile, use \`--host'.
4890See \`config.log' for more details" "$LINENO" 5; }
4891    fi
4892  fi
4893fi
4894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4895printf "%s\n" "$cross_compiling" >&6; }
4896
4897rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4898ac_clean_files=$ac_clean_files_save
4899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4900printf %s "checking for suffix of object files... " >&6; }
4901if test ${ac_cv_objext+y}
4902then :
4903  printf %s "(cached) " >&6
4904else $as_nop
4905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906/* end confdefs.h.  */
4907
4908int
4909main (void)
4910{
4911
4912  ;
4913  return 0;
4914}
4915_ACEOF
4916rm -f conftest.o conftest.obj
4917if { { ac_try="$ac_compile"
4918case "(($ac_try" in
4919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920  *) ac_try_echo=$ac_try;;
4921esac
4922eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4923printf "%s\n" "$ac_try_echo"; } >&5
4924  (eval "$ac_compile") 2>&5
4925  ac_status=$?
4926  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4927  test $ac_status = 0; }
4928then :
4929  for ac_file in conftest.o conftest.obj conftest.*; do
4930  test -f "$ac_file" || continue;
4931  case $ac_file in
4932    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4933    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4934       break;;
4935  esac
4936done
4937else $as_nop
4938  printf "%s\n" "$as_me: failed program was:" >&5
4939sed 's/^/| /' conftest.$ac_ext >&5
4940
4941{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4942printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4943as_fn_error $? "cannot compute suffix of object files: cannot compile
4944See \`config.log' for more details" "$LINENO" 5; }
4945fi
4946rm -f conftest.$ac_cv_objext conftest.$ac_ext
4947fi
4948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4949printf "%s\n" "$ac_cv_objext" >&6; }
4950OBJEXT=$ac_cv_objext
4951ac_objext=$OBJEXT
4952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4953printf %s "checking whether the compiler supports GNU C... " >&6; }
4954if test ${ac_cv_c_compiler_gnu+y}
4955then :
4956  printf %s "(cached) " >&6
4957else $as_nop
4958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959/* end confdefs.h.  */
4960
4961int
4962main (void)
4963{
4964#ifndef __GNUC__
4965       choke me
4966#endif
4967
4968  ;
4969  return 0;
4970}
4971_ACEOF
4972if ac_fn_c_try_compile "$LINENO"
4973then :
4974  ac_compiler_gnu=yes
4975else $as_nop
4976  ac_compiler_gnu=no
4977fi
4978rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4979ac_cv_c_compiler_gnu=$ac_compiler_gnu
4980
4981fi
4982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4983printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4984ac_compiler_gnu=$ac_cv_c_compiler_gnu
4985
4986if test $ac_compiler_gnu = yes; then
4987  GCC=yes
4988else
4989  GCC=
4990fi
4991ac_test_CFLAGS=${CFLAGS+y}
4992ac_save_CFLAGS=$CFLAGS
4993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4994printf %s "checking whether $CC accepts -g... " >&6; }
4995if test ${ac_cv_prog_cc_g+y}
4996then :
4997  printf %s "(cached) " >&6
4998else $as_nop
4999  ac_save_c_werror_flag=$ac_c_werror_flag
5000   ac_c_werror_flag=yes
5001   ac_cv_prog_cc_g=no
5002   CFLAGS="-g"
5003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004/* end confdefs.h.  */
5005
5006int
5007main (void)
5008{
5009
5010  ;
5011  return 0;
5012}
5013_ACEOF
5014if ac_fn_c_try_compile "$LINENO"
5015then :
5016  ac_cv_prog_cc_g=yes
5017else $as_nop
5018  CFLAGS=""
5019      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020/* end confdefs.h.  */
5021
5022int
5023main (void)
5024{
5025
5026  ;
5027  return 0;
5028}
5029_ACEOF
5030if ac_fn_c_try_compile "$LINENO"
5031then :
5032
5033else $as_nop
5034  ac_c_werror_flag=$ac_save_c_werror_flag
5035	 CFLAGS="-g"
5036	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037/* end confdefs.h.  */
5038
5039int
5040main (void)
5041{
5042
5043  ;
5044  return 0;
5045}
5046_ACEOF
5047if ac_fn_c_try_compile "$LINENO"
5048then :
5049  ac_cv_prog_cc_g=yes
5050fi
5051rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5052fi
5053rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5054fi
5055rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5056   ac_c_werror_flag=$ac_save_c_werror_flag
5057fi
5058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5059printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5060if test $ac_test_CFLAGS; then
5061  CFLAGS=$ac_save_CFLAGS
5062elif test $ac_cv_prog_cc_g = yes; then
5063  if test "$GCC" = yes; then
5064    CFLAGS="-g -O2"
5065  else
5066    CFLAGS="-g"
5067  fi
5068else
5069  if test "$GCC" = yes; then
5070    CFLAGS="-O2"
5071  else
5072    CFLAGS=
5073  fi
5074fi
5075ac_prog_cc_stdc=no
5076if test x$ac_prog_cc_stdc = xno
5077then :
5078  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5079printf %s "checking for $CC option to enable C11 features... " >&6; }
5080if test ${ac_cv_prog_cc_c11+y}
5081then :
5082  printf %s "(cached) " >&6
5083else $as_nop
5084  ac_cv_prog_cc_c11=no
5085ac_save_CC=$CC
5086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087/* end confdefs.h.  */
5088$ac_c_conftest_c11_program
5089_ACEOF
5090for ac_arg in '' -std=gnu11
5091do
5092  CC="$ac_save_CC $ac_arg"
5093  if ac_fn_c_try_compile "$LINENO"
5094then :
5095  ac_cv_prog_cc_c11=$ac_arg
5096fi
5097rm -f core conftest.err conftest.$ac_objext conftest.beam
5098  test "x$ac_cv_prog_cc_c11" != "xno" && break
5099done
5100rm -f conftest.$ac_ext
5101CC=$ac_save_CC
5102fi
5103
5104if test "x$ac_cv_prog_cc_c11" = xno
5105then :
5106  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5107printf "%s\n" "unsupported" >&6; }
5108else $as_nop
5109  if test "x$ac_cv_prog_cc_c11" = x
5110then :
5111  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5112printf "%s\n" "none needed" >&6; }
5113else $as_nop
5114  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5115printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5116     CC="$CC $ac_cv_prog_cc_c11"
5117fi
5118  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5119  ac_prog_cc_stdc=c11
5120fi
5121fi
5122if test x$ac_prog_cc_stdc = xno
5123then :
5124  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5125printf %s "checking for $CC option to enable C99 features... " >&6; }
5126if test ${ac_cv_prog_cc_c99+y}
5127then :
5128  printf %s "(cached) " >&6
5129else $as_nop
5130  ac_cv_prog_cc_c99=no
5131ac_save_CC=$CC
5132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133/* end confdefs.h.  */
5134$ac_c_conftest_c99_program
5135_ACEOF
5136for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5137do
5138  CC="$ac_save_CC $ac_arg"
5139  if ac_fn_c_try_compile "$LINENO"
5140then :
5141  ac_cv_prog_cc_c99=$ac_arg
5142fi
5143rm -f core conftest.err conftest.$ac_objext conftest.beam
5144  test "x$ac_cv_prog_cc_c99" != "xno" && break
5145done
5146rm -f conftest.$ac_ext
5147CC=$ac_save_CC
5148fi
5149
5150if test "x$ac_cv_prog_cc_c99" = xno
5151then :
5152  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5153printf "%s\n" "unsupported" >&6; }
5154else $as_nop
5155  if test "x$ac_cv_prog_cc_c99" = x
5156then :
5157  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5158printf "%s\n" "none needed" >&6; }
5159else $as_nop
5160  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5161printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5162     CC="$CC $ac_cv_prog_cc_c99"
5163fi
5164  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5165  ac_prog_cc_stdc=c99
5166fi
5167fi
5168if test x$ac_prog_cc_stdc = xno
5169then :
5170  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5171printf %s "checking for $CC option to enable C89 features... " >&6; }
5172if test ${ac_cv_prog_cc_c89+y}
5173then :
5174  printf %s "(cached) " >&6
5175else $as_nop
5176  ac_cv_prog_cc_c89=no
5177ac_save_CC=$CC
5178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179/* end confdefs.h.  */
5180$ac_c_conftest_c89_program
5181_ACEOF
5182for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5183do
5184  CC="$ac_save_CC $ac_arg"
5185  if ac_fn_c_try_compile "$LINENO"
5186then :
5187  ac_cv_prog_cc_c89=$ac_arg
5188fi
5189rm -f core conftest.err conftest.$ac_objext conftest.beam
5190  test "x$ac_cv_prog_cc_c89" != "xno" && break
5191done
5192rm -f conftest.$ac_ext
5193CC=$ac_save_CC
5194fi
5195
5196if test "x$ac_cv_prog_cc_c89" = xno
5197then :
5198  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5199printf "%s\n" "unsupported" >&6; }
5200else $as_nop
5201  if test "x$ac_cv_prog_cc_c89" = x
5202then :
5203  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5204printf "%s\n" "none needed" >&6; }
5205else $as_nop
5206  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5207printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5208     CC="$CC $ac_cv_prog_cc_c89"
5209fi
5210  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5211  ac_prog_cc_stdc=c89
5212fi
5213fi
5214
5215ac_ext=c
5216ac_cpp='$CPP $CPPFLAGS'
5217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5219ac_compiler_gnu=$ac_cv_c_compiler_gnu
5220
5221
5222  ac_ext=c
5223ac_cpp='$CPP $CPPFLAGS'
5224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5226ac_compiler_gnu=$ac_cv_c_compiler_gnu
5227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5228printf %s "checking whether $CC understands -c and -o together... " >&6; }
5229if test ${am_cv_prog_cc_c_o+y}
5230then :
5231  printf %s "(cached) " >&6
5232else $as_nop
5233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234/* end confdefs.h.  */
5235
5236int
5237main (void)
5238{
5239
5240  ;
5241  return 0;
5242}
5243_ACEOF
5244  # Make sure it works both with $CC and with simple cc.
5245  # Following AC_PROG_CC_C_O, we do the test twice because some
5246  # compilers refuse to overwrite an existing .o file with -o,
5247  # though they will create one.
5248  am_cv_prog_cc_c_o=yes
5249  for am_i in 1 2; do
5250    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5251   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5252   ac_status=$?
5253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254   (exit $ac_status); } \
5255         && test -f conftest2.$ac_objext; then
5256      : OK
5257    else
5258      am_cv_prog_cc_c_o=no
5259      break
5260    fi
5261  done
5262  rm -f core conftest*
5263  unset am_i
5264fi
5265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5266printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5267if test "$am_cv_prog_cc_c_o" != yes; then
5268   # Losing compiler, so override with the script.
5269   # FIXME: It is wrong to rewrite CC.
5270   # But if we don't then we get into trouble of one sort or another.
5271   # A longer-term fix would be to have automake use am__CC in this case,
5272   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5273   CC="$am_aux_dir/compile $CC"
5274fi
5275ac_ext=c
5276ac_cpp='$CPP $CPPFLAGS'
5277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5279ac_compiler_gnu=$ac_cv_c_compiler_gnu
5280
5281DEPDIR="${am__leading_dot}deps"
5282
5283ac_config_commands="$ac_config_commands depfiles"
5284
5285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5286printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5287cat > confinc.mk << 'END'
5288am__doit:
5289	@echo this is the am__doit target >confinc.out
5290.PHONY: am__doit
5291END
5292am__include="#"
5293am__quote=
5294# BSD make does it like this.
5295echo '.include "confinc.mk" # ignored' > confmf.BSD
5296# Other make implementations (GNU, Solaris 10, AIX) do it like this.
5297echo 'include confinc.mk # ignored' > confmf.GNU
5298_am_result=no
5299for s in GNU BSD; do
5300  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5301   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5302   ac_status=$?
5303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304   (exit $ac_status); }
5305  case $?:`cat confinc.out 2>/dev/null` in #(
5306  '0:this is the am__doit target') :
5307    case $s in #(
5308  BSD) :
5309    am__include='.include' am__quote='"' ;; #(
5310  *) :
5311    am__include='include' am__quote='' ;;
5312esac ;; #(
5313  *) :
5314     ;;
5315esac
5316  if test "$am__include" != "#"; then
5317    _am_result="yes ($s style)"
5318    break
5319  fi
5320done
5321rm -f confinc.* confmf.*
5322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5323printf "%s\n" "${_am_result}" >&6; }
5324
5325# Check whether --enable-dependency-tracking was given.
5326if test ${enable_dependency_tracking+y}
5327then :
5328  enableval=$enable_dependency_tracking;
5329fi
5330
5331if test "x$enable_dependency_tracking" != xno; then
5332  am_depcomp="$ac_aux_dir/depcomp"
5333  AMDEPBACKSLASH='\'
5334  am__nodep='_no'
5335fi
5336 if test "x$enable_dependency_tracking" != xno; then
5337  AMDEP_TRUE=
5338  AMDEP_FALSE='#'
5339else
5340  AMDEP_TRUE='#'
5341  AMDEP_FALSE=
5342fi
5343
5344
5345
5346depcc="$CC"   am_compiler_list=
5347
5348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5349printf %s "checking dependency style of $depcc... " >&6; }
5350if test ${am_cv_CC_dependencies_compiler_type+y}
5351then :
5352  printf %s "(cached) " >&6
5353else $as_nop
5354  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5355  # We make a subdir and do the tests there.  Otherwise we can end up
5356  # making bogus files that we don't know about and never remove.  For
5357  # instance it was reported that on HP-UX the gcc test will end up
5358  # making a dummy file named 'D' -- because '-MD' means "put the output
5359  # in D".
5360  rm -rf conftest.dir
5361  mkdir conftest.dir
5362  # Copy depcomp to subdir because otherwise we won't find it if we're
5363  # using a relative directory.
5364  cp "$am_depcomp" conftest.dir
5365  cd conftest.dir
5366  # We will build objects and dependencies in a subdirectory because
5367  # it helps to detect inapplicable dependency modes.  For instance
5368  # both Tru64's cc and ICC support -MD to output dependencies as a
5369  # side effect of compilation, but ICC will put the dependencies in
5370  # the current directory while Tru64 will put them in the object
5371  # directory.
5372  mkdir sub
5373
5374  am_cv_CC_dependencies_compiler_type=none
5375  if test "$am_compiler_list" = ""; then
5376     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5377  fi
5378  am__universal=false
5379  case " $depcc " in #(
5380     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5381     esac
5382
5383  for depmode in $am_compiler_list; do
5384    # Setup a source with many dependencies, because some compilers
5385    # like to wrap large dependency lists on column 80 (with \), and
5386    # we should not choose a depcomp mode which is confused by this.
5387    #
5388    # We need to recreate these files for each test, as the compiler may
5389    # overwrite some of them when testing with obscure command lines.
5390    # This happens at least with the AIX C compiler.
5391    : > sub/conftest.c
5392    for i in 1 2 3 4 5 6; do
5393      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5394      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5395      # Solaris 10 /bin/sh.
5396      echo '/* dummy */' > sub/conftst$i.h
5397    done
5398    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5399
5400    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5401    # mode.  It turns out that the SunPro C++ compiler does not properly
5402    # handle '-M -o', and we need to detect this.  Also, some Intel
5403    # versions had trouble with output in subdirs.
5404    am__obj=sub/conftest.${OBJEXT-o}
5405    am__minus_obj="-o $am__obj"
5406    case $depmode in
5407    gcc)
5408      # This depmode causes a compiler race in universal mode.
5409      test "$am__universal" = false || continue
5410      ;;
5411    nosideeffect)
5412      # After this tag, mechanisms are not by side-effect, so they'll
5413      # only be used when explicitly requested.
5414      if test "x$enable_dependency_tracking" = xyes; then
5415	continue
5416      else
5417	break
5418      fi
5419      ;;
5420    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5421      # This compiler won't grok '-c -o', but also, the minuso test has
5422      # not run yet.  These depmodes are late enough in the game, and
5423      # so weak that their functioning should not be impacted.
5424      am__obj=conftest.${OBJEXT-o}
5425      am__minus_obj=
5426      ;;
5427    none) break ;;
5428    esac
5429    if depmode=$depmode \
5430       source=sub/conftest.c object=$am__obj \
5431       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5432       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5433         >/dev/null 2>conftest.err &&
5434       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5435       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5436       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5437       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5438      # icc doesn't choke on unknown options, it will just issue warnings
5439      # or remarks (even with -Werror).  So we grep stderr for any message
5440      # that says an option was ignored or not supported.
5441      # When given -MP, icc 7.0 and 7.1 complain thusly:
5442      #   icc: Command line warning: ignoring option '-M'; no argument required
5443      # The diagnosis changed in icc 8.0:
5444      #   icc: Command line remark: option '-MP' not supported
5445      if (grep 'ignoring option' conftest.err ||
5446          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5447        am_cv_CC_dependencies_compiler_type=$depmode
5448        break
5449      fi
5450    fi
5451  done
5452
5453  cd ..
5454  rm -rf conftest.dir
5455else
5456  am_cv_CC_dependencies_compiler_type=none
5457fi
5458
5459fi
5460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5461printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5462CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5463
5464 if
5465  test "x$enable_dependency_tracking" != xno \
5466  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5467  am__fastdepCC_TRUE=
5468  am__fastdepCC_FALSE='#'
5469else
5470  am__fastdepCC_TRUE='#'
5471  am__fastdepCC_FALSE=
5472fi
5473
5474
5475
5476
5477ac_ext=c
5478ac_cpp='$CPP $CPPFLAGS'
5479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5481ac_compiler_gnu=$ac_cv_c_compiler_gnu
5482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5483printf %s "checking how to run the C preprocessor... " >&6; }
5484# On Suns, sometimes $CPP names a directory.
5485if test -n "$CPP" && test -d "$CPP"; then
5486  CPP=
5487fi
5488if test -z "$CPP"; then
5489  if test ${ac_cv_prog_CPP+y}
5490then :
5491  printf %s "(cached) " >&6
5492else $as_nop
5493      # Double quotes because $CC needs to be expanded
5494    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5495    do
5496      ac_preproc_ok=false
5497for ac_c_preproc_warn_flag in '' yes
5498do
5499  # Use a header file that comes with gcc, so configuring glibc
5500  # with a fresh cross-compiler works.
5501  # On the NeXT, cc -E runs the code through the compiler's parser,
5502  # not just through cpp. "Syntax error" is here to catch this case.
5503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5504/* end confdefs.h.  */
5505#include <limits.h>
5506		     Syntax error
5507_ACEOF
5508if ac_fn_c_try_cpp "$LINENO"
5509then :
5510
5511else $as_nop
5512  # Broken: fails on valid input.
5513continue
5514fi
5515rm -f conftest.err conftest.i conftest.$ac_ext
5516
5517  # OK, works on sane cases.  Now check whether nonexistent headers
5518  # can be detected and how.
5519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520/* end confdefs.h.  */
5521#include <ac_nonexistent.h>
5522_ACEOF
5523if ac_fn_c_try_cpp "$LINENO"
5524then :
5525  # Broken: success on invalid input.
5526continue
5527else $as_nop
5528  # Passes both tests.
5529ac_preproc_ok=:
5530break
5531fi
5532rm -f conftest.err conftest.i conftest.$ac_ext
5533
5534done
5535# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5536rm -f conftest.i conftest.err conftest.$ac_ext
5537if $ac_preproc_ok
5538then :
5539  break
5540fi
5541
5542    done
5543    ac_cv_prog_CPP=$CPP
5544
5545fi
5546  CPP=$ac_cv_prog_CPP
5547else
5548  ac_cv_prog_CPP=$CPP
5549fi
5550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5551printf "%s\n" "$CPP" >&6; }
5552ac_preproc_ok=false
5553for ac_c_preproc_warn_flag in '' yes
5554do
5555  # Use a header file that comes with gcc, so configuring glibc
5556  # with a fresh cross-compiler works.
5557  # On the NeXT, cc -E runs the code through the compiler's parser,
5558  # not just through cpp. "Syntax error" is here to catch this case.
5559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560/* end confdefs.h.  */
5561#include <limits.h>
5562		     Syntax error
5563_ACEOF
5564if ac_fn_c_try_cpp "$LINENO"
5565then :
5566
5567else $as_nop
5568  # Broken: fails on valid input.
5569continue
5570fi
5571rm -f conftest.err conftest.i conftest.$ac_ext
5572
5573  # OK, works on sane cases.  Now check whether nonexistent headers
5574  # can be detected and how.
5575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576/* end confdefs.h.  */
5577#include <ac_nonexistent.h>
5578_ACEOF
5579if ac_fn_c_try_cpp "$LINENO"
5580then :
5581  # Broken: success on invalid input.
5582continue
5583else $as_nop
5584  # Passes both tests.
5585ac_preproc_ok=:
5586break
5587fi
5588rm -f conftest.err conftest.i conftest.$ac_ext
5589
5590done
5591# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5592rm -f conftest.i conftest.err conftest.$ac_ext
5593if $ac_preproc_ok
5594then :
5595
5596else $as_nop
5597  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5598printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5599as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5600See \`config.log' for more details" "$LINENO" 5; }
5601fi
5602
5603ac_ext=c
5604ac_cpp='$CPP $CPPFLAGS'
5605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5607ac_compiler_gnu=$ac_cv_c_compiler_gnu
5608
5609
5610            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for presence of stdio.h" >&5
5611printf %s "checking for presence of stdio.h... " >&6; }
5612if test ${mhd_cv_header_stdio_h_present+y}
5613then :
5614  printf %s "(cached) " >&6
5615else $as_nop
5616          cat > conftest.$ac_ext <<_ACEOF
5617#include <stdio.h>
5618_ACEOF
5619    if ac_fn_c_try_cpp "$LINENO"
5620then :
5621  mhd_cv_header_stdio_h_present="yes"
5622else $as_nop
5623  mhd_cv_header_stdio_h_present="no"
5624
5625fi
5626rm -f conftest.err conftest.i
5627    rm -f conftest.$ac_ext
5628
5629fi
5630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_header_stdio_h_present" >&5
5631printf "%s\n" "$mhd_cv_header_stdio_h_present" >&6; }
5632
5633        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for presence of wchar.h" >&5
5634printf %s "checking for presence of wchar.h... " >&6; }
5635if test ${mhd_cv_header_wchar_h_present+y}
5636then :
5637  printf %s "(cached) " >&6
5638else $as_nop
5639          cat > conftest.$ac_ext <<_ACEOF
5640#include <wchar.h>
5641_ACEOF
5642    if ac_fn_c_try_cpp "$LINENO"
5643then :
5644  mhd_cv_header_wchar_h_present="yes"
5645else $as_nop
5646  mhd_cv_header_wchar_h_present="no"
5647
5648fi
5649rm -f conftest.err conftest.i
5650    rm -f conftest.$ac_ext
5651
5652fi
5653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_header_wchar_h_present" >&5
5654printf "%s\n" "$mhd_cv_header_wchar_h_present" >&6; }
5655
5656        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for presence of stdlib.h" >&5
5657printf %s "checking for presence of stdlib.h... " >&6; }
5658if test ${mhd_cv_header_stdlib_h_present+y}
5659then :
5660  printf %s "(cached) " >&6
5661else $as_nop
5662          cat > conftest.$ac_ext <<_ACEOF
5663#include <stdlib.h>
5664_ACEOF
5665    if ac_fn_c_try_cpp "$LINENO"
5666then :
5667  mhd_cv_header_stdlib_h_present="yes"
5668else $as_nop
5669  mhd_cv_header_stdlib_h_present="no"
5670
5671fi
5672rm -f conftest.err conftest.i
5673    rm -f conftest.$ac_ext
5674
5675fi
5676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_header_stdlib_h_present" >&5
5677printf "%s\n" "$mhd_cv_header_stdlib_h_present" >&6; }
5678
5679        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for presence of string.h" >&5
5680printf %s "checking for presence of string.h... " >&6; }
5681if test ${mhd_cv_header_string_h_present+y}
5682then :
5683  printf %s "(cached) " >&6
5684else $as_nop
5685          cat > conftest.$ac_ext <<_ACEOF
5686#include <string.h>
5687_ACEOF
5688    if ac_fn_c_try_cpp "$LINENO"
5689then :
5690  mhd_cv_header_string_h_present="yes"
5691else $as_nop
5692  mhd_cv_header_string_h_present="no"
5693
5694fi
5695rm -f conftest.err conftest.i
5696    rm -f conftest.$ac_ext
5697
5698fi
5699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_header_string_h_present" >&5
5700printf "%s\n" "$mhd_cv_header_string_h_present" >&6; }
5701
5702        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for presence of strings.h" >&5
5703printf %s "checking for presence of strings.h... " >&6; }
5704if test ${mhd_cv_header_strings_h_present+y}
5705then :
5706  printf %s "(cached) " >&6
5707else $as_nop
5708          cat > conftest.$ac_ext <<_ACEOF
5709#include <strings.h>
5710_ACEOF
5711    if ac_fn_c_try_cpp "$LINENO"
5712then :
5713  mhd_cv_header_strings_h_present="yes"
5714else $as_nop
5715  mhd_cv_header_strings_h_present="no"
5716
5717fi
5718rm -f conftest.err conftest.i
5719    rm -f conftest.$ac_ext
5720
5721fi
5722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_header_strings_h_present" >&5
5723printf "%s\n" "$mhd_cv_header_strings_h_present" >&6; }
5724
5725        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for presence of stdint.h" >&5
5726printf %s "checking for presence of stdint.h... " >&6; }
5727if test ${mhd_cv_header_stdint_h_present+y}
5728then :
5729  printf %s "(cached) " >&6
5730else $as_nop
5731          cat > conftest.$ac_ext <<_ACEOF
5732#include <stdint.h>
5733_ACEOF
5734    if ac_fn_c_try_cpp "$LINENO"
5735then :
5736  mhd_cv_header_stdint_h_present="yes"
5737else $as_nop
5738  mhd_cv_header_stdint_h_present="no"
5739
5740fi
5741rm -f conftest.err conftest.i
5742    rm -f conftest.$ac_ext
5743
5744fi
5745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_header_stdint_h_present" >&5
5746printf "%s\n" "$mhd_cv_header_stdint_h_present" >&6; }
5747
5748        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for presence of fcntl.h" >&5
5749printf %s "checking for presence of fcntl.h... " >&6; }
5750if test ${mhd_cv_header_fcntl_h_present+y}
5751then :
5752  printf %s "(cached) " >&6
5753else $as_nop
5754          cat > conftest.$ac_ext <<_ACEOF
5755#include <fcntl.h>
5756_ACEOF
5757    if ac_fn_c_try_cpp "$LINENO"
5758then :
5759  mhd_cv_header_fcntl_h_present="yes"
5760else $as_nop
5761  mhd_cv_header_fcntl_h_present="no"
5762
5763fi
5764rm -f conftest.err conftest.i
5765    rm -f conftest.$ac_ext
5766
5767fi
5768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_header_fcntl_h_present" >&5
5769printf "%s\n" "$mhd_cv_header_fcntl_h_present" >&6; }
5770
5771        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for presence of sys/types.h" >&5
5772printf %s "checking for presence of sys/types.h... " >&6; }
5773if test ${mhd_cv_header_sys_types_h_present+y}
5774then :
5775  printf %s "(cached) " >&6
5776else $as_nop
5777          cat > conftest.$ac_ext <<_ACEOF
5778#include <sys/types.h>
5779_ACEOF
5780    if ac_fn_c_try_cpp "$LINENO"
5781then :
5782  mhd_cv_header_sys_types_h_present="yes"
5783else $as_nop
5784  mhd_cv_header_sys_types_h_present="no"
5785
5786fi
5787rm -f conftest.err conftest.i
5788    rm -f conftest.$ac_ext
5789
5790fi
5791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_header_sys_types_h_present" >&5
5792printf "%s\n" "$mhd_cv_header_sys_types_h_present" >&6; }
5793
5794        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for presence of time.h" >&5
5795printf %s "checking for presence of time.h... " >&6; }
5796if test ${mhd_cv_header_time_h_present+y}
5797then :
5798  printf %s "(cached) " >&6
5799else $as_nop
5800          cat > conftest.$ac_ext <<_ACEOF
5801#include <time.h>
5802_ACEOF
5803    if ac_fn_c_try_cpp "$LINENO"
5804then :
5805  mhd_cv_header_time_h_present="yes"
5806else $as_nop
5807  mhd_cv_header_time_h_present="no"
5808
5809fi
5810rm -f conftest.err conftest.i
5811    rm -f conftest.$ac_ext
5812
5813fi
5814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_header_time_h_present" >&5
5815printf "%s\n" "$mhd_cv_header_time_h_present" >&6; }
5816
5817        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for presence of unistd.h" >&5
5818printf %s "checking for presence of unistd.h... " >&6; }
5819if test ${mhd_cv_header_unistd_h_present+y}
5820then :
5821  printf %s "(cached) " >&6
5822else $as_nop
5823          cat > conftest.$ac_ext <<_ACEOF
5824#include <unistd.h>
5825_ACEOF
5826    if ac_fn_c_try_cpp "$LINENO"
5827then :
5828  mhd_cv_header_unistd_h_present="yes"
5829else $as_nop
5830  mhd_cv_header_unistd_h_present="no"
5831
5832fi
5833rm -f conftest.err conftest.i
5834    rm -f conftest.$ac_ext
5835
5836fi
5837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_header_unistd_h_present" >&5
5838printf "%s\n" "$mhd_cv_header_unistd_h_present" >&6; }
5839
5840
5841
5842    if test -z "$mhd_basic_headers_includes"
5843then :
5844      if test "x$mhd_cv_header_stdio_h_present" = x"yes"
5845then :
5846  mhd_basic_headers_includes="\
5847#include <stdio.h>
5848"
5849else $as_nop
5850  mhd_basic_headers_includes=""
5851
5852fi
5853    if test "x$mhd_cv_header_sys_types_h_present" = x"yes"
5854then :
5855  mhd_basic_headers_includes="${mhd_basic_headers_includes}\
5856#include <sys/types.h>
5857"
5858
5859fi
5860    if test "x$mhd_cv_header_wchar_h_present" = x"yes"
5861then :
5862  mhd_basic_headers_includes="${mhd_basic_headers_includes}\
5863#include <wchar.h>
5864"
5865
5866fi
5867    if test "x$mhd_cv_header_stdlib_h_present" = x"yes"
5868then :
5869  mhd_basic_headers_includes="${mhd_basic_headers_includes}\
5870#include <stdlib.h>
5871"
5872
5873fi
5874    if test "x$mhd_cv_header_string_h_present" = x"yes"
5875then :
5876  mhd_basic_headers_includes="${mhd_basic_headers_includes}\
5877#include <string.h>
5878"
5879
5880fi
5881    if test "x$mhd_cv_header_strings_h_present" = x"yes"
5882then :
5883  mhd_basic_headers_includes="${mhd_basic_headers_includes}\
5884#include <strings.h>
5885"
5886
5887fi
5888    if test "x$mhd_cv_header_stdint_h_present" = x"yes"
5889then :
5890  mhd_basic_headers_includes="${mhd_basic_headers_includes}\
5891#include <stdint.h>
5892"
5893
5894fi
5895    if test "x$mhd_cv_header_fcntl_h_present" = x"yes"
5896then :
5897  mhd_basic_headers_includes="${mhd_basic_headers_includes}\
5898#include <fcntl.h>
5899"
5900
5901fi
5902    if test "x$mhd_cv_header_time_h_present" = x"yes"
5903then :
5904  mhd_basic_headers_includes="${mhd_basic_headers_includes}\
5905#include <time.h>
5906"
5907
5908fi
5909    if test "x$mhd_cv_header_unistd_h_present" = x"yes"
5910then :
5911  mhd_basic_headers_includes="${mhd_basic_headers_includes}\
5912#include <unistd.h>
5913"
5914
5915fi
5916
5917fi
5918
5919    ac_ext=c
5920ac_cpp='$CPP $CPPFLAGS'
5921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5923ac_compiler_gnu=$ac_cv_c_compiler_gnu
5924  mhd_mse_sys_ext_defines=""
5925  mhd_mse_sys_ext_flags=""
5926
5927
5928          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _GNU_SOURCE is already defined" >&5
5929printf %s "checking whether _GNU_SOURCE is already defined... " >&6; }
5930if test ${mhd_cv_macro__gnu_source_defined+y}
5931then :
5932  printf %s "(cached) " >&6
5933else $as_nop
5934        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935/* end confdefs.h.  */
5936
5937${mhd_mse_sys_ext_defines}
5938#ifndef _GNU_SOURCE
5939#error _GNU_SOURCE is not defined
5940choke me now;
5941#endif
5942
5943int
5944main (void)
5945{
5946
5947  ;
5948  return 0;
5949}
5950
5951_ACEOF
5952if ac_fn_c_try_compile "$LINENO"
5953then :
5954  mhd_cv_macro__gnu_source_defined="yes"
5955else $as_nop
5956  mhd_cv_macro__gnu_source_defined="no"
5957
5958
5959fi
5960rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5961
5962
5963fi
5964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro__gnu_source_defined" >&5
5965printf "%s\n" "$mhd_cv_macro__gnu_source_defined" >&6; }
5966  if test "x$mhd_cv_macro__gnu_source_defined" = x"yes"
5967then :
5968  mhd_cv_macro_add__gnu_source="no"
5969else $as_nop
5970            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether headers accept _GNU_SOURCE" >&5
5971printf %s "checking whether headers accept _GNU_SOURCE... " >&6; }
5972if test ${mhd_cv_define__gnu_source_accepted+y}
5973then :
5974  printf %s "(cached) " >&6
5975else $as_nop
5976        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977/* end confdefs.h.  */
5978
5979${mhd_mse_sys_ext_defines}
5980#define _GNU_SOURCE 1
5981 /* Start of MHD basic test includes */
5982$mhd_basic_headers_includes /* End of MHD basic test includes */
5983
5984
5985int
5986main (void)
5987{
5988int i = 1; i++; if(i) return i
5989  ;
5990  return 0;
5991}
5992
5993_ACEOF
5994if ac_fn_c_try_compile "$LINENO"
5995then :
5996  mhd_cv_define__gnu_source_accepted="yes"
5997else $as_nop
5998  mhd_cv_define__gnu_source_accepted="no"
5999
6000fi
6001rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6002
6003
6004fi
6005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_define__gnu_source_accepted" >&5
6006printf "%s\n" "$mhd_cv_define__gnu_source_accepted" >&6; }
6007  if test "x$mhd_cv_define__gnu_source_accepted" = x"yes"
6008then :
6009  mhd_cv_macro_add__gnu_source="yes"
6010else $as_nop
6011  mhd_cv_macro_add__gnu_source="no"
6012
6013fi
6014
6015fi
6016
6017  if test "x$mhd_cv_macro_add__gnu_source" = x"yes"
6018then :
6019
6020            mhd_mse_sys_ext_defines="${mhd_mse_sys_ext_defines}#define _GNU_SOURCE 1
6021"
6022    if test "x${mhd_mse_sys_ext_flags}" = "x"
6023then :
6024  mhd_mse_sys_ext_flags="_GNU_SOURCE"
6025else $as_nop
6026  mhd_mse_sys_ext_flags="${mhd_mse_sys_ext_flags} _GNU_SOURCE"
6027
6028fi
6029
6030
6031fi
6032
6033      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to try __BSD_VISIBLE__ macro" >&5
6034printf %s "checking whether to try __BSD_VISIBLE__ macro... " >&6; }
6035if test ${mhd_cv_macro_try___bsd_visible+y}
6036then :
6037  printf %s "(cached) " >&6
6038else $as_nop
6039      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040/* end confdefs.h.  */
6041
6042/* Warning: test with inverted logic! */
6043#ifdef __FreeBSD__
6044#error Target FreeBSD
6045choke me now;
6046#endif /* __FreeBSD__ */
6047
6048#ifdef __ANDROID__
6049#include <android/api-level.h>
6050#ifndef __ANDROID_API_O__
6051#error Target is Android NDK before R14
6052choke me now;
6053#endif /* ! __ANDROID_API_O__ */
6054#endif /* __ANDROID__ */
6055
6056int
6057main (void)
6058{
6059
6060  ;
6061  return 0;
6062}
6063_ACEOF
6064if ac_fn_c_try_compile "$LINENO"
6065then :
6066  mhd_cv_macro_try___bsd_visible="no"
6067else $as_nop
6068  mhd_cv_macro_try___bsd_visible="yes"
6069
6070fi
6071rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6072
6073fi
6074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro_try___bsd_visible" >&5
6075printf "%s\n" "$mhd_cv_macro_try___bsd_visible" >&6; }
6076  if test "x$mhd_cv_macro_try___bsd_visible" = x"yes"
6077then :
6078      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __BSD_VISIBLE__ is already defined" >&5
6079printf %s "checking whether __BSD_VISIBLE__ is already defined... " >&6; }
6080if test ${mhd_cv_macro___bsd_visible_defined+y}
6081then :
6082  printf %s "(cached) " >&6
6083else $as_nop
6084        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085/* end confdefs.h.  */
6086
6087${mhd_mse_sys_ext_defines}
6088/* Warning: test with inverted logic! */
6089#ifdef __BSD_VISIBLE__
6090#error __BSD_VISIBLE__ is defined
6091choke me now;
6092#endif
6093
6094int
6095main (void)
6096{
6097
6098  ;
6099  return 0;
6100}
6101
6102_ACEOF
6103if ac_fn_c_try_compile "$LINENO"
6104then :
6105  mhd_cv_macro___bsd_visible_defined="no"
6106else $as_nop
6107  mhd_cv_macro___bsd_visible_defined="yes"
6108
6109fi
6110rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6111
6112fi
6113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro___bsd_visible_defined" >&5
6114printf "%s\n" "$mhd_cv_macro___bsd_visible_defined" >&6; }
6115    if test "x$mhd_cv_macro___bsd_visible_defined" = x"yes"
6116then :
6117  :
6118else $as_nop
6119              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether headers accept __BSD_VISIBLE__" >&5
6120printf %s "checking whether headers accept __BSD_VISIBLE__... " >&6; }
6121if test ${mhd_cv_define___bsd_visible_accepted+y}
6122then :
6123  printf %s "(cached) " >&6
6124else $as_nop
6125        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126/* end confdefs.h.  */
6127
6128${mhd_mse_sys_ext_defines}
6129#define __BSD_VISIBLE__ 1
6130 /* Start of MHD basic test includes */
6131$mhd_basic_headers_includes /* End of MHD basic test includes */
6132
6133
6134int
6135main (void)
6136{
6137int i = 1; i++; if(i) return i
6138  ;
6139  return 0;
6140}
6141
6142_ACEOF
6143if ac_fn_c_try_compile "$LINENO"
6144then :
6145  mhd_cv_define___bsd_visible_accepted="yes"
6146else $as_nop
6147  mhd_cv_define___bsd_visible_accepted="no"
6148
6149fi
6150rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6151
6152
6153fi
6154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_define___bsd_visible_accepted" >&5
6155printf "%s\n" "$mhd_cv_define___bsd_visible_accepted" >&6; }
6156  if test "x$mhd_cv_define___bsd_visible_accepted" = x"yes"
6157then :
6158
6159                mhd_mse_sys_ext_defines="${mhd_mse_sys_ext_defines}#define __BSD_VISIBLE__ 1
6160"
6161    if test "x${mhd_mse_sys_ext_flags}" = "x"
6162then :
6163  mhd_mse_sys_ext_flags="__BSD_VISIBLE__"
6164else $as_nop
6165  mhd_mse_sys_ext_flags="${mhd_mse_sys_ext_flags} __BSD_VISIBLE__"
6166
6167fi
6168
6169
6170fi
6171
6172fi
6173
6174fi
6175
6176
6177        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to try _DARWIN_C_SOURCE macro" >&5
6178printf %s "checking whether to try _DARWIN_C_SOURCE macro... " >&6; }
6179if test ${mhd_cv_macro___apple___defined+y}
6180then :
6181  printf %s "(cached) " >&6
6182else $as_nop
6183        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184/* end confdefs.h.  */
6185
6186${mhd_mse_sys_ext_defines}
6187#ifndef __APPLE__
6188#error __APPLE__ is not defined
6189choke me now;
6190#endif
6191
6192int
6193main (void)
6194{
6195
6196  ;
6197  return 0;
6198}
6199
6200_ACEOF
6201if ac_fn_c_try_compile "$LINENO"
6202then :
6203  mhd_cv_macro___apple___defined="yes"
6204else $as_nop
6205  mhd_cv_macro___apple___defined="no"
6206
6207
6208fi
6209rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6210
6211
6212fi
6213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro___apple___defined" >&5
6214printf "%s\n" "$mhd_cv_macro___apple___defined" >&6; }
6215  if test "x$mhd_cv_macro___apple___defined" = x"yes"
6216then :
6217            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _DARWIN_C_SOURCE is already defined" >&5
6218printf %s "checking whether _DARWIN_C_SOURCE is already defined... " >&6; }
6219if test ${mhd_cv_macro__darwin_c_source_defined+y}
6220then :
6221  printf %s "(cached) " >&6
6222else $as_nop
6223        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6224/* end confdefs.h.  */
6225
6226${mhd_mse_sys_ext_defines}
6227#ifndef _DARWIN_C_SOURCE
6228#error _DARWIN_C_SOURCE is not defined
6229choke me now;
6230#endif
6231
6232int
6233main (void)
6234{
6235
6236  ;
6237  return 0;
6238}
6239
6240_ACEOF
6241if ac_fn_c_try_compile "$LINENO"
6242then :
6243  mhd_cv_macro__darwin_c_source_defined="yes"
6244else $as_nop
6245  mhd_cv_macro__darwin_c_source_defined="no"
6246
6247
6248fi
6249rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6250
6251
6252fi
6253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro__darwin_c_source_defined" >&5
6254printf "%s\n" "$mhd_cv_macro__darwin_c_source_defined" >&6; }
6255  if test "x$mhd_cv_macro__darwin_c_source_defined" = x"yes"
6256then :
6257
6258else $as_nop
6259            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether headers accept _DARWIN_C_SOURCE" >&5
6260printf %s "checking whether headers accept _DARWIN_C_SOURCE... " >&6; }
6261if test ${mhd_cv_define__darwin_c_source_accepted+y}
6262then :
6263  printf %s "(cached) " >&6
6264else $as_nop
6265        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6266/* end confdefs.h.  */
6267
6268${mhd_mse_sys_ext_defines}
6269#define _DARWIN_C_SOURCE 1
6270 /* Start of MHD basic test includes */
6271$mhd_basic_headers_includes /* End of MHD basic test includes */
6272
6273
6274int
6275main (void)
6276{
6277int i = 1; i++; if(i) return i
6278  ;
6279  return 0;
6280}
6281
6282_ACEOF
6283if ac_fn_c_try_compile "$LINENO"
6284then :
6285  mhd_cv_define__darwin_c_source_accepted="yes"
6286else $as_nop
6287  mhd_cv_define__darwin_c_source_accepted="no"
6288
6289fi
6290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6291
6292
6293fi
6294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_define__darwin_c_source_accepted" >&5
6295printf "%s\n" "$mhd_cv_define__darwin_c_source_accepted" >&6; }
6296  if test "x$mhd_cv_define__darwin_c_source_accepted" = x"yes"
6297then :
6298
6299              mhd_mse_sys_ext_defines="${mhd_mse_sys_ext_defines}#define _DARWIN_C_SOURCE 1
6300"
6301    if test "x${mhd_mse_sys_ext_flags}" = "x"
6302then :
6303  mhd_mse_sys_ext_flags="_DARWIN_C_SOURCE"
6304else $as_nop
6305  mhd_mse_sys_ext_flags="${mhd_mse_sys_ext_flags} _DARWIN_C_SOURCE"
6306
6307fi
6308
6309
6310fi
6311
6312fi
6313
6314fi
6315
6316
6317        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to try __EXTENSIONS__ macro" >&5
6318printf %s "checking whether to try __EXTENSIONS__ macro... " >&6; }
6319if test ${mhd_cv_macro___sun_defined+y}
6320then :
6321  printf %s "(cached) " >&6
6322else $as_nop
6323        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324/* end confdefs.h.  */
6325
6326${mhd_mse_sys_ext_defines}
6327#ifndef __sun
6328#error __sun is not defined
6329choke me now;
6330#endif
6331
6332int
6333main (void)
6334{
6335
6336  ;
6337  return 0;
6338}
6339
6340_ACEOF
6341if ac_fn_c_try_compile "$LINENO"
6342then :
6343  mhd_cv_macro___sun_defined="yes"
6344else $as_nop
6345  mhd_cv_macro___sun_defined="no"
6346
6347
6348fi
6349rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6350
6351
6352fi
6353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro___sun_defined" >&5
6354printf "%s\n" "$mhd_cv_macro___sun_defined" >&6; }
6355  if test "x$mhd_cv_macro___sun_defined" = x"yes"
6356then :
6357            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __EXTENSIONS__ is already defined" >&5
6358printf %s "checking whether __EXTENSIONS__ is already defined... " >&6; }
6359if test ${mhd_cv_macro___extensions___defined+y}
6360then :
6361  printf %s "(cached) " >&6
6362else $as_nop
6363        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364/* end confdefs.h.  */
6365
6366${mhd_mse_sys_ext_defines}
6367#ifndef __EXTENSIONS__
6368#error __EXTENSIONS__ is not defined
6369choke me now;
6370#endif
6371
6372int
6373main (void)
6374{
6375
6376  ;
6377  return 0;
6378}
6379
6380_ACEOF
6381if ac_fn_c_try_compile "$LINENO"
6382then :
6383  mhd_cv_macro___extensions___defined="yes"
6384else $as_nop
6385  mhd_cv_macro___extensions___defined="no"
6386
6387
6388fi
6389rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6390
6391
6392fi
6393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro___extensions___defined" >&5
6394printf "%s\n" "$mhd_cv_macro___extensions___defined" >&6; }
6395  if test "x$mhd_cv_macro___extensions___defined" = x"yes"
6396then :
6397
6398else $as_nop
6399            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether headers accept __EXTENSIONS__" >&5
6400printf %s "checking whether headers accept __EXTENSIONS__... " >&6; }
6401if test ${mhd_cv_define___extensions___accepted+y}
6402then :
6403  printf %s "(cached) " >&6
6404else $as_nop
6405        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6406/* end confdefs.h.  */
6407
6408${mhd_mse_sys_ext_defines}
6409#define __EXTENSIONS__ 1
6410 /* Start of MHD basic test includes */
6411$mhd_basic_headers_includes /* End of MHD basic test includes */
6412
6413
6414int
6415main (void)
6416{
6417int i = 1; i++; if(i) return i
6418  ;
6419  return 0;
6420}
6421
6422_ACEOF
6423if ac_fn_c_try_compile "$LINENO"
6424then :
6425  mhd_cv_define___extensions___accepted="yes"
6426else $as_nop
6427  mhd_cv_define___extensions___accepted="no"
6428
6429fi
6430rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6431
6432
6433fi
6434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_define___extensions___accepted" >&5
6435printf "%s\n" "$mhd_cv_define___extensions___accepted" >&6; }
6436  if test "x$mhd_cv_define___extensions___accepted" = x"yes"
6437then :
6438
6439              mhd_mse_sys_ext_defines="${mhd_mse_sys_ext_defines}#define __EXTENSIONS__ 1
6440"
6441    if test "x${mhd_mse_sys_ext_flags}" = "x"
6442then :
6443  mhd_mse_sys_ext_flags="__EXTENSIONS__"
6444else $as_nop
6445  mhd_mse_sys_ext_flags="${mhd_mse_sys_ext_flags} __EXTENSIONS__"
6446
6447fi
6448
6449
6450fi
6451
6452fi
6453
6454fi
6455
6456
6457        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to try _NETBSD_SOURCE macro" >&5
6458printf %s "checking whether to try _NETBSD_SOURCE macro... " >&6; }
6459if test ${mhd_cv_macro___netbsd___defined+y}
6460then :
6461  printf %s "(cached) " >&6
6462else $as_nop
6463        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464/* end confdefs.h.  */
6465
6466${mhd_mse_sys_ext_defines}
6467#ifndef __NetBSD__
6468#error __NetBSD__ is not defined
6469choke me now;
6470#endif
6471
6472int
6473main (void)
6474{
6475
6476  ;
6477  return 0;
6478}
6479
6480_ACEOF
6481if ac_fn_c_try_compile "$LINENO"
6482then :
6483  mhd_cv_macro___netbsd___defined="yes"
6484else $as_nop
6485  mhd_cv_macro___netbsd___defined="no"
6486
6487
6488fi
6489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6490
6491
6492fi
6493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro___netbsd___defined" >&5
6494printf "%s\n" "$mhd_cv_macro___netbsd___defined" >&6; }
6495  if test "x$mhd_cv_macro___netbsd___defined" = x"yes"
6496then :
6497            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _NETBSD_SOURCE is already defined" >&5
6498printf %s "checking whether _NETBSD_SOURCE is already defined... " >&6; }
6499if test ${mhd_cv_macro__netbsd_source_defined+y}
6500then :
6501  printf %s "(cached) " >&6
6502else $as_nop
6503        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504/* end confdefs.h.  */
6505
6506${mhd_mse_sys_ext_defines}
6507#ifndef _NETBSD_SOURCE
6508#error _NETBSD_SOURCE is not defined
6509choke me now;
6510#endif
6511
6512int
6513main (void)
6514{
6515
6516  ;
6517  return 0;
6518}
6519
6520_ACEOF
6521if ac_fn_c_try_compile "$LINENO"
6522then :
6523  mhd_cv_macro__netbsd_source_defined="yes"
6524else $as_nop
6525  mhd_cv_macro__netbsd_source_defined="no"
6526
6527
6528fi
6529rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6530
6531
6532fi
6533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro__netbsd_source_defined" >&5
6534printf "%s\n" "$mhd_cv_macro__netbsd_source_defined" >&6; }
6535  if test "x$mhd_cv_macro__netbsd_source_defined" = x"yes"
6536then :
6537
6538else $as_nop
6539            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether headers accept _NETBSD_SOURCE" >&5
6540printf %s "checking whether headers accept _NETBSD_SOURCE... " >&6; }
6541if test ${mhd_cv_define__netbsd_source_accepted+y}
6542then :
6543  printf %s "(cached) " >&6
6544else $as_nop
6545        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546/* end confdefs.h.  */
6547
6548${mhd_mse_sys_ext_defines}
6549#define _NETBSD_SOURCE 1
6550 /* Start of MHD basic test includes */
6551$mhd_basic_headers_includes /* End of MHD basic test includes */
6552
6553
6554int
6555main (void)
6556{
6557int i = 1; i++; if(i) return i
6558  ;
6559  return 0;
6560}
6561
6562_ACEOF
6563if ac_fn_c_try_compile "$LINENO"
6564then :
6565  mhd_cv_define__netbsd_source_accepted="yes"
6566else $as_nop
6567  mhd_cv_define__netbsd_source_accepted="no"
6568
6569fi
6570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6571
6572
6573fi
6574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_define__netbsd_source_accepted" >&5
6575printf "%s\n" "$mhd_cv_define__netbsd_source_accepted" >&6; }
6576  if test "x$mhd_cv_define__netbsd_source_accepted" = x"yes"
6577then :
6578
6579              mhd_mse_sys_ext_defines="${mhd_mse_sys_ext_defines}#define _NETBSD_SOURCE 1
6580"
6581    if test "x${mhd_mse_sys_ext_flags}" = "x"
6582then :
6583  mhd_mse_sys_ext_flags="_NETBSD_SOURCE"
6584else $as_nop
6585  mhd_mse_sys_ext_flags="${mhd_mse_sys_ext_flags} _NETBSD_SOURCE"
6586
6587fi
6588
6589
6590fi
6591
6592fi
6593
6594fi
6595
6596
6597        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to try _BSD_SOURCE macro" >&5
6598printf %s "checking whether to try _BSD_SOURCE macro... " >&6; }
6599if test ${mhd_cv_macro___openbsd___defined+y}
6600then :
6601  printf %s "(cached) " >&6
6602else $as_nop
6603        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604/* end confdefs.h.  */
6605
6606${mhd_mse_sys_ext_defines}
6607#ifndef __OpenBSD__
6608#error __OpenBSD__ is not defined
6609choke me now;
6610#endif
6611
6612int
6613main (void)
6614{
6615
6616  ;
6617  return 0;
6618}
6619
6620_ACEOF
6621if ac_fn_c_try_compile "$LINENO"
6622then :
6623  mhd_cv_macro___openbsd___defined="yes"
6624else $as_nop
6625  mhd_cv_macro___openbsd___defined="no"
6626
6627
6628fi
6629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6630
6631
6632fi
6633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro___openbsd___defined" >&5
6634printf "%s\n" "$mhd_cv_macro___openbsd___defined" >&6; }
6635  if test "x$mhd_cv_macro___openbsd___defined" = x"yes"
6636then :
6637            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _BSD_SOURCE is already defined" >&5
6638printf %s "checking whether _BSD_SOURCE is already defined... " >&6; }
6639if test ${mhd_cv_macro__bsd_source_defined+y}
6640then :
6641  printf %s "(cached) " >&6
6642else $as_nop
6643        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6644/* end confdefs.h.  */
6645
6646${mhd_mse_sys_ext_defines}
6647#ifndef _BSD_SOURCE
6648#error _BSD_SOURCE is not defined
6649choke me now;
6650#endif
6651
6652int
6653main (void)
6654{
6655
6656  ;
6657  return 0;
6658}
6659
6660_ACEOF
6661if ac_fn_c_try_compile "$LINENO"
6662then :
6663  mhd_cv_macro__bsd_source_defined="yes"
6664else $as_nop
6665  mhd_cv_macro__bsd_source_defined="no"
6666
6667
6668fi
6669rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6670
6671
6672fi
6673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro__bsd_source_defined" >&5
6674printf "%s\n" "$mhd_cv_macro__bsd_source_defined" >&6; }
6675  if test "x$mhd_cv_macro__bsd_source_defined" = x"yes"
6676then :
6677
6678else $as_nop
6679            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether headers accept _BSD_SOURCE" >&5
6680printf %s "checking whether headers accept _BSD_SOURCE... " >&6; }
6681if test ${mhd_cv_define__bsd_source_accepted+y}
6682then :
6683  printf %s "(cached) " >&6
6684else $as_nop
6685        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6686/* end confdefs.h.  */
6687
6688${mhd_mse_sys_ext_defines}
6689#define _BSD_SOURCE 1
6690 /* Start of MHD basic test includes */
6691$mhd_basic_headers_includes /* End of MHD basic test includes */
6692
6693
6694int
6695main (void)
6696{
6697int i = 1; i++; if(i) return i
6698  ;
6699  return 0;
6700}
6701
6702_ACEOF
6703if ac_fn_c_try_compile "$LINENO"
6704then :
6705  mhd_cv_define__bsd_source_accepted="yes"
6706else $as_nop
6707  mhd_cv_define__bsd_source_accepted="no"
6708
6709fi
6710rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6711
6712
6713fi
6714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_define__bsd_source_accepted" >&5
6715printf "%s\n" "$mhd_cv_define__bsd_source_accepted" >&6; }
6716  if test "x$mhd_cv_define__bsd_source_accepted" = x"yes"
6717then :
6718
6719              mhd_mse_sys_ext_defines="${mhd_mse_sys_ext_defines}#define _BSD_SOURCE 1
6720"
6721    if test "x${mhd_mse_sys_ext_flags}" = "x"
6722then :
6723  mhd_mse_sys_ext_flags="_BSD_SOURCE"
6724else $as_nop
6725  mhd_mse_sys_ext_flags="${mhd_mse_sys_ext_flags} _BSD_SOURCE"
6726
6727fi
6728
6729
6730fi
6731
6732fi
6733
6734fi
6735
6736
6737          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to try _TANDEM_SOURCE macro" >&5
6738printf %s "checking whether to try _TANDEM_SOURCE macro... " >&6; }
6739if test ${mhd_cv_macro___tandem_defined+y}
6740then :
6741  printf %s "(cached) " >&6
6742else $as_nop
6743        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744/* end confdefs.h.  */
6745
6746${mhd_mse_sys_ext_defines}
6747#ifndef __TANDEM
6748#error __TANDEM is not defined
6749choke me now;
6750#endif
6751
6752int
6753main (void)
6754{
6755
6756  ;
6757  return 0;
6758}
6759
6760_ACEOF
6761if ac_fn_c_try_compile "$LINENO"
6762then :
6763  mhd_cv_macro___tandem_defined="yes"
6764else $as_nop
6765  mhd_cv_macro___tandem_defined="no"
6766
6767
6768fi
6769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6770
6771
6772fi
6773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro___tandem_defined" >&5
6774printf "%s\n" "$mhd_cv_macro___tandem_defined" >&6; }
6775  if test "x$mhd_cv_macro___tandem_defined" = x"yes"
6776then :
6777            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _TANDEM_SOURCE is already defined" >&5
6778printf %s "checking whether _TANDEM_SOURCE is already defined... " >&6; }
6779if test ${mhd_cv_macro__tandem_source_defined+y}
6780then :
6781  printf %s "(cached) " >&6
6782else $as_nop
6783        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6784/* end confdefs.h.  */
6785
6786${mhd_mse_sys_ext_defines}
6787#ifndef _TANDEM_SOURCE
6788#error _TANDEM_SOURCE is not defined
6789choke me now;
6790#endif
6791
6792int
6793main (void)
6794{
6795
6796  ;
6797  return 0;
6798}
6799
6800_ACEOF
6801if ac_fn_c_try_compile "$LINENO"
6802then :
6803  mhd_cv_macro__tandem_source_defined="yes"
6804else $as_nop
6805  mhd_cv_macro__tandem_source_defined="no"
6806
6807
6808fi
6809rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6810
6811
6812fi
6813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro__tandem_source_defined" >&5
6814printf "%s\n" "$mhd_cv_macro__tandem_source_defined" >&6; }
6815  if test "x$mhd_cv_macro__tandem_source_defined" = x"yes"
6816then :
6817
6818else $as_nop
6819            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether headers accept _TANDEM_SOURCE" >&5
6820printf %s "checking whether headers accept _TANDEM_SOURCE... " >&6; }
6821if test ${mhd_cv_define__tandem_source_accepted+y}
6822then :
6823  printf %s "(cached) " >&6
6824else $as_nop
6825        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826/* end confdefs.h.  */
6827
6828${mhd_mse_sys_ext_defines}
6829#define _TANDEM_SOURCE 1
6830 /* Start of MHD basic test includes */
6831$mhd_basic_headers_includes /* End of MHD basic test includes */
6832
6833
6834int
6835main (void)
6836{
6837int i = 1; i++; if(i) return i
6838  ;
6839  return 0;
6840}
6841
6842_ACEOF
6843if ac_fn_c_try_compile "$LINENO"
6844then :
6845  mhd_cv_define__tandem_source_accepted="yes"
6846else $as_nop
6847  mhd_cv_define__tandem_source_accepted="no"
6848
6849fi
6850rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6851
6852
6853fi
6854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_define__tandem_source_accepted" >&5
6855printf "%s\n" "$mhd_cv_define__tandem_source_accepted" >&6; }
6856  if test "x$mhd_cv_define__tandem_source_accepted" = x"yes"
6857then :
6858
6859              mhd_mse_sys_ext_defines="${mhd_mse_sys_ext_defines}#define _TANDEM_SOURCE 1
6860"
6861    if test "x${mhd_mse_sys_ext_flags}" = "x"
6862then :
6863  mhd_mse_sys_ext_flags="_TANDEM_SOURCE"
6864else $as_nop
6865  mhd_mse_sys_ext_flags="${mhd_mse_sys_ext_flags} _TANDEM_SOURCE"
6866
6867fi
6868
6869
6870fi
6871
6872fi
6873
6874fi
6875
6876
6877      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to try _ALL_SOURCE macro" >&5
6878printf %s "checking whether to try _ALL_SOURCE macro... " >&6; }
6879if test ${mhd_cv_macro_try__all_source+y}
6880then :
6881  printf %s "(cached) " >&6
6882else $as_nop
6883      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884/* end confdefs.h.  */
6885
6886#if !defined(__TOS_MVS__) && !defined (__INTERIX)
6887#error Target is not z/OS, AIX or Interix
6888choke me now;
6889#endif
6890
6891int
6892main (void)
6893{
6894
6895  ;
6896  return 0;
6897}
6898_ACEOF
6899if ac_fn_c_try_compile "$LINENO"
6900then :
6901  mhd_cv_macro_try__all_source="yes"
6902else $as_nop
6903  mhd_cv_macro_try__all_source="no"
6904
6905fi
6906rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6907
6908fi
6909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro_try__all_source" >&5
6910printf "%s\n" "$mhd_cv_macro_try__all_source" >&6; }
6911  if test "x$mhd_cv_macro_try__all_source" = x"yes"
6912then :
6913            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _ALL_SOURCE is already defined" >&5
6914printf %s "checking whether _ALL_SOURCE is already defined... " >&6; }
6915if test ${mhd_cv_macro__all_source_defined+y}
6916then :
6917  printf %s "(cached) " >&6
6918else $as_nop
6919        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920/* end confdefs.h.  */
6921
6922${mhd_mse_sys_ext_defines}
6923#ifndef _ALL_SOURCE
6924#error _ALL_SOURCE is not defined
6925choke me now;
6926#endif
6927
6928int
6929main (void)
6930{
6931
6932  ;
6933  return 0;
6934}
6935
6936_ACEOF
6937if ac_fn_c_try_compile "$LINENO"
6938then :
6939  mhd_cv_macro__all_source_defined="yes"
6940else $as_nop
6941  mhd_cv_macro__all_source_defined="no"
6942
6943
6944fi
6945rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6946
6947
6948fi
6949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro__all_source_defined" >&5
6950printf "%s\n" "$mhd_cv_macro__all_source_defined" >&6; }
6951  if test "x$mhd_cv_macro__all_source_defined" = x"yes"
6952then :
6953
6954else $as_nop
6955            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether headers accept _ALL_SOURCE" >&5
6956printf %s "checking whether headers accept _ALL_SOURCE... " >&6; }
6957if test ${mhd_cv_define__all_source_accepted+y}
6958then :
6959  printf %s "(cached) " >&6
6960else $as_nop
6961        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962/* end confdefs.h.  */
6963
6964${mhd_mse_sys_ext_defines}
6965#define _ALL_SOURCE 1
6966 /* Start of MHD basic test includes */
6967$mhd_basic_headers_includes /* End of MHD basic test includes */
6968
6969
6970int
6971main (void)
6972{
6973int i = 1; i++; if(i) return i
6974  ;
6975  return 0;
6976}
6977
6978_ACEOF
6979if ac_fn_c_try_compile "$LINENO"
6980then :
6981  mhd_cv_define__all_source_accepted="yes"
6982else $as_nop
6983  mhd_cv_define__all_source_accepted="no"
6984
6985fi
6986rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6987
6988
6989fi
6990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_define__all_source_accepted" >&5
6991printf "%s\n" "$mhd_cv_define__all_source_accepted" >&6; }
6992  if test "x$mhd_cv_define__all_source_accepted" = x"yes"
6993then :
6994
6995              mhd_mse_sys_ext_defines="${mhd_mse_sys_ext_defines}#define _ALL_SOURCE 1
6996"
6997    if test "x${mhd_mse_sys_ext_flags}" = "x"
6998then :
6999  mhd_mse_sys_ext_flags="_ALL_SOURCE"
7000else $as_nop
7001  mhd_mse_sys_ext_flags="${mhd_mse_sys_ext_flags} _ALL_SOURCE"
7002
7003fi
7004
7005
7006fi
7007
7008fi
7009
7010fi
7011
7012  mhd_mse_xopen_features=""
7013  mhd_mse_xopen_defines=""
7014  mhd_mse_xopen_flags=""
7015
7016  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE__ is already defined" >&5
7017printf %s "checking whether _XOPEN_SOURCE__ is already defined... " >&6; }
7018if test ${mhd_cv_macro__xopen_source_defined+y}
7019then :
7020  printf %s "(cached) " >&6
7021else $as_nop
7022
7023        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024/* end confdefs.h.  */
7025
7026${mhd_mse_sys_ext_defines}
7027#ifndef _XOPEN_SOURCE__
7028#error _XOPEN_SOURCE__ is not defined
7029choke me now;
7030#endif
7031
7032int
7033main (void)
7034{
7035
7036  ;
7037  return 0;
7038}
7039
7040_ACEOF
7041if ac_fn_c_try_compile "$LINENO"
7042then :
7043  mhd_cv_macro__xopen_source_defined="yes"
7044else $as_nop
7045  mhd_cv_macro__xopen_source_defined="no"
7046
7047
7048fi
7049rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7050
7051
7052
7053fi
7054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro__xopen_source_defined" >&5
7055printf "%s\n" "$mhd_cv_macro__xopen_source_defined" >&6; }
7056  if test "x$mhd_cv_macro__xopen_source_defined" = x"no"
7057then :
7058
7059                                            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking headers for POSIX.1-2008/SUSv4 features" >&5
7060printf %s "checking headers for POSIX.1-2008/SUSv4 features... " >&6; }
7061if test ${mhd_cv_headers_posix2008+y}
7062then :
7063  printf %s "(cached) " >&6
7064else $as_nop
7065                  { mhd_cpsxfs_tmp_features_available=; unset mhd_cpsxfs_tmp_features_available;}
7066  { mhd_cpsxfs_tmp_extentions_allowed=; unset mhd_cpsxfs_tmp_extentions_allowed;}
7067  { mhd_cpsxfs_tmp_src_xopen_allowed=; unset mhd_cpsxfs_tmp_src_xopen_allowed;}
7068  { mhd_cpsxfs_tmp_features_disableable=; unset mhd_cpsxfs_tmp_features_disableable;}
7069        mhd_cpsxf_tmp_src_variable="
7070
7071 /* Start of MHD basic test includes */
7072$mhd_basic_headers_includes /* End of MHD basic test includes */
7073
7074
7075/* Check will be passed if ALL features are available
7076 * and failed if ANY feature is not available. */
7077int main()
7078{
7079
7080#ifndef stpncpy
7081  (void) stpncpy;
7082#endif
7083#ifndef strnlen
7084  (void) strnlen;
7085#endif
7086
7087#if !defined(__NetBSD__) && !defined(__OpenBSD__)
7088/* NetBSD and OpenBSD didn't implement wcsnlen() for some reason. */
7089#ifndef wcsnlen
7090  (void) wcsnlen;
7091#endif
7092#endif
7093
7094#ifdef __CYGWIN__
7095/* The only depend function on Cygwin, but missing on some other platforms */
7096#ifndef strndup
7097  (void) strndup;
7098#endif
7099#endif
7100
7101#ifndef __sun
7102/* illumos forget to uncomment some _XPG7 macros. */
7103#ifndef renameat
7104  (void) renameat;
7105#endif
7106
7107#ifndef getline
7108  (void) getline;
7109#endif
7110#endif /* ! __sun */
7111
7112/* gmtime_r() becomes mandatory only in POSIX.1-2008. */
7113#ifndef gmtime_r
7114  (void) gmtime_r;
7115#endif
7116
7117/* unsetenv() actually defined in POSIX.1-2001 so it
7118 * must be present with _XOPEN_SOURCE__ == 700 too. */
7119#ifndef unsetenv
7120  (void) unsetenv;
7121#endif
7122
7123  return 0;
7124}
7125
7126"
7127    mhd_cpsxf_tmp_defs_variable="
7128${mhd_mse_sys_ext_defines}
7129"
7130
7131            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132/* end confdefs.h.  */
7133
7134$mhd_undef_all_extensions
7135
7136$mhd_cpsxf_tmp_src_variable
7137
7138_ACEOF
7139if ac_fn_c_try_compile "$LINENO"
7140then :
7141        printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with undefined all extensions and without _XOPEN_SOURCE__" >&5
7142      mhd_cpsxfs_tmp_features_available="yes" # VAR-FEATURES-AVAILABLE-YES_NO
7143
7144            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145/* end confdefs.h.  */
7146
7147$mhd_cpsxf_tmp_defs_variable
7148$mhd_cpsxf_tmp_src_variable
7149
7150_ACEOF
7151if ac_fn_c_try_compile "$LINENO"
7152then :
7153            printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with extensions" >&5
7154          mhd_cpsxfs_tmp_extentions_allowed="allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED
7155                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156/* end confdefs.h.  */
7157
7158$mhd_cpsxf_tmp_defs_variable
7159#define _XOPEN_SOURCE__ 700
7160$mhd_cpsxf_tmp_src_variable
7161
7162_ACEOF
7163if ac_fn_c_try_compile "$LINENO"
7164then :
7165                printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with extensions and with _XOPEN_SOURCE__=700" >&5
7166              mhd_cpsxfs_tmp_src_xopen_allowed="allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED
7167                                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168/* end confdefs.h.  */
7169
7170$mhd_undef_all_extensions
7171
7172#define _POSIX_C_SOURCE 1
7173#define  _ANSI_SOURCE 1
7174$mhd_cpsxf_tmp_src_variable
7175
7176_ACEOF
7177if ac_fn_c_try_compile "$LINENO"
7178then :
7179                    printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with disabled extensions, with _POSIX_C_SOURCE=1 and _ANSI_SOURCE=1" >&5
7180                  mhd_cpsxfs_tmp_features_disableable="no" # VAR-FEATURES-DISABLEABLE-YES_NO
7181
7182else $as_nop
7183                    printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with disabled extensions, with _POSIX_C_SOURCE=1 and _ANSI_SOURCE=1" >&5
7184                  mhd_cpsxfs_tmp_features_disableable="yes" # VAR-FEATURES-DISABLEABLE-YES_NO
7185
7186
7187fi
7188rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7189
7190else $as_nop
7191                printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with extensions and with _XOPEN_SOURCE__=700" >&5
7192              mhd_cpsxfs_tmp_src_xopen_allowed="not allowed"  # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED
7193              mhd_cpsxfs_tmp_features_disableable="yes" # VAR-FEATURES-DISABLEABLE-YES_NO
7194
7195
7196fi
7197rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7198
7199else $as_nop
7200            printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with extensions" >&5
7201          mhd_cpsxfs_tmp_features_disableable="yes" # VAR-FEATURES-DISABLEABLE-YES_NO
7202                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203/* end confdefs.h.  */
7204
7205#define _XOPEN_SOURCE__ 700
7206$mhd_cpsxf_tmp_src_variable
7207
7208_ACEOF
7209if ac_fn_c_try_compile "$LINENO"
7210then :
7211                printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with _XOPEN_SOURCE__=700" >&5
7212                            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7213/* end confdefs.h.  */
7214
7215$mhd_cpsxf_tmp_src_variable
7216
7217_ACEOF
7218if ac_fn_c_try_compile "$LINENO"
7219then :
7220                    printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work by default" >&5
7221                  mhd_cpsxfs_tmp_src_xopen_allowed="allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED
7222
7223else $as_nop
7224                    printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT by default" >&5
7225                  mhd_cpsxfs_tmp_src_xopen_allowed="required" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED
7226
7227
7228fi
7229rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7230                            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231/* end confdefs.h.  */
7232
7233$mhd_cpsxf_tmp_defs_variable
7234#define _XOPEN_SOURCE__ 700
7235$mhd_cpsxf_tmp_src_variable
7236
7237_ACEOF
7238if ac_fn_c_try_compile "$LINENO"
7239then :
7240                    printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with _XOPEN_SOURCE__ and extensions" >&5
7241                  mhd_cpsxfs_tmp_extentions_allowed="allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED
7242
7243else $as_nop
7244                    printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with _XOPEN_SOURCE__ and extensions" >&5
7245                  mhd_cpsxfs_tmp_extentions_allowed="not allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED
7246
7247
7248fi
7249rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7250
7251else $as_nop
7252                printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with _XOPEN_SOURCE__=700" >&5
7253              mhd_cpsxfs_tmp_extentions_allowed="not allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED
7254              mhd_cpsxfs_tmp_src_xopen_allowed="not allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED
7255
7256
7257fi
7258rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7259
7260
7261fi
7262rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7263
7264else $as_nop
7265        printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with undefined all extensions and without _XOPEN_SOURCE__" >&5
7266            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7267/* end confdefs.h.  */
7268
7269$mhd_cpsxf_tmp_defs_variable
7270$mhd_cpsxf_tmp_src_variable
7271
7272_ACEOF
7273if ac_fn_c_try_compile "$LINENO"
7274then :
7275            printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with extensions" >&5
7276          mhd_cpsxfs_tmp_features_available="yes" # VAR-FEATURES-AVAILABLE-YES_NO
7277          mhd_cpsxfs_tmp_features_disableable="yes" # VAR-FEATURES-DISABLEABLE-YES_NO
7278                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7279/* end confdefs.h.  */
7280
7281$mhd_cpsxf_tmp_src_variable
7282
7283_ACEOF
7284if ac_fn_c_try_compile "$LINENO"
7285then :
7286                printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work by default" >&5
7287              mhd_cpsxfs_tmp_extentions_allowed="allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED
7288
7289else $as_nop
7290                printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT by default" >&5
7291              mhd_cpsxfs_tmp_extentions_allowed="required" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED
7292
7293
7294fi
7295rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7296                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297/* end confdefs.h.  */
7298
7299$mhd_cpsxf_tmp_defs_variable
7300#define _XOPEN_SOURCE__ 700
7301$mhd_cpsxf_tmp_src_variable
7302
7303_ACEOF
7304if ac_fn_c_try_compile "$LINENO"
7305then :
7306                printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with extensions and _XOPEN_SOURCE__=700" >&5
7307              mhd_cpsxfs_tmp_src_xopen_allowed="allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED
7308
7309else $as_nop
7310                printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with extensions and _XOPEN_SOURCE__=700" >&5
7311              mhd_cpsxfs_tmp_src_xopen_allowed="not allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED
7312
7313
7314fi
7315rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7316
7317else $as_nop
7318            printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with extensions" >&5
7319                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320/* end confdefs.h.  */
7321
7322#define _XOPEN_SOURCE__ 700
7323$mhd_cpsxf_tmp_src_variable
7324
7325_ACEOF
7326if ac_fn_c_try_compile "$LINENO"
7327then :
7328                printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with _XOPEN_SOURCE__=700" >&5
7329              mhd_cpsxfs_tmp_features_available="yes" # VAR-FEATURES-AVAILABLE-YES_NO
7330                            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7331/* end confdefs.h.  */
7332
7333$mhd_cpsxf_tmp_src_variable
7334
7335_ACEOF
7336if ac_fn_c_try_compile "$LINENO"
7337then :
7338                    printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work by default" >&5
7339                  mhd_cpsxfs_tmp_src_xopen_allowed="allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED
7340
7341else $as_nop
7342                    printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT by default" >&5
7343                  mhd_cpsxfs_tmp_src_xopen_allowed="required" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED
7344
7345
7346fi
7347rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7348                            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7349/* end confdefs.h.  */
7350
7351$mhd_cpsxf_tmp_defs_variable
7352#define _XOPEN_SOURCE__ 700
7353$mhd_cpsxf_tmp_src_variable
7354
7355_ACEOF
7356if ac_fn_c_try_compile "$LINENO"
7357then :
7358                    printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with _XOPEN_SOURCE__=700 and extensions" >&5
7359                  mhd_cpsxfs_tmp_extentions_allowed="allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED
7360
7361else $as_nop
7362                    printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with _XOPEN_SOURCE__=700 and extensions" >&5
7363                  mhd_cpsxfs_tmp_extentions_allowed="not allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED
7364
7365
7366fi
7367rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7368
7369else $as_nop
7370                printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with _XOPEN_SOURCE__=700" >&5
7371              mhd_cpsxfs_tmp_features_available="no" # VAR-FEATURES-AVAILABLE-YES_NO
7372
7373
7374fi
7375rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7376
7377
7378fi
7379rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7380
7381
7382fi
7383rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7384  { mhd_cpsxf_tmp_defs_variable=; unset mhd_cpsxf_tmp_defs_variable;}
7385  { mhd_cpsxf_tmp_src_variable=; unset mhd_cpsxf_tmp_src_variable;}
7386
7387  if test "x$mhd_cpsxfs_tmp_features_available" = x"yes"
7388then :
7389
7390      if test "x$mhd_cpsxfs_tmp_features_disableable" = x"yes"
7391then :
7392
7393          if test "x$mhd_cpsxfs_tmp_extentions_allowed" = x"required"
7394then :
7395
7396              if test "x$mhd_cpsxfs_tmp_src_xopen_allowed" = x"allowed"
7397then :
7398
7399                  mhd_cv_headers_posix2008="available, activated by extension macro, works with _XOPEN_SOURCE__=700"
7400
7401else $as_nop
7402
7403                  mhd_cv_headers_posix2008="available, activated by extension macro, does not work with _XOPEN_SOURCE__=700"
7404
7405
7406fi
7407
7408else $as_nop
7409
7410              if test "x$mhd_cpsxfs_tmp_extentions_allowed" = x"allowed"
7411then :
7412
7413                  if test "x$mhd_cpsxfs_tmp_src_xopen_allowed" = x"required"
7414then :
7415
7416                      mhd_cv_headers_posix2008="available, activated by _XOPEN_SOURCE__=700, works with extension macro"
7417
7418else $as_nop
7419
7420                      if test "x$mhd_cpsxfs_tmp_src_xopen_allowed" = x"allowed"
7421then :
7422
7423                          mhd_cv_headers_posix2008="available, works with _XOPEN_SOURCE__=700, works with extension macro"
7424
7425else $as_nop
7426
7427                          mhd_cv_headers_posix2008="available, works with extension macro, does not work with _XOPEN_SOURCE__=700"
7428
7429
7430fi
7431
7432
7433fi
7434
7435else $as_nop
7436
7437                  if test "x$mhd_cpsxfs_tmp_src_xopen_allowed" = x"required"
7438then :
7439
7440                      mhd_cv_headers_posix2008="available, activated by _XOPEN_SOURCE__=700, does not work with extension macro"
7441
7442else $as_nop
7443
7444                      if test "x$mhd_cpsxfs_tmp_src_xopen_allowed" = x"allowed"
7445then :
7446
7447                          mhd_cv_headers_posix2008="available, works with _XOPEN_SOURCE__=700, does not work with extension macro"
7448
7449else $as_nop
7450
7451                          mhd_cv_headers_posix2008="available, does not work with _XOPEN_SOURCE__=700, does not work with extension macro"
7452
7453
7454fi
7455
7456
7457fi
7458
7459
7460fi
7461
7462
7463fi
7464
7465else $as_nop
7466
7467          mhd_cv_headers_posix2008="available, works always"
7468
7469
7470fi
7471
7472else $as_nop
7473
7474      mhd_cv_headers_posix2008="not available"
7475
7476
7477fi
7478  { mhd_cpsxfs_tmp_features_disableable=; unset mhd_cpsxfs_tmp_features_disableable;}
7479  { mhd_cpsxfs_tmp_src_xopen_allowed=; unset mhd_cpsxfs_tmp_src_xopen_allowed;}
7480  { mhd_cpsxfs_tmp_extentions_allowed=; unset mhd_cpsxfs_tmp_extentions_allowed;}
7481  { mhd_cpsxfs_tmp_features_available=; unset mhd_cpsxfs_tmp_features_available;}
7482
7483
7484
7485fi
7486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_headers_posix2008" >&5
7487printf "%s\n" "$mhd_cv_headers_posix2008" >&6; }
7488  if `echo "${mhd_cv_headers_posix2008}" | $GREP '^available' >/dev/null 2>&1`
7489then :
7490
7491      if `echo "${mhd_cv_headers_posix2008}" | $FGREP 'does not work with _XOPEN_SOURCE__' >/dev/null 2>&1`
7492then :
7493  :
7494else $as_nop
7495        mhd_mse_xopen_defines="${mhd_mse_xopen_defines}#define _XOPEN_SOURCE__ 700
7496"
7497    if test "x${mhd_mse_xopen_flags}" = "x"
7498then :
7499  mhd_mse_xopen_flags="_XOPEN_SOURCE__=700"
7500else $as_nop
7501  mhd_mse_xopen_flags="${mhd_mse_xopen_flags} _XOPEN_SOURCE__=700"
7502
7503fi
7504
7505fi
7506
7507      mhd_mse_xopen_features="${mhd_cv_headers_posix2008}"
7508
7509else $as_nop
7510
7511            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking headers for POSIX.1-2001/SUSv3 features" >&5
7512printf %s "checking headers for POSIX.1-2001/SUSv3 features... " >&6; }
7513if test ${mhd_cv_headers_posix2001+y}
7514then :
7515  printf %s "(cached) " >&6
7516else $as_nop
7517
7518                { mhd_cpsxfs_tmp_features_available=; unset mhd_cpsxfs_tmp_features_available;}
7519  { mhd_cpsxfs_tmp_extentions_allowed=; unset mhd_cpsxfs_tmp_extentions_allowed;}
7520  { mhd_cpsxfs_tmp_src_xopen_allowed=; unset mhd_cpsxfs_tmp_src_xopen_allowed;}
7521  { mhd_cpsxfs_tmp_features_disableable=; unset mhd_cpsxfs_tmp_features_disableable;}
7522        mhd_cpsxf_tmp_src_variable="
7523
7524 /* Start of MHD basic test includes */
7525$mhd_basic_headers_includes /* End of MHD basic test includes */
7526
7527
7528/* Check will be passed if ALL features are available
7529 * and failed if ANY feature is not available. */
7530int main()
7531{
7532
7533#ifndef setenv
7534  (void) setenv;
7535#endif
7536
7537#ifndef __NetBSD__
7538#ifndef vsscanf
7539  (void) vsscanf;
7540#endif
7541#endif
7542
7543/* Availability of next features varies, but they all must be present
7544 * on platform with support for _XOPEN_SOURCE__ = 600. */
7545
7546/* vsnprintf() should be available with _XOPEN_SOURCE__ >= 500, but some platforms
7547 * provide it only with _POSIX_C_SOURCE >= 200112 (autodefined when
7548 * _XOPEN_SOURCE__ >= 600) where specification of vsnprintf() is aligned with
7549 * ISO C99 while others platforms defined it with even earlier standards. */
7550#ifndef vsnprintf
7551  (void) vsnprintf;
7552#endif
7553
7554/* On platforms that prefer POSIX over X/Open, fseeko() is available
7555 * with _POSIX_C_SOURCE >= 200112 (autodefined when _XOPEN_SOURCE__ >= 600).
7556 * On other platforms it should be available with _XOPEN_SOURCE__ >= 500. */
7557#ifndef fseeko
7558  (void) fseeko;
7559#endif
7560
7561/* F_GETOWN must be defined with _XOPEN_SOURCE__ >= 600, but some platforms
7562 * define it with _XOPEN_SOURCE__ >= 500. */
7563#ifndef F_GETOWN
7564#error F_GETOWN is not defined
7565choke me now;
7566#endif
7567  return 0;
7568}
7569
7570"
7571    mhd_cpsxf_tmp_defs_variable="
7572${mhd_mse_sys_ext_defines}
7573"
7574
7575            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7576/* end confdefs.h.  */
7577
7578$mhd_undef_all_extensions
7579
7580$mhd_cpsxf_tmp_src_variable
7581
7582_ACEOF
7583if ac_fn_c_try_compile "$LINENO"
7584then :
7585        printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with undefined all extensions and without _XOPEN_SOURCE__" >&5
7586      mhd_cpsxfs_tmp_features_available="yes" # VAR-FEATURES-AVAILABLE-YES_NO
7587
7588            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589/* end confdefs.h.  */
7590
7591$mhd_cpsxf_tmp_defs_variable
7592$mhd_cpsxf_tmp_src_variable
7593
7594_ACEOF
7595if ac_fn_c_try_compile "$LINENO"
7596then :
7597            printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with extensions" >&5
7598          mhd_cpsxfs_tmp_extentions_allowed="allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED
7599                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7600/* end confdefs.h.  */
7601
7602$mhd_cpsxf_tmp_defs_variable
7603#define _XOPEN_SOURCE__ 600
7604$mhd_cpsxf_tmp_src_variable
7605
7606_ACEOF
7607if ac_fn_c_try_compile "$LINENO"
7608then :
7609                printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with extensions and with _XOPEN_SOURCE__=600" >&5
7610              mhd_cpsxfs_tmp_src_xopen_allowed="allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED
7611                                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7612/* end confdefs.h.  */
7613
7614$mhd_undef_all_extensions
7615
7616#define _POSIX_C_SOURCE 1
7617#define  _ANSI_SOURCE 1
7618$mhd_cpsxf_tmp_src_variable
7619
7620_ACEOF
7621if ac_fn_c_try_compile "$LINENO"
7622then :
7623                    printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with disabled extensions, with _POSIX_C_SOURCE=1 and _ANSI_SOURCE=1" >&5
7624                  mhd_cpsxfs_tmp_features_disableable="no" # VAR-FEATURES-DISABLEABLE-YES_NO
7625
7626else $as_nop
7627                    printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with disabled extensions, with _POSIX_C_SOURCE=1 and _ANSI_SOURCE=1" >&5
7628                  mhd_cpsxfs_tmp_features_disableable="yes" # VAR-FEATURES-DISABLEABLE-YES_NO
7629
7630
7631fi
7632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7633
7634else $as_nop
7635                printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with extensions and with _XOPEN_SOURCE__=600" >&5
7636              mhd_cpsxfs_tmp_src_xopen_allowed="not allowed"  # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED
7637              mhd_cpsxfs_tmp_features_disableable="yes" # VAR-FEATURES-DISABLEABLE-YES_NO
7638
7639
7640fi
7641rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7642
7643else $as_nop
7644            printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with extensions" >&5
7645          mhd_cpsxfs_tmp_features_disableable="yes" # VAR-FEATURES-DISABLEABLE-YES_NO
7646                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647/* end confdefs.h.  */
7648
7649#define _XOPEN_SOURCE__ 600
7650$mhd_cpsxf_tmp_src_variable
7651
7652_ACEOF
7653if ac_fn_c_try_compile "$LINENO"
7654then :
7655                printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with _XOPEN_SOURCE__=600" >&5
7656                            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657/* end confdefs.h.  */
7658
7659$mhd_cpsxf_tmp_src_variable
7660
7661_ACEOF
7662if ac_fn_c_try_compile "$LINENO"
7663then :
7664                    printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work by default" >&5
7665                  mhd_cpsxfs_tmp_src_xopen_allowed="allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED
7666
7667else $as_nop
7668                    printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT by default" >&5
7669                  mhd_cpsxfs_tmp_src_xopen_allowed="required" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED
7670
7671
7672fi
7673rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7674                            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675/* end confdefs.h.  */
7676
7677$mhd_cpsxf_tmp_defs_variable
7678#define _XOPEN_SOURCE__ 600
7679$mhd_cpsxf_tmp_src_variable
7680
7681_ACEOF
7682if ac_fn_c_try_compile "$LINENO"
7683then :
7684                    printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with _XOPEN_SOURCE__ and extensions" >&5
7685                  mhd_cpsxfs_tmp_extentions_allowed="allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED
7686
7687else $as_nop
7688                    printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with _XOPEN_SOURCE__ and extensions" >&5
7689                  mhd_cpsxfs_tmp_extentions_allowed="not allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED
7690
7691
7692fi
7693rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7694
7695else $as_nop
7696                printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with _XOPEN_SOURCE__=600" >&5
7697              mhd_cpsxfs_tmp_extentions_allowed="not allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED
7698              mhd_cpsxfs_tmp_src_xopen_allowed="not allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED
7699
7700
7701fi
7702rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7703
7704
7705fi
7706rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7707
7708else $as_nop
7709        printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with undefined all extensions and without _XOPEN_SOURCE__" >&5
7710            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7711/* end confdefs.h.  */
7712
7713$mhd_cpsxf_tmp_defs_variable
7714$mhd_cpsxf_tmp_src_variable
7715
7716_ACEOF
7717if ac_fn_c_try_compile "$LINENO"
7718then :
7719            printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with extensions" >&5
7720          mhd_cpsxfs_tmp_features_available="yes" # VAR-FEATURES-AVAILABLE-YES_NO
7721          mhd_cpsxfs_tmp_features_disableable="yes" # VAR-FEATURES-DISABLEABLE-YES_NO
7722                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723/* end confdefs.h.  */
7724
7725$mhd_cpsxf_tmp_src_variable
7726
7727_ACEOF
7728if ac_fn_c_try_compile "$LINENO"
7729then :
7730                printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work by default" >&5
7731              mhd_cpsxfs_tmp_extentions_allowed="allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED
7732
7733else $as_nop
7734                printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT by default" >&5
7735              mhd_cpsxfs_tmp_extentions_allowed="required" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED
7736
7737
7738fi
7739rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7740                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7741/* end confdefs.h.  */
7742
7743$mhd_cpsxf_tmp_defs_variable
7744#define _XOPEN_SOURCE__ 600
7745$mhd_cpsxf_tmp_src_variable
7746
7747_ACEOF
7748if ac_fn_c_try_compile "$LINENO"
7749then :
7750                printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with extensions and _XOPEN_SOURCE__=600" >&5
7751              mhd_cpsxfs_tmp_src_xopen_allowed="allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED
7752
7753else $as_nop
7754                printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with extensions and _XOPEN_SOURCE__=600" >&5
7755              mhd_cpsxfs_tmp_src_xopen_allowed="not allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED
7756
7757
7758fi
7759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7760
7761else $as_nop
7762            printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with extensions" >&5
7763                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764/* end confdefs.h.  */
7765
7766#define _XOPEN_SOURCE__ 600
7767$mhd_cpsxf_tmp_src_variable
7768
7769_ACEOF
7770if ac_fn_c_try_compile "$LINENO"
7771then :
7772                printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with _XOPEN_SOURCE__=600" >&5
7773              mhd_cpsxfs_tmp_features_available="yes" # VAR-FEATURES-AVAILABLE-YES_NO
7774                            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775/* end confdefs.h.  */
7776
7777$mhd_cpsxf_tmp_src_variable
7778
7779_ACEOF
7780if ac_fn_c_try_compile "$LINENO"
7781then :
7782                    printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work by default" >&5
7783                  mhd_cpsxfs_tmp_src_xopen_allowed="allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED
7784
7785else $as_nop
7786                    printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT by default" >&5
7787                  mhd_cpsxfs_tmp_src_xopen_allowed="required" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED
7788
7789
7790fi
7791rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7792                            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7793/* end confdefs.h.  */
7794
7795$mhd_cpsxf_tmp_defs_variable
7796#define _XOPEN_SOURCE__ 600
7797$mhd_cpsxf_tmp_src_variable
7798
7799_ACEOF
7800if ac_fn_c_try_compile "$LINENO"
7801then :
7802                    printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with _XOPEN_SOURCE__=600 and extensions" >&5
7803                  mhd_cpsxfs_tmp_extentions_allowed="allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED
7804
7805else $as_nop
7806                    printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with _XOPEN_SOURCE__=600 and extensions" >&5
7807                  mhd_cpsxfs_tmp_extentions_allowed="not allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED
7808
7809
7810fi
7811rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7812
7813else $as_nop
7814                printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with _XOPEN_SOURCE__=600" >&5
7815              mhd_cpsxfs_tmp_features_available="no" # VAR-FEATURES-AVAILABLE-YES_NO
7816
7817
7818fi
7819rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7820
7821
7822fi
7823rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7824
7825
7826fi
7827rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7828  { mhd_cpsxf_tmp_defs_variable=; unset mhd_cpsxf_tmp_defs_variable;}
7829  { mhd_cpsxf_tmp_src_variable=; unset mhd_cpsxf_tmp_src_variable;}
7830
7831  if test "x$mhd_cpsxfs_tmp_features_available" = x"yes"
7832then :
7833
7834      if test "x$mhd_cpsxfs_tmp_features_disableable" = x"yes"
7835then :
7836
7837          if test "x$mhd_cpsxfs_tmp_extentions_allowed" = x"required"
7838then :
7839
7840              if test "x$mhd_cpsxfs_tmp_src_xopen_allowed" = x"allowed"
7841then :
7842
7843                  mhd_cv_headers_posix2001="available, activated by extension macro, works with _XOPEN_SOURCE__=600"
7844
7845else $as_nop
7846
7847                  mhd_cv_headers_posix2001="available, activated by extension macro, does not work with _XOPEN_SOURCE__=600"
7848
7849
7850fi
7851
7852else $as_nop
7853
7854              if test "x$mhd_cpsxfs_tmp_extentions_allowed" = x"allowed"
7855then :
7856
7857                  if test "x$mhd_cpsxfs_tmp_src_xopen_allowed" = x"required"
7858then :
7859
7860                      mhd_cv_headers_posix2001="available, activated by _XOPEN_SOURCE__=600, works with extension macro"
7861
7862else $as_nop
7863
7864                      if test "x$mhd_cpsxfs_tmp_src_xopen_allowed" = x"allowed"
7865then :
7866
7867                          mhd_cv_headers_posix2001="available, works with _XOPEN_SOURCE__=600, works with extension macro"
7868
7869else $as_nop
7870
7871                          mhd_cv_headers_posix2001="available, works with extension macro, does not work with _XOPEN_SOURCE__=600"
7872
7873
7874fi
7875
7876
7877fi
7878
7879else $as_nop
7880
7881                  if test "x$mhd_cpsxfs_tmp_src_xopen_allowed" = x"required"
7882then :
7883
7884                      mhd_cv_headers_posix2001="available, activated by _XOPEN_SOURCE__=600, does not work with extension macro"
7885
7886else $as_nop
7887
7888                      if test "x$mhd_cpsxfs_tmp_src_xopen_allowed" = x"allowed"
7889then :
7890
7891                          mhd_cv_headers_posix2001="available, works with _XOPEN_SOURCE__=600, does not work with extension macro"
7892
7893else $as_nop
7894
7895                          mhd_cv_headers_posix2001="available, does not work with _XOPEN_SOURCE__=600, does not work with extension macro"
7896
7897
7898fi
7899
7900
7901fi
7902
7903
7904fi
7905
7906
7907fi
7908
7909else $as_nop
7910
7911          mhd_cv_headers_posix2001="available, works always"
7912
7913
7914fi
7915
7916else $as_nop
7917
7918      mhd_cv_headers_posix2001="not available"
7919
7920
7921fi
7922  { mhd_cpsxfs_tmp_features_disableable=; unset mhd_cpsxfs_tmp_features_disableable;}
7923  { mhd_cpsxfs_tmp_src_xopen_allowed=; unset mhd_cpsxfs_tmp_src_xopen_allowed;}
7924  { mhd_cpsxfs_tmp_extentions_allowed=; unset mhd_cpsxfs_tmp_extentions_allowed;}
7925  { mhd_cpsxfs_tmp_features_available=; unset mhd_cpsxfs_tmp_features_available;}
7926
7927
7928
7929fi
7930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_headers_posix2001" >&5
7931printf "%s\n" "$mhd_cv_headers_posix2001" >&6; }
7932  if `echo "${mhd_cv_headers_posix2001}" | $GREP '^available' >/dev/null 2>&1`
7933then :
7934
7935      if `echo "${mhd_cv_headers_posix2001}" | $FGREP 'does not work with _XOPEN_SOURCE__' >/dev/null 2>&1`
7936then :
7937  :
7938else $as_nop
7939        mhd_mse_xopen_defines="${mhd_mse_xopen_defines}#define _XOPEN_SOURCE__ 600
7940"
7941    if test "x${mhd_mse_xopen_flags}" = "x"
7942then :
7943  mhd_mse_xopen_flags="_XOPEN_SOURCE__=600"
7944else $as_nop
7945  mhd_mse_xopen_flags="${mhd_mse_xopen_flags} _XOPEN_SOURCE__=600"
7946
7947fi
7948
7949fi
7950
7951      mhd_mse_xopen_features="${mhd_cv_headers_posix2001}"
7952
7953else $as_nop
7954
7955                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking headers for SUSv2/XPG5 features" >&5
7956printf %s "checking headers for SUSv2/XPG5 features... " >&6; }
7957if test ${mhd_cv_headers_susv2+y}
7958then :
7959  printf %s "(cached) " >&6
7960else $as_nop
7961
7962                { mhd_cpsxfs_tmp_features_available=; unset mhd_cpsxfs_tmp_features_available;}
7963  { mhd_cpsxfs_tmp_extentions_allowed=; unset mhd_cpsxfs_tmp_extentions_allowed;}
7964  { mhd_cpsxfs_tmp_src_xopen_allowed=; unset mhd_cpsxfs_tmp_src_xopen_allowed;}
7965  { mhd_cpsxfs_tmp_features_disableable=; unset mhd_cpsxfs_tmp_features_disableable;}
7966        mhd_cpsxf_tmp_src_variable="
7967
7968 /* Start of MHD basic test includes */
7969$mhd_basic_headers_includes /* End of MHD basic test includes */
7970
7971
7972/* Check will be passed if ALL features are available
7973 * and failed if ANY feature is not available. */
7974int main()
7975{
7976/* It's not easy to write reliable test for _XOPEN_SOURCE__ = 500 as
7977 * platforms not always precisely follow this standard and some
7978 * functions are already deprecated in later standards. */
7979
7980/* Availability of next features varies, but they all must be present
7981 * on platform with correct support for _XOPEN_SOURCE__ = 500. */
7982
7983/* Mandatory with _XOPEN_SOURCE__ >= 500 but as XSI extension available
7984 * with much older standards. */
7985#ifndef ftruncate
7986  (void) ftruncate;
7987#endif
7988
7989/* Added with _XOPEN_SOURCE__ >= 500 but was available in some standards
7990 * before. XSI extension. */
7991#ifndef pread
7992  (void) pread;
7993#endif
7994
7995#ifndef __APPLE__
7996/* Actually comes from XPG4v2 and must be available
7997 * with _XOPEN_SOURCE__ >= 500 as well. */
7998#ifndef symlink
7999  (void) symlink;
8000#endif
8001
8002/* Actually comes from XPG4v2 and must be available
8003 * with _XOPEN_SOURCE__ >= 500 as well. XSI extension. */
8004#ifndef strdup
8005  (void) strdup;
8006#endif
8007#endif /* ! __APPLE__ */
8008  return 0;
8009}
8010
8011"
8012    mhd_cpsxf_tmp_defs_variable="
8013${mhd_mse_sys_ext_defines}
8014"
8015
8016            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8017/* end confdefs.h.  */
8018
8019$mhd_undef_all_extensions
8020
8021$mhd_cpsxf_tmp_src_variable
8022
8023_ACEOF
8024if ac_fn_c_try_compile "$LINENO"
8025then :
8026        printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with undefined all extensions and without _XOPEN_SOURCE__" >&5
8027      mhd_cpsxfs_tmp_features_available="yes" # VAR-FEATURES-AVAILABLE-YES_NO
8028
8029            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8030/* end confdefs.h.  */
8031
8032$mhd_cpsxf_tmp_defs_variable
8033$mhd_cpsxf_tmp_src_variable
8034
8035_ACEOF
8036if ac_fn_c_try_compile "$LINENO"
8037then :
8038            printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with extensions" >&5
8039          mhd_cpsxfs_tmp_extentions_allowed="allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED
8040                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8041/* end confdefs.h.  */
8042
8043$mhd_cpsxf_tmp_defs_variable
8044#define _XOPEN_SOURCE__ 500
8045$mhd_cpsxf_tmp_src_variable
8046
8047_ACEOF
8048if ac_fn_c_try_compile "$LINENO"
8049then :
8050                printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with extensions and with _XOPEN_SOURCE__=500" >&5
8051              mhd_cpsxfs_tmp_src_xopen_allowed="allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED
8052                                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8053/* end confdefs.h.  */
8054
8055$mhd_undef_all_extensions
8056
8057#define _POSIX_C_SOURCE 1
8058#define  _ANSI_SOURCE 1
8059$mhd_cpsxf_tmp_src_variable
8060
8061_ACEOF
8062if ac_fn_c_try_compile "$LINENO"
8063then :
8064                    printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with disabled extensions, with _POSIX_C_SOURCE=1 and _ANSI_SOURCE=1" >&5
8065                  mhd_cpsxfs_tmp_features_disableable="no" # VAR-FEATURES-DISABLEABLE-YES_NO
8066
8067else $as_nop
8068                    printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with disabled extensions, with _POSIX_C_SOURCE=1 and _ANSI_SOURCE=1" >&5
8069                  mhd_cpsxfs_tmp_features_disableable="yes" # VAR-FEATURES-DISABLEABLE-YES_NO
8070
8071
8072fi
8073rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8074
8075else $as_nop
8076                printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with extensions and with _XOPEN_SOURCE__=500" >&5
8077              mhd_cpsxfs_tmp_src_xopen_allowed="not allowed"  # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED
8078              mhd_cpsxfs_tmp_features_disableable="yes" # VAR-FEATURES-DISABLEABLE-YES_NO
8079
8080
8081fi
8082rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8083
8084else $as_nop
8085            printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with extensions" >&5
8086          mhd_cpsxfs_tmp_features_disableable="yes" # VAR-FEATURES-DISABLEABLE-YES_NO
8087                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088/* end confdefs.h.  */
8089
8090#define _XOPEN_SOURCE__ 500
8091$mhd_cpsxf_tmp_src_variable
8092
8093_ACEOF
8094if ac_fn_c_try_compile "$LINENO"
8095then :
8096                printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with _XOPEN_SOURCE__=500" >&5
8097                            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8098/* end confdefs.h.  */
8099
8100$mhd_cpsxf_tmp_src_variable
8101
8102_ACEOF
8103if ac_fn_c_try_compile "$LINENO"
8104then :
8105                    printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work by default" >&5
8106                  mhd_cpsxfs_tmp_src_xopen_allowed="allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED
8107
8108else $as_nop
8109                    printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT by default" >&5
8110                  mhd_cpsxfs_tmp_src_xopen_allowed="required" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED
8111
8112
8113fi
8114rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8115                            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8116/* end confdefs.h.  */
8117
8118$mhd_cpsxf_tmp_defs_variable
8119#define _XOPEN_SOURCE__ 500
8120$mhd_cpsxf_tmp_src_variable
8121
8122_ACEOF
8123if ac_fn_c_try_compile "$LINENO"
8124then :
8125                    printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with _XOPEN_SOURCE__ and extensions" >&5
8126                  mhd_cpsxfs_tmp_extentions_allowed="allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED
8127
8128else $as_nop
8129                    printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with _XOPEN_SOURCE__ and extensions" >&5
8130                  mhd_cpsxfs_tmp_extentions_allowed="not allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED
8131
8132
8133fi
8134rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8135
8136else $as_nop
8137                printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with _XOPEN_SOURCE__=500" >&5
8138              mhd_cpsxfs_tmp_extentions_allowed="not allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED
8139              mhd_cpsxfs_tmp_src_xopen_allowed="not allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED
8140
8141
8142fi
8143rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8144
8145
8146fi
8147rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8148
8149else $as_nop
8150        printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with undefined all extensions and without _XOPEN_SOURCE__" >&5
8151            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8152/* end confdefs.h.  */
8153
8154$mhd_cpsxf_tmp_defs_variable
8155$mhd_cpsxf_tmp_src_variable
8156
8157_ACEOF
8158if ac_fn_c_try_compile "$LINENO"
8159then :
8160            printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with extensions" >&5
8161          mhd_cpsxfs_tmp_features_available="yes" # VAR-FEATURES-AVAILABLE-YES_NO
8162          mhd_cpsxfs_tmp_features_disableable="yes" # VAR-FEATURES-DISABLEABLE-YES_NO
8163                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8164/* end confdefs.h.  */
8165
8166$mhd_cpsxf_tmp_src_variable
8167
8168_ACEOF
8169if ac_fn_c_try_compile "$LINENO"
8170then :
8171                printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work by default" >&5
8172              mhd_cpsxfs_tmp_extentions_allowed="allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED
8173
8174else $as_nop
8175                printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT by default" >&5
8176              mhd_cpsxfs_tmp_extentions_allowed="required" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED
8177
8178
8179fi
8180rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8181                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8182/* end confdefs.h.  */
8183
8184$mhd_cpsxf_tmp_defs_variable
8185#define _XOPEN_SOURCE__ 500
8186$mhd_cpsxf_tmp_src_variable
8187
8188_ACEOF
8189if ac_fn_c_try_compile "$LINENO"
8190then :
8191                printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with extensions and _XOPEN_SOURCE__=500" >&5
8192              mhd_cpsxfs_tmp_src_xopen_allowed="allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED
8193
8194else $as_nop
8195                printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with extensions and _XOPEN_SOURCE__=500" >&5
8196              mhd_cpsxfs_tmp_src_xopen_allowed="not allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED
8197
8198
8199fi
8200rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8201
8202else $as_nop
8203            printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with extensions" >&5
8204                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205/* end confdefs.h.  */
8206
8207#define _XOPEN_SOURCE__ 500
8208$mhd_cpsxf_tmp_src_variable
8209
8210_ACEOF
8211if ac_fn_c_try_compile "$LINENO"
8212then :
8213                printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with _XOPEN_SOURCE__=500" >&5
8214              mhd_cpsxfs_tmp_features_available="yes" # VAR-FEATURES-AVAILABLE-YES_NO
8215                            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8216/* end confdefs.h.  */
8217
8218$mhd_cpsxf_tmp_src_variable
8219
8220_ACEOF
8221if ac_fn_c_try_compile "$LINENO"
8222then :
8223                    printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work by default" >&5
8224                  mhd_cpsxfs_tmp_src_xopen_allowed="allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED
8225
8226else $as_nop
8227                    printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT by default" >&5
8228                  mhd_cpsxfs_tmp_src_xopen_allowed="required" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED
8229
8230
8231fi
8232rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8233                            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8234/* end confdefs.h.  */
8235
8236$mhd_cpsxf_tmp_defs_variable
8237#define _XOPEN_SOURCE__ 500
8238$mhd_cpsxf_tmp_src_variable
8239
8240_ACEOF
8241if ac_fn_c_try_compile "$LINENO"
8242then :
8243                    printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with _XOPEN_SOURCE__=500 and extensions" >&5
8244                  mhd_cpsxfs_tmp_extentions_allowed="allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED
8245
8246else $as_nop
8247                    printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with _XOPEN_SOURCE__=500 and extensions" >&5
8248                  mhd_cpsxfs_tmp_extentions_allowed="not allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED
8249
8250
8251fi
8252rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8253
8254else $as_nop
8255                printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with _XOPEN_SOURCE__=500" >&5
8256              mhd_cpsxfs_tmp_features_available="no" # VAR-FEATURES-AVAILABLE-YES_NO
8257
8258
8259fi
8260rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8261
8262
8263fi
8264rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8265
8266
8267fi
8268rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8269  { mhd_cpsxf_tmp_defs_variable=; unset mhd_cpsxf_tmp_defs_variable;}
8270  { mhd_cpsxf_tmp_src_variable=; unset mhd_cpsxf_tmp_src_variable;}
8271
8272  if test "x$mhd_cpsxfs_tmp_features_available" = x"yes"
8273then :
8274
8275      if test "x$mhd_cpsxfs_tmp_features_disableable" = x"yes"
8276then :
8277
8278          if test "x$mhd_cpsxfs_tmp_extentions_allowed" = x"required"
8279then :
8280
8281              if test "x$mhd_cpsxfs_tmp_src_xopen_allowed" = x"allowed"
8282then :
8283
8284                  mhd_cv_headers_susv2="available, activated by extension macro, works with _XOPEN_SOURCE__=500"
8285
8286else $as_nop
8287
8288                  mhd_cv_headers_susv2="available, activated by extension macro, does not work with _XOPEN_SOURCE__=500"
8289
8290
8291fi
8292
8293else $as_nop
8294
8295              if test "x$mhd_cpsxfs_tmp_extentions_allowed" = x"allowed"
8296then :
8297
8298                  if test "x$mhd_cpsxfs_tmp_src_xopen_allowed" = x"required"
8299then :
8300
8301                      mhd_cv_headers_susv2="available, activated by _XOPEN_SOURCE__=500, works with extension macro"
8302
8303else $as_nop
8304
8305                      if test "x$mhd_cpsxfs_tmp_src_xopen_allowed" = x"allowed"
8306then :
8307
8308                          mhd_cv_headers_susv2="available, works with _XOPEN_SOURCE__=500, works with extension macro"
8309
8310else $as_nop
8311
8312                          mhd_cv_headers_susv2="available, works with extension macro, does not work with _XOPEN_SOURCE__=500"
8313
8314
8315fi
8316
8317
8318fi
8319
8320else $as_nop
8321
8322                  if test "x$mhd_cpsxfs_tmp_src_xopen_allowed" = x"required"
8323then :
8324
8325                      mhd_cv_headers_susv2="available, activated by _XOPEN_SOURCE__=500, does not work with extension macro"
8326
8327else $as_nop
8328
8329                      if test "x$mhd_cpsxfs_tmp_src_xopen_allowed" = x"allowed"
8330then :
8331
8332                          mhd_cv_headers_susv2="available, works with _XOPEN_SOURCE__=500, does not work with extension macro"
8333
8334else $as_nop
8335
8336                          mhd_cv_headers_susv2="available, does not work with _XOPEN_SOURCE__=500, does not work with extension macro"
8337
8338
8339fi
8340
8341
8342fi
8343
8344
8345fi
8346
8347
8348fi
8349
8350else $as_nop
8351
8352          mhd_cv_headers_susv2="available, works always"
8353
8354
8355fi
8356
8357else $as_nop
8358
8359      mhd_cv_headers_susv2="not available"
8360
8361
8362fi
8363  { mhd_cpsxfs_tmp_features_disableable=; unset mhd_cpsxfs_tmp_features_disableable;}
8364  { mhd_cpsxfs_tmp_src_xopen_allowed=; unset mhd_cpsxfs_tmp_src_xopen_allowed;}
8365  { mhd_cpsxfs_tmp_extentions_allowed=; unset mhd_cpsxfs_tmp_extentions_allowed;}
8366  { mhd_cpsxfs_tmp_features_available=; unset mhd_cpsxfs_tmp_features_available;}
8367
8368
8369
8370fi
8371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_headers_susv2" >&5
8372printf "%s\n" "$mhd_cv_headers_susv2" >&6; }
8373  if `echo "${mhd_cv_headers_susv2}" | $GREP '^available' >/dev/null 2>&1`
8374then :
8375
8376      if `echo "${mhd_cv_headers_susv2}" | $FGREP 'does not work with _XOPEN_SOURCE__' >/dev/null 2>&1`
8377then :
8378  :
8379else $as_nop
8380        mhd_mse_xopen_defines="${mhd_mse_xopen_defines}#define _XOPEN_SOURCE__ 500
8381"
8382    if test "x${mhd_mse_xopen_flags}" = "x"
8383then :
8384  mhd_mse_xopen_flags="_XOPEN_SOURCE__=500"
8385else $as_nop
8386  mhd_mse_xopen_flags="${mhd_mse_xopen_flags} _XOPEN_SOURCE__=500"
8387
8388fi
8389
8390fi
8391
8392      mhd_mse_xopen_features="${mhd_cv_headers_susv2}"
8393
8394else $as_nop
8395  mhd_mse_xopen_features="${mhd_cv_headers_susv2}"
8396
8397
8398fi
8399
8400
8401
8402
8403
8404fi
8405
8406
8407
8408
8409
8410fi
8411
8412
8413
8414
8415fi
8416
8417  if test "x${mhd_cv_macro__xopen_source_defined}" = "xno" && \
8418          test "x${mhd_cv_macro__xopen_source_def_fiveh}" = "xno" || \
8419          test "x${mhd_mse_xopen_features}" = "xnot available"
8420then :
8421
8422              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE__ is already defined" >&5
8423printf %s "checking whether _XOPEN_SOURCE__ is already defined... " >&6; }
8424if test ${mhd_cv_macro__xopen_source_defined+y}
8425then :
8426  printf %s "(cached) " >&6
8427else $as_nop
8428        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429/* end confdefs.h.  */
8430
8431${mhd_mse_sys_ext_defines}
8432#ifndef _XOPEN_SOURCE__
8433#error _XOPEN_SOURCE__ is not defined
8434choke me now;
8435#endif
8436
8437int
8438main (void)
8439{
8440
8441  ;
8442  return 0;
8443}
8444
8445_ACEOF
8446if ac_fn_c_try_compile "$LINENO"
8447then :
8448  mhd_cv_macro__xopen_source_defined="yes"
8449else $as_nop
8450  mhd_cv_macro__xopen_source_defined="no"
8451
8452
8453fi
8454rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8455
8456
8457fi
8458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro__xopen_source_defined" >&5
8459printf "%s\n" "$mhd_cv_macro__xopen_source_defined" >&6; }
8460  if test "x$mhd_cv_macro__xopen_source_defined" = x"yes"
8461then :
8462
8463      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether predefined value of _XOPEN_SOURCE__ is more or equal 500" >&5
8464printf %s "checking whether predefined value of _XOPEN_SOURCE__ is more or equal 500... " >&6; }
8465if test ${mhd_cv_macro__xopen_source_def_fiveh+y}
8466then :
8467  printf %s "(cached) " >&6
8468else $as_nop
8469            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8470/* end confdefs.h.  */
8471
8472${mhd_mse_sys_ext_defines}
8473#if _XOPEN_SOURCE__+0 < 500
8474#error Value of _XOPEN_SOURCE__ is less than 500
8475choke me now;
8476#endif
8477
8478int
8479main (void)
8480{
8481int i = 0; i++; if(i) return i
8482  ;
8483  return 0;
8484}
8485_ACEOF
8486if ac_fn_c_try_compile "$LINENO"
8487then :
8488  mhd_cv_macro__xopen_source_def_fiveh="yes"
8489else $as_nop
8490  mhd_cv_macro__xopen_source_def_fiveh="no"
8491
8492fi
8493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8494
8495fi
8496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro__xopen_source_def_fiveh" >&5
8497printf "%s\n" "$mhd_cv_macro__xopen_source_def_fiveh" >&6; }
8498else $as_nop
8499            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether headers accept _XOPEN_SOURCE__ with value 1" >&5
8500printf %s "checking whether headers accept _XOPEN_SOURCE__ with value 1... " >&6; }
8501if test ${mhd_cv_define__xopen_source_accepted_1+y}
8502then :
8503  printf %s "(cached) " >&6
8504else $as_nop
8505        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8506/* end confdefs.h.  */
8507
8508${mhd_mse_sys_ext_defines}
8509#define _XOPEN_SOURCE__ 1
8510 /* Start of MHD basic test includes */
8511$mhd_basic_headers_includes /* End of MHD basic test includes */
8512
8513
8514int
8515main (void)
8516{
8517int i = 1; i++; if(i) return i
8518  ;
8519  return 0;
8520}
8521
8522_ACEOF
8523if ac_fn_c_try_compile "$LINENO"
8524then :
8525  mhd_cv_define__xopen_source_accepted_1="yes"
8526else $as_nop
8527  mhd_cv_define__xopen_source_accepted_1="no"
8528
8529fi
8530rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8531
8532
8533fi
8534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_define__xopen_source_accepted_1" >&5
8535printf "%s\n" "$mhd_cv_define__xopen_source_accepted_1" >&6; }
8536  if test "x$mhd_cv_define__xopen_source_accepted_1" = x"yes"
8537then :
8538        mhd_mse_xopen_defines="${mhd_mse_xopen_defines}#define _XOPEN_SOURCE__ 1
8539"
8540    if test "x${mhd_mse_xopen_flags}" = "x"
8541then :
8542  mhd_mse_xopen_flags="_XOPEN_SOURCE__=1"
8543else $as_nop
8544  mhd_mse_xopen_flags="${mhd_mse_xopen_flags} _XOPEN_SOURCE__=1"
8545
8546fi
8547
8548fi
8549
8550fi
8551
8552  if test "x${mhd_cv_define__xopen_source_accepted_1}" = "xyes" || \
8553          test "x${mhd_cv_macro__xopen_source_def_fiveh}" = "xno"
8554then :
8555
8556            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE___EXTENDED is already defined" >&5
8557printf %s "checking whether _XOPEN_SOURCE___EXTENDED is already defined... " >&6; }
8558if test ${mhd_cv_macro__xopen_source_extended_defined+y}
8559then :
8560  printf %s "(cached) " >&6
8561else $as_nop
8562        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8563/* end confdefs.h.  */
8564
8565
8566${mhd_mse_sys_ext_defines}
8567
8568#ifndef _XOPEN_SOURCE___EXTENDED
8569#error _XOPEN_SOURCE___EXTENDED is not defined
8570choke me now;
8571#endif
8572
8573int
8574main (void)
8575{
8576
8577  ;
8578  return 0;
8579}
8580
8581_ACEOF
8582if ac_fn_c_try_compile "$LINENO"
8583then :
8584  mhd_cv_macro__xopen_source_extended_defined="yes"
8585else $as_nop
8586  mhd_cv_macro__xopen_source_extended_defined="no"
8587
8588
8589fi
8590rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8591
8592
8593fi
8594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro__xopen_source_extended_defined" >&5
8595printf "%s\n" "$mhd_cv_macro__xopen_source_extended_defined" >&6; }
8596  if test "x$mhd_cv_macro__xopen_source_extended_defined" = x"yes"
8597then :
8598
8599else $as_nop
8600            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether headers accept _XOPEN_SOURCE___EXTENDED" >&5
8601printf %s "checking whether headers accept _XOPEN_SOURCE___EXTENDED... " >&6; }
8602if test ${mhd_cv_define__xopen_source_extended_accepted+y}
8603then :
8604  printf %s "(cached) " >&6
8605else $as_nop
8606        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8607/* end confdefs.h.  */
8608
8609
8610${mhd_mse_sys_ext_defines}
8611
8612#define _XOPEN_SOURCE___EXTENDED 1
8613 /* Start of MHD basic test includes */
8614$mhd_basic_headers_includes /* End of MHD basic test includes */
8615
8616
8617int
8618main (void)
8619{
8620int i = 1; i++; if(i) return i
8621  ;
8622  return 0;
8623}
8624
8625_ACEOF
8626if ac_fn_c_try_compile "$LINENO"
8627then :
8628  mhd_cv_define__xopen_source_extended_accepted="yes"
8629else $as_nop
8630  mhd_cv_define__xopen_source_extended_accepted="no"
8631
8632fi
8633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8634
8635
8636fi
8637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_define__xopen_source_extended_accepted" >&5
8638printf "%s\n" "$mhd_cv_define__xopen_source_extended_accepted" >&6; }
8639  if test "x$mhd_cv_define__xopen_source_extended_accepted" = x"yes"
8640then :
8641                mhd_mse_xopen_defines="${mhd_mse_xopen_defines}#define _XOPEN_SOURCE___EXTENDED 1
8642"
8643    if test "x${mhd_mse_xopen_flags}" = "x"
8644then :
8645  mhd_mse_xopen_flags="_XOPEN_SOURCE___EXTENDED"
8646else $as_nop
8647  mhd_mse_xopen_flags="${mhd_mse_xopen_flags} _XOPEN_SOURCE___EXTENDED"
8648
8649fi
8650
8651else $as_nop
8652              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_VERSION is already defined" >&5
8653printf %s "checking whether _XOPEN_VERSION is already defined... " >&6; }
8654if test ${mhd_cv_macro__xopen_version_defined+y}
8655then :
8656  printf %s "(cached) " >&6
8657else $as_nop
8658        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659/* end confdefs.h.  */
8660
8661
8662${mhd_mse_sys_ext_defines}
8663
8664#ifndef _XOPEN_VERSION
8665#error _XOPEN_VERSION is not defined
8666choke me now;
8667#endif
8668
8669int
8670main (void)
8671{
8672
8673  ;
8674  return 0;
8675}
8676
8677_ACEOF
8678if ac_fn_c_try_compile "$LINENO"
8679then :
8680  mhd_cv_macro__xopen_version_defined="yes"
8681else $as_nop
8682  mhd_cv_macro__xopen_version_defined="no"
8683
8684
8685fi
8686rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8687
8688
8689fi
8690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro__xopen_version_defined" >&5
8691printf "%s\n" "$mhd_cv_macro__xopen_version_defined" >&6; }
8692  if test "x$mhd_cv_macro__xopen_version_defined" = x"yes"
8693then :
8694
8695else $as_nop
8696            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for value of _XOPEN_VERSION accepted by headers" >&5
8697printf %s "checking for value of _XOPEN_VERSION accepted by headers... " >&6; }
8698if test ${mhd_cv_define__xopen_version_accepted+y}
8699then :
8700  printf %s "(cached) " >&6
8701else $as_nop
8702                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8703/* end confdefs.h.  */
8704
8705${mhd_mse_sys_ext_defines}
8706
8707#define _XOPEN_VERSION 4
8708 /* Start of MHD basic test includes */
8709$mhd_basic_headers_includes /* End of MHD basic test includes */
8710
8711
8712int
8713main (void)
8714{
8715int i = 1; i++; if(i) return i
8716  ;
8717  return 0;
8718}
8719
8720_ACEOF
8721if ac_fn_c_try_compile "$LINENO"
8722then :
8723  mhd_cv_define__xopen_version_accepted="4"
8724else $as_nop
8725
8726                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727/* end confdefs.h.  */
8728
8729${mhd_mse_sys_ext_defines}
8730
8731#define _XOPEN_VERSION 3
8732 /* Start of MHD basic test includes */
8733$mhd_basic_headers_includes /* End of MHD basic test includes */
8734
8735
8736int
8737main (void)
8738{
8739int i = 1; i++; if(i) return i
8740  ;
8741  return 0;
8742}
8743
8744_ACEOF
8745if ac_fn_c_try_compile "$LINENO"
8746then :
8747  mhd_cv_define__xopen_version_accepted="3"
8748else $as_nop
8749  mhd_cv_define__xopen_version_accepted="no"
8750
8751fi
8752rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8753
8754
8755fi
8756rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8757
8758
8759fi
8760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_define__xopen_version_accepted" >&5
8761printf "%s\n" "$mhd_cv_define__xopen_version_accepted" >&6; }
8762          if test "x$mhd_cv_define__xopen_version_accepted" = x"no"
8763then :
8764  :
8765else $as_nop
8766                    mhd_mse_xopen_defines="${mhd_mse_xopen_defines}#define _XOPEN_VERSION ${mhd_cv_define__xopen_version_accepted}
8767"
8768    if test "x${mhd_mse_xopen_flags}" = "x"
8769then :
8770  mhd_mse_xopen_flags="_XOPEN_VERSION=${mhd_cv_define__xopen_version_accepted}"
8771else $as_nop
8772  mhd_mse_xopen_flags="${mhd_mse_xopen_flags} _XOPEN_VERSION=${mhd_cv_define__xopen_version_accepted}"
8773
8774fi
8775
8776fi
8777
8778fi
8779
8780
8781fi
8782
8783fi
8784
8785
8786
8787fi
8788
8789
8790fi
8791
8792  mhd_mse_sys_features_src="
8793#ifdef __APPLE__
8794#include <sys/socket.h>
8795#else
8796#error No useful system features.
8797choke me now;
8798#endif
8799
8800int main()
8801{
8802#ifdef __APPLE__
8803#ifndef sendfile
8804  (void) sendfile;
8805#endif
8806#endif
8807  return 0;
8808}
8809"
8810  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for useful system-specific features" >&5
8811printf %s "checking for useful system-specific features... " >&6; }
8812if test ${mhd_cv_headers_useful_features_present+y}
8813then :
8814  printf %s "(cached) " >&6
8815else $as_nop
8816      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817/* end confdefs.h.  */
8818
8819${mhd_mse_sys_ext_defines}
8820${mhd_mse_sys_features_src}
8821
8822_ACEOF
8823if ac_fn_c_try_compile "$LINENO"
8824then :
8825  mhd_cv_headers_useful_features_present="yes"
8826else $as_nop
8827  mhd_cv_headers_useful_features_present="no"
8828
8829fi
8830rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8831fi
8832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_headers_useful_features_present" >&5
8833printf "%s\n" "$mhd_cv_headers_useful_features_present" >&6; }
8834  if test "x$mhd_cv_headers_useful_features_present" = x"yes"
8835then :
8836
8837      if test "x${mhd_mse_xopen_flags}" = "x"
8838then :
8839  :
8840else $as_nop
8841
8842          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether useful system-specific features works with ${mhd_mse_xopen_flags}" >&5
8843printf %s "checking whether useful system-specific features works with ${mhd_mse_xopen_flags}... " >&6; }
8844if test ${mhd_cv_headers_useful_features_works_xopen+y}
8845then :
8846  printf %s "(cached) " >&6
8847else $as_nop
8848              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8849/* end confdefs.h.  */
8850
8851${mhd_mse_sys_ext_defines}
8852${mhd_mse_xopen_defines}
8853${mhd_mse_sys_features_src}
8854
8855_ACEOF
8856if ac_fn_c_try_compile "$LINENO"
8857then :
8858  mhd_cv_headers_useful_features_works_xopen="yes"
8859else $as_nop
8860  mhd_cv_headers_useful_features_works_xopen="no"
8861
8862fi
8863rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8864fi
8865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_headers_useful_features_works_xopen" >&5
8866printf "%s\n" "$mhd_cv_headers_useful_features_works_xopen" >&6; }
8867
8868fi
8869
8870fi
8871
8872
8873  if test "x${mhd_cv_headers_useful_features_present}" = "xyes" && \
8874          test "x${mhd_cv_headers_useful_features_works_xopen}" = "xno" && \
8875          test "x${mhd_mse_xopen_flags}" != "x"
8876then :
8877
8878      if `echo "${mhd_mse_xopen_features}" | $FGREP ', activated by _XOPEN_SOURCE__' >/dev/null 2>&1`
8879then :
8880
8881          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: _XOPEN_SOURCE__ macro is required to activate all headers symbols, however some useful system-specific features does not work with _XOPEN_SOURCE__.           _XOPEN_SOURCE__ macro will not be used." >&5
8882printf "%s\n" "$as_me: WARNING: _XOPEN_SOURCE__ macro is required to activate all headers symbols, however some useful system-specific features does not work with _XOPEN_SOURCE__.           _XOPEN_SOURCE__ macro will not be used." >&2;}
8883
8884
8885fi
8886
8887      { mhd_mse_xopen_defines=; unset mhd_mse_xopen_defines;}
8888      { mhd_mse_xopen_flags=; unset mhd_mse_xopen_flags;}
8889      { mhd_mse_xopen_values=; unset mhd_mse_xopen_values;}
8890
8891
8892fi
8893
8894    { mhd_mse_sys_features_src=; unset mhd_mse_sys_features_src;}
8895  { mhd_mse_xopen_defines=; unset mhd_mse_xopen_defines;}
8896  { mhd_mse_sys_ext_defines=; unset mhd_mse_sys_ext_defines;}
8897
8898    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for final set of defined symbols" >&5
8899printf %s "checking for final set of defined symbols... " >&6; }
8900
8901  for mhd_mse_Flag in ${mhd_mse_sys_ext_flags} ${mhd_mse_xopen_flags}
8902  do
8903          case $mhd_mse_Flag in #(
8904  *=*) :
8905            cat >>confdefs.h <<_ACEOF
8906#define `echo $mhd_mse_Flag | cut -f 1 -d =` `echo $mhd_mse_Flag | cut -f 2 -d = -s`
8907_ACEOF
8908
8909       ;; #(
8910  *) :
8911            printf "%s\n" "#define $mhd_mse_Flag 1" >>confdefs.h
8912
8913       ;;
8914esac
8915
8916  done
8917  { mhd_mse_Flag=; unset mhd_mse_Flag;}
8918    mhd_mse_result=`echo ${mhd_mse_sys_ext_flags} ${mhd_mse_xopen_flags}`
8919  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${mhd_mse_result}" >&5
8920printf "%s\n" "${mhd_mse_result}" >&6; }
8921  { mhd_mse_result=; unset mhd_mse_result;}
8922  { mhd_mse_xopen_flags=; unset mhd_mse_xopen_flags;}
8923  { mhd_mse_sys_ext_flags=; unset mhd_mse_sys_ext_flags;}
8924  ac_ext=c
8925ac_cpp='$CPP $CPPFLAGS'
8926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8928ac_compiler_gnu=$ac_cv_c_compiler_gnu
8929
8930
8931case `pwd` in
8932  *\ * | *\	*)
8933    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8934printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8935esac
8936
8937
8938
8939macro_version='2.4.6'
8940macro_revision='2.4.6'
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955ltmain=$ac_aux_dir/ltmain.sh
8956
8957# Backslashify metacharacters that are still active within
8958# double-quoted strings.
8959sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8960
8961# Same as above, but do not quote variable references.
8962double_quote_subst='s/\(["`\\]\)/\\\1/g'
8963
8964# Sed substitution to delay expansion of an escaped shell variable in a
8965# double_quote_subst'ed string.
8966delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8967
8968# Sed substitution to delay expansion of an escaped single quote.
8969delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8970
8971# Sed substitution to avoid accidental globbing in evaled expressions
8972no_glob_subst='s/\*/\\\*/g'
8973
8974ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8975ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8976ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8977
8978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8979printf %s "checking how to print strings... " >&6; }
8980# Test print first, because it will be a builtin if present.
8981if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8982   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8983  ECHO='print -r --'
8984elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8985  ECHO='printf %s\n'
8986else
8987  # Use this function as a fallback that always works.
8988  func_fallback_echo ()
8989  {
8990    eval 'cat <<_LTECHO_EOF
8991$1
8992_LTECHO_EOF'
8993  }
8994  ECHO='func_fallback_echo'
8995fi
8996
8997# func_echo_all arg...
8998# Invoke $ECHO with all args, space-separated.
8999func_echo_all ()
9000{
9001    $ECHO ""
9002}
9003
9004case $ECHO in
9005  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
9006printf "%s\n" "printf" >&6; } ;;
9007  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
9008printf "%s\n" "print -r" >&6; } ;;
9009  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
9010printf "%s\n" "cat" >&6; } ;;
9011esac
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
9027printf %s "checking for a sed that does not truncate output... " >&6; }
9028if test ${ac_cv_path_SED+y}
9029then :
9030  printf %s "(cached) " >&6
9031else $as_nop
9032            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
9033     for ac_i in 1 2 3 4 5 6 7; do
9034       ac_script="$ac_script$as_nl$ac_script"
9035     done
9036     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
9037     { ac_script=; unset ac_script;}
9038     if test -z "$SED"; then
9039  ac_path_SED_found=false
9040  # Loop through the user's path and test for each of PROGNAME-LIST
9041  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9042for as_dir in $PATH
9043do
9044  IFS=$as_save_IFS
9045  case $as_dir in #(((
9046    '') as_dir=./ ;;
9047    */) ;;
9048    *) as_dir=$as_dir/ ;;
9049  esac
9050    for ac_prog in sed gsed
9051   do
9052    for ac_exec_ext in '' $ac_executable_extensions; do
9053      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
9054      as_fn_executable_p "$ac_path_SED" || continue
9055# Check for GNU ac_path_SED and select it if it is found.
9056  # Check for GNU $ac_path_SED
9057case `"$ac_path_SED" --version 2>&1` in
9058*GNU*)
9059  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
9060*)
9061  ac_count=0
9062  printf %s 0123456789 >"conftest.in"
9063  while :
9064  do
9065    cat "conftest.in" "conftest.in" >"conftest.tmp"
9066    mv "conftest.tmp" "conftest.in"
9067    cp "conftest.in" "conftest.nl"
9068    printf "%s\n" '' >> "conftest.nl"
9069    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
9070    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9071    as_fn_arith $ac_count + 1 && ac_count=$as_val
9072    if test $ac_count -gt ${ac_path_SED_max-0}; then
9073      # Best one so far, save it but keep looking for a better one
9074      ac_cv_path_SED="$ac_path_SED"
9075      ac_path_SED_max=$ac_count
9076    fi
9077    # 10*(2^10) chars as input seems more than enough
9078    test $ac_count -gt 10 && break
9079  done
9080  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9081esac
9082
9083      $ac_path_SED_found && break 3
9084    done
9085  done
9086  done
9087IFS=$as_save_IFS
9088  if test -z "$ac_cv_path_SED"; then
9089    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9090  fi
9091else
9092  ac_cv_path_SED=$SED
9093fi
9094
9095fi
9096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
9097printf "%s\n" "$ac_cv_path_SED" >&6; }
9098 SED="$ac_cv_path_SED"
9099  rm -f conftest.sed
9100
9101test -z "$SED" && SED=sed
9102Xsed="$SED -e 1s/^X//"
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9115printf %s "checking for egrep... " >&6; }
9116if test ${ac_cv_path_EGREP+y}
9117then :
9118  printf %s "(cached) " >&6
9119else $as_nop
9120  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9121   then ac_cv_path_EGREP="$GREP -E"
9122   else
9123     if test -z "$EGREP"; then
9124  ac_path_EGREP_found=false
9125  # Loop through the user's path and test for each of PROGNAME-LIST
9126  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9127for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9128do
9129  IFS=$as_save_IFS
9130  case $as_dir in #(((
9131    '') as_dir=./ ;;
9132    */) ;;
9133    *) as_dir=$as_dir/ ;;
9134  esac
9135    for ac_prog in egrep
9136   do
9137    for ac_exec_ext in '' $ac_executable_extensions; do
9138      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
9139      as_fn_executable_p "$ac_path_EGREP" || continue
9140# Check for GNU ac_path_EGREP and select it if it is found.
9141  # Check for GNU $ac_path_EGREP
9142case `"$ac_path_EGREP" --version 2>&1` in
9143*GNU*)
9144  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9145*)
9146  ac_count=0
9147  printf %s 0123456789 >"conftest.in"
9148  while :
9149  do
9150    cat "conftest.in" "conftest.in" >"conftest.tmp"
9151    mv "conftest.tmp" "conftest.in"
9152    cp "conftest.in" "conftest.nl"
9153    printf "%s\n" 'EGREP' >> "conftest.nl"
9154    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9155    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9156    as_fn_arith $ac_count + 1 && ac_count=$as_val
9157    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9158      # Best one so far, save it but keep looking for a better one
9159      ac_cv_path_EGREP="$ac_path_EGREP"
9160      ac_path_EGREP_max=$ac_count
9161    fi
9162    # 10*(2^10) chars as input seems more than enough
9163    test $ac_count -gt 10 && break
9164  done
9165  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9166esac
9167
9168      $ac_path_EGREP_found && break 3
9169    done
9170  done
9171  done
9172IFS=$as_save_IFS
9173  if test -z "$ac_cv_path_EGREP"; then
9174    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9175  fi
9176else
9177  ac_cv_path_EGREP=$EGREP
9178fi
9179
9180   fi
9181fi
9182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9183printf "%s\n" "$ac_cv_path_EGREP" >&6; }
9184 EGREP="$ac_cv_path_EGREP"
9185
9186
9187test -z "$GREP" && GREP=grep
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207# Check whether --with-gnu-ld was given.
9208if test ${with_gnu_ld+y}
9209then :
9210  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
9211else $as_nop
9212  with_gnu_ld=no
9213fi
9214
9215ac_prog=ld
9216if test yes = "$GCC"; then
9217  # Check if gcc -print-prog-name=ld gives a path.
9218  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9219printf %s "checking for ld used by $CC... " >&6; }
9220  case $host in
9221  *-*-mingw*)
9222    # gcc leaves a trailing carriage return, which upsets mingw
9223    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9224  *)
9225    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9226  esac
9227  case $ac_prog in
9228    # Accept absolute paths.
9229    [\\/]* | ?:[\\/]*)
9230      re_direlt='/[^/][^/]*/\.\./'
9231      # Canonicalize the pathname of ld
9232      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9233      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9234	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9235      done
9236      test -z "$LD" && LD=$ac_prog
9237      ;;
9238  "")
9239    # If it fails, then pretend we aren't using GCC.
9240    ac_prog=ld
9241    ;;
9242  *)
9243    # If it is relative, then search for the first ld in PATH.
9244    with_gnu_ld=unknown
9245    ;;
9246  esac
9247elif test yes = "$with_gnu_ld"; then
9248  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9249printf %s "checking for GNU ld... " >&6; }
9250else
9251  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9252printf %s "checking for non-GNU ld... " >&6; }
9253fi
9254if test ${lt_cv_path_LD+y}
9255then :
9256  printf %s "(cached) " >&6
9257else $as_nop
9258  if test -z "$LD"; then
9259  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9260  for ac_dir in $PATH; do
9261    IFS=$lt_save_ifs
9262    test -z "$ac_dir" && ac_dir=.
9263    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9264      lt_cv_path_LD=$ac_dir/$ac_prog
9265      # Check to see if the program is GNU ld.  I'd rather use --version,
9266      # but apparently some variants of GNU ld only accept -v.
9267      # Break only if it was the GNU/non-GNU ld that we prefer.
9268      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9269      *GNU* | *'with BFD'*)
9270	test no != "$with_gnu_ld" && break
9271	;;
9272      *)
9273	test yes != "$with_gnu_ld" && break
9274	;;
9275      esac
9276    fi
9277  done
9278  IFS=$lt_save_ifs
9279else
9280  lt_cv_path_LD=$LD # Let the user override the test with a path.
9281fi
9282fi
9283
9284LD=$lt_cv_path_LD
9285if test -n "$LD"; then
9286  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9287printf "%s\n" "$LD" >&6; }
9288else
9289  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9290printf "%s\n" "no" >&6; }
9291fi
9292test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9294printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
9295if test ${lt_cv_prog_gnu_ld+y}
9296then :
9297  printf %s "(cached) " >&6
9298else $as_nop
9299  # I'd rather use --version here, but apparently some GNU lds only accept -v.
9300case `$LD -v 2>&1 </dev/null` in
9301*GNU* | *'with BFD'*)
9302  lt_cv_prog_gnu_ld=yes
9303  ;;
9304*)
9305  lt_cv_prog_gnu_ld=no
9306  ;;
9307esac
9308fi
9309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9310printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
9311with_gnu_ld=$lt_cv_prog_gnu_ld
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9322printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9323if test ${lt_cv_path_NM+y}
9324then :
9325  printf %s "(cached) " >&6
9326else $as_nop
9327  if test -n "$NM"; then
9328  # Let the user override the test.
9329  lt_cv_path_NM=$NM
9330else
9331  lt_nm_to_check=${ac_tool_prefix}nm
9332  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9333    lt_nm_to_check="$lt_nm_to_check nm"
9334  fi
9335  for lt_tmp_nm in $lt_nm_to_check; do
9336    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9337    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9338      IFS=$lt_save_ifs
9339      test -z "$ac_dir" && ac_dir=.
9340      tmp_nm=$ac_dir/$lt_tmp_nm
9341      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
9342	# Check to see if the nm accepts a BSD-compat flag.
9343	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
9344	#   nm: unknown option "B" ignored
9345	# Tru64's nm complains that /dev/null is an invalid object file
9346	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
9347	case $build_os in
9348	mingw*) lt_bad_file=conftest.nm/nofile ;;
9349	*) lt_bad_file=/dev/null ;;
9350	esac
9351	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
9352	*$lt_bad_file* | *'Invalid file or object type'*)
9353	  lt_cv_path_NM="$tmp_nm -B"
9354	  break 2
9355	  ;;
9356	*)
9357	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9358	  */dev/null*)
9359	    lt_cv_path_NM="$tmp_nm -p"
9360	    break 2
9361	    ;;
9362	  *)
9363	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9364	    continue # so that we can try to find one that supports BSD flags
9365	    ;;
9366	  esac
9367	  ;;
9368	esac
9369      fi
9370    done
9371    IFS=$lt_save_ifs
9372  done
9373  : ${lt_cv_path_NM=no}
9374fi
9375fi
9376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9377printf "%s\n" "$lt_cv_path_NM" >&6; }
9378if test no != "$lt_cv_path_NM"; then
9379  NM=$lt_cv_path_NM
9380else
9381  # Didn't find any BSD compatible name lister, look for dumpbin.
9382  if test -n "$DUMPBIN"; then :
9383    # Let the user override the test.
9384  else
9385    if test -n "$ac_tool_prefix"; then
9386  for ac_prog in dumpbin "link -dump"
9387  do
9388    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9389set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9391printf %s "checking for $ac_word... " >&6; }
9392if test ${ac_cv_prog_DUMPBIN+y}
9393then :
9394  printf %s "(cached) " >&6
9395else $as_nop
9396  if test -n "$DUMPBIN"; then
9397  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9398else
9399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9400for as_dir in $PATH
9401do
9402  IFS=$as_save_IFS
9403  case $as_dir in #(((
9404    '') as_dir=./ ;;
9405    */) ;;
9406    *) as_dir=$as_dir/ ;;
9407  esac
9408    for ac_exec_ext in '' $ac_executable_extensions; do
9409  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9410    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9411    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9412    break 2
9413  fi
9414done
9415  done
9416IFS=$as_save_IFS
9417
9418fi
9419fi
9420DUMPBIN=$ac_cv_prog_DUMPBIN
9421if test -n "$DUMPBIN"; then
9422  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9423printf "%s\n" "$DUMPBIN" >&6; }
9424else
9425  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9426printf "%s\n" "no" >&6; }
9427fi
9428
9429
9430    test -n "$DUMPBIN" && break
9431  done
9432fi
9433if test -z "$DUMPBIN"; then
9434  ac_ct_DUMPBIN=$DUMPBIN
9435  for ac_prog in dumpbin "link -dump"
9436do
9437  # Extract the first word of "$ac_prog", so it can be a program name with args.
9438set dummy $ac_prog; ac_word=$2
9439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9440printf %s "checking for $ac_word... " >&6; }
9441if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
9442then :
9443  printf %s "(cached) " >&6
9444else $as_nop
9445  if test -n "$ac_ct_DUMPBIN"; then
9446  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9447else
9448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9449for as_dir in $PATH
9450do
9451  IFS=$as_save_IFS
9452  case $as_dir in #(((
9453    '') as_dir=./ ;;
9454    */) ;;
9455    *) as_dir=$as_dir/ ;;
9456  esac
9457    for ac_exec_ext in '' $ac_executable_extensions; do
9458  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9459    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9460    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9461    break 2
9462  fi
9463done
9464  done
9465IFS=$as_save_IFS
9466
9467fi
9468fi
9469ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9470if test -n "$ac_ct_DUMPBIN"; then
9471  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9472printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
9473else
9474  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9475printf "%s\n" "no" >&6; }
9476fi
9477
9478
9479  test -n "$ac_ct_DUMPBIN" && break
9480done
9481
9482  if test "x$ac_ct_DUMPBIN" = x; then
9483    DUMPBIN=":"
9484  else
9485    case $cross_compiling:$ac_tool_warned in
9486yes:)
9487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9488printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9489ac_tool_warned=yes ;;
9490esac
9491    DUMPBIN=$ac_ct_DUMPBIN
9492  fi
9493fi
9494
9495    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
9496    *COFF*)
9497      DUMPBIN="$DUMPBIN -symbols -headers"
9498      ;;
9499    *)
9500      DUMPBIN=:
9501      ;;
9502    esac
9503  fi
9504
9505  if test : != "$DUMPBIN"; then
9506    NM=$DUMPBIN
9507  fi
9508fi
9509test -z "$NM" && NM=nm
9510
9511
9512
9513
9514
9515
9516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9517printf %s "checking the name lister ($NM) interface... " >&6; }
9518if test ${lt_cv_nm_interface+y}
9519then :
9520  printf %s "(cached) " >&6
9521else $as_nop
9522  lt_cv_nm_interface="BSD nm"
9523  echo "int some_variable = 0;" > conftest.$ac_ext
9524  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9525  (eval "$ac_compile" 2>conftest.err)
9526  cat conftest.err >&5
9527  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9528  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9529  cat conftest.err >&5
9530  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9531  cat conftest.out >&5
9532  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9533    lt_cv_nm_interface="MS dumpbin"
9534  fi
9535  rm -f conftest*
9536fi
9537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9538printf "%s\n" "$lt_cv_nm_interface" >&6; }
9539
9540# find the maximum length of command line arguments
9541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9542printf %s "checking the maximum length of command line arguments... " >&6; }
9543if test ${lt_cv_sys_max_cmd_len+y}
9544then :
9545  printf %s "(cached) " >&6
9546else $as_nop
9547    i=0
9548  teststring=ABCD
9549
9550  case $build_os in
9551  msdosdjgpp*)
9552    # On DJGPP, this test can blow up pretty badly due to problems in libc
9553    # (any single argument exceeding 2000 bytes causes a buffer overrun
9554    # during glob expansion).  Even if it were fixed, the result of this
9555    # check would be larger than it should be.
9556    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9557    ;;
9558
9559  gnu*)
9560    # Under GNU Hurd, this test is not required because there is
9561    # no limit to the length of command line arguments.
9562    # Libtool will interpret -1 as no limit whatsoever
9563    lt_cv_sys_max_cmd_len=-1;
9564    ;;
9565
9566  cygwin* | msys* | mingw* | cegcc*)
9567    # On Win9x/ME, this test blows up -- it succeeds, but takes
9568    # about 5 minutes as the teststring grows exponentially.
9569    # Worse, since 9x/ME are not pre-emptively multitasking,
9570    # you end up with a "frozen" computer, even though with patience
9571    # the test eventually succeeds (with a max line length of 256k).
9572    # Instead, let's just punt: use the minimum linelength reported by
9573    # all of the supported platforms: 8192 (on NT/2K/XP).
9574    lt_cv_sys_max_cmd_len=8192;
9575    ;;
9576
9577  mint*)
9578    # On MiNT this can take a long time and run out of memory.
9579    lt_cv_sys_max_cmd_len=8192;
9580    ;;
9581
9582  amigaos*)
9583    # On AmigaOS with pdksh, this test takes hours, literally.
9584    # So we just punt and use a minimum line length of 8192.
9585    lt_cv_sys_max_cmd_len=8192;
9586    ;;
9587
9588  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
9589    # This has been around since 386BSD, at least.  Likely further.
9590    if test -x /sbin/sysctl; then
9591      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9592    elif test -x /usr/sbin/sysctl; then
9593      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9594    else
9595      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
9596    fi
9597    # And add a safety zone
9598    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9599    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9600    ;;
9601
9602  interix*)
9603    # We know the value 262144 and hardcode it with a safety zone (like BSD)
9604    lt_cv_sys_max_cmd_len=196608
9605    ;;
9606
9607  os2*)
9608    # The test takes a long time on OS/2.
9609    lt_cv_sys_max_cmd_len=8192
9610    ;;
9611
9612  osf*)
9613    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9614    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9615    # nice to cause kernel panics so lets avoid the loop below.
9616    # First set a reasonable default.
9617    lt_cv_sys_max_cmd_len=16384
9618    #
9619    if test -x /sbin/sysconfig; then
9620      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9621        *1*) lt_cv_sys_max_cmd_len=-1 ;;
9622      esac
9623    fi
9624    ;;
9625  sco3.2v5*)
9626    lt_cv_sys_max_cmd_len=102400
9627    ;;
9628  sysv5* | sco5v6* | sysv4.2uw2*)
9629    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9630    if test -n "$kargmax"; then
9631      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
9632    else
9633      lt_cv_sys_max_cmd_len=32768
9634    fi
9635    ;;
9636  *)
9637    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9638    if test -n "$lt_cv_sys_max_cmd_len" && \
9639       test undefined != "$lt_cv_sys_max_cmd_len"; then
9640      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9641      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9642    else
9643      # Make teststring a little bigger before we do anything with it.
9644      # a 1K string should be a reasonable start.
9645      for i in 1 2 3 4 5 6 7 8; do
9646        teststring=$teststring$teststring
9647      done
9648      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9649      # If test is not a shell built-in, we'll probably end up computing a
9650      # maximum length that is only half of the actual maximum length, but
9651      # we can't tell.
9652      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
9653	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9654	      test 17 != "$i" # 1/2 MB should be enough
9655      do
9656        i=`expr $i + 1`
9657        teststring=$teststring$teststring
9658      done
9659      # Only check the string length outside the loop.
9660      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9661      teststring=
9662      # Add a significant safety factor because C++ compilers can tack on
9663      # massive amounts of additional arguments before passing them to the
9664      # linker.  It appears as though 1/2 is a usable value.
9665      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9666    fi
9667    ;;
9668  esac
9669
9670fi
9671
9672if test -n "$lt_cv_sys_max_cmd_len"; then
9673  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9674printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
9675else
9676  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
9677printf "%s\n" "none" >&6; }
9678fi
9679max_cmd_len=$lt_cv_sys_max_cmd_len
9680
9681
9682
9683
9684
9685
9686: ${CP="cp -f"}
9687: ${MV="mv -f"}
9688: ${RM="rm -f"}
9689
9690if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9691  lt_unset=unset
9692else
9693  lt_unset=false
9694fi
9695
9696
9697
9698
9699
9700# test EBCDIC or ASCII
9701case `echo X|tr X '\101'` in
9702 A) # ASCII based system
9703    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9704  lt_SP2NL='tr \040 \012'
9705  lt_NL2SP='tr \015\012 \040\040'
9706  ;;
9707 *) # EBCDIC based system
9708  lt_SP2NL='tr \100 \n'
9709  lt_NL2SP='tr \r\n \100\100'
9710  ;;
9711esac
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9722printf %s "checking how to convert $build file names to $host format... " >&6; }
9723if test ${lt_cv_to_host_file_cmd+y}
9724then :
9725  printf %s "(cached) " >&6
9726else $as_nop
9727  case $host in
9728  *-*-mingw* )
9729    case $build in
9730      *-*-mingw* ) # actually msys
9731        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9732        ;;
9733      *-*-cygwin* | *-*-msys* )
9734        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9735        ;;
9736      * ) # otherwise, assume *nix
9737        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9738        ;;
9739    esac
9740    ;;
9741  *-*-cygwin* | *-*-msys* )
9742    case $build in
9743      *-*-mingw* ) # actually msys
9744        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9745        ;;
9746      *-*-cygwin* | *-*-msys* )
9747        lt_cv_to_host_file_cmd=func_convert_file_noop
9748        ;;
9749      * ) # otherwise, assume *nix
9750        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9751        ;;
9752    esac
9753    ;;
9754  * ) # unhandled hosts (and "normal" native builds)
9755    lt_cv_to_host_file_cmd=func_convert_file_noop
9756    ;;
9757esac
9758
9759fi
9760
9761to_host_file_cmd=$lt_cv_to_host_file_cmd
9762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9763printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
9764
9765
9766
9767
9768
9769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9770printf %s "checking how to convert $build file names to toolchain format... " >&6; }
9771if test ${lt_cv_to_tool_file_cmd+y}
9772then :
9773  printf %s "(cached) " >&6
9774else $as_nop
9775  #assume ordinary cross tools, or native build.
9776lt_cv_to_tool_file_cmd=func_convert_file_noop
9777case $host in
9778  *-*-mingw* )
9779    case $build in
9780      *-*-mingw* ) # actually msys
9781        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9782        ;;
9783    esac
9784    ;;
9785esac
9786
9787fi
9788
9789to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9791printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
9792
9793
9794
9795
9796
9797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9798printf %s "checking for $LD option to reload object files... " >&6; }
9799if test ${lt_cv_ld_reload_flag+y}
9800then :
9801  printf %s "(cached) " >&6
9802else $as_nop
9803  lt_cv_ld_reload_flag='-r'
9804fi
9805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9806printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
9807reload_flag=$lt_cv_ld_reload_flag
9808case $reload_flag in
9809"" | " "*) ;;
9810*) reload_flag=" $reload_flag" ;;
9811esac
9812reload_cmds='$LD$reload_flag -o $output$reload_objs'
9813case $host_os in
9814  cygwin* | msys* | mingw* | pw32* | cegcc*)
9815    if test yes != "$GCC"; then
9816      reload_cmds=false
9817    fi
9818    ;;
9819  darwin*)
9820    if test yes = "$GCC"; then
9821      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
9822    else
9823      reload_cmds='$LD$reload_flag -o $output$reload_objs'
9824    fi
9825    ;;
9826esac
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836if test -n "$ac_tool_prefix"; then
9837  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9838set dummy ${ac_tool_prefix}objdump; ac_word=$2
9839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9840printf %s "checking for $ac_word... " >&6; }
9841if test ${ac_cv_prog_OBJDUMP+y}
9842then :
9843  printf %s "(cached) " >&6
9844else $as_nop
9845  if test -n "$OBJDUMP"; then
9846  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9847else
9848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9849for as_dir in $PATH
9850do
9851  IFS=$as_save_IFS
9852  case $as_dir in #(((
9853    '') as_dir=./ ;;
9854    */) ;;
9855    *) as_dir=$as_dir/ ;;
9856  esac
9857    for ac_exec_ext in '' $ac_executable_extensions; do
9858  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9859    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9860    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9861    break 2
9862  fi
9863done
9864  done
9865IFS=$as_save_IFS
9866
9867fi
9868fi
9869OBJDUMP=$ac_cv_prog_OBJDUMP
9870if test -n "$OBJDUMP"; then
9871  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9872printf "%s\n" "$OBJDUMP" >&6; }
9873else
9874  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9875printf "%s\n" "no" >&6; }
9876fi
9877
9878
9879fi
9880if test -z "$ac_cv_prog_OBJDUMP"; then
9881  ac_ct_OBJDUMP=$OBJDUMP
9882  # Extract the first word of "objdump", so it can be a program name with args.
9883set dummy objdump; ac_word=$2
9884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9885printf %s "checking for $ac_word... " >&6; }
9886if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9887then :
9888  printf %s "(cached) " >&6
9889else $as_nop
9890  if test -n "$ac_ct_OBJDUMP"; then
9891  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9892else
9893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9894for as_dir in $PATH
9895do
9896  IFS=$as_save_IFS
9897  case $as_dir in #(((
9898    '') as_dir=./ ;;
9899    */) ;;
9900    *) as_dir=$as_dir/ ;;
9901  esac
9902    for ac_exec_ext in '' $ac_executable_extensions; do
9903  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9904    ac_cv_prog_ac_ct_OBJDUMP="objdump"
9905    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9906    break 2
9907  fi
9908done
9909  done
9910IFS=$as_save_IFS
9911
9912fi
9913fi
9914ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9915if test -n "$ac_ct_OBJDUMP"; then
9916  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9917printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9918else
9919  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9920printf "%s\n" "no" >&6; }
9921fi
9922
9923  if test "x$ac_ct_OBJDUMP" = x; then
9924    OBJDUMP="false"
9925  else
9926    case $cross_compiling:$ac_tool_warned in
9927yes:)
9928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9929printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9930ac_tool_warned=yes ;;
9931esac
9932    OBJDUMP=$ac_ct_OBJDUMP
9933  fi
9934else
9935  OBJDUMP="$ac_cv_prog_OBJDUMP"
9936fi
9937
9938test -z "$OBJDUMP" && OBJDUMP=objdump
9939
9940
9941
9942
9943
9944
9945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9946printf %s "checking how to recognize dependent libraries... " >&6; }
9947if test ${lt_cv_deplibs_check_method+y}
9948then :
9949  printf %s "(cached) " >&6
9950else $as_nop
9951  lt_cv_file_magic_cmd='$MAGIC_CMD'
9952lt_cv_file_magic_test_file=
9953lt_cv_deplibs_check_method='unknown'
9954# Need to set the preceding variable on all platforms that support
9955# interlibrary dependencies.
9956# 'none' -- dependencies not supported.
9957# 'unknown' -- same as none, but documents that we really don't know.
9958# 'pass_all' -- all dependencies passed with no checks.
9959# 'test_compile' -- check by making test program.
9960# 'file_magic [[regex]]' -- check by looking for files in library path
9961# that responds to the $file_magic_cmd with a given extended regex.
9962# If you have 'file' or equivalent on your system and you're not sure
9963# whether 'pass_all' will *always* work, you probably want this one.
9964
9965case $host_os in
9966aix[4-9]*)
9967  lt_cv_deplibs_check_method=pass_all
9968  ;;
9969
9970beos*)
9971  lt_cv_deplibs_check_method=pass_all
9972  ;;
9973
9974bsdi[45]*)
9975  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9976  lt_cv_file_magic_cmd='/usr/bin/file -L'
9977  lt_cv_file_magic_test_file=/shlib/libc.so
9978  ;;
9979
9980cygwin* | msys*)
9981  # func_win32_libid is a shell function defined in ltmain.sh
9982  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9983  lt_cv_file_magic_cmd='func_win32_libid'
9984  ;;
9985
9986mingw* | pw32*)
9987  # Base MSYS/MinGW do not provide the 'file' command needed by
9988  # func_win32_libid shell function, so use a weaker test based on 'objdump',
9989  # unless we find 'file', for example because we are cross-compiling.
9990  if ( file / ) >/dev/null 2>&1; then
9991    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9992    lt_cv_file_magic_cmd='func_win32_libid'
9993  else
9994    # Keep this pattern in sync with the one in func_win32_libid.
9995    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|coff-arm|coff-arm64|coff-i386|coff-x86-64)'
9996    lt_cv_file_magic_cmd='$OBJDUMP -f'
9997  fi
9998  ;;
9999
10000cegcc*)
10001  # use the weaker test based on 'objdump'. See mingw*.
10002  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10003  lt_cv_file_magic_cmd='$OBJDUMP -f'
10004  ;;
10005
10006darwin* | rhapsody*)
10007  lt_cv_deplibs_check_method=pass_all
10008  ;;
10009
10010freebsd* | dragonfly*)
10011  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10012    case $host_cpu in
10013    i*86 )
10014      # Not sure whether the presence of OpenBSD here was a mistake.
10015      # Let's accept both of them until this is cleared up.
10016      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10017      lt_cv_file_magic_cmd=/usr/bin/file
10018      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10019      ;;
10020    esac
10021  else
10022    lt_cv_deplibs_check_method=pass_all
10023  fi
10024  ;;
10025
10026haiku*)
10027  lt_cv_deplibs_check_method=pass_all
10028  ;;
10029
10030hpux10.20* | hpux11*)
10031  lt_cv_file_magic_cmd=/usr/bin/file
10032  case $host_cpu in
10033  ia64*)
10034    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10035    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10036    ;;
10037  hppa*64*)
10038    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]'
10039    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10040    ;;
10041  *)
10042    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10043    lt_cv_file_magic_test_file=/usr/lib/libc.sl
10044    ;;
10045  esac
10046  ;;
10047
10048interix[3-9]*)
10049  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10050  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10051  ;;
10052
10053irix5* | irix6* | nonstopux*)
10054  case $LD in
10055  *-32|*"-32 ") libmagic=32-bit;;
10056  *-n32|*"-n32 ") libmagic=N32;;
10057  *-64|*"-64 ") libmagic=64-bit;;
10058  *) libmagic=never-match;;
10059  esac
10060  lt_cv_deplibs_check_method=pass_all
10061  ;;
10062
10063# This must be glibc/ELF.
10064linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10065  lt_cv_deplibs_check_method=pass_all
10066  ;;
10067
10068netbsd* | netbsdelf*-gnu)
10069  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10070    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10071  else
10072    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10073  fi
10074  ;;
10075
10076newos6*)
10077  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10078  lt_cv_file_magic_cmd=/usr/bin/file
10079  lt_cv_file_magic_test_file=/usr/lib/libnls.so
10080  ;;
10081
10082*nto* | *qnx*)
10083  lt_cv_deplibs_check_method=pass_all
10084  ;;
10085
10086openbsd* | bitrig*)
10087  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10088    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10089  else
10090    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10091  fi
10092  ;;
10093
10094osf3* | osf4* | osf5*)
10095  lt_cv_deplibs_check_method=pass_all
10096  ;;
10097
10098rdos*)
10099  lt_cv_deplibs_check_method=pass_all
10100  ;;
10101
10102solaris*)
10103  lt_cv_deplibs_check_method=pass_all
10104  ;;
10105
10106sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10107  lt_cv_deplibs_check_method=pass_all
10108  ;;
10109
10110sysv4 | sysv4.3*)
10111  case $host_vendor in
10112  motorola)
10113    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]'
10114    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10115    ;;
10116  ncr)
10117    lt_cv_deplibs_check_method=pass_all
10118    ;;
10119  sequent)
10120    lt_cv_file_magic_cmd='/bin/file'
10121    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10122    ;;
10123  sni)
10124    lt_cv_file_magic_cmd='/bin/file'
10125    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10126    lt_cv_file_magic_test_file=/lib/libc.so
10127    ;;
10128  siemens)
10129    lt_cv_deplibs_check_method=pass_all
10130    ;;
10131  pc)
10132    lt_cv_deplibs_check_method=pass_all
10133    ;;
10134  esac
10135  ;;
10136
10137tpf*)
10138  lt_cv_deplibs_check_method=pass_all
10139  ;;
10140os2*)
10141  lt_cv_deplibs_check_method=pass_all
10142  ;;
10143esac
10144
10145fi
10146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10147printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
10148
10149file_magic_glob=
10150want_nocaseglob=no
10151if test "$build" = "$host"; then
10152  case $host_os in
10153  mingw* | pw32*)
10154    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10155      want_nocaseglob=yes
10156    else
10157      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10158    fi
10159    ;;
10160  esac
10161fi
10162
10163file_magic_cmd=$lt_cv_file_magic_cmd
10164deplibs_check_method=$lt_cv_deplibs_check_method
10165test -z "$deplibs_check_method" && deplibs_check_method=unknown
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188if test -n "$ac_tool_prefix"; then
10189  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10190set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10192printf %s "checking for $ac_word... " >&6; }
10193if test ${ac_cv_prog_DLLTOOL+y}
10194then :
10195  printf %s "(cached) " >&6
10196else $as_nop
10197  if test -n "$DLLTOOL"; then
10198  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10199else
10200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10201for as_dir in $PATH
10202do
10203  IFS=$as_save_IFS
10204  case $as_dir in #(((
10205    '') as_dir=./ ;;
10206    */) ;;
10207    *) as_dir=$as_dir/ ;;
10208  esac
10209    for ac_exec_ext in '' $ac_executable_extensions; do
10210  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10211    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10212    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10213    break 2
10214  fi
10215done
10216  done
10217IFS=$as_save_IFS
10218
10219fi
10220fi
10221DLLTOOL=$ac_cv_prog_DLLTOOL
10222if test -n "$DLLTOOL"; then
10223  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10224printf "%s\n" "$DLLTOOL" >&6; }
10225else
10226  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10227printf "%s\n" "no" >&6; }
10228fi
10229
10230
10231fi
10232if test -z "$ac_cv_prog_DLLTOOL"; then
10233  ac_ct_DLLTOOL=$DLLTOOL
10234  # Extract the first word of "dlltool", so it can be a program name with args.
10235set dummy dlltool; ac_word=$2
10236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10237printf %s "checking for $ac_word... " >&6; }
10238if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10239then :
10240  printf %s "(cached) " >&6
10241else $as_nop
10242  if test -n "$ac_ct_DLLTOOL"; then
10243  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10244else
10245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10246for as_dir in $PATH
10247do
10248  IFS=$as_save_IFS
10249  case $as_dir in #(((
10250    '') as_dir=./ ;;
10251    */) ;;
10252    *) as_dir=$as_dir/ ;;
10253  esac
10254    for ac_exec_ext in '' $ac_executable_extensions; do
10255  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10256    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10257    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10258    break 2
10259  fi
10260done
10261  done
10262IFS=$as_save_IFS
10263
10264fi
10265fi
10266ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10267if test -n "$ac_ct_DLLTOOL"; then
10268  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10269printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
10270else
10271  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10272printf "%s\n" "no" >&6; }
10273fi
10274
10275  if test "x$ac_ct_DLLTOOL" = x; then
10276    DLLTOOL="false"
10277  else
10278    case $cross_compiling:$ac_tool_warned in
10279yes:)
10280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10281printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10282ac_tool_warned=yes ;;
10283esac
10284    DLLTOOL=$ac_ct_DLLTOOL
10285  fi
10286else
10287  DLLTOOL="$ac_cv_prog_DLLTOOL"
10288fi
10289
10290test -z "$DLLTOOL" && DLLTOOL=dlltool
10291
10292
10293
10294
10295
10296
10297
10298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10299printf %s "checking how to associate runtime and link libraries... " >&6; }
10300if test ${lt_cv_sharedlib_from_linklib_cmd+y}
10301then :
10302  printf %s "(cached) " >&6
10303else $as_nop
10304  lt_cv_sharedlib_from_linklib_cmd='unknown'
10305
10306case $host_os in
10307cygwin* | msys* | mingw* | pw32* | cegcc*)
10308  # two different shell functions defined in ltmain.sh;
10309  # decide which one to use based on capabilities of $DLLTOOL
10310  case `$DLLTOOL --help 2>&1` in
10311  *--identify-strict*)
10312    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10313    ;;
10314  *)
10315    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10316    ;;
10317  esac
10318  ;;
10319*)
10320  # fallback: assume linklib IS sharedlib
10321  lt_cv_sharedlib_from_linklib_cmd=$ECHO
10322  ;;
10323esac
10324
10325fi
10326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10327printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10328sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10329test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10330
10331
10332
10333
10334
10335
10336
10337if test -n "$ac_tool_prefix"; then
10338  for ac_prog in ar
10339  do
10340    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10341set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10343printf %s "checking for $ac_word... " >&6; }
10344if test ${ac_cv_prog_AR+y}
10345then :
10346  printf %s "(cached) " >&6
10347else $as_nop
10348  if test -n "$AR"; then
10349  ac_cv_prog_AR="$AR" # Let the user override the test.
10350else
10351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10352for as_dir in $PATH
10353do
10354  IFS=$as_save_IFS
10355  case $as_dir in #(((
10356    '') as_dir=./ ;;
10357    */) ;;
10358    *) as_dir=$as_dir/ ;;
10359  esac
10360    for ac_exec_ext in '' $ac_executable_extensions; do
10361  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10362    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10363    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10364    break 2
10365  fi
10366done
10367  done
10368IFS=$as_save_IFS
10369
10370fi
10371fi
10372AR=$ac_cv_prog_AR
10373if test -n "$AR"; then
10374  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10375printf "%s\n" "$AR" >&6; }
10376else
10377  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10378printf "%s\n" "no" >&6; }
10379fi
10380
10381
10382    test -n "$AR" && break
10383  done
10384fi
10385if test -z "$AR"; then
10386  ac_ct_AR=$AR
10387  for ac_prog in ar
10388do
10389  # Extract the first word of "$ac_prog", so it can be a program name with args.
10390set dummy $ac_prog; ac_word=$2
10391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10392printf %s "checking for $ac_word... " >&6; }
10393if test ${ac_cv_prog_ac_ct_AR+y}
10394then :
10395  printf %s "(cached) " >&6
10396else $as_nop
10397  if test -n "$ac_ct_AR"; then
10398  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10399else
10400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10401for as_dir in $PATH
10402do
10403  IFS=$as_save_IFS
10404  case $as_dir in #(((
10405    '') as_dir=./ ;;
10406    */) ;;
10407    *) as_dir=$as_dir/ ;;
10408  esac
10409    for ac_exec_ext in '' $ac_executable_extensions; do
10410  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10411    ac_cv_prog_ac_ct_AR="$ac_prog"
10412    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10413    break 2
10414  fi
10415done
10416  done
10417IFS=$as_save_IFS
10418
10419fi
10420fi
10421ac_ct_AR=$ac_cv_prog_ac_ct_AR
10422if test -n "$ac_ct_AR"; then
10423  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10424printf "%s\n" "$ac_ct_AR" >&6; }
10425else
10426  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10427printf "%s\n" "no" >&6; }
10428fi
10429
10430
10431  test -n "$ac_ct_AR" && break
10432done
10433
10434  if test "x$ac_ct_AR" = x; then
10435    AR="false"
10436  else
10437    case $cross_compiling:$ac_tool_warned in
10438yes:)
10439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10440printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10441ac_tool_warned=yes ;;
10442esac
10443    AR=$ac_ct_AR
10444  fi
10445fi
10446
10447: ${AR=ar}
10448: ${AR_FLAGS=cr}
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10461printf %s "checking for archiver @FILE support... " >&6; }
10462if test ${lt_cv_ar_at_file+y}
10463then :
10464  printf %s "(cached) " >&6
10465else $as_nop
10466  lt_cv_ar_at_file=no
10467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10468/* end confdefs.h.  */
10469
10470int
10471main (void)
10472{
10473
10474  ;
10475  return 0;
10476}
10477_ACEOF
10478if ac_fn_c_try_compile "$LINENO"
10479then :
10480  echo conftest.$ac_objext > conftest.lst
10481      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10482      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10483  (eval $lt_ar_try) 2>&5
10484  ac_status=$?
10485  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10486  test $ac_status = 0; }
10487      if test 0 -eq "$ac_status"; then
10488	# Ensure the archiver fails upon bogus file names.
10489	rm -f conftest.$ac_objext libconftest.a
10490	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10491  (eval $lt_ar_try) 2>&5
10492  ac_status=$?
10493  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10494  test $ac_status = 0; }
10495	if test 0 -ne "$ac_status"; then
10496          lt_cv_ar_at_file=@
10497        fi
10498      fi
10499      rm -f conftest.* libconftest.a
10500
10501fi
10502rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10503
10504fi
10505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10506printf "%s\n" "$lt_cv_ar_at_file" >&6; }
10507
10508if test no = "$lt_cv_ar_at_file"; then
10509  archiver_list_spec=
10510else
10511  archiver_list_spec=$lt_cv_ar_at_file
10512fi
10513
10514
10515
10516
10517
10518
10519
10520if test -n "$ac_tool_prefix"; then
10521  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10522set dummy ${ac_tool_prefix}strip; ac_word=$2
10523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10524printf %s "checking for $ac_word... " >&6; }
10525if test ${ac_cv_prog_STRIP+y}
10526then :
10527  printf %s "(cached) " >&6
10528else $as_nop
10529  if test -n "$STRIP"; then
10530  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10531else
10532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10533for as_dir in $PATH
10534do
10535  IFS=$as_save_IFS
10536  case $as_dir in #(((
10537    '') as_dir=./ ;;
10538    */) ;;
10539    *) as_dir=$as_dir/ ;;
10540  esac
10541    for ac_exec_ext in '' $ac_executable_extensions; do
10542  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10543    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10544    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10545    break 2
10546  fi
10547done
10548  done
10549IFS=$as_save_IFS
10550
10551fi
10552fi
10553STRIP=$ac_cv_prog_STRIP
10554if test -n "$STRIP"; then
10555  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10556printf "%s\n" "$STRIP" >&6; }
10557else
10558  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10559printf "%s\n" "no" >&6; }
10560fi
10561
10562
10563fi
10564if test -z "$ac_cv_prog_STRIP"; then
10565  ac_ct_STRIP=$STRIP
10566  # Extract the first word of "strip", so it can be a program name with args.
10567set dummy strip; ac_word=$2
10568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10569printf %s "checking for $ac_word... " >&6; }
10570if test ${ac_cv_prog_ac_ct_STRIP+y}
10571then :
10572  printf %s "(cached) " >&6
10573else $as_nop
10574  if test -n "$ac_ct_STRIP"; then
10575  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10576else
10577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10578for as_dir in $PATH
10579do
10580  IFS=$as_save_IFS
10581  case $as_dir in #(((
10582    '') as_dir=./ ;;
10583    */) ;;
10584    *) as_dir=$as_dir/ ;;
10585  esac
10586    for ac_exec_ext in '' $ac_executable_extensions; do
10587  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10588    ac_cv_prog_ac_ct_STRIP="strip"
10589    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10590    break 2
10591  fi
10592done
10593  done
10594IFS=$as_save_IFS
10595
10596fi
10597fi
10598ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10599if test -n "$ac_ct_STRIP"; then
10600  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10601printf "%s\n" "$ac_ct_STRIP" >&6; }
10602else
10603  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10604printf "%s\n" "no" >&6; }
10605fi
10606
10607  if test "x$ac_ct_STRIP" = x; then
10608    STRIP=":"
10609  else
10610    case $cross_compiling:$ac_tool_warned in
10611yes:)
10612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10613printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10614ac_tool_warned=yes ;;
10615esac
10616    STRIP=$ac_ct_STRIP
10617  fi
10618else
10619  STRIP="$ac_cv_prog_STRIP"
10620fi
10621
10622test -z "$STRIP" && STRIP=:
10623
10624
10625
10626
10627
10628
10629if test -n "$ac_tool_prefix"; then
10630  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10631set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10633printf %s "checking for $ac_word... " >&6; }
10634if test ${ac_cv_prog_RANLIB+y}
10635then :
10636  printf %s "(cached) " >&6
10637else $as_nop
10638  if test -n "$RANLIB"; then
10639  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10640else
10641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10642for as_dir in $PATH
10643do
10644  IFS=$as_save_IFS
10645  case $as_dir in #(((
10646    '') as_dir=./ ;;
10647    */) ;;
10648    *) as_dir=$as_dir/ ;;
10649  esac
10650    for ac_exec_ext in '' $ac_executable_extensions; do
10651  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10652    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10653    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10654    break 2
10655  fi
10656done
10657  done
10658IFS=$as_save_IFS
10659
10660fi
10661fi
10662RANLIB=$ac_cv_prog_RANLIB
10663if test -n "$RANLIB"; then
10664  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10665printf "%s\n" "$RANLIB" >&6; }
10666else
10667  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10668printf "%s\n" "no" >&6; }
10669fi
10670
10671
10672fi
10673if test -z "$ac_cv_prog_RANLIB"; then
10674  ac_ct_RANLIB=$RANLIB
10675  # Extract the first word of "ranlib", so it can be a program name with args.
10676set dummy ranlib; ac_word=$2
10677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10678printf %s "checking for $ac_word... " >&6; }
10679if test ${ac_cv_prog_ac_ct_RANLIB+y}
10680then :
10681  printf %s "(cached) " >&6
10682else $as_nop
10683  if test -n "$ac_ct_RANLIB"; then
10684  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10685else
10686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10687for as_dir in $PATH
10688do
10689  IFS=$as_save_IFS
10690  case $as_dir in #(((
10691    '') as_dir=./ ;;
10692    */) ;;
10693    *) as_dir=$as_dir/ ;;
10694  esac
10695    for ac_exec_ext in '' $ac_executable_extensions; do
10696  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10697    ac_cv_prog_ac_ct_RANLIB="ranlib"
10698    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10699    break 2
10700  fi
10701done
10702  done
10703IFS=$as_save_IFS
10704
10705fi
10706fi
10707ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10708if test -n "$ac_ct_RANLIB"; then
10709  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10710printf "%s\n" "$ac_ct_RANLIB" >&6; }
10711else
10712  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10713printf "%s\n" "no" >&6; }
10714fi
10715
10716  if test "x$ac_ct_RANLIB" = x; then
10717    RANLIB=":"
10718  else
10719    case $cross_compiling:$ac_tool_warned in
10720yes:)
10721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10722printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10723ac_tool_warned=yes ;;
10724esac
10725    RANLIB=$ac_ct_RANLIB
10726  fi
10727else
10728  RANLIB="$ac_cv_prog_RANLIB"
10729fi
10730
10731test -z "$RANLIB" && RANLIB=:
10732
10733
10734
10735
10736
10737
10738# Determine commands to create old-style static archives.
10739old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10740old_postinstall_cmds='chmod 644 $oldlib'
10741old_postuninstall_cmds=
10742
10743if test -n "$RANLIB"; then
10744  case $host_os in
10745  bitrig* | openbsd*)
10746    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10747    ;;
10748  *)
10749    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10750    ;;
10751  esac
10752  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10753fi
10754
10755case $host_os in
10756  darwin*)
10757    lock_old_archive_extraction=yes ;;
10758  *)
10759    lock_old_archive_extraction=no ;;
10760esac
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800# If no C compiler was specified, use CC.
10801LTCC=${LTCC-"$CC"}
10802
10803# If no C compiler flags were specified, use CFLAGS.
10804LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10805
10806# Allow CC to be a program name with arguments.
10807compiler=$CC
10808
10809
10810# Check for command to grab the raw symbol name followed by C symbol from nm.
10811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10812printf %s "checking command to parse $NM output from $compiler object... " >&6; }
10813if test ${lt_cv_sys_global_symbol_pipe+y}
10814then :
10815  printf %s "(cached) " >&6
10816else $as_nop
10817
10818# These are sane defaults that work on at least a few old systems.
10819# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10820
10821# Character class describing NM global symbol codes.
10822symcode='[BCDEGRST]'
10823
10824# Regexp to match symbols that can be accessed directly from C.
10825sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10826
10827# Define system-specific variables.
10828case $host_os in
10829aix*)
10830  symcode='[BCDT]'
10831  ;;
10832cygwin* | msys* | mingw* | pw32* | cegcc*)
10833  symcode='[ABCDGISTW]'
10834  ;;
10835hpux*)
10836  if test ia64 = "$host_cpu"; then
10837    symcode='[ABCDEGRST]'
10838  fi
10839  ;;
10840irix* | nonstopux*)
10841  symcode='[BCDEGRST]'
10842  ;;
10843osf*)
10844  symcode='[BCDEGQRST]'
10845  ;;
10846solaris*)
10847  symcode='[BDRT]'
10848  ;;
10849sco3.2v5*)
10850  symcode='[DT]'
10851  ;;
10852sysv4.2uw2*)
10853  symcode='[DT]'
10854  ;;
10855sysv5* | sco5v6* | unixware* | OpenUNIX*)
10856  symcode='[ABDT]'
10857  ;;
10858sysv4)
10859  symcode='[DFNSTU]'
10860  ;;
10861esac
10862
10863# If we're using GNU nm, then use its standard symbol codes.
10864case `$NM -V 2>&1` in
10865*GNU* | *'with BFD'*)
10866  symcode='[ABCDGIRSTW]' ;;
10867esac
10868
10869if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10870  # Gets list of data symbols to import.
10871  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
10872  # Adjust the below global symbol transforms to fixup imported variables.
10873  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
10874  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
10875  lt_c_name_lib_hook="\
10876  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
10877  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
10878else
10879  # Disable hooks by default.
10880  lt_cv_sys_global_symbol_to_import=
10881  lt_cdecl_hook=
10882  lt_c_name_hook=
10883  lt_c_name_lib_hook=
10884fi
10885
10886# Transform an extracted symbol line into a proper C declaration.
10887# Some systems (esp. on ia64) link data and code symbols differently,
10888# so use this general approach.
10889lt_cv_sys_global_symbol_to_cdecl="sed -n"\
10890$lt_cdecl_hook\
10891" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
10892" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
10893
10894# Transform an extracted symbol line into symbol name and symbol address
10895lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
10896$lt_c_name_hook\
10897" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10898" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
10899
10900# Transform an extracted symbol line into symbol name with lib prefix and
10901# symbol address.
10902lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
10903$lt_c_name_lib_hook\
10904" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10905" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
10906" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
10907
10908# Handle CRLF in mingw tool chain
10909opt_cr=
10910case $build_os in
10911mingw*)
10912  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10913  ;;
10914esac
10915
10916# Try without a prefix underscore, then with it.
10917for ac_symprfx in "" "_"; do
10918
10919  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10920  symxfrm="\\1 $ac_symprfx\\2 \\2"
10921
10922  # Write the raw and C identifiers.
10923  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10924    # Fake it for dumpbin and say T for any non-static function,
10925    # D for any global variable and I for any imported variable.
10926    # Also find C++ and __fastcall symbols from MSVC++,
10927    # which start with @ or ?.
10928    lt_cv_sys_global_symbol_pipe="$AWK '"\
10929"     {last_section=section; section=\$ 3};"\
10930"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
10931"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10932"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
10933"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
10934"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
10935"     \$ 0!~/External *\|/{next};"\
10936"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10937"     {if(hide[section]) next};"\
10938"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
10939"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
10940"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
10941"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
10942"     ' prfx=^$ac_symprfx"
10943  else
10944    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10945  fi
10946  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
10947
10948  # Check to see that the pipe works correctly.
10949  pipe_works=no
10950
10951  rm -f conftest*
10952  cat > conftest.$ac_ext <<_LT_EOF
10953#ifdef __cplusplus
10954extern "C" {
10955#endif
10956char nm_test_var;
10957void nm_test_func(void);
10958void nm_test_func(void){}
10959#ifdef __cplusplus
10960}
10961#endif
10962int main(){nm_test_var='a';nm_test_func();return(0);}
10963_LT_EOF
10964
10965  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10966  (eval $ac_compile) 2>&5
10967  ac_status=$?
10968  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10969  test $ac_status = 0; }; then
10970    # Now try to grab the symbols.
10971    nlist=conftest.nm
10972    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
10973    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
10974      # Try sorting and uniquifying the output.
10975      if sort "$nlist" | uniq > "$nlist"T; then
10976	mv -f "$nlist"T "$nlist"
10977      else
10978	rm -f "$nlist"T
10979      fi
10980
10981      # Make sure that we snagged all the symbols we need.
10982      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10983	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10984	  cat <<_LT_EOF > conftest.$ac_ext
10985/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
10986#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
10987/* DATA imports from DLLs on WIN32 can't be const, because runtime
10988   relocations are performed -- see ld's documentation on pseudo-relocs.  */
10989# define LT_DLSYM_CONST
10990#elif defined __osf__
10991/* This system does not cope well with relocations in const data.  */
10992# define LT_DLSYM_CONST
10993#else
10994# define LT_DLSYM_CONST const
10995#endif
10996
10997#ifdef __cplusplus
10998extern "C" {
10999#endif
11000
11001_LT_EOF
11002	  # Now generate the symbol file.
11003	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11004
11005	  cat <<_LT_EOF >> conftest.$ac_ext
11006
11007/* The mapping between symbol names and symbols.  */
11008LT_DLSYM_CONST struct {
11009  const char *name;
11010  void       *address;
11011}
11012lt__PROGRAM__LTX_preloaded_symbols[] =
11013{
11014  { "@PROGRAM@", (void *) 0 },
11015_LT_EOF
11016	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11017	  cat <<\_LT_EOF >> conftest.$ac_ext
11018  {0, (void *) 0}
11019};
11020
11021/* This works around a problem in FreeBSD linker */
11022#ifdef FREEBSD_WORKAROUND
11023static const void *lt_preloaded_setup() {
11024  return lt__PROGRAM__LTX_preloaded_symbols;
11025}
11026#endif
11027
11028#ifdef __cplusplus
11029}
11030#endif
11031_LT_EOF
11032	  # Now try linking the two files.
11033	  mv conftest.$ac_objext conftstm.$ac_objext
11034	  lt_globsym_save_LIBS=$LIBS
11035	  lt_globsym_save_CFLAGS=$CFLAGS
11036	  LIBS=conftstm.$ac_objext
11037	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11038	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11039  (eval $ac_link) 2>&5
11040  ac_status=$?
11041  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11042  test $ac_status = 0; } && test -s conftest$ac_exeext; then
11043	    pipe_works=yes
11044	  fi
11045	  LIBS=$lt_globsym_save_LIBS
11046	  CFLAGS=$lt_globsym_save_CFLAGS
11047	else
11048	  echo "cannot find nm_test_func in $nlist" >&5
11049	fi
11050      else
11051	echo "cannot find nm_test_var in $nlist" >&5
11052      fi
11053    else
11054      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11055    fi
11056  else
11057    echo "$progname: failed program was:" >&5
11058    cat conftest.$ac_ext >&5
11059  fi
11060  rm -rf conftest* conftst*
11061
11062  # Do not use the global_symbol_pipe unless it works.
11063  if test yes = "$pipe_works"; then
11064    break
11065  else
11066    lt_cv_sys_global_symbol_pipe=
11067  fi
11068done
11069
11070fi
11071
11072if test -z "$lt_cv_sys_global_symbol_pipe"; then
11073  lt_cv_sys_global_symbol_to_cdecl=
11074fi
11075if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11076  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11077printf "%s\n" "failed" >&6; }
11078else
11079  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11080printf "%s\n" "ok" >&6; }
11081fi
11082
11083# Response file support.
11084if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11085  nm_file_list_spec='@'
11086elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11087  nm_file_list_spec='@'
11088fi
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11127printf %s "checking for sysroot... " >&6; }
11128
11129# Check whether --with-sysroot was given.
11130if test ${with_sysroot+y}
11131then :
11132  withval=$with_sysroot;
11133else $as_nop
11134  with_sysroot=no
11135fi
11136
11137
11138lt_sysroot=
11139case $with_sysroot in #(
11140 yes)
11141   if test yes = "$GCC"; then
11142     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11143   fi
11144   ;; #(
11145 /*)
11146   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11147   ;; #(
11148 no|'')
11149   ;; #(
11150 *)
11151   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
11152printf "%s\n" "$with_sysroot" >&6; }
11153   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11154   ;;
11155esac
11156
11157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11158printf "%s\n" "${lt_sysroot:-no}" >&6; }
11159
11160
11161
11162
11163
11164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
11165printf %s "checking for a working dd... " >&6; }
11166if test ${ac_cv_path_lt_DD+y}
11167then :
11168  printf %s "(cached) " >&6
11169else $as_nop
11170  printf 0123456789abcdef0123456789abcdef >conftest.i
11171cat conftest.i conftest.i >conftest2.i
11172: ${lt_DD:=$DD}
11173if test -z "$lt_DD"; then
11174  ac_path_lt_DD_found=false
11175  # Loop through the user's path and test for each of PROGNAME-LIST
11176  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11177for as_dir in $PATH
11178do
11179  IFS=$as_save_IFS
11180  case $as_dir in #(((
11181    '') as_dir=./ ;;
11182    */) ;;
11183    *) as_dir=$as_dir/ ;;
11184  esac
11185    for ac_prog in dd
11186   do
11187    for ac_exec_ext in '' $ac_executable_extensions; do
11188      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
11189      as_fn_executable_p "$ac_path_lt_DD" || continue
11190if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11191  cmp -s conftest.i conftest.out \
11192  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
11193fi
11194      $ac_path_lt_DD_found && break 3
11195    done
11196  done
11197  done
11198IFS=$as_save_IFS
11199  if test -z "$ac_cv_path_lt_DD"; then
11200    :
11201  fi
11202else
11203  ac_cv_path_lt_DD=$lt_DD
11204fi
11205
11206rm -f conftest.i conftest2.i conftest.out
11207fi
11208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
11209printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
11210
11211
11212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
11213printf %s "checking how to truncate binary pipes... " >&6; }
11214if test ${lt_cv_truncate_bin+y}
11215then :
11216  printf %s "(cached) " >&6
11217else $as_nop
11218  printf 0123456789abcdef0123456789abcdef >conftest.i
11219cat conftest.i conftest.i >conftest2.i
11220lt_cv_truncate_bin=
11221if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11222  cmp -s conftest.i conftest.out \
11223  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
11224fi
11225rm -f conftest.i conftest2.i conftest.out
11226test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
11227fi
11228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
11229printf "%s\n" "$lt_cv_truncate_bin" >&6; }
11230
11231
11232
11233
11234
11235
11236
11237# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
11238func_cc_basename ()
11239{
11240    for cc_temp in $*""; do
11241      case $cc_temp in
11242        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11243        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11244        \-*) ;;
11245        *) break;;
11246      esac
11247    done
11248    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11249}
11250
11251# Check whether --enable-libtool-lock was given.
11252if test ${enable_libtool_lock+y}
11253then :
11254  enableval=$enable_libtool_lock;
11255fi
11256
11257test no = "$enable_libtool_lock" || enable_libtool_lock=yes
11258
11259# Some flags need to be propagated to the compiler or linker for good
11260# libtool support.
11261case $host in
11262ia64-*-hpux*)
11263  # Find out what ABI is being produced by ac_compile, and set mode
11264  # options accordingly.
11265  echo 'int i;' > conftest.$ac_ext
11266  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11267  (eval $ac_compile) 2>&5
11268  ac_status=$?
11269  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11270  test $ac_status = 0; }; then
11271    case `/usr/bin/file conftest.$ac_objext` in
11272      *ELF-32*)
11273	HPUX_IA64_MODE=32
11274	;;
11275      *ELF-64*)
11276	HPUX_IA64_MODE=64
11277	;;
11278    esac
11279  fi
11280  rm -rf conftest*
11281  ;;
11282*-*-irix6*)
11283  # Find out what ABI is being produced by ac_compile, and set linker
11284  # options accordingly.
11285  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11286  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11287  (eval $ac_compile) 2>&5
11288  ac_status=$?
11289  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11290  test $ac_status = 0; }; then
11291    if test yes = "$lt_cv_prog_gnu_ld"; then
11292      case `/usr/bin/file conftest.$ac_objext` in
11293	*32-bit*)
11294	  LD="${LD-ld} -melf32bsmip"
11295	  ;;
11296	*N32*)
11297	  LD="${LD-ld} -melf32bmipn32"
11298	  ;;
11299	*64-bit*)
11300	  LD="${LD-ld} -melf64bmip"
11301	;;
11302      esac
11303    else
11304      case `/usr/bin/file conftest.$ac_objext` in
11305	*32-bit*)
11306	  LD="${LD-ld} -32"
11307	  ;;
11308	*N32*)
11309	  LD="${LD-ld} -n32"
11310	  ;;
11311	*64-bit*)
11312	  LD="${LD-ld} -64"
11313	  ;;
11314      esac
11315    fi
11316  fi
11317  rm -rf conftest*
11318  ;;
11319
11320mips64*-*linux*)
11321  # Find out what ABI is being produced by ac_compile, and set linker
11322  # options accordingly.
11323  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11324  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11325  (eval $ac_compile) 2>&5
11326  ac_status=$?
11327  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11328  test $ac_status = 0; }; then
11329    emul=elf
11330    case `/usr/bin/file conftest.$ac_objext` in
11331      *32-bit*)
11332	emul="${emul}32"
11333	;;
11334      *64-bit*)
11335	emul="${emul}64"
11336	;;
11337    esac
11338    case `/usr/bin/file conftest.$ac_objext` in
11339      *MSB*)
11340	emul="${emul}btsmip"
11341	;;
11342      *LSB*)
11343	emul="${emul}ltsmip"
11344	;;
11345    esac
11346    case `/usr/bin/file conftest.$ac_objext` in
11347      *N32*)
11348	emul="${emul}n32"
11349	;;
11350    esac
11351    LD="${LD-ld} -m $emul"
11352  fi
11353  rm -rf conftest*
11354  ;;
11355
11356x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
11357s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11358  # Find out what ABI is being produced by ac_compile, and set linker
11359  # options accordingly.  Note that the listed cases only cover the
11360  # situations where additional linker options are needed (such as when
11361  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
11362  # vice versa); the common cases where no linker options are needed do
11363  # not appear in the list.
11364  echo 'int i;' > conftest.$ac_ext
11365  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11366  (eval $ac_compile) 2>&5
11367  ac_status=$?
11368  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11369  test $ac_status = 0; }; then
11370    case `/usr/bin/file conftest.o` in
11371      *32-bit*)
11372	case $host in
11373	  x86_64-*kfreebsd*-gnu)
11374	    LD="${LD-ld} -m elf_i386_fbsd"
11375	    ;;
11376	  x86_64-*linux*)
11377	    case `/usr/bin/file conftest.o` in
11378	      *x86-64*)
11379		LD="${LD-ld} -m elf32_x86_64"
11380		;;
11381	      *)
11382		LD="${LD-ld} -m elf_i386"
11383		;;
11384	    esac
11385	    ;;
11386	  powerpc64le-*linux*)
11387	    LD="${LD-ld} -m elf32lppclinux"
11388	    ;;
11389	  powerpc64-*linux*)
11390	    LD="${LD-ld} -m elf32ppclinux"
11391	    ;;
11392	  s390x-*linux*)
11393	    LD="${LD-ld} -m elf_s390"
11394	    ;;
11395	  sparc64-*linux*)
11396	    LD="${LD-ld} -m elf32_sparc"
11397	    ;;
11398	esac
11399	;;
11400      *64-bit*)
11401	case $host in
11402	  x86_64-*kfreebsd*-gnu)
11403	    LD="${LD-ld} -m elf_x86_64_fbsd"
11404	    ;;
11405	  x86_64-*linux*)
11406	    LD="${LD-ld} -m elf_x86_64"
11407	    ;;
11408	  powerpcle-*linux*)
11409	    LD="${LD-ld} -m elf64lppc"
11410	    ;;
11411	  powerpc-*linux*)
11412	    LD="${LD-ld} -m elf64ppc"
11413	    ;;
11414	  s390*-*linux*|s390*-*tpf*)
11415	    LD="${LD-ld} -m elf64_s390"
11416	    ;;
11417	  sparc*-*linux*)
11418	    LD="${LD-ld} -m elf64_sparc"
11419	    ;;
11420	esac
11421	;;
11422    esac
11423  fi
11424  rm -rf conftest*
11425  ;;
11426
11427*-*-sco3.2v5*)
11428  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11429  SAVE_CFLAGS=$CFLAGS
11430  CFLAGS="$CFLAGS -belf"
11431  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11432printf %s "checking whether the C compiler needs -belf... " >&6; }
11433if test ${lt_cv_cc_needs_belf+y}
11434then :
11435  printf %s "(cached) " >&6
11436else $as_nop
11437  ac_ext=c
11438ac_cpp='$CPP $CPPFLAGS'
11439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11441ac_compiler_gnu=$ac_cv_c_compiler_gnu
11442
11443     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11444/* end confdefs.h.  */
11445
11446int
11447main (void)
11448{
11449
11450  ;
11451  return 0;
11452}
11453_ACEOF
11454if ac_fn_c_try_link "$LINENO"
11455then :
11456  lt_cv_cc_needs_belf=yes
11457else $as_nop
11458  lt_cv_cc_needs_belf=no
11459fi
11460rm -f core conftest.err conftest.$ac_objext conftest.beam \
11461    conftest$ac_exeext conftest.$ac_ext
11462     ac_ext=c
11463ac_cpp='$CPP $CPPFLAGS'
11464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11466ac_compiler_gnu=$ac_cv_c_compiler_gnu
11467
11468fi
11469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11470printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
11471  if test yes != "$lt_cv_cc_needs_belf"; then
11472    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11473    CFLAGS=$SAVE_CFLAGS
11474  fi
11475  ;;
11476*-*solaris*)
11477  # Find out what ABI is being produced by ac_compile, and set linker
11478  # options accordingly.
11479  echo 'int i;' > conftest.$ac_ext
11480  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11481  (eval $ac_compile) 2>&5
11482  ac_status=$?
11483  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11484  test $ac_status = 0; }; then
11485    case `/usr/bin/file conftest.o` in
11486    *64-bit*)
11487      case $lt_cv_prog_gnu_ld in
11488      yes*)
11489        case $host in
11490        i?86-*-solaris*|x86_64-*-solaris*)
11491          LD="${LD-ld} -m elf_x86_64"
11492          ;;
11493        sparc*-*-solaris*)
11494          LD="${LD-ld} -m elf64_sparc"
11495          ;;
11496        esac
11497        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
11498        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11499          LD=${LD-ld}_sol2
11500        fi
11501        ;;
11502      *)
11503	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11504	  LD="${LD-ld} -64"
11505	fi
11506	;;
11507      esac
11508      ;;
11509    esac
11510  fi
11511  rm -rf conftest*
11512  ;;
11513esac
11514
11515need_locks=$enable_libtool_lock
11516
11517if test -n "$ac_tool_prefix"; then
11518  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11519set dummy ${ac_tool_prefix}mt; ac_word=$2
11520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11521printf %s "checking for $ac_word... " >&6; }
11522if test ${ac_cv_prog_MANIFEST_TOOL+y}
11523then :
11524  printf %s "(cached) " >&6
11525else $as_nop
11526  if test -n "$MANIFEST_TOOL"; then
11527  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11528else
11529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11530for as_dir in $PATH
11531do
11532  IFS=$as_save_IFS
11533  case $as_dir in #(((
11534    '') as_dir=./ ;;
11535    */) ;;
11536    *) as_dir=$as_dir/ ;;
11537  esac
11538    for ac_exec_ext in '' $ac_executable_extensions; do
11539  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11540    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11541    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11542    break 2
11543  fi
11544done
11545  done
11546IFS=$as_save_IFS
11547
11548fi
11549fi
11550MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11551if test -n "$MANIFEST_TOOL"; then
11552  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11553printf "%s\n" "$MANIFEST_TOOL" >&6; }
11554else
11555  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11556printf "%s\n" "no" >&6; }
11557fi
11558
11559
11560fi
11561if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11562  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11563  # Extract the first word of "mt", so it can be a program name with args.
11564set dummy mt; ac_word=$2
11565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11566printf %s "checking for $ac_word... " >&6; }
11567if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
11568then :
11569  printf %s "(cached) " >&6
11570else $as_nop
11571  if test -n "$ac_ct_MANIFEST_TOOL"; then
11572  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11573else
11574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11575for as_dir in $PATH
11576do
11577  IFS=$as_save_IFS
11578  case $as_dir in #(((
11579    '') as_dir=./ ;;
11580    */) ;;
11581    *) as_dir=$as_dir/ ;;
11582  esac
11583    for ac_exec_ext in '' $ac_executable_extensions; do
11584  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11585    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11586    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11587    break 2
11588  fi
11589done
11590  done
11591IFS=$as_save_IFS
11592
11593fi
11594fi
11595ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11596if test -n "$ac_ct_MANIFEST_TOOL"; then
11597  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11598printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
11599else
11600  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11601printf "%s\n" "no" >&6; }
11602fi
11603
11604  if test "x$ac_ct_MANIFEST_TOOL" = x; then
11605    MANIFEST_TOOL=":"
11606  else
11607    case $cross_compiling:$ac_tool_warned in
11608yes:)
11609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11610printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11611ac_tool_warned=yes ;;
11612esac
11613    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11614  fi
11615else
11616  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11617fi
11618
11619test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11621printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11622if test ${lt_cv_path_mainfest_tool+y}
11623then :
11624  printf %s "(cached) " >&6
11625else $as_nop
11626  lt_cv_path_mainfest_tool=no
11627  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11628  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11629  cat conftest.err >&5
11630  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11631    lt_cv_path_mainfest_tool=yes
11632  fi
11633  rm -f conftest*
11634fi
11635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11636printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
11637if test yes != "$lt_cv_path_mainfest_tool"; then
11638  MANIFEST_TOOL=:
11639fi
11640
11641
11642
11643
11644
11645
11646  case $host_os in
11647    rhapsody* | darwin*)
11648    if test -n "$ac_tool_prefix"; then
11649  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11650set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11652printf %s "checking for $ac_word... " >&6; }
11653if test ${ac_cv_prog_DSYMUTIL+y}
11654then :
11655  printf %s "(cached) " >&6
11656else $as_nop
11657  if test -n "$DSYMUTIL"; then
11658  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11659else
11660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11661for as_dir in $PATH
11662do
11663  IFS=$as_save_IFS
11664  case $as_dir in #(((
11665    '') as_dir=./ ;;
11666    */) ;;
11667    *) as_dir=$as_dir/ ;;
11668  esac
11669    for ac_exec_ext in '' $ac_executable_extensions; do
11670  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11671    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11672    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11673    break 2
11674  fi
11675done
11676  done
11677IFS=$as_save_IFS
11678
11679fi
11680fi
11681DSYMUTIL=$ac_cv_prog_DSYMUTIL
11682if test -n "$DSYMUTIL"; then
11683  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11684printf "%s\n" "$DSYMUTIL" >&6; }
11685else
11686  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11687printf "%s\n" "no" >&6; }
11688fi
11689
11690
11691fi
11692if test -z "$ac_cv_prog_DSYMUTIL"; then
11693  ac_ct_DSYMUTIL=$DSYMUTIL
11694  # Extract the first word of "dsymutil", so it can be a program name with args.
11695set dummy dsymutil; ac_word=$2
11696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11697printf %s "checking for $ac_word... " >&6; }
11698if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
11699then :
11700  printf %s "(cached) " >&6
11701else $as_nop
11702  if test -n "$ac_ct_DSYMUTIL"; then
11703  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11704else
11705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11706for as_dir in $PATH
11707do
11708  IFS=$as_save_IFS
11709  case $as_dir in #(((
11710    '') as_dir=./ ;;
11711    */) ;;
11712    *) as_dir=$as_dir/ ;;
11713  esac
11714    for ac_exec_ext in '' $ac_executable_extensions; do
11715  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11716    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11717    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11718    break 2
11719  fi
11720done
11721  done
11722IFS=$as_save_IFS
11723
11724fi
11725fi
11726ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11727if test -n "$ac_ct_DSYMUTIL"; then
11728  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11729printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
11730else
11731  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11732printf "%s\n" "no" >&6; }
11733fi
11734
11735  if test "x$ac_ct_DSYMUTIL" = x; then
11736    DSYMUTIL=":"
11737  else
11738    case $cross_compiling:$ac_tool_warned in
11739yes:)
11740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11741printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11742ac_tool_warned=yes ;;
11743esac
11744    DSYMUTIL=$ac_ct_DSYMUTIL
11745  fi
11746else
11747  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11748fi
11749
11750    if test -n "$ac_tool_prefix"; then
11751  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11752set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11754printf %s "checking for $ac_word... " >&6; }
11755if test ${ac_cv_prog_NMEDIT+y}
11756then :
11757  printf %s "(cached) " >&6
11758else $as_nop
11759  if test -n "$NMEDIT"; then
11760  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11761else
11762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11763for as_dir in $PATH
11764do
11765  IFS=$as_save_IFS
11766  case $as_dir in #(((
11767    '') as_dir=./ ;;
11768    */) ;;
11769    *) as_dir=$as_dir/ ;;
11770  esac
11771    for ac_exec_ext in '' $ac_executable_extensions; do
11772  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11773    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11774    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11775    break 2
11776  fi
11777done
11778  done
11779IFS=$as_save_IFS
11780
11781fi
11782fi
11783NMEDIT=$ac_cv_prog_NMEDIT
11784if test -n "$NMEDIT"; then
11785  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11786printf "%s\n" "$NMEDIT" >&6; }
11787else
11788  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11789printf "%s\n" "no" >&6; }
11790fi
11791
11792
11793fi
11794if test -z "$ac_cv_prog_NMEDIT"; then
11795  ac_ct_NMEDIT=$NMEDIT
11796  # Extract the first word of "nmedit", so it can be a program name with args.
11797set dummy nmedit; ac_word=$2
11798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11799printf %s "checking for $ac_word... " >&6; }
11800if test ${ac_cv_prog_ac_ct_NMEDIT+y}
11801then :
11802  printf %s "(cached) " >&6
11803else $as_nop
11804  if test -n "$ac_ct_NMEDIT"; then
11805  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11806else
11807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11808for as_dir in $PATH
11809do
11810  IFS=$as_save_IFS
11811  case $as_dir in #(((
11812    '') as_dir=./ ;;
11813    */) ;;
11814    *) as_dir=$as_dir/ ;;
11815  esac
11816    for ac_exec_ext in '' $ac_executable_extensions; do
11817  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11818    ac_cv_prog_ac_ct_NMEDIT="nmedit"
11819    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11820    break 2
11821  fi
11822done
11823  done
11824IFS=$as_save_IFS
11825
11826fi
11827fi
11828ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11829if test -n "$ac_ct_NMEDIT"; then
11830  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11831printf "%s\n" "$ac_ct_NMEDIT" >&6; }
11832else
11833  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11834printf "%s\n" "no" >&6; }
11835fi
11836
11837  if test "x$ac_ct_NMEDIT" = x; then
11838    NMEDIT=":"
11839  else
11840    case $cross_compiling:$ac_tool_warned in
11841yes:)
11842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11843printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11844ac_tool_warned=yes ;;
11845esac
11846    NMEDIT=$ac_ct_NMEDIT
11847  fi
11848else
11849  NMEDIT="$ac_cv_prog_NMEDIT"
11850fi
11851
11852    if test -n "$ac_tool_prefix"; then
11853  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11854set dummy ${ac_tool_prefix}lipo; ac_word=$2
11855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11856printf %s "checking for $ac_word... " >&6; }
11857if test ${ac_cv_prog_LIPO+y}
11858then :
11859  printf %s "(cached) " >&6
11860else $as_nop
11861  if test -n "$LIPO"; then
11862  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11863else
11864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11865for as_dir in $PATH
11866do
11867  IFS=$as_save_IFS
11868  case $as_dir in #(((
11869    '') as_dir=./ ;;
11870    */) ;;
11871    *) as_dir=$as_dir/ ;;
11872  esac
11873    for ac_exec_ext in '' $ac_executable_extensions; do
11874  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11875    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11876    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11877    break 2
11878  fi
11879done
11880  done
11881IFS=$as_save_IFS
11882
11883fi
11884fi
11885LIPO=$ac_cv_prog_LIPO
11886if test -n "$LIPO"; then
11887  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11888printf "%s\n" "$LIPO" >&6; }
11889else
11890  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891printf "%s\n" "no" >&6; }
11892fi
11893
11894
11895fi
11896if test -z "$ac_cv_prog_LIPO"; then
11897  ac_ct_LIPO=$LIPO
11898  # Extract the first word of "lipo", so it can be a program name with args.
11899set dummy lipo; ac_word=$2
11900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11901printf %s "checking for $ac_word... " >&6; }
11902if test ${ac_cv_prog_ac_ct_LIPO+y}
11903then :
11904  printf %s "(cached) " >&6
11905else $as_nop
11906  if test -n "$ac_ct_LIPO"; then
11907  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11908else
11909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11910for as_dir in $PATH
11911do
11912  IFS=$as_save_IFS
11913  case $as_dir in #(((
11914    '') as_dir=./ ;;
11915    */) ;;
11916    *) as_dir=$as_dir/ ;;
11917  esac
11918    for ac_exec_ext in '' $ac_executable_extensions; do
11919  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11920    ac_cv_prog_ac_ct_LIPO="lipo"
11921    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11922    break 2
11923  fi
11924done
11925  done
11926IFS=$as_save_IFS
11927
11928fi
11929fi
11930ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11931if test -n "$ac_ct_LIPO"; then
11932  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11933printf "%s\n" "$ac_ct_LIPO" >&6; }
11934else
11935  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11936printf "%s\n" "no" >&6; }
11937fi
11938
11939  if test "x$ac_ct_LIPO" = x; then
11940    LIPO=":"
11941  else
11942    case $cross_compiling:$ac_tool_warned in
11943yes:)
11944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11945printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11946ac_tool_warned=yes ;;
11947esac
11948    LIPO=$ac_ct_LIPO
11949  fi
11950else
11951  LIPO="$ac_cv_prog_LIPO"
11952fi
11953
11954    if test -n "$ac_tool_prefix"; then
11955  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11956set dummy ${ac_tool_prefix}otool; ac_word=$2
11957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11958printf %s "checking for $ac_word... " >&6; }
11959if test ${ac_cv_prog_OTOOL+y}
11960then :
11961  printf %s "(cached) " >&6
11962else $as_nop
11963  if test -n "$OTOOL"; then
11964  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11965else
11966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11967for as_dir in $PATH
11968do
11969  IFS=$as_save_IFS
11970  case $as_dir in #(((
11971    '') as_dir=./ ;;
11972    */) ;;
11973    *) as_dir=$as_dir/ ;;
11974  esac
11975    for ac_exec_ext in '' $ac_executable_extensions; do
11976  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11977    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11978    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11979    break 2
11980  fi
11981done
11982  done
11983IFS=$as_save_IFS
11984
11985fi
11986fi
11987OTOOL=$ac_cv_prog_OTOOL
11988if test -n "$OTOOL"; then
11989  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11990printf "%s\n" "$OTOOL" >&6; }
11991else
11992  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11993printf "%s\n" "no" >&6; }
11994fi
11995
11996
11997fi
11998if test -z "$ac_cv_prog_OTOOL"; then
11999  ac_ct_OTOOL=$OTOOL
12000  # Extract the first word of "otool", so it can be a program name with args.
12001set dummy otool; ac_word=$2
12002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12003printf %s "checking for $ac_word... " >&6; }
12004if test ${ac_cv_prog_ac_ct_OTOOL+y}
12005then :
12006  printf %s "(cached) " >&6
12007else $as_nop
12008  if test -n "$ac_ct_OTOOL"; then
12009  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12010else
12011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12012for as_dir in $PATH
12013do
12014  IFS=$as_save_IFS
12015  case $as_dir in #(((
12016    '') as_dir=./ ;;
12017    */) ;;
12018    *) as_dir=$as_dir/ ;;
12019  esac
12020    for ac_exec_ext in '' $ac_executable_extensions; do
12021  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12022    ac_cv_prog_ac_ct_OTOOL="otool"
12023    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12024    break 2
12025  fi
12026done
12027  done
12028IFS=$as_save_IFS
12029
12030fi
12031fi
12032ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12033if test -n "$ac_ct_OTOOL"; then
12034  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12035printf "%s\n" "$ac_ct_OTOOL" >&6; }
12036else
12037  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12038printf "%s\n" "no" >&6; }
12039fi
12040
12041  if test "x$ac_ct_OTOOL" = x; then
12042    OTOOL=":"
12043  else
12044    case $cross_compiling:$ac_tool_warned in
12045yes:)
12046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12047printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12048ac_tool_warned=yes ;;
12049esac
12050    OTOOL=$ac_ct_OTOOL
12051  fi
12052else
12053  OTOOL="$ac_cv_prog_OTOOL"
12054fi
12055
12056    if test -n "$ac_tool_prefix"; then
12057  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12058set dummy ${ac_tool_prefix}otool64; ac_word=$2
12059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12060printf %s "checking for $ac_word... " >&6; }
12061if test ${ac_cv_prog_OTOOL64+y}
12062then :
12063  printf %s "(cached) " >&6
12064else $as_nop
12065  if test -n "$OTOOL64"; then
12066  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12067else
12068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12069for as_dir in $PATH
12070do
12071  IFS=$as_save_IFS
12072  case $as_dir in #(((
12073    '') as_dir=./ ;;
12074    */) ;;
12075    *) as_dir=$as_dir/ ;;
12076  esac
12077    for ac_exec_ext in '' $ac_executable_extensions; do
12078  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12079    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12080    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12081    break 2
12082  fi
12083done
12084  done
12085IFS=$as_save_IFS
12086
12087fi
12088fi
12089OTOOL64=$ac_cv_prog_OTOOL64
12090if test -n "$OTOOL64"; then
12091  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12092printf "%s\n" "$OTOOL64" >&6; }
12093else
12094  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12095printf "%s\n" "no" >&6; }
12096fi
12097
12098
12099fi
12100if test -z "$ac_cv_prog_OTOOL64"; then
12101  ac_ct_OTOOL64=$OTOOL64
12102  # Extract the first word of "otool64", so it can be a program name with args.
12103set dummy otool64; ac_word=$2
12104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12105printf %s "checking for $ac_word... " >&6; }
12106if test ${ac_cv_prog_ac_ct_OTOOL64+y}
12107then :
12108  printf %s "(cached) " >&6
12109else $as_nop
12110  if test -n "$ac_ct_OTOOL64"; then
12111  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12112else
12113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12114for as_dir in $PATH
12115do
12116  IFS=$as_save_IFS
12117  case $as_dir in #(((
12118    '') as_dir=./ ;;
12119    */) ;;
12120    *) as_dir=$as_dir/ ;;
12121  esac
12122    for ac_exec_ext in '' $ac_executable_extensions; do
12123  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12124    ac_cv_prog_ac_ct_OTOOL64="otool64"
12125    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12126    break 2
12127  fi
12128done
12129  done
12130IFS=$as_save_IFS
12131
12132fi
12133fi
12134ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12135if test -n "$ac_ct_OTOOL64"; then
12136  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12137printf "%s\n" "$ac_ct_OTOOL64" >&6; }
12138else
12139  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12140printf "%s\n" "no" >&6; }
12141fi
12142
12143  if test "x$ac_ct_OTOOL64" = x; then
12144    OTOOL64=":"
12145  else
12146    case $cross_compiling:$ac_tool_warned in
12147yes:)
12148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12149printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12150ac_tool_warned=yes ;;
12151esac
12152    OTOOL64=$ac_ct_OTOOL64
12153  fi
12154else
12155  OTOOL64="$ac_cv_prog_OTOOL64"
12156fi
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12185printf %s "checking for -single_module linker flag... " >&6; }
12186if test ${lt_cv_apple_cc_single_mod+y}
12187then :
12188  printf %s "(cached) " >&6
12189else $as_nop
12190  lt_cv_apple_cc_single_mod=no
12191      if test -z "$LT_MULTI_MODULE"; then
12192	# By default we will add the -single_module flag. You can override
12193	# by either setting the environment variable LT_MULTI_MODULE
12194	# non-empty at configure time, or by adding -multi_module to the
12195	# link flags.
12196	rm -rf libconftest.dylib*
12197	echo "int foo(void){return 1;}" > conftest.c
12198	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12199-dynamiclib -Wl,-single_module conftest.c" >&5
12200	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12201	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12202        _lt_result=$?
12203	# If there is a non-empty error log, and "single_module"
12204	# appears in it, assume the flag caused a linker warning
12205        if test -s conftest.err && $GREP single_module conftest.err; then
12206	  cat conftest.err >&5
12207	# Otherwise, if the output was created with a 0 exit code from
12208	# the compiler, it worked.
12209	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
12210	  lt_cv_apple_cc_single_mod=yes
12211	else
12212	  cat conftest.err >&5
12213	fi
12214	rm -rf libconftest.dylib*
12215	rm -f conftest.*
12216      fi
12217fi
12218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12219printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
12220
12221    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12222printf %s "checking for -exported_symbols_list linker flag... " >&6; }
12223if test ${lt_cv_ld_exported_symbols_list+y}
12224then :
12225  printf %s "(cached) " >&6
12226else $as_nop
12227  lt_cv_ld_exported_symbols_list=no
12228      save_LDFLAGS=$LDFLAGS
12229      echo "_main" > conftest.sym
12230      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12231      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12232/* end confdefs.h.  */
12233
12234int
12235main (void)
12236{
12237
12238  ;
12239  return 0;
12240}
12241_ACEOF
12242if ac_fn_c_try_link "$LINENO"
12243then :
12244  lt_cv_ld_exported_symbols_list=yes
12245else $as_nop
12246  lt_cv_ld_exported_symbols_list=no
12247fi
12248rm -f core conftest.err conftest.$ac_objext conftest.beam \
12249    conftest$ac_exeext conftest.$ac_ext
12250	LDFLAGS=$save_LDFLAGS
12251
12252fi
12253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12254printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
12255
12256    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12257printf %s "checking for -force_load linker flag... " >&6; }
12258if test ${lt_cv_ld_force_load+y}
12259then :
12260  printf %s "(cached) " >&6
12261else $as_nop
12262  lt_cv_ld_force_load=no
12263      cat > conftest.c << _LT_EOF
12264int forced_loaded() { return 2;}
12265_LT_EOF
12266      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12267      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12268      echo "$AR cr libconftest.a conftest.o" >&5
12269      $AR cr libconftest.a conftest.o 2>&5
12270      echo "$RANLIB libconftest.a" >&5
12271      $RANLIB libconftest.a 2>&5
12272      cat > conftest.c << _LT_EOF
12273int main() { return 0;}
12274_LT_EOF
12275      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12276      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12277      _lt_result=$?
12278      if test -s conftest.err && $GREP force_load conftest.err; then
12279	cat conftest.err >&5
12280      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
12281	lt_cv_ld_force_load=yes
12282      else
12283	cat conftest.err >&5
12284      fi
12285        rm -f conftest.err libconftest.a conftest conftest.c
12286        rm -rf conftest.dSYM
12287
12288fi
12289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12290printf "%s\n" "$lt_cv_ld_force_load" >&6; }
12291    case $host_os in
12292    rhapsody* | darwin1.[012])
12293      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
12294    darwin1.*)
12295      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12296    darwin*) # darwin 5.x on
12297      # if running on 10.5 or later, the deployment target defaults
12298      # to the OS version, if on x86, and 10.4, the deployment
12299      # target defaults to 10.4. Don't you love it?
12300      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12301	10.0,*86*-darwin8*|10.0,*-darwin[912]*)
12302	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
12303	10.[012][,.]*)
12304	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12305	10.*|11.*)
12306	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
12307      esac
12308    ;;
12309  esac
12310    if test yes = "$lt_cv_apple_cc_single_mod"; then
12311      _lt_dar_single_mod='$single_module'
12312    fi
12313    if test yes = "$lt_cv_ld_exported_symbols_list"; then
12314      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
12315    else
12316      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
12317    fi
12318    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
12319      _lt_dsymutil='~$DSYMUTIL $lib || :'
12320    else
12321      _lt_dsymutil=
12322    fi
12323    ;;
12324  esac
12325
12326# func_munge_path_list VARIABLE PATH
12327# -----------------------------------
12328# VARIABLE is name of variable containing _space_ separated list of
12329# directories to be munged by the contents of PATH, which is string
12330# having a format:
12331# "DIR[:DIR]:"
12332#       string "DIR[ DIR]" will be prepended to VARIABLE
12333# ":DIR[:DIR]"
12334#       string "DIR[ DIR]" will be appended to VARIABLE
12335# "DIRP[:DIRP]::[DIRA:]DIRA"
12336#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
12337#       "DIRA[ DIRA]" will be appended to VARIABLE
12338# "DIR[:DIR]"
12339#       VARIABLE will be replaced by "DIR[ DIR]"
12340func_munge_path_list ()
12341{
12342    case x$2 in
12343    x)
12344        ;;
12345    *:)
12346        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
12347        ;;
12348    x:*)
12349        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
12350        ;;
12351    *::*)
12352        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
12353        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
12354        ;;
12355    *)
12356        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
12357        ;;
12358    esac
12359}
12360
12361ac_header= ac_cache=
12362for ac_item in $ac_header_c_list
12363do
12364  if test $ac_cache; then
12365    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
12366    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
12367      printf "%s\n" "#define $ac_item 1" >> confdefs.h
12368    fi
12369    ac_header= ac_cache=
12370  elif test $ac_header; then
12371    ac_cache=$ac_item
12372  else
12373    ac_header=$ac_item
12374  fi
12375done
12376
12377
12378
12379
12380
12381
12382
12383
12384if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
12385then :
12386
12387printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
12388
12389fi
12390ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12391"
12392if test "x$ac_cv_header_dlfcn_h" = xyes
12393then :
12394  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
12395
12396fi
12397
12398
12399
12400
12401
12402# Set options
12403enable_win32_dll=yes
12404
12405case $host in
12406*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
12407  if test -n "$ac_tool_prefix"; then
12408  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12409set dummy ${ac_tool_prefix}as; ac_word=$2
12410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12411printf %s "checking for $ac_word... " >&6; }
12412if test ${ac_cv_prog_AS+y}
12413then :
12414  printf %s "(cached) " >&6
12415else $as_nop
12416  if test -n "$AS"; then
12417  ac_cv_prog_AS="$AS" # Let the user override the test.
12418else
12419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12420for as_dir in $PATH
12421do
12422  IFS=$as_save_IFS
12423  case $as_dir in #(((
12424    '') as_dir=./ ;;
12425    */) ;;
12426    *) as_dir=$as_dir/ ;;
12427  esac
12428    for ac_exec_ext in '' $ac_executable_extensions; do
12429  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12430    ac_cv_prog_AS="${ac_tool_prefix}as"
12431    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12432    break 2
12433  fi
12434done
12435  done
12436IFS=$as_save_IFS
12437
12438fi
12439fi
12440AS=$ac_cv_prog_AS
12441if test -n "$AS"; then
12442  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12443printf "%s\n" "$AS" >&6; }
12444else
12445  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12446printf "%s\n" "no" >&6; }
12447fi
12448
12449
12450fi
12451if test -z "$ac_cv_prog_AS"; then
12452  ac_ct_AS=$AS
12453  # Extract the first word of "as", so it can be a program name with args.
12454set dummy as; ac_word=$2
12455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12456printf %s "checking for $ac_word... " >&6; }
12457if test ${ac_cv_prog_ac_ct_AS+y}
12458then :
12459  printf %s "(cached) " >&6
12460else $as_nop
12461  if test -n "$ac_ct_AS"; then
12462  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12463else
12464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12465for as_dir in $PATH
12466do
12467  IFS=$as_save_IFS
12468  case $as_dir in #(((
12469    '') as_dir=./ ;;
12470    */) ;;
12471    *) as_dir=$as_dir/ ;;
12472  esac
12473    for ac_exec_ext in '' $ac_executable_extensions; do
12474  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12475    ac_cv_prog_ac_ct_AS="as"
12476    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12477    break 2
12478  fi
12479done
12480  done
12481IFS=$as_save_IFS
12482
12483fi
12484fi
12485ac_ct_AS=$ac_cv_prog_ac_ct_AS
12486if test -n "$ac_ct_AS"; then
12487  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12488printf "%s\n" "$ac_ct_AS" >&6; }
12489else
12490  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12491printf "%s\n" "no" >&6; }
12492fi
12493
12494  if test "x$ac_ct_AS" = x; then
12495    AS="false"
12496  else
12497    case $cross_compiling:$ac_tool_warned in
12498yes:)
12499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12500printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12501ac_tool_warned=yes ;;
12502esac
12503    AS=$ac_ct_AS
12504  fi
12505else
12506  AS="$ac_cv_prog_AS"
12507fi
12508
12509  if test -n "$ac_tool_prefix"; then
12510  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12511set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12513printf %s "checking for $ac_word... " >&6; }
12514if test ${ac_cv_prog_DLLTOOL+y}
12515then :
12516  printf %s "(cached) " >&6
12517else $as_nop
12518  if test -n "$DLLTOOL"; then
12519  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12520else
12521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12522for as_dir in $PATH
12523do
12524  IFS=$as_save_IFS
12525  case $as_dir in #(((
12526    '') as_dir=./ ;;
12527    */) ;;
12528    *) as_dir=$as_dir/ ;;
12529  esac
12530    for ac_exec_ext in '' $ac_executable_extensions; do
12531  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12532    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12533    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12534    break 2
12535  fi
12536done
12537  done
12538IFS=$as_save_IFS
12539
12540fi
12541fi
12542DLLTOOL=$ac_cv_prog_DLLTOOL
12543if test -n "$DLLTOOL"; then
12544  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12545printf "%s\n" "$DLLTOOL" >&6; }
12546else
12547  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12548printf "%s\n" "no" >&6; }
12549fi
12550
12551
12552fi
12553if test -z "$ac_cv_prog_DLLTOOL"; then
12554  ac_ct_DLLTOOL=$DLLTOOL
12555  # Extract the first word of "dlltool", so it can be a program name with args.
12556set dummy dlltool; ac_word=$2
12557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12558printf %s "checking for $ac_word... " >&6; }
12559if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
12560then :
12561  printf %s "(cached) " >&6
12562else $as_nop
12563  if test -n "$ac_ct_DLLTOOL"; then
12564  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12565else
12566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12567for as_dir in $PATH
12568do
12569  IFS=$as_save_IFS
12570  case $as_dir in #(((
12571    '') as_dir=./ ;;
12572    */) ;;
12573    *) as_dir=$as_dir/ ;;
12574  esac
12575    for ac_exec_ext in '' $ac_executable_extensions; do
12576  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12577    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12578    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12579    break 2
12580  fi
12581done
12582  done
12583IFS=$as_save_IFS
12584
12585fi
12586fi
12587ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12588if test -n "$ac_ct_DLLTOOL"; then
12589  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12590printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
12591else
12592  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12593printf "%s\n" "no" >&6; }
12594fi
12595
12596  if test "x$ac_ct_DLLTOOL" = x; then
12597    DLLTOOL="false"
12598  else
12599    case $cross_compiling:$ac_tool_warned in
12600yes:)
12601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12602printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12603ac_tool_warned=yes ;;
12604esac
12605    DLLTOOL=$ac_ct_DLLTOOL
12606  fi
12607else
12608  DLLTOOL="$ac_cv_prog_DLLTOOL"
12609fi
12610
12611  if test -n "$ac_tool_prefix"; then
12612  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12613set dummy ${ac_tool_prefix}objdump; ac_word=$2
12614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12615printf %s "checking for $ac_word... " >&6; }
12616if test ${ac_cv_prog_OBJDUMP+y}
12617then :
12618  printf %s "(cached) " >&6
12619else $as_nop
12620  if test -n "$OBJDUMP"; then
12621  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12622else
12623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12624for as_dir in $PATH
12625do
12626  IFS=$as_save_IFS
12627  case $as_dir in #(((
12628    '') as_dir=./ ;;
12629    */) ;;
12630    *) as_dir=$as_dir/ ;;
12631  esac
12632    for ac_exec_ext in '' $ac_executable_extensions; do
12633  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12634    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12635    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12636    break 2
12637  fi
12638done
12639  done
12640IFS=$as_save_IFS
12641
12642fi
12643fi
12644OBJDUMP=$ac_cv_prog_OBJDUMP
12645if test -n "$OBJDUMP"; then
12646  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12647printf "%s\n" "$OBJDUMP" >&6; }
12648else
12649  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12650printf "%s\n" "no" >&6; }
12651fi
12652
12653
12654fi
12655if test -z "$ac_cv_prog_OBJDUMP"; then
12656  ac_ct_OBJDUMP=$OBJDUMP
12657  # Extract the first word of "objdump", so it can be a program name with args.
12658set dummy objdump; ac_word=$2
12659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12660printf %s "checking for $ac_word... " >&6; }
12661if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12662then :
12663  printf %s "(cached) " >&6
12664else $as_nop
12665  if test -n "$ac_ct_OBJDUMP"; then
12666  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12667else
12668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12669for as_dir in $PATH
12670do
12671  IFS=$as_save_IFS
12672  case $as_dir in #(((
12673    '') as_dir=./ ;;
12674    */) ;;
12675    *) as_dir=$as_dir/ ;;
12676  esac
12677    for ac_exec_ext in '' $ac_executable_extensions; do
12678  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12679    ac_cv_prog_ac_ct_OBJDUMP="objdump"
12680    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12681    break 2
12682  fi
12683done
12684  done
12685IFS=$as_save_IFS
12686
12687fi
12688fi
12689ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12690if test -n "$ac_ct_OBJDUMP"; then
12691  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12692printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12693else
12694  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12695printf "%s\n" "no" >&6; }
12696fi
12697
12698  if test "x$ac_ct_OBJDUMP" = x; then
12699    OBJDUMP="false"
12700  else
12701    case $cross_compiling:$ac_tool_warned in
12702yes:)
12703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12704printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12705ac_tool_warned=yes ;;
12706esac
12707    OBJDUMP=$ac_ct_OBJDUMP
12708  fi
12709else
12710  OBJDUMP="$ac_cv_prog_OBJDUMP"
12711fi
12712
12713  ;;
12714esac
12715
12716test -z "$AS" && AS=as
12717
12718
12719
12720
12721
12722test -z "$DLLTOOL" && DLLTOOL=dlltool
12723
12724
12725
12726
12727
12728test -z "$OBJDUMP" && OBJDUMP=objdump
12729
12730
12731
12732
12733
12734
12735
12736        enable_dlopen=no
12737
12738
12739
12740            # Check whether --enable-shared was given.
12741if test ${enable_shared+y}
12742then :
12743  enableval=$enable_shared; p=${PACKAGE-default}
12744    case $enableval in
12745    yes) enable_shared=yes ;;
12746    no) enable_shared=no ;;
12747    *)
12748      enable_shared=no
12749      # Look at the argument we got.  We use all the common list separators.
12750      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12751      for pkg in $enableval; do
12752	IFS=$lt_save_ifs
12753	if test "X$pkg" = "X$p"; then
12754	  enable_shared=yes
12755	fi
12756      done
12757      IFS=$lt_save_ifs
12758      ;;
12759    esac
12760else $as_nop
12761  enable_shared=yes
12762fi
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772  # Check whether --enable-static was given.
12773if test ${enable_static+y}
12774then :
12775  enableval=$enable_static; p=${PACKAGE-default}
12776    case $enableval in
12777    yes) enable_static=yes ;;
12778    no) enable_static=no ;;
12779    *)
12780     enable_static=no
12781      # Look at the argument we got.  We use all the common list separators.
12782      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12783      for pkg in $enableval; do
12784	IFS=$lt_save_ifs
12785	if test "X$pkg" = "X$p"; then
12786	  enable_static=yes
12787	fi
12788      done
12789      IFS=$lt_save_ifs
12790      ;;
12791    esac
12792else $as_nop
12793  enable_static=yes
12794fi
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805# Check whether --with-pic was given.
12806if test ${with_pic+y}
12807then :
12808  withval=$with_pic; lt_p=${PACKAGE-default}
12809    case $withval in
12810    yes|no) pic_mode=$withval ;;
12811    *)
12812      pic_mode=default
12813      # Look at the argument we got.  We use all the common list separators.
12814      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12815      for lt_pkg in $withval; do
12816	IFS=$lt_save_ifs
12817	if test "X$lt_pkg" = "X$lt_p"; then
12818	  pic_mode=yes
12819	fi
12820      done
12821      IFS=$lt_save_ifs
12822      ;;
12823    esac
12824else $as_nop
12825  pic_mode=default
12826fi
12827
12828
12829
12830
12831
12832
12833
12834
12835  # Check whether --enable-fast-install was given.
12836if test ${enable_fast_install+y}
12837then :
12838  enableval=$enable_fast_install; p=${PACKAGE-default}
12839    case $enableval in
12840    yes) enable_fast_install=yes ;;
12841    no) enable_fast_install=no ;;
12842    *)
12843      enable_fast_install=no
12844      # Look at the argument we got.  We use all the common list separators.
12845      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12846      for pkg in $enableval; do
12847	IFS=$lt_save_ifs
12848	if test "X$pkg" = "X$p"; then
12849	  enable_fast_install=yes
12850	fi
12851      done
12852      IFS=$lt_save_ifs
12853      ;;
12854    esac
12855else $as_nop
12856  enable_fast_install=yes
12857fi
12858
12859
12860
12861
12862
12863
12864
12865
12866  shared_archive_member_spec=
12867case $host,$enable_shared in
12868power*-*-aix[5-9]*,yes)
12869  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
12870printf %s "checking which variant of shared library versioning to provide... " >&6; }
12871
12872# Check whether --with-aix-soname was given.
12873if test ${with_aix_soname+y}
12874then :
12875  withval=$with_aix_soname; case $withval in
12876    aix|svr4|both)
12877      ;;
12878    *)
12879      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
12880      ;;
12881    esac
12882    lt_cv_with_aix_soname=$with_aix_soname
12883else $as_nop
12884  if test ${lt_cv_with_aix_soname+y}
12885then :
12886  printf %s "(cached) " >&6
12887else $as_nop
12888  lt_cv_with_aix_soname=aix
12889fi
12890
12891    with_aix_soname=$lt_cv_with_aix_soname
12892fi
12893
12894  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
12895printf "%s\n" "$with_aix_soname" >&6; }
12896  if test aix != "$with_aix_soname"; then
12897    # For the AIX way of multilib, we name the shared archive member
12898    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
12899    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
12900    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
12901    # the AIX toolchain works better with OBJECT_MODE set (default 32).
12902    if test 64 = "${OBJECT_MODE-32}"; then
12903      shared_archive_member_spec=shr_64
12904    else
12905      shared_archive_member_spec=shr
12906    fi
12907  fi
12908  ;;
12909*)
12910  with_aix_soname=aix
12911  ;;
12912esac
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923# This can be used to rebuild libtool when needed
12924LIBTOOL_DEPS=$ltmain
12925
12926# Always use our own libtool.
12927LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958test -z "$LN_S" && LN_S="ln -s"
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973if test -n "${ZSH_VERSION+set}"; then
12974   setopt NO_GLOB_SUBST
12975fi
12976
12977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12978printf %s "checking for objdir... " >&6; }
12979if test ${lt_cv_objdir+y}
12980then :
12981  printf %s "(cached) " >&6
12982else $as_nop
12983  rm -f .libs 2>/dev/null
12984mkdir .libs 2>/dev/null
12985if test -d .libs; then
12986  lt_cv_objdir=.libs
12987else
12988  # MS-DOS does not allow filenames that begin with a dot.
12989  lt_cv_objdir=_libs
12990fi
12991rmdir .libs 2>/dev/null
12992fi
12993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12994printf "%s\n" "$lt_cv_objdir" >&6; }
12995objdir=$lt_cv_objdir
12996
12997
12998
12999
13000
13001printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
13002
13003
13004
13005
13006case $host_os in
13007aix3*)
13008  # AIX sometimes has problems with the GCC collect2 program.  For some
13009  # reason, if we set the COLLECT_NAMES environment variable, the problems
13010  # vanish in a puff of smoke.
13011  if test set != "${COLLECT_NAMES+set}"; then
13012    COLLECT_NAMES=
13013    export COLLECT_NAMES
13014  fi
13015  ;;
13016esac
13017
13018# Global variables:
13019ofile=libtool
13020can_build_shared=yes
13021
13022# All known linkers require a '.a' archive for static linking (except MSVC,
13023# which needs '.lib').
13024libext=a
13025
13026with_gnu_ld=$lt_cv_prog_gnu_ld
13027
13028old_CC=$CC
13029old_CFLAGS=$CFLAGS
13030
13031# Set sane defaults for various variables
13032test -z "$CC" && CC=cc
13033test -z "$LTCC" && LTCC=$CC
13034test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13035test -z "$LD" && LD=ld
13036test -z "$ac_objext" && ac_objext=o
13037
13038func_cc_basename $compiler
13039cc_basename=$func_cc_basename_result
13040
13041
13042# Only perform the check for file, if the check method requires it
13043test -z "$MAGIC_CMD" && MAGIC_CMD=file
13044case $deplibs_check_method in
13045file_magic*)
13046  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13047    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13048printf %s "checking for ${ac_tool_prefix}file... " >&6; }
13049if test ${lt_cv_path_MAGIC_CMD+y}
13050then :
13051  printf %s "(cached) " >&6
13052else $as_nop
13053  case $MAGIC_CMD in
13054[\\/*] |  ?:[\\/]*)
13055  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
13056  ;;
13057*)
13058  lt_save_MAGIC_CMD=$MAGIC_CMD
13059  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13060  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13061  for ac_dir in $ac_dummy; do
13062    IFS=$lt_save_ifs
13063    test -z "$ac_dir" && ac_dir=.
13064    if test -f "$ac_dir/${ac_tool_prefix}file"; then
13065      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
13066      if test -n "$file_magic_test_file"; then
13067	case $deplibs_check_method in
13068	"file_magic "*)
13069	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13070	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13071	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13072	    $EGREP "$file_magic_regex" > /dev/null; then
13073	    :
13074	  else
13075	    cat <<_LT_EOF 1>&2
13076
13077*** Warning: the command libtool uses to detect shared libraries,
13078*** $file_magic_cmd, produces output that libtool cannot recognize.
13079*** The result is that libtool may fail to recognize shared libraries
13080*** as such.  This will affect the creation of libtool libraries that
13081*** depend on shared libraries, but programs linked with such libtool
13082*** libraries will work regardless of this problem.  Nevertheless, you
13083*** may want to report the problem to your system manager and/or to
13084*** bug-libtool@gnu.org
13085
13086_LT_EOF
13087	  fi ;;
13088	esac
13089      fi
13090      break
13091    fi
13092  done
13093  IFS=$lt_save_ifs
13094  MAGIC_CMD=$lt_save_MAGIC_CMD
13095  ;;
13096esac
13097fi
13098
13099MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13100if test -n "$MAGIC_CMD"; then
13101  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13102printf "%s\n" "$MAGIC_CMD" >&6; }
13103else
13104  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13105printf "%s\n" "no" >&6; }
13106fi
13107
13108
13109
13110
13111
13112if test -z "$lt_cv_path_MAGIC_CMD"; then
13113  if test -n "$ac_tool_prefix"; then
13114    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13115printf %s "checking for file... " >&6; }
13116if test ${lt_cv_path_MAGIC_CMD+y}
13117then :
13118  printf %s "(cached) " >&6
13119else $as_nop
13120  case $MAGIC_CMD in
13121[\\/*] |  ?:[\\/]*)
13122  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
13123  ;;
13124*)
13125  lt_save_MAGIC_CMD=$MAGIC_CMD
13126  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13127  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13128  for ac_dir in $ac_dummy; do
13129    IFS=$lt_save_ifs
13130    test -z "$ac_dir" && ac_dir=.
13131    if test -f "$ac_dir/file"; then
13132      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
13133      if test -n "$file_magic_test_file"; then
13134	case $deplibs_check_method in
13135	"file_magic "*)
13136	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13137	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13138	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13139	    $EGREP "$file_magic_regex" > /dev/null; then
13140	    :
13141	  else
13142	    cat <<_LT_EOF 1>&2
13143
13144*** Warning: the command libtool uses to detect shared libraries,
13145*** $file_magic_cmd, produces output that libtool cannot recognize.
13146*** The result is that libtool may fail to recognize shared libraries
13147*** as such.  This will affect the creation of libtool libraries that
13148*** depend on shared libraries, but programs linked with such libtool
13149*** libraries will work regardless of this problem.  Nevertheless, you
13150*** may want to report the problem to your system manager and/or to
13151*** bug-libtool@gnu.org
13152
13153_LT_EOF
13154	  fi ;;
13155	esac
13156      fi
13157      break
13158    fi
13159  done
13160  IFS=$lt_save_ifs
13161  MAGIC_CMD=$lt_save_MAGIC_CMD
13162  ;;
13163esac
13164fi
13165
13166MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13167if test -n "$MAGIC_CMD"; then
13168  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13169printf "%s\n" "$MAGIC_CMD" >&6; }
13170else
13171  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13172printf "%s\n" "no" >&6; }
13173fi
13174
13175
13176  else
13177    MAGIC_CMD=:
13178  fi
13179fi
13180
13181  fi
13182  ;;
13183esac
13184
13185# Use C for the default configuration in the libtool script
13186
13187lt_save_CC=$CC
13188ac_ext=c
13189ac_cpp='$CPP $CPPFLAGS'
13190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13192ac_compiler_gnu=$ac_cv_c_compiler_gnu
13193
13194
13195# Source file extension for C test sources.
13196ac_ext=c
13197
13198# Object file extension for compiled C test sources.
13199objext=o
13200objext=$objext
13201
13202# Code to be used in simple compile tests
13203lt_simple_compile_test_code="int some_variable = 0;"
13204
13205# Code to be used in simple link tests
13206lt_simple_link_test_code='int main(){return(0);}'
13207
13208
13209
13210
13211
13212
13213
13214# If no C compiler was specified, use CC.
13215LTCC=${LTCC-"$CC"}
13216
13217# If no C compiler flags were specified, use CFLAGS.
13218LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13219
13220# Allow CC to be a program name with arguments.
13221compiler=$CC
13222
13223# Save the default compiler, since it gets overwritten when the other
13224# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13225compiler_DEFAULT=$CC
13226
13227# save warnings/boilerplate of simple test code
13228ac_outfile=conftest.$ac_objext
13229echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13230eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13231_lt_compiler_boilerplate=`cat conftest.err`
13232$RM conftest*
13233
13234ac_outfile=conftest.$ac_objext
13235echo "$lt_simple_link_test_code" >conftest.$ac_ext
13236eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13237_lt_linker_boilerplate=`cat conftest.err`
13238$RM -r conftest*
13239
13240
13241## CAVEAT EMPTOR:
13242## There is no encapsulation within the following macros, do not change
13243## the running order or otherwise move them around unless you know exactly
13244## what you are doing...
13245if test -n "$compiler"; then
13246
13247lt_prog_compiler_no_builtin_flag=
13248
13249if test yes = "$GCC"; then
13250  case $cc_basename in
13251  nvcc*)
13252    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13253  *)
13254    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13255  esac
13256
13257  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13258printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13259if test ${lt_cv_prog_compiler_rtti_exceptions+y}
13260then :
13261  printf %s "(cached) " >&6
13262else $as_nop
13263  lt_cv_prog_compiler_rtti_exceptions=no
13264   ac_outfile=conftest.$ac_objext
13265   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13266   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
13267   # Insert the option either (1) after the last *FLAGS variable, or
13268   # (2) before a word containing "conftest.", or (3) at the end.
13269   # Note that $ac_compile itself does not contain backslashes and begins
13270   # with a dollar sign (not a hyphen), so the echo should work correctly.
13271   # The option is referenced via a variable to avoid confusing sed.
13272   lt_compile=`echo "$ac_compile" | $SED \
13273   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13274   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13275   -e 's:$: $lt_compiler_flag:'`
13276   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13277   (eval "$lt_compile" 2>conftest.err)
13278   ac_status=$?
13279   cat conftest.err >&5
13280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281   if (exit $ac_status) && test -s "$ac_outfile"; then
13282     # The compiler can only warn and ignore the option if not recognized
13283     # So say no if there are warnings other than the usual output.
13284     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13285     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13286     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13287       lt_cv_prog_compiler_rtti_exceptions=yes
13288     fi
13289   fi
13290   $RM conftest*
13291
13292fi
13293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13294printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13295
13296if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
13297    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13298else
13299    :
13300fi
13301
13302fi
13303
13304
13305
13306
13307
13308
13309  lt_prog_compiler_wl=
13310lt_prog_compiler_pic=
13311lt_prog_compiler_static=
13312
13313
13314  if test yes = "$GCC"; then
13315    lt_prog_compiler_wl='-Wl,'
13316    lt_prog_compiler_static='-static'
13317
13318    case $host_os in
13319      aix*)
13320      # All AIX code is PIC.
13321      if test ia64 = "$host_cpu"; then
13322	# AIX 5 now supports IA64 processor
13323	lt_prog_compiler_static='-Bstatic'
13324      fi
13325      lt_prog_compiler_pic='-fPIC'
13326      ;;
13327
13328    amigaos*)
13329      case $host_cpu in
13330      powerpc)
13331            # see comment about AmigaOS4 .so support
13332            lt_prog_compiler_pic='-fPIC'
13333        ;;
13334      m68k)
13335            # FIXME: we need at least 68020 code to build shared libraries, but
13336            # adding the '-m68020' flag to GCC prevents building anything better,
13337            # like '-m68040'.
13338            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13339        ;;
13340      esac
13341      ;;
13342
13343    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13344      # PIC is the default for these OSes.
13345      ;;
13346
13347    mingw* | cygwin* | msys* | pw32* | os2* | cegcc*)
13348      # This hack is so that the source file can tell whether it is being
13349      # built for inclusion in a dll (and should export symbols for example).
13350      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13351      # (--disable-auto-import) libraries
13352      lt_prog_compiler_pic='-DDLL_EXPORT'
13353      case $host_os in
13354      os2*)
13355	lt_prog_compiler_static='$wl-static'
13356	;;
13357      esac
13358      ;;
13359
13360    darwin* | rhapsody*)
13361      # PIC is the default on this platform
13362      # Common symbols not allowed in MH_DYLIB files
13363      lt_prog_compiler_pic='-fno-common'
13364      ;;
13365
13366    haiku*)
13367      # PIC is the default for Haiku.
13368      # The "-static" flag exists, but is broken.
13369      lt_prog_compiler_static=
13370      ;;
13371
13372    hpux*)
13373      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13374      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13375      # sets the default TLS model and affects inlining.
13376      case $host_cpu in
13377      hppa*64*)
13378	# +Z the default
13379	;;
13380      *)
13381	lt_prog_compiler_pic='-fPIC'
13382	;;
13383      esac
13384      ;;
13385
13386    interix[3-9]*)
13387      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13388      # Instead, we relocate shared libraries at runtime.
13389      ;;
13390
13391    msdosdjgpp*)
13392      # Just because we use GCC doesn't mean we suddenly get shared libraries
13393      # on systems that don't support them.
13394      lt_prog_compiler_can_build_shared=no
13395      enable_shared=no
13396      ;;
13397
13398    *nto* | *qnx*)
13399      # QNX uses GNU C++, but need to define -shared option too, otherwise
13400      # it will coredump.
13401      lt_prog_compiler_pic='-fPIC -shared'
13402      ;;
13403
13404    sysv4*MP*)
13405      if test -d /usr/nec; then
13406	lt_prog_compiler_pic=-Kconform_pic
13407      fi
13408      ;;
13409
13410    *)
13411      lt_prog_compiler_pic='-fPIC'
13412      ;;
13413    esac
13414
13415    case $cc_basename in
13416    nvcc*) # Cuda Compiler Driver 2.2
13417      lt_prog_compiler_wl='-Xlinker '
13418      if test -n "$lt_prog_compiler_pic"; then
13419        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13420      fi
13421      ;;
13422    esac
13423  else
13424    # PORTME Check for flag to pass linker flags through the system compiler.
13425    case $host_os in
13426    aix*)
13427      lt_prog_compiler_wl='-Wl,'
13428      if test ia64 = "$host_cpu"; then
13429	# AIX 5 now supports IA64 processor
13430	lt_prog_compiler_static='-Bstatic'
13431      else
13432	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13433      fi
13434      ;;
13435
13436    darwin* | rhapsody*)
13437      # PIC is the default on this platform
13438      # Common symbols not allowed in MH_DYLIB files
13439      lt_prog_compiler_pic='-fno-common'
13440      case $cc_basename in
13441      nagfor*)
13442        # NAG Fortran compiler
13443        lt_prog_compiler_wl='-Wl,-Wl,,'
13444        lt_prog_compiler_pic='-PIC'
13445        lt_prog_compiler_static='-Bstatic'
13446        ;;
13447      esac
13448      ;;
13449
13450    mingw* | cygwin* | msys* | pw32* | os2* | cegcc*)
13451      # This hack is so that the source file can tell whether it is being
13452      # built for inclusion in a dll (and should export symbols for example).
13453      lt_prog_compiler_pic='-DDLL_EXPORT'
13454      case $host_os in
13455      os2*)
13456	lt_prog_compiler_static='$wl-static'
13457	;;
13458      esac
13459      ;;
13460
13461    hpux9* | hpux10* | hpux11*)
13462      lt_prog_compiler_wl='-Wl,'
13463      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13464      # not for PA HP-UX.
13465      case $host_cpu in
13466      hppa*64*|ia64*)
13467	# +Z the default
13468	;;
13469      *)
13470	lt_prog_compiler_pic='+Z'
13471	;;
13472      esac
13473      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13474      lt_prog_compiler_static='$wl-a ${wl}archive'
13475      ;;
13476
13477    irix5* | irix6* | nonstopux*)
13478      lt_prog_compiler_wl='-Wl,'
13479      # PIC (with -KPIC) is the default.
13480      lt_prog_compiler_static='-non_shared'
13481      ;;
13482
13483    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13484      case $cc_basename in
13485      # old Intel for x86_64, which still supported -KPIC.
13486      ecc*)
13487	lt_prog_compiler_wl='-Wl,'
13488	lt_prog_compiler_pic='-KPIC'
13489	lt_prog_compiler_static='-static'
13490        ;;
13491      # flang / f18. f95 an alias for gfortran or flang on Debian
13492      flang* | f18* | f95*)
13493	lt_prog_compiler_wl='-Wl,'
13494	lt_prog_compiler_pic='-fPIC'
13495	lt_prog_compiler_static='-static'
13496        ;;
13497      # icc used to be incompatible with GCC.
13498      # ICC 10 doesn't accept -KPIC any more.
13499      icc* | ifort*)
13500	lt_prog_compiler_wl='-Wl,'
13501	lt_prog_compiler_pic='-fPIC'
13502	lt_prog_compiler_static='-static'
13503        ;;
13504      # Lahey Fortran 8.1.
13505      lf95*)
13506	lt_prog_compiler_wl='-Wl,'
13507	lt_prog_compiler_pic='--shared'
13508	lt_prog_compiler_static='--static'
13509	;;
13510      nagfor*)
13511	# NAG Fortran compiler
13512	lt_prog_compiler_wl='-Wl,-Wl,,'
13513	lt_prog_compiler_pic='-PIC'
13514	lt_prog_compiler_static='-Bstatic'
13515	;;
13516      tcc*)
13517	# Fabrice Bellard et al's Tiny C Compiler
13518	lt_prog_compiler_wl='-Wl,'
13519	lt_prog_compiler_pic='-fPIC'
13520	lt_prog_compiler_static='-static'
13521	;;
13522      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13523        # Portland Group compilers (*not* the Pentium gcc compiler,
13524	# which looks to be a dead project)
13525	lt_prog_compiler_wl='-Wl,'
13526	lt_prog_compiler_pic='-fpic'
13527	lt_prog_compiler_static='-Bstatic'
13528        ;;
13529      ccc*)
13530        lt_prog_compiler_wl='-Wl,'
13531        # All Alpha code is PIC.
13532        lt_prog_compiler_static='-non_shared'
13533        ;;
13534      xl* | bgxl* | bgf* | mpixl*)
13535	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13536	lt_prog_compiler_wl='-Wl,'
13537	lt_prog_compiler_pic='-qpic'
13538	lt_prog_compiler_static='-qstaticlink'
13539	;;
13540      *)
13541	case `$CC -V 2>&1 | sed 5q` in
13542	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13543	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
13544	  lt_prog_compiler_pic='-KPIC'
13545	  lt_prog_compiler_static='-Bstatic'
13546	  lt_prog_compiler_wl=''
13547	  ;;
13548	*Sun\ F* | *Sun*Fortran*)
13549	  lt_prog_compiler_pic='-KPIC'
13550	  lt_prog_compiler_static='-Bstatic'
13551	  lt_prog_compiler_wl='-Qoption ld '
13552	  ;;
13553	*Sun\ C*)
13554	  # Sun C 5.9
13555	  lt_prog_compiler_pic='-KPIC'
13556	  lt_prog_compiler_static='-Bstatic'
13557	  lt_prog_compiler_wl='-Wl,'
13558	  ;;
13559        *Intel*\ [CF]*Compiler*)
13560	  lt_prog_compiler_wl='-Wl,'
13561	  lt_prog_compiler_pic='-fPIC'
13562	  lt_prog_compiler_static='-static'
13563	  ;;
13564	*Portland\ Group*)
13565	  lt_prog_compiler_wl='-Wl,'
13566	  lt_prog_compiler_pic='-fpic'
13567	  lt_prog_compiler_static='-Bstatic'
13568	  ;;
13569	esac
13570	;;
13571      esac
13572      ;;
13573
13574    newsos6)
13575      lt_prog_compiler_pic='-KPIC'
13576      lt_prog_compiler_static='-Bstatic'
13577      ;;
13578
13579    *nto* | *qnx*)
13580      # QNX uses GNU C++, but need to define -shared option too, otherwise
13581      # it will coredump.
13582      lt_prog_compiler_pic='-fPIC -shared'
13583      ;;
13584
13585    osf3* | osf4* | osf5*)
13586      lt_prog_compiler_wl='-Wl,'
13587      # All OSF/1 code is PIC.
13588      lt_prog_compiler_static='-non_shared'
13589      ;;
13590
13591    rdos*)
13592      lt_prog_compiler_static='-non_shared'
13593      ;;
13594
13595    solaris*)
13596      lt_prog_compiler_pic='-KPIC'
13597      lt_prog_compiler_static='-Bstatic'
13598      case $cc_basename in
13599      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13600	lt_prog_compiler_wl='-Qoption ld ';;
13601      *)
13602	lt_prog_compiler_wl='-Wl,';;
13603      esac
13604      ;;
13605
13606    sunos4*)
13607      lt_prog_compiler_wl='-Qoption ld '
13608      lt_prog_compiler_pic='-PIC'
13609      lt_prog_compiler_static='-Bstatic'
13610      ;;
13611
13612    sysv4 | sysv4.2uw2* | sysv4.3*)
13613      lt_prog_compiler_wl='-Wl,'
13614      lt_prog_compiler_pic='-KPIC'
13615      lt_prog_compiler_static='-Bstatic'
13616      ;;
13617
13618    sysv4*MP*)
13619      if test -d /usr/nec; then
13620	lt_prog_compiler_pic='-Kconform_pic'
13621	lt_prog_compiler_static='-Bstatic'
13622      fi
13623      ;;
13624
13625    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13626      lt_prog_compiler_wl='-Wl,'
13627      lt_prog_compiler_pic='-KPIC'
13628      lt_prog_compiler_static='-Bstatic'
13629      ;;
13630
13631    unicos*)
13632      lt_prog_compiler_wl='-Wl,'
13633      lt_prog_compiler_can_build_shared=no
13634      ;;
13635
13636    uts4*)
13637      lt_prog_compiler_pic='-pic'
13638      lt_prog_compiler_static='-Bstatic'
13639      ;;
13640
13641    *)
13642      lt_prog_compiler_can_build_shared=no
13643      ;;
13644    esac
13645  fi
13646
13647case $host_os in
13648  # For platforms that do not support PIC, -DPIC is meaningless:
13649  *djgpp*)
13650    lt_prog_compiler_pic=
13651    ;;
13652  *)
13653    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13654    ;;
13655esac
13656
13657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13658printf %s "checking for $compiler option to produce PIC... " >&6; }
13659if test ${lt_cv_prog_compiler_pic+y}
13660then :
13661  printf %s "(cached) " >&6
13662else $as_nop
13663  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13664fi
13665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13666printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13667lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13668
13669#
13670# Check to make sure the PIC flag actually works.
13671#
13672if test -n "$lt_prog_compiler_pic"; then
13673  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13674printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13675if test ${lt_cv_prog_compiler_pic_works+y}
13676then :
13677  printf %s "(cached) " >&6
13678else $as_nop
13679  lt_cv_prog_compiler_pic_works=no
13680   ac_outfile=conftest.$ac_objext
13681   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13682   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
13683   # Insert the option either (1) after the last *FLAGS variable, or
13684   # (2) before a word containing "conftest.", or (3) at the end.
13685   # Note that $ac_compile itself does not contain backslashes and begins
13686   # with a dollar sign (not a hyphen), so the echo should work correctly.
13687   # The option is referenced via a variable to avoid confusing sed.
13688   lt_compile=`echo "$ac_compile" | $SED \
13689   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13690   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13691   -e 's:$: $lt_compiler_flag:'`
13692   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13693   (eval "$lt_compile" 2>conftest.err)
13694   ac_status=$?
13695   cat conftest.err >&5
13696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697   if (exit $ac_status) && test -s "$ac_outfile"; then
13698     # The compiler can only warn and ignore the option if not recognized
13699     # So say no if there are warnings other than the usual output.
13700     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13701     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13702     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13703       lt_cv_prog_compiler_pic_works=yes
13704     fi
13705   fi
13706   $RM conftest*
13707
13708fi
13709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13710printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13711
13712if test yes = "$lt_cv_prog_compiler_pic_works"; then
13713    case $lt_prog_compiler_pic in
13714     "" | " "*) ;;
13715     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13716     esac
13717else
13718    lt_prog_compiler_pic=
13719     lt_prog_compiler_can_build_shared=no
13720fi
13721
13722fi
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734#
13735# Check to make sure the static flag actually works.
13736#
13737wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13739printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13740if test ${lt_cv_prog_compiler_static_works+y}
13741then :
13742  printf %s "(cached) " >&6
13743else $as_nop
13744  lt_cv_prog_compiler_static_works=no
13745   save_LDFLAGS=$LDFLAGS
13746   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13747   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13748   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13749     # The linker can only warn and ignore the option if not recognized
13750     # So say no if there are warnings
13751     if test -s conftest.err; then
13752       # Append any errors to the config.log.
13753       cat conftest.err 1>&5
13754       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13755       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13756       if diff conftest.exp conftest.er2 >/dev/null; then
13757         lt_cv_prog_compiler_static_works=yes
13758       fi
13759     else
13760       lt_cv_prog_compiler_static_works=yes
13761     fi
13762   fi
13763   $RM -r conftest*
13764   LDFLAGS=$save_LDFLAGS
13765
13766fi
13767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13768printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13769
13770if test yes = "$lt_cv_prog_compiler_static_works"; then
13771    :
13772else
13773    lt_prog_compiler_static=
13774fi
13775
13776
13777
13778
13779
13780
13781
13782  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13783printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13784if test ${lt_cv_prog_compiler_c_o+y}
13785then :
13786  printf %s "(cached) " >&6
13787else $as_nop
13788  lt_cv_prog_compiler_c_o=no
13789   $RM -r conftest 2>/dev/null
13790   mkdir conftest
13791   cd conftest
13792   mkdir out
13793   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13794
13795   lt_compiler_flag="-o out/conftest2.$ac_objext"
13796   # Insert the option either (1) after the last *FLAGS variable, or
13797   # (2) before a word containing "conftest.", or (3) at the end.
13798   # Note that $ac_compile itself does not contain backslashes and begins
13799   # with a dollar sign (not a hyphen), so the echo should work correctly.
13800   lt_compile=`echo "$ac_compile" | $SED \
13801   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13802   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13803   -e 's:$: $lt_compiler_flag:'`
13804   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13805   (eval "$lt_compile" 2>out/conftest.err)
13806   ac_status=$?
13807   cat out/conftest.err >&5
13808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13810   then
13811     # The compiler can only warn and ignore the option if not recognized
13812     # So say no if there are warnings
13813     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13814     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13815     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13816       lt_cv_prog_compiler_c_o=yes
13817     fi
13818   fi
13819   chmod u+w . 2>&5
13820   $RM conftest*
13821   # SGI C++ compiler will create directory out/ii_files/ for
13822   # template instantiation
13823   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13824   $RM out/* && rmdir out
13825   cd ..
13826   $RM -r conftest
13827   $RM conftest*
13828
13829fi
13830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13831printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13832
13833
13834
13835
13836
13837
13838  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13839printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13840if test ${lt_cv_prog_compiler_c_o+y}
13841then :
13842  printf %s "(cached) " >&6
13843else $as_nop
13844  lt_cv_prog_compiler_c_o=no
13845   $RM -r conftest 2>/dev/null
13846   mkdir conftest
13847   cd conftest
13848   mkdir out
13849   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13850
13851   lt_compiler_flag="-o out/conftest2.$ac_objext"
13852   # Insert the option either (1) after the last *FLAGS variable, or
13853   # (2) before a word containing "conftest.", or (3) at the end.
13854   # Note that $ac_compile itself does not contain backslashes and begins
13855   # with a dollar sign (not a hyphen), so the echo should work correctly.
13856   lt_compile=`echo "$ac_compile" | $SED \
13857   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13858   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13859   -e 's:$: $lt_compiler_flag:'`
13860   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13861   (eval "$lt_compile" 2>out/conftest.err)
13862   ac_status=$?
13863   cat out/conftest.err >&5
13864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13866   then
13867     # The compiler can only warn and ignore the option if not recognized
13868     # So say no if there are warnings
13869     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13870     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13871     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13872       lt_cv_prog_compiler_c_o=yes
13873     fi
13874   fi
13875   chmod u+w . 2>&5
13876   $RM conftest*
13877   # SGI C++ compiler will create directory out/ii_files/ for
13878   # template instantiation
13879   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13880   $RM out/* && rmdir out
13881   cd ..
13882   $RM -r conftest
13883   $RM conftest*
13884
13885fi
13886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13887printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13888
13889
13890
13891
13892hard_links=nottested
13893if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
13894  # do not overwrite the value of need_locks provided by the user
13895  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13896printf %s "checking if we can lock with hard links... " >&6; }
13897  hard_links=yes
13898  $RM conftest*
13899  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13900  touch conftest.a
13901  ln conftest.a conftest.b 2>&5 || hard_links=no
13902  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13903  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13904printf "%s\n" "$hard_links" >&6; }
13905  if test no = "$hard_links"; then
13906    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
13907printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
13908    need_locks=warn
13909  fi
13910else
13911  need_locks=no
13912fi
13913
13914
13915
13916
13917
13918
13919  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13920printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13921
13922  runpath_var=
13923  allow_undefined_flag=
13924  always_export_symbols=no
13925  archive_cmds=
13926  archive_expsym_cmds=
13927  compiler_needs_object=no
13928  enable_shared_with_static_runtimes=no
13929  export_dynamic_flag_spec=
13930  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13931  hardcode_automatic=no
13932  hardcode_direct=no
13933  hardcode_direct_absolute=no
13934  hardcode_libdir_flag_spec=
13935  hardcode_libdir_separator=
13936  hardcode_minus_L=no
13937  hardcode_shlibpath_var=unsupported
13938  inherit_rpath=no
13939  link_all_deplibs=unknown
13940  module_cmds=
13941  module_expsym_cmds=
13942  old_archive_from_new_cmds=
13943  old_archive_from_expsyms_cmds=
13944  thread_safe_flag_spec=
13945  whole_archive_flag_spec=
13946  # include_expsyms should be a list of space-separated symbols to be *always*
13947  # included in the symbol list
13948  include_expsyms=
13949  # exclude_expsyms can be an extended regexp of symbols to exclude
13950  # it will be wrapped by ' (' and ')$', so one must not match beginning or
13951  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
13952  # as well as any symbol that contains 'd'.
13953  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13954  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13955  # platforms (ab)use it in PIC code, but their linkers get confused if
13956  # the symbol is explicitly referenced.  Since portable code cannot
13957  # rely on this symbol name, it's probably fine to never include it in
13958  # preloaded symbol tables.
13959  # Exclude shared library initialization/finalization symbols.
13960  extract_expsyms_cmds=
13961
13962  case $host_os in
13963  cygwin* | msys* | mingw* | pw32* | cegcc*)
13964    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13965    # When not using gcc, we currently assume that we are using
13966    # Microsoft Visual C++.
13967    if test yes != "$GCC"; then
13968      with_gnu_ld=no
13969    fi
13970    ;;
13971  interix*)
13972    # we just hope/assume this is gcc and not c89 (= MSVC++)
13973    with_gnu_ld=yes
13974    ;;
13975  openbsd* | bitrig*)
13976    with_gnu_ld=no
13977    ;;
13978  linux* | k*bsd*-gnu | gnu*)
13979    link_all_deplibs=no
13980    ;;
13981  esac
13982
13983  ld_shlibs=yes
13984
13985  # On some targets, GNU ld is compatible enough with the native linker
13986  # that we're better off using the native interface for both.
13987  lt_use_gnu_ld_interface=no
13988  if test yes = "$with_gnu_ld"; then
13989    case $host_os in
13990      aix*)
13991	# The AIX port of GNU ld has always aspired to compatibility
13992	# with the native linker.  However, as the warning in the GNU ld
13993	# block says, versions before 2.19.5* couldn't really create working
13994	# shared libraries, regardless of the interface used.
13995	case `$LD -v 2>&1` in
13996	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13997	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13998	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13999	  *)
14000	    lt_use_gnu_ld_interface=yes
14001	    ;;
14002	esac
14003	;;
14004      *)
14005	lt_use_gnu_ld_interface=yes
14006	;;
14007    esac
14008  fi
14009
14010  if test yes = "$lt_use_gnu_ld_interface"; then
14011    # If archive_cmds runs LD, not CC, wlarc should be empty
14012    wlarc='$wl'
14013
14014    # Set some defaults for GNU ld with shared library support. These
14015    # are reset later if shared libraries are not supported. Putting them
14016    # here allows them to be overridden if necessary.
14017    runpath_var=LD_RUN_PATH
14018    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14019    export_dynamic_flag_spec='$wl--export-dynamic'
14020    # ancient GNU ld didn't support --whole-archive et. al.
14021    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14022      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14023    else
14024      whole_archive_flag_spec=
14025    fi
14026    supports_anon_versioning=no
14027    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
14028      *GNU\ gold*) supports_anon_versioning=yes ;;
14029      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14030      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14031      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14032      *\ 2.11.*) ;; # other 2.11 versions
14033      *) supports_anon_versioning=yes ;;
14034    esac
14035
14036    # See if GNU ld supports shared libraries.
14037    case $host_os in
14038    aix[3-9]*)
14039      # On AIX/PPC, the GNU linker is very broken
14040      if test ia64 != "$host_cpu"; then
14041	ld_shlibs=no
14042	cat <<_LT_EOF 1>&2
14043
14044*** Warning: the GNU linker, at least up to release 2.19, is reported
14045*** to be unable to reliably create shared libraries on AIX.
14046*** Therefore, libtool is disabling shared libraries support.  If you
14047*** really care for shared libraries, you may want to install binutils
14048*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14049*** You will then need to restart the configuration process.
14050
14051_LT_EOF
14052      fi
14053      ;;
14054
14055    amigaos*)
14056      case $host_cpu in
14057      powerpc)
14058            # see comment about AmigaOS4 .so support
14059            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14060            archive_expsym_cmds=''
14061        ;;
14062      m68k)
14063            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)'
14064            hardcode_libdir_flag_spec='-L$libdir'
14065            hardcode_minus_L=yes
14066        ;;
14067      esac
14068      ;;
14069
14070    beos*)
14071      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14072	allow_undefined_flag=unsupported
14073	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14074	# support --undefined.  This deserves some investigation.  FIXME
14075	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14076      else
14077	ld_shlibs=no
14078      fi
14079      ;;
14080
14081    cygwin* | msys* | mingw* | pw32* | cegcc*)
14082      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14083      # as there is no search path for DLLs.
14084      hardcode_libdir_flag_spec='-L$libdir'
14085      export_dynamic_flag_spec='$wl--export-all-symbols'
14086      allow_undefined_flag=unsupported
14087      always_export_symbols=no
14088      enable_shared_with_static_runtimes=yes
14089      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'
14090      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14091      file_list_spec='@'
14092
14093      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14094        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14095	# If the export-symbols file already is a .def file, use it as
14096	# is; otherwise, prepend EXPORTS...
14097	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14098          cp $export_symbols $output_objdir/$soname.def;
14099        else
14100          echo EXPORTS > $output_objdir/$soname.def;
14101          cat $export_symbols >> $output_objdir/$soname.def;
14102        fi~
14103        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14104      else
14105	ld_shlibs=no
14106      fi
14107      ;;
14108
14109    haiku*)
14110      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14111      link_all_deplibs=yes
14112      ;;
14113
14114    os2*)
14115      hardcode_libdir_flag_spec='-L$libdir'
14116      hardcode_minus_L=yes
14117      allow_undefined_flag=unsupported
14118      shrext_cmds=.dll
14119      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14120	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14121	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14122	$ECHO EXPORTS >> $output_objdir/$libname.def~
14123	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14124	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14125	emximp -o $lib $output_objdir/$libname.def'
14126      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14127	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14128	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14129	$ECHO EXPORTS >> $output_objdir/$libname.def~
14130	prefix_cmds="$SED"~
14131	if test EXPORTS = "`$SED 1q $export_symbols`"; then
14132	  prefix_cmds="$prefix_cmds -e 1d";
14133	fi~
14134	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14135	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14136	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14137	emximp -o $lib $output_objdir/$libname.def'
14138      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14139      enable_shared_with_static_runtimes=yes
14140      ;;
14141
14142    interix[3-9]*)
14143      hardcode_direct=no
14144      hardcode_shlibpath_var=no
14145      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14146      export_dynamic_flag_spec='$wl-E'
14147      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14148      # Instead, shared libraries are loaded at an image base (0x10000000 by
14149      # default) and relocated if they conflict, which is a slow very memory
14150      # consuming and fragmenting process.  To avoid this, we pick a random,
14151      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14152      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14153      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14154      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'
14155      ;;
14156
14157    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14158      tmp_diet=no
14159      if test linux-dietlibc = "$host_os"; then
14160	case $cc_basename in
14161	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
14162	esac
14163      fi
14164      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14165	 && test no = "$tmp_diet"
14166      then
14167	tmp_addflag=' $pic_flag'
14168	tmp_sharedflag='-shared'
14169	case $cc_basename,$host_cpu in
14170        pgcc*)				# Portland Group C compiler
14171	  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'
14172	  tmp_addflag=' $pic_flag'
14173	  ;;
14174	pgf77* | pgf90* | pgf95* | pgfortran*)
14175					# Portland Group f77 and f90 compilers
14176	  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'
14177	  tmp_addflag=' $pic_flag -Mnomain' ;;
14178	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
14179	  tmp_addflag=' -i_dynamic' ;;
14180	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14181	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14182	ifc* | ifort*)			# Intel Fortran compiler
14183	  tmp_addflag=' -nofor_main' ;;
14184	lf95*)				# Lahey Fortran 8.1
14185	  whole_archive_flag_spec=
14186	  tmp_sharedflag='--shared' ;;
14187        nagfor*)                        # NAGFOR 5.3
14188          tmp_sharedflag='-Wl,-shared' ;;
14189	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14190	  tmp_sharedflag='-qmkshrobj'
14191	  tmp_addflag= ;;
14192	nvcc*)	# Cuda Compiler Driver 2.2
14193	  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'
14194	  compiler_needs_object=yes
14195	  ;;
14196	esac
14197	case `$CC -V 2>&1 | sed 5q` in
14198	*Sun\ C*)			# Sun C 5.9
14199	  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'
14200	  compiler_needs_object=yes
14201	  tmp_sharedflag='-G' ;;
14202	*Sun\ F*)			# Sun Fortran 8.3
14203	  tmp_sharedflag='-G' ;;
14204	esac
14205	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14206
14207        if test yes = "$supports_anon_versioning"; then
14208          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14209            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14210            echo "local: *; };" >> $output_objdir/$libname.ver~
14211            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14212        fi
14213
14214	case $cc_basename in
14215	tcc*)
14216	  export_dynamic_flag_spec='-rdynamic'
14217	  ;;
14218	xlf* | bgf* | bgxlf* | mpixlf*)
14219	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14220	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14221	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14222	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
14223	  if test yes = "$supports_anon_versioning"; then
14224	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14225              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14226              echo "local: *; };" >> $output_objdir/$libname.ver~
14227              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14228	  fi
14229	  ;;
14230	esac
14231      else
14232        ld_shlibs=no
14233      fi
14234      ;;
14235
14236    netbsd* | netbsdelf*-gnu)
14237      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14238	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14239	wlarc=
14240      else
14241	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14242	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14243      fi
14244      ;;
14245
14246    solaris*)
14247      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14248	ld_shlibs=no
14249	cat <<_LT_EOF 1>&2
14250
14251*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14252*** create shared libraries on Solaris systems.  Therefore, libtool
14253*** is disabling shared libraries support.  We urge you to upgrade GNU
14254*** binutils to release 2.9.1 or newer.  Another option is to modify
14255*** your PATH or compiler configuration so that the native linker is
14256*** used, and then restart.
14257
14258_LT_EOF
14259      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14260	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14261	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14262      else
14263	ld_shlibs=no
14264      fi
14265      ;;
14266
14267    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14268      case `$LD -v 2>&1` in
14269        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14270	ld_shlibs=no
14271	cat <<_LT_EOF 1>&2
14272
14273*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
14274*** reliably create shared libraries on SCO systems.  Therefore, libtool
14275*** is disabling shared libraries support.  We urge you to upgrade GNU
14276*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14277*** your PATH or compiler configuration so that the native linker is
14278*** used, and then restart.
14279
14280_LT_EOF
14281	;;
14282	*)
14283	  # For security reasons, it is highly recommended that you always
14284	  # use absolute paths for naming shared libraries, and exclude the
14285	  # DT_RUNPATH tag from executables and libraries.  But doing so
14286	  # requires that you compile everything twice, which is a pain.
14287	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14288	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14289	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14290	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14291	  else
14292	    ld_shlibs=no
14293	  fi
14294	;;
14295      esac
14296      ;;
14297
14298    sunos4*)
14299      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14300      wlarc=
14301      hardcode_direct=yes
14302      hardcode_shlibpath_var=no
14303      ;;
14304
14305    *)
14306      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14307	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14308	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14309      else
14310	ld_shlibs=no
14311      fi
14312      ;;
14313    esac
14314
14315    if test no = "$ld_shlibs"; then
14316      runpath_var=
14317      hardcode_libdir_flag_spec=
14318      export_dynamic_flag_spec=
14319      whole_archive_flag_spec=
14320    fi
14321  else
14322    # PORTME fill in a description of your system's linker (not GNU ld)
14323    case $host_os in
14324    aix3*)
14325      allow_undefined_flag=unsupported
14326      always_export_symbols=yes
14327      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'
14328      # Note: this linker hardcodes the directories in LIBPATH if there
14329      # are no directories specified by -L.
14330      hardcode_minus_L=yes
14331      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
14332	# Neither direct hardcoding nor static linking is supported with a
14333	# broken collect2.
14334	hardcode_direct=unsupported
14335      fi
14336      ;;
14337
14338    aix[4-9]*)
14339      if test ia64 = "$host_cpu"; then
14340	# On IA64, the linker does run time linking by default, so we don't
14341	# have to do anything special.
14342	aix_use_runtimelinking=no
14343	exp_sym_flag='-Bexport'
14344	no_entry_flag=
14345      else
14346	# If we're using GNU nm, then we don't want the "-C" option.
14347	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
14348	# Without the "-l" option, or with the "-B" option, AIX nm treats
14349	# weak defined symbols like other global defined symbols, whereas
14350	# GNU nm marks them as "W".
14351	# While the 'weak' keyword is ignored in the Export File, we need
14352	# it in the Import File for the 'aix-soname' feature, so we have
14353	# to replace the "-B" option with "-P" for AIX nm.
14354	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14355	  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'
14356	else
14357	  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'
14358	fi
14359	aix_use_runtimelinking=no
14360
14361	# Test if we are trying to use run time linking or normal
14362	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14363	# have runtime linking enabled, and use it for executables.
14364	# For shared libraries, we enable/disable runtime linking
14365	# depending on the kind of the shared library created -
14366	# when "with_aix_soname,aix_use_runtimelinking" is:
14367	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
14368	# "aix,yes"  lib.so          shared, rtl:yes, for executables
14369	#            lib.a           static archive
14370	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
14371	#            lib.a(lib.so.V) shared, rtl:no,  for executables
14372	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14373	#            lib.a(lib.so.V) shared, rtl:no
14374	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
14375	#            lib.a           static archive
14376	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14377	  for ld_flag in $LDFLAGS; do
14378	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
14379	    aix_use_runtimelinking=yes
14380	    break
14381	  fi
14382	  done
14383	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14384	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
14385	    # so we don't have lib.a shared libs to link our executables.
14386	    # We have to force runtime linking in this case.
14387	    aix_use_runtimelinking=yes
14388	    LDFLAGS="$LDFLAGS -Wl,-brtl"
14389	  fi
14390	  ;;
14391	esac
14392
14393	exp_sym_flag='-bexport'
14394	no_entry_flag='-bnoentry'
14395      fi
14396
14397      # When large executables or shared objects are built, AIX ld can
14398      # have problems creating the table of contents.  If linking a library
14399      # or program results in "error TOC overflow" add -mminimal-toc to
14400      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14401      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14402
14403      archive_cmds=''
14404      hardcode_direct=yes
14405      hardcode_direct_absolute=yes
14406      hardcode_libdir_separator=':'
14407      link_all_deplibs=yes
14408      file_list_spec='$wl-f,'
14409      case $with_aix_soname,$aix_use_runtimelinking in
14410      aix,*) ;; # traditional, no import file
14411      svr4,* | *,yes) # use import file
14412	# The Import File defines what to hardcode.
14413	hardcode_direct=no
14414	hardcode_direct_absolute=no
14415	;;
14416      esac
14417
14418      if test yes = "$GCC"; then
14419	case $host_os in aix4.[012]|aix4.[012].*)
14420	# We only want to do this on AIX 4.2 and lower, the check
14421	# below for broken collect2 doesn't work under 4.3+
14422	  collect2name=`$CC -print-prog-name=collect2`
14423	  if test -f "$collect2name" &&
14424	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14425	  then
14426	  # We have reworked collect2
14427	  :
14428	  else
14429	  # We have old collect2
14430	  hardcode_direct=unsupported
14431	  # It fails to find uninstalled libraries when the uninstalled
14432	  # path is not listed in the libpath.  Setting hardcode_minus_L
14433	  # to unsupported forces relinking
14434	  hardcode_minus_L=yes
14435	  hardcode_libdir_flag_spec='-L$libdir'
14436	  hardcode_libdir_separator=
14437	  fi
14438	  ;;
14439	esac
14440	shared_flag='-shared'
14441	if test yes = "$aix_use_runtimelinking"; then
14442	  shared_flag="$shared_flag "'$wl-G'
14443	fi
14444	# Need to ensure runtime linking is disabled for the traditional
14445	# shared library, or the linker may eventually find shared libraries
14446	# /with/ Import File - we do not want to mix them.
14447	shared_flag_aix='-shared'
14448	shared_flag_svr4='-shared $wl-G'
14449      else
14450	# not using gcc
14451	if test ia64 = "$host_cpu"; then
14452	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14453	# chokes on -Wl,-G. The following line is correct:
14454	  shared_flag='-G'
14455	else
14456	  if test yes = "$aix_use_runtimelinking"; then
14457	    shared_flag='$wl-G'
14458	  else
14459	    shared_flag='$wl-bM:SRE'
14460	  fi
14461	  shared_flag_aix='$wl-bM:SRE'
14462	  shared_flag_svr4='$wl-G'
14463	fi
14464      fi
14465
14466      export_dynamic_flag_spec='$wl-bexpall'
14467      # It seems that -bexpall does not export symbols beginning with
14468      # underscore (_), so it is better to generate a list of symbols to export.
14469      always_export_symbols=yes
14470      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14471	# Warning - without using the other runtime loading flags (-brtl),
14472	# -berok will link without error, but may produce a broken library.
14473	allow_undefined_flag='-berok'
14474        # Determine the default libpath from the value encoded in an
14475        # empty executable.
14476        if test set = "${lt_cv_aix_libpath+set}"; then
14477  aix_libpath=$lt_cv_aix_libpath
14478else
14479  if test ${lt_cv_aix_libpath_+y}
14480then :
14481  printf %s "(cached) " >&6
14482else $as_nop
14483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14484/* end confdefs.h.  */
14485
14486int
14487main (void)
14488{
14489
14490  ;
14491  return 0;
14492}
14493_ACEOF
14494if ac_fn_c_try_link "$LINENO"
14495then :
14496
14497  lt_aix_libpath_sed='
14498      /Import File Strings/,/^$/ {
14499	  /^0/ {
14500	      s/^0  *\([^ ]*\) *$/\1/
14501	      p
14502	  }
14503      }'
14504  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14505  # Check for a 64-bit object if we didn't find anything.
14506  if test -z "$lt_cv_aix_libpath_"; then
14507    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14508  fi
14509fi
14510rm -f core conftest.err conftest.$ac_objext conftest.beam \
14511    conftest$ac_exeext conftest.$ac_ext
14512  if test -z "$lt_cv_aix_libpath_"; then
14513    lt_cv_aix_libpath_=/usr/lib:/lib
14514  fi
14515
14516fi
14517
14518  aix_libpath=$lt_cv_aix_libpath_
14519fi
14520
14521        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14522        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
14523      else
14524	if test ia64 = "$host_cpu"; then
14525	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
14526	  allow_undefined_flag="-z nodefs"
14527	  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"
14528	else
14529	 # Determine the default libpath from the value encoded in an
14530	 # empty executable.
14531	 if test set = "${lt_cv_aix_libpath+set}"; then
14532  aix_libpath=$lt_cv_aix_libpath
14533else
14534  if test ${lt_cv_aix_libpath_+y}
14535then :
14536  printf %s "(cached) " >&6
14537else $as_nop
14538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14539/* end confdefs.h.  */
14540
14541int
14542main (void)
14543{
14544
14545  ;
14546  return 0;
14547}
14548_ACEOF
14549if ac_fn_c_try_link "$LINENO"
14550then :
14551
14552  lt_aix_libpath_sed='
14553      /Import File Strings/,/^$/ {
14554	  /^0/ {
14555	      s/^0  *\([^ ]*\) *$/\1/
14556	      p
14557	  }
14558      }'
14559  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14560  # Check for a 64-bit object if we didn't find anything.
14561  if test -z "$lt_cv_aix_libpath_"; then
14562    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14563  fi
14564fi
14565rm -f core conftest.err conftest.$ac_objext conftest.beam \
14566    conftest$ac_exeext conftest.$ac_ext
14567  if test -z "$lt_cv_aix_libpath_"; then
14568    lt_cv_aix_libpath_=/usr/lib:/lib
14569  fi
14570
14571fi
14572
14573  aix_libpath=$lt_cv_aix_libpath_
14574fi
14575
14576	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14577	  # Warning - without using the other run time loading flags,
14578	  # -berok will link without error, but may produce a broken library.
14579	  no_undefined_flag=' $wl-bernotok'
14580	  allow_undefined_flag=' $wl-berok'
14581	  if test yes = "$with_gnu_ld"; then
14582	    # We only use this code for GNU lds that support --whole-archive.
14583	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
14584	  else
14585	    # Exported symbols can be pulled into shared objects from archives
14586	    whole_archive_flag_spec='$convenience'
14587	  fi
14588	  archive_cmds_need_lc=yes
14589	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14590	  # -brtl affects multiple linker settings, -berok does not and is overridden later
14591	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14592	  if test svr4 != "$with_aix_soname"; then
14593	    # This is similar to how AIX traditionally builds its shared libraries.
14594	    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'
14595	  fi
14596	  if test aix != "$with_aix_soname"; then
14597	    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'
14598	  else
14599	    # used by -dlpreopen to get the symbols
14600	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14601	  fi
14602	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
14603	fi
14604      fi
14605      ;;
14606
14607    amigaos*)
14608      case $host_cpu in
14609      powerpc)
14610            # see comment about AmigaOS4 .so support
14611            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14612            archive_expsym_cmds=''
14613        ;;
14614      m68k)
14615            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)'
14616            hardcode_libdir_flag_spec='-L$libdir'
14617            hardcode_minus_L=yes
14618        ;;
14619      esac
14620      ;;
14621
14622    bsdi[45]*)
14623      export_dynamic_flag_spec=-rdynamic
14624      ;;
14625
14626    cygwin* | msys* | mingw* | pw32* | cegcc*)
14627      # When not using gcc, we currently assume that we are using
14628      # Microsoft Visual C++.
14629      # hardcode_libdir_flag_spec is actually meaningless, as there is
14630      # no search path for DLLs.
14631      case $cc_basename in
14632      cl*)
14633	# Native MSVC
14634	hardcode_libdir_flag_spec=' '
14635	allow_undefined_flag=unsupported
14636	always_export_symbols=yes
14637	file_list_spec='@'
14638	# Tell ltmain to make .lib files, not .a files.
14639	libext=lib
14640	# Tell ltmain to make .dll files, not .so files.
14641	shrext_cmds=.dll
14642	# FIXME: Setting linknames here is a bad hack.
14643	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14644	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14645            cp "$export_symbols" "$output_objdir/$soname.def";
14646            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14647          else
14648            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14649          fi~
14650          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14651          linknames='
14652	# The linker will not automatically build a static lib if we build a DLL.
14653	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14654	enable_shared_with_static_runtimes=yes
14655	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14656	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14657	# Don't use ranlib
14658	old_postinstall_cmds='chmod 644 $oldlib'
14659	postlink_cmds='lt_outputfile="@OUTPUT@"~
14660          lt_tool_outputfile="@TOOL_OUTPUT@"~
14661          case $lt_outputfile in
14662            *.exe|*.EXE) ;;
14663            *)
14664              lt_outputfile=$lt_outputfile.exe
14665              lt_tool_outputfile=$lt_tool_outputfile.exe
14666              ;;
14667          esac~
14668          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14669            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14670            $RM "$lt_outputfile.manifest";
14671          fi'
14672	;;
14673      *)
14674	# Assume MSVC wrapper
14675	hardcode_libdir_flag_spec=' '
14676	allow_undefined_flag=unsupported
14677	# Tell ltmain to make .lib files, not .a files.
14678	libext=lib
14679	# Tell ltmain to make .dll files, not .so files.
14680	shrext_cmds=.dll
14681	# FIXME: Setting linknames here is a bad hack.
14682	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14683	# The linker will automatically build a .lib file if we build a DLL.
14684	old_archive_from_new_cmds='true'
14685	# FIXME: Should let the user specify the lib program.
14686	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14687	enable_shared_with_static_runtimes=yes
14688	;;
14689      esac
14690      ;;
14691
14692    darwin* | rhapsody*)
14693
14694
14695  archive_cmds_need_lc=no
14696  hardcode_direct=no
14697  hardcode_automatic=yes
14698  hardcode_shlibpath_var=unsupported
14699  if test yes = "$lt_cv_ld_force_load"; then
14700    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\"`'
14701
14702  else
14703    whole_archive_flag_spec=''
14704  fi
14705  link_all_deplibs=yes
14706  allow_undefined_flag=$_lt_dar_allow_undefined
14707  case $cc_basename in
14708     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14709     *) _lt_dar_can_shared=$GCC ;;
14710  esac
14711  if test yes = "$_lt_dar_can_shared"; then
14712    output_verbose_link_cmd=func_echo_all
14713    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14714    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14715    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"
14716    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"
14717
14718  else
14719  ld_shlibs=no
14720  fi
14721
14722      ;;
14723
14724    dgux*)
14725      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14726      hardcode_libdir_flag_spec='-L$libdir'
14727      hardcode_shlibpath_var=no
14728      ;;
14729
14730    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14731    # support.  Future versions do this automatically, but an explicit c++rt0.o
14732    # does not break anything, and helps significantly (at the cost of a little
14733    # extra space).
14734    freebsd2.2*)
14735      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14736      hardcode_libdir_flag_spec='-R$libdir'
14737      hardcode_direct=yes
14738      hardcode_shlibpath_var=no
14739      ;;
14740
14741    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14742    freebsd2.*)
14743      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14744      hardcode_direct=yes
14745      hardcode_minus_L=yes
14746      hardcode_shlibpath_var=no
14747      ;;
14748
14749    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14750    freebsd* | dragonfly*)
14751      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14752      hardcode_libdir_flag_spec='-R$libdir'
14753      hardcode_direct=yes
14754      hardcode_shlibpath_var=no
14755      ;;
14756
14757    hpux9*)
14758      if test yes = "$GCC"; then
14759	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'
14760      else
14761	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'
14762      fi
14763      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14764      hardcode_libdir_separator=:
14765      hardcode_direct=yes
14766
14767      # hardcode_minus_L: Not really in the search PATH,
14768      # but as the default location of the library.
14769      hardcode_minus_L=yes
14770      export_dynamic_flag_spec='$wl-E'
14771      ;;
14772
14773    hpux10*)
14774      if test yes,no = "$GCC,$with_gnu_ld"; then
14775	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14776      else
14777	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14778      fi
14779      if test no = "$with_gnu_ld"; then
14780	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14781	hardcode_libdir_separator=:
14782	hardcode_direct=yes
14783	hardcode_direct_absolute=yes
14784	export_dynamic_flag_spec='$wl-E'
14785	# hardcode_minus_L: Not really in the search PATH,
14786	# but as the default location of the library.
14787	hardcode_minus_L=yes
14788      fi
14789      ;;
14790
14791    hpux11*)
14792      if test yes,no = "$GCC,$with_gnu_ld"; then
14793	case $host_cpu in
14794	hppa*64*)
14795	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14796	  ;;
14797	ia64*)
14798	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14799	  ;;
14800	*)
14801	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14802	  ;;
14803	esac
14804      else
14805	case $host_cpu in
14806	hppa*64*)
14807	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14808	  ;;
14809	ia64*)
14810	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14811	  ;;
14812	*)
14813
14814	  # Older versions of the 11.00 compiler do not understand -b yet
14815	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14816	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14817printf %s "checking if $CC understands -b... " >&6; }
14818if test ${lt_cv_prog_compiler__b+y}
14819then :
14820  printf %s "(cached) " >&6
14821else $as_nop
14822  lt_cv_prog_compiler__b=no
14823   save_LDFLAGS=$LDFLAGS
14824   LDFLAGS="$LDFLAGS -b"
14825   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14826   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14827     # The linker can only warn and ignore the option if not recognized
14828     # So say no if there are warnings
14829     if test -s conftest.err; then
14830       # Append any errors to the config.log.
14831       cat conftest.err 1>&5
14832       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14833       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14834       if diff conftest.exp conftest.er2 >/dev/null; then
14835         lt_cv_prog_compiler__b=yes
14836       fi
14837     else
14838       lt_cv_prog_compiler__b=yes
14839     fi
14840   fi
14841   $RM -r conftest*
14842   LDFLAGS=$save_LDFLAGS
14843
14844fi
14845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14846printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
14847
14848if test yes = "$lt_cv_prog_compiler__b"; then
14849    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14850else
14851    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14852fi
14853
14854	  ;;
14855	esac
14856      fi
14857      if test no = "$with_gnu_ld"; then
14858	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14859	hardcode_libdir_separator=:
14860
14861	case $host_cpu in
14862	hppa*64*|ia64*)
14863	  hardcode_direct=no
14864	  hardcode_shlibpath_var=no
14865	  ;;
14866	*)
14867	  hardcode_direct=yes
14868	  hardcode_direct_absolute=yes
14869	  export_dynamic_flag_spec='$wl-E'
14870
14871	  # hardcode_minus_L: Not really in the search PATH,
14872	  # but as the default location of the library.
14873	  hardcode_minus_L=yes
14874	  ;;
14875	esac
14876      fi
14877      ;;
14878
14879    irix5* | irix6* | nonstopux*)
14880      if test yes = "$GCC"; then
14881	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'
14882	# Try to use the -exported_symbol ld option, if it does not
14883	# work, assume that -exports_file does not work either and
14884	# implicitly export all symbols.
14885	# This should be the same for all languages, so no per-tag cache variable.
14886	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14887printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14888if test ${lt_cv_irix_exported_symbol+y}
14889then :
14890  printf %s "(cached) " >&6
14891else $as_nop
14892  save_LDFLAGS=$LDFLAGS
14893	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
14894	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14895/* end confdefs.h.  */
14896int foo (void) { return 0; }
14897_ACEOF
14898if ac_fn_c_try_link "$LINENO"
14899then :
14900  lt_cv_irix_exported_symbol=yes
14901else $as_nop
14902  lt_cv_irix_exported_symbol=no
14903fi
14904rm -f core conftest.err conftest.$ac_objext conftest.beam \
14905    conftest$ac_exeext conftest.$ac_ext
14906           LDFLAGS=$save_LDFLAGS
14907fi
14908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14909printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
14910	if test yes = "$lt_cv_irix_exported_symbol"; then
14911          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'
14912	fi
14913	link_all_deplibs=no
14914      else
14915	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'
14916	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'
14917      fi
14918      archive_cmds_need_lc='no'
14919      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14920      hardcode_libdir_separator=:
14921      inherit_rpath=yes
14922      link_all_deplibs=yes
14923      ;;
14924
14925    linux*)
14926      case $cc_basename in
14927      tcc*)
14928	# Fabrice Bellard et al's Tiny C Compiler
14929	ld_shlibs=yes
14930	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14931	;;
14932      esac
14933      ;;
14934
14935    netbsd* | netbsdelf*-gnu)
14936      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14937	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14938      else
14939	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14940      fi
14941      hardcode_libdir_flag_spec='-R$libdir'
14942      hardcode_direct=yes
14943      hardcode_shlibpath_var=no
14944      ;;
14945
14946    newsos6)
14947      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14948      hardcode_direct=yes
14949      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14950      hardcode_libdir_separator=:
14951      hardcode_shlibpath_var=no
14952      ;;
14953
14954    *nto* | *qnx*)
14955      ;;
14956
14957    openbsd* | bitrig*)
14958      if test -f /usr/libexec/ld.so; then
14959	hardcode_direct=yes
14960	hardcode_shlibpath_var=no
14961	hardcode_direct_absolute=yes
14962	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14963	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14964	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
14965	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14966	  export_dynamic_flag_spec='$wl-E'
14967	else
14968	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14969	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14970	fi
14971      else
14972	ld_shlibs=no
14973      fi
14974      ;;
14975
14976    os2*)
14977      hardcode_libdir_flag_spec='-L$libdir'
14978      hardcode_minus_L=yes
14979      allow_undefined_flag=unsupported
14980      shrext_cmds=.dll
14981      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14982	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14983	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14984	$ECHO EXPORTS >> $output_objdir/$libname.def~
14985	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14986	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14987	emximp -o $lib $output_objdir/$libname.def'
14988      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14989	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14990	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14991	$ECHO EXPORTS >> $output_objdir/$libname.def~
14992	prefix_cmds="$SED"~
14993	if test EXPORTS = "`$SED 1q $export_symbols`"; then
14994	  prefix_cmds="$prefix_cmds -e 1d";
14995	fi~
14996	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14997	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14998	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14999	emximp -o $lib $output_objdir/$libname.def'
15000      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15001      enable_shared_with_static_runtimes=yes
15002      ;;
15003
15004    osf3*)
15005      if test yes = "$GCC"; then
15006	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
15007	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'
15008      else
15009	allow_undefined_flag=' -expect_unresolved \*'
15010	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'
15011      fi
15012      archive_cmds_need_lc='no'
15013      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15014      hardcode_libdir_separator=:
15015      ;;
15016
15017    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15018      if test yes = "$GCC"; then
15019	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
15020	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'
15021	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15022      else
15023	allow_undefined_flag=' -expect_unresolved \*'
15024	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'
15025	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~
15026          $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'
15027
15028	# Both c and cxx compiler support -rpath directly
15029	hardcode_libdir_flag_spec='-rpath $libdir'
15030      fi
15031      archive_cmds_need_lc='no'
15032      hardcode_libdir_separator=:
15033      ;;
15034
15035    solaris*)
15036      no_undefined_flag=' -z defs'
15037      if test yes = "$GCC"; then
15038	wlarc='$wl'
15039	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
15040	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15041          $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'
15042      else
15043	case `$CC -V 2>&1` in
15044	*"Compilers 5.0"*)
15045	  wlarc=''
15046	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
15047	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15048            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15049	  ;;
15050	*)
15051	  wlarc='$wl'
15052	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15053	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15054            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15055	  ;;
15056	esac
15057      fi
15058      hardcode_libdir_flag_spec='-R$libdir'
15059      hardcode_shlibpath_var=no
15060      case $host_os in
15061      solaris2.[0-5] | solaris2.[0-5].*) ;;
15062      *)
15063	# The compiler driver will combine and reorder linker options,
15064	# but understands '-z linker_flag'.  GCC discards it without '$wl',
15065	# but is careful enough not to reorder.
15066	# Supported since Solaris 2.6 (maybe 2.5.1?)
15067	if test yes = "$GCC"; then
15068	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15069	else
15070	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15071	fi
15072	;;
15073      esac
15074      link_all_deplibs=yes
15075      ;;
15076
15077    sunos4*)
15078      if test sequent = "$host_vendor"; then
15079	# Use $CC to link under sequent, because it throws in some extra .o
15080	# files that make .init and .fini sections work.
15081	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15082      else
15083	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15084      fi
15085      hardcode_libdir_flag_spec='-L$libdir'
15086      hardcode_direct=yes
15087      hardcode_minus_L=yes
15088      hardcode_shlibpath_var=no
15089      ;;
15090
15091    sysv4)
15092      case $host_vendor in
15093	sni)
15094	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15095	  hardcode_direct=yes # is this really true???
15096	;;
15097	siemens)
15098	  ## LD is ld it makes a PLAMLIB
15099	  ## CC just makes a GrossModule.
15100	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15101	  reload_cmds='$CC -r -o $output$reload_objs'
15102	  hardcode_direct=no
15103        ;;
15104	motorola)
15105	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15106	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15107	;;
15108      esac
15109      runpath_var='LD_RUN_PATH'
15110      hardcode_shlibpath_var=no
15111      ;;
15112
15113    sysv4.3*)
15114      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15115      hardcode_shlibpath_var=no
15116      export_dynamic_flag_spec='-Bexport'
15117      ;;
15118
15119    sysv4*MP*)
15120      if test -d /usr/nec; then
15121	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15122	hardcode_shlibpath_var=no
15123	runpath_var=LD_RUN_PATH
15124	hardcode_runpath_var=yes
15125	ld_shlibs=yes
15126      fi
15127      ;;
15128
15129    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15130      no_undefined_flag='$wl-z,text'
15131      archive_cmds_need_lc=no
15132      hardcode_shlibpath_var=no
15133      runpath_var='LD_RUN_PATH'
15134
15135      if test yes = "$GCC"; then
15136	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15137	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15138      else
15139	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15140	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15141      fi
15142      ;;
15143
15144    sysv5* | sco3.2v5* | sco5v6*)
15145      # Note: We CANNOT use -z defs as we might desire, because we do not
15146      # link with -lc, and that would cause any symbols used from libc to
15147      # always be unresolved, which means just about no library would
15148      # ever link correctly.  If we're not using GNU ld we use -z text
15149      # though, which does catch some bad symbols but isn't as heavy-handed
15150      # as -z defs.
15151      no_undefined_flag='$wl-z,text'
15152      allow_undefined_flag='$wl-z,nodefs'
15153      archive_cmds_need_lc=no
15154      hardcode_shlibpath_var=no
15155      hardcode_libdir_flag_spec='$wl-R,$libdir'
15156      hardcode_libdir_separator=':'
15157      link_all_deplibs=yes
15158      export_dynamic_flag_spec='$wl-Bexport'
15159      runpath_var='LD_RUN_PATH'
15160
15161      if test yes = "$GCC"; then
15162	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15163	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15164      else
15165	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15166	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15167      fi
15168      ;;
15169
15170    uts4*)
15171      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15172      hardcode_libdir_flag_spec='-L$libdir'
15173      hardcode_shlibpath_var=no
15174      ;;
15175
15176    *)
15177      ld_shlibs=no
15178      ;;
15179    esac
15180
15181    if test sni = "$host_vendor"; then
15182      case $host in
15183      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15184	export_dynamic_flag_spec='$wl-Blargedynsym'
15185	;;
15186      esac
15187    fi
15188  fi
15189
15190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15191printf "%s\n" "$ld_shlibs" >&6; }
15192test no = "$ld_shlibs" && can_build_shared=no
15193
15194with_gnu_ld=$with_gnu_ld
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210#
15211# Do we need to explicitly link libc?
15212#
15213case "x$archive_cmds_need_lc" in
15214x|xyes)
15215  # Assume -lc should be added
15216  archive_cmds_need_lc=yes
15217
15218  if test yes,yes = "$GCC,$enable_shared"; then
15219    case $archive_cmds in
15220    *'~'*)
15221      # FIXME: we may have to deal with multi-command sequences.
15222      ;;
15223    '$CC '*)
15224      # Test whether the compiler implicitly links with -lc since on some
15225      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15226      # to ld, don't add -lc before -lgcc.
15227      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15228printf %s "checking whether -lc should be explicitly linked in... " >&6; }
15229if test ${lt_cv_archive_cmds_need_lc+y}
15230then :
15231  printf %s "(cached) " >&6
15232else $as_nop
15233  $RM conftest*
15234	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15235
15236	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15237  (eval $ac_compile) 2>&5
15238  ac_status=$?
15239  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15240  test $ac_status = 0; } 2>conftest.err; then
15241	  soname=conftest
15242	  lib=conftest
15243	  libobjs=conftest.$ac_objext
15244	  deplibs=
15245	  wl=$lt_prog_compiler_wl
15246	  pic_flag=$lt_prog_compiler_pic
15247	  compiler_flags=-v
15248	  linker_flags=-v
15249	  verstring=
15250	  output_objdir=.
15251	  libname=conftest
15252	  lt_save_allow_undefined_flag=$allow_undefined_flag
15253	  allow_undefined_flag=
15254	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15255  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15256  ac_status=$?
15257  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15258  test $ac_status = 0; }
15259	  then
15260	    lt_cv_archive_cmds_need_lc=no
15261	  else
15262	    lt_cv_archive_cmds_need_lc=yes
15263	  fi
15264	  allow_undefined_flag=$lt_save_allow_undefined_flag
15265	else
15266	  cat conftest.err 1>&5
15267	fi
15268	$RM conftest*
15269
15270fi
15271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15272printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
15273      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15274      ;;
15275    esac
15276  fi
15277  ;;
15278esac
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15432printf %s "checking dynamic linker characteristics... " >&6; }
15433
15434if test yes = "$GCC"; then
15435  case $host_os in
15436    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
15437    *) lt_awk_arg='/^libraries:/' ;;
15438  esac
15439  case $host_os in
15440    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
15441    *) lt_sed_strip_eq='s|=/|/|g' ;;
15442  esac
15443  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15444  case $lt_search_path_spec in
15445  *\;*)
15446    # if the path contains ";" then we assume it to be the separator
15447    # otherwise default to the standard path separator (i.e. ":") - it is
15448    # assumed that no part of a normal pathname contains ";" but that should
15449    # okay in the real world where ";" in dirpaths is itself problematic.
15450    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15451    ;;
15452  *)
15453    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15454    ;;
15455  esac
15456  # Ok, now we have the path, separated by spaces, we can step through it
15457  # and add multilib dir if necessary...
15458  lt_tmp_lt_search_path_spec=
15459  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15460  # ...but if some path component already ends with the multilib dir we assume
15461  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
15462  case "$lt_multi_os_dir; $lt_search_path_spec " in
15463  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
15464    lt_multi_os_dir=
15465    ;;
15466  esac
15467  for lt_sys_path in $lt_search_path_spec; do
15468    if test -d "$lt_sys_path$lt_multi_os_dir"; then
15469      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
15470    elif test -n "$lt_multi_os_dir"; then
15471      test -d "$lt_sys_path" && \
15472	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15473    fi
15474  done
15475  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15476BEGIN {RS = " "; FS = "/|\n";} {
15477  lt_foo = "";
15478  lt_count = 0;
15479  for (lt_i = NF; lt_i > 0; lt_i--) {
15480    if ($lt_i != "" && $lt_i != ".") {
15481      if ($lt_i == "..") {
15482        lt_count++;
15483      } else {
15484        if (lt_count == 0) {
15485          lt_foo = "/" $lt_i lt_foo;
15486        } else {
15487          lt_count--;
15488        }
15489      }
15490    }
15491  }
15492  if (lt_foo != "") { lt_freq[lt_foo]++; }
15493  if (lt_freq[lt_foo] == 1) { print lt_foo; }
15494}'`
15495  # AWK program above erroneously prepends '/' to C:/dos/paths
15496  # for these hosts.
15497  case $host_os in
15498    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15499      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
15500  esac
15501  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15502else
15503  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15504fi
15505library_names_spec=
15506libname_spec='lib$name'
15507soname_spec=
15508shrext_cmds=.so
15509postinstall_cmds=
15510postuninstall_cmds=
15511finish_cmds=
15512finish_eval=
15513shlibpath_var=
15514shlibpath_overrides_runpath=unknown
15515version_type=none
15516dynamic_linker="$host_os ld.so"
15517sys_lib_dlsearch_path_spec="/lib /usr/lib"
15518need_lib_prefix=unknown
15519hardcode_into_libs=no
15520
15521# when you set need_version to no, make sure it does not cause -set_version
15522# flags to be left without arguments
15523need_version=unknown
15524
15525
15526
15527case $host_os in
15528aix3*)
15529  version_type=linux # correct to gnu/linux during the next big refactor
15530  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15531  shlibpath_var=LIBPATH
15532
15533  # AIX 3 has no versioning support, so we append a major version to the name.
15534  soname_spec='$libname$release$shared_ext$major'
15535  ;;
15536
15537aix[4-9]*)
15538  version_type=linux # correct to gnu/linux during the next big refactor
15539  need_lib_prefix=no
15540  need_version=no
15541  hardcode_into_libs=yes
15542  if test ia64 = "$host_cpu"; then
15543    # AIX 5 supports IA64
15544    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15545    shlibpath_var=LD_LIBRARY_PATH
15546  else
15547    # With GCC up to 2.95.x, collect2 would create an import file
15548    # for dependence libraries.  The import file would start with
15549    # the line '#! .'.  This would cause the generated library to
15550    # depend on '.', always an invalid library.  This was fixed in
15551    # development snapshots of GCC prior to 3.0.
15552    case $host_os in
15553      aix4 | aix4.[01] | aix4.[01].*)
15554      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15555	   echo ' yes '
15556	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15557	:
15558      else
15559	can_build_shared=no
15560      fi
15561      ;;
15562    esac
15563    # Using Import Files as archive members, it is possible to support
15564    # filename-based versioning of shared library archives on AIX. While
15565    # this would work for both with and without runtime linking, it will
15566    # prevent static linking of such archives. So we do filename-based
15567    # shared library versioning with .so extension only, which is used
15568    # when both runtime linking and shared linking is enabled.
15569    # Unfortunately, runtime linking may impact performance, so we do
15570    # not want this to be the default eventually. Also, we use the
15571    # versioned .so libs for executables only if there is the -brtl
15572    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15573    # To allow for filename-based versioning support, we need to create
15574    # libNAME.so.V as an archive file, containing:
15575    # *) an Import File, referring to the versioned filename of the
15576    #    archive as well as the shared archive member, telling the
15577    #    bitwidth (32 or 64) of that shared object, and providing the
15578    #    list of exported symbols of that shared object, eventually
15579    #    decorated with the 'weak' keyword
15580    # *) the shared object with the F_LOADONLY flag set, to really avoid
15581    #    it being seen by the linker.
15582    # At run time we better use the real file rather than another symlink,
15583    # but for link time we create the symlink libNAME.so -> libNAME.so.V
15584
15585    case $with_aix_soname,$aix_use_runtimelinking in
15586    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15587    # soname into executable. Probably we can add versioning support to
15588    # collect2, so additional links can be useful in future.
15589    aix,yes) # traditional libtool
15590      dynamic_linker='AIX unversionable lib.so'
15591      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15592      # instead of lib<name>.a to let people know that these are not
15593      # typical AIX shared libraries.
15594      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15595      ;;
15596    aix,no) # traditional AIX only
15597      dynamic_linker='AIX lib.a(lib.so.V)'
15598      # We preserve .a as extension for shared libraries through AIX4.2
15599      # and later when we are not doing run time linking.
15600      library_names_spec='$libname$release.a $libname.a'
15601      soname_spec='$libname$release$shared_ext$major'
15602      ;;
15603    svr4,*) # full svr4 only
15604      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15605      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15606      # We do not specify a path in Import Files, so LIBPATH fires.
15607      shlibpath_overrides_runpath=yes
15608      ;;
15609    *,yes) # both, prefer svr4
15610      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15611      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15612      # unpreferred sharedlib libNAME.a needs extra handling
15613      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"'
15614      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"'
15615      # We do not specify a path in Import Files, so LIBPATH fires.
15616      shlibpath_overrides_runpath=yes
15617      ;;
15618    *,no) # both, prefer aix
15619      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15620      library_names_spec='$libname$release.a $libname.a'
15621      soname_spec='$libname$release$shared_ext$major'
15622      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15623      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)'
15624      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"'
15625      ;;
15626    esac
15627    shlibpath_var=LIBPATH
15628  fi
15629  ;;
15630
15631amigaos*)
15632  case $host_cpu in
15633  powerpc)
15634    # Since July 2007 AmigaOS4 officially supports .so libraries.
15635    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15636    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15637    ;;
15638  m68k)
15639    library_names_spec='$libname.ixlibrary $libname.a'
15640    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15641    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'
15642    ;;
15643  esac
15644  ;;
15645
15646beos*)
15647  library_names_spec='$libname$shared_ext'
15648  dynamic_linker="$host_os ld.so"
15649  shlibpath_var=LIBRARY_PATH
15650  ;;
15651
15652bsdi[45]*)
15653  version_type=linux # correct to gnu/linux during the next big refactor
15654  need_version=no
15655  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15656  soname_spec='$libname$release$shared_ext$major'
15657  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15658  shlibpath_var=LD_LIBRARY_PATH
15659  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15660  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15661  # the default ld.so.conf also contains /usr/contrib/lib and
15662  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15663  # libtool to hard-code these into programs
15664  ;;
15665
15666cygwin* | msys* | mingw* | pw32* | cegcc*)
15667  version_type=windows
15668  shrext_cmds=.dll
15669  need_version=no
15670  need_lib_prefix=no
15671
15672  case $GCC,$cc_basename in
15673  yes,*)
15674    # gcc
15675    library_names_spec='$libname.dll.a'
15676    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15677    postinstall_cmds='base_file=`basename \$file`~
15678      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15679      dldir=$destdir/`dirname \$dlpath`~
15680      test -d \$dldir || mkdir -p \$dldir~
15681      $install_prog $dir/$dlname \$dldir/$dlname~
15682      chmod a+x \$dldir/$dlname~
15683      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15684        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15685      fi'
15686    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15687      dlpath=$dir/\$dldll~
15688       $RM \$dlpath'
15689    shlibpath_overrides_runpath=yes
15690
15691    case $host_os in
15692    cygwin*)
15693      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15694      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15695
15696      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15697      ;;
15698    msys*)
15699      # MSYS DLLs use 'msys-' prefix rather than 'lib'
15700      soname_spec='`echo $libname | sed -e 's/^lib/msys-/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15701
15702      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15703      ;;
15704    mingw* | cegcc*)
15705      # MinGW DLLs use traditional 'lib' prefix
15706      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15707      ;;
15708    pw32*)
15709      # pw32 DLLs use 'pw' prefix rather than 'lib'
15710      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15711      ;;
15712    esac
15713    dynamic_linker='Win32 ld.exe'
15714    ;;
15715
15716  *,cl*)
15717    # Native MSVC
15718    libname_spec='$name'
15719    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15720    library_names_spec='$libname.dll.lib'
15721
15722    case $build_os in
15723    mingw*)
15724      sys_lib_search_path_spec=
15725      lt_save_ifs=$IFS
15726      IFS=';'
15727      for lt_path in $LIB
15728      do
15729        IFS=$lt_save_ifs
15730        # Let DOS variable expansion print the short 8.3 style file name.
15731        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15732        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15733      done
15734      IFS=$lt_save_ifs
15735      # Convert to MSYS style.
15736      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15737      ;;
15738    cygwin* | msys*)
15739      # Convert to unix form, then to dos form, then back to unix form
15740      # but this time dos style (no spaces!) so that the unix form looks
15741      # like /cygdrive/c/PROGRA~1:/cygdr...
15742      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15743      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15744      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15745      ;;
15746    *)
15747      sys_lib_search_path_spec=$LIB
15748      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15749        # It is most probably a Windows format PATH.
15750        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15751      else
15752        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15753      fi
15754      # FIXME: find the short name or the path components, as spaces are
15755      # common. (e.g. "Program Files" -> "PROGRA~1")
15756      ;;
15757    esac
15758
15759    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15760    postinstall_cmds='base_file=`basename \$file`~
15761      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15762      dldir=$destdir/`dirname \$dlpath`~
15763      test -d \$dldir || mkdir -p \$dldir~
15764      $install_prog $dir/$dlname \$dldir/$dlname'
15765    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15766      dlpath=$dir/\$dldll~
15767       $RM \$dlpath'
15768    shlibpath_overrides_runpath=yes
15769    dynamic_linker='Win32 link.exe'
15770    ;;
15771
15772  *)
15773    # Assume MSVC wrapper
15774    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15775    dynamic_linker='Win32 ld.exe'
15776    ;;
15777  esac
15778  # FIXME: first we should search . and the directory the executable is in
15779  shlibpath_var=PATH
15780  ;;
15781
15782darwin* | rhapsody*)
15783  dynamic_linker="$host_os dyld"
15784  version_type=darwin
15785  need_lib_prefix=no
15786  need_version=no
15787  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15788  soname_spec='$libname$release$major$shared_ext'
15789  shlibpath_overrides_runpath=yes
15790  shlibpath_var=DYLD_LIBRARY_PATH
15791  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15792
15793  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15794  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15795  ;;
15796
15797dgux*)
15798  version_type=linux # correct to gnu/linux during the next big refactor
15799  need_lib_prefix=no
15800  need_version=no
15801  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15802  soname_spec='$libname$release$shared_ext$major'
15803  shlibpath_var=LD_LIBRARY_PATH
15804  ;;
15805
15806freebsd* | dragonfly*)
15807  # DragonFly does not have aout.  When/if they implement a new
15808  # versioning mechanism, adjust this.
15809  if test -x /usr/bin/objformat; then
15810    objformat=`/usr/bin/objformat`
15811  else
15812    case $host_os in
15813    freebsd[23].*) objformat=aout ;;
15814    *) objformat=elf ;;
15815    esac
15816  fi
15817  version_type=freebsd-$objformat
15818  case $version_type in
15819    freebsd-elf*)
15820      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15821      soname_spec='$libname$release$shared_ext$major'
15822      need_version=no
15823      need_lib_prefix=no
15824      ;;
15825    freebsd-*)
15826      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15827      need_version=yes
15828      ;;
15829  esac
15830  shlibpath_var=LD_LIBRARY_PATH
15831  case $host_os in
15832  freebsd2.*)
15833    shlibpath_overrides_runpath=yes
15834    ;;
15835  freebsd3.[01]* | freebsdelf3.[01]*)
15836    shlibpath_overrides_runpath=yes
15837    hardcode_into_libs=yes
15838    ;;
15839  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15840  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15841    shlibpath_overrides_runpath=no
15842    hardcode_into_libs=yes
15843    ;;
15844  *) # from 4.6 on, and DragonFly
15845    shlibpath_overrides_runpath=yes
15846    hardcode_into_libs=yes
15847    ;;
15848  esac
15849  ;;
15850
15851haiku*)
15852  version_type=linux # correct to gnu/linux during the next big refactor
15853  need_lib_prefix=no
15854  need_version=no
15855  dynamic_linker="$host_os runtime_loader"
15856  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15857  soname_spec='$libname$release$shared_ext$major'
15858  shlibpath_var=LIBRARY_PATH
15859  shlibpath_overrides_runpath=no
15860  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15861  hardcode_into_libs=yes
15862  ;;
15863
15864hpux9* | hpux10* | hpux11*)
15865  # Give a soname corresponding to the major version so that dld.sl refuses to
15866  # link against other versions.
15867  version_type=sunos
15868  need_lib_prefix=no
15869  need_version=no
15870  case $host_cpu in
15871  ia64*)
15872    shrext_cmds='.so'
15873    hardcode_into_libs=yes
15874    dynamic_linker="$host_os dld.so"
15875    shlibpath_var=LD_LIBRARY_PATH
15876    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15877    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15878    soname_spec='$libname$release$shared_ext$major'
15879    if test 32 = "$HPUX_IA64_MODE"; then
15880      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15881      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15882    else
15883      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15884      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15885    fi
15886    ;;
15887  hppa*64*)
15888    shrext_cmds='.sl'
15889    hardcode_into_libs=yes
15890    dynamic_linker="$host_os dld.sl"
15891    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15892    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15893    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15894    soname_spec='$libname$release$shared_ext$major'
15895    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15896    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15897    ;;
15898  *)
15899    shrext_cmds='.sl'
15900    dynamic_linker="$host_os dld.sl"
15901    shlibpath_var=SHLIB_PATH
15902    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15903    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15904    soname_spec='$libname$release$shared_ext$major'
15905    ;;
15906  esac
15907  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15908  postinstall_cmds='chmod 555 $lib'
15909  # or fails outright, so override atomically:
15910  install_override_mode=555
15911  ;;
15912
15913interix[3-9]*)
15914  version_type=linux # correct to gnu/linux during the next big refactor
15915  need_lib_prefix=no
15916  need_version=no
15917  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15918  soname_spec='$libname$release$shared_ext$major'
15919  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15920  shlibpath_var=LD_LIBRARY_PATH
15921  shlibpath_overrides_runpath=no
15922  hardcode_into_libs=yes
15923  ;;
15924
15925irix5* | irix6* | nonstopux*)
15926  case $host_os in
15927    nonstopux*) version_type=nonstopux ;;
15928    *)
15929	if test yes = "$lt_cv_prog_gnu_ld"; then
15930		version_type=linux # correct to gnu/linux during the next big refactor
15931	else
15932		version_type=irix
15933	fi ;;
15934  esac
15935  need_lib_prefix=no
15936  need_version=no
15937  soname_spec='$libname$release$shared_ext$major'
15938  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15939  case $host_os in
15940  irix5* | nonstopux*)
15941    libsuff= shlibsuff=
15942    ;;
15943  *)
15944    case $LD in # libtool.m4 will add one of these switches to LD
15945    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15946      libsuff= shlibsuff= libmagic=32-bit;;
15947    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15948      libsuff=32 shlibsuff=N32 libmagic=N32;;
15949    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15950      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15951    *) libsuff= shlibsuff= libmagic=never-match;;
15952    esac
15953    ;;
15954  esac
15955  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15956  shlibpath_overrides_runpath=no
15957  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15958  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15959  hardcode_into_libs=yes
15960  ;;
15961
15962# No shared lib support for Linux oldld, aout, or coff.
15963linux*oldld* | linux*aout* | linux*coff*)
15964  dynamic_linker=no
15965  ;;
15966
15967linux*android*)
15968  version_type=none # Android doesn't support versioned libraries.
15969  need_lib_prefix=no
15970  need_version=no
15971  library_names_spec='$libname$release$shared_ext'
15972  soname_spec='$libname$release$shared_ext'
15973  finish_cmds=
15974  shlibpath_var=LD_LIBRARY_PATH
15975  shlibpath_overrides_runpath=yes
15976
15977  # This implies no fast_install, which is unacceptable.
15978  # Some rework will be needed to allow for fast_install
15979  # before this can be enabled.
15980  hardcode_into_libs=yes
15981
15982  dynamic_linker='Android linker'
15983  # Don't embed -rpath directories since the linker doesn't support them.
15984  hardcode_libdir_flag_spec='-L$libdir'
15985  ;;
15986
15987# This must be glibc/ELF.
15988linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15989  version_type=linux # correct to gnu/linux during the next big refactor
15990  need_lib_prefix=no
15991  need_version=no
15992  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15993  soname_spec='$libname$release$shared_ext$major'
15994  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15995  shlibpath_var=LD_LIBRARY_PATH
15996  shlibpath_overrides_runpath=no
15997
15998  # Some binutils ld are patched to set DT_RUNPATH
15999  if test ${lt_cv_shlibpath_overrides_runpath+y}
16000then :
16001  printf %s "(cached) " >&6
16002else $as_nop
16003  lt_cv_shlibpath_overrides_runpath=no
16004    save_LDFLAGS=$LDFLAGS
16005    save_libdir=$libdir
16006    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16007	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16008    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16009/* end confdefs.h.  */
16010
16011int
16012main (void)
16013{
16014
16015  ;
16016  return 0;
16017}
16018_ACEOF
16019if ac_fn_c_try_link "$LINENO"
16020then :
16021  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
16022then :
16023  lt_cv_shlibpath_overrides_runpath=yes
16024fi
16025fi
16026rm -f core conftest.err conftest.$ac_objext conftest.beam \
16027    conftest$ac_exeext conftest.$ac_ext
16028    LDFLAGS=$save_LDFLAGS
16029    libdir=$save_libdir
16030
16031fi
16032
16033  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16034
16035  # This implies no fast_install, which is unacceptable.
16036  # Some rework will be needed to allow for fast_install
16037  # before this can be enabled.
16038  hardcode_into_libs=yes
16039
16040  # Ideally, we could use ldconfig to report *all* directores which are
16041  # searched for libraries, however this is still not possible.  Aside from not
16042  # being certain /sbin/ldconfig is available, command
16043  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16044  # even though it is searched at run-time.  Try to do the best guess by
16045  # appending ld.so.conf contents (and includes) to the search path.
16046  if test -f /etc/ld.so.conf; then
16047    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' ' '`
16048    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16049  fi
16050
16051  # We used to test for /lib/ld.so.1 and disable shared libraries on
16052  # powerpc, because MkLinux only supported shared libraries with the
16053  # GNU dynamic linker.  Since this was broken with cross compilers,
16054  # most powerpc-linux boxes support dynamic linking these days and
16055  # people can always --disable-shared, the test was removed, and we
16056  # assume the GNU/Linux dynamic linker is in use.
16057  dynamic_linker='GNU/Linux ld.so'
16058  ;;
16059
16060netbsdelf*-gnu)
16061  version_type=linux
16062  need_lib_prefix=no
16063  need_version=no
16064  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16065  soname_spec='${libname}${release}${shared_ext}$major'
16066  shlibpath_var=LD_LIBRARY_PATH
16067  shlibpath_overrides_runpath=no
16068  hardcode_into_libs=yes
16069  dynamic_linker='NetBSD ld.elf_so'
16070  ;;
16071
16072netbsd*)
16073  version_type=sunos
16074  need_lib_prefix=no
16075  need_version=no
16076  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16077    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16078    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16079    dynamic_linker='NetBSD (a.out) ld.so'
16080  else
16081    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16082    soname_spec='$libname$release$shared_ext$major'
16083    dynamic_linker='NetBSD ld.elf_so'
16084  fi
16085  shlibpath_var=LD_LIBRARY_PATH
16086  shlibpath_overrides_runpath=yes
16087  hardcode_into_libs=yes
16088  ;;
16089
16090newsos6)
16091  version_type=linux # correct to gnu/linux during the next big refactor
16092  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16093  shlibpath_var=LD_LIBRARY_PATH
16094  shlibpath_overrides_runpath=yes
16095  ;;
16096
16097*nto* | *qnx*)
16098  version_type=qnx
16099  need_lib_prefix=no
16100  need_version=no
16101  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16102  soname_spec='$libname$release$shared_ext$major'
16103  shlibpath_var=LD_LIBRARY_PATH
16104  shlibpath_overrides_runpath=no
16105  hardcode_into_libs=yes
16106  dynamic_linker='ldqnx.so'
16107  ;;
16108
16109openbsd* | bitrig*)
16110  version_type=sunos
16111  sys_lib_dlsearch_path_spec=/usr/lib
16112  need_lib_prefix=no
16113  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16114    need_version=no
16115  else
16116    need_version=yes
16117  fi
16118  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16119  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16120  shlibpath_var=LD_LIBRARY_PATH
16121  shlibpath_overrides_runpath=yes
16122  ;;
16123
16124os2*)
16125  libname_spec='$name'
16126  version_type=windows
16127  shrext_cmds=.dll
16128  need_version=no
16129  need_lib_prefix=no
16130  # OS/2 can only load a DLL with a base name of 8 characters or less.
16131  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16132    v=$($ECHO $release$versuffix | tr -d .-);
16133    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16134    $ECHO $n$v`$shared_ext'
16135  library_names_spec='${libname}_dll.$libext'
16136  dynamic_linker='OS/2 ld.exe'
16137  shlibpath_var=BEGINLIBPATH
16138  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16139  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16140  postinstall_cmds='base_file=`basename \$file`~
16141    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16142    dldir=$destdir/`dirname \$dlpath`~
16143    test -d \$dldir || mkdir -p \$dldir~
16144    $install_prog $dir/$dlname \$dldir/$dlname~
16145    chmod a+x \$dldir/$dlname~
16146    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16147      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16148    fi'
16149  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16150    dlpath=$dir/\$dldll~
16151    $RM \$dlpath'
16152  ;;
16153
16154osf3* | osf4* | osf5*)
16155  version_type=osf
16156  need_lib_prefix=no
16157  need_version=no
16158  soname_spec='$libname$release$shared_ext$major'
16159  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16160  shlibpath_var=LD_LIBRARY_PATH
16161  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16162  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16163  ;;
16164
16165rdos*)
16166  dynamic_linker=no
16167  ;;
16168
16169solaris*)
16170  version_type=linux # correct to gnu/linux during the next big refactor
16171  need_lib_prefix=no
16172  need_version=no
16173  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16174  soname_spec='$libname$release$shared_ext$major'
16175  shlibpath_var=LD_LIBRARY_PATH
16176  shlibpath_overrides_runpath=yes
16177  hardcode_into_libs=yes
16178  # ldd complains unless libraries are executable
16179  postinstall_cmds='chmod +x $lib'
16180  ;;
16181
16182sunos4*)
16183  version_type=sunos
16184  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16185  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16186  shlibpath_var=LD_LIBRARY_PATH
16187  shlibpath_overrides_runpath=yes
16188  if test yes = "$with_gnu_ld"; then
16189    need_lib_prefix=no
16190  fi
16191  need_version=yes
16192  ;;
16193
16194sysv4 | sysv4.3*)
16195  version_type=linux # correct to gnu/linux during the next big refactor
16196  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16197  soname_spec='$libname$release$shared_ext$major'
16198  shlibpath_var=LD_LIBRARY_PATH
16199  case $host_vendor in
16200    sni)
16201      shlibpath_overrides_runpath=no
16202      need_lib_prefix=no
16203      runpath_var=LD_RUN_PATH
16204      ;;
16205    siemens)
16206      need_lib_prefix=no
16207      ;;
16208    motorola)
16209      need_lib_prefix=no
16210      need_version=no
16211      shlibpath_overrides_runpath=no
16212      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16213      ;;
16214  esac
16215  ;;
16216
16217sysv4*MP*)
16218  if test -d /usr/nec; then
16219    version_type=linux # correct to gnu/linux during the next big refactor
16220    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16221    soname_spec='$libname$shared_ext.$major'
16222    shlibpath_var=LD_LIBRARY_PATH
16223  fi
16224  ;;
16225
16226sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16227  version_type=sco
16228  need_lib_prefix=no
16229  need_version=no
16230  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16231  soname_spec='$libname$release$shared_ext$major'
16232  shlibpath_var=LD_LIBRARY_PATH
16233  shlibpath_overrides_runpath=yes
16234  hardcode_into_libs=yes
16235  if test yes = "$with_gnu_ld"; then
16236    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16237  else
16238    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16239    case $host_os in
16240      sco3.2v5*)
16241        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16242	;;
16243    esac
16244  fi
16245  sys_lib_dlsearch_path_spec='/usr/lib'
16246  ;;
16247
16248tpf*)
16249  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16250  version_type=linux # correct to gnu/linux during the next big refactor
16251  need_lib_prefix=no
16252  need_version=no
16253  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16254  shlibpath_var=LD_LIBRARY_PATH
16255  shlibpath_overrides_runpath=no
16256  hardcode_into_libs=yes
16257  ;;
16258
16259uts4*)
16260  version_type=linux # correct to gnu/linux during the next big refactor
16261  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16262  soname_spec='$libname$release$shared_ext$major'
16263  shlibpath_var=LD_LIBRARY_PATH
16264  ;;
16265
16266*)
16267  dynamic_linker=no
16268  ;;
16269esac
16270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16271printf "%s\n" "$dynamic_linker" >&6; }
16272test no = "$dynamic_linker" && can_build_shared=no
16273
16274variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16275if test yes = "$GCC"; then
16276  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16277fi
16278
16279if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16280  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16281fi
16282
16283if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16284  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16285fi
16286
16287# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16288configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16289
16290# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16291func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16292
16293# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16294configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16393printf %s "checking how to hardcode library paths into programs... " >&6; }
16394hardcode_action=
16395if test -n "$hardcode_libdir_flag_spec" ||
16396   test -n "$runpath_var" ||
16397   test yes = "$hardcode_automatic"; then
16398
16399  # We can hardcode non-existent directories.
16400  if test no != "$hardcode_direct" &&
16401     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16402     # have to relink, otherwise we might link with an installed library
16403     # when we should be linking with a yet-to-be-installed one
16404     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
16405     test no != "$hardcode_minus_L"; then
16406    # Linking always hardcodes the temporary library directory.
16407    hardcode_action=relink
16408  else
16409    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16410    hardcode_action=immediate
16411  fi
16412else
16413  # We cannot hardcode anything, or else we can only hardcode existing
16414  # directories.
16415  hardcode_action=unsupported
16416fi
16417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16418printf "%s\n" "$hardcode_action" >&6; }
16419
16420if test relink = "$hardcode_action" ||
16421   test yes = "$inherit_rpath"; then
16422  # Fast installation is not supported
16423  enable_fast_install=no
16424elif test yes = "$shlibpath_overrides_runpath" ||
16425     test no = "$enable_shared"; then
16426  # Fast installation is not necessary
16427  enable_fast_install=needless
16428fi
16429
16430
16431
16432
16433
16434
16435  if test yes != "$enable_dlopen"; then
16436  enable_dlopen=unknown
16437  enable_dlopen_self=unknown
16438  enable_dlopen_self_static=unknown
16439else
16440  lt_cv_dlopen=no
16441  lt_cv_dlopen_libs=
16442
16443  case $host_os in
16444  beos*)
16445    lt_cv_dlopen=load_add_on
16446    lt_cv_dlopen_libs=
16447    lt_cv_dlopen_self=yes
16448    ;;
16449
16450  mingw* | pw32* | cegcc*)
16451    lt_cv_dlopen=LoadLibrary
16452    lt_cv_dlopen_libs=
16453    ;;
16454
16455  cygwin* | msys*)
16456    lt_cv_dlopen=dlopen
16457    lt_cv_dlopen_libs=
16458    ;;
16459
16460  darwin*)
16461    # if libdl is installed we need to link against it
16462    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16463printf %s "checking for dlopen in -ldl... " >&6; }
16464if test ${ac_cv_lib_dl_dlopen+y}
16465then :
16466  printf %s "(cached) " >&6
16467else $as_nop
16468  ac_check_lib_save_LIBS=$LIBS
16469LIBS="-ldl  $LIBS"
16470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16471/* end confdefs.h.  */
16472
16473/* Override any GCC internal prototype to avoid an error.
16474   Use char because int might match the return type of a GCC
16475   builtin and then its argument prototype would still apply.  */
16476char dlopen ();
16477int
16478main (void)
16479{
16480return dlopen ();
16481  ;
16482  return 0;
16483}
16484_ACEOF
16485if ac_fn_c_try_link "$LINENO"
16486then :
16487  ac_cv_lib_dl_dlopen=yes
16488else $as_nop
16489  ac_cv_lib_dl_dlopen=no
16490fi
16491rm -f core conftest.err conftest.$ac_objext conftest.beam \
16492    conftest$ac_exeext conftest.$ac_ext
16493LIBS=$ac_check_lib_save_LIBS
16494fi
16495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16496printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16497if test "x$ac_cv_lib_dl_dlopen" = xyes
16498then :
16499  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16500else $as_nop
16501
16502    lt_cv_dlopen=dyld
16503    lt_cv_dlopen_libs=
16504    lt_cv_dlopen_self=yes
16505
16506fi
16507
16508    ;;
16509
16510  tpf*)
16511    # Don't try to run any link tests for TPF.  We know it's impossible
16512    # because TPF is a cross-compiler, and we know how we open DSOs.
16513    lt_cv_dlopen=dlopen
16514    lt_cv_dlopen_libs=
16515    lt_cv_dlopen_self=no
16516    ;;
16517
16518  *)
16519    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16520if test "x$ac_cv_func_shl_load" = xyes
16521then :
16522  lt_cv_dlopen=shl_load
16523else $as_nop
16524  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16525printf %s "checking for shl_load in -ldld... " >&6; }
16526if test ${ac_cv_lib_dld_shl_load+y}
16527then :
16528  printf %s "(cached) " >&6
16529else $as_nop
16530  ac_check_lib_save_LIBS=$LIBS
16531LIBS="-ldld  $LIBS"
16532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16533/* end confdefs.h.  */
16534
16535/* Override any GCC internal prototype to avoid an error.
16536   Use char because int might match the return type of a GCC
16537   builtin and then its argument prototype would still apply.  */
16538char shl_load ();
16539int
16540main (void)
16541{
16542return shl_load ();
16543  ;
16544  return 0;
16545}
16546_ACEOF
16547if ac_fn_c_try_link "$LINENO"
16548then :
16549  ac_cv_lib_dld_shl_load=yes
16550else $as_nop
16551  ac_cv_lib_dld_shl_load=no
16552fi
16553rm -f core conftest.err conftest.$ac_objext conftest.beam \
16554    conftest$ac_exeext conftest.$ac_ext
16555LIBS=$ac_check_lib_save_LIBS
16556fi
16557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16558printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
16559if test "x$ac_cv_lib_dld_shl_load" = xyes
16560then :
16561  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
16562else $as_nop
16563  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16564if test "x$ac_cv_func_dlopen" = xyes
16565then :
16566  lt_cv_dlopen=dlopen
16567else $as_nop
16568  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16569printf %s "checking for dlopen in -ldl... " >&6; }
16570if test ${ac_cv_lib_dl_dlopen+y}
16571then :
16572  printf %s "(cached) " >&6
16573else $as_nop
16574  ac_check_lib_save_LIBS=$LIBS
16575LIBS="-ldl  $LIBS"
16576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16577/* end confdefs.h.  */
16578
16579/* Override any GCC internal prototype to avoid an error.
16580   Use char because int might match the return type of a GCC
16581   builtin and then its argument prototype would still apply.  */
16582char dlopen ();
16583int
16584main (void)
16585{
16586return dlopen ();
16587  ;
16588  return 0;
16589}
16590_ACEOF
16591if ac_fn_c_try_link "$LINENO"
16592then :
16593  ac_cv_lib_dl_dlopen=yes
16594else $as_nop
16595  ac_cv_lib_dl_dlopen=no
16596fi
16597rm -f core conftest.err conftest.$ac_objext conftest.beam \
16598    conftest$ac_exeext conftest.$ac_ext
16599LIBS=$ac_check_lib_save_LIBS
16600fi
16601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16602printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16603if test "x$ac_cv_lib_dl_dlopen" = xyes
16604then :
16605  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16606else $as_nop
16607  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16608printf %s "checking for dlopen in -lsvld... " >&6; }
16609if test ${ac_cv_lib_svld_dlopen+y}
16610then :
16611  printf %s "(cached) " >&6
16612else $as_nop
16613  ac_check_lib_save_LIBS=$LIBS
16614LIBS="-lsvld  $LIBS"
16615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16616/* end confdefs.h.  */
16617
16618/* Override any GCC internal prototype to avoid an error.
16619   Use char because int might match the return type of a GCC
16620   builtin and then its argument prototype would still apply.  */
16621char dlopen ();
16622int
16623main (void)
16624{
16625return dlopen ();
16626  ;
16627  return 0;
16628}
16629_ACEOF
16630if ac_fn_c_try_link "$LINENO"
16631then :
16632  ac_cv_lib_svld_dlopen=yes
16633else $as_nop
16634  ac_cv_lib_svld_dlopen=no
16635fi
16636rm -f core conftest.err conftest.$ac_objext conftest.beam \
16637    conftest$ac_exeext conftest.$ac_ext
16638LIBS=$ac_check_lib_save_LIBS
16639fi
16640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16641printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
16642if test "x$ac_cv_lib_svld_dlopen" = xyes
16643then :
16644  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
16645else $as_nop
16646  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16647printf %s "checking for dld_link in -ldld... " >&6; }
16648if test ${ac_cv_lib_dld_dld_link+y}
16649then :
16650  printf %s "(cached) " >&6
16651else $as_nop
16652  ac_check_lib_save_LIBS=$LIBS
16653LIBS="-ldld  $LIBS"
16654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16655/* end confdefs.h.  */
16656
16657/* Override any GCC internal prototype to avoid an error.
16658   Use char because int might match the return type of a GCC
16659   builtin and then its argument prototype would still apply.  */
16660char dld_link ();
16661int
16662main (void)
16663{
16664return dld_link ();
16665  ;
16666  return 0;
16667}
16668_ACEOF
16669if ac_fn_c_try_link "$LINENO"
16670then :
16671  ac_cv_lib_dld_dld_link=yes
16672else $as_nop
16673  ac_cv_lib_dld_dld_link=no
16674fi
16675rm -f core conftest.err conftest.$ac_objext conftest.beam \
16676    conftest$ac_exeext conftest.$ac_ext
16677LIBS=$ac_check_lib_save_LIBS
16678fi
16679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16680printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
16681if test "x$ac_cv_lib_dld_dld_link" = xyes
16682then :
16683  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
16684fi
16685
16686
16687fi
16688
16689
16690fi
16691
16692
16693fi
16694
16695
16696fi
16697
16698
16699fi
16700
16701    ;;
16702  esac
16703
16704  if test no = "$lt_cv_dlopen"; then
16705    enable_dlopen=no
16706  else
16707    enable_dlopen=yes
16708  fi
16709
16710  case $lt_cv_dlopen in
16711  dlopen)
16712    save_CPPFLAGS=$CPPFLAGS
16713    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16714
16715    save_LDFLAGS=$LDFLAGS
16716    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16717
16718    save_LIBS=$LIBS
16719    LIBS="$lt_cv_dlopen_libs $LIBS"
16720
16721    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16722printf %s "checking whether a program can dlopen itself... " >&6; }
16723if test ${lt_cv_dlopen_self+y}
16724then :
16725  printf %s "(cached) " >&6
16726else $as_nop
16727  	  if test yes = "$cross_compiling"; then :
16728  lt_cv_dlopen_self=cross
16729else
16730  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16731  lt_status=$lt_dlunknown
16732  cat > conftest.$ac_ext <<_LT_EOF
16733#line $LINENO "configure"
16734#include "confdefs.h"
16735
16736#if HAVE_DLFCN_H
16737#include <dlfcn.h>
16738#endif
16739
16740#include <stdio.h>
16741
16742#ifdef RTLD_GLOBAL
16743#  define LT_DLGLOBAL		RTLD_GLOBAL
16744#else
16745#  ifdef DL_GLOBAL
16746#    define LT_DLGLOBAL		DL_GLOBAL
16747#  else
16748#    define LT_DLGLOBAL		0
16749#  endif
16750#endif
16751
16752/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16753   find out it does not work in some platform. */
16754#ifndef LT_DLLAZY_OR_NOW
16755#  ifdef RTLD_LAZY
16756#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
16757#  else
16758#    ifdef DL_LAZY
16759#      define LT_DLLAZY_OR_NOW		DL_LAZY
16760#    else
16761#      ifdef RTLD_NOW
16762#        define LT_DLLAZY_OR_NOW	RTLD_NOW
16763#      else
16764#        ifdef DL_NOW
16765#          define LT_DLLAZY_OR_NOW	DL_NOW
16766#        else
16767#          define LT_DLLAZY_OR_NOW	0
16768#        endif
16769#      endif
16770#    endif
16771#  endif
16772#endif
16773
16774/* When -fvisibility=hidden is used, assume the code has been annotated
16775   correspondingly for the symbols needed.  */
16776#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16777int fnord () __attribute__((visibility("default")));
16778#endif
16779
16780int fnord () { return 42; }
16781int main ()
16782{
16783  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16784  int status = $lt_dlunknown;
16785
16786  if (self)
16787    {
16788      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16789      else
16790        {
16791	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16792          else puts (dlerror ());
16793	}
16794      /* dlclose (self); */
16795    }
16796  else
16797    puts (dlerror ());
16798
16799  return status;
16800}
16801_LT_EOF
16802  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16803  (eval $ac_link) 2>&5
16804  ac_status=$?
16805  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16806  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16807    (./conftest; exit; ) >&5 2>/dev/null
16808    lt_status=$?
16809    case x$lt_status in
16810      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16811      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16812      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16813    esac
16814  else :
16815    # compilation failed
16816    lt_cv_dlopen_self=no
16817  fi
16818fi
16819rm -fr conftest*
16820
16821
16822fi
16823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16824printf "%s\n" "$lt_cv_dlopen_self" >&6; }
16825
16826    if test yes = "$lt_cv_dlopen_self"; then
16827      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16828      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16829printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
16830if test ${lt_cv_dlopen_self_static+y}
16831then :
16832  printf %s "(cached) " >&6
16833else $as_nop
16834  	  if test yes = "$cross_compiling"; then :
16835  lt_cv_dlopen_self_static=cross
16836else
16837  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16838  lt_status=$lt_dlunknown
16839  cat > conftest.$ac_ext <<_LT_EOF
16840#line $LINENO "configure"
16841#include "confdefs.h"
16842
16843#if HAVE_DLFCN_H
16844#include <dlfcn.h>
16845#endif
16846
16847#include <stdio.h>
16848
16849#ifdef RTLD_GLOBAL
16850#  define LT_DLGLOBAL		RTLD_GLOBAL
16851#else
16852#  ifdef DL_GLOBAL
16853#    define LT_DLGLOBAL		DL_GLOBAL
16854#  else
16855#    define LT_DLGLOBAL		0
16856#  endif
16857#endif
16858
16859/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16860   find out it does not work in some platform. */
16861#ifndef LT_DLLAZY_OR_NOW
16862#  ifdef RTLD_LAZY
16863#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
16864#  else
16865#    ifdef DL_LAZY
16866#      define LT_DLLAZY_OR_NOW		DL_LAZY
16867#    else
16868#      ifdef RTLD_NOW
16869#        define LT_DLLAZY_OR_NOW	RTLD_NOW
16870#      else
16871#        ifdef DL_NOW
16872#          define LT_DLLAZY_OR_NOW	DL_NOW
16873#        else
16874#          define LT_DLLAZY_OR_NOW	0
16875#        endif
16876#      endif
16877#    endif
16878#  endif
16879#endif
16880
16881/* When -fvisibility=hidden is used, assume the code has been annotated
16882   correspondingly for the symbols needed.  */
16883#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16884int fnord () __attribute__((visibility("default")));
16885#endif
16886
16887int fnord () { return 42; }
16888int main ()
16889{
16890  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16891  int status = $lt_dlunknown;
16892
16893  if (self)
16894    {
16895      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16896      else
16897        {
16898	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16899          else puts (dlerror ());
16900	}
16901      /* dlclose (self); */
16902    }
16903  else
16904    puts (dlerror ());
16905
16906  return status;
16907}
16908_LT_EOF
16909  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16910  (eval $ac_link) 2>&5
16911  ac_status=$?
16912  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16913  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16914    (./conftest; exit; ) >&5 2>/dev/null
16915    lt_status=$?
16916    case x$lt_status in
16917      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16918      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16919      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16920    esac
16921  else :
16922    # compilation failed
16923    lt_cv_dlopen_self_static=no
16924  fi
16925fi
16926rm -fr conftest*
16927
16928
16929fi
16930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16931printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
16932    fi
16933
16934    CPPFLAGS=$save_CPPFLAGS
16935    LDFLAGS=$save_LDFLAGS
16936    LIBS=$save_LIBS
16937    ;;
16938  esac
16939
16940  case $lt_cv_dlopen_self in
16941  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16942  *) enable_dlopen_self=unknown ;;
16943  esac
16944
16945  case $lt_cv_dlopen_self_static in
16946  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16947  *) enable_dlopen_self_static=unknown ;;
16948  esac
16949fi
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967striplib=
16968old_striplib=
16969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16970printf %s "checking whether stripping libraries is possible... " >&6; }
16971if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16972  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16973  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16974  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16975printf "%s\n" "yes" >&6; }
16976else
16977# FIXME - insert some real tests, host_os isn't really good enough
16978  case $host_os in
16979  darwin*)
16980    if test -n "$STRIP"; then
16981      striplib="$STRIP -x"
16982      old_striplib="$STRIP -S"
16983      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16984printf "%s\n" "yes" >&6; }
16985    else
16986      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16987printf "%s\n" "no" >&6; }
16988    fi
16989    ;;
16990  *)
16991    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16992printf "%s\n" "no" >&6; }
16993    ;;
16994  esac
16995fi
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008  # Report what library types will actually be built
17009  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17010printf %s "checking if libtool supports shared libraries... " >&6; }
17011  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17012printf "%s\n" "$can_build_shared" >&6; }
17013
17014  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17015printf %s "checking whether to build shared libraries... " >&6; }
17016  test no = "$can_build_shared" && enable_shared=no
17017
17018  # On AIX, shared libraries and static libraries use the same namespace, and
17019  # are all built from PIC.
17020  case $host_os in
17021  aix3*)
17022    test yes = "$enable_shared" && enable_static=no
17023    if test -n "$RANLIB"; then
17024      archive_cmds="$archive_cmds~\$RANLIB \$lib"
17025      postinstall_cmds='$RANLIB $lib'
17026    fi
17027    ;;
17028
17029  aix[4-9]*)
17030    if test ia64 != "$host_cpu"; then
17031      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
17032      yes,aix,yes) ;;			# shared object as lib.so file only
17033      yes,svr4,*) ;;			# shared object as lib.so archive member only
17034      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
17035      esac
17036    fi
17037    ;;
17038  esac
17039  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17040printf "%s\n" "$enable_shared" >&6; }
17041
17042  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17043printf %s "checking whether to build static libraries... " >&6; }
17044  # Make sure either enable_shared or enable_static is yes.
17045  test yes = "$enable_shared" || enable_static=yes
17046  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17047printf "%s\n" "$enable_static" >&6; }
17048
17049
17050
17051
17052fi
17053ac_ext=c
17054ac_cpp='$CPP $CPPFLAGS'
17055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17057ac_compiler_gnu=$ac_cv_c_compiler_gnu
17058
17059CC=$lt_save_CC
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075        ac_config_commands="$ac_config_commands libtool"
17076
17077
17078
17079
17080# Only expand once:
17081
17082
17083if test -n "$ac_tool_prefix"; then
17084  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17085set dummy ${ac_tool_prefix}windres; ac_word=$2
17086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17087printf %s "checking for $ac_word... " >&6; }
17088if test ${ac_cv_prog_RC+y}
17089then :
17090  printf %s "(cached) " >&6
17091else $as_nop
17092  if test -n "$RC"; then
17093  ac_cv_prog_RC="$RC" # Let the user override the test.
17094else
17095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17096for as_dir in $PATH
17097do
17098  IFS=$as_save_IFS
17099  case $as_dir in #(((
17100    '') as_dir=./ ;;
17101    */) ;;
17102    *) as_dir=$as_dir/ ;;
17103  esac
17104    for ac_exec_ext in '' $ac_executable_extensions; do
17105  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17106    ac_cv_prog_RC="${ac_tool_prefix}windres"
17107    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17108    break 2
17109  fi
17110done
17111  done
17112IFS=$as_save_IFS
17113
17114fi
17115fi
17116RC=$ac_cv_prog_RC
17117if test -n "$RC"; then
17118  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
17119printf "%s\n" "$RC" >&6; }
17120else
17121  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17122printf "%s\n" "no" >&6; }
17123fi
17124
17125
17126fi
17127if test -z "$ac_cv_prog_RC"; then
17128  ac_ct_RC=$RC
17129  # Extract the first word of "windres", so it can be a program name with args.
17130set dummy windres; ac_word=$2
17131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17132printf %s "checking for $ac_word... " >&6; }
17133if test ${ac_cv_prog_ac_ct_RC+y}
17134then :
17135  printf %s "(cached) " >&6
17136else $as_nop
17137  if test -n "$ac_ct_RC"; then
17138  ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
17139else
17140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17141for as_dir in $PATH
17142do
17143  IFS=$as_save_IFS
17144  case $as_dir in #(((
17145    '') as_dir=./ ;;
17146    */) ;;
17147    *) as_dir=$as_dir/ ;;
17148  esac
17149    for ac_exec_ext in '' $ac_executable_extensions; do
17150  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17151    ac_cv_prog_ac_ct_RC="windres"
17152    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17153    break 2
17154  fi
17155done
17156  done
17157IFS=$as_save_IFS
17158
17159fi
17160fi
17161ac_ct_RC=$ac_cv_prog_ac_ct_RC
17162if test -n "$ac_ct_RC"; then
17163  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
17164printf "%s\n" "$ac_ct_RC" >&6; }
17165else
17166  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17167printf "%s\n" "no" >&6; }
17168fi
17169
17170  if test "x$ac_ct_RC" = x; then
17171    RC=""
17172  else
17173    case $cross_compiling:$ac_tool_warned in
17174yes:)
17175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17176printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17177ac_tool_warned=yes ;;
17178esac
17179    RC=$ac_ct_RC
17180  fi
17181else
17182  RC="$ac_cv_prog_RC"
17183fi
17184
17185
17186
17187
17188# Source file extension for RC test sources.
17189ac_ext=rc
17190
17191# Object file extension for compiled RC test sources.
17192objext=o
17193objext_RC=$objext
17194
17195# Code to be used in simple compile tests
17196lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
17197
17198# Code to be used in simple link tests
17199lt_simple_link_test_code=$lt_simple_compile_test_code
17200
17201# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17202
17203
17204
17205
17206
17207
17208# If no C compiler was specified, use CC.
17209LTCC=${LTCC-"$CC"}
17210
17211# If no C compiler flags were specified, use CFLAGS.
17212LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17213
17214# Allow CC to be a program name with arguments.
17215compiler=$CC
17216
17217
17218# save warnings/boilerplate of simple test code
17219ac_outfile=conftest.$ac_objext
17220echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17221eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17222_lt_compiler_boilerplate=`cat conftest.err`
17223$RM conftest*
17224
17225ac_outfile=conftest.$ac_objext
17226echo "$lt_simple_link_test_code" >conftest.$ac_ext
17227eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17228_lt_linker_boilerplate=`cat conftest.err`
17229$RM -r conftest*
17230
17231
17232# Allow CC to be a program name with arguments.
17233lt_save_CC=$CC
17234lt_save_CFLAGS=$CFLAGS
17235lt_save_GCC=$GCC
17236GCC=
17237CC=${RC-"windres"}
17238CFLAGS=
17239compiler=$CC
17240compiler_RC=$CC
17241func_cc_basename $compiler
17242cc_basename=$func_cc_basename_result
17243
17244lt_cv_prog_compiler_c_o_RC=yes
17245
17246if test -n "$compiler"; then
17247  :
17248
17249
17250
17251fi
17252
17253GCC=$lt_save_GCC
17254ac_ext=c
17255ac_cpp='$CPP $CPPFLAGS'
17256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17258ac_compiler_gnu=$ac_cv_c_compiler_gnu
17259
17260CC=$lt_save_CC
17261CFLAGS=$lt_save_CFLAGS
17262
17263
17264# Check for headers that are ALWAYS required
17265
17266
17267
17268
17269
17270# Check for basic optional headers
17271ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default
17272"
17273if test "x$ac_cv_header_stddef_h" = xyes
17274then :
17275  printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
17276
17277fi
17278ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default
17279"
17280if test "x$ac_cv_header_stdlib_h" = xyes
17281then :
17282  printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
17283
17284fi
17285ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default
17286"
17287if test "x$ac_cv_header_inttypes_h" = xyes
17288then :
17289  printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
17290
17291fi
17292ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default
17293"
17294if test "x$ac_cv_header_sys_types_h" = xyes
17295then :
17296  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
17297
17298fi
17299ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default
17300"
17301if test "x$ac_cv_header_sys_stat_h" = xyes
17302then :
17303  printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
17304
17305fi
17306ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default
17307"
17308if test "x$ac_cv_header_unistd_h" = xyes
17309then :
17310  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
17311
17312fi
17313
17314
17315# Check for clock-specific optional headers
17316ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default
17317"
17318if test "x$ac_cv_header_sys_time_h" = xyes
17319then :
17320  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
17321
17322fi
17323ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default
17324"
17325if test "x$ac_cv_header_time_h" = xyes
17326then :
17327  printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
17328
17329fi
17330
17331
17332# Check for system information and parameters optional headers
17333ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default
17334"
17335if test "x$ac_cv_header_endian_h" = xyes
17336then :
17337  printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
17338
17339fi
17340ac_fn_c_check_header_compile "$LINENO" "machine/endian.h" "ac_cv_header_machine_endian_h" "$ac_includes_default
17341"
17342if test "x$ac_cv_header_machine_endian_h" = xyes
17343then :
17344  printf "%s\n" "#define HAVE_MACHINE_ENDIAN_H 1" >>confdefs.h
17345
17346fi
17347ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default
17348"
17349if test "x$ac_cv_header_sys_endian_h" = xyes
17350then :
17351  printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
17352
17353fi
17354ac_fn_c_check_header_compile "$LINENO" "sys/byteorder.h" "ac_cv_header_sys_byteorder_h" "$ac_includes_default
17355"
17356if test "x$ac_cv_header_sys_byteorder_h" = xyes
17357then :
17358  printf "%s\n" "#define HAVE_SYS_BYTEORDER_H 1" >>confdefs.h
17359
17360fi
17361ac_fn_c_check_header_compile "$LINENO" "sys/machine.h" "ac_cv_header_sys_machine_h" "$ac_includes_default
17362"
17363if test "x$ac_cv_header_sys_machine_h" = xyes
17364then :
17365  printf "%s\n" "#define HAVE_SYS_MACHINE_H 1" >>confdefs.h
17366
17367fi
17368ac_fn_c_check_header_compile "$LINENO" "machine/param.h" "ac_cv_header_machine_param_h" "$ac_includes_default
17369"
17370if test "x$ac_cv_header_machine_param_h" = xyes
17371then :
17372  printf "%s\n" "#define HAVE_MACHINE_PARAM_H 1" >>confdefs.h
17373
17374fi
17375ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default
17376"
17377if test "x$ac_cv_header_sys_param_h" = xyes
17378then :
17379  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
17380
17381fi
17382ac_fn_c_check_header_compile "$LINENO" "sys/isa_defs.h" "ac_cv_header_sys_isa_defs_h" "$ac_includes_default
17383"
17384if test "x$ac_cv_header_sys_isa_defs_h" = xyes
17385then :
17386  printf "%s\n" "#define HAVE_SYS_ISA_DEFS_H 1" >>confdefs.h
17387
17388fi
17389ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default
17390"
17391if test "x$ac_cv_header_sys_ioctl_h" = xyes
17392then :
17393  printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
17394
17395fi
17396
17397
17398# Check for network and sockets optional headers
17399ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default
17400
17401#ifdef HAVE_SYS_TYPES_H
17402#include <sys/types.h>
17403#endif /* HAVE_SYS_TYPES_H */
17404#ifdef HAVE_INTTYPES_H
17405#include <inttypes.h>
17406#endif /* HAVE_INTTYPES_H */
17407#ifdef HAVE_SYS_SOCKET_H
17408#include <sys/socket.h>
17409#endif /* HAVE_SYS_SOCKET_H */
17410#ifdef HAVE_NETINET_IN_H
17411#include <netinet/in.h>
17412#endif /* HAVE_NETINET_IN_H */
17413#ifdef HAVE_NETINET_IP_H
17414#include <netinet/ip.h>
17415#endif /* HAVE_NETINET_IP_H */
17416#ifdef HAVE_NETINET_TCP_H
17417#include <netinet/tcp.h>
17418#endif /* HAVE_NETINET_TCP_H */
17419
17420
17421"
17422if test "x$ac_cv_header_sys_socket_h" = xyes
17423then :
17424  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
17425
17426fi
17427ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default
17428
17429#ifdef HAVE_SYS_TYPES_H
17430#include <sys/types.h>
17431#endif /* HAVE_SYS_TYPES_H */
17432#ifdef HAVE_INTTYPES_H
17433#include <inttypes.h>
17434#endif /* HAVE_INTTYPES_H */
17435#ifdef HAVE_SYS_SOCKET_H
17436#include <sys/socket.h>
17437#endif /* HAVE_SYS_SOCKET_H */
17438#ifdef HAVE_NETINET_IN_H
17439#include <netinet/in.h>
17440#endif /* HAVE_NETINET_IN_H */
17441#ifdef HAVE_NETINET_IP_H
17442#include <netinet/ip.h>
17443#endif /* HAVE_NETINET_IP_H */
17444#ifdef HAVE_NETINET_TCP_H
17445#include <netinet/tcp.h>
17446#endif /* HAVE_NETINET_TCP_H */
17447
17448
17449"
17450if test "x$ac_cv_header_sys_select_h" = xyes
17451then :
17452  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
17453
17454fi
17455ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default
17456
17457#ifdef HAVE_SYS_TYPES_H
17458#include <sys/types.h>
17459#endif /* HAVE_SYS_TYPES_H */
17460#ifdef HAVE_INTTYPES_H
17461#include <inttypes.h>
17462#endif /* HAVE_INTTYPES_H */
17463#ifdef HAVE_SYS_SOCKET_H
17464#include <sys/socket.h>
17465#endif /* HAVE_SYS_SOCKET_H */
17466#ifdef HAVE_NETINET_IN_H
17467#include <netinet/in.h>
17468#endif /* HAVE_NETINET_IN_H */
17469#ifdef HAVE_NETINET_IP_H
17470#include <netinet/ip.h>
17471#endif /* HAVE_NETINET_IP_H */
17472#ifdef HAVE_NETINET_TCP_H
17473#include <netinet/tcp.h>
17474#endif /* HAVE_NETINET_TCP_H */
17475
17476
17477"
17478if test "x$ac_cv_header_netinet_in_h" = xyes
17479then :
17480  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
17481
17482fi
17483ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default
17484
17485#ifdef HAVE_SYS_TYPES_H
17486#include <sys/types.h>
17487#endif /* HAVE_SYS_TYPES_H */
17488#ifdef HAVE_INTTYPES_H
17489#include <inttypes.h>
17490#endif /* HAVE_INTTYPES_H */
17491#ifdef HAVE_SYS_SOCKET_H
17492#include <sys/socket.h>
17493#endif /* HAVE_SYS_SOCKET_H */
17494#ifdef HAVE_NETINET_IN_H
17495#include <netinet/in.h>
17496#endif /* HAVE_NETINET_IN_H */
17497#ifdef HAVE_NETINET_IP_H
17498#include <netinet/ip.h>
17499#endif /* HAVE_NETINET_IP_H */
17500#ifdef HAVE_NETINET_TCP_H
17501#include <netinet/tcp.h>
17502#endif /* HAVE_NETINET_TCP_H */
17503
17504
17505"
17506if test "x$ac_cv_header_arpa_inet_h" = xyes
17507then :
17508  printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
17509
17510fi
17511ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "$ac_includes_default
17512
17513#ifdef HAVE_SYS_TYPES_H
17514#include <sys/types.h>
17515#endif /* HAVE_SYS_TYPES_H */
17516#ifdef HAVE_INTTYPES_H
17517#include <inttypes.h>
17518#endif /* HAVE_INTTYPES_H */
17519#ifdef HAVE_SYS_SOCKET_H
17520#include <sys/socket.h>
17521#endif /* HAVE_SYS_SOCKET_H */
17522#ifdef HAVE_NETINET_IN_H
17523#include <netinet/in.h>
17524#endif /* HAVE_NETINET_IN_H */
17525#ifdef HAVE_NETINET_IP_H
17526#include <netinet/ip.h>
17527#endif /* HAVE_NETINET_IP_H */
17528#ifdef HAVE_NETINET_TCP_H
17529#include <netinet/tcp.h>
17530#endif /* HAVE_NETINET_TCP_H */
17531
17532
17533"
17534if test "x$ac_cv_header_netinet_ip_h" = xyes
17535then :
17536  printf "%s\n" "#define HAVE_NETINET_IP_H 1" >>confdefs.h
17537
17538fi
17539ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
17540
17541#ifdef HAVE_SYS_TYPES_H
17542#include <sys/types.h>
17543#endif /* HAVE_SYS_TYPES_H */
17544#ifdef HAVE_INTTYPES_H
17545#include <inttypes.h>
17546#endif /* HAVE_INTTYPES_H */
17547#ifdef HAVE_SYS_SOCKET_H
17548#include <sys/socket.h>
17549#endif /* HAVE_SYS_SOCKET_H */
17550#ifdef HAVE_NETINET_IN_H
17551#include <netinet/in.h>
17552#endif /* HAVE_NETINET_IN_H */
17553#ifdef HAVE_NETINET_IP_H
17554#include <netinet/ip.h>
17555#endif /* HAVE_NETINET_IP_H */
17556#ifdef HAVE_NETINET_TCP_H
17557#include <netinet/tcp.h>
17558#endif /* HAVE_NETINET_TCP_H */
17559
17560
17561"
17562if test "x$ac_cv_header_netinet_tcp_h" = xyes
17563then :
17564  printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
17565
17566fi
17567ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
17568
17569#ifdef HAVE_SYS_TYPES_H
17570#include <sys/types.h>
17571#endif /* HAVE_SYS_TYPES_H */
17572#ifdef HAVE_INTTYPES_H
17573#include <inttypes.h>
17574#endif /* HAVE_INTTYPES_H */
17575#ifdef HAVE_SYS_SOCKET_H
17576#include <sys/socket.h>
17577#endif /* HAVE_SYS_SOCKET_H */
17578#ifdef HAVE_NETINET_IN_H
17579#include <netinet/in.h>
17580#endif /* HAVE_NETINET_IN_H */
17581#ifdef HAVE_NETINET_IP_H
17582#include <netinet/ip.h>
17583#endif /* HAVE_NETINET_IP_H */
17584#ifdef HAVE_NETINET_TCP_H
17585#include <netinet/tcp.h>
17586#endif /* HAVE_NETINET_TCP_H */
17587
17588
17589"
17590if test "x$ac_cv_header_net_if_h" = xyes
17591then :
17592  printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
17593
17594fi
17595ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default
17596
17597#ifdef HAVE_SYS_TYPES_H
17598#include <sys/types.h>
17599#endif /* HAVE_SYS_TYPES_H */
17600#ifdef HAVE_INTTYPES_H
17601#include <inttypes.h>
17602#endif /* HAVE_INTTYPES_H */
17603#ifdef HAVE_SYS_SOCKET_H
17604#include <sys/socket.h>
17605#endif /* HAVE_SYS_SOCKET_H */
17606#ifdef HAVE_NETINET_IN_H
17607#include <netinet/in.h>
17608#endif /* HAVE_NETINET_IN_H */
17609#ifdef HAVE_NETINET_IP_H
17610#include <netinet/ip.h>
17611#endif /* HAVE_NETINET_IP_H */
17612#ifdef HAVE_NETINET_TCP_H
17613#include <netinet/tcp.h>
17614#endif /* HAVE_NETINET_TCP_H */
17615
17616
17617"
17618if test "x$ac_cv_header_netdb_h" = xyes
17619then :
17620  printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
17621
17622fi
17623ac_fn_c_check_header_compile "$LINENO" "sockLib.h" "ac_cv_header_sockLib_h" "$ac_includes_default
17624
17625#ifdef HAVE_SYS_TYPES_H
17626#include <sys/types.h>
17627#endif /* HAVE_SYS_TYPES_H */
17628#ifdef HAVE_INTTYPES_H
17629#include <inttypes.h>
17630#endif /* HAVE_INTTYPES_H */
17631#ifdef HAVE_SYS_SOCKET_H
17632#include <sys/socket.h>
17633#endif /* HAVE_SYS_SOCKET_H */
17634#ifdef HAVE_NETINET_IN_H
17635#include <netinet/in.h>
17636#endif /* HAVE_NETINET_IN_H */
17637#ifdef HAVE_NETINET_IP_H
17638#include <netinet/ip.h>
17639#endif /* HAVE_NETINET_IP_H */
17640#ifdef HAVE_NETINET_TCP_H
17641#include <netinet/tcp.h>
17642#endif /* HAVE_NETINET_TCP_H */
17643
17644
17645"
17646if test "x$ac_cv_header_sockLib_h" = xyes
17647then :
17648  printf "%s\n" "#define HAVE_SOCKLIB_H 1" >>confdefs.h
17649
17650fi
17651ac_fn_c_check_header_compile "$LINENO" "inetLib.h" "ac_cv_header_inetLib_h" "$ac_includes_default
17652
17653#ifdef HAVE_SYS_TYPES_H
17654#include <sys/types.h>
17655#endif /* HAVE_SYS_TYPES_H */
17656#ifdef HAVE_INTTYPES_H
17657#include <inttypes.h>
17658#endif /* HAVE_INTTYPES_H */
17659#ifdef HAVE_SYS_SOCKET_H
17660#include <sys/socket.h>
17661#endif /* HAVE_SYS_SOCKET_H */
17662#ifdef HAVE_NETINET_IN_H
17663#include <netinet/in.h>
17664#endif /* HAVE_NETINET_IN_H */
17665#ifdef HAVE_NETINET_IP_H
17666#include <netinet/ip.h>
17667#endif /* HAVE_NETINET_IP_H */
17668#ifdef HAVE_NETINET_TCP_H
17669#include <netinet/tcp.h>
17670#endif /* HAVE_NETINET_TCP_H */
17671
17672
17673"
17674if test "x$ac_cv_header_inetLib_h" = xyes
17675then :
17676  printf "%s\n" "#define HAVE_INETLIB_H 1" >>confdefs.h
17677
17678fi
17679
17680
17681# Check for other optional headers
17682ac_fn_c_check_header_compile "$LINENO" "sys/msg.h" "ac_cv_header_sys_msg_h" "$ac_includes_default
17683"
17684if test "x$ac_cv_header_sys_msg_h" = xyes
17685then :
17686  printf "%s\n" "#define HAVE_SYS_MSG_H 1" >>confdefs.h
17687
17688fi
17689ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default
17690"
17691if test "x$ac_cv_header_sys_mman_h" = xyes
17692then :
17693  printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
17694
17695fi
17696ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default
17697"
17698if test "x$ac_cv_header_signal_h" = xyes
17699then :
17700  printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
17701
17702fi
17703
17704
17705
17706  GNULIB_TSEARCH=0;
17707    GNULIB_MDA_LFIND=1;
17708  GNULIB_MDA_LSEARCH=1;
17709    HAVE_TSEARCH=1;
17710  HAVE_TWALK=1;
17711  REPLACE_TSEARCH=0;
17712
17713ac_fn_c_check_header_compile "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default
17714"
17715if test "x$ac_cv_header_search_h" = xyes
17716then :
17717
17718
17719
17720  ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
17721if test "x$ac_cv_func_tsearch" = xyes
17722then :
17723  printf "%s\n" "#define HAVE_TSEARCH 1" >>confdefs.h
17724
17725fi
17726ac_fn_c_check_func "$LINENO" "twalk" "ac_cv_func_twalk"
17727if test "x$ac_cv_func_twalk" = xyes
17728then :
17729  printf "%s\n" "#define HAVE_TWALK 1" >>confdefs.h
17730
17731fi
17732
17733  if test $ac_cv_func_tsearch = yes; then
17734
17735         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether tdelete works" >&5
17736printf %s "checking whether tdelete works... " >&6; }
17737if test ${gl_cv_func_tdelete_works+y}
17738then :
17739  printf %s "(cached) " >&6
17740else $as_nop
17741
17742        if test "$cross_compiling" = yes
17743then :
17744  case "$host_os" in
17745               openbsd*) gl_cv_func_tdelete_works="guessing no" ;;
17746                         # Guess yes on native Windows.
17747               mingw*)   gl_cv_func_tdelete_works="guessing yes" ;;
17748               *)        gl_cv_func_tdelete_works="guessing yes" ;;
17749             esac
17750
17751else $as_nop
17752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17753/* end confdefs.h.  */
17754
17755#include <stddef.h>
17756#include <search.h>
17757static int
17758cmp_fn (const void *a, const void *b)
17759{
17760  return *(const int *) a - *(const int *) b;
17761}
17762int
17763main ()
17764{
17765  int result = 0;
17766  int x = 0;
17767  void *root = NULL;
17768  if (!(tfind (&x, &root, cmp_fn) == NULL))
17769    result |= 1;
17770  tsearch (&x, &root, cmp_fn);
17771  if (!(tfind (&x, &root, cmp_fn) != NULL))
17772    result |= 2;
17773  if (!(tdelete (&x, &root, cmp_fn) != NULL))
17774    result |= 4;
17775  return result;
17776}
17777_ACEOF
17778if ac_fn_c_try_run "$LINENO"
17779then :
17780  gl_cv_func_tdelete_works=yes
17781else $as_nop
17782  gl_cv_func_tdelete_works=no
17783fi
17784rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17785  conftest.$ac_objext conftest.beam conftest.$ac_ext
17786fi
17787
17788
17789fi
17790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_tdelete_works" >&5
17791printf "%s\n" "$gl_cv_func_tdelete_works" >&6; }
17792    case "$gl_cv_func_tdelete_works" in
17793      *no)
17794        REPLACE_TSEARCH=1
17795        ;;
17796    esac
17797  else
17798    HAVE_TSEARCH=0
17799  fi
17800  if test $ac_cv_func_twalk != yes; then
17801    HAVE_TWALK=0
17802  fi
17803
17804   if test "x$HAVE_TSEARCH" = "x1" && test "x$REPLACE_TSEARCH" != "x1"
17805then :
17806
17807printf "%s\n" "#define HAVE_SEARCH_H 1" >>confdefs.h
17808
17809fi
17810
17811fi
17812
17813
17814 if test "x$ac_cv_header_search_h" = xyes && test "x$HAVE_TSEARCH" = "x1" && test "x$REPLACE_TSEARCH" != "x1"; then
17815  MHD_HAVE_TSEARCH_TRUE=
17816  MHD_HAVE_TSEARCH_FALSE='#'
17817else
17818  MHD_HAVE_TSEARCH_TRUE='#'
17819  MHD_HAVE_TSEARCH_FALSE=
17820fi
17821
17822
17823# Optional headers used for tests
17824ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
17825#ifdef HAVE_SYS_TYPES_H
17826#include <sys/types.h>
17827#endif /* HAVE_SYS_TYPES_H */
17828#ifdef HAVE_SYS_SYSCTL_H
17829#include <sys/sysctl.h>
17830#endif /* HAVE_SYS_SYSCTL_H */
17831#ifdef HAVE_SYS_SOCKET_H
17832#include <sys/socket.h>
17833#endif /* HAVE_SYS_SOCKET_H */
17834#ifdef HAVE_NETINET_IN_H
17835#include <netinet/in.h>
17836#endif /* HAVE_NETINET_IN_H */
17837#ifdef HAVE_NETINET_IP_H
17838#include <netinet/ip.h>
17839#endif /* HAVE_NETINET_IP_H */
17840#ifdef HAVE_NETINET_IP_ICMP_H
17841#include <netinet/ip_icmp.h>
17842#endif /* HAVE_NETINET_IP_ICMP_H */
17843
17844
17845"
17846if test "x$ac_cv_header_sys_sysctl_h" = xyes
17847then :
17848  printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h
17849
17850fi
17851ac_fn_c_check_header_compile "$LINENO" "netinet/ip_icmp.h" "ac_cv_header_netinet_ip_icmp_h" "
17852#ifdef HAVE_SYS_TYPES_H
17853#include <sys/types.h>
17854#endif /* HAVE_SYS_TYPES_H */
17855#ifdef HAVE_SYS_SYSCTL_H
17856#include <sys/sysctl.h>
17857#endif /* HAVE_SYS_SYSCTL_H */
17858#ifdef HAVE_SYS_SOCKET_H
17859#include <sys/socket.h>
17860#endif /* HAVE_SYS_SOCKET_H */
17861#ifdef HAVE_NETINET_IN_H
17862#include <netinet/in.h>
17863#endif /* HAVE_NETINET_IN_H */
17864#ifdef HAVE_NETINET_IP_H
17865#include <netinet/ip.h>
17866#endif /* HAVE_NETINET_IP_H */
17867#ifdef HAVE_NETINET_IP_ICMP_H
17868#include <netinet/ip_icmp.h>
17869#endif /* HAVE_NETINET_IP_ICMP_H */
17870
17871
17872"
17873if test "x$ac_cv_header_netinet_ip_icmp_h" = xyes
17874then :
17875  printf "%s\n" "#define HAVE_NETINET_IP_ICMP_H 1" >>confdefs.h
17876
17877fi
17878ac_fn_c_check_header_compile "$LINENO" "netinet/icmp_var.h" "ac_cv_header_netinet_icmp_var_h" "
17879#ifdef HAVE_SYS_TYPES_H
17880#include <sys/types.h>
17881#endif /* HAVE_SYS_TYPES_H */
17882#ifdef HAVE_SYS_SYSCTL_H
17883#include <sys/sysctl.h>
17884#endif /* HAVE_SYS_SYSCTL_H */
17885#ifdef HAVE_SYS_SOCKET_H
17886#include <sys/socket.h>
17887#endif /* HAVE_SYS_SOCKET_H */
17888#ifdef HAVE_NETINET_IN_H
17889#include <netinet/in.h>
17890#endif /* HAVE_NETINET_IN_H */
17891#ifdef HAVE_NETINET_IP_H
17892#include <netinet/ip.h>
17893#endif /* HAVE_NETINET_IP_H */
17894#ifdef HAVE_NETINET_IP_ICMP_H
17895#include <netinet/ip_icmp.h>
17896#endif /* HAVE_NETINET_IP_ICMP_H */
17897
17898
17899"
17900if test "x$ac_cv_header_netinet_icmp_var_h" = xyes
17901then :
17902  printf "%s\n" "#define HAVE_NETINET_ICMP_VAR_H 1" >>confdefs.h
17903
17904fi
17905
17906
17907# Checks for gettext.
17908
17909  if test ${enable_nls+y}
17910then :
17911
17912else $as_nop
17913  enable_nls=no
17914fi
17915
17916  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17917printf %s "checking whether NLS is requested... " >&6; }
17918    # Check whether --enable-nls was given.
17919if test ${enable_nls+y}
17920then :
17921  enableval=$enable_nls; USE_NLS=$enableval
17922else $as_nop
17923  USE_NLS=yes
17924fi
17925
17926  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17927printf "%s\n" "$USE_NLS" >&6; }
17928
17929
17930
17931
17932      GETTEXT_MACRO_VERSION=0.20
17933
17934
17935
17936
17937# Prepare PATH_SEPARATOR.
17938# The user is always right.
17939if test "${PATH_SEPARATOR+set}" != set; then
17940  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
17941  # contains only /bin. Note that ksh looks also at the FPATH variable,
17942  # so we have to set that as well for the test.
17943  PATH_SEPARATOR=:
17944  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17945    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17946           || PATH_SEPARATOR=';'
17947       }
17948fi
17949
17950# Find out how to test for executable files. Don't use a zero-byte file,
17951# as systems may use methods other than mode bits to determine executability.
17952cat >conf$$.file <<_ASEOF
17953#! /bin/sh
17954exit 0
17955_ASEOF
17956chmod +x conf$$.file
17957if test -x conf$$.file >/dev/null 2>&1; then
17958  ac_executable_p="test -x"
17959else
17960  ac_executable_p="test -f"
17961fi
17962rm -f conf$$.file
17963
17964# Extract the first word of "msgfmt", so it can be a program name with args.
17965set dummy msgfmt; ac_word=$2
17966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17967printf %s "checking for $ac_word... " >&6; }
17968if test ${ac_cv_path_MSGFMT+y}
17969then :
17970  printf %s "(cached) " >&6
17971else $as_nop
17972  case "$MSGFMT" in
17973  [\\/]* | ?:[\\/]*)
17974    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17975    ;;
17976  *)
17977    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17978    for ac_dir in $PATH; do
17979      IFS="$ac_save_IFS"
17980      test -z "$ac_dir" && ac_dir=.
17981      for ac_exec_ext in '' $ac_executable_extensions; do
17982        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17983          echo "$as_me: trying $ac_dir/$ac_word..." >&5
17984          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17985     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17986            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17987            break 2
17988          fi
17989        fi
17990      done
17991    done
17992    IFS="$ac_save_IFS"
17993  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17994    ;;
17995esac
17996fi
17997MSGFMT="$ac_cv_path_MSGFMT"
17998if test "$MSGFMT" != ":"; then
17999  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18000printf "%s\n" "$MSGFMT" >&6; }
18001else
18002  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18003printf "%s\n" "no" >&6; }
18004fi
18005
18006  # Extract the first word of "gmsgfmt", so it can be a program name with args.
18007set dummy gmsgfmt; ac_word=$2
18008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18009printf %s "checking for $ac_word... " >&6; }
18010if test ${ac_cv_path_GMSGFMT+y}
18011then :
18012  printf %s "(cached) " >&6
18013else $as_nop
18014  case $GMSGFMT in
18015  [\\/]* | ?:[\\/]*)
18016  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
18017  ;;
18018  *)
18019  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18020for as_dir in $PATH
18021do
18022  IFS=$as_save_IFS
18023  case $as_dir in #(((
18024    '') as_dir=./ ;;
18025    */) ;;
18026    *) as_dir=$as_dir/ ;;
18027  esac
18028    for ac_exec_ext in '' $ac_executable_extensions; do
18029  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18030    ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
18031    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18032    break 2
18033  fi
18034done
18035  done
18036IFS=$as_save_IFS
18037
18038  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
18039  ;;
18040esac
18041fi
18042GMSGFMT=$ac_cv_path_GMSGFMT
18043if test -n "$GMSGFMT"; then
18044  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
18045printf "%s\n" "$GMSGFMT" >&6; }
18046else
18047  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18048printf "%s\n" "no" >&6; }
18049fi
18050
18051
18052
18053    case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
18054    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
18055    *) GMSGFMT_015=$GMSGFMT ;;
18056  esac
18057
18058
18059
18060# Prepare PATH_SEPARATOR.
18061# The user is always right.
18062if test "${PATH_SEPARATOR+set}" != set; then
18063  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
18064  # contains only /bin. Note that ksh looks also at the FPATH variable,
18065  # so we have to set that as well for the test.
18066  PATH_SEPARATOR=:
18067  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18068    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18069           || PATH_SEPARATOR=';'
18070       }
18071fi
18072
18073# Find out how to test for executable files. Don't use a zero-byte file,
18074# as systems may use methods other than mode bits to determine executability.
18075cat >conf$$.file <<_ASEOF
18076#! /bin/sh
18077exit 0
18078_ASEOF
18079chmod +x conf$$.file
18080if test -x conf$$.file >/dev/null 2>&1; then
18081  ac_executable_p="test -x"
18082else
18083  ac_executable_p="test -f"
18084fi
18085rm -f conf$$.file
18086
18087# Extract the first word of "xgettext", so it can be a program name with args.
18088set dummy xgettext; ac_word=$2
18089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18090printf %s "checking for $ac_word... " >&6; }
18091if test ${ac_cv_path_XGETTEXT+y}
18092then :
18093  printf %s "(cached) " >&6
18094else $as_nop
18095  case "$XGETTEXT" in
18096  [\\/]* | ?:[\\/]*)
18097    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
18098    ;;
18099  *)
18100    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18101    for ac_dir in $PATH; do
18102      IFS="$ac_save_IFS"
18103      test -z "$ac_dir" && ac_dir=.
18104      for ac_exec_ext in '' $ac_executable_extensions; do
18105        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18106          echo "$as_me: trying $ac_dir/$ac_word..." >&5
18107          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
18108     (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
18109            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
18110            break 2
18111          fi
18112        fi
18113      done
18114    done
18115    IFS="$ac_save_IFS"
18116  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
18117    ;;
18118esac
18119fi
18120XGETTEXT="$ac_cv_path_XGETTEXT"
18121if test "$XGETTEXT" != ":"; then
18122  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18123printf "%s\n" "$XGETTEXT" >&6; }
18124else
18125  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18126printf "%s\n" "no" >&6; }
18127fi
18128
18129    rm -f messages.po
18130
18131    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
18132    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
18133    *) XGETTEXT_015=$XGETTEXT ;;
18134  esac
18135
18136
18137
18138# Prepare PATH_SEPARATOR.
18139# The user is always right.
18140if test "${PATH_SEPARATOR+set}" != set; then
18141  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
18142  # contains only /bin. Note that ksh looks also at the FPATH variable,
18143  # so we have to set that as well for the test.
18144  PATH_SEPARATOR=:
18145  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18146    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18147           || PATH_SEPARATOR=';'
18148       }
18149fi
18150
18151# Find out how to test for executable files. Don't use a zero-byte file,
18152# as systems may use methods other than mode bits to determine executability.
18153cat >conf$$.file <<_ASEOF
18154#! /bin/sh
18155exit 0
18156_ASEOF
18157chmod +x conf$$.file
18158if test -x conf$$.file >/dev/null 2>&1; then
18159  ac_executable_p="test -x"
18160else
18161  ac_executable_p="test -f"
18162fi
18163rm -f conf$$.file
18164
18165# Extract the first word of "msgmerge", so it can be a program name with args.
18166set dummy msgmerge; ac_word=$2
18167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18168printf %s "checking for $ac_word... " >&6; }
18169if test ${ac_cv_path_MSGMERGE+y}
18170then :
18171  printf %s "(cached) " >&6
18172else $as_nop
18173  case "$MSGMERGE" in
18174  [\\/]* | ?:[\\/]*)
18175    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
18176    ;;
18177  *)
18178    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18179    for ac_dir in $PATH; do
18180      IFS="$ac_save_IFS"
18181      test -z "$ac_dir" && ac_dir=.
18182      for ac_exec_ext in '' $ac_executable_extensions; do
18183        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18184          echo "$as_me: trying $ac_dir/$ac_word..." >&5
18185          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
18186            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
18187            break 2
18188          fi
18189        fi
18190      done
18191    done
18192    IFS="$ac_save_IFS"
18193  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
18194    ;;
18195esac
18196fi
18197MSGMERGE="$ac_cv_path_MSGMERGE"
18198if test "$MSGMERGE" != ":"; then
18199  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18200printf "%s\n" "$MSGMERGE" >&6; }
18201else
18202  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18203printf "%s\n" "no" >&6; }
18204fi
18205
18206
18207    if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
18208    MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
18209  else
18210        if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
18211      MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
18212    else
18213                        MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
18214    fi
18215  fi
18216
18217
18218    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
18219
18220
18221  ac_config_commands="$ac_config_commands po-directories"
18222
18223
18224
18225      if test "X$prefix" = "XNONE"; then
18226    acl_final_prefix="$ac_default_prefix"
18227  else
18228    acl_final_prefix="$prefix"
18229  fi
18230  if test "X$exec_prefix" = "XNONE"; then
18231    acl_final_exec_prefix='${prefix}'
18232  else
18233    acl_final_exec_prefix="$exec_prefix"
18234  fi
18235  acl_save_prefix="$prefix"
18236  prefix="$acl_final_prefix"
18237  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
18238  prefix="$acl_save_prefix"
18239
18240
18241
18242# Check whether --with-gnu-ld was given.
18243if test ${with_gnu_ld+y}
18244then :
18245  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18246else $as_nop
18247  with_gnu_ld=no
18248fi
18249
18250# Prepare PATH_SEPARATOR.
18251# The user is always right.
18252if test "${PATH_SEPARATOR+set}" != set; then
18253  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
18254  # contains only /bin. Note that ksh looks also at the FPATH variable,
18255  # so we have to set that as well for the test.
18256  PATH_SEPARATOR=:
18257  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18258    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18259           || PATH_SEPARATOR=';'
18260       }
18261fi
18262
18263if test -n "$LD"; then
18264  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
18265printf %s "checking for ld... " >&6; }
18266elif test "$GCC" = yes; then
18267  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18268printf %s "checking for ld used by $CC... " >&6; }
18269elif test "$with_gnu_ld" = yes; then
18270  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18271printf %s "checking for GNU ld... " >&6; }
18272else
18273  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18274printf %s "checking for non-GNU ld... " >&6; }
18275fi
18276if test -n "$LD"; then
18277  # Let the user override the test with a path.
18278  :
18279else
18280  if test ${acl_cv_path_LD+y}
18281then :
18282  printf %s "(cached) " >&6
18283else $as_nop
18284
18285    acl_cv_path_LD= # Final result of this test
18286    ac_prog=ld # Program to search in $PATH
18287    if test "$GCC" = yes; then
18288      # Check if gcc -print-prog-name=ld gives a path.
18289      case $host in
18290        *-*-mingw*)
18291          # gcc leaves a trailing carriage return which upsets mingw
18292          acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18293        *)
18294          acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
18295      esac
18296      case $acl_output in
18297        # Accept absolute paths.
18298        [\\/]* | ?:[\\/]*)
18299          re_direlt='/[^/][^/]*/\.\./'
18300          # Canonicalize the pathname of ld
18301          acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
18302          while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
18303            acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
18304          done
18305          # Got the pathname. No search in PATH is needed.
18306          acl_cv_path_LD="$acl_output"
18307          ac_prog=
18308          ;;
18309        "")
18310          # If it fails, then pretend we aren't using GCC.
18311          ;;
18312        *)
18313          # If it is relative, then search for the first ld in PATH.
18314          with_gnu_ld=unknown
18315          ;;
18316      esac
18317    fi
18318    if test -n "$ac_prog"; then
18319      # Search for $ac_prog in $PATH.
18320      acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18321      for ac_dir in $PATH; do
18322        IFS="$acl_save_ifs"
18323        test -z "$ac_dir" && ac_dir=.
18324        if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18325          acl_cv_path_LD="$ac_dir/$ac_prog"
18326          # Check to see if the program is GNU ld.  I'd rather use --version,
18327          # but apparently some variants of GNU ld only accept -v.
18328          # Break only if it was the GNU/non-GNU ld that we prefer.
18329          case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
18330            *GNU* | *'with BFD'*)
18331              test "$with_gnu_ld" != no && break
18332              ;;
18333            *)
18334              test "$with_gnu_ld" != yes && break
18335              ;;
18336          esac
18337        fi
18338      done
18339      IFS="$acl_save_ifs"
18340    fi
18341    case $host in
18342      *-*-aix*)
18343        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18344/* end confdefs.h.  */
18345#if defined __powerpc64__ || defined _ARCH_PPC64
18346                int ok;
18347               #else
18348                error fail
18349               #endif
18350
18351_ACEOF
18352if ac_fn_c_try_compile "$LINENO"
18353then :
18354  # The compiler produces 64-bit code. Add option '-b64' so that the
18355           # linker groks 64-bit object files.
18356           case "$acl_cv_path_LD " in
18357             *" -b64 "*) ;;
18358             *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
18359           esac
18360
18361fi
18362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18363        ;;
18364      sparc64-*-netbsd*)
18365        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18366/* end confdefs.h.  */
18367#if defined __sparcv9 || defined __arch64__
18368                int ok;
18369               #else
18370                error fail
18371               #endif
18372
18373_ACEOF
18374if ac_fn_c_try_compile "$LINENO"
18375then :
18376
18377else $as_nop
18378  # The compiler produces 32-bit code. Add option '-m elf32_sparc'
18379           # so that the linker groks 32-bit object files.
18380           case "$acl_cv_path_LD " in
18381             *" -m elf32_sparc "*) ;;
18382             *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
18383           esac
18384
18385fi
18386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18387        ;;
18388    esac
18389
18390fi
18391
18392  LD="$acl_cv_path_LD"
18393fi
18394if test -n "$LD"; then
18395  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18396printf "%s\n" "$LD" >&6; }
18397else
18398  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18399printf "%s\n" "no" >&6; }
18400  as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
18401fi
18402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18403printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
18404if test ${acl_cv_prog_gnu_ld+y}
18405then :
18406  printf %s "(cached) " >&6
18407else $as_nop
18408  # I'd rather use --version here, but apparently some GNU lds only accept -v.
18409case `$LD -v 2>&1 </dev/null` in
18410*GNU* | *'with BFD'*)
18411  acl_cv_prog_gnu_ld=yes
18412  ;;
18413*)
18414  acl_cv_prog_gnu_ld=no
18415  ;;
18416esac
18417fi
18418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
18419printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
18420with_gnu_ld=$acl_cv_prog_gnu_ld
18421
18422
18423
18424
18425
18426                                                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
18427printf %s "checking for shared library run path origin... " >&6; }
18428if test ${acl_cv_rpath+y}
18429then :
18430  printf %s "(cached) " >&6
18431else $as_nop
18432
18433    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
18434    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
18435    . ./conftest.sh
18436    rm -f ./conftest.sh
18437    acl_cv_rpath=done
18438
18439fi
18440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
18441printf "%s\n" "$acl_cv_rpath" >&6; }
18442  wl="$acl_cv_wl"
18443  acl_libext="$acl_cv_libext"
18444  acl_shlibext="$acl_cv_shlibext"
18445  acl_libname_spec="$acl_cv_libname_spec"
18446  acl_library_names_spec="$acl_cv_library_names_spec"
18447  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
18448  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
18449  acl_hardcode_direct="$acl_cv_hardcode_direct"
18450  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
18451    # Check whether --enable-rpath was given.
18452if test ${enable_rpath+y}
18453then :
18454  enableval=$enable_rpath; :
18455else $as_nop
18456  enable_rpath=yes
18457fi
18458
18459
18460
18461
18462  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
18463printf %s "checking 32-bit host C ABI... " >&6; }
18464if test ${gl_cv_host_cpu_c_abi_32bit+y}
18465then :
18466  printf %s "(cached) " >&6
18467else $as_nop
18468  if test -n "$gl_cv_host_cpu_c_abi"; then
18469       case "$gl_cv_host_cpu_c_abi" in
18470         i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
18471           gl_cv_host_cpu_c_abi_32bit=yes ;;
18472         x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
18473           gl_cv_host_cpu_c_abi_32bit=no ;;
18474         *)
18475           gl_cv_host_cpu_c_abi_32bit=unknown ;;
18476       esac
18477     else
18478       case "$host_cpu" in
18479
18480         # CPUs that only support a 32-bit ABI.
18481         arc \
18482         | bfin \
18483         | cris* \
18484         | csky \
18485         | epiphany \
18486         | ft32 \
18487         | h8300 \
18488         | m68k \
18489         | microblaze | microblazeel \
18490         | nds32 | nds32le | nds32be \
18491         | nios2 | nios2eb | nios2el \
18492         | or1k* \
18493         | or32 \
18494         | sh | sh1234 | sh1234elb \
18495         | tic6x \
18496         | xtensa* )
18497           gl_cv_host_cpu_c_abi_32bit=yes
18498           ;;
18499
18500         # CPUs that only support a 64-bit ABI.
18501         alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
18502         | mmix )
18503           gl_cv_host_cpu_c_abi_32bit=no
18504           ;;
18505
18506         i[34567]86 )
18507           gl_cv_host_cpu_c_abi_32bit=yes
18508           ;;
18509
18510         x86_64 )
18511           # On x86_64 systems, the C compiler may be generating code in one of
18512           # these ABIs:
18513           # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
18514           # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
18515           #   with native Windows (mingw, MSVC).
18516           # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
18517           # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
18518           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18519/* end confdefs.h.  */
18520#if (defined __x86_64__ || defined __amd64__ \
18521                       || defined _M_X64 || defined _M_AMD64) \
18522                      && !(defined __ILP32__ || defined _ILP32)
18523                   int ok;
18524                  #else
18525                   error fail
18526                  #endif
18527
18528_ACEOF
18529if ac_fn_c_try_compile "$LINENO"
18530then :
18531  gl_cv_host_cpu_c_abi_32bit=no
18532else $as_nop
18533  gl_cv_host_cpu_c_abi_32bit=yes
18534fi
18535rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18536           ;;
18537
18538         arm* | aarch64 )
18539           # Assume arm with EABI.
18540           # On arm64 systems, the C compiler may be generating code in one of
18541           # these ABIs:
18542           # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
18543           # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
18544           # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
18545           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18546/* end confdefs.h.  */
18547#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
18548                   int ok;
18549                  #else
18550                   error fail
18551                  #endif
18552
18553_ACEOF
18554if ac_fn_c_try_compile "$LINENO"
18555then :
18556  gl_cv_host_cpu_c_abi_32bit=no
18557else $as_nop
18558  gl_cv_host_cpu_c_abi_32bit=yes
18559fi
18560rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18561           ;;
18562
18563         hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
18564           # On hppa, the C compiler may be generating 32-bit code or 64-bit
18565           # code. In the latter case, it defines _LP64 and __LP64__.
18566           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18567/* end confdefs.h.  */
18568#ifdef __LP64__
18569                   int ok;
18570                  #else
18571                   error fail
18572                  #endif
18573
18574_ACEOF
18575if ac_fn_c_try_compile "$LINENO"
18576then :
18577  gl_cv_host_cpu_c_abi_32bit=no
18578else $as_nop
18579  gl_cv_host_cpu_c_abi_32bit=yes
18580fi
18581rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18582           ;;
18583
18584         ia64* )
18585           # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
18586           # 32-bit code. In the latter case, it defines _ILP32.
18587           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18588/* end confdefs.h.  */
18589#ifdef _ILP32
18590                   int ok;
18591                  #else
18592                   error fail
18593                  #endif
18594
18595_ACEOF
18596if ac_fn_c_try_compile "$LINENO"
18597then :
18598  gl_cv_host_cpu_c_abi_32bit=yes
18599else $as_nop
18600  gl_cv_host_cpu_c_abi_32bit=no
18601fi
18602rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18603           ;;
18604
18605         mips* )
18606           # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
18607           # at 32.
18608           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18609/* end confdefs.h.  */
18610#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
18611                   int ok;
18612                  #else
18613                   error fail
18614                  #endif
18615
18616_ACEOF
18617if ac_fn_c_try_compile "$LINENO"
18618then :
18619  gl_cv_host_cpu_c_abi_32bit=no
18620else $as_nop
18621  gl_cv_host_cpu_c_abi_32bit=yes
18622fi
18623rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18624           ;;
18625
18626         powerpc* )
18627           # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
18628           # No need to distinguish them here; the caller may distinguish
18629           # them based on the OS.
18630           # On powerpc64 systems, the C compiler may still be generating
18631           # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
18632           # be generating 64-bit code.
18633           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18634/* end confdefs.h.  */
18635#if defined __powerpc64__ || defined _ARCH_PPC64
18636                   int ok;
18637                  #else
18638                   error fail
18639                  #endif
18640
18641_ACEOF
18642if ac_fn_c_try_compile "$LINENO"
18643then :
18644  gl_cv_host_cpu_c_abi_32bit=no
18645else $as_nop
18646  gl_cv_host_cpu_c_abi_32bit=yes
18647fi
18648rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18649           ;;
18650
18651         rs6000 )
18652           gl_cv_host_cpu_c_abi_32bit=yes
18653           ;;
18654
18655         riscv32 | riscv64 )
18656           # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
18657           # Size of 'long' and 'void *':
18658           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18659/* end confdefs.h.  */
18660#if defined __LP64__
18661                    int ok;
18662                  #else
18663                    error fail
18664                  #endif
18665
18666_ACEOF
18667if ac_fn_c_try_compile "$LINENO"
18668then :
18669  gl_cv_host_cpu_c_abi_32bit=no
18670else $as_nop
18671  gl_cv_host_cpu_c_abi_32bit=yes
18672fi
18673rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18674           ;;
18675
18676         s390* )
18677           # On s390x, the C compiler may be generating 64-bit (= s390x) code
18678           # or 31-bit (= s390) code.
18679           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18680/* end confdefs.h.  */
18681#if defined __LP64__ || defined __s390x__
18682                    int ok;
18683                  #else
18684                    error fail
18685                  #endif
18686
18687_ACEOF
18688if ac_fn_c_try_compile "$LINENO"
18689then :
18690  gl_cv_host_cpu_c_abi_32bit=no
18691else $as_nop
18692  gl_cv_host_cpu_c_abi_32bit=yes
18693fi
18694rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18695           ;;
18696
18697         sparc | sparc64 )
18698           # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
18699           # C compiler still generates 32-bit code.
18700           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18701/* end confdefs.h.  */
18702#if defined __sparcv9 || defined __arch64__
18703                   int ok;
18704                  #else
18705                   error fail
18706                  #endif
18707
18708_ACEOF
18709if ac_fn_c_try_compile "$LINENO"
18710then :
18711  gl_cv_host_cpu_c_abi_32bit=no
18712else $as_nop
18713  gl_cv_host_cpu_c_abi_32bit=yes
18714fi
18715rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18716           ;;
18717
18718         *)
18719           gl_cv_host_cpu_c_abi_32bit=unknown
18720           ;;
18721       esac
18722     fi
18723
18724fi
18725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
18726printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
18727
18728  HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
18729
18730
18731
18732
18733
18734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
18735printf %s "checking for ELF binary format... " >&6; }
18736if test ${gl_cv_elf+y}
18737then :
18738  printf %s "(cached) " >&6
18739else $as_nop
18740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18741/* end confdefs.h.  */
18742#ifdef __ELF__
18743        Extensible Linking Format
18744        #endif
18745
18746_ACEOF
18747if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18748  $EGREP "Extensible Linking Format" >/dev/null 2>&1
18749then :
18750  gl_cv_elf=yes
18751else $as_nop
18752  gl_cv_elf=no
18753fi
18754rm -rf conftest*
18755
18756
18757fi
18758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
18759printf "%s\n" "$gl_cv_elf" >&6; }
18760  if test $gl_cv_elf = yes; then
18761    # Extract the ELF class of a file (5th byte) in decimal.
18762    # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
18763    if od -A x < /dev/null >/dev/null 2>/dev/null; then
18764      # Use POSIX od.
18765      func_elfclass ()
18766      {
18767        od -A n -t d1 -j 4 -N 1
18768      }
18769    else
18770      # Use BSD hexdump.
18771      func_elfclass ()
18772      {
18773        dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
18774        echo
18775      }
18776    fi
18777    # Use 'expr', not 'test', to compare the values of func_elfclass, because on
18778    # Solaris 11 OpenIndiana and Solaris 11 OmniOS, the result is 001 or 002,
18779    # not 1 or 2.
18780    case $HOST_CPU_C_ABI_32BIT in
18781      yes)
18782        # 32-bit ABI.
18783        acl_is_expected_elfclass ()
18784        {
18785          expr "`func_elfclass | sed -e 's/[ 	]//g'`" = 1 > /dev/null
18786        }
18787        ;;
18788      no)
18789        # 64-bit ABI.
18790        acl_is_expected_elfclass ()
18791        {
18792          expr "`func_elfclass | sed -e 's/[ 	]//g'`" = 2 > /dev/null
18793        }
18794        ;;
18795      *)
18796        # Unknown.
18797        acl_is_expected_elfclass ()
18798        {
18799          :
18800        }
18801        ;;
18802    esac
18803  else
18804    acl_is_expected_elfclass ()
18805    {
18806      :
18807    }
18808  fi
18809
18810    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
18811printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
18812if test ${acl_cv_libdirstems+y}
18813then :
18814  printf %s "(cached) " >&6
18815else $as_nop
18816            acl_libdirstem=lib
18817     acl_libdirstem2=
18818     acl_libdirstem3=
18819     case "$host_os" in
18820       solaris*)
18821                                                      if test $HOST_CPU_C_ABI_32BIT = no; then
18822           acl_libdirstem2=lib/64
18823           case "$host_cpu" in
18824             sparc*)        acl_libdirstem3=lib/sparcv9 ;;
18825             i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
18826           esac
18827         fi
18828         ;;
18829       *)
18830                                                                                 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
18831                     | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
18832         if test $HOST_CPU_C_ABI_32BIT != no; then
18833           # 32-bit or unknown ABI.
18834           if test -d /usr/lib32; then
18835             acl_libdirstem2=lib32
18836           fi
18837         fi
18838         if test $HOST_CPU_C_ABI_32BIT != yes; then
18839           # 64-bit or unknown ABI.
18840           if test -d /usr/lib64; then
18841             acl_libdirstem3=lib64
18842           fi
18843         fi
18844         if test -n "$searchpath"; then
18845           acl_save_IFS="${IFS= 	}"; IFS=":"
18846           for searchdir in $searchpath; do
18847             if test -d "$searchdir"; then
18848               case "$searchdir" in
18849                 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
18850                 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
18851                 */../ | */.. )
18852                   # Better ignore directories of this form. They are misleading.
18853                   ;;
18854                 *) searchdir=`cd "$searchdir" && pwd`
18855                    case "$searchdir" in
18856                      */lib32 ) acl_libdirstem2=lib32 ;;
18857                      */lib64 ) acl_libdirstem3=lib64 ;;
18858                    esac ;;
18859               esac
18860             fi
18861           done
18862           IFS="$acl_save_IFS"
18863           if test $HOST_CPU_C_ABI_32BIT = yes; then
18864             # 32-bit ABI.
18865             acl_libdirstem3=
18866           fi
18867           if test $HOST_CPU_C_ABI_32BIT = no; then
18868             # 64-bit ABI.
18869             acl_libdirstem2=
18870           fi
18871         fi
18872         ;;
18873     esac
18874     test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
18875     test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
18876     acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
18877
18878fi
18879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
18880printf "%s\n" "$acl_cv_libdirstems" >&6; }
18881      acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
18882  acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
18883  acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
18884
18885
18886
18887
18888
18889
18890
18891
18892
18893
18894
18895    use_additional=yes
18896
18897  acl_save_prefix="$prefix"
18898  prefix="$acl_final_prefix"
18899  acl_save_exec_prefix="$exec_prefix"
18900  exec_prefix="$acl_final_exec_prefix"
18901
18902    eval additional_includedir=\"$includedir\"
18903    eval additional_libdir=\"$libdir\"
18904    eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
18905    eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
18906
18907  exec_prefix="$acl_save_exec_prefix"
18908  prefix="$acl_save_prefix"
18909
18910
18911# Check whether --with-libiconv-prefix was given.
18912if test ${with_libiconv_prefix+y}
18913then :
18914  withval=$with_libiconv_prefix;
18915    if test "X$withval" = "Xno"; then
18916      use_additional=no
18917    else
18918      if test "X$withval" = "X"; then
18919
18920  acl_save_prefix="$prefix"
18921  prefix="$acl_final_prefix"
18922  acl_save_exec_prefix="$exec_prefix"
18923  exec_prefix="$acl_final_exec_prefix"
18924
18925          eval additional_includedir=\"$includedir\"
18926          eval additional_libdir=\"$libdir\"
18927          eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
18928          eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
18929
18930  exec_prefix="$acl_save_exec_prefix"
18931  prefix="$acl_save_prefix"
18932
18933      else
18934        additional_includedir="$withval/include"
18935        additional_libdir="$withval/$acl_libdirstem"
18936        additional_libdir2="$withval/$acl_libdirstem2"
18937        additional_libdir3="$withval/$acl_libdirstem3"
18938      fi
18939    fi
18940
18941fi
18942
18943  if test "X$additional_libdir2" = "X$additional_libdir"; then
18944    additional_libdir2=
18945  fi
18946  if test "X$additional_libdir3" = "X$additional_libdir"; then
18947    additional_libdir3=
18948  fi
18949      LIBICONV=
18950  LTLIBICONV=
18951  INCICONV=
18952  LIBICONV_PREFIX=
18953      HAVE_LIBICONV=
18954  rpathdirs=
18955  ltrpathdirs=
18956  names_already_handled=
18957  names_next_round='iconv '
18958  while test -n "$names_next_round"; do
18959    names_this_round="$names_next_round"
18960    names_next_round=
18961    for name in $names_this_round; do
18962      already_handled=
18963      for n in $names_already_handled; do
18964        if test "$n" = "$name"; then
18965          already_handled=yes
18966          break
18967        fi
18968      done
18969      if test -z "$already_handled"; then
18970        names_already_handled="$names_already_handled $name"
18971                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
18972        eval value=\"\$HAVE_LIB$uppername\"
18973        if test -n "$value"; then
18974          if test "$value" = yes; then
18975            eval value=\"\$LIB$uppername\"
18976            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
18977            eval value=\"\$LTLIB$uppername\"
18978            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
18979          else
18980                                    :
18981          fi
18982        else
18983                              found_dir=
18984          found_la=
18985          found_so=
18986          found_a=
18987          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
18988          if test -n "$acl_shlibext"; then
18989            shrext=".$acl_shlibext"             # typically: shrext=.so
18990          else
18991            shrext=
18992          fi
18993          if test $use_additional = yes; then
18994            for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
18995              if test "X$found_dir" = "X"; then
18996                eval dir=\$$additional_libdir_variable
18997                if test -n "$dir"; then
18998                                                      if test -n "$acl_shlibext"; then
18999                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
19000                      found_dir="$dir"
19001                      found_so="$dir/$libname$shrext"
19002                    else
19003                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19004                        ver=`(cd "$dir" && \
19005                              for f in "$libname$shrext".*; do echo "$f"; done \
19006                              | sed -e "s,^$libname$shrext\\\\.,," \
19007                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19008                              | sed 1q ) 2>/dev/null`
19009                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
19010                          found_dir="$dir"
19011                          found_so="$dir/$libname$shrext.$ver"
19012                        fi
19013                      else
19014                        eval library_names=\"$acl_library_names_spec\"
19015                        for f in $library_names; do
19016                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
19017                            found_dir="$dir"
19018                            found_so="$dir/$f"
19019                            break
19020                          fi
19021                        done
19022                      fi
19023                    fi
19024                  fi
19025                                    if test "X$found_dir" = "X"; then
19026                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
19027                      found_dir="$dir"
19028                      found_a="$dir/$libname.$acl_libext"
19029                    fi
19030                  fi
19031                  if test "X$found_dir" != "X"; then
19032                    if test -f "$dir/$libname.la"; then
19033                      found_la="$dir/$libname.la"
19034                    fi
19035                  fi
19036                fi
19037              fi
19038            done
19039          fi
19040          if test "X$found_dir" = "X"; then
19041            for x in $LDFLAGS $LTLIBICONV; do
19042
19043  acl_save_prefix="$prefix"
19044  prefix="$acl_final_prefix"
19045  acl_save_exec_prefix="$exec_prefix"
19046  exec_prefix="$acl_final_exec_prefix"
19047  eval x=\"$x\"
19048  exec_prefix="$acl_save_exec_prefix"
19049  prefix="$acl_save_prefix"
19050
19051              case "$x" in
19052                -L*)
19053                  dir=`echo "X$x" | sed -e 's/^X-L//'`
19054                                    if test -n "$acl_shlibext"; then
19055                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
19056                      found_dir="$dir"
19057                      found_so="$dir/$libname$shrext"
19058                    else
19059                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19060                        ver=`(cd "$dir" && \
19061                              for f in "$libname$shrext".*; do echo "$f"; done \
19062                              | sed -e "s,^$libname$shrext\\\\.,," \
19063                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19064                              | sed 1q ) 2>/dev/null`
19065                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
19066                          found_dir="$dir"
19067                          found_so="$dir/$libname$shrext.$ver"
19068                        fi
19069                      else
19070                        eval library_names=\"$acl_library_names_spec\"
19071                        for f in $library_names; do
19072                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
19073                            found_dir="$dir"
19074                            found_so="$dir/$f"
19075                            break
19076                          fi
19077                        done
19078                      fi
19079                    fi
19080                  fi
19081                                    if test "X$found_dir" = "X"; then
19082                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
19083                      found_dir="$dir"
19084                      found_a="$dir/$libname.$acl_libext"
19085                    fi
19086                  fi
19087                  if test "X$found_dir" != "X"; then
19088                    if test -f "$dir/$libname.la"; then
19089                      found_la="$dir/$libname.la"
19090                    fi
19091                  fi
19092                  ;;
19093              esac
19094              if test "X$found_dir" != "X"; then
19095                break
19096              fi
19097            done
19098          fi
19099          if test "X$found_dir" != "X"; then
19100                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
19101            if test "X$found_so" != "X"; then
19102                                                        if test "$enable_rpath" = no \
19103                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
19104                 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
19105                 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
19106                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19107              else
19108                                                                                haveit=
19109                for x in $ltrpathdirs; 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                  ltrpathdirs="$ltrpathdirs $found_dir"
19117                fi
19118                                if test "$acl_hardcode_direct" = yes; then
19119                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19120                else
19121                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
19122                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19123                                                            haveit=
19124                    for x in $rpathdirs; do
19125                      if test "X$x" = "X$found_dir"; then
19126                        haveit=yes
19127                        break
19128                      fi
19129                    done
19130                    if test -z "$haveit"; then
19131                      rpathdirs="$rpathdirs $found_dir"
19132                    fi
19133                  else
19134                                                                                haveit=
19135                    for x in $LDFLAGS $LIBICONV; do
19136
19137  acl_save_prefix="$prefix"
19138  prefix="$acl_final_prefix"
19139  acl_save_exec_prefix="$exec_prefix"
19140  exec_prefix="$acl_final_exec_prefix"
19141  eval x=\"$x\"
19142  exec_prefix="$acl_save_exec_prefix"
19143  prefix="$acl_save_prefix"
19144
19145                      if test "X$x" = "X-L$found_dir"; then
19146                        haveit=yes
19147                        break
19148                      fi
19149                    done
19150                    if test -z "$haveit"; then
19151                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
19152                    fi
19153                    if test "$acl_hardcode_minus_L" != no; then
19154                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19155                    else
19156                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19157                    fi
19158                  fi
19159                fi
19160              fi
19161            else
19162              if test "X$found_a" != "X"; then
19163                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
19164              else
19165                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
19166              fi
19167            fi
19168                        additional_includedir=
19169            case "$found_dir" in
19170              */$acl_libdirstem | */$acl_libdirstem/)
19171                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
19172                if test "$name" = 'iconv'; then
19173                  LIBICONV_PREFIX="$basedir"
19174                fi
19175                additional_includedir="$basedir/include"
19176                ;;
19177              */$acl_libdirstem2 | */$acl_libdirstem2/)
19178                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
19179                if test "$name" = 'iconv'; then
19180                  LIBICONV_PREFIX="$basedir"
19181                fi
19182                additional_includedir="$basedir/include"
19183                ;;
19184              */$acl_libdirstem3 | */$acl_libdirstem3/)
19185                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
19186                if test "$name" = 'iconv'; then
19187                  LIBICONV_PREFIX="$basedir"
19188                fi
19189                additional_includedir="$basedir/include"
19190                ;;
19191            esac
19192            if test "X$additional_includedir" != "X"; then
19193                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
19194                haveit=
19195                if test "X$additional_includedir" = "X/usr/local/include"; then
19196                  if test -n "$GCC"; then
19197                    case $host_os in
19198                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19199                    esac
19200                  fi
19201                fi
19202                if test -z "$haveit"; then
19203                  for x in $CPPFLAGS $INCICONV; do
19204
19205  acl_save_prefix="$prefix"
19206  prefix="$acl_final_prefix"
19207  acl_save_exec_prefix="$exec_prefix"
19208  exec_prefix="$acl_final_exec_prefix"
19209  eval x=\"$x\"
19210  exec_prefix="$acl_save_exec_prefix"
19211  prefix="$acl_save_prefix"
19212
19213                    if test "X$x" = "X-I$additional_includedir"; then
19214                      haveit=yes
19215                      break
19216                    fi
19217                  done
19218                  if test -z "$haveit"; then
19219                    if test -d "$additional_includedir"; then
19220                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
19221                    fi
19222                  fi
19223                fi
19224              fi
19225            fi
19226                        if test -n "$found_la"; then
19227                                                        save_libdir="$libdir"
19228              case "$found_la" in
19229                */* | *\\*) . "$found_la" ;;
19230                *) . "./$found_la" ;;
19231              esac
19232              libdir="$save_libdir"
19233                            for dep in $dependency_libs; do
19234                case "$dep" in
19235                  -L*)
19236                    dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19237                                                                                                                                                                if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
19238                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
19239                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
19240                      haveit=
19241                      if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
19242                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
19243                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
19244                        if test -n "$GCC"; then
19245                          case $host_os in
19246                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19247                          esac
19248                        fi
19249                      fi
19250                      if test -z "$haveit"; then
19251                        haveit=
19252                        for x in $LDFLAGS $LIBICONV; do
19253
19254  acl_save_prefix="$prefix"
19255  prefix="$acl_final_prefix"
19256  acl_save_exec_prefix="$exec_prefix"
19257  exec_prefix="$acl_final_exec_prefix"
19258  eval x=\"$x\"
19259  exec_prefix="$acl_save_exec_prefix"
19260  prefix="$acl_save_prefix"
19261
19262                          if test "X$x" = "X-L$dependency_libdir"; then
19263                            haveit=yes
19264                            break
19265                          fi
19266                        done
19267                        if test -z "$haveit"; then
19268                          if test -d "$dependency_libdir"; then
19269                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
19270                          fi
19271                        fi
19272                        haveit=
19273                        for x in $LDFLAGS $LTLIBICONV; do
19274
19275  acl_save_prefix="$prefix"
19276  prefix="$acl_final_prefix"
19277  acl_save_exec_prefix="$exec_prefix"
19278  exec_prefix="$acl_final_exec_prefix"
19279  eval x=\"$x\"
19280  exec_prefix="$acl_save_exec_prefix"
19281  prefix="$acl_save_prefix"
19282
19283                          if test "X$x" = "X-L$dependency_libdir"; then
19284                            haveit=yes
19285                            break
19286                          fi
19287                        done
19288                        if test -z "$haveit"; then
19289                          if test -d "$dependency_libdir"; then
19290                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
19291                          fi
19292                        fi
19293                      fi
19294                    fi
19295                    ;;
19296                  -R*)
19297                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
19298                    if test "$enable_rpath" != no; then
19299                                                                  haveit=
19300                      for x in $rpathdirs; do
19301                        if test "X$x" = "X$dir"; then
19302                          haveit=yes
19303                          break
19304                        fi
19305                      done
19306                      if test -z "$haveit"; then
19307                        rpathdirs="$rpathdirs $dir"
19308                      fi
19309                                                                  haveit=
19310                      for x in $ltrpathdirs; do
19311                        if test "X$x" = "X$dir"; then
19312                          haveit=yes
19313                          break
19314                        fi
19315                      done
19316                      if test -z "$haveit"; then
19317                        ltrpathdirs="$ltrpathdirs $dir"
19318                      fi
19319                    fi
19320                    ;;
19321                  -l*)
19322                                                                                                                                                                dep=`echo "X$dep" | sed -e 's/^X-l//'`
19323                    if test "X$dep" != Xc \
19324                       || case $host_os in
19325                            linux* | gnu* | k*bsd*-gnu) false ;;
19326                            *)                          true ;;
19327                          esac; then
19328                      names_next_round="$names_next_round $dep"
19329                    fi
19330                    ;;
19331                  *.la)
19332                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19333                    ;;
19334                  *)
19335                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
19336                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
19337                    ;;
19338                esac
19339              done
19340            fi
19341          else
19342                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19343            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
19344          fi
19345        fi
19346      fi
19347    done
19348  done
19349  if test "X$rpathdirs" != "X"; then
19350    if test -n "$acl_hardcode_libdir_separator"; then
19351                        alldirs=
19352      for found_dir in $rpathdirs; do
19353        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19354      done
19355            acl_save_libdir="$libdir"
19356      libdir="$alldirs"
19357      eval flag=\"$acl_hardcode_libdir_flag_spec\"
19358      libdir="$acl_save_libdir"
19359      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19360    else
19361            for found_dir in $rpathdirs; do
19362        acl_save_libdir="$libdir"
19363        libdir="$found_dir"
19364        eval flag=\"$acl_hardcode_libdir_flag_spec\"
19365        libdir="$acl_save_libdir"
19366        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19367      done
19368    fi
19369  fi
19370  if test "X$ltrpathdirs" != "X"; then
19371            for found_dir in $ltrpathdirs; do
19372      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
19373    done
19374  fi
19375
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19405printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
19406if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
19407then :
19408  printf %s "(cached) " >&6
19409else $as_nop
19410  gt_save_LIBS="$LIBS"
19411     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
19412     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19413/* end confdefs.h.  */
19414#include <CoreFoundation/CFPreferences.h>
19415int
19416main (void)
19417{
19418CFPreferencesCopyAppValue(NULL, NULL)
19419  ;
19420  return 0;
19421}
19422_ACEOF
19423if ac_fn_c_try_link "$LINENO"
19424then :
19425  gt_cv_func_CFPreferencesCopyAppValue=yes
19426else $as_nop
19427  gt_cv_func_CFPreferencesCopyAppValue=no
19428fi
19429rm -f core conftest.err conftest.$ac_objext conftest.beam \
19430    conftest$ac_exeext conftest.$ac_ext
19431     LIBS="$gt_save_LIBS"
19432fi
19433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19434printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19435  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19436
19437printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19438
19439  fi
19440                    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
19441printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
19442if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
19443then :
19444  printf %s "(cached) " >&6
19445else $as_nop
19446  gt_save_LIBS="$LIBS"
19447     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
19448     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19449/* end confdefs.h.  */
19450#include <CoreFoundation/CFLocale.h>
19451int
19452main (void)
19453{
19454CFLocaleCopyPreferredLanguages();
19455  ;
19456  return 0;
19457}
19458_ACEOF
19459if ac_fn_c_try_link "$LINENO"
19460then :
19461  gt_cv_func_CFLocaleCopyPreferredLanguages=yes
19462else $as_nop
19463  gt_cv_func_CFLocaleCopyPreferredLanguages=no
19464fi
19465rm -f core conftest.err conftest.$ac_objext conftest.beam \
19466    conftest$ac_exeext conftest.$ac_ext
19467     LIBS="$gt_save_LIBS"
19468fi
19469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
19470printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
19471  if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
19472
19473printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
19474
19475  fi
19476  INTL_MACOSX_LIBS=
19477  if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
19478     || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
19479    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19480  fi
19481
19482
19483
19484
19485
19486
19487  LIBINTL=
19488  LTLIBINTL=
19489  POSUB=
19490
19491    case " $gt_needs " in
19492    *" need-formatstring-macros "*) gt_api_version=3 ;;
19493    *" need-ngettext "*) gt_api_version=2 ;;
19494    *) gt_api_version=1 ;;
19495  esac
19496  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
19497  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
19498
19499    if test "$USE_NLS" = "yes"; then
19500    gt_use_preinstalled_gnugettext=no
19501
19502
19503        if test $gt_api_version -ge 3; then
19504          gt_revision_test_code='
19505#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
19506#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
19507#endif
19508typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
19509'
19510        else
19511          gt_revision_test_code=
19512        fi
19513        if test $gt_api_version -ge 2; then
19514          gt_expression_test_code=' + * ngettext ("", "", 0)'
19515        else
19516          gt_expression_test_code=
19517        fi
19518
19519        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19520printf %s "checking for GNU gettext in libc... " >&6; }
19521if eval test \${$gt_func_gnugettext_libc+y}
19522then :
19523  printf %s "(cached) " >&6
19524else $as_nop
19525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19526/* end confdefs.h.  */
19527
19528#include <libintl.h>
19529#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
19530extern int _nl_msg_cat_cntr;
19531extern int *_nl_domain_bindings;
19532#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
19533#else
19534#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
19535#endif
19536$gt_revision_test_code
19537
19538int
19539main (void)
19540{
19541
19542bindtextdomain ("", "");
19543return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
19544
19545  ;
19546  return 0;
19547}
19548_ACEOF
19549if ac_fn_c_try_link "$LINENO"
19550then :
19551  eval "$gt_func_gnugettext_libc=yes"
19552else $as_nop
19553  eval "$gt_func_gnugettext_libc=no"
19554fi
19555rm -f core conftest.err conftest.$ac_objext conftest.beam \
19556    conftest$ac_exeext conftest.$ac_ext
19557fi
19558eval ac_res=\$$gt_func_gnugettext_libc
19559	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19560printf "%s\n" "$ac_res" >&6; }
19561
19562        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
19563
19564
19565
19566
19567
19568          am_save_CPPFLAGS="$CPPFLAGS"
19569
19570  for element in $INCICONV; do
19571    haveit=
19572    for x in $CPPFLAGS; do
19573
19574  acl_save_prefix="$prefix"
19575  prefix="$acl_final_prefix"
19576  acl_save_exec_prefix="$exec_prefix"
19577  exec_prefix="$acl_final_exec_prefix"
19578  eval x=\"$x\"
19579  exec_prefix="$acl_save_exec_prefix"
19580  prefix="$acl_save_prefix"
19581
19582      if test "X$x" = "X$element"; then
19583        haveit=yes
19584        break
19585      fi
19586    done
19587    if test -z "$haveit"; then
19588      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19589    fi
19590  done
19591
19592
19593  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19594printf %s "checking for iconv... " >&6; }
19595if test ${am_cv_func_iconv+y}
19596then :
19597  printf %s "(cached) " >&6
19598else $as_nop
19599
19600    am_cv_func_iconv="no, consider installing GNU libiconv"
19601    am_cv_lib_iconv=no
19602    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19603/* end confdefs.h.  */
19604
19605#include <stdlib.h>
19606#include <iconv.h>
19607
19608int
19609main (void)
19610{
19611iconv_t cd = iconv_open("","");
19612           iconv(cd,NULL,NULL,NULL,NULL);
19613           iconv_close(cd);
19614  ;
19615  return 0;
19616}
19617_ACEOF
19618if ac_fn_c_try_link "$LINENO"
19619then :
19620  am_cv_func_iconv=yes
19621fi
19622rm -f core conftest.err conftest.$ac_objext conftest.beam \
19623    conftest$ac_exeext conftest.$ac_ext
19624    if test "$am_cv_func_iconv" != yes; then
19625      am_save_LIBS="$LIBS"
19626      LIBS="$LIBS $LIBICONV"
19627      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19628/* end confdefs.h.  */
19629
19630#include <stdlib.h>
19631#include <iconv.h>
19632
19633int
19634main (void)
19635{
19636iconv_t cd = iconv_open("","");
19637             iconv(cd,NULL,NULL,NULL,NULL);
19638             iconv_close(cd);
19639  ;
19640  return 0;
19641}
19642_ACEOF
19643if ac_fn_c_try_link "$LINENO"
19644then :
19645  am_cv_lib_iconv=yes
19646        am_cv_func_iconv=yes
19647fi
19648rm -f core conftest.err conftest.$ac_objext conftest.beam \
19649    conftest$ac_exeext conftest.$ac_ext
19650      LIBS="$am_save_LIBS"
19651    fi
19652
19653fi
19654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19655printf "%s\n" "$am_cv_func_iconv" >&6; }
19656  if test "$am_cv_func_iconv" = yes; then
19657    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
19658printf %s "checking for working iconv... " >&6; }
19659if test ${am_cv_func_iconv_works+y}
19660then :
19661  printf %s "(cached) " >&6
19662else $as_nop
19663
19664                  am_save_LIBS="$LIBS"
19665      if test $am_cv_lib_iconv = yes; then
19666        LIBS="$LIBS $LIBICONV"
19667      fi
19668      am_cv_func_iconv_works=no
19669      for ac_iconv_const in '' 'const'; do
19670        if test "$cross_compiling" = yes
19671then :
19672  case "$host_os" in
19673             aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
19674             *)            am_cv_func_iconv_works="guessing yes" ;;
19675           esac
19676else $as_nop
19677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19678/* end confdefs.h.  */
19679
19680#include <iconv.h>
19681#include <string.h>
19682
19683#ifndef ICONV_CONST
19684# define ICONV_CONST $ac_iconv_const
19685#endif
19686
19687int
19688main (void)
19689{
19690int result = 0;
19691  /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
19692     successful returns.  This is even documented in
19693     <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
19694  {
19695    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
19696    if (cd_utf8_to_88591 != (iconv_t)(-1))
19697      {
19698        static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
19699        char buf[10];
19700        ICONV_CONST char *inptr = input;
19701        size_t inbytesleft = strlen (input);
19702        char *outptr = buf;
19703        size_t outbytesleft = sizeof (buf);
19704        size_t res = iconv (cd_utf8_to_88591,
19705                            &inptr, &inbytesleft,
19706                            &outptr, &outbytesleft);
19707        if (res == 0)
19708          result |= 1;
19709        iconv_close (cd_utf8_to_88591);
19710      }
19711  }
19712  /* Test against Solaris 10 bug: Failures are not distinguishable from
19713     successful returns.  */
19714  {
19715    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
19716    if (cd_ascii_to_88591 != (iconv_t)(-1))
19717      {
19718        static ICONV_CONST char input[] = "\263";
19719        char buf[10];
19720        ICONV_CONST char *inptr = input;
19721        size_t inbytesleft = strlen (input);
19722        char *outptr = buf;
19723        size_t outbytesleft = sizeof (buf);
19724        size_t res = iconv (cd_ascii_to_88591,
19725                            &inptr, &inbytesleft,
19726                            &outptr, &outbytesleft);
19727        if (res == 0)
19728          result |= 2;
19729        iconv_close (cd_ascii_to_88591);
19730      }
19731  }
19732  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
19733  {
19734    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
19735    if (cd_88591_to_utf8 != (iconv_t)(-1))
19736      {
19737        static ICONV_CONST char input[] = "\304";
19738        static char buf[2] = { (char)0xDE, (char)0xAD };
19739        ICONV_CONST char *inptr = input;
19740        size_t inbytesleft = 1;
19741        char *outptr = buf;
19742        size_t outbytesleft = 1;
19743        size_t res = iconv (cd_88591_to_utf8,
19744                            &inptr, &inbytesleft,
19745                            &outptr, &outbytesleft);
19746        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
19747          result |= 4;
19748        iconv_close (cd_88591_to_utf8);
19749      }
19750  }
19751#if 0 /* This bug could be worked around by the caller.  */
19752  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
19753  {
19754    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
19755    if (cd_88591_to_utf8 != (iconv_t)(-1))
19756      {
19757        static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
19758        char buf[50];
19759        ICONV_CONST char *inptr = input;
19760        size_t inbytesleft = strlen (input);
19761        char *outptr = buf;
19762        size_t outbytesleft = sizeof (buf);
19763        size_t res = iconv (cd_88591_to_utf8,
19764                            &inptr, &inbytesleft,
19765                            &outptr, &outbytesleft);
19766        if ((int)res > 0)
19767          result |= 8;
19768        iconv_close (cd_88591_to_utf8);
19769      }
19770  }
19771#endif
19772  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
19773     provided.  */
19774  {
19775    /* Try standardized names.  */
19776    iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
19777    /* Try IRIX, OSF/1 names.  */
19778    iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
19779    /* Try AIX names.  */
19780    iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
19781    /* Try HP-UX names.  */
19782    iconv_t cd4 = iconv_open ("utf8", "eucJP");
19783    if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
19784        && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
19785      result |= 16;
19786    if (cd1 != (iconv_t)(-1))
19787      iconv_close (cd1);
19788    if (cd2 != (iconv_t)(-1))
19789      iconv_close (cd2);
19790    if (cd3 != (iconv_t)(-1))
19791      iconv_close (cd3);
19792    if (cd4 != (iconv_t)(-1))
19793      iconv_close (cd4);
19794  }
19795  return result;
19796
19797  ;
19798  return 0;
19799}
19800_ACEOF
19801if ac_fn_c_try_run "$LINENO"
19802then :
19803  am_cv_func_iconv_works=yes
19804fi
19805rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19806  conftest.$ac_objext conftest.beam conftest.$ac_ext
19807fi
19808
19809        test "$am_cv_func_iconv_works" = no || break
19810      done
19811      LIBS="$am_save_LIBS"
19812
19813fi
19814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
19815printf "%s\n" "$am_cv_func_iconv_works" >&6; }
19816    case "$am_cv_func_iconv_works" in
19817      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
19818      *)   am_func_iconv=yes ;;
19819    esac
19820  else
19821    am_func_iconv=no am_cv_lib_iconv=no
19822  fi
19823  if test "$am_func_iconv" = yes; then
19824
19825printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
19826
19827  fi
19828  if test "$am_cv_lib_iconv" = yes; then
19829    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19830printf %s "checking how to link with libiconv... " >&6; }
19831    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19832printf "%s\n" "$LIBICONV" >&6; }
19833  else
19834            CPPFLAGS="$am_save_CPPFLAGS"
19835    LIBICONV=
19836    LTLIBICONV=
19837  fi
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848    use_additional=yes
19849
19850  acl_save_prefix="$prefix"
19851  prefix="$acl_final_prefix"
19852  acl_save_exec_prefix="$exec_prefix"
19853  exec_prefix="$acl_final_exec_prefix"
19854
19855    eval additional_includedir=\"$includedir\"
19856    eval additional_libdir=\"$libdir\"
19857    eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
19858    eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
19859
19860  exec_prefix="$acl_save_exec_prefix"
19861  prefix="$acl_save_prefix"
19862
19863
19864# Check whether --with-libintl-prefix was given.
19865if test ${with_libintl_prefix+y}
19866then :
19867  withval=$with_libintl_prefix;
19868    if test "X$withval" = "Xno"; then
19869      use_additional=no
19870    else
19871      if test "X$withval" = "X"; then
19872
19873  acl_save_prefix="$prefix"
19874  prefix="$acl_final_prefix"
19875  acl_save_exec_prefix="$exec_prefix"
19876  exec_prefix="$acl_final_exec_prefix"
19877
19878          eval additional_includedir=\"$includedir\"
19879          eval additional_libdir=\"$libdir\"
19880          eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
19881          eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
19882
19883  exec_prefix="$acl_save_exec_prefix"
19884  prefix="$acl_save_prefix"
19885
19886      else
19887        additional_includedir="$withval/include"
19888        additional_libdir="$withval/$acl_libdirstem"
19889        additional_libdir2="$withval/$acl_libdirstem2"
19890        additional_libdir3="$withval/$acl_libdirstem3"
19891      fi
19892    fi
19893
19894fi
19895
19896  if test "X$additional_libdir2" = "X$additional_libdir"; then
19897    additional_libdir2=
19898  fi
19899  if test "X$additional_libdir3" = "X$additional_libdir"; then
19900    additional_libdir3=
19901  fi
19902      LIBINTL=
19903  LTLIBINTL=
19904  INCINTL=
19905  LIBINTL_PREFIX=
19906      HAVE_LIBINTL=
19907  rpathdirs=
19908  ltrpathdirs=
19909  names_already_handled=
19910  names_next_round='intl '
19911  while test -n "$names_next_round"; do
19912    names_this_round="$names_next_round"
19913    names_next_round=
19914    for name in $names_this_round; do
19915      already_handled=
19916      for n in $names_already_handled; do
19917        if test "$n" = "$name"; then
19918          already_handled=yes
19919          break
19920        fi
19921      done
19922      if test -z "$already_handled"; then
19923        names_already_handled="$names_already_handled $name"
19924                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
19925        eval value=\"\$HAVE_LIB$uppername\"
19926        if test -n "$value"; then
19927          if test "$value" = yes; then
19928            eval value=\"\$LIB$uppername\"
19929            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
19930            eval value=\"\$LTLIB$uppername\"
19931            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
19932          else
19933                                    :
19934          fi
19935        else
19936                              found_dir=
19937          found_la=
19938          found_so=
19939          found_a=
19940          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
19941          if test -n "$acl_shlibext"; then
19942            shrext=".$acl_shlibext"             # typically: shrext=.so
19943          else
19944            shrext=
19945          fi
19946          if test $use_additional = yes; then
19947            for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
19948              if test "X$found_dir" = "X"; then
19949                eval dir=\$$additional_libdir_variable
19950                if test -n "$dir"; then
19951                                                      if test -n "$acl_shlibext"; then
19952                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
19953                      found_dir="$dir"
19954                      found_so="$dir/$libname$shrext"
19955                    else
19956                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19957                        ver=`(cd "$dir" && \
19958                              for f in "$libname$shrext".*; do echo "$f"; done \
19959                              | sed -e "s,^$libname$shrext\\\\.,," \
19960                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19961                              | sed 1q ) 2>/dev/null`
19962                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
19963                          found_dir="$dir"
19964                          found_so="$dir/$libname$shrext.$ver"
19965                        fi
19966                      else
19967                        eval library_names=\"$acl_library_names_spec\"
19968                        for f in $library_names; do
19969                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
19970                            found_dir="$dir"
19971                            found_so="$dir/$f"
19972                            break
19973                          fi
19974                        done
19975                      fi
19976                    fi
19977                  fi
19978                                    if test "X$found_dir" = "X"; then
19979                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
19980                      found_dir="$dir"
19981                      found_a="$dir/$libname.$acl_libext"
19982                    fi
19983                  fi
19984                  if test "X$found_dir" != "X"; then
19985                    if test -f "$dir/$libname.la"; then
19986                      found_la="$dir/$libname.la"
19987                    fi
19988                  fi
19989                fi
19990              fi
19991            done
19992          fi
19993          if test "X$found_dir" = "X"; then
19994            for x in $LDFLAGS $LTLIBINTL; do
19995
19996  acl_save_prefix="$prefix"
19997  prefix="$acl_final_prefix"
19998  acl_save_exec_prefix="$exec_prefix"
19999  exec_prefix="$acl_final_exec_prefix"
20000  eval x=\"$x\"
20001  exec_prefix="$acl_save_exec_prefix"
20002  prefix="$acl_save_prefix"
20003
20004              case "$x" in
20005                -L*)
20006                  dir=`echo "X$x" | sed -e 's/^X-L//'`
20007                                    if test -n "$acl_shlibext"; then
20008                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
20009                      found_dir="$dir"
20010                      found_so="$dir/$libname$shrext"
20011                    else
20012                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20013                        ver=`(cd "$dir" && \
20014                              for f in "$libname$shrext".*; do echo "$f"; done \
20015                              | sed -e "s,^$libname$shrext\\\\.,," \
20016                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20017                              | sed 1q ) 2>/dev/null`
20018                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
20019                          found_dir="$dir"
20020                          found_so="$dir/$libname$shrext.$ver"
20021                        fi
20022                      else
20023                        eval library_names=\"$acl_library_names_spec\"
20024                        for f in $library_names; do
20025                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
20026                            found_dir="$dir"
20027                            found_so="$dir/$f"
20028                            break
20029                          fi
20030                        done
20031                      fi
20032                    fi
20033                  fi
20034                                    if test "X$found_dir" = "X"; then
20035                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
20036                      found_dir="$dir"
20037                      found_a="$dir/$libname.$acl_libext"
20038                    fi
20039                  fi
20040                  if test "X$found_dir" != "X"; then
20041                    if test -f "$dir/$libname.la"; then
20042                      found_la="$dir/$libname.la"
20043                    fi
20044                  fi
20045                  ;;
20046              esac
20047              if test "X$found_dir" != "X"; then
20048                break
20049              fi
20050            done
20051          fi
20052          if test "X$found_dir" != "X"; then
20053                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20054            if test "X$found_so" != "X"; then
20055                                                        if test "$enable_rpath" = no \
20056                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
20057                 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
20058                 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
20059                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20060              else
20061                                                                                haveit=
20062                for x in $ltrpathdirs; do
20063                  if test "X$x" = "X$found_dir"; then
20064                    haveit=yes
20065                    break
20066                  fi
20067                done
20068                if test -z "$haveit"; then
20069                  ltrpathdirs="$ltrpathdirs $found_dir"
20070                fi
20071                                if test "$acl_hardcode_direct" = yes; then
20072                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20073                else
20074                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
20075                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20076                                                            haveit=
20077                    for x in $rpathdirs; do
20078                      if test "X$x" = "X$found_dir"; then
20079                        haveit=yes
20080                        break
20081                      fi
20082                    done
20083                    if test -z "$haveit"; then
20084                      rpathdirs="$rpathdirs $found_dir"
20085                    fi
20086                  else
20087                                                                                haveit=
20088                    for x in $LDFLAGS $LIBINTL; do
20089
20090  acl_save_prefix="$prefix"
20091  prefix="$acl_final_prefix"
20092  acl_save_exec_prefix="$exec_prefix"
20093  exec_prefix="$acl_final_exec_prefix"
20094  eval x=\"$x\"
20095  exec_prefix="$acl_save_exec_prefix"
20096  prefix="$acl_save_prefix"
20097
20098                      if test "X$x" = "X-L$found_dir"; then
20099                        haveit=yes
20100                        break
20101                      fi
20102                    done
20103                    if test -z "$haveit"; then
20104                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20105                    fi
20106                    if test "$acl_hardcode_minus_L" != no; then
20107                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20108                    else
20109                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20110                    fi
20111                  fi
20112                fi
20113              fi
20114            else
20115              if test "X$found_a" != "X"; then
20116                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20117              else
20118                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20119              fi
20120            fi
20121                        additional_includedir=
20122            case "$found_dir" in
20123              */$acl_libdirstem | */$acl_libdirstem/)
20124                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
20125                if test "$name" = 'intl'; then
20126                  LIBINTL_PREFIX="$basedir"
20127                fi
20128                additional_includedir="$basedir/include"
20129                ;;
20130              */$acl_libdirstem2 | */$acl_libdirstem2/)
20131                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
20132                if test "$name" = 'intl'; then
20133                  LIBINTL_PREFIX="$basedir"
20134                fi
20135                additional_includedir="$basedir/include"
20136                ;;
20137              */$acl_libdirstem3 | */$acl_libdirstem3/)
20138                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
20139                if test "$name" = 'intl'; then
20140                  LIBINTL_PREFIX="$basedir"
20141                fi
20142                additional_includedir="$basedir/include"
20143                ;;
20144            esac
20145            if test "X$additional_includedir" != "X"; then
20146                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
20147                haveit=
20148                if test "X$additional_includedir" = "X/usr/local/include"; then
20149                  if test -n "$GCC"; then
20150                    case $host_os in
20151                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20152                    esac
20153                  fi
20154                fi
20155                if test -z "$haveit"; then
20156                  for x in $CPPFLAGS $INCINTL; do
20157
20158  acl_save_prefix="$prefix"
20159  prefix="$acl_final_prefix"
20160  acl_save_exec_prefix="$exec_prefix"
20161  exec_prefix="$acl_final_exec_prefix"
20162  eval x=\"$x\"
20163  exec_prefix="$acl_save_exec_prefix"
20164  prefix="$acl_save_prefix"
20165
20166                    if test "X$x" = "X-I$additional_includedir"; then
20167                      haveit=yes
20168                      break
20169                    fi
20170                  done
20171                  if test -z "$haveit"; then
20172                    if test -d "$additional_includedir"; then
20173                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20174                    fi
20175                  fi
20176                fi
20177              fi
20178            fi
20179                        if test -n "$found_la"; then
20180                                                        save_libdir="$libdir"
20181              case "$found_la" in
20182                */* | *\\*) . "$found_la" ;;
20183                *) . "./$found_la" ;;
20184              esac
20185              libdir="$save_libdir"
20186                            for dep in $dependency_libs; do
20187                case "$dep" in
20188                  -L*)
20189                    dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20190                                                                                                                                                                if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
20191                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
20192                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
20193                      haveit=
20194                      if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
20195                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
20196                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
20197                        if test -n "$GCC"; then
20198                          case $host_os in
20199                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20200                          esac
20201                        fi
20202                      fi
20203                      if test -z "$haveit"; then
20204                        haveit=
20205                        for x in $LDFLAGS $LIBINTL; do
20206
20207  acl_save_prefix="$prefix"
20208  prefix="$acl_final_prefix"
20209  acl_save_exec_prefix="$exec_prefix"
20210  exec_prefix="$acl_final_exec_prefix"
20211  eval x=\"$x\"
20212  exec_prefix="$acl_save_exec_prefix"
20213  prefix="$acl_save_prefix"
20214
20215                          if test "X$x" = "X-L$dependency_libdir"; then
20216                            haveit=yes
20217                            break
20218                          fi
20219                        done
20220                        if test -z "$haveit"; then
20221                          if test -d "$dependency_libdir"; then
20222                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
20223                          fi
20224                        fi
20225                        haveit=
20226                        for x in $LDFLAGS $LTLIBINTL; do
20227
20228  acl_save_prefix="$prefix"
20229  prefix="$acl_final_prefix"
20230  acl_save_exec_prefix="$exec_prefix"
20231  exec_prefix="$acl_final_exec_prefix"
20232  eval x=\"$x\"
20233  exec_prefix="$acl_save_exec_prefix"
20234  prefix="$acl_save_prefix"
20235
20236                          if test "X$x" = "X-L$dependency_libdir"; then
20237                            haveit=yes
20238                            break
20239                          fi
20240                        done
20241                        if test -z "$haveit"; then
20242                          if test -d "$dependency_libdir"; then
20243                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
20244                          fi
20245                        fi
20246                      fi
20247                    fi
20248                    ;;
20249                  -R*)
20250                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
20251                    if test "$enable_rpath" != no; then
20252                                                                  haveit=
20253                      for x in $rpathdirs; do
20254                        if test "X$x" = "X$dir"; then
20255                          haveit=yes
20256                          break
20257                        fi
20258                      done
20259                      if test -z "$haveit"; then
20260                        rpathdirs="$rpathdirs $dir"
20261                      fi
20262                                                                  haveit=
20263                      for x in $ltrpathdirs; do
20264                        if test "X$x" = "X$dir"; then
20265                          haveit=yes
20266                          break
20267                        fi
20268                      done
20269                      if test -z "$haveit"; then
20270                        ltrpathdirs="$ltrpathdirs $dir"
20271                      fi
20272                    fi
20273                    ;;
20274                  -l*)
20275                                                                                                                                                                dep=`echo "X$dep" | sed -e 's/^X-l//'`
20276                    if test "X$dep" != Xc \
20277                       || case $host_os in
20278                            linux* | gnu* | k*bsd*-gnu) false ;;
20279                            *)                          true ;;
20280                          esac; then
20281                      names_next_round="$names_next_round $dep"
20282                    fi
20283                    ;;
20284                  *.la)
20285                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20286                    ;;
20287                  *)
20288                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20289                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20290                    ;;
20291                esac
20292              done
20293            fi
20294          else
20295                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20296            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20297          fi
20298        fi
20299      fi
20300    done
20301  done
20302  if test "X$rpathdirs" != "X"; then
20303    if test -n "$acl_hardcode_libdir_separator"; then
20304                        alldirs=
20305      for found_dir in $rpathdirs; do
20306        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
20307      done
20308            acl_save_libdir="$libdir"
20309      libdir="$alldirs"
20310      eval flag=\"$acl_hardcode_libdir_flag_spec\"
20311      libdir="$acl_save_libdir"
20312      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20313    else
20314            for found_dir in $rpathdirs; do
20315        acl_save_libdir="$libdir"
20316        libdir="$found_dir"
20317        eval flag=\"$acl_hardcode_libdir_flag_spec\"
20318        libdir="$acl_save_libdir"
20319        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20320      done
20321    fi
20322  fi
20323  if test "X$ltrpathdirs" != "X"; then
20324            for found_dir in $ltrpathdirs; do
20325      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20326    done
20327  fi
20328
20329
20330
20331
20332
20333          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20334printf %s "checking for GNU gettext in libintl... " >&6; }
20335if eval test \${$gt_func_gnugettext_libintl+y}
20336then :
20337  printf %s "(cached) " >&6
20338else $as_nop
20339  gt_save_CPPFLAGS="$CPPFLAGS"
20340            CPPFLAGS="$CPPFLAGS $INCINTL"
20341            gt_save_LIBS="$LIBS"
20342            LIBS="$LIBS $LIBINTL"
20343                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20344/* end confdefs.h.  */
20345
20346#include <libintl.h>
20347#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
20348extern int _nl_msg_cat_cntr;
20349extern
20350#ifdef __cplusplus
20351"C"
20352#endif
20353const char *_nl_expand_alias (const char *);
20354#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
20355#else
20356#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
20357#endif
20358$gt_revision_test_code
20359
20360int
20361main (void)
20362{
20363
20364bindtextdomain ("", "");
20365return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
20366
20367  ;
20368  return 0;
20369}
20370_ACEOF
20371if ac_fn_c_try_link "$LINENO"
20372then :
20373  eval "$gt_func_gnugettext_libintl=yes"
20374else $as_nop
20375  eval "$gt_func_gnugettext_libintl=no"
20376fi
20377rm -f core conftest.err conftest.$ac_objext conftest.beam \
20378    conftest$ac_exeext conftest.$ac_ext
20379                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
20380              LIBS="$LIBS $LIBICONV"
20381              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20382/* end confdefs.h.  */
20383
20384#include <libintl.h>
20385#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
20386extern int _nl_msg_cat_cntr;
20387extern
20388#ifdef __cplusplus
20389"C"
20390#endif
20391const char *_nl_expand_alias (const char *);
20392#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
20393#else
20394#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
20395#endif
20396$gt_revision_test_code
20397
20398int
20399main (void)
20400{
20401
20402bindtextdomain ("", "");
20403return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
20404
20405  ;
20406  return 0;
20407}
20408_ACEOF
20409if ac_fn_c_try_link "$LINENO"
20410then :
20411  LIBINTL="$LIBINTL $LIBICONV"
20412                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20413                 eval "$gt_func_gnugettext_libintl=yes"
20414
20415fi
20416rm -f core conftest.err conftest.$ac_objext conftest.beam \
20417    conftest$ac_exeext conftest.$ac_ext
20418            fi
20419            CPPFLAGS="$gt_save_CPPFLAGS"
20420            LIBS="$gt_save_LIBS"
20421fi
20422eval ac_res=\$$gt_func_gnugettext_libintl
20423	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20424printf "%s\n" "$ac_res" >&6; }
20425        fi
20426
20427                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
20428           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
20429                && test "$PACKAGE" != gettext-runtime \
20430                && test "$PACKAGE" != gettext-tools; }; then
20431          gt_use_preinstalled_gnugettext=yes
20432        else
20433                    LIBINTL=
20434          LTLIBINTL=
20435          INCINTL=
20436        fi
20437
20438
20439
20440    if test -n "$INTL_MACOSX_LIBS"; then
20441      if test "$gt_use_preinstalled_gnugettext" = "yes" \
20442         || test "$nls_cv_use_gnu_gettext" = "yes"; then
20443                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20444        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20445      fi
20446    fi
20447
20448    if test "$gt_use_preinstalled_gnugettext" = "yes" \
20449       || test "$nls_cv_use_gnu_gettext" = "yes"; then
20450
20451printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
20452
20453    else
20454      USE_NLS=no
20455    fi
20456  fi
20457
20458  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20459printf %s "checking whether to use NLS... " >&6; }
20460  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20461printf "%s\n" "$USE_NLS" >&6; }
20462  if test "$USE_NLS" = "yes"; then
20463    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20464printf %s "checking where the gettext function comes from... " >&6; }
20465    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20466      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
20467        gt_source="external libintl"
20468      else
20469        gt_source="libc"
20470      fi
20471    else
20472      gt_source="included intl directory"
20473    fi
20474    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20475printf "%s\n" "$gt_source" >&6; }
20476  fi
20477
20478  if test "$USE_NLS" = "yes"; then
20479
20480    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20481      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
20482        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20483printf %s "checking how to link with libintl... " >&6; }
20484        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20485printf "%s\n" "$LIBINTL" >&6; }
20486
20487  for element in $INCINTL; do
20488    haveit=
20489    for x in $CPPFLAGS; do
20490
20491  acl_save_prefix="$prefix"
20492  prefix="$acl_final_prefix"
20493  acl_save_exec_prefix="$exec_prefix"
20494  exec_prefix="$acl_final_exec_prefix"
20495  eval x=\"$x\"
20496  exec_prefix="$acl_save_exec_prefix"
20497  prefix="$acl_save_prefix"
20498
20499      if test "X$x" = "X$element"; then
20500        haveit=yes
20501        break
20502      fi
20503    done
20504    if test -z "$haveit"; then
20505      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20506    fi
20507  done
20508
20509      fi
20510
20511
20512printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
20513
20514
20515printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
20516
20517    fi
20518
20519        POSUB=po
20520  fi
20521
20522
20523
20524    INTLLIBS="$LIBINTL"
20525
20526
20527
20528
20529
20530
20531  ac_config_files="$ac_config_files po/Makefile.in"
20532
20533  have_po=yes
20534
20535
20536#do not indent here
20537
20538
20539 if  test "$have_po" = yes ; then
20540  HAVE_PO_TRUE=
20541  HAVE_PO_FALSE='#'
20542else
20543  HAVE_PO_TRUE='#'
20544  HAVE_PO_FALSE=
20545fi
20546
20547
20548
20549
20550
20551# Adam shostack suggests the following for Windows:
20552# -D_FORTIFY_SOURCE=2 -fstack-protector-all
20553# Check whether --enable-gcc-hardening was given.
20554if test ${enable_gcc_hardening+y}
20555then :
20556  enableval=$enable_gcc_hardening; if test x$enableval = xyes
20557then :
20558
20559    CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-all"
20560    CFLAGS="$CFLAGS -fwrapv -fPIE -Wstack-protector"
20561    CFLAGS="$CFLAGS --param ssp-buffer-size=1"
20562    LDFLAGS="$LDFLAGS -pie"
20563
20564fi
20565fi
20566
20567
20568# Linker hardening options
20569# Currently these options are ELF specific - you can't use this with MacOSX
20570# Check whether --enable-linker-hardening was given.
20571if test ${enable_linker_hardening+y}
20572then :
20573  enableval=$enable_linker_hardening; if test x$enableval = xyes
20574then :
20575  LDFLAGS="$LDFLAGS -z relro -z now"
20576fi
20577fi
20578
20579
20580
20581# Workaround for libgcrypt
20582if test "x$lt_sysroot" != "x" && test "x$SYSROOT" = "x"
20583then :
20584  SYSROOT="$lt_sysroot"
20585fi
20586
20587PACKAGE_VERSION_MAJOR='0'
20588PACKAGE_VERSION_MINOR='9'
20589PACKAGE_VERSION_SUBMINOR='74'
20590as_fn_arith $LIB_VERSION_CURRENT - $LIB_VERSION_AGE && MHD_W32_DLL_SUFF=$as_val
20591
20592
20593
20594
20595ac_config_files="$ac_config_files src/microhttpd/microhttpd_dll_res.rc"
20596
20597
20598MHD_LIB_CPPFLAGS=""
20599MHD_LIB_CFLAGS=""
20600MHD_LIB_LDFLAGS=""
20601MHD_LIBDEPS=""
20602# for pkg-config
20603MHD_REQ_PRIVATE=''
20604MHD_LIBDEPS_PKGCFG=''
20605
20606
20607
20608
20609ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default
20610
20611"
20612if test "x$ac_cv_header_stdbool_h" = xyes
20613then :
20614
20615   ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
20616#include <stdbool.h>
20617
20618
20619"
20620if test "x$ac_cv_type_bool" = xyes
20621then :
20622
20623      printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
20624
20625      printf "%s\n" "#define HAVE_REAL_BOOL 1" >>confdefs.h
20626
20627
20628else $as_nop
20629
20630      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Header <stdbool.h> is present, but \"bool\" type cannot be detected. Check compiler flags." >&5
20631printf "%s\n" "$as_me: WARNING: Header <stdbool.h> is present, but \"bool\" type cannot be detected. Check compiler flags." >&2;}
20632      printf "%s\n" "#define bool int" >>confdefs.h
20633
20634
20635fi
20636
20637
20638else $as_nop
20639
20640   ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
20641
20642"
20643if test "x$ac_cv_type_bool" = xyes
20644then :
20645  printf "%s\n" "#define HAVE_REAL_BOOL 1" >>confdefs.h
20646
20647else $as_nop
20648
20649      ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "
20650
20651"
20652if test "x$ac_cv_type__Bool" = xyes
20653then :
20654
20655         printf "%s\n" "#define HAVE_REAL_BOOL 1" >>confdefs.h
20656
20657         printf "%s\n" "#define bool _Bool" >>confdefs.h
20658
20659
20660else $as_nop
20661
20662         printf "%s\n" "#define bool int" >>confdefs.h
20663
20664
20665fi
20666
20667
20668fi
20669
20670
20671fi
20672
20673
20674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether \"true\" is defined or builtin" >&5
20675printf %s "checking whether \"true\" is defined or builtin... " >&6; }
20676if test ${mhd_cv_macro_true_defined+y}
20677then :
20678  printf %s "(cached) " >&6
20679else $as_nop
20680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20681/* end confdefs.h.  */
20682
20683#ifdef HAVE_STDBOOL_H
20684#include <stdbool.h>
20685#endif
20686
20687int
20688main (void)
20689{
20690
20691#if defined(true)
20692    /* dummy */
20693#else
20694    (void)true;
20695#endif
20696
20697  ;
20698  return 0;
20699}
20700
20701_ACEOF
20702if ac_fn_c_try_compile "$LINENO"
20703then :
20704  mhd_cv_macro_true_defined='yes'
20705else $as_nop
20706  mhd_cv_macro_true_defined='no'
20707fi
20708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20709
20710fi
20711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro_true_defined" >&5
20712printf "%s\n" "$mhd_cv_macro_true_defined" >&6; }
20713if test "x$mhd_cv_macro_true_defined" = x"yes"
20714then :
20715  :
20716else $as_nop
20717
20718printf "%s\n" "#define true (!0)" >>confdefs.h
20719
20720fi
20721
20722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether \"false\" is defined or builtin" >&5
20723printf %s "checking whether \"false\" is defined or builtin... " >&6; }
20724if test ${mhd_cv_macro_false_defined+y}
20725then :
20726  printf %s "(cached) " >&6
20727else $as_nop
20728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20729/* end confdefs.h.  */
20730
20731#ifdef HAVE_STDBOOL_H
20732#include <stdbool.h>
20733#endif
20734
20735int
20736main (void)
20737{
20738
20739#if !defined(false)
20740    (void)false;
20741#else
20742    /* dummy */
20743#endif
20744
20745  ;
20746  return 0;
20747}
20748
20749_ACEOF
20750if ac_fn_c_try_compile "$LINENO"
20751then :
20752  mhd_cv_macro_false_defined='yes'
20753else $as_nop
20754  mhd_cv_macro_false_defined='no'
20755fi
20756rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20757
20758fi
20759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro_false_defined" >&5
20760printf "%s\n" "$mhd_cv_macro_false_defined" >&6; }
20761if test "x$mhd_cv_macro_false_defined" = x"yes"
20762then :
20763  :
20764else $as_nop
20765
20766printf "%s\n" "#define false 0" >>confdefs.h
20767
20768fi
20769
20770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether \"true\" and \"false\" could be used" >&5
20771printf %s "checking whether \"true\" and \"false\" could be used... " >&6; }
20772if test ${mhd_cv_macro_true_false_valid+y}
20773then :
20774  printf %s "(cached) " >&6
20775else $as_nop
20776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20777/* end confdefs.h.  */
20778
20779#ifdef HAVE_STDBOOL_H
20780#include <stdbool.h>
20781#endif
20782
20783int
20784main (void)
20785{
20786
20787          int var1[true ? 1 : -1] = { 1 };
20788          int var2[false ? -1 : 1] = { 2 };
20789          int var3[!true ? -1 : 1] = { 3 };
20790          int var4[!false ? 1 : -1] = { 4 };
20791          if (var1[0] == var2[0] || var3[0] == var4[0])
20792            return 1;
20793
20794  ;
20795  return 0;
20796}
20797
20798_ACEOF
20799if ac_fn_c_try_compile "$LINENO"
20800then :
20801  mhd_cv_macro_true_false_valid='yes'
20802else $as_nop
20803  mhd_cv_macro_true_false_valid='no'
20804fi
20805rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20806
20807fi
20808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro_true_false_valid" >&5
20809printf "%s\n" "$mhd_cv_macro_true_false_valid" >&6; }
20810if test "x$mhd_cv_macro_true_false_valid" = x"yes"
20811then :
20812  :
20813else $as_nop
20814  as_fn_error $? "Value of \"true\" or value of \"false\" is not valid. Check config.log for details." "$LINENO" 5
20815fi
20816
20817
20818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=attributes" >&5
20819printf %s "checking whether C compiler accepts -Werror=attributes... " >&6; }
20820if test ${ax_cv_check_cflags___Werror_attributes+y}
20821then :
20822  printf %s "(cached) " >&6
20823else $as_nop
20824
20825  ax_check_save_flags=$CFLAGS
20826  CFLAGS="$CFLAGS  -Werror=attributes"
20827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20828/* end confdefs.h.  */
20829
20830int
20831main (void)
20832{
20833
20834  ;
20835  return 0;
20836}
20837_ACEOF
20838if ac_fn_c_try_compile "$LINENO"
20839then :
20840  ax_cv_check_cflags___Werror_attributes=yes
20841else $as_nop
20842  ax_cv_check_cflags___Werror_attributes=no
20843fi
20844rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20845  CFLAGS=$ax_check_save_flags
20846fi
20847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_attributes" >&5
20848printf "%s\n" "$ax_cv_check_cflags___Werror_attributes" >&6; }
20849if test "x$ax_cv_check_cflags___Werror_attributes" = xyes
20850then :
20851
20852   save_CFLAGS="$CFLAGS"
20853   CFLAGS="$CFLAGS -Werror=attributes"
20854   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Werror=attributes actually works" >&5
20855printf %s "checking whether -Werror=attributes actually works... " >&6; }
20856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20857/* end confdefs.h.  */
20858__attribute__((non_existing_attrb_dummy)) int SimpleFunc(void) {return 3;}
20859int
20860main (void)
20861{
20862int r = SimpleFunc(); if (r) return r;
20863  ;
20864  return 0;
20865}
20866_ACEOF
20867if ac_fn_c_try_compile "$LINENO"
20868then :
20869
20870       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20871printf "%s\n" "no" >&6; }
20872       errattr_CFLAGS=""
20873
20874else $as_nop
20875
20876       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20877printf "%s\n" "yes" >&6; }
20878       errattr_CFLAGS="-Werror=attributes"
20879
20880fi
20881rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20882   CFLAGS="$save_CFLAGS"
20883
20884else $as_nop
20885  errattr_CFLAGS=""
20886fi
20887
20888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function inline keywords supported by $CC" >&5
20889printf %s "checking for function inline keywords supported by $CC... " >&6; }
20890save_CFLAGS="$CFLAGS"
20891CFLAGS="$CFLAGS $errattr_CFLAGS"
20892inln_prfx="none"
20893# Prefer always inline functions
20894for inln_prfx_chk in InlineWithAttr __forceinline inline __inline__ __inline _inline _Inline
20895do
20896  # Try to link to avoid "symbol undefined" problems at build time
20897  if test "x$inln_prfx_chk" = "xInlineWithAttr"
20898then :
20899
20900     if test "x$errattr_CFLAGS" = "x"
20901then :
20902   # Skip test with attribute as negative result can't be detected
20903          inln_prfx_chk="__forceinline" # use next value
20904
20905else $as_nop
20906  inln_prfx_chk="inline __attribute__((always_inline))"
20907fi
20908
20909fi
20910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20911/* end confdefs.h.  */
20912
20913
20914#ifdef __cplusplus
20915#error This test is only for C.
20916choke me
20917#endif
20918#ifdef HAVE_STDBOOL_H
20919#include <stdbool.h>
20920#endif
20921         static $inln_prfx_chk bool cmpfn(int x, int y)
20922         { return x > y; }
20923         static $inln_prfx_chk int sumfn(int x, int y)
20924         { return x + y; }
20925
20926int
20927main (void)
20928{
20929
20930       int a = 1, b = 100, c;
20931       if (cmpfn(a, b))
20932         c = sumfn(a, b);
20933       else
20934         c = 0 - sumfn(a, b);
20935       if (c)
20936         return 0;
20937
20938  ;
20939  return 0;
20940}
20941
20942_ACEOF
20943if ac_fn_c_try_link "$LINENO"
20944then :
20945   inln_prfx="$inln_prfx_chk"
20946fi
20947rm -f core conftest.err conftest.$ac_objext conftest.beam \
20948    conftest$ac_exeext conftest.$ac_ext
20949  test "x$inln_prfx" != "xnone" && break
20950done
20951if test "x$inln_prfx" != "xnone"
20952then :
20953
20954
20955printf "%s\n" "#define INLINE_FUNC 1" >>confdefs.h
20956
20957
20958printf "%s\n" "#define _MHD_static_inline static $inln_prfx" >>confdefs.h
20959
20960
20961else $as_nop
20962
20963
20964printf "%s\n" "#define _MHD_static_inline static" >>confdefs.h
20965
20966
20967fi
20968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $inln_prfx" >&5
20969printf "%s\n" "$inln_prfx" >&6; }
20970CFLAGS="$save_CFLAGS"
20971
20972ac_fn_c_check_header_compile "$LINENO" "stdalign.h" "ac_cv_header_stdalign_h" "$ac_includes_default
20973"
20974if test "x$ac_cv_header_stdalign_h" = xyes
20975then :
20976  printf "%s\n" "#define HAVE_STDALIGN_H 1" >>confdefs.h
20977
20978fi
20979
20980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C11 'alignof()' support" >&5
20981printf %s "checking for C11 'alignof()' support... " >&6; }
20982if test ${mhd_cv_c_alignof+y}
20983then :
20984  printf %s "(cached) " >&6
20985else $as_nop
20986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20987/* end confdefs.h.  */
20988
20989#ifdef HAVE_STDALIGN_H
20990#include <stdalign.h>
20991#endif
20992
20993int
20994main (void)
20995{
20996
20997          int var1[(alignof(int) >= 2) ? 1 : -1];
20998          int var2[alignof(unsigned int) - 1];
20999          int var3[(alignof(char) > 0) ? 1 : -1];
21000          int var4[(alignof(long) >= 4) ? 1 : -1];
21001
21002          /* Mute compiler warnings */
21003          var1[0] = var2[0] = var3[0] = 0;
21004          var4[0] = 1;
21005          if (var1[0] + var2[0] + var3[0] == var4[0])
21006            return 1;
21007
21008  ;
21009  return 0;
21010}
21011
21012_ACEOF
21013if ac_fn_c_try_compile "$LINENO"
21014then :
21015
21016          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21017/* end confdefs.h.  */
21018
21019#ifdef HAVE_STDALIGN_H
21020#include <stdalign.h>
21021#endif
21022
21023int
21024main (void)
21025{
21026
21027		          /* Should fail if 'alignof()' works */
21028		          int var1[alignof(nonexisting_type) - 1];
21029
21030		          /* Mute compiler warnings */
21031		          var1[0] = 1;
21032		          if (var1[0] + 1 == 1)
21033		            return 1;
21034
21035  ;
21036  return 0;
21037}
21038
21039_ACEOF
21040if ac_fn_c_try_compile "$LINENO"
21041then :
21042  mhd_cv_c_alignof='no'
21043else $as_nop
21044  mhd_cv_c_alignof='yes'
21045fi
21046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21047
21048else $as_nop
21049  mhd_cv_c_alignof='no'
21050fi
21051rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21052
21053fi
21054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_c_alignof" >&5
21055printf "%s\n" "$mhd_cv_c_alignof" >&6; }
21056if test "x$mhd_cv_c_alignof" = x"yes"
21057then :
21058
21059printf "%s\n" "#define HAVE_C_ALIGNOF 1" >>confdefs.h
21060
21061fi
21062
21063
21064# Check system type
21065shutdown_trig_select='no'
21066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for target host OS" >&5
21067printf %s "checking for target host OS... " >&6; }
21068case "$host_os" in #(
21069  *darwin* | *rhapsody* | *macosx*) :
21070
21071printf "%s\n" "#define OSX 1" >>confdefs.h
21072
21073     CFLAGS="-no-cpp-precomp -fno-common $CFLAGS"
21074     mhd_host_os='Darwin'
21075     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_host_os" >&5
21076printf "%s\n" "$mhd_host_os" >&6; } ;; #(
21077  freebsd*) :
21078
21079printf "%s\n" "#define SOMEBSD 1" >>confdefs.h
21080
21081
21082printf "%s\n" "#define FREEBSD 1" >>confdefs.h
21083
21084     mhd_host_os='FreeBSD'
21085     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_host_os" >&5
21086printf "%s\n" "$mhd_host_os" >&6; } ;; #(
21087  openbsd*) :
21088
21089printf "%s\n" "#define SOMEBSD 1" >>confdefs.h
21090
21091
21092printf "%s\n" "#define OPENBSD 1" >>confdefs.h
21093
21094     mhd_host_os='OpenBSD'
21095     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_host_os" >&5
21096printf "%s\n" "$mhd_host_os" >&6; } ;; #(
21097  netbsd*) :
21098
21099printf "%s\n" "#define SOMEBSD 1" >>confdefs.h
21100
21101
21102printf "%s\n" "#define NETBSD 1" >>confdefs.h
21103
21104     mhd_host_os='NetBSD'
21105     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_host_os" >&5
21106printf "%s\n" "$mhd_host_os" >&6; } ;; #(
21107  *solaris*) :
21108
21109printf "%s\n" "#define SOLARIS 1" >>confdefs.h
21110
21111
21112printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
21113
21114     mhd_host_os='Solaris'
21115     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_host_os" >&5
21116printf "%s\n" "$mhd_host_os" >&6; }
21117     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
21118printf %s "checking for library containing gethostbyname... " >&6; }
21119if test ${ac_cv_search_gethostbyname+y}
21120then :
21121  printf %s "(cached) " >&6
21122else $as_nop
21123  ac_func_search_save_LIBS=$LIBS
21124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21125/* end confdefs.h.  */
21126
21127/* Override any GCC internal prototype to avoid an error.
21128   Use char because int might match the return type of a GCC
21129   builtin and then its argument prototype would still apply.  */
21130char gethostbyname ();
21131int
21132main (void)
21133{
21134return gethostbyname ();
21135  ;
21136  return 0;
21137}
21138_ACEOF
21139for ac_lib in '' nsl
21140do
21141  if test -z "$ac_lib"; then
21142    ac_res="none required"
21143  else
21144    ac_res=-l$ac_lib
21145    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21146  fi
21147  if ac_fn_c_try_link "$LINENO"
21148then :
21149  ac_cv_search_gethostbyname=$ac_res
21150fi
21151rm -f core conftest.err conftest.$ac_objext conftest.beam \
21152    conftest$ac_exeext
21153  if test ${ac_cv_search_gethostbyname+y}
21154then :
21155  break
21156fi
21157done
21158if test ${ac_cv_search_gethostbyname+y}
21159then :
21160
21161else $as_nop
21162  ac_cv_search_gethostbyname=no
21163fi
21164rm conftest.$ac_ext
21165LIBS=$ac_func_search_save_LIBS
21166fi
21167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
21168printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
21169ac_res=$ac_cv_search_gethostbyname
21170if test "$ac_res" != no
21171then :
21172  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21173
21174fi
21175
21176     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
21177printf %s "checking for library containing socket... " >&6; }
21178if test ${ac_cv_search_socket+y}
21179then :
21180  printf %s "(cached) " >&6
21181else $as_nop
21182  ac_func_search_save_LIBS=$LIBS
21183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21184/* end confdefs.h.  */
21185
21186/* Override any GCC internal prototype to avoid an error.
21187   Use char because int might match the return type of a GCC
21188   builtin and then its argument prototype would still apply.  */
21189char socket ();
21190int
21191main (void)
21192{
21193return socket ();
21194  ;
21195  return 0;
21196}
21197_ACEOF
21198for ac_lib in '' socket
21199do
21200  if test -z "$ac_lib"; then
21201    ac_res="none required"
21202  else
21203    ac_res=-l$ac_lib
21204    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21205  fi
21206  if ac_fn_c_try_link "$LINENO"
21207then :
21208  ac_cv_search_socket=$ac_res
21209fi
21210rm -f core conftest.err conftest.$ac_objext conftest.beam \
21211    conftest$ac_exeext
21212  if test ${ac_cv_search_socket+y}
21213then :
21214  break
21215fi
21216done
21217if test ${ac_cv_search_socket+y}
21218then :
21219
21220else $as_nop
21221  ac_cv_search_socket=no
21222fi
21223rm conftest.$ac_ext
21224LIBS=$ac_func_search_save_LIBS
21225fi
21226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
21227printf "%s\n" "$ac_cv_search_socket" >&6; }
21228ac_res=$ac_cv_search_socket
21229if test "$ac_res" != no
21230then :
21231  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21232
21233fi
21234 ;; #(
21235  *arm-linux*) :
21236
21237printf "%s\n" "#define LINUX 1" >>confdefs.h
21238
21239     mhd_host_os='ARM Linux'
21240     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_host_os" >&5
21241printf "%s\n" "$mhd_host_os" >&6; }
21242     CFLAGS="-fPIC -pipe $CFLAGS" ;; #(
21243  *linux*) :
21244
21245printf "%s\n" "#define LINUX 1" >>confdefs.h
21246
21247     mhd_host_os='Linux'
21248     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_host_os" >&5
21249printf "%s\n" "$mhd_host_os" >&6; } ;; #(
21250  *cygwin*) :
21251
21252printf "%s\n" "#define CYGWIN 1" >>confdefs.h
21253
21254     mhd_host_os='Windows/Cygwin'
21255     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_host_os" >&5
21256printf "%s\n" "$mhd_host_os" >&6; }
21257     os_is_windows=yes ;; #(
21258  *mingw*) :
21259
21260
21261printf "%s\n" "#define MINGW 1" >>confdefs.h
21262
21263
21264printf "%s\n" "#define WINDOWS 1" >>confdefs.h
21265
21266     mhd_host_os='Windows/MinGW'
21267     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_host_os" >&5
21268printf "%s\n" "$mhd_host_os" >&6; }
21269     LIBS="$LIBS -lws2_32"
21270            for ac_header in winsock2.h ws2tcpip.h
21271do :
21272  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
21273ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21274"
21275if eval test \"x\$"$as_ac_Header"\" = x"yes"
21276then :
21277  cat >>confdefs.h <<_ACEOF
21278#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
21279_ACEOF
21280
21281else $as_nop
21282  as_fn_error $? "Winsock2 headers are required for W32" "$LINENO" 5
21283fi
21284
21285done
21286     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MS lib utility" >&5
21287printf %s "checking for MS lib utility... " >&6; }
21288if test ${ac_cv_use_ms_lib_tool+y}
21289then :
21290  printf %s "(cached) " >&6
21291else $as_nop
21292  mslibcheck=`lib 2>&1`
21293        if echo "$mslibcheck" | $GREP -e '^Microsoft (R) Library Manager' - >/dev/null
21294then :
21295  ac_cv_use_ms_lib_tool=yes
21296else $as_nop
21297  ac_cv_use_ms_lib_tool=no
21298fi
21299
21300fi
21301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_use_ms_lib_tool" >&5
21302printf "%s\n" "$ac_cv_use_ms_lib_tool" >&6; }
21303     if test "x$ac_cv_use_ms_lib_tool" = "xyes"
21304then :
21305  MS_LIB_TOOL=lib
21306
21307fi
21308
21309     os_is_windows=yes
21310     os_is_native_w32=yes
21311    ;; #(
21312  *openedition*) :
21313
21314printf "%s\n" "#define OS390 1" >>confdefs.h
21315
21316     mhd_host_os='OS/390'
21317     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_host_os" >&5
21318printf "%s\n" "$mhd_host_os" >&6; } ;; #(
21319  gnu*) :
21320
21321printf "%s\n" "#define GNU_HURD 1" >>confdefs.h
21322
21323     mhd_host_os='GNU Hurd'
21324     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_host_os" >&5
21325printf "%s\n" "$mhd_host_os" >&6; }
21326     ;; #(
21327  *) :
21328
21329     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unrecognised OS" >&5
21330printf "%s\n" "unrecognised OS" >&6; }
21331     mhd_host_os="${host_os}"
21332     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unrecognised OS $host_os" >&5
21333printf "%s\n" "$as_me: WARNING: Unrecognised OS $host_os" >&2;}
21334
21335printf "%s\n" "#define OTHEROS 1" >>confdefs.h
21336
21337  ;;
21338esac
21339
21340 if test "x$os_is_windows" = "xyes" && \
21341                                  test "x${os_is_native_w32}" != "xyes"; then
21342  CYGWIN_TARGET_TRUE=
21343  CYGWIN_TARGET_FALSE='#'
21344else
21345  CYGWIN_TARGET_TRUE='#'
21346  CYGWIN_TARGET_FALSE=
21347fi
21348
21349
21350if test "x$os_is_windows" = x"yes"
21351then :
21352
21353    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether target W32 version is specified by precompiler defines" >&5
21354printf %s "checking whether target W32 version is specified by precompiler defines... " >&6; }
21355    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21356/* end confdefs.h.  */
21357
21358/* Note: check logic is reversed for easy log reading */
21359#ifdef WINVER
21360#error WINVER is defined
21361choke me now;
21362#endif
21363#ifdef _WIN32_WINNT
21364#error _WIN32_WINNT is defined
21365choke me now;
21366#endif
21367#ifdef NTDDI
21368#error NTDDI is defined
21369choke me now;
21370#endif
21371
21372int
21373main (void)
21374{
21375(void)0
21376  ;
21377  return 0;
21378}
21379
21380_ACEOF
21381if ac_fn_c_try_compile "$LINENO"
21382then :
21383  mhd_w32_ver_preselect=no
21384else $as_nop
21385  mhd_w32_ver_preselect=yes
21386
21387fi
21388rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21389    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${mhd_w32_ver_preselect}" >&5
21390printf "%s\n" "${mhd_w32_ver_preselect}" >&6; }
21391    ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
21392"
21393if test "x$ac_cv_header_windows_h" = xyes
21394then :
21395  printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
21396
21397fi
21398ac_fn_c_check_header_compile "$LINENO" "sdkddkver.h" "ac_cv_header_sdkddkver_h" "$ac_includes_default
21399"
21400if test "x$ac_cv_header_sdkddkver_h" = xyes
21401then :
21402  printf "%s\n" "#define HAVE_SDKDDKVER_H 1" >>confdefs.h
21403
21404fi
21405
21406    if test "x$mhd_w32_ver_preselect" = x"yes"
21407then :
21408
21409       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for specified target W32 version" >&5
21410printf %s "checking for specified target W32 version... " >&6; }
21411       { mhd_w32_ver=; unset mhd_w32_ver;}
21412       { mhd_w32_ver_msg=; unset mhd_w32_ver_msg;}
21413       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21414/* end confdefs.h.  */
21415
21416#if _WIN32_WINNT+0 < 0x0501
21417/* Check before headers inclusion */
21418#error _WIN32_WINNT is less than 0x0501
21419choke me now;
21420#endif
21421
21422#ifdef HAVE_SDKDDKVER_H
21423#include <sdkddkver.h>
21424#endif
21425#ifdef HAVE_WINDOWS_H
21426#include <windows.h>
21427#endif
21428
21429#if _WIN32_WINNT+0 < 0x0501
21430#error _WIN32_WINNT is less than 0x0501
21431choke me now;
21432#endif
21433
21434int
21435main (void)
21436{
21437(void)0
21438  ;
21439  return 0;
21440}
21441
21442_ACEOF
21443if ac_fn_c_try_compile "$LINENO"
21444then :
21445
21446else $as_nop
21447
21448           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: pre-WinXP" >&5
21449printf "%s\n" "pre-WinXP" >&6; }
21450           as_fn_error $? "libmicrohttpd cannot be compiled for Windows version before Windows XP" "$LINENO" 5
21451
21452
21453fi
21454rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21455       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21456/* end confdefs.h.  */
21457
21458#ifdef HAVE_SDKDDKVER_H
21459#include <sdkddkver.h>
21460#endif
21461#ifdef HAVE_WINDOWS_H
21462#include <windows.h>
21463#endif
21464
21465#if _WIN32_WINNT+0 == 0x0501
21466#error _WIN32_WINNT is 0x0501
21467choke me now;
21468#endif
21469#if _WIN32_WINNT+0 == 0x0502
21470#error _WIN32_WINNT is 0x0502
21471choke me now;
21472#endif
21473
21474int
21475main (void)
21476{
21477(void)0
21478  ;
21479  return 0;
21480}
21481
21482_ACEOF
21483if ac_fn_c_try_compile "$LINENO"
21484then :
21485
21486else $as_nop
21487
21488           mhd_w32_ver="WinXP"
21489           mhd_w32_ver_msg="WinXP (selected by precompiler flags)"
21490
21491
21492fi
21493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21494       if test ${mhd_w32_ver+y}
21495then :
21496
21497else $as_nop
21498
21499           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21500/* end confdefs.h.  */
21501
21502#ifdef HAVE_SDKDDKVER_H
21503#include <sdkddkver.h>
21504#endif
21505#ifdef HAVE_WINDOWS_H
21506#include <windows.h>
21507#endif
21508
21509#if _WIN32_WINNT+0 < 0x0600
21510#error _WIN32_WINNT is less than 0x0600 but greater than 0x0502
21511choke me now;
21512#endif
21513
21514int
21515main (void)
21516{
21517(void)0
21518  ;
21519  return 0;
21520}
21521
21522_ACEOF
21523if ac_fn_c_try_compile "$LINENO"
21524then :
21525
21526else $as_nop
21527
21528               as_fn_error $? "_WIN32_WINNT value is wrong (less than 0x0600 but greater than 0x0502)" "$LINENO" 5
21529
21530
21531fi
21532rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21533
21534           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21535/* end confdefs.h.  */
21536
21537#ifdef HAVE_SDKDDKVER_H
21538#include <sdkddkver.h>
21539#endif
21540#ifdef HAVE_WINDOWS_H
21541#include <windows.h>
21542#endif
21543
21544#if _WIN32_WINNT+0 == 0x0600
21545#error _WIN32_WINNT is 0x0600
21546choke me now;
21547#endif
21548
21549int
21550main (void)
21551{
21552(void)0
21553  ;
21554  return 0;
21555}
21556
21557_ACEOF
21558if ac_fn_c_try_compile "$LINENO"
21559then :
21560
21561else $as_nop
21562
21563               mhd_w32_ver="Vista"
21564               mhd_w32_ver_msg="Vista (selected by precompiler flags)"
21565
21566
21567fi
21568rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21569
21570
21571fi
21572
21573       if test ${mhd_w32_ver+y}
21574then :
21575
21576else $as_nop
21577
21578           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21579/* end confdefs.h.  */
21580
21581#ifdef HAVE_SDKDDKVER_H
21582#include <sdkddkver.h>
21583#endif
21584#ifdef HAVE_WINDOWS_H
21585#include <windows.h>
21586#endif
21587
21588#if _WIN32_WINNT+0 > 0x0600
21589#error _WIN32_WINNT is greater than 0x0600
21590choke me now;
21591#endif
21592
21593int
21594main (void)
21595{
21596(void)0
21597  ;
21598  return 0;
21599}
21600
21601_ACEOF
21602if ac_fn_c_try_compile "$LINENO"
21603then :
21604
21605               mhd_w32_ver="unknown"
21606               mhd_w32_ver_msg="unknown (cannot be detected)"
21607
21608else $as_nop
21609
21610               mhd_w32_ver="newer than Vista"
21611               mhd_w32_ver_msg="newer than Vista (selected by precompiler flags)"
21612
21613
21614fi
21615rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21616
21617
21618fi
21619       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${mhd_w32_ver}" >&5
21620printf "%s\n" "${mhd_w32_ver}" >&6; }
21621
21622else $as_nop
21623
21624       mhd_w32_ver="Vista"
21625       mhd_w32_ver_msg="Vista (default, override by CPPFLAGS=-D_WIN32_WINNT=0xNNNN)"
21626       CPPFLAGS="$CPPFLAGS -D_WIN32_WINNT=0x0600"
21627       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether headers accept _WIN32_WINNT=0x0600" >&5
21628printf %s "checking whether headers accept _WIN32_WINNT=0x0600... " >&6; }
21629       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21630/* end confdefs.h.  */
21631
21632#ifdef HAVE_SDKDDKVER_H
21633#include <sdkddkver.h>
21634#endif
21635#ifdef HAVE_WINDOWS_H
21636#include <windows.h>
21637#endif
21638#include <stdio.h>
21639
21640int
21641main (void)
21642{
21643(void)0
21644  ;
21645  return 0;
21646}
21647
21648_ACEOF
21649if ac_fn_c_try_compile "$LINENO"
21650then :
21651
21652           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21653printf "%s\n" "yes" >&6; }
21654
21655else $as_nop
21656
21657           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21658printf "%s\n" "no" >&6; }
21659           as_fn_error $? "Headers do not accept _WIN32_WINNT=0x0600. Consider override target W32 version by CPPFLAGS=-D_WIN32_WINNT=0xNNNN" "$LINENO" 5
21660
21661
21662fi
21663rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21664
21665
21666fi
21667
21668
21669fi
21670
21671if test "x${os_is_windows}" = "xyes" && test "x${os_is_native_w32}" = "xyes"
21672then :
21673
21674    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking W32 run-time library type" >&5
21675printf %s "checking W32 run-time library type... " >&6; }
21676if test ${mhd_cv_wctr_type+y}
21677then :
21678  printf %s "(cached) " >&6
21679else $as_nop
21680
21681        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21682/* end confdefs.h.  */
21683
21684#include <stdio.h>
21685#if defined(_UCRT)
21686#define CRT_STR "MHDMARKER: UCRT run-time library in use!"
21687#endif
21688#if defined(__MSVCRT_VERSION__)
21689#if (__MSVCRT_VERSION__ >= 0xE00) && (__MSVCRT_VERSION__ < 0x1000)
21690#define CRT_STR "MHDMARKER: UCRT run-time library in use!"
21691#endif
21692#if (__MSVCRT_VERSION__ > 0x1400)
21693#define CRT_STR "MHDMARKER: UCRT run-time library in use!"
21694#endif
21695#endif
21696
21697#ifndef CRT_STR
21698#define CRT_STR "MHDMARKER: MSVCRT run-time library in use!"
21699#endif
21700
21701int main(void)
21702{
21703  printf ("%\n", CRT_STR);
21704  return 0;
21705}
21706
21707_ACEOF
21708if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21709  $EGREP "MHDMARKER: UCRT run-time library in use!" >/dev/null 2>&1
21710then :
21711  mhd_cv_wctr_type="ucrt"
21712else $as_nop
21713  mhd_cv_wctr_type="msvcrt"
21714fi
21715rm -rf conftest*
21716
21717
21718
21719fi
21720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_wctr_type" >&5
21721printf "%s\n" "$mhd_cv_wctr_type" >&6; }
21722    mhd_host_os="${mhd_host_os}-${mhd_cv_wctr_type}"
21723    if test "x$mhd_cv_wctr_type" = x"msvcrt"
21724then :
21725
21726
21727
21728
21729
21730for flag in -D__USE_MINGW_ANSI_STDIO=0; do
21731  as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
21732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
21733printf %s "checking whether C compiler accepts $flag... " >&6; }
21734if eval test \${$as_CACHEVAR+y}
21735then :
21736  printf %s "(cached) " >&6
21737else $as_nop
21738
21739  ax_check_save_flags=$CFLAGS
21740  CFLAGS="$CFLAGS  $flag"
21741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21742/* end confdefs.h.  */
21743
21744int
21745main (void)
21746{
21747
21748  ;
21749  return 0;
21750}
21751_ACEOF
21752if ac_fn_c_try_compile "$LINENO"
21753then :
21754  eval "$as_CACHEVAR=yes"
21755else $as_nop
21756  eval "$as_CACHEVAR=no"
21757fi
21758rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21759  CFLAGS=$ax_check_save_flags
21760fi
21761eval ac_res=\$$as_CACHEVAR
21762	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21763printf "%s\n" "$ac_res" >&6; }
21764if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
21765then :
21766
21767if test ${CPPFLAGS+y}
21768then :
21769
21770  case " $CPPFLAGS " in #(
21771  *" $flag "*) :
21772    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS already contains \$flag"; } >&5
21773  (: CPPFLAGS already contains $flag) 2>&5
21774  ac_status=$?
21775  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21776  test $ac_status = 0; } ;; #(
21777  *) :
21778
21779     as_fn_append CPPFLAGS " $flag"
21780     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
21781  (: CPPFLAGS="$CPPFLAGS") 2>&5
21782  ac_status=$?
21783  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21784  test $ac_status = 0; }
21785     ;;
21786esac
21787
21788else $as_nop
21789
21790  CPPFLAGS=$flag
21791  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
21792  (: CPPFLAGS="$CPPFLAGS") 2>&5
21793  ac_status=$?
21794  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21795  test $ac_status = 0; }
21796
21797fi
21798
21799else $as_nop
21800  :
21801fi
21802
21803done
21804
21805        W32CRT=MSVCRT
21806
21807
21808else $as_nop
21809  W32CRT=UCRT
21810
21811
21812fi
21813
21814
21815fi
21816
21817
21818
21819
21820# Check whether --with-threads was given.
21821if test ${with_threads+y}
21822then :
21823  withval=$with_threads;
21824else $as_nop
21825  with_threads='auto'
21826fi
21827
21828case $with_threads in #(
21829  win32) :
21830    with_threads='w32' ;; #(
21831  pthreads) :
21832    with_threads='posix' ;; #(
21833  posix) :
21834    : ;; #(
21835  w32) :
21836    : ;; #(
21837  none) :
21838    with_threads='none' ;; #(
21839  no) :
21840    with_threads='none' ;; #(
21841  auto) :
21842    : ;; #(
21843  *) :
21844    as_fn_error $? "incorrect parameter \"$with_threads\" specified for --with-threads" "$LINENO" 5
21845 ;;
21846esac
21847
21848# Check for posix threads support, regardless of configure parameters as
21849# testsuite uses only posix threads.
21850
21851
21852
21853
21854ac_ext=c
21855ac_cpp='$CPP $CPPFLAGS'
21856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21858ac_compiler_gnu=$ac_cv_c_compiler_gnu
21859
21860ax_pthread_ok=no
21861
21862# We used to check for pthread.h first, but this fails if pthread.h
21863# requires special compiler flags (e.g. on Tru64 or Sequent).
21864# It gets checked for in the link test anyway.
21865
21866# First of all, check if the user has set any of the PTHREAD_LIBS,
21867# etcetera environment variables, and if threads linking works using
21868# them:
21869if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
21870        ax_pthread_save_CC="$CC"
21871        ax_pthread_save_CFLAGS="$CFLAGS"
21872        ax_pthread_save_LIBS="$LIBS"
21873        if test "x$PTHREAD_CC" != "x"
21874then :
21875  CC="$PTHREAD_CC"
21876fi
21877        if test "x$PTHREAD_CXX" != "x"
21878then :
21879  CXX="$PTHREAD_CXX"
21880fi
21881        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21882        LIBS="$PTHREAD_LIBS $LIBS"
21883        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
21884printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
21885        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21886/* end confdefs.h.  */
21887
21888/* Override any GCC internal prototype to avoid an error.
21889   Use char because int might match the return type of a GCC
21890   builtin and then its argument prototype would still apply.  */
21891char pthread_join ();
21892int
21893main (void)
21894{
21895return pthread_join ();
21896  ;
21897  return 0;
21898}
21899_ACEOF
21900if ac_fn_c_try_link "$LINENO"
21901then :
21902  ax_pthread_ok=yes
21903fi
21904rm -f core conftest.err conftest.$ac_objext conftest.beam \
21905    conftest$ac_exeext conftest.$ac_ext
21906        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
21907printf "%s\n" "$ax_pthread_ok" >&6; }
21908        if test "x$ax_pthread_ok" = "xno"; then
21909                PTHREAD_LIBS=""
21910                PTHREAD_CFLAGS=""
21911        fi
21912        CC="$ax_pthread_save_CC"
21913        CFLAGS="$ax_pthread_save_CFLAGS"
21914        LIBS="$ax_pthread_save_LIBS"
21915fi
21916
21917# We must check for the threads library under a number of different
21918# names; the ordering is very important because some systems
21919# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
21920# libraries is broken (non-POSIX).
21921
21922# Create a list of thread flags to try. Items with a "," contain both
21923# C compiler flags (before ",") and linker flags (after ","). Other items
21924# starting with a "-" are C compiler flags, and remaining items are
21925# library names, except for "none" which indicates that we try without
21926# any flags at all, and "pthread-config" which is a program returning
21927# the flags for the Pth emulation library.
21928
21929ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
21930
21931# The ordering *is* (sometimes) important.  Some notes on the
21932# individual items follow:
21933
21934# pthreads: AIX (must check this before -lpthread)
21935# none: in case threads are in libc; should be tried before -Kthread and
21936#       other compiler flags to prevent continual compiler warnings
21937# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
21938# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
21939#           (Note: HP C rejects this with "bad form for `-t' option")
21940# -pthreads: Solaris/gcc (Note: HP C also rejects)
21941# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
21942#      doesn't hurt to check since this sometimes defines pthreads and
21943#      -D_REENTRANT too), HP C (must be checked before -lpthread, which
21944#      is present but should not be used directly; and before -mthreads,
21945#      because the compiler interprets this as "-mt" + "-hreads")
21946# -mthreads: Mingw32/gcc, Lynx/gcc
21947# pthread: Linux, etcetera
21948# --thread-safe: KAI C++
21949# pthread-config: use pthread-config program (for GNU Pth library)
21950
21951case $host_os in
21952
21953        freebsd*)
21954
21955        # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
21956        # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
21957
21958        ax_pthread_flags="-kthread lthread $ax_pthread_flags"
21959        ;;
21960
21961        hpux*)
21962
21963        # From the cc(1) man page: "[-mt] Sets various -D flags to enable
21964        # multi-threading and also sets -lpthread."
21965
21966        ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
21967        ;;
21968
21969        openedition*)
21970
21971        # IBM z/OS requires a feature-test macro to be defined in order to
21972        # enable POSIX threads at all, so give the user a hint if this is
21973        # not set. (We don't define these ourselves, as they can affect
21974        # other portions of the system API in unpredictable ways.)
21975
21976        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21977/* end confdefs.h.  */
21978
21979#            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
21980             AX_PTHREAD_ZOS_MISSING
21981#            endif
21982
21983_ACEOF
21984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21985  $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
21986then :
21987  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
21988printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
21989fi
21990rm -rf conftest*
21991
21992        ;;
21993
21994        solaris*)
21995
21996        # On Solaris (at least, for some versions), libc contains stubbed
21997        # (non-functional) versions of the pthreads routines, so link-based
21998        # tests will erroneously succeed. (N.B.: The stubs are missing
21999        # pthread_cleanup_push, or rather a function called by this macro,
22000        # so we could check for that, but who knows whether they'll stub
22001        # that too in a future libc.)  So we'll check first for the
22002        # standard Solaris way of linking pthreads (-mt -lpthread).
22003
22004        ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
22005        ;;
22006esac
22007
22008# Are we compiling with Clang?
22009
22010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
22011printf %s "checking whether $CC is Clang... " >&6; }
22012if test ${ax_cv_PTHREAD_CLANG+y}
22013then :
22014  printf %s "(cached) " >&6
22015else $as_nop
22016  ax_cv_PTHREAD_CLANG=no
22017     # Note that Autoconf sets GCC=yes for Clang as well as GCC
22018     if test "x$GCC" = "xyes"; then
22019        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22020/* end confdefs.h.  */
22021/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
22022#            if defined(__clang__) && defined(__llvm__)
22023             AX_PTHREAD_CC_IS_CLANG
22024#            endif
22025
22026_ACEOF
22027if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22028  $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
22029then :
22030  ax_cv_PTHREAD_CLANG=yes
22031fi
22032rm -rf conftest*
22033
22034     fi
22035
22036fi
22037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
22038printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
22039ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
22040
22041
22042# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
22043
22044# Note that for GCC and Clang -pthread generally implies -lpthread,
22045# except when -nostdlib is passed.
22046# This is problematic using libtool to build C++ shared libraries with pthread:
22047# [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
22048# [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
22049# [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
22050# To solve this, first try -pthread together with -lpthread for GCC
22051
22052if test "x$GCC" = "xyes"
22053then :
22054  ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
22055fi
22056
22057# Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
22058
22059if test "x$ax_pthread_clang" = "xyes"
22060then :
22061  ax_pthread_flags="-pthread,-lpthread -pthread"
22062fi
22063
22064
22065# The presence of a feature test macro requesting re-entrant function
22066# definitions is, on some systems, a strong hint that pthreads support is
22067# correctly enabled
22068
22069case $host_os in
22070        darwin* | hpux* | linux* | osf* | solaris*)
22071        ax_pthread_check_macro="_REENTRANT"
22072        ;;
22073
22074        aix*)
22075        ax_pthread_check_macro="_THREAD_SAFE"
22076        ;;
22077
22078        *)
22079        ax_pthread_check_macro="--"
22080        ;;
22081esac
22082if test "x$ax_pthread_check_macro" = "x--"
22083then :
22084  ax_pthread_check_cond=0
22085else $as_nop
22086  ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
22087fi
22088
22089
22090if test "x$ax_pthread_ok" = "xno"; then
22091for ax_pthread_try_flag in $ax_pthread_flags; do
22092
22093        case $ax_pthread_try_flag in
22094                none)
22095                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
22096printf %s "checking whether pthreads work without any flags... " >&6; }
22097                ;;
22098
22099                *,*)
22100                PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
22101                PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
22102                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
22103printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
22104                ;;
22105
22106                -*)
22107                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
22108printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
22109                PTHREAD_CFLAGS="$ax_pthread_try_flag"
22110                ;;
22111
22112                pthread-config)
22113                # Extract the first word of "pthread-config", so it can be a program name with args.
22114set dummy pthread-config; ac_word=$2
22115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22116printf %s "checking for $ac_word... " >&6; }
22117if test ${ac_cv_prog_ax_pthread_config+y}
22118then :
22119  printf %s "(cached) " >&6
22120else $as_nop
22121  if test -n "$ax_pthread_config"; then
22122  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
22123else
22124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22125for as_dir in $PATH
22126do
22127  IFS=$as_save_IFS
22128  case $as_dir in #(((
22129    '') as_dir=./ ;;
22130    */) ;;
22131    *) as_dir=$as_dir/ ;;
22132  esac
22133    for ac_exec_ext in '' $ac_executable_extensions; do
22134  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22135    ac_cv_prog_ax_pthread_config="yes"
22136    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22137    break 2
22138  fi
22139done
22140  done
22141IFS=$as_save_IFS
22142
22143  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
22144fi
22145fi
22146ax_pthread_config=$ac_cv_prog_ax_pthread_config
22147if test -n "$ax_pthread_config"; then
22148  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
22149printf "%s\n" "$ax_pthread_config" >&6; }
22150else
22151  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22152printf "%s\n" "no" >&6; }
22153fi
22154
22155
22156                if test "x$ax_pthread_config" = "xno"
22157then :
22158  continue
22159fi
22160                PTHREAD_CFLAGS="`pthread-config --cflags`"
22161                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22162                ;;
22163
22164                *)
22165                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
22166printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
22167                PTHREAD_LIBS="-l$ax_pthread_try_flag"
22168                ;;
22169        esac
22170
22171        ax_pthread_save_CFLAGS="$CFLAGS"
22172        ax_pthread_save_LIBS="$LIBS"
22173        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22174        LIBS="$PTHREAD_LIBS $LIBS"
22175
22176        # Check for various functions.  We must include pthread.h,
22177        # since some functions may be macros.  (On the Sequent, we
22178        # need a special flag -Kthread to make this header compile.)
22179        # We check for pthread_join because it is in -lpthread on IRIX
22180        # while pthread_create is in libc.  We check for pthread_attr_init
22181        # due to DEC craziness with -lpthreads.  We check for
22182        # pthread_cleanup_push because it is one of the few pthread
22183        # functions on Solaris that doesn't have a non-functional libc stub.
22184        # We try pthread_create on general principles.
22185
22186        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22187/* end confdefs.h.  */
22188#include <pthread.h>
22189#                       if $ax_pthread_check_cond
22190#                        error "$ax_pthread_check_macro must be defined"
22191#                       endif
22192                        static void *some_global = NULL;
22193                        static void routine(void *a)
22194                          {
22195                             /* To avoid any unused-parameter or
22196                                unused-but-set-parameter warning.  */
22197                             some_global = a;
22198                          }
22199                        static void *start_routine(void *a) { return a; }
22200int
22201main (void)
22202{
22203pthread_t th; pthread_attr_t attr;
22204                        pthread_create(&th, 0, start_routine, 0);
22205                        pthread_join(th, 0);
22206                        pthread_attr_init(&attr);
22207                        pthread_cleanup_push(routine, 0);
22208                        pthread_cleanup_pop(0) /* ; */
22209  ;
22210  return 0;
22211}
22212_ACEOF
22213if ac_fn_c_try_link "$LINENO"
22214then :
22215  ax_pthread_ok=yes
22216fi
22217rm -f core conftest.err conftest.$ac_objext conftest.beam \
22218    conftest$ac_exeext conftest.$ac_ext
22219
22220        CFLAGS="$ax_pthread_save_CFLAGS"
22221        LIBS="$ax_pthread_save_LIBS"
22222
22223        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
22224printf "%s\n" "$ax_pthread_ok" >&6; }
22225        if test "x$ax_pthread_ok" = "xyes"
22226then :
22227  break
22228fi
22229
22230        PTHREAD_LIBS=""
22231        PTHREAD_CFLAGS=""
22232done
22233fi
22234
22235
22236# Clang needs special handling, because older versions handle the -pthread
22237# option in a rather... idiosyncratic way
22238
22239if test "x$ax_pthread_clang" = "xyes"; then
22240
22241        # Clang takes -pthread; it has never supported any other flag
22242
22243        # (Note 1: This will need to be revisited if a system that Clang
22244        # supports has POSIX threads in a separate library.  This tends not
22245        # to be the way of modern systems, but it's conceivable.)
22246
22247        # (Note 2: On some systems, notably Darwin, -pthread is not needed
22248        # to get POSIX threads support; the API is always present and
22249        # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
22250        # -pthread does define _REENTRANT, and while the Darwin headers
22251        # ignore this macro, third-party headers might not.)
22252
22253        # However, older versions of Clang make a point of warning the user
22254        # that, in an invocation where only linking and no compilation is
22255        # taking place, the -pthread option has no effect ("argument unused
22256        # during compilation").  They expect -pthread to be passed in only
22257        # when source code is being compiled.
22258        #
22259        # Problem is, this is at odds with the way Automake and most other
22260        # C build frameworks function, which is that the same flags used in
22261        # compilation (CFLAGS) are also used in linking.  Many systems
22262        # supported by AX_PTHREAD require exactly this for POSIX threads
22263        # support, and in fact it is often not straightforward to specify a
22264        # flag that is used only in the compilation phase and not in
22265        # linking.  Such a scenario is extremely rare in practice.
22266        #
22267        # Even though use of the -pthread flag in linking would only print
22268        # a warning, this can be a nuisance for well-run software projects
22269        # that build with -Werror.  So if the active version of Clang has
22270        # this misfeature, we search for an option to squash it.
22271
22272        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
22273printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
22274if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
22275then :
22276  printf %s "(cached) " >&6
22277else $as_nop
22278  ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
22279             # Create an alternate version of $ac_link that compiles and
22280             # links in two steps (.c -> .o, .o -> exe) instead of one
22281             # (.c -> exe), because the warning occurs only in the second
22282             # step
22283             ax_pthread_save_ac_link="$ac_link"
22284             ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
22285             ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
22286             ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
22287             ax_pthread_save_CFLAGS="$CFLAGS"
22288             for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
22289                if test "x$ax_pthread_try" = "xunknown"
22290then :
22291  break
22292fi
22293                CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
22294                ac_link="$ax_pthread_save_ac_link"
22295                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22296/* end confdefs.h.  */
22297int main(void){return 0;}
22298_ACEOF
22299if ac_fn_c_try_link "$LINENO"
22300then :
22301  ac_link="$ax_pthread_2step_ac_link"
22302                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22303/* end confdefs.h.  */
22304int main(void){return 0;}
22305_ACEOF
22306if ac_fn_c_try_link "$LINENO"
22307then :
22308  break
22309fi
22310rm -f core conftest.err conftest.$ac_objext conftest.beam \
22311    conftest$ac_exeext conftest.$ac_ext
22312
22313fi
22314rm -f core conftest.err conftest.$ac_objext conftest.beam \
22315    conftest$ac_exeext conftest.$ac_ext
22316             done
22317             ac_link="$ax_pthread_save_ac_link"
22318             CFLAGS="$ax_pthread_save_CFLAGS"
22319             if test "x$ax_pthread_try" = "x"
22320then :
22321  ax_pthread_try=no
22322fi
22323             ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
22324
22325fi
22326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
22327printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
22328
22329        case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
22330                no | unknown) ;;
22331                *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
22332        esac
22333
22334fi # $ax_pthread_clang = yes
22335
22336
22337
22338# Various other checks:
22339if test "x$ax_pthread_ok" = "xyes"; then
22340        ax_pthread_save_CFLAGS="$CFLAGS"
22341        ax_pthread_save_LIBS="$LIBS"
22342        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22343        LIBS="$PTHREAD_LIBS $LIBS"
22344
22345        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
22346        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
22347printf %s "checking for joinable pthread attribute... " >&6; }
22348if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
22349then :
22350  printf %s "(cached) " >&6
22351else $as_nop
22352  ax_cv_PTHREAD_JOINABLE_ATTR=unknown
22353             for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
22354                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22355/* end confdefs.h.  */
22356#include <pthread.h>
22357int
22358main (void)
22359{
22360int attr = $ax_pthread_attr; return attr /* ; */
22361  ;
22362  return 0;
22363}
22364_ACEOF
22365if ac_fn_c_try_link "$LINENO"
22366then :
22367  ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
22368fi
22369rm -f core conftest.err conftest.$ac_objext conftest.beam \
22370    conftest$ac_exeext conftest.$ac_ext
22371             done
22372
22373fi
22374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
22375printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
22376        if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
22377               test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
22378               test "x$ax_pthread_joinable_attr_defined" != "xyes"
22379then :
22380
22381printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
22382
22383               ax_pthread_joinable_attr_defined=yes
22384
22385fi
22386
22387        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
22388printf %s "checking whether more special flags are required for pthreads... " >&6; }
22389if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
22390then :
22391  printf %s "(cached) " >&6
22392else $as_nop
22393  ax_cv_PTHREAD_SPECIAL_FLAGS=no
22394             case $host_os in
22395             solaris*)
22396             ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
22397             ;;
22398             esac
22399
22400fi
22401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
22402printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
22403        if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
22404               test "x$ax_pthread_special_flags_added" != "xyes"
22405then :
22406  PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
22407               ax_pthread_special_flags_added=yes
22408fi
22409
22410        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
22411printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
22412if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
22413then :
22414  printf %s "(cached) " >&6
22415else $as_nop
22416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22417/* end confdefs.h.  */
22418#include <pthread.h>
22419int
22420main (void)
22421{
22422int i = PTHREAD_PRIO_INHERIT;
22423                                               return i;
22424  ;
22425  return 0;
22426}
22427_ACEOF
22428if ac_fn_c_try_link "$LINENO"
22429then :
22430  ax_cv_PTHREAD_PRIO_INHERIT=yes
22431else $as_nop
22432  ax_cv_PTHREAD_PRIO_INHERIT=no
22433fi
22434rm -f core conftest.err conftest.$ac_objext conftest.beam \
22435    conftest$ac_exeext conftest.$ac_ext
22436
22437fi
22438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
22439printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
22440        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
22441               test "x$ax_pthread_prio_inherit_defined" != "xyes"
22442then :
22443
22444printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
22445
22446               ax_pthread_prio_inherit_defined=yes
22447
22448fi
22449
22450        CFLAGS="$ax_pthread_save_CFLAGS"
22451        LIBS="$ax_pthread_save_LIBS"
22452
22453        # More AIX lossage: compile with *_r variant
22454        if test "x$GCC" != "xyes"; then
22455            case $host_os in
22456                aix*)
22457                case "x/$CC" in #(
22458  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
22459    #handle absolute path differently from PATH based program lookup
22460                     case "x$CC" in #(
22461  x/*) :
22462
22463			   if as_fn_executable_p ${CC}_r
22464then :
22465  PTHREAD_CC="${CC}_r"
22466fi
22467			   if test "x${CXX}" != "x"
22468then :
22469  if as_fn_executable_p ${CXX}_r
22470then :
22471  PTHREAD_CXX="${CXX}_r"
22472fi
22473fi
22474			  ;; #(
22475  *) :
22476
22477			   for ac_prog in ${CC}_r
22478do
22479  # Extract the first word of "$ac_prog", so it can be a program name with args.
22480set dummy $ac_prog; ac_word=$2
22481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22482printf %s "checking for $ac_word... " >&6; }
22483if test ${ac_cv_prog_PTHREAD_CC+y}
22484then :
22485  printf %s "(cached) " >&6
22486else $as_nop
22487  if test -n "$PTHREAD_CC"; then
22488  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22489else
22490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22491for as_dir in $PATH
22492do
22493  IFS=$as_save_IFS
22494  case $as_dir in #(((
22495    '') as_dir=./ ;;
22496    */) ;;
22497    *) as_dir=$as_dir/ ;;
22498  esac
22499    for ac_exec_ext in '' $ac_executable_extensions; do
22500  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22501    ac_cv_prog_PTHREAD_CC="$ac_prog"
22502    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22503    break 2
22504  fi
22505done
22506  done
22507IFS=$as_save_IFS
22508
22509fi
22510fi
22511PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22512if test -n "$PTHREAD_CC"; then
22513  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
22514printf "%s\n" "$PTHREAD_CC" >&6; }
22515else
22516  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22517printf "%s\n" "no" >&6; }
22518fi
22519
22520
22521  test -n "$PTHREAD_CC" && break
22522done
22523test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
22524
22525			   if test "x${CXX}" != "x"
22526then :
22527  for ac_prog in ${CXX}_r
22528do
22529  # Extract the first word of "$ac_prog", so it can be a program name with args.
22530set dummy $ac_prog; ac_word=$2
22531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22532printf %s "checking for $ac_word... " >&6; }
22533if test ${ac_cv_prog_PTHREAD_CXX+y}
22534then :
22535  printf %s "(cached) " >&6
22536else $as_nop
22537  if test -n "$PTHREAD_CXX"; then
22538  ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
22539else
22540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22541for as_dir in $PATH
22542do
22543  IFS=$as_save_IFS
22544  case $as_dir in #(((
22545    '') as_dir=./ ;;
22546    */) ;;
22547    *) as_dir=$as_dir/ ;;
22548  esac
22549    for ac_exec_ext in '' $ac_executable_extensions; do
22550  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22551    ac_cv_prog_PTHREAD_CXX="$ac_prog"
22552    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22553    break 2
22554  fi
22555done
22556  done
22557IFS=$as_save_IFS
22558
22559fi
22560fi
22561PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
22562if test -n "$PTHREAD_CXX"; then
22563  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
22564printf "%s\n" "$PTHREAD_CXX" >&6; }
22565else
22566  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22567printf "%s\n" "no" >&6; }
22568fi
22569
22570
22571  test -n "$PTHREAD_CXX" && break
22572done
22573test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
22574
22575fi
22576
22577                      ;;
22578esac
22579                     ;; #(
22580  *) :
22581     ;;
22582esac
22583                ;;
22584            esac
22585        fi
22586fi
22587
22588test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
22589test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
22590
22591
22592
22593
22594
22595
22596# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22597if test "x$ax_pthread_ok" = "xyes"; then
22598
22599    mhd_have_posix_threads='yes'
22600
22601printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
22602
22603	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask(3) is available" >&5
22604printf %s "checking whether pthread_sigmask(3) is available... " >&6; }
22605if test ${mhd_cv_func_pthread_sigmask+y}
22606then :
22607  printf %s "(cached) " >&6
22608else $as_nop
22609  	  save_LIBS="$LIBS"
22610	  save_CFLAGS="$CFLAGS"
22611	  LIBS="$PTHREAD_LIBS $LIBS"
22612  	  CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22613	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22614/* end confdefs.h.  */
22615#include <signal.h>
22616int
22617main (void)
22618{
22619
22620	      sigset_t nset, oset;
22621	      sigemptyset (&nset);
22622	      sigaddset (&nset, SIGPIPE);
22623	      if (0 != pthread_sigmask(SIG_BLOCK, &nset, &oset)) return 1;
22624
22625  ;
22626  return 0;
22627}
22628_ACEOF
22629if ac_fn_c_try_link "$LINENO"
22630then :
22631  mhd_cv_func_pthread_sigmask="yes"
22632else $as_nop
22633  mhd_cv_func_pthread_sigmask="no"
22634fi
22635rm -f core conftest.err conftest.$ac_objext conftest.beam \
22636    conftest$ac_exeext conftest.$ac_ext
22637	  LIBS="${save_LIBS}"
22638	  CFLAGS="${save_CFLAGS}"
22639
22640fi
22641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_func_pthread_sigmask" >&5
22642printf "%s\n" "$mhd_cv_func_pthread_sigmask" >&6; }
22643	if test "x$mhd_cv_func_pthread_sigmask" = x"yes"
22644then :
22645
22646printf "%s\n" "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
22647
22648fi
22649
22650        :
22651else
22652        ax_pthread_ok=no
22653        mhd_have_posix_threads='no'
22654fi
22655ac_ext=c
22656ac_cpp='$CPP $CPPFLAGS'
22657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22659ac_compiler_gnu=$ac_cv_c_compiler_gnu
22660
22661
22662 if test "x$mhd_have_posix_threads" = "xyes"; then
22663  HAVE_POSIX_THREADS_TRUE=
22664  HAVE_POSIX_THREADS_FALSE='#'
22665else
22666  HAVE_POSIX_THREADS_TRUE='#'
22667  HAVE_POSIX_THREADS_FALSE=
22668fi
22669
22670
22671mhd_have_w32_threads='no'
22672if test "x$with_threads" = "xauto"
22673then :
22674
22675 if test "x$os_is_windows" = "xyes"
22676then :
22677
22678    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for W32 threads" >&5
22679printf %s "checking for W32 threads... " >&6; }
22680    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22681/* end confdefs.h.  */
22682
22683#include <windows.h>
22684
22685int
22686main (void)
22687{
22688 HANDLE h = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
22689  ;
22690  return 0;
22691}
22692
22693_ACEOF
22694if ac_fn_c_try_link "$LINENO"
22695then :
22696  mhd_have_w32_threads='yes'
22697else $as_nop
22698  mhd_have_w32_threads='no'
22699
22700fi
22701rm -f core conftest.err conftest.$ac_objext conftest.beam \
22702    conftest$ac_exeext conftest.$ac_ext
22703    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_have_w32_threads" >&5
22704printf "%s\n" "$mhd_have_w32_threads" >&6; }
22705
22706fi
22707
22708
22709fi
22710
22711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for threading lib to use with libmicrohttpd ($with_threads)" >&5
22712printf %s "checking for threading lib to use with libmicrohttpd ($with_threads)... " >&6; }
22713if test "x$with_threads" = "xposix"
22714then :
22715   # forced posix threads
22716    if test "x$mhd_have_posix_threads" = "xyes"
22717then :
22718  USE_THREADS='posix'
22719else $as_nop
22720   if test "x$os_is_windows" = "xyes"
22721then :
22722   as_fn_error $? "Posix threads are not available. Try to configure --with-threads=auto" "$LINENO" 5
22723else $as_nop
22724   as_fn_error $? "No threading lib is available. Consider installing pthreads" "$LINENO" 5
22725fi
22726
22727fi
22728
22729fi
22730if test "x$with_threads" = "xw32"
22731then :
22732   # forced w32 threads
22733    if test "x$mhd_have_w32_threads" = "xyes"
22734then :
22735   USE_THREADS='w32'
22736else $as_nop
22737   as_fn_error $? "W32 threads are not available. Try to configure --with-threads=auto" "$LINENO" 5
22738fi
22739
22740fi
22741if test "x$with_threads" = "xauto"
22742then :
22743  # automatic threads lib selection
22744       if test "x$os_is_native_w32" = "xyes" && test "x$mhd_have_w32_threads" = "xyes"
22745then :
22746   USE_THREADS='w32'
22747elif  test "x$mhd_have_posix_threads" = "xyes"
22748then :
22749   USE_THREADS='posix'
22750elif  test "x$mhd_have_w32_threads" = "xyes"
22751then :
22752   USE_THREADS='w32'
22753else $as_nop
22754   as_fn_error $? "No threading lib is available. Consider installing pthreads" "$LINENO" 5
22755
22756fi
22757fi
22758if test "x$with_threads" = "xnone"
22759then :
22760  USE_THREADS='none'
22761fi
22762
22763if test "x$USE_THREADS" = "xposix"
22764then :
22765  CC="$PTHREAD_CC"
22766
22767printf "%s\n" "#define MHD_USE_POSIX_THREADS 1" >>confdefs.h
22768
22769  MHD_LIB_CFLAGS="$MHD_LIB_CFLAGS $PTHREAD_CFLAGS"
22770  MHD_LIBDEPS="$PTHREAD_LIBS $MHD_LIBDEPS"
22771  MHD_LIBDEPS_PKGCFG="$PTHREAD_LIBS $MHD_LIBDEPS_PKGCFG"
22772else $as_nop
22773  if test "x$USE_THREADS" = "xw32"
22774then :
22775
22776printf "%s\n" "#define MHD_USE_W32_THREADS 1" >>confdefs.h
22777
22778fi
22779fi
22780 if test "x$USE_THREADS" = "xposix"; then
22781  USE_POSIX_THREADS_TRUE=
22782  USE_POSIX_THREADS_FALSE='#'
22783else
22784  USE_POSIX_THREADS_TRUE='#'
22785  USE_POSIX_THREADS_FALSE=
22786fi
22787
22788 if test "x$USE_THREADS" = "xw32"; then
22789  USE_W32_THREADS_TRUE=
22790  USE_W32_THREADS_FALSE='#'
22791else
22792  USE_W32_THREADS_TRUE='#'
22793  USE_W32_THREADS_FALSE=
22794fi
22795
22796 if test "x$USE_THREADS" != "xnone"; then
22797  USE_THREADS_TRUE=
22798  USE_THREADS_FALSE='#'
22799else
22800  USE_THREADS_TRUE='#'
22801  USE_THREADS_FALSE=
22802fi
22803
22804 if test "x$USE_THREADS" = "xnone"; then
22805  DISABLE_THREADS_TRUE=
22806  DISABLE_THREADS_FALSE='#'
22807else
22808  DISABLE_THREADS_TRUE='#'
22809  DISABLE_THREADS_FALSE=
22810fi
22811
22812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_THREADS" >&5
22813printf "%s\n" "$USE_THREADS" >&6; }
22814
22815# Check whether --enable-thread-names was given.
22816if test ${enable_thread_names+y}
22817then :
22818  enableval=$enable_thread_names;
22819else $as_nop
22820  enable_thread_names='auto'
22821fi
22822
22823
22824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
22825printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
22826if test ${ac_cv_c_undeclared_builtin_options+y}
22827then :
22828  printf %s "(cached) " >&6
22829else $as_nop
22830  ac_save_CFLAGS=$CFLAGS
22831   ac_cv_c_undeclared_builtin_options='cannot detect'
22832   for ac_arg in '' -fno-builtin; do
22833     CFLAGS="$ac_save_CFLAGS $ac_arg"
22834     # This test program should *not* compile successfully.
22835     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22836/* end confdefs.h.  */
22837
22838int
22839main (void)
22840{
22841(void) strchr;
22842  ;
22843  return 0;
22844}
22845_ACEOF
22846if ac_fn_c_try_compile "$LINENO"
22847then :
22848
22849else $as_nop
22850  # This test program should compile successfully.
22851        # No library function is consistently available on
22852        # freestanding implementations, so test against a dummy
22853        # declaration.  Include always-available headers on the
22854        # off chance that they somehow elicit warnings.
22855        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22856/* end confdefs.h.  */
22857#include <float.h>
22858#include <limits.h>
22859#include <stdarg.h>
22860#include <stddef.h>
22861extern void ac_decl (int, char *);
22862
22863int
22864main (void)
22865{
22866(void) ac_decl (0, (char *) 0);
22867  (void) ac_decl;
22868
22869  ;
22870  return 0;
22871}
22872_ACEOF
22873if ac_fn_c_try_compile "$LINENO"
22874then :
22875  if test x"$ac_arg" = x
22876then :
22877  ac_cv_c_undeclared_builtin_options='none needed'
22878else $as_nop
22879  ac_cv_c_undeclared_builtin_options=$ac_arg
22880fi
22881          break
22882fi
22883rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22884fi
22885rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22886    done
22887    CFLAGS=$ac_save_CFLAGS
22888
22889fi
22890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
22891printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
22892  case $ac_cv_c_undeclared_builtin_options in #(
22893  'cannot detect') :
22894    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22895printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22896as_fn_error $? "cannot make $CC report undeclared builtins
22897See \`config.log' for more details" "$LINENO" 5; } ;; #(
22898  'none needed') :
22899    ac_c_undeclared_builtin_options='' ;; #(
22900  *) :
22901    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
22902esac
22903
22904if test "x$enable_thread_names" != "xno" && test "x$USE_THREADS" = "xposix"
22905then :
22906
22907  # Check for thread name function
22908  HAVE_THREAD_NAME_FUNC="no"
22909  SAVE_LIBS="$LIBS"
22910  SAVE_CFLAGS="$CFLAGS"
22911  LIBS="$PTHREAD_LIBS $LIBS"
22912  CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22913  ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "
22914$ac_includes_default
22915
22916#include <pthread.h>
22917
22918
22919"
22920if test "x$ac_cv_header_pthread_np_h" = xyes
22921then :
22922  printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
22923
22924fi
22925
22926
22927  # Try to find how to set thread name by thread attributes.
22928  # If pthread_attr_setname_np(3) is not declared, it's not possible to detect
22929  # form of pthread_attr_setname_np(3) due to C "feature" "implicit declaration".
22930  ac_fn_check_decl "$LINENO" "pthread_attr_setname_np" "ac_cv_have_decl_pthread_attr_setname_np" "
22931#include <pthread.h>
22932#ifdef HAVE_PTHREAD_NP_H
22933#include <pthread_np.h>
22934#endif
22935
22936" "$ac_c_undeclared_builtin_options" "CFLAGS"
22937if test "x$ac_cv_have_decl_pthread_attr_setname_np" = xyes
22938then :
22939
22940fi
22941
22942  if test "x$ac_cv_have_decl_pthread_attr_setname_np" = "xyes"
22943then :
22944  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_setname_np(3) in NetBSD or OSF1 form" >&5
22945printf %s "checking for pthread_attr_setname_np(3) in NetBSD or OSF1 form... " >&6; }
22946     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22947/* end confdefs.h.  */
22948
22949#include <pthread.h>
22950#ifdef HAVE_PTHREAD_NP_H
22951#include <pthread_np.h>
22952#endif
22953
22954int
22955main (void)
22956{
22957
22958      pthread_attr_t thr_attr;
22959      pthread_attr_init(&thr_attr);
22960      pthread_attr_setname_np(&thr_attr, "name", 0);
22961      pthread_attr_destroy(&thr_attr);
22962
22963  ;
22964  return 0;
22965}
22966_ACEOF
22967if ac_fn_c_try_link "$LINENO"
22968then :
22969
22970printf "%s\n" "#define HAVE_PTHREAD_ATTR_SETNAME_NP_NETBSD 1" >>confdefs.h
22971
22972         HAVE_THREAD_NAME_FUNC="yes"
22973         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22974printf "%s\n" "yes" >&6; }
22975else $as_nop
22976  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22977printf "%s\n" "no" >&6; }
22978
22979fi
22980rm -f core conftest.err conftest.$ac_objext conftest.beam \
22981    conftest$ac_exeext conftest.$ac_ext
22982
22983fi
22984
22985  if test "x$HAVE_THREAD_NAME_FUNC" != "xyes" && test "x$ac_cv_have_decl_pthread_attr_setname_np" = "xyes"
22986then :
22987  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_setname_np(3) in IBM i or Solaris form" >&5
22988printf %s "checking for pthread_attr_setname_np(3) in IBM i or Solaris form... " >&6; }
22989     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22990/* end confdefs.h.  */
22991
22992#include <pthread.h>
22993#ifdef HAVE_PTHREAD_NP_H
22994#include <pthread_np.h>
22995#endif
22996
22997int
22998main (void)
22999{
23000
23001      pthread_attr_t thr_attr;
23002      pthread_attr_init(&thr_attr);
23003      pthread_attr_setname_np(&thr_attr, "name");
23004      pthread_attr_destroy(&thr_attr);
23005
23006  ;
23007  return 0;
23008}
23009_ACEOF
23010if ac_fn_c_try_link "$LINENO"
23011then :
23012
23013printf "%s\n" "#define HAVE_PTHREAD_ATTR_SETNAME_NP_IBMI 1" >>confdefs.h
23014
23015         HAVE_THREAD_NAME_FUNC="yes"
23016         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23017printf "%s\n" "yes" >&6; }
23018else $as_nop
23019  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23020printf "%s\n" "no" >&6; }
23021
23022fi
23023rm -f core conftest.err conftest.$ac_objext conftest.beam \
23024    conftest$ac_exeext conftest.$ac_ext
23025
23026fi
23027
23028  # Try to find how to set thread name for started thread - less convenient
23029  # than setting name by attributes.
23030  # If pthread_setname_np(3) is not declared, it's not possible to detect
23031  # form of pthread_setname_np(3) due to C "feature" "implicit declaration".
23032  if test "x$HAVE_THREAD_NAME_FUNC" != "xyes"
23033then :
23034  ac_fn_check_decl "$LINENO" "pthread_setname_np" "ac_cv_have_decl_pthread_setname_np" "
23035#include <pthread.h>
23036#ifdef HAVE_PTHREAD_NP_H
23037#include <pthread_np.h>
23038#endif
23039
23040" "$ac_c_undeclared_builtin_options" "CFLAGS"
23041if test "x$ac_cv_have_decl_pthread_setname_np" = xyes
23042then :
23043
23044fi
23045
23046fi
23047
23048  if test "x$HAVE_THREAD_NAME_FUNC" != "xyes" && test "x$ac_cv_have_decl_pthread_setname_np" = "xyes"
23049then :
23050  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(3) in NetBSD or OSF1 form" >&5
23051printf %s "checking for pthread_setname_np(3) in NetBSD or OSF1 form... " >&6; }
23052     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23053/* end confdefs.h.  */
23054
23055#include <pthread.h>
23056#ifdef HAVE_PTHREAD_NP_H
23057#include <pthread_np.h>
23058#endif
23059
23060int
23061main (void)
23062{
23063int res = pthread_setname_np(pthread_self(), "name", 0); if (res) return res;
23064  ;
23065  return 0;
23066}
23067_ACEOF
23068if ac_fn_c_try_link "$LINENO"
23069then :
23070
23071printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP_NETBSD 1" >>confdefs.h
23072
23073         HAVE_THREAD_NAME_FUNC="yes"
23074         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23075printf "%s\n" "yes" >&6; }
23076else $as_nop
23077  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23078printf "%s\n" "no" >&6; }
23079
23080fi
23081rm -f core conftest.err conftest.$ac_objext conftest.beam \
23082    conftest$ac_exeext conftest.$ac_ext
23083
23084fi
23085
23086  if test "x$HAVE_THREAD_NAME_FUNC" != "xyes" && test "x$ac_cv_have_decl_pthread_setname_np" = "xyes"
23087then :
23088  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(3) in GNU/Linux form" >&5
23089printf %s "checking for pthread_setname_np(3) in GNU/Linux form... " >&6; }
23090     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23091/* end confdefs.h.  */
23092
23093#include <pthread.h>
23094#ifdef HAVE_PTHREAD_NP_H
23095#include <pthread_np.h>
23096#endif
23097
23098int
23099main (void)
23100{
23101int res = pthread_setname_np(pthread_self(), "name"); if (res) return res;
23102  ;
23103  return 0;
23104}
23105_ACEOF
23106if ac_fn_c_try_link "$LINENO"
23107then :
23108
23109printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP_GNU 1" >>confdefs.h
23110
23111         HAVE_THREAD_NAME_FUNC="yes"
23112         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23113printf "%s\n" "yes" >&6; }
23114else $as_nop
23115  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23116printf "%s\n" "no" >&6; }
23117
23118fi
23119rm -f core conftest.err conftest.$ac_objext conftest.beam \
23120    conftest$ac_exeext conftest.$ac_ext
23121
23122fi
23123
23124  if test "x$HAVE_THREAD_NAME_FUNC" != "xyes" && test "x$ac_cv_have_decl_pthread_setname_np" = "xyes"
23125then :
23126  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(3) in Darwin form" >&5
23127printf %s "checking for pthread_setname_np(3) in Darwin form... " >&6; }
23128     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23129/* end confdefs.h.  */
23130
23131#include <pthread.h>
23132#ifdef HAVE_PTHREAD_NP_H
23133#include <pthread_np.h>
23134#endif
23135
23136int
23137main (void)
23138{
23139int res = pthread_setname_np("name"); if (res) return res;
23140  ;
23141  return 0;
23142}
23143_ACEOF
23144if ac_fn_c_try_link "$LINENO"
23145then :
23146
23147printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP_DARWIN 1" >>confdefs.h
23148
23149         HAVE_THREAD_NAME_FUNC="yes"
23150         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23151printf "%s\n" "yes" >&6; }
23152else $as_nop
23153  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23154printf "%s\n" "no" >&6; }
23155
23156fi
23157rm -f core conftest.err conftest.$ac_objext conftest.beam \
23158    conftest$ac_exeext conftest.$ac_ext
23159
23160fi
23161
23162  if test "x$HAVE_THREAD_NAME_FUNC" != "xyes"
23163then :
23164
23165     ac_fn_check_decl "$LINENO" "pthread_set_name_np" "ac_cv_have_decl_pthread_set_name_np" "
23166#include <pthread.h>
23167#ifdef HAVE_PTHREAD_NP_H
23168#include <pthread_np.h>
23169#endif
23170
23171
23172" "$ac_c_undeclared_builtin_options" "CFLAGS"
23173if test "x$ac_cv_have_decl_pthread_set_name_np" = xyes
23174then :
23175
23176        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np(3) in FreeBSD form" >&5
23177printf %s "checking for pthread_set_name_np(3) in FreeBSD form... " >&6; }
23178        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23179/* end confdefs.h.  */
23180
23181#include <pthread.h>
23182#ifdef HAVE_PTHREAD_NP_H
23183#include <pthread_np.h>
23184#endif
23185
23186int
23187main (void)
23188{
23189pthread_set_name_np(pthread_self(), "name");
23190  ;
23191  return 0;
23192}
23193_ACEOF
23194if ac_fn_c_try_link "$LINENO"
23195then :
23196
23197printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP_FREEBSD 1" >>confdefs.h
23198
23199           HAVE_THREAD_NAME_FUNC="yes"
23200           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23201printf "%s\n" "yes" >&6; }
23202else $as_nop
23203  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23204printf "%s\n" "no" >&6; }
23205
23206fi
23207rm -f core conftest.err conftest.$ac_objext conftest.beam \
23208    conftest$ac_exeext conftest.$ac_ext
23209
23210fi
23211
23212fi
23213
23214  LIBS="$SAVE_LIBS"
23215  CFLAGS="$SAVE_CFLAGS"
23216
23217fi
23218
23219if test "x$enable_thread_names" != "xno"
23220then :
23221
23222    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable thread names" >&5
23223printf %s "checking whether to enable thread names... " >&6; }
23224    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23225/* end confdefs.h.  */
23226
23227int
23228main (void)
23229{
23230
23231#ifdef MHD_NO_THREAD_NAMES
23232#error Thread names are disabled.
23233choke me
23234#endif
23235
23236/* Keep in sync with mhd_threads.h */
23237#if defined(MHD_USE_POSIX_THREADS) && (defined(HAVE_PTHREAD_ATTR_SETNAME_NP_NETBSD) || defined(HAVE_PTHREAD_ATTR_SETNAME_NP_IBMI) || \
23238    defined(HAVE_PTHREAD_SETNAME_NP_GNU) || defined(HAVE_PTHREAD_SET_NAME_NP_FREEBSD) || defined(HAVE_PTHREAD_SETNAME_NP_DARWIN) || \
23239    defined(HAVE_PTHREAD_SETNAME_NP_NETBSD) )
23240(void) 0; /* no-op */
23241#elif defined(MHD_USE_W32_THREADS) && defined(_MSC_FULL_VER)
23242(void) 0; /* no-op */
23243#else
23244#error No thread name function is available.
23245choke me
23246#endif
23247
23248  ;
23249  return 0;
23250}
23251
23252_ACEOF
23253if ac_fn_c_try_compile "$LINENO"
23254then :
23255
23256       enable_thread_names='yes'
23257
23258else $as_nop
23259
23260       if test "x$enable_thread_names" = "xyes"
23261then :
23262
23263           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23264printf "%s\n" "no" >&6; }
23265           as_fn_error $? "thread names was explicitly requested, but thread name function is not available" "$LINENO" 5
23266
23267fi
23268       enable_thread_names='no'
23269
23270fi
23271rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23272  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_thread_names" >&5
23273printf "%s\n" "$enable_thread_names" >&6; }
23274
23275fi
23276
23277if test "x$enable_thread_names" = "xno"
23278then :
23279
23280printf "%s\n" "#define MHD_NO_THREAD_NAMES 1" >>confdefs.h
23281
23282fi
23283
23284 if test "x$os_is_native_w32" = "xyes"; then
23285  HAVE_W32_TRUE=
23286  HAVE_W32_FALSE='#'
23287else
23288  HAVE_W32_TRUE='#'
23289  HAVE_W32_FALSE=
23290fi
23291
23292w32_shared_lib_exp=no
23293if test "x$enable_shared" = "xyes" && test "x$os_is_native_w32" = "xyes"
23294then :
23295
23296    if test "x$ac_cv_use_ms_lib_tool" = "xyes" || test -n "$DLLTOOL"
23297then :
23298
23299        w32_shared_lib_exp=yes
23300        use_expfile="no"
23301        if test "x$ac_cv_use_ms_lib_tool" = x"yes"
23302then :
23303  use_expfile="yes"
23304else $as_nop
23305
23306            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $DLLTOOL supports export file generation" >&5
23307printf %s "checking whether $DLLTOOL supports export file generation... " >&6; }
23308if test ${mhd_cv_dlltool_expfile+y}
23309then :
23310  printf %s "(cached) " >&6
23311else $as_nop
23312
23313                if { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$DLLTOOL -e conftest.exp >&2 "; } >&5
23314  ($DLLTOOL -e conftest.exp >&2 ) 2>&5
23315  ac_status=$?
23316  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23317  test $ac_status = 0; }
23318then :
23319
23320                    if test -f conftest.exp
23321then :
23322  mhd_cv_dlltool_expfile="yes"
23323else $as_nop
23324  mhd_cv_dlltool_expfile="no"
23325fi
23326
23327else $as_nop
23328  mhd_cv_dlltool_expfile="no"
23329
23330fi
23331                rm -f conftest.exp
23332
23333
23334fi
23335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_dlltool_expfile" >&5
23336printf "%s\n" "$mhd_cv_dlltool_expfile" >&6; }
23337            use_expfile="${mhd_cv_dlltool_expfile}"
23338
23339
23340fi
23341
23342else $as_nop
23343
23344        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: GNU dlltool or MS lib.exe is required for creating shared library export on W32" >&5
23345printf "%s\n" "$as_me: WARNING: GNU dlltool or MS lib.exe is required for creating shared library export on W32" >&2;}
23346        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Export library libmicrohttpd.lib will not be created" >&5
23347printf "%s\n" "$as_me: WARNING: Export library libmicrohttpd.lib will not be created" >&2;}
23348
23349
23350fi
23351
23352
23353fi
23354 if test "x$w32_shared_lib_exp" = "xyes"; then
23355  W32_SHARED_LIB_EXP_TRUE=
23356  W32_SHARED_LIB_EXP_FALSE='#'
23357else
23358  W32_SHARED_LIB_EXP_TRUE='#'
23359  W32_SHARED_LIB_EXP_FALSE=
23360fi
23361
23362 if test "x$ac_cv_use_ms_lib_tool" = "xyes"; then
23363  USE_MS_LIB_TOOL_TRUE=
23364  USE_MS_LIB_TOOL_FALSE='#'
23365else
23366  USE_MS_LIB_TOOL_TRUE='#'
23367  USE_MS_LIB_TOOL_FALSE=
23368fi
23369
23370 if test "x$use_expfile" = "xyes"; then
23371  USE_EXPORT_FILE_TRUE=
23372  USE_EXPORT_FILE_FALSE='#'
23373else
23374  USE_EXPORT_FILE_TRUE='#'
23375  USE_EXPORT_FILE_FALSE=
23376fi
23377
23378
23379                 for ac_header in sys/time.h
23380do :
23381  ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default
23382"
23383if test "x$ac_cv_header_sys_time_h" = xyes
23384then :
23385  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
23386 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
23387if test "x$ac_cv_func_gettimeofday" = xyes
23388then :
23389  printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
23390
23391fi
23392
23393fi
23394
23395done
23396                    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function usleep" >&5
23397printf %s "checking for function usleep... " >&6; }
23398if test ${mhd_cv_func_usleep+y}
23399then :
23400  printf %s "(cached) " >&6
23401else $as_nop
23402              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23403/* end confdefs.h.  */
23404#include <unistd.h>
23405int
23406main (void)
23407{
23408usleep(100000);
23409  ;
23410  return 0;
23411}
23412_ACEOF
23413if ac_fn_c_try_link "$LINENO"
23414then :
23415  mhd_cv_func_usleep="yes"
23416else $as_nop
23417  mhd_cv_func_usleep="no"
23418fi
23419rm -f core conftest.err conftest.$ac_objext conftest.beam \
23420    conftest$ac_exeext conftest.$ac_ext
23421
23422fi
23423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_func_usleep" >&5
23424printf "%s\n" "$mhd_cv_func_usleep" >&6; }
23425  if test "x$mhd_cv_func_usleep" = x"yes"
23426then :
23427
23428printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
23429
23430
23431fi
23432
23433                    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function nanosleep" >&5
23434printf %s "checking for function nanosleep... " >&6; }
23435if test ${mhd_cv_func_nanosleep+y}
23436then :
23437  printf %s "(cached) " >&6
23438else $as_nop
23439              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23440/* end confdefs.h.  */
23441#include <time.h>
23442int
23443main (void)
23444{
23445struct timespec ts2, ts1 = {0, 0}; nanosleep(&ts1, &ts2);
23446  ;
23447  return 0;
23448}
23449_ACEOF
23450if ac_fn_c_try_link "$LINENO"
23451then :
23452  mhd_cv_func_nanosleep="yes"
23453else $as_nop
23454  mhd_cv_func_nanosleep="no"
23455fi
23456rm -f core conftest.err conftest.$ac_objext conftest.beam \
23457    conftest$ac_exeext conftest.$ac_ext
23458
23459fi
23460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_func_nanosleep" >&5
23461printf "%s\n" "$mhd_cv_func_nanosleep" >&6; }
23462  if test "x$mhd_cv_func_nanosleep" = x"yes"
23463then :
23464
23465printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
23466
23467
23468fi
23469
23470  ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default
23471"
23472if test "x$ac_cv_header_string_h" = xyes
23473then :
23474  printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
23475
23476fi
23477ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default
23478"
23479if test "x$ac_cv_header_sys_types_h" = xyes
23480then :
23481  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
23482
23483fi
23484ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default
23485"
23486if test "x$ac_cv_header_sys_socket_h" = xyes
23487then :
23488  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
23489
23490fi
23491ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default
23492"
23493if test "x$ac_cv_header_netinet_in_h" = xyes
23494then :
23495  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
23496
23497fi
23498ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default
23499"
23500if test "x$ac_cv_header_time_h" = xyes
23501then :
23502  printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
23503
23504fi
23505ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default
23506"
23507if test "x$ac_cv_header_sys_select_h" = xyes
23508then :
23509  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
23510
23511fi
23512ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
23513"
23514if test "x$ac_cv_header_netinet_tcp_h" = xyes
23515then :
23516  printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
23517
23518fi
23519
23520  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether shutdown of listen socket triggers select()" >&5
23521printf %s "checking whether shutdown of listen socket triggers select()... " >&6; }
23522if test ${mhd_cv_host_shtdwn_trgr_select+y}
23523then :
23524  printf %s "(cached) " >&6
23525else $as_nop
23526      # On Linux shutdown of listen socket always trigger select().
23527# On Windows select() always ignore shutdown of listen socket.
23528# On other paltforms result may vary depending on platform version.
23529  case $host_os in #(
23530  linux | linux-* | *-linux | *-linux-*) :
23531    mhd_cv_host_shtdwn_trgr_select='yes' ;; #(
23532  mingw*) :
23533    mhd_cv_host_shtdwn_trgr_select='no' ;; #(
23534  cygwin* | msys*) :
23535    mhd_cv_host_shtdwn_trgr_select='no' ;; #(
23536  winnt* | interix*) :
23537    mhd_cv_host_shtdwn_trgr_select='no' ;; #(
23538  mks) :
23539    mhd_cv_host_shtdwn_trgr_select='no' ;; #(
23540  uwin) :
23541    mhd_cv_host_shtdwn_trgr_select='no' ;; #(
23542  *) :
23543    mhd_cv_host_shtdwn_trgr_select='maybe'
23544   ;;
23545esac
23546
23547
23548    if test "x$mhd_cv_host_shtdwn_trgr_select" = x"maybe"
23549then :
23550    ac_ext=c
23551ac_cpp='$CPP $CPPFLAGS'
23552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23554ac_compiler_gnu=$ac_cv_c_compiler_gnu
23555
23556  MHD_CST_SAVE_CC="$CC"
23557  MHD_CST_SAVE_CFLAGS="$CFLAGS"
23558  MHD_CST_SAVE_LIBS="$LIBS"
23559  CC="$PTHREAD_CC"
23560  CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23561  LIBS="$PTHREAD_LIBS $LIBS"
23562  if test "$cross_compiling" = yes
23563then :
23564  mhd_cv_host_shtdwn_trgr_select='guessing no'
23565else $as_nop
23566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23567/* end confdefs.h.  */
23568
23569#include <stdlib.h>
23570
23571#ifdef HAVE_UNISTD_H
23572#  include <unistd.h>
23573#endif
23574#ifdef HAVE_TIME_H
23575#  include <time.h>
23576#endif
23577#ifdef HAVE_STRING_H
23578#  include <string.h>
23579#endif
23580
23581#if !defined(_WIN32) || defined(__CYGWIN__)
23582#  ifdef HAVE_SYS_TYPES_H
23583#    include <sys/types.h>
23584#  endif
23585#  ifdef HAVE_SYS_SOCKET_H
23586#    include <sys/socket.h>
23587#  endif
23588#  ifdef HAVE_NETINET_IN_H
23589#    include <netinet/in.h>
23590#  endif
23591#  ifdef HAVE_SYS_TIME_H
23592#    include <sys/time.h>
23593#  endif
23594#  ifdef HAVE_SYS_SELECT_H
23595#    include <sys/select.h>
23596#  endif
23597#  ifdef HAVE_NETINET_TCP_H
23598#    include <netinet/tcp.h>
23599#  endif
23600   typedef int MHD_socket;
23601#  define MHD_INVALID_SOCKET (-1)
23602#  define MHD_POSIX_SOCKETS 1
23603#else
23604#  include <winsock2.h>
23605#  include <ws2tcpip.h>
23606#  include <windows.h>
23607   typedef SOCKET MHD_socket;
23608#  define MHD_INVALID_SOCKET (INVALID_SOCKET)
23609#  define MHD_WINSOCK_SOCKETS 1
23610#endif
23611
23612#include <pthread.h>
23613
23614   #ifndef SHUT_RD
23615#  define SHUT_RD 0
23616#endif
23617#ifndef SHUT_WR
23618#  define SHUT_WR 1
23619#endif
23620#ifndef SHUT_RDWR
23621#  define SHUT_RDWR 2
23622#endif
23623
23624#ifndef NULL
23625#  define NULL ((void*)0)
23626#endif
23627
23628#ifdef HAVE_GETTIMEOFDAY
23629#  if defined(_WIN32) && !defined(__CYGWIN__)
23630#    undef HAVE_GETTIMEOFDAY
23631#  endif
23632#endif
23633
23634
23635#ifdef HAVE_NANOSLEEP
23636static const struct timespec sm_tmout = {0, 1000};
23637#  define short_sleep() nanosleep(&sm_tmout, NULL)
23638#elif defined(HAVE_USLEEP)
23639#  define short_sleep() usleep(1)
23640#else
23641#  define short_sleep() (void)0
23642#endif
23643
23644static volatile int going_select = 0;
23645static volatile int select_ends = 0;
23646static volatile int gerror = 0;
23647static int timeout_mils;
23648
23649#ifndef HAVE_GETTIMEOFDAY
23650static volatile long long select_elapsed_time = 0;
23651
23652static long long time_chk(void)
23653{
23654  long long ret = time(NULL);
23655  if (-1 == ret)
23656    gerror = 4;
23657  return ret;
23658}
23659#endif
23660
23661
23662static void* select_thrd_func(void* param)
23663{
23664#ifndef HAVE_GETTIMEOFDAY
23665  long long start, stop;
23666#endif
23667  fd_set rs;
23668  struct timeval tmot = {0, 0};
23669  MHD_socket fd = *((MHD_socket*)param);
23670
23671  FD_ZERO(&rs);
23672  FD_SET(fd, &rs);
23673  tmot.tv_usec = timeout_mils * 1000;
23674#ifndef HAVE_GETTIMEOFDAY
23675  start = time_chk();
23676#endif
23677  going_select = 1;
23678  if (0 > select ((int)(fd) + 1, &rs, NULL, NULL, &tmot))
23679    gerror = 5;
23680#ifndef HAVE_GETTIMEOFDAY
23681  stop = time_chk();
23682  select_elapsed_time = stop - start;
23683#endif
23684  select_ends = 1;
23685  return NULL;
23686}
23687
23688
23689static MHD_socket create_socket(void)
23690{ return socket (AF_INET, SOCK_STREAM, 0); }
23691
23692static void close_socket(MHD_socket fd)
23693{
23694#ifdef MHD_POSIX_SOCKETS
23695  close(fd);
23696#else
23697  closesocket(fd);
23698#endif
23699}
23700
23701static MHD_socket
23702create_socket_listen(int port)
23703{
23704  MHD_socket fd;
23705  struct sockaddr_in sock_addr;
23706  fd = create_socket();
23707  if (MHD_INVALID_SOCKET == fd)
23708    return fd;
23709
23710  memset (&sock_addr, 0, sizeof (struct sockaddr_in));
23711  sock_addr.sin_family = AF_INET;
23712  sock_addr.sin_port = htons(port);
23713  sock_addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
23714
23715  if (bind (fd, (const struct sockaddr*) &sock_addr, sizeof(sock_addr)) < 0 ||
23716      listen(fd, SOMAXCONN) < 0)
23717    {
23718      close_socket(fd);
23719      return MHD_INVALID_SOCKET;
23720    }
23721  return fd;
23722}
23723
23724#ifdef HAVE_GETTIMEOFDAY
23725#define diff_time(tv1, tv2) ((long long)(tv1.tv_sec-tv2.tv_sec)*10000 + (long long)(tv1.tv_usec-tv2.tv_usec)/100)
23726#else
23727#define diff_time(tv1, tv2) ((long long)(tv1-tv2))
23728#endif
23729
23730static long long test_run_select(int timeout_millsec, int use_shutdown, long long delay_before_shutdown)
23731{
23732  pthread_t select_thrd;
23733  MHD_socket fd;
23734#ifdef HAVE_GETTIMEOFDAY
23735  struct timeval start, stop;
23736#else
23737  long long start;
23738#endif
23739
23740  fd = create_socket_listen(0);
23741  if (MHD_INVALID_SOCKET == fd)
23742    return -7;
23743  going_select = 0;
23744  select_ends = 0;
23745  gerror = 0;
23746  timeout_mils = timeout_millsec;
23747  if (0 != pthread_create (&select_thrd, NULL, select_thrd_func, (void*)&fd))
23748    return -8;
23749  while (!going_select) {short_sleep();}
23750#ifdef HAVE_GETTIMEOFDAY
23751  gettimeofday (&start, NULL);
23752#else
23753  start = time_chk();
23754#endif
23755  if (use_shutdown)
23756    {
23757#ifdef HAVE_GETTIMEOFDAY
23758      struct timeval current;
23759      do {short_sleep(); gettimeofday(&current, NULL); } while (delay_before_shutdown > diff_time(current, start));
23760#else
23761      while (delay_before_shutdown > time_chk() - start) {short_sleep();}
23762#endif
23763      shutdown(fd, SHUT_RDWR);
23764    }
23765#ifdef HAVE_GETTIMEOFDAY
23766  while (!select_ends) {short_sleep();}
23767  gettimeofday (&stop, NULL);
23768#endif
23769  if (0 != pthread_join(select_thrd, NULL))
23770    return -9;
23771  close_socket(fd);
23772  if (gerror)
23773    return -10;
23774#ifdef HAVE_GETTIMEOFDAY
23775  return (long long)diff_time(stop, start);
23776#else
23777  return select_elapsed_time;
23778#endif
23779}
23780
23781static int test_it(void)
23782{
23783  long long duration2;
23784#ifdef HAVE_GETTIMEOFDAY
23785  long long duration0, duration1;
23786  duration0 = test_run_select(0, 0, 0);
23787  if (0 > duration0)
23788    return -duration0;
23789
23790  duration1 = test_run_select(50, 0, 0);
23791  if (0 > duration1)
23792    return -duration1 + 20;
23793
23794  duration2 = test_run_select(500, 1, (duration0 + duration1) / 2);
23795  if (0 > duration2)
23796    return -duration2 + 40;
23797
23798  if (duration1 * 2 > duration2)
23799    { /* Check second time to be sure. */
23800      duration2 = test_run_select(500, 1, (duration0 + duration1) / 2);
23801      if (0 > duration2)
23802        return -duration2 + 60;
23803      if (duration1 * 2 > duration2)
23804        return 0;
23805    }
23806#else
23807  duration2 = test_run_select(5000, 1, 2);
23808  if (0 > duration2)
23809    return -duration2 + 80;
23810
23811  if (4 > duration2)
23812    { /* Check second time to be sure. */
23813      duration2 = test_run_select(5000, 1, 2);
23814      if (0 > duration2)
23815      return -duration2 + 100;
23816      if (4 > duration2)
23817        return 0;
23818    }
23819#endif
23820  return 1;
23821}
23822
23823
23824static int init(void)
23825{
23826#ifdef MHD_WINSOCK_SOCKETS
23827  WSADATA wsa_data;
23828
23829  if (0 != WSAStartup(MAKEWORD(2, 2), &wsa_data) || MAKEWORD(2, 2) != wsa_data.wVersion)
23830    {
23831      WSACleanup();
23832      return 0;
23833    }
23834#endif /* MHD_WINSOCK_SOCKETS */
23835  return 1;
23836}
23837
23838static void cleanup(void)
23839{
23840#ifdef MHD_WINSOCK_SOCKETS
23841  WSACleanup();
23842#endif /* MHD_WINSOCK_SOCKETS */
23843}
23844
23845int main(void)
23846{
23847  int res;
23848  if (!init())
23849    return 19;
23850
23851  res = test_it();
23852
23853  cleanup();
23854  if (gerror)
23855    return gerror;
23856
23857  return res;
23858}
23859
23860_ACEOF
23861if ac_fn_c_try_run "$LINENO"
23862then :
23863  mhd_cv_host_shtdwn_trgr_select='yes'
23864else $as_nop
23865  mhd_cv_host_shtdwn_trgr_select='no'
23866fi
23867rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23868  conftest.$ac_objext conftest.beam conftest.$ac_ext
23869fi
23870
23871  CC="$MHD_CST_SAVE_CC"
23872  CFLAGS="$MHD_CST_SAVE_CFLAGS"
23873  LIBS="$MHD_CST_SAVE_LIBS"
23874  { MHD_CST_SAVE_CC=; unset MHD_CST_SAVE_CC;}
23875  { MHD_CST_SAVE_CFLAGS=; unset MHD_CST_SAVE_CFLAGS;}
23876  { MHD_CST_SAVE_LIBS=; unset MHD_CST_SAVE_LIBS;}
23877  ac_ext=c
23878ac_cpp='$CPP $CPPFLAGS'
23879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23881ac_compiler_gnu=$ac_cv_c_compiler_gnu
23882
23883
23884
23885fi
23886
23887
23888fi
23889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_host_shtdwn_trgr_select" >&5
23890printf "%s\n" "$mhd_cv_host_shtdwn_trgr_select" >&6; }
23891  if test "x$mhd_cv_host_shtdwn_trgr_select" = "xyes"
23892then :
23893
23894printf "%s\n" "#define HAVE_LISTEN_SHUTDOWN 1" >>confdefs.h
23895
23896elif test "x$mhd_cv_host_shtdwn_trgr_select" = "xno"
23897then :
23898
23899fi
23900
23901
23902 if test "x$mhd_cv_host_shtdwn_trgr_select" = "xyes"; then
23903  HAVE_LISTEN_SHUTDOWN_TRUE=
23904  HAVE_LISTEN_SHUTDOWN_FALSE='#'
23905else
23906  HAVE_LISTEN_SHUTDOWN_TRUE='#'
23907  HAVE_LISTEN_SHUTDOWN_FALSE=
23908fi
23909
23910
23911# SENDMSG. Should we check for SCM_RIGHTS instead?
23912# https://lists.x.org/archives/xorg-devel/2013-November/038687.html
23913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5
23914printf %s "checking for library containing sendmsg... " >&6; }
23915if test ${ac_cv_search_sendmsg+y}
23916then :
23917  printf %s "(cached) " >&6
23918else $as_nop
23919  ac_func_search_save_LIBS=$LIBS
23920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23921/* end confdefs.h.  */
23922
23923/* Override any GCC internal prototype to avoid an error.
23924   Use char because int might match the return type of a GCC
23925   builtin and then its argument prototype would still apply.  */
23926char sendmsg ();
23927int
23928main (void)
23929{
23930return sendmsg ();
23931  ;
23932  return 0;
23933}
23934_ACEOF
23935for ac_lib in '' socket
23936do
23937  if test -z "$ac_lib"; then
23938    ac_res="none required"
23939  else
23940    ac_res=-l$ac_lib
23941    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23942  fi
23943  if ac_fn_c_try_link "$LINENO"
23944then :
23945  ac_cv_search_sendmsg=$ac_res
23946fi
23947rm -f core conftest.err conftest.$ac_objext conftest.beam \
23948    conftest$ac_exeext
23949  if test ${ac_cv_search_sendmsg+y}
23950then :
23951  break
23952fi
23953done
23954if test ${ac_cv_search_sendmsg+y}
23955then :
23956
23957else $as_nop
23958  ac_cv_search_sendmsg=no
23959fi
23960rm conftest.$ac_ext
23961LIBS=$ac_func_search_save_LIBS
23962fi
23963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5
23964printf "%s\n" "$ac_cv_search_sendmsg" >&6; }
23965ac_res=$ac_cv_search_sendmsg
23966if test "$ac_res" != no
23967then :
23968  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23969
23970printf "%s\n" "#define HAVE_SENDMSG 1" >>confdefs.h
23971
23972fi
23973
23974ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev"
23975if test "x$ac_cv_func_writev" = xyes
23976then :
23977  printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h
23978
23979fi
23980
23981
23982# set GCC options
23983# use '-fno-strict-aliasing', but only if the compiler
23984# and linker can take it
23985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fno-strict-aliasing" >&5
23986printf %s "checking whether the linker accepts -fno-strict-aliasing... " >&6; }
23987if test ${ax_cv_check_ldflags___fno_strict_aliasing+y}
23988then :
23989  printf %s "(cached) " >&6
23990else $as_nop
23991
23992  ax_check_save_flags=$LDFLAGS
23993  LDFLAGS="$LDFLAGS  -fno-strict-aliasing"
23994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23995/* end confdefs.h.  */
23996
23997int
23998main (void)
23999{
24000
24001  ;
24002  return 0;
24003}
24004_ACEOF
24005if ac_fn_c_try_link "$LINENO"
24006then :
24007  ax_cv_check_ldflags___fno_strict_aliasing=yes
24008else $as_nop
24009  ax_cv_check_ldflags___fno_strict_aliasing=no
24010fi
24011rm -f core conftest.err conftest.$ac_objext conftest.beam \
24012    conftest$ac_exeext conftest.$ac_ext
24013  LDFLAGS=$ax_check_save_flags
24014fi
24015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fno_strict_aliasing" >&5
24016printf "%s\n" "$ax_cv_check_ldflags___fno_strict_aliasing" >&6; }
24017if test "x$ax_cv_check_ldflags___fno_strict_aliasing" = xyes
24018then :
24019
24020
24021
24022
24023for flag in -fno-strict-aliasing; do
24024  as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
24025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24026printf %s "checking whether C compiler accepts $flag... " >&6; }
24027if eval test \${$as_CACHEVAR+y}
24028then :
24029  printf %s "(cached) " >&6
24030else $as_nop
24031
24032  ax_check_save_flags=$CFLAGS
24033  CFLAGS="$CFLAGS  $flag"
24034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24035/* end confdefs.h.  */
24036
24037int
24038main (void)
24039{
24040
24041  ;
24042  return 0;
24043}
24044_ACEOF
24045if ac_fn_c_try_compile "$LINENO"
24046then :
24047  eval "$as_CACHEVAR=yes"
24048else $as_nop
24049  eval "$as_CACHEVAR=no"
24050fi
24051rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24052  CFLAGS=$ax_check_save_flags
24053fi
24054eval ac_res=\$$as_CACHEVAR
24055	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24056printf "%s\n" "$ac_res" >&6; }
24057if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
24058then :
24059
24060if test ${CFLAGS+y}
24061then :
24062
24063  case " $CFLAGS " in #(
24064  *" $flag "*) :
24065    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24066  (: CFLAGS already contains $flag) 2>&5
24067  ac_status=$?
24068  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24069  test $ac_status = 0; } ;; #(
24070  *) :
24071
24072     as_fn_append CFLAGS " $flag"
24073     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
24074  (: CFLAGS="$CFLAGS") 2>&5
24075  ac_status=$?
24076  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24077  test $ac_status = 0; }
24078     ;;
24079esac
24080
24081else $as_nop
24082
24083  CFLAGS=$flag
24084  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
24085  (: CFLAGS="$CFLAGS") 2>&5
24086  ac_status=$?
24087  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24088  test $ac_status = 0; }
24089
24090fi
24091
24092else $as_nop
24093  :
24094fi
24095
24096done
24097
24098else $as_nop
24099  :
24100fi
24101
24102
24103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
24104printf %s "checking whether byte ordering is bigendian... " >&6; }
24105if test ${ac_cv_c_bigendian+y}
24106then :
24107  printf %s "(cached) " >&6
24108else $as_nop
24109  ac_cv_c_bigendian=unknown
24110    # See if we're dealing with a universal compiler.
24111    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24112/* end confdefs.h.  */
24113#ifndef __APPLE_CC__
24114	       not a universal capable compiler
24115	     #endif
24116	     typedef int dummy;
24117
24118_ACEOF
24119if ac_fn_c_try_compile "$LINENO"
24120then :
24121
24122	# Check for potential -arch flags.  It is not universal unless
24123	# there are at least two -arch flags with different values.
24124	ac_arch=
24125	ac_prev=
24126	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
24127	 if test -n "$ac_prev"; then
24128	   case $ac_word in
24129	     i?86 | x86_64 | ppc | ppc64)
24130	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
24131		 ac_arch=$ac_word
24132	       else
24133		 ac_cv_c_bigendian=universal
24134		 break
24135	       fi
24136	       ;;
24137	   esac
24138	   ac_prev=
24139	 elif test "x$ac_word" = "x-arch"; then
24140	   ac_prev=arch
24141	 fi
24142       done
24143fi
24144rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24145    if test $ac_cv_c_bigendian = unknown; then
24146      # See if sys/param.h defines the BYTE_ORDER macro.
24147      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24148/* end confdefs.h.  */
24149#include <sys/types.h>
24150	     #include <sys/param.h>
24151
24152int
24153main (void)
24154{
24155#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
24156		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
24157		     && LITTLE_ENDIAN)
24158	      bogus endian macros
24159	     #endif
24160
24161  ;
24162  return 0;
24163}
24164_ACEOF
24165if ac_fn_c_try_compile "$LINENO"
24166then :
24167  # It does; now see whether it defined to BIG_ENDIAN or not.
24168	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24169/* end confdefs.h.  */
24170#include <sys/types.h>
24171		#include <sys/param.h>
24172
24173int
24174main (void)
24175{
24176#if BYTE_ORDER != BIG_ENDIAN
24177		 not big endian
24178		#endif
24179
24180  ;
24181  return 0;
24182}
24183_ACEOF
24184if ac_fn_c_try_compile "$LINENO"
24185then :
24186  ac_cv_c_bigendian=yes
24187else $as_nop
24188  ac_cv_c_bigendian=no
24189fi
24190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24191fi
24192rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24193    fi
24194    if test $ac_cv_c_bigendian = unknown; then
24195      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
24196      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24197/* end confdefs.h.  */
24198#include <limits.h>
24199
24200int
24201main (void)
24202{
24203#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
24204	      bogus endian macros
24205	     #endif
24206
24207  ;
24208  return 0;
24209}
24210_ACEOF
24211if ac_fn_c_try_compile "$LINENO"
24212then :
24213  # It does; now see whether it defined to _BIG_ENDIAN or not.
24214	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24215/* end confdefs.h.  */
24216#include <limits.h>
24217
24218int
24219main (void)
24220{
24221#ifndef _BIG_ENDIAN
24222		 not big endian
24223		#endif
24224
24225  ;
24226  return 0;
24227}
24228_ACEOF
24229if ac_fn_c_try_compile "$LINENO"
24230then :
24231  ac_cv_c_bigendian=yes
24232else $as_nop
24233  ac_cv_c_bigendian=no
24234fi
24235rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24236fi
24237rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24238    fi
24239    if test $ac_cv_c_bigendian = unknown; then
24240      # Compile a test program.
24241      if test "$cross_compiling" = yes
24242then :
24243  # Try to guess by grepping values from an object file.
24244	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24245/* end confdefs.h.  */
24246unsigned short int ascii_mm[] =
24247		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24248		unsigned short int ascii_ii[] =
24249		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24250		int use_ascii (int i) {
24251		  return ascii_mm[i] + ascii_ii[i];
24252		}
24253		unsigned short int ebcdic_ii[] =
24254		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24255		unsigned short int ebcdic_mm[] =
24256		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24257		int use_ebcdic (int i) {
24258		  return ebcdic_mm[i] + ebcdic_ii[i];
24259		}
24260		extern int foo;
24261
24262int
24263main (void)
24264{
24265return use_ascii (foo) == use_ebcdic (foo);
24266  ;
24267  return 0;
24268}
24269_ACEOF
24270if ac_fn_c_try_compile "$LINENO"
24271then :
24272  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
24273	      ac_cv_c_bigendian=yes
24274	    fi
24275	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24276	      if test "$ac_cv_c_bigendian" = unknown; then
24277		ac_cv_c_bigendian=no
24278	      else
24279		# finding both strings is unlikely to happen, but who knows?
24280		ac_cv_c_bigendian=unknown
24281	      fi
24282	    fi
24283fi
24284rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24285else $as_nop
24286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24287/* end confdefs.h.  */
24288$ac_includes_default
24289int
24290main (void)
24291{
24292
24293	     /* Are we little or big endian?  From Harbison&Steele.  */
24294	     union
24295	     {
24296	       long int l;
24297	       char c[sizeof (long int)];
24298	     } u;
24299	     u.l = 1;
24300	     return u.c[sizeof (long int) - 1] == 1;
24301
24302  ;
24303  return 0;
24304}
24305_ACEOF
24306if ac_fn_c_try_run "$LINENO"
24307then :
24308  ac_cv_c_bigendian=no
24309else $as_nop
24310  ac_cv_c_bigendian=yes
24311fi
24312rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24313  conftest.$ac_objext conftest.beam conftest.$ac_ext
24314fi
24315
24316    fi
24317fi
24318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
24319printf "%s\n" "$ac_cv_c_bigendian" >&6; }
24320 case $ac_cv_c_bigendian in #(
24321   yes)
24322     printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
24323;; #(
24324   no)
24325      ;; #(
24326   universal)
24327
24328printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
24329
24330     ;; #(
24331   *)
24332     as_fn_error $? "unknown endianness
24333 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
24334 esac
24335
24336
24337  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5
24338printf %s "checking for variable-length arrays... " >&6; }
24339if test ${ac_cv_c_vararrays+y}
24340then :
24341  printf %s "(cached) " >&6
24342else $as_nop
24343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24344/* end confdefs.h.  */
24345#ifdef __STDC_NO_VLA__
24346	defined
24347	#endif
24348
24349_ACEOF
24350if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24351  $EGREP "defined" >/dev/null 2>&1
24352then :
24353  ac_cv_c_vararrays='no: __STDC_NO_VLA__ is defined'
24354else $as_nop
24355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24356/* end confdefs.h.  */
24357/* Test for VLA support.  This test is partly inspired
24358		  from examples in the C standard.  Use at least two VLA
24359		  functions to detect the GCC 3.4.3 bug described in:
24360		  https://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00014.html
24361		  */
24362	       #ifdef __STDC_NO_VLA__
24363		syntax error;
24364	       #else
24365		 extern int n;
24366		 int B[100];
24367		 int fvla (int m, int C[m][m]);
24368
24369		 int
24370		 simple (int count, int all[static count])
24371		 {
24372		   return all[count - 1];
24373		 }
24374
24375		 int
24376		 fvla (int m, int C[m][m])
24377		 {
24378		   typedef int VLA[m][m];
24379		   VLA x;
24380		   int D[m];
24381		   static int (*q)[m] = &B;
24382		   int (*s)[n] = q;
24383		   return C && &x[0][0] == &D[0] && &D[0] == s[0];
24384		 }
24385	       #endif
24386
24387int
24388main (void)
24389{
24390
24391  ;
24392  return 0;
24393}
24394_ACEOF
24395if ac_fn_c_try_compile "$LINENO"
24396then :
24397  ac_cv_c_vararrays=yes
24398else $as_nop
24399  ac_cv_c_vararrays=no
24400fi
24401rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24402fi
24403rm -rf conftest*
24404
24405fi
24406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5
24407printf "%s\n" "$ac_cv_c_vararrays" >&6; }
24408  if test "$ac_cv_c_vararrays" = yes; then
24409
24410printf "%s\n" "#define HAVE_C_VARARRAYS 1" >>confdefs.h
24411
24412  elif test "$ac_cv_c_vararrays" = no; then
24413
24414printf "%s\n" "#define __STDC_NO_VLA__ 1" >>confdefs.h
24415
24416  fi
24417
24418
24419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __func__ magic-macro is available" >&5
24420printf %s "checking whether __func__ magic-macro is available... " >&6; }
24421if test ${mhd_cv_macro___func___avail+y}
24422then :
24423  printf %s "(cached) " >&6
24424else $as_nop
24425    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24426/* end confdefs.h.  */
24427#include <stddef.h>
24428int
24429main (void)
24430{
24431const char *funcname = __func__ ; if (NULL == funcname) return 1;
24432  ;
24433  return 0;
24434}
24435_ACEOF
24436if ac_fn_c_try_link "$LINENO"
24437then :
24438  mhd_cv_macro___func___avail="yes"
24439else $as_nop
24440  mhd_cv_macro___func___avail="no"
24441fi
24442rm -f core conftest.err conftest.$ac_objext conftest.beam \
24443    conftest$ac_exeext conftest.$ac_ext
24444
24445fi
24446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro___func___avail" >&5
24447printf "%s\n" "$mhd_cv_macro___func___avail" >&6; }
24448if test "x$mhd_cv_macro___func___avail" = x"yes"
24449then :
24450
24451printf "%s\n" "#define HAVE___FUNC__ 1" >>confdefs.h
24452
24453else $as_nop
24454
24455    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __FUNCTION__ magic-macro is available" >&5
24456printf %s "checking whether __FUNCTION__ magic-macro is available... " >&6; }
24457if test ${mhd_cv_macro___function___avail+y}
24458then :
24459  printf %s "(cached) " >&6
24460else $as_nop
24461        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24462/* end confdefs.h.  */
24463#include <stddef.h>
24464int
24465main (void)
24466{
24467const char *funcname = __FUNCTION__ ; if (NULL == funcname) return 1;
24468  ;
24469  return 0;
24470}
24471_ACEOF
24472if ac_fn_c_try_link "$LINENO"
24473then :
24474  mhd_cv_macro___function___avail="yes"
24475else $as_nop
24476  mhd_cv_macro___function___avail="no"
24477fi
24478rm -f core conftest.err conftest.$ac_objext conftest.beam \
24479    conftest$ac_exeext conftest.$ac_ext
24480
24481fi
24482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro___function___avail" >&5
24483printf "%s\n" "$mhd_cv_macro___function___avail" >&6; }
24484
24485printf "%s\n" "#define HAVE___FUNCTION__ 1" >>confdefs.h
24486
24487
24488
24489fi
24490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __builtin_bswap32() is available" >&5
24491printf %s "checking whether __builtin_bswap32() is available... " >&6; }
24492if test ${mhd_cv_func___builtin_bswap32_avail+y}
24493then :
24494  printf %s "(cached) " >&6
24495else $as_nop
24496    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24497/* end confdefs.h.  */
24498#include<stdint.h>
24499int
24500main (void)
24501{
24502uint32_t a = 1; uint32_t b = __builtin_bswap32(a); a = b;
24503  ;
24504  return 0;
24505}
24506_ACEOF
24507if ac_fn_c_try_link "$LINENO"
24508then :
24509  mhd_cv_func___builtin_bswap32_avail="yes"
24510else $as_nop
24511  mhd_cv_func___builtin_bswap32_avail="no"
24512fi
24513rm -f core conftest.err conftest.$ac_objext conftest.beam \
24514    conftest$ac_exeext conftest.$ac_ext
24515
24516fi
24517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_func___builtin_bswap32_avail" >&5
24518printf "%s\n" "$mhd_cv_func___builtin_bswap32_avail" >&6; }
24519if test "x$mhd_cv_func___builtin_bswap32_avail" = "xyes"
24520then :
24521
24522printf "%s\n" "#define MHD_HAVE___BUILTIN_BSWAP32 1" >>confdefs.h
24523
24524fi
24525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __builtin_bswap64() is available" >&5
24526printf %s "checking whether __builtin_bswap64() is available... " >&6; }
24527if test ${mhd_cv_func___builtin_bswap64_avail+y}
24528then :
24529  printf %s "(cached) " >&6
24530else $as_nop
24531    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24532/* end confdefs.h.  */
24533#include<stdint.h>
24534int
24535main (void)
24536{
24537uint64_t a = 1; uint32_t b = __builtin_bswap64(a); a = b;
24538  ;
24539  return 0;
24540}
24541_ACEOF
24542if ac_fn_c_try_link "$LINENO"
24543then :
24544  mhd_cv_func___builtin_bswap64_avail="yes"
24545else $as_nop
24546  mhd_cv_func___builtin_bswap64_avail="no"
24547fi
24548rm -f core conftest.err conftest.$ac_objext conftest.beam \
24549    conftest$ac_exeext conftest.$ac_ext
24550
24551fi
24552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_func___builtin_bswap64_avail" >&5
24553printf "%s\n" "$mhd_cv_func___builtin_bswap64_avail" >&6; }
24554if test "x$mhd_cv_func___builtin_bswap64_avail" = "xyes"
24555then :
24556
24557printf "%s\n" "#define MHD_HAVE___BUILTIN_BSWAP64 1" >>confdefs.h
24558
24559fi
24560
24561# Extract the first word of "curl", so it can be a program name with args.
24562set dummy curl; ac_word=$2
24563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24564printf %s "checking for $ac_word... " >&6; }
24565if test ${ac_cv_prog_HAVE_CURL_BINARY+y}
24566then :
24567  printf %s "(cached) " >&6
24568else $as_nop
24569  if test -n "$HAVE_CURL_BINARY"; then
24570  ac_cv_prog_HAVE_CURL_BINARY="$HAVE_CURL_BINARY" # Let the user override the test.
24571else
24572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24573for as_dir in $PATH
24574do
24575  IFS=$as_save_IFS
24576  case $as_dir in #(((
24577    '') as_dir=./ ;;
24578    */) ;;
24579    *) as_dir=$as_dir/ ;;
24580  esac
24581    for ac_exec_ext in '' $ac_executable_extensions; do
24582  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24583    ac_cv_prog_HAVE_CURL_BINARY="yes"
24584    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24585    break 2
24586  fi
24587done
24588  done
24589IFS=$as_save_IFS
24590
24591  test -z "$ac_cv_prog_HAVE_CURL_BINARY" && ac_cv_prog_HAVE_CURL_BINARY="no"
24592fi
24593fi
24594HAVE_CURL_BINARY=$ac_cv_prog_HAVE_CURL_BINARY
24595if test -n "$HAVE_CURL_BINARY"; then
24596  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_CURL_BINARY" >&5
24597printf "%s\n" "$HAVE_CURL_BINARY" >&6; }
24598else
24599  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24600printf "%s\n" "no" >&6; }
24601fi
24602
24603
24604 if test "x$HAVE_CURL_BINARY" = "xyes"; then
24605  HAVE_CURL_BINARY_TRUE=
24606  HAVE_CURL_BINARY_FALSE='#'
24607else
24608  HAVE_CURL_BINARY_TRUE='#'
24609  HAVE_CURL_BINARY_FALSE=
24610fi
24611
24612# Extract the first word of "makeinfo", so it can be a program name with args.
24613set dummy makeinfo; ac_word=$2
24614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24615printf %s "checking for $ac_word... " >&6; }
24616if test ${ac_cv_prog_HAVE_MAKEINFO_BINARY+y}
24617then :
24618  printf %s "(cached) " >&6
24619else $as_nop
24620  if test -n "$HAVE_MAKEINFO_BINARY"; then
24621  ac_cv_prog_HAVE_MAKEINFO_BINARY="$HAVE_MAKEINFO_BINARY" # Let the user override the test.
24622else
24623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24624for as_dir in $PATH
24625do
24626  IFS=$as_save_IFS
24627  case $as_dir in #(((
24628    '') as_dir=./ ;;
24629    */) ;;
24630    *) as_dir=$as_dir/ ;;
24631  esac
24632    for ac_exec_ext in '' $ac_executable_extensions; do
24633  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24634    ac_cv_prog_HAVE_MAKEINFO_BINARY="yes"
24635    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24636    break 2
24637  fi
24638done
24639  done
24640IFS=$as_save_IFS
24641
24642  test -z "$ac_cv_prog_HAVE_MAKEINFO_BINARY" && ac_cv_prog_HAVE_MAKEINFO_BINARY="no"
24643fi
24644fi
24645HAVE_MAKEINFO_BINARY=$ac_cv_prog_HAVE_MAKEINFO_BINARY
24646if test -n "$HAVE_MAKEINFO_BINARY"; then
24647  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_MAKEINFO_BINARY" >&5
24648printf "%s\n" "$HAVE_MAKEINFO_BINARY" >&6; }
24649else
24650  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24651printf "%s\n" "no" >&6; }
24652fi
24653
24654
24655 if test "x$HAVE_MAKEINFO_BINARY" = "xyes"; then
24656  HAVE_MAKEINFO_BINARY_TRUE=
24657  HAVE_MAKEINFO_BINARY_FALSE='#'
24658else
24659  HAVE_MAKEINFO_BINARY_TRUE='#'
24660  HAVE_MAKEINFO_BINARY_FALSE=
24661fi
24662
24663 if test "x$os_is_native_w32" = "xyes"  && test "x$enable_static" = "xyes"; then
24664  W32_STATIC_LIB_TRUE=
24665  W32_STATIC_LIB_FALSE='#'
24666else
24667  W32_STATIC_LIB_TRUE='#'
24668  W32_STATIC_LIB_FALSE=
24669fi
24670
24671
24672
24673# Check whether --enable-doc was given.
24674if test ${enable_doc+y}
24675then :
24676  enableval=$enable_doc;
24677else $as_nop
24678  enable_doc=yes
24679fi
24680
24681test "x$enable_doc" = "xno" || enable_doc=yes
24682 if test "x$enable_doc" = "xyes"; then
24683  BUILD_DOC_TRUE=
24684  BUILD_DOC_FALSE='#'
24685else
24686  BUILD_DOC_TRUE='#'
24687  BUILD_DOC_FALSE=
24688fi
24689
24690
24691# Check whether --enable-examples was given.
24692if test ${enable_examples+y}
24693then :
24694  enableval=$enable_examples;
24695else $as_nop
24696  enable_examples=yes
24697fi
24698
24699test "x$enable_examples" = "xno" || enable_examples=yes
24700 if test "x$enable_examples" = "xyes"; then
24701  BUILD_EXAMPLES_TRUE=
24702  BUILD_EXAMPLES_FALSE='#'
24703else
24704  BUILD_EXAMPLES_TRUE='#'
24705  BUILD_EXAMPLES_FALSE=
24706fi
24707
24708
24709# Check whether --enable-heavy-tests was given.
24710if test ${enable_heavy_tests+y}
24711then :
24712  enableval=$enable_heavy_tests;
24713else $as_nop
24714  enable_heavy_tests=no
24715fi
24716
24717if test "x$enable_heavy_tests" = x"yes"
24718then :
24719
24720    HEAVY_TESTS_NOTPARALLEL='.NOTPARALLEL:'
24721
24722printf "%s\n" "#define _MHD_HEAVY_TESTS 1" >>confdefs.h
24723
24724
24725else $as_nop
24726
24727    enable_heavy_tests=no
24728    HEAVY_TESTS_NOTPARALLEL=" "
24729
24730
24731fi
24732 if test "x$enable_heavy_tests" = "xyes"; then
24733  HEAVY_TESTS_TRUE=
24734  HEAVY_TESTS_FALSE='#'
24735else
24736  HEAVY_TESTS_TRUE='#'
24737  HEAVY_TESTS_FALSE=
24738fi
24739
24740
24741# Check whether --enable-poll was given.
24742if test ${enable_poll+y}
24743then :
24744  enableval=$enable_poll; enable_poll=${enableval}
24745else $as_nop
24746  enable_poll='auto'
24747
24748fi
24749
24750
24751if test "$enable_poll" != "no"
24752then :
24753  if test "$os_is_native_w32" != "yes"
24754then :
24755         for ac_header in poll.h
24756do :
24757  ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default
24758"
24759if test "x$ac_cv_header_poll_h" = xyes
24760then :
24761  printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
24762
24763  for ac_func in poll
24764do :
24765  ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
24766if test "x$ac_cv_func_poll" = xyes
24767then :
24768  printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
24769 have_poll='yes'
24770else $as_nop
24771  have_poll='no'
24772fi
24773
24774done
24775fi
24776
24777done
24778else $as_nop
24779  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for WSAPoll()" >&5
24780printf %s "checking for WSAPoll()... " >&6; }
24781              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24782/* end confdefs.h.  */
24783
24784#include <winsock2.h>
24785
24786int
24787main (void)
24788{
24789
24790WSAPOLLFD fda[2];
24791WSAPoll(fda, 2, 0);
24792  ;
24793  return 0;
24794}
24795_ACEOF
24796if ac_fn_c_try_link "$LINENO"
24797then :
24798  have_poll='yes'
24799              printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
24800
24801
24802else $as_nop
24803  have_poll='no'
24804fi
24805rm -f core conftest.err conftest.$ac_objext conftest.beam \
24806    conftest$ac_exeext conftest.$ac_ext
24807              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_poll" >&5
24808printf "%s\n" "$have_poll" >&6; }
24809fi
24810       if test "$enable_poll" = "yes" && test "$have_poll" != "yes"
24811then :
24812  as_fn_error $? "Support for poll was explicitly requested but cannot be enabled on this platform." "$LINENO" 5
24813fi
24814       enable_poll="$have_poll"
24815fi
24816
24817# Check whether --enable-epoll was given.
24818if test ${enable_epoll+y}
24819then :
24820  enableval=$enable_epoll; enable_epoll=${enableval}
24821else $as_nop
24822  enable_epoll='auto'
24823
24824fi
24825
24826
24827if test "$enable_epoll" != "no"
24828then :
24829
24830      ax_have_epoll_cppflags="${CPPFLAGS}"
24831  ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default
24832"
24833if test "x$ac_cv_header_linux_version_h" = xyes
24834then :
24835  CPPFLAGS="${CPPFLAGS} -DHAVE_LINUX_VERSION_H"
24836fi
24837
24838  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux epoll(7) interface" >&5
24839printf %s "checking for Linux epoll(7) interface... " >&6; }
24840  if test ${ax_cv_have_epoll+y}
24841then :
24842  printf %s "(cached) " >&6
24843else $as_nop
24844      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24845/* end confdefs.h.  */
24846      #include <sys/epoll.h>
24847#ifdef HAVE_LINUX_VERSION_H
24848#  include <linux/version.h>
24849#  if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,45)
24850#    error linux kernel version is too old to have epoll
24851#  endif
24852#endif
24853
24854int
24855main (void)
24856{
24857int fd;
24858struct epoll_event ev;
24859fd = epoll_create(128);
24860epoll_wait(fd, &ev, 1, 0);
24861  ;
24862  return 0;
24863}
24864_ACEOF
24865if ac_fn_c_try_link "$LINENO"
24866then :
24867  ax_cv_have_epoll=yes
24868else $as_nop
24869  ax_cv_have_epoll=no
24870fi
24871rm -f core conftest.err conftest.$ac_objext conftest.beam \
24872    conftest$ac_exeext conftest.$ac_ext
24873fi
24874
24875  CPPFLAGS="${ax_have_epoll_cppflags}"
24876  if test "${ax_cv_have_epoll}" = "yes"
24877then :
24878  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24879printf "%s\n" "yes" >&6; }
24880
24881else $as_nop
24882  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24883printf "%s\n" "no" >&6; }
24884
24885fi
24886
24887    if test "${ax_cv_have_epoll}" = "yes"
24888then :
24889
24890
24891printf "%s\n" "#define EPOLL_SUPPORT 1" >>confdefs.h
24892
24893        enable_epoll='yes'
24894
24895else $as_nop
24896
24897        if test "$enable_epoll" = "yes"
24898then :
24899  as_fn_error $? "Support for epoll was explicitly requested but cannot be enabled on this platform." "$LINENO" 5
24900
24901fi
24902        enable_epoll='no'
24903
24904
24905fi
24906
24907
24908fi
24909
24910 if test "x$enable_epoll" = xyes; then
24911  MHD_HAVE_EPOLL_TRUE=
24912  MHD_HAVE_EPOLL_FALSE='#'
24913else
24914  MHD_HAVE_EPOLL_TRUE='#'
24915  MHD_HAVE_EPOLL_FALSE=
24916fi
24917
24918
24919if test "x$enable_epoll" = "xyes"
24920then :
24921  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for epoll_create1()" >&5
24922printf %s "checking for epoll_create1()... " >&6; }
24923if test ${mhd_cv_have_epoll_create1+y}
24924then :
24925  printf %s "(cached) " >&6
24926else $as_nop
24927
24928    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24929/* end confdefs.h.  */
24930
24931
24932#include <sys/epoll.h>
24933
24934int
24935main (void)
24936{
24937
24938int fd;
24939fd = epoll_create1(EPOLL_CLOEXEC);
24940  ;
24941  return 0;
24942}
24943_ACEOF
24944if ac_fn_c_try_link "$LINENO"
24945then :
24946  mhd_cv_have_epoll_create1=yes
24947else $as_nop
24948  mhd_cv_have_epoll_create1=no
24949fi
24950rm -f core conftest.err conftest.$ac_objext conftest.beam \
24951    conftest$ac_exeext conftest.$ac_ext
24952fi
24953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_epoll_create1" >&5
24954printf "%s\n" "$mhd_cv_have_epoll_create1" >&6; }
24955  if test "x$mhd_cv_have_epoll_create1" = "xyes"
24956then :
24957
24958
24959printf "%s\n" "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
24960
24961fi
24962fi
24963
24964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suported 'noreturn' keyword" >&5
24965printf %s "checking for suported 'noreturn' keyword... " >&6; }
24966if test ${mhd_cv_decl_noreturn+y}
24967then :
24968  printf %s "(cached) " >&6
24969else $as_nop
24970
24971    mhd_cv_decl_noreturn="none"
24972    save_CFLAGS="${CFLAGS}"
24973    CFLAGS="${CFLAGS} ${errattr_CFLAGS}"
24974    for decl_noret in '_Noreturn' '__attribute__((__noreturn__))' '__declspec(noreturn)'
24975    do
24976      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24977/* end confdefs.h.  */
24978
24979#ifdef HAVE_STDLIB_H
24980#include <stdlib.h>
24981#endif
24982
24983${decl_noret} void myexitfunc(int code)
24984{
24985#ifdef HAVE_STDLIB_H
24986  exit (code);
24987#else
24988  (void)code;
24989#endif
24990}
24991
24992int main (int argc, char *const *argv)
24993{
24994  (void) argv;
24995  if (argc > 2)
24996    myexitfunc (2);
24997  return 0;
24998}
24999
25000
25001_ACEOF
25002if ac_fn_c_try_link "$LINENO"
25003then :
25004  mhd_cv_decl_noreturn="${decl_noret}"
25005
25006fi
25007rm -f core conftest.err conftest.$ac_objext conftest.beam \
25008    conftest$ac_exeext conftest.$ac_ext
25009      if test "x${mhd_cv_decl_noreturn}" != "xnone"
25010then :
25011  break
25012fi
25013    done
25014    CFLAGS="${save_CFLAGS}"
25015
25016
25017fi
25018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_decl_noreturn" >&5
25019printf "%s\n" "$mhd_cv_decl_noreturn" >&6; }
25020if test "x$mhd_cv_decl_noreturn" = x"none"
25021then :
25022
25023printf "%s\n" "#define _MHD_NORETURN /**/" >>confdefs.h
25024
25025else $as_nop
25026
25027printf "%s\n" "#define _MHD_NORETURN ${mhd_cv_decl_noreturn}" >>confdefs.h
25028
25029
25030fi
25031
25032# Check for types sizes
25033# Types sizes are used as an indirect indication of maximum allowed values for types
25034# which is used to exclude by preprocessor some compiler checks for values clips
25035# Assuming no staffing or uniform staffing for integer types
25036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of tv_sec member of struct timeval" >&5
25037printf %s "checking size of tv_sec member of struct timeval... " >&6; }
25038if test ${mhd_cv_size_timeval_tv_sec+y}
25039then :
25040  printf %s "(cached) " >&6
25041else $as_nop
25042
25043    if ac_fn_c_compute_int "$LINENO" "((long int)sizeof(test_var.tv_sec))" "mhd_cv_size_timeval_tv_sec"        "
25044#ifdef HAVE_SYS_TIME_H
25045#include <sys/time.h>
25046#endif /* HAVE_SYS_TIME_H */
25047#ifdef HAVE_TIME_H
25048#include <time.h>
25049#endif /* HAVE_TIME_H */
25050#if HAVE_SYS_TYPES_H
25051#include <sys/types.h>
25052#endif /* HAVE_SYS_TYPES_H */
25053struct timeval test_var;
25054      "
25055then :
25056
25057else $as_nop
25058
25059        # The size is used only to exclude additional checks/comparison in code
25060        # to avoid compiler warnings. With larger size MHD code will use
25061        # additional checks which ensure that value will fit but it may produce
25062        # a harmless compiler warning.
25063        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The size cannot be determined, assuming 8." >&5
25064printf "%s\n" "$as_me: WARNING: The size cannot be determined, assuming 8." >&2;}
25065        mhd_cv_size_timeval_tv_sec=8
25066
25067
25068fi
25069
25070
25071
25072fi
25073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_size_timeval_tv_sec" >&5
25074printf "%s\n" "$mhd_cv_size_timeval_tv_sec" >&6; }
25075
25076printf "%s\n" "#define SIZEOF_STRUCT_TIMEVAL_TV_SEC $mhd_cv_size_timeval_tv_sec" >>confdefs.h
25077
25078# The cast to long int works around a bug in the HP C Compiler
25079# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25080# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25081# This bug is HP SR number 8606223364.
25082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uint64_t" >&5
25083printf %s "checking size of uint64_t... " >&6; }
25084if test ${ac_cv_sizeof_uint64_t+y}
25085then :
25086  printf %s "(cached) " >&6
25087else $as_nop
25088  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint64_t))" "ac_cv_sizeof_uint64_t"        "#include <stdint.h>
25089"
25090then :
25091
25092else $as_nop
25093  if test "$ac_cv_type_uint64_t" = yes; then
25094     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25095printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
25096as_fn_error 77 "cannot compute sizeof (uint64_t)
25097See \`config.log' for more details" "$LINENO" 5; }
25098   else
25099     ac_cv_sizeof_uint64_t=0
25100   fi
25101fi
25102
25103fi
25104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint64_t" >&5
25105printf "%s\n" "$ac_cv_sizeof_uint64_t" >&6; }
25106
25107
25108
25109printf "%s\n" "#define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t" >>confdefs.h
25110
25111
25112# The cast to long int works around a bug in the HP C Compiler
25113# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25114# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25115# This bug is HP SR number 8606223364.
25116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
25117printf %s "checking size of unsigned int... " >&6; }
25118if test ${ac_cv_sizeof_unsigned_int+y}
25119then :
25120  printf %s "(cached) " >&6
25121else $as_nop
25122  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "#include <stdint.h>
25123"
25124then :
25125
25126else $as_nop
25127  if test "$ac_cv_type_unsigned_int" = yes; then
25128     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25129printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
25130as_fn_error 77 "cannot compute sizeof (unsigned int)
25131See \`config.log' for more details" "$LINENO" 5; }
25132   else
25133     ac_cv_sizeof_unsigned_int=0
25134   fi
25135fi
25136
25137fi
25138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
25139printf "%s\n" "$ac_cv_sizeof_unsigned_int" >&6; }
25140
25141
25142
25143printf "%s\n" "#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int" >>confdefs.h
25144
25145
25146# The cast to long int works around a bug in the HP C Compiler
25147# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25148# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25149# This bug is HP SR number 8606223364.
25150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
25151printf %s "checking size of size_t... " >&6; }
25152if test ${ac_cv_sizeof_size_t+y}
25153then :
25154  printf %s "(cached) " >&6
25155else $as_nop
25156  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "
25157#ifdef HAVE_STDLIB_H
25158#include <stdlib.h>
25159#endif /* HAVE_STDLIB_H */
25160#ifdef HAVE_STDDEF_H
25161#include <stddef.h>
25162#endif /* HAVE_STDDEF_H */
25163#include <stdio.h>
25164
25165
25166"
25167then :
25168
25169else $as_nop
25170  if test "$ac_cv_type_size_t" = yes; then
25171     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25172printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
25173as_fn_error 77 "cannot compute sizeof (size_t)
25174See \`config.log' for more details" "$LINENO" 5; }
25175   else
25176     ac_cv_sizeof_size_t=0
25177   fi
25178fi
25179
25180fi
25181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
25182printf "%s\n" "$ac_cv_sizeof_size_t" >&6; }
25183
25184
25185
25186printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h
25187
25188
25189# The cast to long int works around a bug in the HP C Compiler
25190# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25191# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25192# This bug is HP SR number 8606223364.
25193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
25194printf %s "checking size of unsigned long long... " >&6; }
25195if test ${ac_cv_sizeof_unsigned_long_long+y}
25196then :
25197  printf %s "(cached) " >&6
25198else $as_nop
25199  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "#include <stdint.h>
25200"
25201then :
25202
25203else $as_nop
25204  if test "$ac_cv_type_unsigned_long_long" = yes; then
25205     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25206printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
25207as_fn_error 77 "cannot compute sizeof (unsigned long long)
25208See \`config.log' for more details" "$LINENO" 5; }
25209   else
25210     ac_cv_sizeof_unsigned_long_long=0
25211   fi
25212fi
25213
25214fi
25215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
25216printf "%s\n" "$ac_cv_sizeof_unsigned_long_long" >&6; }
25217
25218
25219
25220printf "%s\n" "#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long" >>confdefs.h
25221
25222
25223
25224       for ac_header in dlfcn.h
25225do :
25226  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
25227"
25228if test "x$ac_cv_header_dlfcn_h" = xyes
25229then :
25230  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
25231 have_tlsplugin=yes
25232else $as_nop
25233  have_tlsplugin=no
25234fi
25235
25236done
25237 if test "x$have_tlsplugin" = xyes; then
25238  MHD_HAVE_TLS_PLUGIN_TRUE=
25239  MHD_HAVE_TLS_PLUGIN_FALSE='#'
25240else
25241  MHD_HAVE_TLS_PLUGIN_TRUE='#'
25242  MHD_HAVE_TLS_PLUGIN_FALSE=
25243fi
25244
25245
25246       for ac_header in zlib.h
25247do :
25248  ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default
25249"
25250if test "x$ac_cv_header_zlib_h" = xyes
25251then :
25252  printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
25253 have_zlib=yes
25254else $as_nop
25255  have_zlib=no
25256fi
25257
25258done
25259 if test "x$have_zlib" = xyes; then
25260  HAVE_ZLIB_TRUE=
25261  HAVE_ZLIB_FALSE='#'
25262else
25263  HAVE_ZLIB_TRUE='#'
25264  HAVE_ZLIB_FALSE=
25265fi
25266
25267
25268# Check for generic functions
25269                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function random" >&5
25270printf %s "checking for function random... " >&6; }
25271if test ${mhd_cv_func_random+y}
25272then :
25273  printf %s "(cached) " >&6
25274else $as_nop
25275              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25276/* end confdefs.h.  */
25277
25278$ac_includes_default
25279#include <stdlib.h>
25280
25281int
25282main (void)
25283{
25284long int r = random(); (void)r;
25285  ;
25286  return 0;
25287}
25288_ACEOF
25289if ac_fn_c_try_link "$LINENO"
25290then :
25291  mhd_cv_func_random="yes"
25292else $as_nop
25293  mhd_cv_func_random="no"
25294fi
25295rm -f core conftest.err conftest.$ac_objext conftest.beam \
25296    conftest$ac_exeext conftest.$ac_ext
25297
25298fi
25299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_func_random" >&5
25300printf "%s\n" "$mhd_cv_func_random" >&6; }
25301  if test "x$mhd_cv_func_random" = x"yes"
25302then :
25303
25304printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h
25305
25306
25307else $as_nop
25308
25309                    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function rand" >&5
25310printf %s "checking for function rand... " >&6; }
25311if test ${mhd_cv_func_rand+y}
25312then :
25313  printf %s "(cached) " >&6
25314else $as_nop
25315              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25316/* end confdefs.h.  */
25317
25318$ac_includes_default
25319#include <stdlib.h>
25320
25321int
25322main (void)
25323{
25324int r = rand(); (void)r;
25325  ;
25326  return 0;
25327}
25328_ACEOF
25329if ac_fn_c_try_link "$LINENO"
25330then :
25331  mhd_cv_func_rand="yes"
25332else $as_nop
25333  mhd_cv_func_rand="no"
25334fi
25335rm -f core conftest.err conftest.$ac_objext conftest.beam \
25336    conftest$ac_exeext conftest.$ac_ext
25337
25338fi
25339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_func_rand" >&5
25340printf "%s\n" "$mhd_cv_func_rand" >&6; }
25341  if test "x$mhd_cv_func_rand" = x"yes"
25342then :
25343
25344printf "%s\n" "#define HAVE_RAND 1" >>confdefs.h
25345
25346
25347fi
25348
25349
25350
25351fi
25352
25353
25354ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
25355#ifdef HAVE_SYS_TYPES_H
25356#include <sys/types.h>
25357#endif
25358#ifdef HAVE_SYS_SOCKET_H
25359#include <sys/socket.h>
25360#endif
25361#ifdef HAVE_NETINET_IN_H
25362#include <netinet/in.h>
25363#endif
25364
25365"
25366if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
25367then :
25368
25369printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h
25370
25371
25372fi
25373ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "
25374#ifdef HAVE_SYS_TYPES_H
25375#include <sys/types.h>
25376#endif
25377#ifdef HAVE_SYS_SOCKET_H
25378#include <sys/socket.h>
25379#endif
25380#ifdef HAVE_NETINET_IN_H
25381#include <netinet/in.h>
25382#endif
25383
25384"
25385if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes
25386then :
25387
25388printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1" >>confdefs.h
25389
25390
25391fi
25392ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_len" "ac_cv_member_struct_sockaddr_storage_ss_len" "
25393#ifdef HAVE_SYS_TYPES_H
25394#include <sys/types.h>
25395#endif
25396#ifdef HAVE_SYS_SOCKET_H
25397#include <sys/socket.h>
25398#endif
25399#ifdef HAVE_NETINET_IN_H
25400#include <netinet/in.h>
25401#endif
25402
25403"
25404if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = xyes
25405then :
25406
25407printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1" >>confdefs.h
25408
25409
25410fi
25411
25412
25413                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function getsockname" >&5
25414printf %s "checking for function getsockname... " >&6; }
25415if test ${mhd_cv_func_getsockname+y}
25416then :
25417  printf %s "(cached) " >&6
25418else $as_nop
25419              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25420/* end confdefs.h.  */
25421
25422#ifdef HAVE_SYS_TYPES_H
25423#include <sys/types.h>
25424#endif
25425#ifdef HAVE_SYS_SOCKET_H
25426#include <sys/socket.h>
25427#endif
25428#ifdef HAVE_WINSOCK2_H
25429#include <winsock2.h>
25430#endif
25431
25432int
25433main (void)
25434{
25435
25436    struct sockaddr_storage ss;
25437    (void)getsockname(socket(0,0,0),(struct sockaddr *)&ss,(void*)0);
25438
25439  ;
25440  return 0;
25441}
25442_ACEOF
25443if ac_fn_c_try_link "$LINENO"
25444then :
25445  mhd_cv_func_getsockname="yes"
25446else $as_nop
25447  mhd_cv_func_getsockname="no"
25448fi
25449rm -f core conftest.err conftest.$ac_objext conftest.beam \
25450    conftest$ac_exeext conftest.$ac_ext
25451
25452fi
25453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_func_getsockname" >&5
25454printf "%s\n" "$mhd_cv_func_getsockname" >&6; }
25455  if test "x$mhd_cv_func_getsockname" = x"yes"
25456then :
25457
25458printf "%s\n" "#define HAVE_GETSOCKNAME 1" >>confdefs.h
25459
25460
25461    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getsockname() is usable" >&5
25462printf %s "checking whether getsockname() is usable... " >&6; }
25463if test ${mhd_cv_getsockname_usable+y}
25464then :
25465  printf %s "(cached) " >&6
25466else $as_nop
25467
25468         if test "$cross_compiling" = yes
25469then :
25470  mhd_cv_getsockname_usable='assuming yes'
25471
25472else $as_nop
25473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25474/* end confdefs.h.  */
25475
25476
25477#ifdef HAVE_SYS_TYPES_H
25478#include <sys/types.h>
25479#endif
25480#ifdef HAVE_SYS_SOCKET_H
25481#include <sys/socket.h>
25482#endif
25483#ifdef HAVE_UNISTD_H
25484#include <unistd.h>
25485#endif
25486#ifdef HAVE_WINSOCK2_H
25487#include <winsock2.h>
25488#endif
25489#ifdef HAVE_WS2TCPIP_H
25490#include <ws2tcpip.h>
25491#endif
25492#ifdef HAVE_NETINET_IN_H
25493#include <netinet/in.h>
25494#endif
25495#ifdef HAVE_NETINET_IP_H
25496#include <netinet/ip.h>
25497#endif
25498#ifdef HAVE_ARPA_INET_H
25499#include <arpa/inet.h>
25500#endif
25501
25502
25503static void zr_mem(void *ptr, socklen_t size)
25504{ char *mem = ptr; while(size--) {mem[0] = 0; mem++;} }
25505
25506int main(void)
25507{
25508  const socklen_t c_addr_size = (socklen_t)sizeof(struct sockaddr_in);
25509  struct sockaddr_in sa;
25510  socklen_t addr_size;
25511  int ret = 1;
25512#if !defined(_WIN32) || defined(__CYGWIN__)
25513  int sckt;
25514  const int invld_sckt = -1;
25515#else
25516  SOCKET sckt;
25517  const SOCKET invld_sckt = INVALID_SOCKET;
25518  WSADATA wsa_data;
25519
25520  if (0 != WSAStartup(MAKEWORD(2, 2), &wsa_data) || MAKEWORD(2, 2) != wsa_data.wVersion)
25521    return 20;
25522#endif
25523
25524  sckt = socket (PF_INET, SOCK_STREAM, 0);
25525  if (invld_sckt != sckt)
25526  {
25527    zr_mem(&sa, c_addr_size);
25528    sa.sin_family = AF_INET;
25529#ifdef HAVE_STRUCT_SOCKADDR_IN_SIN_LEN
25530    sa.sin_len = c_addr_size;
25531#endif
25532    if (0 == bind (sckt, (struct sockaddr *)&sa, c_addr_size))
25533    {
25534      if (0 == listen (sckt, 1))
25535      {
25536        addr_size = c_addr_size;
25537        if (0 == getsockname (sckt, (struct sockaddr  *)&sa, &addr_size))
25538        {
25539          if (c_addr_size >= addr_size)
25540          {
25541            if (0 != ntohs(sa.sin_port))
25542            { ret = 0;
25543            } else ret = 7;
25544          } else ret = 6;
25545        } else ret = 5;
25546      } else ret = 4;
25547    } else ret = 3;
25548  } else ret = 2;
25549#if !defined(_WIN32) || defined(__CYGWIN__)
25550  close (sckt);
25551#else
25552  closesocket (sckt);
25553  WSACleanup();
25554#endif
25555  return ret;
25556}
25557
25558
25559
25560_ACEOF
25561if ac_fn_c_try_run "$LINENO"
25562then :
25563  mhd_cv_getsockname_usable='yes'
25564else $as_nop
25565  mhd_cv_getsockname_usable='no'
25566fi
25567rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25568  conftest.$ac_objext conftest.beam conftest.$ac_ext
25569fi
25570
25571
25572
25573fi
25574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_getsockname_usable" >&5
25575printf "%s\n" "$mhd_cv_getsockname_usable" >&6; }
25576    if test "x$mhd_cv_getsockname_usable" = x"no"
25577then :
25578  :
25579else $as_nop
25580
25581printf "%s\n" "#define MHD_USE_GETSOCKNAME 1" >>confdefs.h
25582
25583fi
25584
25585
25586
25587fi
25588
25589
25590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usable PAGESIZE macro" >&5
25591printf %s "checking for usable PAGESIZE macro... " >&6; }
25592if test ${mhd_cv_macro_pagesize_usable+y}
25593then :
25594  printf %s "(cached) " >&6
25595else $as_nop
25596
25597    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25598/* end confdefs.h.  */
25599
25600
25601#ifdef HAVE_UNISTD_H
25602#include <unistd.h>
25603#endif
25604#ifdef HAVE_LIMITS_H
25605#include <limits.h>
25606#endif
25607#ifdef HAVE_SYS_PARAM_H
25608#include <sys/param.h>
25609#endif
25610#ifndef PAGESIZE
25611#error No PAGESIZE macro defined
25612choke me now
25613#endif
25614
25615int
25616main (void)
25617{
25618
25619            long pgsz = PAGESIZE + 0;
25620            if (1 > pgsz) return 1;
25621
25622
25623  ;
25624  return 0;
25625}
25626
25627_ACEOF
25628if ac_fn_c_try_link "$LINENO"
25629then :
25630  mhd_cv_macro_pagesize_usable="yes"
25631else $as_nop
25632  mhd_cv_macro_pagesize_usable="no"
25633
25634fi
25635rm -f core conftest.err conftest.$ac_objext conftest.beam \
25636    conftest$ac_exeext conftest.$ac_ext
25637
25638
25639fi
25640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro_pagesize_usable" >&5
25641printf "%s\n" "$mhd_cv_macro_pagesize_usable" >&6; }
25642if test "x$mhd_cv_macro_pagesize_usable" = x"yes"
25643then :
25644
25645
25646printf "%s\n" "#define MHD_USE_PAGESIZE_MACRO 1" >>confdefs.h
25647
25648    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether PAGESIZE macro could be used for static init" >&5
25649printf %s "checking whether PAGESIZE macro could be used for static init... " >&6; }
25650if test ${mhd_cv_macro_pagesize_usable_static+y}
25651then :
25652  printf %s "(cached) " >&6
25653else $as_nop
25654
25655        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25656/* end confdefs.h.  */
25657
25658
25659#ifdef HAVE_UNISTD_H
25660#include <unistd.h>
25661#endif
25662#ifdef HAVE_LIMITS_H
25663#include <limits.h>
25664#endif
25665#ifdef HAVE_SYS_PARAM_H
25666#include <sys/param.h>
25667#endif
25668#ifndef PAGESIZE
25669#error No PAGESIZE macro defined
25670choke me now
25671#endif
25672static long ac_pgsz = PAGESIZE + 0;
25673
25674int
25675main (void)
25676{
25677
25678                if (1 > ac_pgsz) return 1;
25679
25680
25681  ;
25682  return 0;
25683}
25684
25685_ACEOF
25686if ac_fn_c_try_link "$LINENO"
25687then :
25688  mhd_cv_macro_pagesize_usable_static="yes"
25689else $as_nop
25690  mhd_cv_macro_pagesize_usable_static="no"
25691
25692fi
25693rm -f core conftest.err conftest.$ac_objext conftest.beam \
25694    conftest$ac_exeext conftest.$ac_ext
25695
25696
25697fi
25698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro_pagesize_usable_static" >&5
25699printf "%s\n" "$mhd_cv_macro_pagesize_usable_static" >&6; }
25700    if test "x$mhd_cv_macro_pagesize_usable_static" = x"yes"
25701then :
25702
25703printf "%s\n" "#define MHD_USE_PAGESIZE_MACRO_STATIC 1" >>confdefs.h
25704
25705
25706fi
25707
25708else $as_nop
25709
25710    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usable PAGE_SIZE macro" >&5
25711printf %s "checking for usable PAGE_SIZE macro... " >&6; }
25712if test ${mhd_cv_macro_page_size_usable+y}
25713then :
25714  printf %s "(cached) " >&6
25715else $as_nop
25716
25717        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25718/* end confdefs.h.  */
25719
25720
25721#ifdef HAVE_UNISTD_H
25722#include <unistd.h>
25723#endif
25724#ifdef HAVE_LIMITS_H
25725#include <limits.h>
25726#endif
25727#ifdef HAVE_SYS_PARAM_H
25728#include <sys/param.h>
25729#endif
25730#ifndef PAGE_SIZE
25731#error No PAGE_SIZE macro defined
25732choke me now
25733#endif
25734
25735int
25736main (void)
25737{
25738
25739                long pgsz = PAGE_SIZE + 0;
25740                if (1 > pgsz) return 1;
25741
25742
25743  ;
25744  return 0;
25745}
25746
25747_ACEOF
25748if ac_fn_c_try_link "$LINENO"
25749then :
25750  mhd_cv_macro_page_size_usable="yes"
25751else $as_nop
25752  mhd_cv_macro_page_size_usable="no"
25753
25754fi
25755rm -f core conftest.err conftest.$ac_objext conftest.beam \
25756    conftest$ac_exeext conftest.$ac_ext
25757
25758
25759fi
25760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro_page_size_usable" >&5
25761printf "%s\n" "$mhd_cv_macro_page_size_usable" >&6; }
25762    if test "x$mhd_cv_macro_page_size_usable" = x"yes"
25763then :
25764
25765
25766printf "%s\n" "#define MHD_USE_PAGE_SIZE_MACRO 1" >>confdefs.h
25767
25768        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether PAGE_SIZE macro could be used for static init" >&5
25769printf %s "checking whether PAGE_SIZE macro could be used for static init... " >&6; }
25770if test ${mhd_cv_macro_page_size_usable_static+y}
25771then :
25772  printf %s "(cached) " >&6
25773else $as_nop
25774
25775            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25776/* end confdefs.h.  */
25777
25778
25779#ifdef HAVE_UNISTD_H
25780#include <unistd.h>
25781#endif
25782#ifdef HAVE_LIMITS_H
25783#include <limits.h>
25784#endif
25785#ifdef HAVE_SYS_PARAM_H
25786#include <sys/param.h>
25787#endif
25788#ifndef PAGE_SIZE
25789#error No PAGE_SIZE macro defined
25790choke me now
25791#endif
25792static long ac_pgsz = PAGE_SIZE + 0;
25793
25794int
25795main (void)
25796{
25797
25798                    if (1 > ac_pgsz) return 1;
25799
25800
25801  ;
25802  return 0;
25803}
25804
25805_ACEOF
25806if ac_fn_c_try_link "$LINENO"
25807then :
25808  mhd_cv_macro_page_size_usable_static="yes"
25809else $as_nop
25810  mhd_cv_macro_page_size_usable_static="no"
25811
25812fi
25813rm -f core conftest.err conftest.$ac_objext conftest.beam \
25814    conftest$ac_exeext conftest.$ac_ext
25815
25816
25817fi
25818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro_page_size_usable_static" >&5
25819printf "%s\n" "$mhd_cv_macro_page_size_usable_static" >&6; }
25820        if test "x$mhd_cv_macro_page_size_usable_static" = x"yes"
25821then :
25822
25823printf "%s\n" "#define MHD_USE_PAGE_SIZE_MACRO_STATIC 1" >>confdefs.h
25824
25825
25826fi
25827
25828
25829fi
25830
25831
25832fi
25833
25834# Check for inter-thread signaling type
25835# Check whether --enable-itc was given.
25836if test ${enable_itc+y}
25837then :
25838  enableval=$enable_itc;
25839else $as_nop
25840  enable_itc='auto'
25841
25842fi
25843
25844
25845case $enable_itc in #(
25846  pipe) :
25847    : ;; #(
25848  socketpair) :
25849    : ;; #(
25850  eventfd) :
25851    : ;; #(
25852  auto) :
25853    if test "x$os_is_windows" = x"yes"
25854then :
25855  enable_itc='socketpair'
25856fi ;; #(
25857  eventFD) :
25858    enable_itc='eventfd' ;; #(
25859  socket) :
25860    enable_itc='socketpair' ;; #(
25861  no) :
25862    as_fn_error $? "inter-thread communication cannot be disabled" "$LINENO" 5 ;; #(
25863  *) :
25864    as_fn_error $? "unrecognized type \"$enable_itc\" of inter-thread communication specified by \"--enable-itc=$enable_itc\"" "$LINENO" 5
25865 ;;
25866esac
25867# AS_UNSET([[use_itc]])
25868
25869if test "x$enable_itc" = "xeventfd" || test "x$enable_itc" = "xauto"
25870then :
25871
25872  if test "x$os_is_native_w32" = x"yes"
25873then :
25874
25875else $as_nop
25876
25877    ac_fn_c_check_header_compile "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default
25878"
25879if test "x$ac_cv_header_sys_eventfd_h" = xyes
25880then :
25881  printf "%s\n" "#define HAVE_SYS_EVENTFD_H 1" >>confdefs.h
25882
25883fi
25884
25885    if test "x$ac_cv_header_sys_eventfd_h" = x"yes"
25886then :
25887
25888      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether eventfd(2) is usable" >&5
25889printf %s "checking whether eventfd(2) is usable... " >&6; }
25890if test ${mhd_cv_eventfd_usable+y}
25891then :
25892  printf %s "(cached) " >&6
25893else $as_nop
25894
25895        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25896/* end confdefs.h.  */
25897
25898
25899#include <sys/eventfd.h>
25900
25901int
25902main (void)
25903{
25904
25905          int ef = eventfd(0, EFD_CLOEXEC | EFD_NONBLOCK);
25906          if (ef) return ef - 1;
25907
25908  ;
25909  return 0;
25910}
25911
25912_ACEOF
25913if ac_fn_c_try_link "$LINENO"
25914then :
25915  mhd_cv_eventfd_usable='yes'
25916else $as_nop
25917  mhd_cv_eventfd_usable='no'
25918fi
25919rm -f core conftest.err conftest.$ac_objext conftest.beam \
25920    conftest$ac_exeext conftest.$ac_ext
25921
25922fi
25923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_eventfd_usable" >&5
25924printf "%s\n" "$mhd_cv_eventfd_usable" >&6; }
25925
25926fi
25927
25928fi
25929  if test "x$mhd_cv_eventfd_usable" = x"yes"
25930then :
25931
25932    use_itc='eventfd'
25933    enable_itc="$use_itc"
25934
25935printf "%s\n" "#define _MHD_ITC_EVENTFD 1" >>confdefs.h
25936
25937
25938else $as_nop
25939
25940    if test "x$enable_itc" = x"eventfd"
25941then :
25942  as_fn_error $? "eventfd(2) is not usable, consider using other type of inter-thread communication" "$LINENO" 5
25943fi
25944
25945fi
25946
25947fi
25948
25949if test "x$enable_itc" = "xpipe" || test "x$enable_itc" = "xauto"
25950then :
25951
25952  if test "x$os_is_native_w32" = x"yes"
25953then :
25954
25955else $as_nop
25956
25957    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pipe(3) is usable" >&5
25958printf %s "checking whether pipe(3) is usable... " >&6; }
25959if test ${mhd_cv_pipe_usable+y}
25960then :
25961  printf %s "(cached) " >&6
25962else $as_nop
25963
25964      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25965/* end confdefs.h.  */
25966
25967
25968$ac_includes_default
25969#ifdef HAVE_UNISTD_H
25970#include <unistd.h>
25971#endif
25972
25973int
25974main (void)
25975{
25976
25977          int arr[2];
25978          int res;
25979          res = pipe(arr)
25980
25981  ;
25982  return 0;
25983}
25984
25985_ACEOF
25986if ac_fn_c_try_link "$LINENO"
25987then :
25988  mhd_cv_pipe_usable='yes'
25989else $as_nop
25990  mhd_cv_pipe_usable='no'
25991fi
25992rm -f core conftest.err conftest.$ac_objext conftest.beam \
25993    conftest$ac_exeext conftest.$ac_ext
25994
25995fi
25996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_pipe_usable" >&5
25997printf "%s\n" "$mhd_cv_pipe_usable" >&6; }
25998
25999fi
26000  if test "x$mhd_cv_pipe_usable" = x"yes"
26001then :
26002
26003    use_itc='pipe'
26004    enable_itc="$use_itc"
26005
26006printf "%s\n" "#define _MHD_ITC_PIPE 1" >>confdefs.h
26007
26008    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pipe2(2) is usable" >&5
26009printf %s "checking whether pipe2(2) is usable... " >&6; }
26010if test ${mhd_cv_pipe2_usable+y}
26011then :
26012  printf %s "(cached) " >&6
26013else $as_nop
26014
26015      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26016/* end confdefs.h.  */
26017
26018
26019$ac_includes_default
26020#ifdef HAVE_FCNTL_H
26021#include <fcntl.h>
26022#endif
26023#ifdef HAVE_UNISTD_H
26024#include <unistd.h>
26025#endif
26026
26027int
26028main (void)
26029{
26030
26031          int arr[2];
26032          int res;
26033          res = pipe2(arr, O_CLOEXEC | O_NONBLOCK)
26034
26035  ;
26036  return 0;
26037}
26038
26039_ACEOF
26040if ac_fn_c_try_link "$LINENO"
26041then :
26042  mhd_cv_pipe2_usable='yes'
26043else $as_nop
26044  mhd_cv_pipe2_usable='no'
26045fi
26046rm -f core conftest.err conftest.$ac_objext conftest.beam \
26047    conftest$ac_exeext conftest.$ac_ext
26048
26049fi
26050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_pipe2_usable" >&5
26051printf "%s\n" "$mhd_cv_pipe2_usable" >&6; }
26052    if test "x$mhd_cv_pipe2_usable" = x"yes"
26053then :
26054
26055printf "%s\n" "#define HAVE_PIPE2_FUNC 1" >>confdefs.h
26056
26057fi
26058
26059else $as_nop
26060
26061    if test "x$enable_itc" = x"pipe"
26062then :
26063  as_fn_error $? "pipe(3) is not usable, consider using other type of inter-thread communication" "$LINENO" 5
26064fi
26065
26066fi
26067
26068fi
26069
26070if test "x$enable_itc" = "xsocketpair" || test "x$enable_itc" = "xauto"
26071then :
26072
26073  if test "x$os_is_native_w32" = x"yes"
26074then :
26075  mhd_cv_socketpair_usable='yes'
26076else $as_nop
26077
26078    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether socketpair(3) is usable" >&5
26079printf %s "checking whether socketpair(3) is usable... " >&6; }
26080if test ${mhd_cv_socketpair_usable+y}
26081then :
26082  printf %s "(cached) " >&6
26083else $as_nop
26084
26085      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26086/* end confdefs.h.  */
26087
26088
26089$ac_includes_default
26090#ifdef HAVE_SYS_TYPES_H
26091#include <sys/types.h>
26092#endif
26093#ifdef HAVE_SYS_SOCKET_H
26094#include <sys/socket.h>
26095#endif
26096
26097int
26098main (void)
26099{
26100
26101          int arr[2];
26102          int res;
26103#if defined(AF_LOCAL)
26104          res = socketpair(AF_LOCAL, SOCK_STREAM, 0, arr);
26105#elif defined(AF_UNIX)
26106          res = socketpair(AF_UNIX, SOCK_STREAM, 0, arr);
26107#else
26108#error AF_LOCAL and AF_UNIX are both undefined
26109          choke me now;
26110#endif
26111          if (res != 0) return 1
26112
26113  ;
26114  return 0;
26115}
26116
26117_ACEOF
26118if ac_fn_c_try_link "$LINENO"
26119then :
26120  mhd_cv_socketpair_usable='yes'
26121else $as_nop
26122  mhd_cv_socketpair_usable='no'
26123fi
26124rm -f core conftest.err conftest.$ac_objext conftest.beam \
26125    conftest$ac_exeext conftest.$ac_ext
26126
26127fi
26128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_socketpair_usable" >&5
26129printf "%s\n" "$mhd_cv_socketpair_usable" >&6; }
26130
26131fi
26132  if test "x$mhd_cv_socketpair_usable" = x"yes"
26133then :
26134
26135    use_itc='socketpair'
26136    enable_itc="$use_itc"
26137
26138printf "%s\n" "#define _MHD_ITC_SOCKETPAIR 1" >>confdefs.h
26139
26140
26141else $as_nop
26142
26143    if test "x$enable_itc" = x"socketpair"
26144then :
26145  as_fn_error $? "socketpair(3) is not usable, consider using other type of inter-thread communication" "$LINENO" 5
26146fi
26147
26148fi
26149
26150fi
26151
26152if test -z "$use_itc"
26153then :
26154  as_fn_error $? "cannot find usable type of inter-thread communication" "$LINENO" 5
26155fi
26156
26157
26158ac_func=
26159for ac_item in $ac_func_c_list
26160do
26161  if test $ac_func; then
26162    ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
26163    if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
26164      echo "#define $ac_item 1" >> confdefs.h
26165    fi
26166    ac_func=
26167  else
26168    ac_func=$ac_item
26169  fi
26170done
26171
26172
26173
26174
26175ac_fn_check_decl "$LINENO" "gmtime_s" "ac_cv_have_decl_gmtime_s" "#define __STDC_WANT_LIB_EXT1__ 1
26176#include <time.h>
26177" "$ac_c_undeclared_builtin_options" "CFLAGS"
26178if test "x$ac_cv_have_decl_gmtime_s" = xyes
26179then :
26180
26181    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gmtime_s is in C11 form" >&5
26182printf %s "checking whether gmtime_s is in C11 form... " >&6; }
26183    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26184/* end confdefs.h.  */
26185
26186#define __STDC_WANT_LIB_EXT1__ 1
26187#include <time.h>
26188#ifdef __cplusplus
26189extern "C"
26190#endif
26191             struct tm* gmtime_s(const time_t* time, struct tm* result);
26192
26193int
26194main (void)
26195{
26196
26197             struct tm res;
26198             time_t t;
26199             gmtime_s (&t, &res);
26200
26201  ;
26202  return 0;
26203}
26204
26205_ACEOF
26206if ac_fn_c_try_link "$LINENO"
26207then :
26208
26209
26210printf "%s\n" "#define HAVE_C11_GMTIME_S 1" >>confdefs.h
26211
26212          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26213printf "%s\n" "yes" >&6; }
26214
26215else $as_nop
26216
26217          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26218printf "%s\n" "no" >&6; }
26219          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gmtime_s is in W32 form" >&5
26220printf %s "checking whether gmtime_s is in W32 form... " >&6; }
26221          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26222/* end confdefs.h.  */
26223
26224#include <time.h>
26225#ifdef __cplusplus
26226extern "C"
26227#endif
26228errno_t gmtime_s(struct tm* _tm, const time_t* time);
26229
26230int
26231main (void)
26232{
26233
26234                 struct tm res;
26235                 time_t t;
26236                 gmtime_s (&res, &t);
26237
26238  ;
26239  return 0;
26240}
26241
26242_ACEOF
26243if ac_fn_c_try_link "$LINENO"
26244then :
26245
26246
26247printf "%s\n" "#define HAVE_W32_GMTIME_S 1" >>confdefs.h
26248
26249              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26250printf "%s\n" "yes" >&6; }
26251
26252else $as_nop
26253  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26254printf "%s\n" "no" >&6; }
26255
26256fi
26257rm -f core conftest.err conftest.$ac_objext conftest.beam \
26258    conftest$ac_exeext conftest.$ac_ext
26259
26260fi
26261rm -f core conftest.err conftest.$ac_objext conftest.beam \
26262    conftest$ac_exeext conftest.$ac_ext
26263
26264fi
26265
26266
26267ac_fn_check_decl "$LINENO" "SOCK_NONBLOCK" "ac_cv_have_decl_SOCK_NONBLOCK" "
26268#if defined(HAVE_SYS_TYPES_H)
26269#  include <sys/types.h>
26270#endif
26271#if defined(HAVE_SYS_SOCKET_H)
26272#  include <sys/socket.h>
26273#elif defined(HAVE_WINSOCK2_H)
26274#  include <winsock2.h>
26275#endif
26276
26277
26278" "$ac_c_undeclared_builtin_options" "CFLAGS"
26279if test "x$ac_cv_have_decl_SOCK_NONBLOCK" = xyes
26280then :
26281
26282printf "%s\n" "#define HAVE_SOCK_NONBLOCK 1" >>confdefs.h
26283
26284fi
26285
26286
26287ac_fn_check_decl "$LINENO" "clock_gettime" "ac_cv_have_decl_clock_gettime" "
26288#include <time.h>
26289
26290" "$ac_c_undeclared_builtin_options" "CFLAGS"
26291if test "x$ac_cv_have_decl_clock_gettime" = xyes
26292then :
26293
26294   SAVE_LIBS="$LIBS"
26295   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
26296printf %s "checking for library containing clock_gettime... " >&6; }
26297if test ${ac_cv_search_clock_gettime+y}
26298then :
26299  printf %s "(cached) " >&6
26300else $as_nop
26301  ac_func_search_save_LIBS=$LIBS
26302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26303/* end confdefs.h.  */
26304
26305/* Override any GCC internal prototype to avoid an error.
26306   Use char because int might match the return type of a GCC
26307   builtin and then its argument prototype would still apply.  */
26308char clock_gettime ();
26309int
26310main (void)
26311{
26312return clock_gettime ();
26313  ;
26314  return 0;
26315}
26316_ACEOF
26317for ac_lib in '' rt
26318do
26319  if test -z "$ac_lib"; then
26320    ac_res="none required"
26321  else
26322    ac_res=-l$ac_lib
26323    LIBS="-l$ac_lib $MHD_LIBDEPS $ac_func_search_save_LIBS"
26324  fi
26325  if ac_fn_c_try_link "$LINENO"
26326then :
26327  ac_cv_search_clock_gettime=$ac_res
26328fi
26329rm -f core conftest.err conftest.$ac_objext conftest.beam \
26330    conftest$ac_exeext
26331  if test ${ac_cv_search_clock_gettime+y}
26332then :
26333  break
26334fi
26335done
26336if test ${ac_cv_search_clock_gettime+y}
26337then :
26338
26339else $as_nop
26340  ac_cv_search_clock_gettime=no
26341fi
26342rm conftest.$ac_ext
26343LIBS=$ac_func_search_save_LIBS
26344fi
26345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
26346printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
26347ac_res=$ac_cv_search_clock_gettime
26348if test "$ac_res" != no
26349then :
26350  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26351
26352
26353printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
26354
26355      if test "x$ac_cv_search_clock_gettime" = x"none required"
26356then :
26357
26358else $as_nop
26359
26360         MHD_LIBDEPS="$ac_cv_search_clock_gettime $MHD_LIBDEPS"
26361         MHD_LIBDEPS_PKGCFG="$ac_cv_search_clock_gettime $MHD_LIBDEPS_PKGCFG"
26362
26363fi
26364
26365fi
26366
26367   LIBS="$SAVE_LIBS"
26368
26369fi
26370
26371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_get_time" >&5
26372printf %s "checking for clock_get_time... " >&6; }
26373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26374/* end confdefs.h.  */
26375
26376#include <mach/clock.h>
26377#include <mach/mach.h>
26378
26379int
26380main (void)
26381{
26382
26383      clock_serv_t cs;
26384      mach_timespec_t mt;
26385      host_get_clock_service(mach_host_self(), SYSTEM_CLOCK, &cs);
26386      clock_get_time(cs, &mt);
26387      mach_port_deallocate(mach_task_self(), cs);
26388
26389  ;
26390  return 0;
26391}
26392
26393_ACEOF
26394if ac_fn_c_try_link "$LINENO"
26395then :
26396
26397
26398printf "%s\n" "#define HAVE_CLOCK_GET_TIME 1" >>confdefs.h
26399
26400    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26401printf "%s\n" "yes" >&6; }
26402
26403else $as_nop
26404  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26405printf "%s\n" "no" >&6; }
26406
26407fi
26408rm -f core conftest.err conftest.$ac_objext conftest.beam \
26409    conftest$ac_exeext conftest.$ac_ext
26410
26411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethrtime" >&5
26412printf %s "checking for gethrtime... " >&6; }
26413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26414/* end confdefs.h.  */
26415
26416#ifdef HAVE_SYS_TIME_H
26417/* Solaris define gethrtime() in sys/time.h */
26418#include <sys/time.h>
26419#endif /* HAVE_SYS_TIME_H */
26420#ifdef HAVE_TIME_H
26421/* HP-UX define gethrtime() in time.h */
26422#include <time.h>
26423#endif /* HAVE_TIME_H */
26424
26425int
26426main (void)
26427{
26428hrtime_t hrt = gethrtime();
26429  ;
26430  return 0;
26431}
26432
26433_ACEOF
26434if ac_fn_c_try_link "$LINENO"
26435then :
26436
26437
26438printf "%s\n" "#define HAVE_GETHRTIME 1" >>confdefs.h
26439
26440    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26441printf "%s\n" "yes" >&6; }
26442
26443else $as_nop
26444  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26445printf "%s\n" "no" >&6; }
26446
26447fi
26448rm -f core conftest.err conftest.$ac_objext conftest.beam \
26449    conftest$ac_exeext conftest.$ac_ext
26450
26451if test "x$ac_cv_header_time_h" = x"yes"
26452then :
26453
26454    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C11 timespec_get()" >&5
26455printf %s "checking for C11 timespec_get()... " >&6; }
26456if test ${mhd_cv_func_timespec_get+y}
26457then :
26458  printf %s "(cached) " >&6
26459else $as_nop
26460
26461        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26462/* end confdefs.h.  */
26463
26464
26465#include <time.h>
26466
26467#ifndef TIME_UTC
26468#error TIME_UTC must be defined to use timespec_get()
26469choke me now
26470#endif
26471
26472int
26473main (void)
26474{
26475
26476  struct timespec ts;
26477  if (TIME_UTC != timespec_get (&ts, TIME_UTC))
26478    return 1;
26479
26480
26481  ;
26482  return 0;
26483}
26484
26485_ACEOF
26486if ac_fn_c_try_link "$LINENO"
26487then :
26488  mhd_cv_func_timespec_get="yes"
26489else $as_nop
26490  mhd_cv_func_timespec_get="no"
26491
26492fi
26493rm -f core conftest.err conftest.$ac_objext conftest.beam \
26494    conftest$ac_exeext conftest.$ac_ext
26495
26496
26497fi
26498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_func_timespec_get" >&5
26499printf "%s\n" "$mhd_cv_func_timespec_get" >&6; }
26500    if test "x$mhd_cv_func_timespec_get" = x"yes"
26501then :
26502
26503printf "%s\n" "#define HAVE_TIMESPEC_GET 1" >>confdefs.h
26504
26505
26506fi
26507
26508
26509fi
26510
26511if test ${ac_cv_func_gettimeofday+y}
26512then :
26513  mhd_cv_func_gettimeofday="${ac_cv_func_gettimeofday}"
26514fi
26515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettimeofday(2)" >&5
26516printf %s "checking for gettimeofday(2)... " >&6; }
26517if test ${mhd_cv_func_gettimeofday+y}
26518then :
26519  printf %s "(cached) " >&6
26520else $as_nop
26521
26522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26523/* end confdefs.h.  */
26524
26525
26526#ifdef HAVE_SYS_TIME_H
26527#include <sys/time.h>
26528#endif /* HAVE_SYS_TIME_H */
26529#ifdef HAVE_TIME_H
26530#include <time.h>
26531#endif /* HAVE_TIME_H */
26532
26533int
26534main (void)
26535{
26536
26537  struct timeval tv;
26538  if (0 != gettimeofday (&tv, (void*) 0))
26539    return 1;
26540
26541
26542  ;
26543  return 0;
26544}
26545
26546_ACEOF
26547if ac_fn_c_try_link "$LINENO"
26548then :
26549  mhd_cv_func_gettimeofday="yes"
26550else $as_nop
26551  mhd_cv_func_gettimeofday="no"
26552
26553fi
26554rm -f core conftest.err conftest.$ac_objext conftest.beam \
26555    conftest$ac_exeext conftest.$ac_ext
26556
26557fi
26558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_func_gettimeofday" >&5
26559printf "%s\n" "$mhd_cv_func_gettimeofday" >&6; }
26560if test "x$mhd_cv_func_gettimeofday" = x"yes"
26561then :
26562
26563printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
26564
26565
26566fi
26567
26568# IPv6
26569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv6" >&5
26570printf %s "checking for IPv6... " >&6; }
26571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26572/* end confdefs.h.  */
26573
26574#include <stdio.h>
26575#if HAVE_NETINET_IN_H
26576#include <netinet/in.h>
26577#endif
26578#if HAVE_SYS_SOCKET_H
26579#include <sys/socket.h>
26580#endif
26581#if HAVE_WINSOCK2_H
26582#include <winsock2.h>
26583#endif
26584#if HAVE_WS2TCPIP_H
26585#include <ws2tcpip.h>
26586#endif
26587
26588int
26589main (void)
26590{
26591
26592int af=AF_INET6;
26593int pf=PF_INET6;
26594struct sockaddr_in6 sa;
26595printf("%d %d %p\n", af, pf, &sa);
26596
26597  ;
26598  return 0;
26599}
26600_ACEOF
26601if ac_fn_c_try_compile "$LINENO"
26602then :
26603
26604have_inet6=yes;
26605
26606printf "%s\n" "#define HAVE_INET6 1" >>confdefs.h
26607
26608
26609else $as_nop
26610
26611have_inet6=no
26612
26613fi
26614rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_inet6" >&5
26616printf "%s\n" "$have_inet6" >&6; }
26617
26618                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function sysconf" >&5
26619printf %s "checking for function sysconf... " >&6; }
26620if test ${mhd_cv_func_sysconf+y}
26621then :
26622  printf %s "(cached) " >&6
26623else $as_nop
26624              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26625/* end confdefs.h.  */
26626#include <unistd.h>
26627int
26628main (void)
26629{
26630long a = sysconf(0); if (a) return 1;
26631  ;
26632  return 0;
26633}
26634_ACEOF
26635if ac_fn_c_try_link "$LINENO"
26636then :
26637  mhd_cv_func_sysconf="yes"
26638else $as_nop
26639  mhd_cv_func_sysconf="no"
26640fi
26641rm -f core conftest.err conftest.$ac_objext conftest.beam \
26642    conftest$ac_exeext conftest.$ac_ext
26643
26644fi
26645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_func_sysconf" >&5
26646printf "%s\n" "$mhd_cv_func_sysconf" >&6; }
26647  if test "x$mhd_cv_func_sysconf" = x"yes"
26648then :
26649
26650printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
26651
26652
26653fi
26654
26655
26656                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function sysctl" >&5
26657printf %s "checking for function sysctl... " >&6; }
26658if test ${mhd_cv_func_sysctl+y}
26659then :
26660  printf %s "(cached) " >&6
26661else $as_nop
26662              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26663/* end confdefs.h.  */
26664
26665#ifdef HAVE_SYS_TYPES_H
26666#include <sys/types.h>
26667#endif
26668#ifdef HAVE_SYS_SYSCTL_H
26669#include <sys/sysctl.h>
26670#endif
26671#ifdef HAVE_STDDEF_H
26672#include <stddef.h>
26673#endif
26674
26675int
26676main (void)
26677{
26678int mib[2] = {CTL_KERN, KERN_MAXPROC}; if (sysctl(mib, 2, NULL, NULL, NULL, 0)) return 1;
26679
26680  ;
26681  return 0;
26682}
26683_ACEOF
26684if ac_fn_c_try_link "$LINENO"
26685then :
26686  mhd_cv_func_sysctl="yes"
26687else $as_nop
26688  mhd_cv_func_sysctl="no"
26689fi
26690rm -f core conftest.err conftest.$ac_objext conftest.beam \
26691    conftest$ac_exeext conftest.$ac_ext
26692
26693fi
26694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_func_sysctl" >&5
26695printf "%s\n" "$mhd_cv_func_sysctl" >&6; }
26696  if test "x$mhd_cv_func_sysctl" = x"yes"
26697then :
26698
26699printf "%s\n" "#define HAVE_SYSCTL 1" >>confdefs.h
26700
26701
26702fi
26703
26704
26705                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function sysctlbyname" >&5
26706printf %s "checking for function sysctlbyname... " >&6; }
26707if test ${mhd_cv_func_sysctlbyname+y}
26708then :
26709  printf %s "(cached) " >&6
26710else $as_nop
26711              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26712/* end confdefs.h.  */
26713
26714#ifdef HAVE_SYS_TYPES_H
26715#include <sys/types.h>
26716#endif
26717#ifdef HAVE_SYS_SYSCTL_H
26718#include <sys/sysctl.h>
26719#endif
26720#ifdef HAVE_STDDEF_H
26721#include <stddef.h>
26722#endif
26723
26724int
26725main (void)
26726{
26727sysctlbyname("test", NULL, NULL, NULL, 0);
26728
26729  ;
26730  return 0;
26731}
26732_ACEOF
26733if ac_fn_c_try_link "$LINENO"
26734then :
26735  mhd_cv_func_sysctlbyname="yes"
26736else $as_nop
26737  mhd_cv_func_sysctlbyname="no"
26738fi
26739rm -f core conftest.err conftest.$ac_objext conftest.beam \
26740    conftest$ac_exeext conftest.$ac_ext
26741
26742fi
26743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_func_sysctlbyname" >&5
26744printf "%s\n" "$mhd_cv_func_sysctlbyname" >&6; }
26745  if test "x$mhd_cv_func_sysctlbyname" = x"yes"
26746then :
26747
26748printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
26749
26750
26751fi
26752
26753
26754                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function usleep" >&5
26755printf %s "checking for function usleep... " >&6; }
26756if test ${mhd_cv_func_usleep+y}
26757then :
26758  printf %s "(cached) " >&6
26759else $as_nop
26760              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26761/* end confdefs.h.  */
26762#include <unistd.h>
26763int
26764main (void)
26765{
26766usleep(100000);
26767  ;
26768  return 0;
26769}
26770_ACEOF
26771if ac_fn_c_try_link "$LINENO"
26772then :
26773  mhd_cv_func_usleep="yes"
26774else $as_nop
26775  mhd_cv_func_usleep="no"
26776fi
26777rm -f core conftest.err conftest.$ac_objext conftest.beam \
26778    conftest$ac_exeext conftest.$ac_ext
26779
26780fi
26781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_func_usleep" >&5
26782printf "%s\n" "$mhd_cv_func_usleep" >&6; }
26783  if test "x$mhd_cv_func_usleep" = x"yes"
26784then :
26785
26786printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
26787
26788
26789fi
26790
26791                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function nanosleep" >&5
26792printf %s "checking for function nanosleep... " >&6; }
26793if test ${mhd_cv_func_nanosleep+y}
26794then :
26795  printf %s "(cached) " >&6
26796else $as_nop
26797              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26798/* end confdefs.h.  */
26799#include <time.h>
26800int
26801main (void)
26802{
26803struct timespec ts2, ts1 = {0, 0}; nanosleep(&ts1, &ts2);
26804  ;
26805  return 0;
26806}
26807_ACEOF
26808if ac_fn_c_try_link "$LINENO"
26809then :
26810  mhd_cv_func_nanosleep="yes"
26811else $as_nop
26812  mhd_cv_func_nanosleep="no"
26813fi
26814rm -f core conftest.err conftest.$ac_objext conftest.beam \
26815    conftest$ac_exeext conftest.$ac_ext
26816
26817fi
26818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_func_nanosleep" >&5
26819printf "%s\n" "$mhd_cv_func_nanosleep" >&6; }
26820  if test "x$mhd_cv_func_nanosleep" = x"yes"
26821then :
26822
26823printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
26824
26825
26826fi
26827
26828
26829HIDDEN_VISIBILITY_CFLAGS=""
26830case "$host" in #(
26831  *-*-mingw*) :
26832
26833
26834printf "%s\n" "#define _MHD_EXTERN __attribute__((visibility(\"default\"))) __declspec(dllexport) extern" >>confdefs.h
26835
26836    HIDDEN_VISIBILITY_CFLAGS="-fvisibility=hidden"
26837   ;; #(
26838  *) :
26839
26840        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fvisibility=hidden" >&5
26841printf %s "checking whether the linker accepts -fvisibility=hidden... " >&6; }
26842if test ${ax_cv_check_ldflags___fvisibility_hidden+y}
26843then :
26844  printf %s "(cached) " >&6
26845else $as_nop
26846
26847  ax_check_save_flags=$LDFLAGS
26848  LDFLAGS="$LDFLAGS  -fvisibility=hidden"
26849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26850/* end confdefs.h.  */
26851
26852int
26853main (void)
26854{
26855
26856  ;
26857  return 0;
26858}
26859_ACEOF
26860if ac_fn_c_try_link "$LINENO"
26861then :
26862  ax_cv_check_ldflags___fvisibility_hidden=yes
26863else $as_nop
26864  ax_cv_check_ldflags___fvisibility_hidden=no
26865fi
26866rm -f core conftest.err conftest.$ac_objext conftest.beam \
26867    conftest$ac_exeext conftest.$ac_ext
26868  LDFLAGS=$ax_check_save_flags
26869fi
26870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fvisibility_hidden" >&5
26871printf "%s\n" "$ax_cv_check_ldflags___fvisibility_hidden" >&6; }
26872if test "x$ax_cv_check_ldflags___fvisibility_hidden" = xyes
26873then :
26874  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5
26875printf %s "checking whether C compiler accepts -fvisibility=hidden... " >&6; }
26876if test ${ax_cv_check_cflags___fvisibility_hidden+y}
26877then :
26878  printf %s "(cached) " >&6
26879else $as_nop
26880
26881  ax_check_save_flags=$CFLAGS
26882  CFLAGS="$CFLAGS  -fvisibility=hidden"
26883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26884/* end confdefs.h.  */
26885
26886int
26887main (void)
26888{
26889
26890  ;
26891  return 0;
26892}
26893_ACEOF
26894if ac_fn_c_try_compile "$LINENO"
26895then :
26896  ax_cv_check_cflags___fvisibility_hidden=yes
26897else $as_nop
26898  ax_cv_check_cflags___fvisibility_hidden=no
26899fi
26900rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26901  CFLAGS=$ax_check_save_flags
26902fi
26903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fvisibility_hidden" >&5
26904printf "%s\n" "$ax_cv_check_cflags___fvisibility_hidden" >&6; }
26905if test "x$ax_cv_check_cflags___fvisibility_hidden" = xyes
26906then :
26907
26908printf "%s\n" "#define _MHD_EXTERN __attribute__((visibility(\"default\"))) extern" >>confdefs.h
26909
26910                            HIDDEN_VISIBILITY_CFLAGS="-fvisibility=hidden"
26911else $as_nop
26912  :
26913fi
26914
26915else $as_nop
26916  :
26917fi
26918
26919    ;;
26920esac
26921
26922
26923# libcurl (required for testing)
26924# Check whether --enable-curl was given.
26925if test ${enable_curl+y}
26926then :
26927  enableval=$enable_curl; enable_curl=${enableval}
26928fi
26929
26930curl=0
26931if test "$enable_curl" != "no"
26932then :
26933
26934
26935
26936
26937
26938
26939
26940
26941
26942
26943
26944
26945
26946
26947
26948
26949
26950
26951
26952
26953
26954
26955
26956
26957
26958# Check whether --with-libcurl was given.
26959if test ${with_libcurl+y}
26960then :
26961  withval=$with_libcurl; _libcurl_with=$withval
26962else $as_nop
26963  _libcurl_with=yes
26964fi
26965
26966
26967  if test "$_libcurl_with" != "no" ; then
26968
26969     for ac_prog in gawk mawk nawk awk
26970do
26971  # Extract the first word of "$ac_prog", so it can be a program name with args.
26972set dummy $ac_prog; ac_word=$2
26973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26974printf %s "checking for $ac_word... " >&6; }
26975if test ${ac_cv_prog_AWK+y}
26976then :
26977  printf %s "(cached) " >&6
26978else $as_nop
26979  if test -n "$AWK"; then
26980  ac_cv_prog_AWK="$AWK" # Let the user override the test.
26981else
26982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26983for as_dir in $PATH
26984do
26985  IFS=$as_save_IFS
26986  case $as_dir in #(((
26987    '') as_dir=./ ;;
26988    */) ;;
26989    *) as_dir=$as_dir/ ;;
26990  esac
26991    for ac_exec_ext in '' $ac_executable_extensions; do
26992  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26993    ac_cv_prog_AWK="$ac_prog"
26994    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26995    break 2
26996  fi
26997done
26998  done
26999IFS=$as_save_IFS
27000
27001fi
27002fi
27003AWK=$ac_cv_prog_AWK
27004if test -n "$AWK"; then
27005  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
27006printf "%s\n" "$AWK" >&6; }
27007else
27008  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27009printf "%s\n" "no" >&6; }
27010fi
27011
27012
27013  test -n "$AWK" && break
27014done
27015
27016
27017     _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
27018
27019     _libcurl_try_link=yes
27020
27021     if test -d "$_libcurl_with" ; then
27022        LIBCURL_CPPFLAGS="-I$withval/include"
27023        _libcurl_ldflags="-L$withval/lib"
27024        # Extract the first word of "curl-config", so it can be a program name with args.
27025set dummy curl-config; ac_word=$2
27026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27027printf %s "checking for $ac_word... " >&6; }
27028if test ${ac_cv_path__libcurl_config+y}
27029then :
27030  printf %s "(cached) " >&6
27031else $as_nop
27032  case $_libcurl_config in
27033  [\\/]* | ?:[\\/]*)
27034  ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
27035  ;;
27036  *)
27037  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27038for as_dir in "$withval/bin"
27039do
27040  IFS=$as_save_IFS
27041  case $as_dir in #(((
27042    '') as_dir=./ ;;
27043    */) ;;
27044    *) as_dir=$as_dir/ ;;
27045  esac
27046    for ac_exec_ext in '' $ac_executable_extensions; do
27047  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27048    ac_cv_path__libcurl_config="$as_dir$ac_word$ac_exec_ext"
27049    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27050    break 2
27051  fi
27052done
27053  done
27054IFS=$as_save_IFS
27055
27056  ;;
27057esac
27058fi
27059_libcurl_config=$ac_cv_path__libcurl_config
27060if test -n "$_libcurl_config"; then
27061  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
27062printf "%s\n" "$_libcurl_config" >&6; }
27063else
27064  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27065printf "%s\n" "no" >&6; }
27066fi
27067
27068
27069     else
27070        # Extract the first word of "curl-config", so it can be a program name with args.
27071set dummy curl-config; ac_word=$2
27072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27073printf %s "checking for $ac_word... " >&6; }
27074if test ${ac_cv_path__libcurl_config+y}
27075then :
27076  printf %s "(cached) " >&6
27077else $as_nop
27078  case $_libcurl_config in
27079  [\\/]* | ?:[\\/]*)
27080  ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
27081  ;;
27082  *)
27083  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27084for as_dir in $PATH
27085do
27086  IFS=$as_save_IFS
27087  case $as_dir in #(((
27088    '') as_dir=./ ;;
27089    */) ;;
27090    *) as_dir=$as_dir/ ;;
27091  esac
27092    for ac_exec_ext in '' $ac_executable_extensions; do
27093  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27094    ac_cv_path__libcurl_config="$as_dir$ac_word$ac_exec_ext"
27095    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27096    break 2
27097  fi
27098done
27099  done
27100IFS=$as_save_IFS
27101
27102  ;;
27103esac
27104fi
27105_libcurl_config=$ac_cv_path__libcurl_config
27106if test -n "$_libcurl_config"; then
27107  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
27108printf "%s\n" "$_libcurl_config" >&6; }
27109else
27110  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27111printf "%s\n" "no" >&6; }
27112fi
27113
27114
27115     fi
27116
27117     if test x$_libcurl_config != "x" ; then
27118        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5
27119printf %s "checking for the version of libcurl... " >&6; }
27120if test ${libcurl_cv_lib_curl_version+y}
27121then :
27122  printf %s "(cached) " >&6
27123else $as_nop
27124  libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
27125fi
27126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5
27127printf "%s\n" "$libcurl_cv_lib_curl_version" >&6; }
27128
27129        _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
27130        _libcurl_wanted=`echo 7.16.4 | $_libcurl_version_parse`
27131
27132        if test $_libcurl_wanted -gt 0 ; then
27133           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version 7.16.4" >&5
27134printf %s "checking for libcurl >= version 7.16.4... " >&6; }
27135if test ${libcurl_cv_lib_version_ok+y}
27136then :
27137  printf %s "(cached) " >&6
27138else $as_nop
27139
27140              if test $_libcurl_version -ge $_libcurl_wanted ; then
27141                 libcurl_cv_lib_version_ok=yes
27142              else
27143                 libcurl_cv_lib_version_ok=no
27144              fi
27145
27146fi
27147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5
27148printf "%s\n" "$libcurl_cv_lib_version_ok" >&6; }
27149        fi
27150
27151        if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
27152           if test x"$LIBCURL_CPPFLAGS" = "x" ; then
27153              LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
27154           fi
27155           if test x"$LIBCURL" = "x" ; then
27156              LIBCURL=`$_libcurl_config --libs`
27157
27158              # This is so silly, but Apple actually has a bug in their
27159              # curl-config script.  Fixed in Tiger, but there are still
27160              # lots of Panther installs around.
27161              case "${host}" in
27162                 powerpc-apple-darwin7*)
27163                    LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
27164                 ;;
27165              esac
27166           fi
27167
27168           # All curl-config scripts support --feature
27169           _libcurl_features=`$_libcurl_config --feature`
27170
27171           # Is it modern enough to have --protocols? (7.12.4)
27172           if test $_libcurl_version -ge 461828 ; then
27173              _libcurl_protocols=`$_libcurl_config --protocols`
27174           fi
27175        else
27176           _libcurl_try_link=no
27177        fi
27178
27179        unset _libcurl_wanted
27180     fi
27181
27182     if test $_libcurl_try_link = yes ; then
27183
27184        # we didn't find curl-config, so let's see if the user-supplied
27185        # link line (or failing that, "-lcurl") is enough.
27186        LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
27187
27188        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5
27189printf %s "checking whether libcurl is usable... " >&6; }
27190if test ${libcurl_cv_lib_curl_usable+y}
27191then :
27192  printf %s "(cached) " >&6
27193else $as_nop
27194
27195           _libcurl_save_cppflags=$CPPFLAGS
27196           CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
27197           _libcurl_save_libs=$LIBS
27198           LIBS="$LIBCURL $LIBS"
27199
27200           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27201/* end confdefs.h.  */
27202#include <curl/curl.h>
27203int
27204main (void)
27205{
27206
27207/* Try and use a few common options to force a failure if we are
27208   missing symbols or can't link. */
27209int x;
27210curl_easy_setopt(NULL,CURLOPT_URL,NULL);
27211x=CURL_ERROR_SIZE;
27212x=CURLOPT_WRITEFUNCTION;
27213x=CURLOPT_WRITEDATA;
27214x=CURLOPT_ERRORBUFFER;
27215x=CURLOPT_STDERR;
27216x=CURLOPT_VERBOSE;
27217if (x) {;}
27218
27219  ;
27220  return 0;
27221}
27222_ACEOF
27223if ac_fn_c_try_link "$LINENO"
27224then :
27225  libcurl_cv_lib_curl_usable=yes
27226else $as_nop
27227  libcurl_cv_lib_curl_usable=no
27228fi
27229rm -f core conftest.err conftest.$ac_objext conftest.beam \
27230    conftest$ac_exeext conftest.$ac_ext
27231
27232           CPPFLAGS=$_libcurl_save_cppflags
27233           LIBS=$_libcurl_save_libs
27234           unset _libcurl_save_cppflags
27235           unset _libcurl_save_libs
27236
27237fi
27238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5
27239printf "%s\n" "$libcurl_cv_lib_curl_usable" >&6; }
27240
27241        if test $libcurl_cv_lib_curl_usable = yes ; then
27242
27243           # Does curl_free() exist in this version of libcurl?
27244           # If not, fake it with free()
27245
27246           _libcurl_save_cppflags=$CPPFLAGS
27247           CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
27248           _libcurl_save_libs=$LIBS
27249           LIBS="$LIBS $LIBCURL"
27250
27251           ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free"
27252if test "x$ac_cv_func_curl_free" = xyes
27253then :
27254
27255else $as_nop
27256
27257printf "%s\n" "#define curl_free free" >>confdefs.h
27258
27259fi
27260
27261
27262           CPPFLAGS=$_libcurl_save_cppflags
27263           LIBS=$_libcurl_save_libs
27264           unset _libcurl_save_cppflags
27265           unset _libcurl_save_libs
27266
27267
27268printf "%s\n" "#define HAVE_LIBCURL 1" >>confdefs.h
27269
27270
27271
27272
27273           for _libcurl_feature in $_libcurl_features ; do
27274              cat >>confdefs.h <<_ACEOF
27275#define `printf "%s\n" "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
27276_ACEOF
27277
27278              eval `printf "%s\n" "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
27279           done
27280
27281           if test "x$_libcurl_protocols" = "x" ; then
27282
27283              # We don't have --protocols, so just assume that all
27284              # protocols are available
27285              _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT TFTP"
27286
27287              if test x$libcurl_feature_SSL = xyes ; then
27288                 _libcurl_protocols="$_libcurl_protocols HTTPS"
27289
27290                 # FTPS wasn't standards-compliant until version
27291                 # 7.11.0 (0x070b00 == 461568)
27292                 if test $_libcurl_version -ge 461568; then
27293                    _libcurl_protocols="$_libcurl_protocols FTPS"
27294                 fi
27295              fi
27296
27297              # RTSP, IMAP, POP3 and SMTP were added in
27298              # 7.20.0 (0x071400 == 463872)
27299              if test $_libcurl_version -ge 463872; then
27300                 _libcurl_protocols="$_libcurl_protocols RTSP IMAP POP3 SMTP"
27301              fi
27302           fi
27303
27304           for _libcurl_protocol in $_libcurl_protocols ; do
27305              cat >>confdefs.h <<_ACEOF
27306#define `printf "%s\n" "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
27307_ACEOF
27308
27309              eval `printf "%s\n" "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
27310           done
27311        else
27312           unset LIBCURL
27313           unset LIBCURL_CPPFLAGS
27314        fi
27315     fi
27316
27317     unset _libcurl_try_link
27318     unset _libcurl_version_parse
27319     unset _libcurl_config
27320     unset _libcurl_feature
27321     unset _libcurl_features
27322     unset _libcurl_protocol
27323     unset _libcurl_protocols
27324     unset _libcurl_version
27325     unset _libcurl_ldflags
27326  fi
27327
27328  if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
27329     # This is the IF-NO path
27330
27331      if test "x$enable_curl" = "xyes"
27332then :
27333  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cURL-based tests cannot be enabled because libcurl is missing" >&5
27334printf "%s\n" "$as_me: WARNING: cURL-based tests cannot be enabled because libcurl is missing" >&2;}
27335fi
27336      enable_curl=no
27337
27338  else
27339     # This is the IF-YES path
27340     enable_curl=yes
27341  fi
27342
27343  unset _libcurl_with
27344
27345
27346fi
27347if test "$enable_curl" != "no"
27348then :
27349
27350# Lib cURL & cURL - OpenSSL versions
27351
27352printf "%s\n" "#define MHD_REQ_CURL_VERSION \"7.16.4\"" >>confdefs.h
27353
27354
27355printf "%s\n" "#define MHD_REQ_CURL_OPENSSL_VERSION \"0.9.8\"" >>confdefs.h
27356
27357
27358printf "%s\n" "#define MHD_REQ_CURL_GNUTLS_VERSION \"2.8.6\"" >>confdefs.h
27359
27360
27361printf "%s\n" "#define MHD_REQ_CURL_NSS_VERSION \"3.12.0\"" >>confdefs.h
27362
27363
27364fi
27365 if test "x$enable_curl" = "xyes"; then
27366  HAVE_CURL_TRUE=
27367  HAVE_CURL_FALSE='#'
27368else
27369  HAVE_CURL_TRUE='#'
27370  HAVE_CURL_FALSE=
27371fi
27372
27373
27374mhd_have_libmagic="no"
27375SAVE_LIBS="$LIBS"
27376LIBS="$LIBS -lmagic"
27377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suitable libmagic" >&5
27378printf %s "checking for suitable libmagic... " >&6; }
27379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27380/* end confdefs.h.  */
27381$ac_includes_default
27382
27383#include <magic.h>
27384
27385int
27386main (void)
27387{
27388
27389      char var_data[256];
27390      const char *var_mime;
27391      magic_t var_magic = magic_open (MAGIC_MIME_TYPE);
27392      (void)magic_load (var_magic, NULL);
27393      var_data[0] = 0;
27394      var_mime = magic_buffer (var_magic, var_data, 1);
27395      magic_close (var_magic);
27396
27397
27398  ;
27399  return 0;
27400}
27401
27402_ACEOF
27403if ac_fn_c_try_link "$LINENO"
27404then :
27405
27406
27407printf "%s\n" "#define MHD_HAVE_LIBMAGIC 1" >>confdefs.h
27408
27409    mhd_have_libmagic="yes"
27410    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27411printf "%s\n" "yes" >&6; }
27412
27413else $as_nop
27414  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27415printf "%s\n" "no" >&6; }
27416
27417
27418fi
27419rm -f core conftest.err conftest.$ac_objext conftest.beam \
27420    conftest$ac_exeext conftest.$ac_ext
27421LIBS="$SAVE_LIBS"
27422 if test "x$mhd_have_libmagic" = "xyes"; then
27423  MHD_HAVE_LIBMAGIC_TRUE=
27424  MHD_HAVE_LIBMAGIC_FALSE='#'
27425else
27426  MHD_HAVE_LIBMAGIC_TRUE='#'
27427  MHD_HAVE_LIBMAGIC_FALSE=
27428fi
27429
27430
27431# large file support (> 4 GB)
27432# Check whether --enable-largefile was given.
27433if test ${enable_largefile+y}
27434then :
27435  enableval=$enable_largefile;
27436fi
27437
27438if test "$enable_largefile" != no; then
27439
27440  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
27441printf %s "checking for special C compiler options needed for large files... " >&6; }
27442if test ${ac_cv_sys_largefile_CC+y}
27443then :
27444  printf %s "(cached) " >&6
27445else $as_nop
27446  ac_cv_sys_largefile_CC=no
27447     if test "$GCC" != yes; then
27448       ac_save_CC=$CC
27449       while :; do
27450	 # IRIX 6.2 and later do not support large files by default,
27451	 # so use the C compiler's -n32 option if that helps.
27452	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27453/* end confdefs.h.  */
27454#include <sys/types.h>
27455 /* Check that off_t can represent 2**63 - 1 correctly.
27456    We can't simply define LARGE_OFF_T to be 9223372036854775807,
27457    since some C++ compilers masquerading as C compilers
27458    incorrectly reject 9223372036854775807.  */
27459#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
27460  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
27461		       && LARGE_OFF_T % 2147483647 == 1)
27462		      ? 1 : -1];
27463int
27464main (void)
27465{
27466
27467  ;
27468  return 0;
27469}
27470_ACEOF
27471	 if ac_fn_c_try_compile "$LINENO"
27472then :
27473  break
27474fi
27475rm -f core conftest.err conftest.$ac_objext conftest.beam
27476	 CC="$CC -n32"
27477	 if ac_fn_c_try_compile "$LINENO"
27478then :
27479  ac_cv_sys_largefile_CC=' -n32'; break
27480fi
27481rm -f core conftest.err conftest.$ac_objext conftest.beam
27482	 break
27483       done
27484       CC=$ac_save_CC
27485       rm -f conftest.$ac_ext
27486    fi
27487fi
27488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
27489printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
27490  if test "$ac_cv_sys_largefile_CC" != no; then
27491    CC=$CC$ac_cv_sys_largefile_CC
27492  fi
27493
27494  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
27495printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
27496if test ${ac_cv_sys_file_offset_bits+y}
27497then :
27498  printf %s "(cached) " >&6
27499else $as_nop
27500  while :; do
27501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27502/* end confdefs.h.  */
27503#include <sys/types.h>
27504 /* Check that off_t can represent 2**63 - 1 correctly.
27505    We can't simply define LARGE_OFF_T to be 9223372036854775807,
27506    since some C++ compilers masquerading as C compilers
27507    incorrectly reject 9223372036854775807.  */
27508#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
27509  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
27510		       && LARGE_OFF_T % 2147483647 == 1)
27511		      ? 1 : -1];
27512int
27513main (void)
27514{
27515
27516  ;
27517  return 0;
27518}
27519_ACEOF
27520if ac_fn_c_try_compile "$LINENO"
27521then :
27522  ac_cv_sys_file_offset_bits=no; break
27523fi
27524rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27526/* end confdefs.h.  */
27527#define _FILE_OFFSET_BITS 64
27528#include <sys/types.h>
27529 /* Check that off_t can represent 2**63 - 1 correctly.
27530    We can't simply define LARGE_OFF_T to be 9223372036854775807,
27531    since some C++ compilers masquerading as C compilers
27532    incorrectly reject 9223372036854775807.  */
27533#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
27534  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
27535		       && LARGE_OFF_T % 2147483647 == 1)
27536		      ? 1 : -1];
27537int
27538main (void)
27539{
27540
27541  ;
27542  return 0;
27543}
27544_ACEOF
27545if ac_fn_c_try_compile "$LINENO"
27546then :
27547  ac_cv_sys_file_offset_bits=64; break
27548fi
27549rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27550  ac_cv_sys_file_offset_bits=unknown
27551  break
27552done
27553fi
27554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
27555printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
27556case $ac_cv_sys_file_offset_bits in #(
27557  no | unknown) ;;
27558  *)
27559printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
27560;;
27561esac
27562rm -rf conftest*
27563  if test $ac_cv_sys_file_offset_bits = unknown; then
27564    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
27565printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
27566if test ${ac_cv_sys_large_files+y}
27567then :
27568  printf %s "(cached) " >&6
27569else $as_nop
27570  while :; do
27571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27572/* end confdefs.h.  */
27573#include <sys/types.h>
27574 /* Check that off_t can represent 2**63 - 1 correctly.
27575    We can't simply define LARGE_OFF_T to be 9223372036854775807,
27576    since some C++ compilers masquerading as C compilers
27577    incorrectly reject 9223372036854775807.  */
27578#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
27579  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
27580		       && LARGE_OFF_T % 2147483647 == 1)
27581		      ? 1 : -1];
27582int
27583main (void)
27584{
27585
27586  ;
27587  return 0;
27588}
27589_ACEOF
27590if ac_fn_c_try_compile "$LINENO"
27591then :
27592  ac_cv_sys_large_files=no; break
27593fi
27594rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27596/* end confdefs.h.  */
27597#define _LARGE_FILES 1
27598#include <sys/types.h>
27599 /* Check that off_t can represent 2**63 - 1 correctly.
27600    We can't simply define LARGE_OFF_T to be 9223372036854775807,
27601    since some C++ compilers masquerading as C compilers
27602    incorrectly reject 9223372036854775807.  */
27603#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
27604  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
27605		       && LARGE_OFF_T % 2147483647 == 1)
27606		      ? 1 : -1];
27607int
27608main (void)
27609{
27610
27611  ;
27612  return 0;
27613}
27614_ACEOF
27615if ac_fn_c_try_compile "$LINENO"
27616then :
27617  ac_cv_sys_large_files=1; break
27618fi
27619rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27620  ac_cv_sys_large_files=unknown
27621  break
27622done
27623fi
27624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
27625printf "%s\n" "$ac_cv_sys_large_files" >&6; }
27626case $ac_cv_sys_large_files in #(
27627  no | unknown) ;;
27628  *)
27629printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
27630;;
27631esac
27632rm -rf conftest*
27633  fi
27634fi
27635
27636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
27637printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
27638if test ${ac_cv_sys_largefile_source+y}
27639then :
27640  printf %s "(cached) " >&6
27641else $as_nop
27642  while :; do
27643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27644/* end confdefs.h.  */
27645#include <sys/types.h> /* for off_t */
27646     #include <stdio.h>
27647int
27648main (void)
27649{
27650int (*fp) (FILE *, off_t, int) = fseeko;
27651     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
27652  ;
27653  return 0;
27654}
27655_ACEOF
27656if ac_fn_c_try_link "$LINENO"
27657then :
27658  ac_cv_sys_largefile_source=no; break
27659fi
27660rm -f core conftest.err conftest.$ac_objext conftest.beam \
27661    conftest$ac_exeext conftest.$ac_ext
27662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27663/* end confdefs.h.  */
27664#define _LARGEFILE_SOURCE 1
27665#include <sys/types.h> /* for off_t */
27666     #include <stdio.h>
27667int
27668main (void)
27669{
27670int (*fp) (FILE *, off_t, int) = fseeko;
27671     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
27672  ;
27673  return 0;
27674}
27675_ACEOF
27676if ac_fn_c_try_link "$LINENO"
27677then :
27678  ac_cv_sys_largefile_source=1; break
27679fi
27680rm -f core conftest.err conftest.$ac_objext conftest.beam \
27681    conftest$ac_exeext conftest.$ac_ext
27682  ac_cv_sys_largefile_source=unknown
27683  break
27684done
27685fi
27686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
27687printf "%s\n" "$ac_cv_sys_largefile_source" >&6; }
27688case $ac_cv_sys_largefile_source in #(
27689  no | unknown) ;;
27690  *)
27691printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h
27692;;
27693esac
27694rm -rf conftest*
27695
27696# We used to try defining _XOPEN_SOURCE__=500 too, to work around a bug
27697# in glibc 2.1.3, but that breaks too many other things.
27698# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
27699if test $ac_cv_sys_largefile_source != unknown; then
27700
27701printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
27702
27703fi
27704
27705ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
27706if test "x$ac_cv_func_lseek64" = xyes
27707then :
27708  printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
27709
27710fi
27711ac_fn_c_check_func "$LINENO" "pread64" "ac_cv_func_pread64"
27712if test "x$ac_cv_func_pread64" = xyes
27713then :
27714  printf "%s\n" "#define HAVE_PREAD64 1" >>confdefs.h
27715
27716fi
27717ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
27718if test "x$ac_cv_func_pread" = xyes
27719then :
27720  printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
27721
27722fi
27723
27724
27725# check for various sendfile functions
27726# Check whether --enable-sendfile was given.
27727if test ${enable_sendfile+y}
27728then :
27729  enableval=$enable_sendfile;
27730else $as_nop
27731  enable_sendfile="auto"
27732fi
27733
27734case $enable_sendfile in #(
27735  auto | yes) :
27736    found_sendfile="no" ;; #(
27737  no) :
27738    found_sendfile="disabled" ;; #(
27739  *) :
27740    as_fn_error $? "unknown value specified: --enable-sendfile=$enable_sendfile" "$LINENO" 5
27741 ;;
27742esac
27743if test "x$found_sendfile" = x"no"
27744then :
27745
27746    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux-style sendfile(2)" >&5
27747printf %s "checking for Linux-style sendfile(2)... " >&6; }
27748    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27749/* end confdefs.h.  */
27750
27751#include <sys/sendfile.h>
27752
27753static void empty_func(void)
27754{
27755/* Check for declaration */
27756  (void)sendfile;
27757}
27758/* Declare again to check form match */
27759ssize_t sendfile(int, int, off_t*, size_t);
27760
27761int
27762main (void)
27763{
27764
27765          int fd1=0, fd2=2;
27766          off_t o = 0;
27767          size_t s = 5;
27768          ssize_t r;
27769          r = sendfile (fd1, fd2, &o, s);
27770          if (r)
27771            empty_func();
27772
27773
27774  ;
27775  return 0;
27776}
27777
27778_ACEOF
27779if ac_fn_c_try_link "$LINENO"
27780then :
27781
27782
27783printf "%s\n" "#define HAVE_LINUX_SENDFILE 1" >>confdefs.h
27784
27785        found_sendfile="yes, Linux-style"
27786        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27787printf "%s\n" "yes" >&6; }
27788        ac_fn_c_check_func "$LINENO" "sendfile64" "ac_cv_func_sendfile64"
27789if test "x$ac_cv_func_sendfile64" = xyes
27790then :
27791  printf "%s\n" "#define HAVE_SENDFILE64 1" >>confdefs.h
27792
27793fi
27794
27795
27796else $as_nop
27797  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27798printf "%s\n" "no" >&6; }
27799
27800
27801fi
27802rm -f core conftest.err conftest.$ac_objext conftest.beam \
27803    conftest$ac_exeext conftest.$ac_ext
27804
27805
27806fi
27807if test "x$found_sendfile" = x"no"
27808then :
27809
27810   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD-style sendfile(2)" >&5
27811printf %s "checking for FreeBSD-style sendfile(2)... " >&6; }
27812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27813/* end confdefs.h.  */
27814
27815#include <sys/types.h>
27816#include <sys/socket.h>
27817#include <sys/uio.h>
27818
27819static void empty_func(void)
27820{
27821/* Check for declaration */
27822  (void)sendfile;
27823}
27824/* Declare again to check form match */
27825int sendfile(int, int, off_t, size_t,
27826             struct sf_hdtr*, off_t*, int);
27827
27828int
27829main (void)
27830{
27831
27832         int fd1=0, fd2=1;
27833         off_t o = 0;
27834         size_t s = 5;
27835         off_t r1;
27836         int r2;
27837         r2 = sendfile (fd1, fd2, o, s, (void*)0, &r1, 0);
27838         if (r2)
27839           empty_func();
27840
27841
27842  ;
27843  return 0;
27844}
27845
27846_ACEOF
27847if ac_fn_c_try_link "$LINENO"
27848then :
27849
27850
27851printf "%s\n" "#define HAVE_FREEBSD_SENDFILE 1" >>confdefs.h
27852
27853       found_sendfile="yes, FreeBSD-style"
27854       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27855printf "%s\n" "yes" >&6; }
27856
27857else $as_nop
27858  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27859printf "%s\n" "no" >&6; }
27860
27861
27862fi
27863rm -f core conftest.err conftest.$ac_objext conftest.beam \
27864    conftest$ac_exeext conftest.$ac_ext
27865
27866
27867fi
27868if test "x$found_sendfile" = x"no"
27869then :
27870
27871   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Darwin-style sendfile(2)" >&5
27872printf %s "checking for Darwin-style sendfile(2)... " >&6; }
27873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27874/* end confdefs.h.  */
27875
27876#include <sys/types.h>
27877#include <sys/socket.h>
27878#include <sys/uio.h>
27879
27880static void empty_func(void)
27881{
27882/* Check for declaration */
27883  (void)sendfile;
27884}
27885/* Declare again to check form match */
27886int sendfile(int, int, off_t, off_t*,
27887             struct sf_hdtr *, int);
27888
27889int
27890main (void)
27891{
27892
27893         int fd=0, s=1;
27894         off_t o = 0;
27895         off_t l = 5;
27896         int r;
27897         r = sendfile (fd, s, o, &l, (void*)0, 0);
27898         if (r)
27899           empty_func();
27900
27901
27902  ;
27903  return 0;
27904}
27905
27906_ACEOF
27907if ac_fn_c_try_link "$LINENO"
27908then :
27909
27910
27911printf "%s\n" "#define HAVE_DARWIN_SENDFILE 1" >>confdefs.h
27912
27913       found_sendfile="yes, Darwin-style"
27914       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27915printf "%s\n" "yes" >&6; }
27916
27917else $as_nop
27918  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27919printf "%s\n" "no" >&6; }
27920
27921
27922fi
27923rm -f core conftest.err conftest.$ac_objext conftest.beam \
27924    conftest$ac_exeext conftest.$ac_ext
27925
27926
27927fi
27928
27929if test "x$found_sendfile" = x"no"
27930then :
27931
27932   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Solaris-style sendfile(3)" >&5
27933printf %s "checking for Solaris-style sendfile(3)... " >&6; }
27934   SAVE_LIBS="$LIBS"
27935   LIBS="$LIBS -lsendfile"
27936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27937/* end confdefs.h.  */
27938
27939#include <sys/types.h>
27940#include <sys/socket.h>
27941#include <sys/sendfile.h>
27942
27943static void empty_func(void)
27944{
27945/* Check for declaration */
27946  (void)sendfile;
27947}
27948/* Declare again to check form match */
27949ssize_t sendfile(int out_fd, int in_fd,
27950                 off_t *off, size_t len);
27951
27952int
27953main (void)
27954{
27955
27956         int fd1=0, fd2=1;
27957         off_t o = 0;
27958         size_t l = 5;
27959         ssize_t r;
27960         r = sendfile (fd1, fd2, &o, l);
27961         if (r)
27962           empty_func();
27963
27964
27965  ;
27966  return 0;
27967}
27968
27969_ACEOF
27970if ac_fn_c_try_link "$LINENO"
27971then :
27972
27973
27974printf "%s\n" "#define HAVE_SOLARIS_SENDFILE 1" >>confdefs.h
27975
27976       found_sendfile="yes, Solaris-style"
27977       MHD_LIBDEPS="-lsendfile $MHD_LIBDEPS"
27978       MHD_LIBDEPS_PKGCFG="-lsendfile $MHD_LIBDEPS_PKGCFG"
27979       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27980printf "%s\n" "yes" >&6; }
27981       ac_fn_c_check_func "$LINENO" "sendfile64" "ac_cv_func_sendfile64"
27982if test "x$ac_cv_func_sendfile64" = xyes
27983then :
27984  printf "%s\n" "#define HAVE_SENDFILE64 1" >>confdefs.h
27985
27986fi
27987
27988
27989else $as_nop
27990  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27991printf "%s\n" "no" >&6; }
27992
27993
27994fi
27995rm -f core conftest.err conftest.$ac_objext conftest.beam \
27996    conftest$ac_exeext conftest.$ac_ext
27997   LIBS="$SAVE_LIBS"
27998
27999
28000fi
28001if test "x$found_sendfile" = "xno" && test "x$enable_sendfile" = "xyes"
28002then :
28003  as_fn_error $? "sendfile() usage was requested by configure parameter, but no usable sendfile() function is detected" "$LINENO" 5
28004
28005fi
28006
28007# optional: have error messages ?
28008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to generate error messages" >&5
28009printf %s "checking whether to generate error messages... " >&6; }
28010# Check whether --enable-messages was given.
28011if test ${enable_messages+y}
28012then :
28013  enableval=$enable_messages; enable_messages=${enableval}
28014else $as_nop
28015  enable_messages=yes
28016fi
28017
28018if test "x$enable_messages" = "xyes"
28019then :
28020
28021printf "%s\n" "#define HAVE_MESSAGES 1" >>confdefs.h
28022
28023else $as_nop
28024   enable_messages=no
28025fi
28026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_messages" >&5
28027printf "%s\n" "$enable_messages" >&6; }
28028
28029
28030# optional: have postprocessor?
28031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable postprocessor" >&5
28032printf %s "checking whether to enable postprocessor... " >&6; }
28033# Check whether --enable-postprocessor was given.
28034if test ${enable_postprocessor+y}
28035then :
28036  enableval=$enable_postprocessor; enable_postprocessor=${enableval}
28037else $as_nop
28038  enable_postprocessor=yes
28039fi
28040
28041if test "x$enable_postprocessor" != "xno"
28042then :
28043   enable_postprocessor=yes
28044
28045printf "%s\n" "#define HAVE_POSTPROCESSOR 1" >>confdefs.h
28046
28047fi
28048 if test "x$enable_postprocessor" != "xno"; then
28049  HAVE_POSTPROCESSOR_TRUE=
28050  HAVE_POSTPROCESSOR_FALSE='#'
28051else
28052  HAVE_POSTPROCESSOR_TRUE='#'
28053  HAVE_POSTPROCESSOR_FALSE=
28054fi
28055
28056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_postprocessor" >&5
28057printf "%s\n" "$enable_postprocessor" >&6; }
28058
28059
28060# optional: have zzuf, socat?
28061# Extract the first word of "zzuf", so it can be a program name with args.
28062set dummy zzuf; ac_word=$2
28063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28064printf %s "checking for $ac_word... " >&6; }
28065if test ${ac_cv_prog_have_zzuf+y}
28066then :
28067  printf %s "(cached) " >&6
28068else $as_nop
28069  if test -n "$have_zzuf"; then
28070  ac_cv_prog_have_zzuf="$have_zzuf" # Let the user override the test.
28071else
28072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28073for as_dir in $PATH
28074do
28075  IFS=$as_save_IFS
28076  case $as_dir in #(((
28077    '') as_dir=./ ;;
28078    */) ;;
28079    *) as_dir=$as_dir/ ;;
28080  esac
28081    for ac_exec_ext in '' $ac_executable_extensions; do
28082  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28083    ac_cv_prog_have_zzuf="yes"
28084    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28085    break 2
28086  fi
28087done
28088  done
28089IFS=$as_save_IFS
28090
28091  test -z "$ac_cv_prog_have_zzuf" && ac_cv_prog_have_zzuf="no"
28092fi
28093fi
28094have_zzuf=$ac_cv_prog_have_zzuf
28095if test -n "$have_zzuf"; then
28096  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_zzuf" >&5
28097printf "%s\n" "$have_zzuf" >&6; }
28098else
28099  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28100printf "%s\n" "no" >&6; }
28101fi
28102
28103
28104# Extract the first word of "socat", so it can be a program name with args.
28105set dummy socat; ac_word=$2
28106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28107printf %s "checking for $ac_word... " >&6; }
28108if test ${ac_cv_prog_have_socat+y}
28109then :
28110  printf %s "(cached) " >&6
28111else $as_nop
28112  if test -n "$have_socat"; then
28113  ac_cv_prog_have_socat="$have_socat" # Let the user override the test.
28114else
28115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28116for as_dir in $PATH
28117do
28118  IFS=$as_save_IFS
28119  case $as_dir in #(((
28120    '') as_dir=./ ;;
28121    */) ;;
28122    *) as_dir=$as_dir/ ;;
28123  esac
28124    for ac_exec_ext in '' $ac_executable_extensions; do
28125  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28126    ac_cv_prog_have_socat="yes"
28127    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28128    break 2
28129  fi
28130done
28131  done
28132IFS=$as_save_IFS
28133
28134  test -z "$ac_cv_prog_have_socat" && ac_cv_prog_have_socat="no"
28135fi
28136fi
28137have_socat=$ac_cv_prog_have_socat
28138if test -n "$have_socat"; then
28139  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_socat" >&5
28140printf "%s\n" "$have_socat" >&6; }
28141else
28142  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28143printf "%s\n" "no" >&6; }
28144fi
28145
28146
28147 if test "x$have_zzuf" = "xyes"; then
28148  HAVE_ZZUF_TRUE=
28149  HAVE_ZZUF_FALSE='#'
28150else
28151  HAVE_ZZUF_TRUE='#'
28152  HAVE_ZZUF_FALSE=
28153fi
28154
28155 if test "x$have_socat" = "xyes"; then
28156  HAVE_SOCAT_TRUE=
28157  HAVE_SOCAT_FALSE='#'
28158else
28159  HAVE_SOCAT_TRUE='#'
28160  HAVE_SOCAT_FALSE=
28161fi
28162
28163
28164have_gnutls=no
28165have_gnutls_sni=no
28166have_gcrypt=no
28167{ GNUTLS_CPPFLAGS=; unset GNUTLS_CPPFLAGS;}
28168{ GNUTLS_LDFLAGS=; unset GNUTLS_LDFLAGS;}
28169
28170# optional: HTTPS support.  Enabled by default
28171# Check whether --enable-https was given.
28172if test ${enable_https+y}
28173then :
28174  enableval=$enable_https; enable_https=${enableval}
28175fi
28176
28177
28178
28179
28180
28181
28182
28183
28184if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
28185	if test -n "$ac_tool_prefix"; then
28186  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28187set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28189printf %s "checking for $ac_word... " >&6; }
28190if test ${ac_cv_path_PKG_CONFIG+y}
28191then :
28192  printf %s "(cached) " >&6
28193else $as_nop
28194  case $PKG_CONFIG in
28195  [\\/]* | ?:[\\/]*)
28196  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28197  ;;
28198  *)
28199  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28200for as_dir in $PATH
28201do
28202  IFS=$as_save_IFS
28203  case $as_dir in #(((
28204    '') as_dir=./ ;;
28205    */) ;;
28206    *) as_dir=$as_dir/ ;;
28207  esac
28208    for ac_exec_ext in '' $ac_executable_extensions; do
28209  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28210    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
28211    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28212    break 2
28213  fi
28214done
28215  done
28216IFS=$as_save_IFS
28217
28218  ;;
28219esac
28220fi
28221PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28222if test -n "$PKG_CONFIG"; then
28223  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
28224printf "%s\n" "$PKG_CONFIG" >&6; }
28225else
28226  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28227printf "%s\n" "no" >&6; }
28228fi
28229
28230
28231fi
28232if test -z "$ac_cv_path_PKG_CONFIG"; then
28233  ac_pt_PKG_CONFIG=$PKG_CONFIG
28234  # Extract the first word of "pkg-config", so it can be a program name with args.
28235set dummy pkg-config; ac_word=$2
28236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28237printf %s "checking for $ac_word... " >&6; }
28238if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
28239then :
28240  printf %s "(cached) " >&6
28241else $as_nop
28242  case $ac_pt_PKG_CONFIG in
28243  [\\/]* | ?:[\\/]*)
28244  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
28245  ;;
28246  *)
28247  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28248for as_dir in $PATH
28249do
28250  IFS=$as_save_IFS
28251  case $as_dir in #(((
28252    '') as_dir=./ ;;
28253    */) ;;
28254    *) as_dir=$as_dir/ ;;
28255  esac
28256    for ac_exec_ext in '' $ac_executable_extensions; do
28257  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28258    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
28259    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28260    break 2
28261  fi
28262done
28263  done
28264IFS=$as_save_IFS
28265
28266  ;;
28267esac
28268fi
28269ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
28270if test -n "$ac_pt_PKG_CONFIG"; then
28271  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
28272printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
28273else
28274  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28275printf "%s\n" "no" >&6; }
28276fi
28277
28278  if test "x$ac_pt_PKG_CONFIG" = x; then
28279    PKG_CONFIG=""
28280  else
28281    case $cross_compiling:$ac_tool_warned in
28282yes:)
28283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28284printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28285ac_tool_warned=yes ;;
28286esac
28287    PKG_CONFIG=$ac_pt_PKG_CONFIG
28288  fi
28289else
28290  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
28291fi
28292
28293fi
28294if test -n "$PKG_CONFIG"; then
28295	_pkg_min_version=0.9.0
28296	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
28297printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
28298	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
28299		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28300printf "%s\n" "yes" >&6; }
28301	else
28302		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28303printf "%s\n" "no" >&6; }
28304		PKG_CONFIG=""
28305	fi
28306fi
28307if test "x$enable_https" != "xno"
28308then :
28309
28310#
28311# Next block is large unindented block
28312#
28313
28314# gnutls
28315have_gnutls_pkgcfg=no
28316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to find GnuTLS library" >&5
28317printf %s "checking how to find GnuTLS library... " >&6; }
28318
28319# Check whether --with-gnutls was given.
28320if test ${with_gnutls+y}
28321then :
28322  withval=$with_gnutls;
28323    case $with_gnutls in #(
28324  no) :
28325
28326        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: GnuTLS disabled" >&5
28327printf "%s\n" "GnuTLS disabled" >&6; }
28328        { GNUTLS_CPPFLAGS=; unset GNUTLS_CPPFLAGS;}
28329        { GNUTLS_CFLAGS=; unset GNUTLS_CFLAGS;}
28330        { GNUTLS_LDFLAGS=; unset GNUTLS_LDFLAGS;}
28331        { GNUTLS_LIBS=; unset GNUTLS_LIBS;}
28332       ;; #(
28333  yes) :
28334
28335        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: automatically, forced" >&5
28336printf "%s\n" "automatically, forced" >&6; }
28337       ;; #(
28338  *) :
28339
28340        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -I$with_gnutls/include -L$with_gnutls/lib -lgnutls" >&5
28341printf "%s\n" "-I$with_gnutls/include -L$with_gnutls/lib -lgnutls" >&6; }
28342        SAVE_LDFLAGS="$LDFLAGS"
28343        SAVE_CPPFLAGS="$CPPFLAGS"
28344        SAVE_CFLAGS="$CFLAGS"
28345        SAVE_LIBS="$LIBS"
28346        LDFLAGS="-L$with_gnutls/lib $LDFLAGS"
28347        CPPFLAGS="-I$with_gnutls/include $CPPFLAGS"
28348        have_gnutls_pkgcfg=no
28349                 for ac_header in gnutls/gnutls.h
28350do :
28351  ac_fn_c_check_header_compile "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default
28352"
28353if test "x$ac_cv_header_gnutls_gnutls_h" = xyes
28354then :
28355  printf "%s\n" "#define HAVE_GNUTLS_GNUTLS_H 1" >>confdefs.h
28356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_priority_set in -lgnutls" >&5
28357printf %s "checking for gnutls_priority_set in -lgnutls... " >&6; }
28358if test ${ac_cv_lib_gnutls_gnutls_priority_set+y}
28359then :
28360  printf %s "(cached) " >&6
28361else $as_nop
28362  ac_check_lib_save_LIBS=$LIBS
28363LIBS="-lgnutls  $LIBS"
28364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28365/* end confdefs.h.  */
28366
28367/* Override any GCC internal prototype to avoid an error.
28368   Use char because int might match the return type of a GCC
28369   builtin and then its argument prototype would still apply.  */
28370char gnutls_priority_set ();
28371int
28372main (void)
28373{
28374return gnutls_priority_set ();
28375  ;
28376  return 0;
28377}
28378_ACEOF
28379if ac_fn_c_try_link "$LINENO"
28380then :
28381  ac_cv_lib_gnutls_gnutls_priority_set=yes
28382else $as_nop
28383  ac_cv_lib_gnutls_gnutls_priority_set=no
28384fi
28385rm -f core conftest.err conftest.$ac_objext conftest.beam \
28386    conftest$ac_exeext conftest.$ac_ext
28387LIBS=$ac_check_lib_save_LIBS
28388fi
28389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_priority_set" >&5
28390printf "%s\n" "$ac_cv_lib_gnutls_gnutls_priority_set" >&6; }
28391if test "x$ac_cv_lib_gnutls_gnutls_priority_set" = xyes
28392then :
28393
28394                GNUTLS_CPPFLAGS="-I$with_gnutls/include"
28395                GNUTLS_LDFLAGS="-L$with_gnutls/lib"
28396                GNUTLS_LIBS="-lgnutls"
28397                have_gnutls=yes
28398
28399fi
28400
28401fi
28402
28403done
28404        if test "x$have_gnutls" != "xyes"
28405then :
28406  as_fn_error $? "can't find usable libgnutls at specified prefix $with_gnutls" "$LINENO" 5
28407fi
28408        CPPFLAGS="$SAVE_CPPFLAGS"
28409        CFLAGS="$SAVE_CFLAGS"
28410        LDFLAGS="$SAVE_LDFLAGS"
28411        LIBS="$SAVE_LIBS"
28412       ;;
28413esac
28414
28415else $as_nop
28416  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: automatically" >&5
28417printf "%s\n" "automatically" >&6; }
28418
28419fi
28420
28421
28422if test "x$with_gnutls" != "xno" && test "x$have_gnutls" != "xyes"
28423then :
28424
28425    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to add pkg-config special search directories" >&5
28426printf %s "checking whether to add pkg-config special search directories... " >&6; }
28427if test ${mhd_cv_pkgconf_add_dirs+y}
28428then :
28429  printf %s "(cached) " >&6
28430else $as_nop
28431
28432      if test "x$host_os" = "xsolaris2.11" && test "x$cross_compiling" = "xno"
28433then :
28434
28435        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28436/* end confdefs.h.  */
28437
28438char size_chk[7-sizeof(char*)];
28439#if defined(_LP64) || defined(__LP64__) || defined(__x86_64) || defined(__x86_64__)
28440#error This is 64-bit target.
28441choke me now
28442#endif
28443#if defined(__amd64) || defined(__amd64__) || defined(__sparcv9) || defined(__sparc_v9__)
28444#error This is 64-bit target.
28445choke me now
28446#endif
28447
28448int
28449main (void)
28450{
28451
28452
28453  ;
28454  return 0;
28455}
28456
28457_ACEOF
28458if ac_fn_c_try_compile "$LINENO"
28459then :
28460
28461          mhd_cv_pkgconf_add_dirs='/usr/lib/pkgconfig/gnutls-3'
28462
28463else $as_nop
28464
28465          if test "x$host_cpu" = "xx86_64" || test "x$host_cpu" = "xi386"
28466then :
28467  mhd_cv_pkgconf_add_dirs='/usr/lib/amd64/pkgconfig/gnutls-3:/usr/lib/amd64/pkgconfig'
28468elif test "x$host_cpu" = "xsparc"
28469then :
28470  mhd_cv_pkgconf_add_dirs='/usr/lib/sparkv9/pkgconfig/gnutls-3:/usr/lib/sparkv9/pkgconfig'
28471else $as_nop
28472  mhd_cv_pkgconf_add_dirs='/usr/lib/64/pkgconfig/gnutls-3:/usr/lib/64/pkgconfig'
28473
28474fi
28475
28476
28477fi
28478rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28479
28480else $as_nop
28481   mhd_cv_pkgconf_add_dirs='no'
28482
28483fi
28484
28485
28486fi
28487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_pkgconf_add_dirs" >&5
28488printf "%s\n" "$mhd_cv_pkgconf_add_dirs" >&6; }
28489    if test "x$mhd_cv_pkgconf_add_dirs" != "xno"
28490then :
28491
28492      test "x$PKG_CONFIG_PATH" = "x" || PKG_CONFIG_PATH="${PKG_CONFIG_PATH}${PATH_SEPARATOR}"
28493      PKG_CONFIG_PATH="${PKG_CONFIG_PATH}${mhd_cv_pkgconf_add_dirs}"
28494      export PKG_CONFIG_PATH
28495
28496
28497fi
28498
28499pkg_failed=no
28500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls" >&5
28501printf %s "checking for gnutls... " >&6; }
28502
28503if test -n "$GNUTLS_CFLAGS"; then
28504    pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
28505 elif test -n "$PKG_CONFIG"; then
28506    if test -n "$PKG_CONFIG" && \
28507    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
28508  ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
28509  ac_status=$?
28510  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28511  test $ac_status = 0; }; then
28512  pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null`
28513		      test "x$?" != "x0" && pkg_failed=yes
28514else
28515  pkg_failed=yes
28516fi
28517 else
28518    pkg_failed=untried
28519fi
28520if test -n "$GNUTLS_LIBS"; then
28521    pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
28522 elif test -n "$PKG_CONFIG"; then
28523    if test -n "$PKG_CONFIG" && \
28524    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
28525  ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
28526  ac_status=$?
28527  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28528  test $ac_status = 0; }; then
28529  pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null`
28530		      test "x$?" != "x0" && pkg_failed=yes
28531else
28532  pkg_failed=yes
28533fi
28534 else
28535    pkg_failed=untried
28536fi
28537
28538
28539
28540if test $pkg_failed = yes; then
28541        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28542printf "%s\n" "no" >&6; }
28543
28544if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28545        _pkg_short_errors_supported=yes
28546else
28547        _pkg_short_errors_supported=no
28548fi
28549        if test $_pkg_short_errors_supported = yes; then
28550	        GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls" 2>&1`
28551        else
28552	        GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls" 2>&1`
28553        fi
28554	# Put the nasty error message in config.log where it belongs
28555	echo "$GNUTLS_PKG_ERRORS" >&5
28556
28557
28558       # check for GnuTLS at default paths
28559       have_gnutls_pkgcfg='no'
28560              for ac_header in gnutls/gnutls.h
28561do :
28562  ac_fn_c_check_header_compile "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default
28563"
28564if test "x$ac_cv_header_gnutls_gnutls_h" = xyes
28565then :
28566  printf "%s\n" "#define HAVE_GNUTLS_GNUTLS_H 1" >>confdefs.h
28567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_priority_set in -lgnutls" >&5
28568printf %s "checking for gnutls_priority_set in -lgnutls... " >&6; }
28569if test ${ac_cv_lib_gnutls_gnutls_priority_set+y}
28570then :
28571  printf %s "(cached) " >&6
28572else $as_nop
28573  ac_check_lib_save_LIBS=$LIBS
28574LIBS="-lgnutls  $LIBS"
28575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28576/* end confdefs.h.  */
28577
28578/* Override any GCC internal prototype to avoid an error.
28579   Use char because int might match the return type of a GCC
28580   builtin and then its argument prototype would still apply.  */
28581char gnutls_priority_set ();
28582int
28583main (void)
28584{
28585return gnutls_priority_set ();
28586  ;
28587  return 0;
28588}
28589_ACEOF
28590if ac_fn_c_try_link "$LINENO"
28591then :
28592  ac_cv_lib_gnutls_gnutls_priority_set=yes
28593else $as_nop
28594  ac_cv_lib_gnutls_gnutls_priority_set=no
28595fi
28596rm -f core conftest.err conftest.$ac_objext conftest.beam \
28597    conftest$ac_exeext conftest.$ac_ext
28598LIBS=$ac_check_lib_save_LIBS
28599fi
28600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_priority_set" >&5
28601printf "%s\n" "$ac_cv_lib_gnutls_gnutls_priority_set" >&6; }
28602if test "x$ac_cv_lib_gnutls_gnutls_priority_set" = xyes
28603then :
28604
28605            GNUTLS_LIBS="-lgnutls"
28606            have_gnutls=yes
28607
28608fi
28609
28610fi
28611
28612done
28613
28614elif test $pkg_failed = untried; then
28615        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28616printf "%s\n" "no" >&6; }
28617
28618       # check for GnuTLS at default paths
28619       have_gnutls_pkgcfg='no'
28620              for ac_header in gnutls/gnutls.h
28621do :
28622  ac_fn_c_check_header_compile "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default
28623"
28624if test "x$ac_cv_header_gnutls_gnutls_h" = xyes
28625then :
28626  printf "%s\n" "#define HAVE_GNUTLS_GNUTLS_H 1" >>confdefs.h
28627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_priority_set in -lgnutls" >&5
28628printf %s "checking for gnutls_priority_set in -lgnutls... " >&6; }
28629if test ${ac_cv_lib_gnutls_gnutls_priority_set+y}
28630then :
28631  printf %s "(cached) " >&6
28632else $as_nop
28633  ac_check_lib_save_LIBS=$LIBS
28634LIBS="-lgnutls  $LIBS"
28635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28636/* end confdefs.h.  */
28637
28638/* Override any GCC internal prototype to avoid an error.
28639   Use char because int might match the return type of a GCC
28640   builtin and then its argument prototype would still apply.  */
28641char gnutls_priority_set ();
28642int
28643main (void)
28644{
28645return gnutls_priority_set ();
28646  ;
28647  return 0;
28648}
28649_ACEOF
28650if ac_fn_c_try_link "$LINENO"
28651then :
28652  ac_cv_lib_gnutls_gnutls_priority_set=yes
28653else $as_nop
28654  ac_cv_lib_gnutls_gnutls_priority_set=no
28655fi
28656rm -f core conftest.err conftest.$ac_objext conftest.beam \
28657    conftest$ac_exeext conftest.$ac_ext
28658LIBS=$ac_check_lib_save_LIBS
28659fi
28660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_priority_set" >&5
28661printf "%s\n" "$ac_cv_lib_gnutls_gnutls_priority_set" >&6; }
28662if test "x$ac_cv_lib_gnutls_gnutls_priority_set" = xyes
28663then :
28664
28665            GNUTLS_LIBS="-lgnutls"
28666            have_gnutls=yes
28667
28668fi
28669
28670fi
28671
28672done
28673
28674else
28675	GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
28676	GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
28677        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28678printf "%s\n" "yes" >&6; }
28679
28680       have_gnutls_pkgcfg='yes'
28681       SAVE_CPPFLAGS="$CPPFLAGS"
28682       SAVE_CFLAGS="$CFLAGS"
28683       SAVE_LDFLAGS="$LDFLAGS"
28684       SAVE_LIBS="$LIBS"
28685       CFLAGS="$GNUTLS_CFLAGS $CFLAGS"
28686       LIBS="$LIBS $GNUTLS_LIBS"
28687       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GnuTLS is usable" >&5
28688printf %s "checking whether GnuTLS is usable... " >&6; }
28689       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28690/* end confdefs.h.  */
28691
28692
28693#include <gnutls/gnutls.h>
28694
28695int
28696main (void)
28697{
28698
28699                gnutls_session_t session;
28700                gnutls_priority_t priorities;
28701                gnutls_global_init();
28702                gnutls_priority_init(&priorities, "NORMAL", NULL);
28703                gnutls_init(&session, GNUTLS_SERVER);
28704                gnutls_priority_set(session, priorities);
28705
28706  ;
28707  return 0;
28708}
28709_ACEOF
28710if ac_fn_c_try_link "$LINENO"
28711then :
28712
28713           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28714printf "%s\n" "yes" >&6; }
28715           have_gnutls=yes
28716           # GNUTLS_CFLAGS is actually CPPFLAGS
28717           GNUTLS_CPPFLAGS="$GNUTLS_CFLAGS"
28718           # GNUTLS_CFLAGS is combination of LDFLAGS and LIBS
28719           GNUTLS_LDFLAGS="$GNUTLS_LIBS"
28720
28721else $as_nop
28722
28723           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28724printf "%s\n" "no" >&6; }
28725           have_gnutls=no
28726
28727fi
28728rm -f core conftest.err conftest.$ac_objext conftest.beam \
28729    conftest$ac_exeext conftest.$ac_ext
28730
28731       if test "x$have_gnutls" != "xyes"
28732then :
28733
28734          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config reports that GnuTLS is present, but GnuTLS can't be used" >&5
28735printf "%s\n" "$as_me: WARNING: pkg-config reports that GnuTLS is present, but GnuTLS can't be used" >&2;}
28736          { GNUTLS_CPPFLAGS=; unset GNUTLS_CPPFLAGS;}
28737          { GNUTLS_CFLAGS=; unset GNUTLS_CFLAGS;}
28738          { GNUTLS_LDFLAGS=; unset GNUTLS_LDFLAGS;}
28739          { GNUTLS_LIBS=; unset GNUTLS_LIBS;}
28740
28741
28742fi
28743       CPPFLAGS="$SAVE_CPPFLAGS"
28744       CFLAGS="$SAVE_CFLAGS"
28745       LDFLAGS="$SAVE_LDFLAGS"
28746       LIBS="$SAVE_LIBS"
28747
28748fi
28749
28750fi
28751
28752have_gcrypt='unknown'
28753if test "x$with_gnutls" != "xno" && test "x$have_gnutls" != "xyes"
28754then :
28755
28756
28757
28758# Check whether --with-libgcrypt-prefix was given.
28759if test ${with_libgcrypt_prefix+y}
28760then :
28761  withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
28762else $as_nop
28763  libgcrypt_config_prefix=""
28764fi
28765
28766  if test x"${LIBGCRYPT_CONFIG}" = x ; then
28767     if test x"${libgcrypt_config_prefix}" != x ; then
28768        LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config"
28769     fi
28770  fi
28771
28772  use_gpgrt_config=""
28773  if test x"${LIBGCRYPT_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
28774    if $GPGRT_CONFIG libgcrypt --exists; then
28775      LIBGCRYPT_CONFIG="$GPGRT_CONFIG libgcrypt"
28776      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libgcrypt-config" >&5
28777printf "%s\n" "$as_me: Use gpgrt-config as libgcrypt-config" >&6;}
28778      use_gpgrt_config=yes
28779    fi
28780  fi
28781  if test -z "$use_gpgrt_config"; then
28782    if test x"${LIBGCRYPT_CONFIG}" = x ; then
28783      case "${SYSROOT}" in
28784         /*)
28785           if test -x "${SYSROOT}/bin/libgcrypt-config" ; then
28786             LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config"
28787           fi
28788           ;;
28789         '')
28790           ;;
28791          *)
28792           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
28793printf "%s\n" "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
28794           ;;
28795      esac
28796    fi
28797    # Extract the first word of "libgcrypt-config", so it can be a program name with args.
28798set dummy libgcrypt-config; ac_word=$2
28799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28800printf %s "checking for $ac_word... " >&6; }
28801if test ${ac_cv_path_LIBGCRYPT_CONFIG+y}
28802then :
28803  printf %s "(cached) " >&6
28804else $as_nop
28805  case $LIBGCRYPT_CONFIG in
28806  [\\/]* | ?:[\\/]*)
28807  ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
28808  ;;
28809  *)
28810  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28811for as_dir in $PATH
28812do
28813  IFS=$as_save_IFS
28814  case $as_dir in #(((
28815    '') as_dir=./ ;;
28816    */) ;;
28817    *) as_dir=$as_dir/ ;;
28818  esac
28819    for ac_exec_ext in '' $ac_executable_extensions; do
28820  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28821    ac_cv_path_LIBGCRYPT_CONFIG="$as_dir$ac_word$ac_exec_ext"
28822    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28823    break 2
28824  fi
28825done
28826  done
28827IFS=$as_save_IFS
28828
28829  test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
28830  ;;
28831esac
28832fi
28833LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
28834if test -n "$LIBGCRYPT_CONFIG"; then
28835  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
28836printf "%s\n" "$LIBGCRYPT_CONFIG" >&6; }
28837else
28838  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28839printf "%s\n" "no" >&6; }
28840fi
28841
28842
28843  fi
28844
28845  tmp=1.2.2
28846  if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
28847     req_libgcrypt_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
28848     min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
28849  else
28850     req_libgcrypt_api=0
28851     min_libgcrypt_version="$tmp"
28852  fi
28853
28854  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
28855printf %s "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
28856  ok=no
28857  if test "$LIBGCRYPT_CONFIG" != "no" ; then
28858    req_major=`echo $min_libgcrypt_version | \
28859               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
28860    req_minor=`echo $min_libgcrypt_version | \
28861               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
28862    req_micro=`echo $min_libgcrypt_version | \
28863               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
28864    if test -z "$use_gpgrt_config"; then
28865      libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
28866    else
28867      libgcrypt_config_version=`$LIBGCRYPT_CONFIG --modversion`
28868    fi
28869    major=`echo $libgcrypt_config_version | \
28870               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
28871    minor=`echo $libgcrypt_config_version | \
28872               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
28873    micro=`echo $libgcrypt_config_version | \
28874               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
28875    if test "$major" -gt "$req_major"; then
28876        ok=yes
28877    else
28878        if test "$major" -eq "$req_major"; then
28879            if test "$minor" -gt "$req_minor"; then
28880               ok=yes
28881            else
28882               if test "$minor" -eq "$req_minor"; then
28883                   if test "$micro" -ge "$req_micro"; then
28884                     ok=yes
28885                   fi
28886               fi
28887            fi
28888        fi
28889    fi
28890  fi
28891  if test $ok = yes; then
28892    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
28893printf "%s\n" "yes ($libgcrypt_config_version)" >&6; }
28894  else
28895    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28896printf "%s\n" "no" >&6; }
28897  fi
28898  if test $ok = yes; then
28899     # If we have a recent libgcrypt, we should also check that the
28900     # API is compatible
28901     if test "$req_libgcrypt_api" -gt 0 ; then
28902        if test -z "$use_gpgrt_config"; then
28903           tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
28904	else
28905           tmp=`$LIBGCRYPT_CONFIG --variable=api_version 2>/dev/null || echo 0`
28906	fi
28907        if test "$tmp" -gt 0 ; then
28908           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
28909printf %s "checking LIBGCRYPT API version... " >&6; }
28910           if test "$req_libgcrypt_api" -eq "$tmp" ; then
28911             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: okay" >&5
28912printf "%s\n" "okay" >&6; }
28913           else
28914             ok=no
28915             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
28916printf "%s\n" "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
28917           fi
28918        fi
28919     fi
28920  fi
28921  if test $ok = yes; then
28922    LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
28923    LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
28924    have_gcrypt=yes
28925    if test -z "$use_gpgrt_config"; then
28926      libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
28927    else
28928      libgcrypt_config_host=`$LIBGCRYPT_CONFIG --variable=host 2>/dev/null || echo none`
28929    fi
28930    if test x"$libgcrypt_config_host" != xnone ; then
28931      if test x"$libgcrypt_config_host" != x"$host" ; then
28932  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
28933***
28934*** The config script \"$LIBGCRYPT_CONFIG\" was
28935*** built for $libgcrypt_config_host and thus may not match the
28936*** used host $host.
28937*** You may want to use the configure option --with-libgcrypt-prefix
28938*** to specify a matching config script or use \$SYSROOT.
28939***" >&5
28940printf "%s\n" "$as_me: WARNING:
28941***
28942*** The config script \"$LIBGCRYPT_CONFIG\" was
28943*** built for $libgcrypt_config_host and thus may not match the
28944*** used host $host.
28945*** You may want to use the configure option --with-libgcrypt-prefix
28946*** to specify a matching config script or use \$SYSROOT.
28947***" >&2;}
28948        gpg_config_script_warn="$gpg_config_script_warn libgcrypt"
28949      fi
28950    fi
28951  else
28952    LIBGCRYPT_CFLAGS=""
28953    LIBGCRYPT_LIBS=""
28954    have_gcrypt=no
28955  fi
28956
28957
28958
28959   if test "x$have_gcrypt" = "xyes"
28960then :
28961
28962       SAVE_CPPFLAGS="$CPPFLAGS"
28963       SAVE_CFLAGS="$CFLAGS"
28964       SAVE_LIBS="$LIBS"
28965       SAVE_LDFLAGS="$LDFLAGS"
28966       CFLAGS="$CFLAGS $LIBGCRYPT_CFLAGS"
28967       # LIBGCRYPT_CFLAGS can be actually a CPPFLAGS, so check them both
28968       CPPFLAGS="$CPPFLAGS $LIBGCRYPT_CFLAGS"
28969              for ac_header in gcrypt.h
28970do :
28971  ac_fn_c_check_header_compile "$LINENO" "gcrypt.h" "ac_cv_header_gcrypt_h" "$ac_includes_default
28972"
28973if test "x$ac_cv_header_gcrypt_h" = xyes
28974then :
28975  printf "%s\n" "#define HAVE_GCRYPT_H 1" >>confdefs.h
28976
28977else $as_nop
28978  have_gcrypt=no
28979fi
28980
28981done
28982       # Check for GnuTLS with gcrypt flags
28983       LDFLAGS="$LDFLAGS $LIBGCRYPT_LIBS"
28984       # A bit of hack: unset cache variable to force recheck
28985       { ac_cv_header_gnutls_gnutls_h=; unset ac_cv_header_gnutls_gnutls_h;}
28986              for ac_header in gnutls/gnutls.h
28987do :
28988  ac_fn_c_check_header_compile "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default
28989"
28990if test "x$ac_cv_header_gnutls_gnutls_h" = xyes
28991then :
28992  printf "%s\n" "#define HAVE_GNUTLS_GNUTLS_H 1" >>confdefs.h
28993 { ac_cv_lib_gnutls_gnutls_priority_set=; unset ac_cv_lib_gnutls_gnutls_priority_set;} # A bit of hack: unset cache variable to force recheck
28994         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_priority_set in -lgnutls" >&5
28995printf %s "checking for gnutls_priority_set in -lgnutls... " >&6; }
28996if test ${ac_cv_lib_gnutls_gnutls_priority_set+y}
28997then :
28998  printf %s "(cached) " >&6
28999else $as_nop
29000  ac_check_lib_save_LIBS=$LIBS
29001LIBS="-lgnutls  $LIBS"
29002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29003/* end confdefs.h.  */
29004
29005/* Override any GCC internal prototype to avoid an error.
29006   Use char because int might match the return type of a GCC
29007   builtin and then its argument prototype would still apply.  */
29008char gnutls_priority_set ();
29009int
29010main (void)
29011{
29012return gnutls_priority_set ();
29013  ;
29014  return 0;
29015}
29016_ACEOF
29017if ac_fn_c_try_link "$LINENO"
29018then :
29019  ac_cv_lib_gnutls_gnutls_priority_set=yes
29020else $as_nop
29021  ac_cv_lib_gnutls_gnutls_priority_set=no
29022fi
29023rm -f core conftest.err conftest.$ac_objext conftest.beam \
29024    conftest$ac_exeext conftest.$ac_ext
29025LIBS=$ac_check_lib_save_LIBS
29026fi
29027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_priority_set" >&5
29028printf "%s\n" "$ac_cv_lib_gnutls_gnutls_priority_set" >&6; }
29029if test "x$ac_cv_lib_gnutls_gnutls_priority_set" = xyes
29030then :
29031
29032            GNUTLS_CPPFLAGS="$LIBGCRYPT_CFLAGS"
29033            GNUTLS_CFLAGS="$LIBGCRYPT_CFLAGS"
29034            GNUTLS_LDFLAGS="$LIBGCRYPT_LIBS"
29035            GNUTLS_LIBS="-lgnutls"
29036            have_gnutls=yes
29037
29038fi
29039
29040fi
29041
29042done
29043       CPPFLAGS="$SAVE_CPPFLAGS"
29044       CFLAGS="$SAVE_CFLAGS"
29045       LDFLAGS="$SAVE_LDFLAGS"
29046       LIBS="$SAVE_LIBS"
29047
29048
29049fi
29050
29051
29052fi
29053if test "x$have_gnutls" != "xyes" && test "x$with_gnutls" = "xyes"
29054then :
29055  as_fn_error $? "can't find usable libgnutls" "$LINENO" 5
29056fi
29057
29058  if test "x$have_gnutls" = "xyes"
29059then :
29060
29061     SAVE_CPPFLAGS="$CPPFLAGS"
29062     SAVE_CFLAGS="$CFLAGS"
29063     SAVE_LDFLAGS="$LDFLAGS"
29064     SAVE_LIBS="$LIBS"
29065     CPPFLAGS="$GNUTLS_CPPFLAGS $CPPFLAGS"
29066     CFLAGS="$GNUTLS_CFLAGS $CFLAGS"
29067     LDFLAGS="$GNUTLS_LDFLAGS $LDFLAGS"
29068     LIBS="$LIBS $GNUTLS_LIBS"
29069     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_privkey_import_x509_raw()" >&5
29070printf %s "checking for gnutls_privkey_import_x509_raw()... " >&6; }
29071     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29072/* end confdefs.h.  */
29073
29074
29075#include <gnutls/gnutls.h>
29076#include <gnutls/abstract.h>
29077
29078int
29079main (void)
29080{
29081
29082            gnutls_datum_t data;
29083            gnutls_privkey_t key = 0;
29084#ifndef gnutls_load_file
29085            (void)gnutls_load_file; /* Check for declaration. */
29086#endif
29087#ifndef gnutls_privkey_import_x509_raw
29088            (void)gnutls_privkey_import_x509_raw; /* Check for declaration. */
29089#endif
29090            gnutls_load_file("key.pem", &data);
29091            gnutls_privkey_import_x509_raw(key, &data, GNUTLS_X509_FMT_PEM, NULL, 0);
29092            gnutls_free(data.data);
29093
29094  ;
29095  return 0;
29096}
29097_ACEOF
29098if ac_fn_c_try_link "$LINENO"
29099then :
29100  have_gnutls_sni=yes
29101else $as_nop
29102  have_gnutls_sni=no
29103fi
29104rm -f core conftest.err conftest.$ac_objext conftest.beam \
29105    conftest$ac_exeext conftest.$ac_ext
29106     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gnutls_sni" >&5
29107printf "%s\n" "$have_gnutls_sni" >&6; }
29108     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GnuTLS require libgcrypt initialisaion" >&5
29109printf %s "checking whether GnuTLS require libgcrypt initialisaion... " >&6; }
29110if test ${mhd_cv_gcrypt_required+y}
29111then :
29112  printf %s "(cached) " >&6
29113else $as_nop
29114
29115        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29116/* end confdefs.h.  */
29117
29118
29119#include <gnutls/gnutls.h>
29120
29121int
29122main (void)
29123{
29124
29125#if !defined(GNUTLS_VERSION_NUMBER) || GNUTLS_VERSION_NUMBER+0 <= 0x020c14
29126#error Old versions of GnuTLS require libgcript initialisaion
29127choke me now
29128#endif
29129
29130
29131  ;
29132  return 0;
29133}
29134
29135_ACEOF
29136if ac_fn_c_try_compile "$LINENO"
29137then :
29138  mhd_cv_gcrypt_required='no'
29139else $as_nop
29140  mhd_cv_gcrypt_required='yes'
29141
29142fi
29143rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29144
29145
29146fi
29147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_gcrypt_required" >&5
29148printf "%s\n" "$mhd_cv_gcrypt_required" >&6; }
29149     CPPFLAGS="$SAVE_CPPFLAGS"
29150     CFLAGS="$SAVE_CFLAGS"
29151     LDFLAGS="$SAVE_LDFLAGS"
29152     LIBS="$SAVE_LIBS"
29153
29154else $as_nop
29155
29156     { GNUTLS_CPPFLAGS=; unset GNUTLS_CPPFLAGS;}
29157     { GNUTLS_LDFLAGS=; unset GNUTLS_LDFLAGS;}
29158
29159
29160fi
29161
29162  if test "x$mhd_cv_gcrypt_required" = "xyes" && test "x$have_gcrypt" = "xunknown"
29163then :
29164
29165
29166
29167# Check whether --with-libgcrypt-prefix was given.
29168if test ${with_libgcrypt_prefix+y}
29169then :
29170  withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
29171else $as_nop
29172  libgcrypt_config_prefix=""
29173fi
29174
29175  if test x"${LIBGCRYPT_CONFIG}" = x ; then
29176     if test x"${libgcrypt_config_prefix}" != x ; then
29177        LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config"
29178     fi
29179  fi
29180
29181  use_gpgrt_config=""
29182  if test x"${LIBGCRYPT_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
29183    if $GPGRT_CONFIG libgcrypt --exists; then
29184      LIBGCRYPT_CONFIG="$GPGRT_CONFIG libgcrypt"
29185      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libgcrypt-config" >&5
29186printf "%s\n" "$as_me: Use gpgrt-config as libgcrypt-config" >&6;}
29187      use_gpgrt_config=yes
29188    fi
29189  fi
29190  if test -z "$use_gpgrt_config"; then
29191    if test x"${LIBGCRYPT_CONFIG}" = x ; then
29192      case "${SYSROOT}" in
29193         /*)
29194           if test -x "${SYSROOT}/bin/libgcrypt-config" ; then
29195             LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config"
29196           fi
29197           ;;
29198         '')
29199           ;;
29200          *)
29201           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
29202printf "%s\n" "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
29203           ;;
29204      esac
29205    fi
29206    # Extract the first word of "libgcrypt-config", so it can be a program name with args.
29207set dummy libgcrypt-config; ac_word=$2
29208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29209printf %s "checking for $ac_word... " >&6; }
29210if test ${ac_cv_path_LIBGCRYPT_CONFIG+y}
29211then :
29212  printf %s "(cached) " >&6
29213else $as_nop
29214  case $LIBGCRYPT_CONFIG in
29215  [\\/]* | ?:[\\/]*)
29216  ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
29217  ;;
29218  *)
29219  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29220for as_dir in $PATH
29221do
29222  IFS=$as_save_IFS
29223  case $as_dir in #(((
29224    '') as_dir=./ ;;
29225    */) ;;
29226    *) as_dir=$as_dir/ ;;
29227  esac
29228    for ac_exec_ext in '' $ac_executable_extensions; do
29229  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29230    ac_cv_path_LIBGCRYPT_CONFIG="$as_dir$ac_word$ac_exec_ext"
29231    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29232    break 2
29233  fi
29234done
29235  done
29236IFS=$as_save_IFS
29237
29238  test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
29239  ;;
29240esac
29241fi
29242LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
29243if test -n "$LIBGCRYPT_CONFIG"; then
29244  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
29245printf "%s\n" "$LIBGCRYPT_CONFIG" >&6; }
29246else
29247  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29248printf "%s\n" "no" >&6; }
29249fi
29250
29251
29252  fi
29253
29254  tmp=1.2.2
29255  if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
29256     req_libgcrypt_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
29257     min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
29258  else
29259     req_libgcrypt_api=0
29260     min_libgcrypt_version="$tmp"
29261  fi
29262
29263  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
29264printf %s "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
29265  ok=no
29266  if test "$LIBGCRYPT_CONFIG" != "no" ; then
29267    req_major=`echo $min_libgcrypt_version | \
29268               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
29269    req_minor=`echo $min_libgcrypt_version | \
29270               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
29271    req_micro=`echo $min_libgcrypt_version | \
29272               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
29273    if test -z "$use_gpgrt_config"; then
29274      libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
29275    else
29276      libgcrypt_config_version=`$LIBGCRYPT_CONFIG --modversion`
29277    fi
29278    major=`echo $libgcrypt_config_version | \
29279               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
29280    minor=`echo $libgcrypt_config_version | \
29281               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
29282    micro=`echo $libgcrypt_config_version | \
29283               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
29284    if test "$major" -gt "$req_major"; then
29285        ok=yes
29286    else
29287        if test "$major" -eq "$req_major"; then
29288            if test "$minor" -gt "$req_minor"; then
29289               ok=yes
29290            else
29291               if test "$minor" -eq "$req_minor"; then
29292                   if test "$micro" -ge "$req_micro"; then
29293                     ok=yes
29294                   fi
29295               fi
29296            fi
29297        fi
29298    fi
29299  fi
29300  if test $ok = yes; then
29301    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
29302printf "%s\n" "yes ($libgcrypt_config_version)" >&6; }
29303  else
29304    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29305printf "%s\n" "no" >&6; }
29306  fi
29307  if test $ok = yes; then
29308     # If we have a recent libgcrypt, we should also check that the
29309     # API is compatible
29310     if test "$req_libgcrypt_api" -gt 0 ; then
29311        if test -z "$use_gpgrt_config"; then
29312           tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
29313	else
29314           tmp=`$LIBGCRYPT_CONFIG --variable=api_version 2>/dev/null || echo 0`
29315	fi
29316        if test "$tmp" -gt 0 ; then
29317           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
29318printf %s "checking LIBGCRYPT API version... " >&6; }
29319           if test "$req_libgcrypt_api" -eq "$tmp" ; then
29320             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: okay" >&5
29321printf "%s\n" "okay" >&6; }
29322           else
29323             ok=no
29324             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
29325printf "%s\n" "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
29326           fi
29327        fi
29328     fi
29329  fi
29330  if test $ok = yes; then
29331    LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
29332    LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
29333    have_gcrypt=yes
29334    if test -z "$use_gpgrt_config"; then
29335      libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
29336    else
29337      libgcrypt_config_host=`$LIBGCRYPT_CONFIG --variable=host 2>/dev/null || echo none`
29338    fi
29339    if test x"$libgcrypt_config_host" != xnone ; then
29340      if test x"$libgcrypt_config_host" != x"$host" ; then
29341  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
29342***
29343*** The config script \"$LIBGCRYPT_CONFIG\" was
29344*** built for $libgcrypt_config_host and thus may not match the
29345*** used host $host.
29346*** You may want to use the configure option --with-libgcrypt-prefix
29347*** to specify a matching config script or use \$SYSROOT.
29348***" >&5
29349printf "%s\n" "$as_me: WARNING:
29350***
29351*** The config script \"$LIBGCRYPT_CONFIG\" was
29352*** built for $libgcrypt_config_host and thus may not match the
29353*** used host $host.
29354*** You may want to use the configure option --with-libgcrypt-prefix
29355*** to specify a matching config script or use \$SYSROOT.
29356***" >&2;}
29357        gpg_config_script_warn="$gpg_config_script_warn libgcrypt"
29358      fi
29359    fi
29360  else
29361    LIBGCRYPT_CFLAGS=""
29362    LIBGCRYPT_LIBS=""
29363    have_gcrypt=no
29364  fi
29365
29366
29367
29368     if test "x$have_gcrypt" = "xyes"
29369then :
29370
29371         SAVE_CPPFLAGS="$CPPFLAGS"
29372         SAVE_CFLAGS="$CFLAGS"
29373         CFLAGS="$CFLAGS $LIBGCRYPT_CFLAGS"
29374         # LIBGCRYPT_CFLAGS can be actually a CPPFLAGS, so check them both
29375         CPPFLAGS="$CPPFLAGS $LIBGCRYPT_CFLAGS"
29376                for ac_header in gcrypt.h
29377do :
29378  ac_fn_c_check_header_compile "$LINENO" "gcrypt.h" "ac_cv_header_gcrypt_h" "$ac_includes_default
29379"
29380if test "x$ac_cv_header_gcrypt_h" = xyes
29381then :
29382  printf "%s\n" "#define HAVE_GCRYPT_H 1" >>confdefs.h
29383
29384else $as_nop
29385  have_gcrypt=no
29386fi
29387
29388done
29389         CPPFLAGS="$SAVE_CPPFLAGS"
29390         CFLAGS="$SAVE_CFLAGS"
29391
29392
29393fi
29394
29395
29396fi
29397
29398  { crypt_missing=; unset crypt_missing;}
29399  if test "x$have_gnutls" = "xyes"
29400then :
29401
29402     if test "x$mhd_cv_gcrypt_required" = "xyes" && test "x$have_gcrypt" != "xyes"
29403then :
29404
29405        crypt_missing="required libgcrypt"
29406        if test "x$enable_https" = "xyes"
29407then :
29408  as_fn_error $? "HTTPS support cannot be enabled without $crypt_missing." "$LINENO" 5
29409fi
29410        enable_https=no
29411        MSG_HTTPS="no (lacking $crypt_missing)"
29412        { LIBGCRYPT_CFLAGS=; unset LIBGCRYPT_CFLAGS;}
29413        { LIBGCRYPT_LIBS=; unset LIBGCRYPT_LIBS;}
29414        { GNUTLS_CPPFLAGS=; unset GNUTLS_CPPFLAGS;}
29415        { GNUTLS_CFLAGS=; unset GNUTLS_CFLAGS;}
29416        { GNUTLS_LDFLAGS=; unset GNUTLS_LDFLAGS;}
29417        { GNUTLS_LIBS=; unset GNUTLS_LIBS;}
29418
29419else $as_nop
29420
29421
29422printf "%s\n" "#define HTTPS_SUPPORT 1" >>confdefs.h
29423
29424          enable_https=yes
29425          if test "x$mhd_cv_gcrypt_required" = "xyes"
29426then :
29427
29428             MSG_HTTPS="yes (using libgnutls and libgcrypt)"
29429	         MHD_TLS_LIB_CPPFLAGS="$LIBGCRYPT_CFLAGS $GNUTLS_CPPFLAGS"
29430             MHD_TLS_LIB_CFLAGS="$LIBGCRYPT_CFLAGS $GNUTLS_CFLAGS"
29431             MHD_TLS_LIB_LDFLAGS="$GNUTLS_LDFLAGS"
29432             MHD_TLS_LIBDEPS="$GNUTLS_LIBS $LIBGCRYPT_LIBS"
29433
29434printf "%s\n" "#define MHD_HTTPS_REQUIRE_GCRYPT 1" >>confdefs.h
29435
29436
29437else $as_nop
29438
29439             MSG_HTTPS="yes (using libgnutls)"
29440             { LIBGCRYPT_CFLAGS=; unset LIBGCRYPT_CFLAGS;}
29441             { LIBGCRYPT_LIBS=; unset LIBGCRYPT_LIBS;}
29442             MHD_TLS_LIB_CPPFLAGS="$GNUTLS_CPPFLAGS"
29443             MHD_TLS_LIB_CFLAGS="$GNUTLS_CFLAGS"
29444             MHD_TLS_LIB_LDFLAGS="$GNUTLS_LDFLAGS"
29445             MHD_TLS_LIBDEPS="$GNUTLS_LIBS"
29446
29447
29448fi
29449          if  test "x$have_gnutls_pkgcfg" = "xyes"
29450then :
29451   # remove GnuTLS from private libs in .pc file as it defined in Requires.private
29452              MHD_REQ_PRIVATE='gnutls'
29453              if test "x$mhd_cv_gcrypt_required" = "xyes"
29454then :
29455  MHD_LIBDEPS_PKGCFG="$LIBGCRYPT_LIBS $MHD_LIBDEPS_PKGCFG"
29456
29457fi
29458
29459else $as_nop
29460
29461              MHD_REQ_PRIVATE=''
29462              if test "x$mhd_cv_gcrypt_required" = "xyes"
29463then :
29464  MHD_LIBDEPS_PKGCFG="$LIBGCRYPT_LIBS $MHD_LIBDEPS_PKGCFG"
29465
29466fi
29467              MHD_LIBDEPS_PKGCFG="$GNUTLS_LIBS $MHD_LIBDEPS_PKGCFG"
29468
29469fi
29470
29471
29472fi
29473
29474else $as_nop
29475
29476     crypt_missing="libgnutls"
29477     if test "x$enable_https" = "xyes"
29478then :
29479  as_fn_error $? "HTTPS support cannot be enabled without $crypt_missing." "$LINENO" 5
29480fi
29481     enable_https=no
29482     MSG_HTTPS="no (lacking $crypt_missing)"
29483     { LIBGCRYPT_CFLAGS=; unset LIBGCRYPT_CFLAGS;}
29484     { LIBGCRYPT_LIBS=; unset LIBGCRYPT_LIBS;}
29485     { GNUTLS_CPPFLAGS=; unset GNUTLS_CPPFLAGS;}
29486     { GNUTLS_CFLAGS=; unset GNUTLS_CFLAGS;}
29487     { GNUTLS_LDFLAGS=; unset GNUTLS_LDFLAGS;}
29488     { GNUTLS_LIBS=; unset GNUTLS_LIBS;}
29489
29490
29491fi
29492
29493else $as_nop
29494
29495  MSG_HTTPS="no (disabled)"
29496
29497fi
29498
29499#
29500# End of large unindented block
29501#
29502
29503
29504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HTTPS" >&5
29505printf %s "checking whether to support HTTPS... " >&6; }
29506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSG_HTTPS" >&5
29507printf "%s\n" "$MSG_HTTPS" >&6; }
29508
29509 if test "x$have_gnutls" = "xyes"; then
29510  HAVE_GNUTLS_TRUE=
29511  HAVE_GNUTLS_FALSE='#'
29512else
29513  HAVE_GNUTLS_TRUE='#'
29514  HAVE_GNUTLS_FALSE=
29515fi
29516
29517 if test "x$have_gnutls_sni" = "xyes"; then
29518  HAVE_GNUTLS_SNI_TRUE=
29519  HAVE_GNUTLS_SNI_FALSE='#'
29520else
29521  HAVE_GNUTLS_SNI_TRUE='#'
29522  HAVE_GNUTLS_SNI_FALSE=
29523fi
29524
29525 if test "x$enable_https" = "xyes"; then
29526  ENABLE_HTTPS_TRUE=
29527  ENABLE_HTTPS_FALSE='#'
29528else
29529  ENABLE_HTTPS_TRUE='#'
29530  ENABLE_HTTPS_FALSE=
29531fi
29532
29533 if test "x$enable_https" = "xyes" && test "x$mhd_cv_gcrypt_required" = "xyes"; then
29534  HTTPS_REQUIRE_GCRYPT_TRUE=
29535  HTTPS_REQUIRE_GCRYPT_FALSE='#'
29536else
29537  HTTPS_REQUIRE_GCRYPT_TRUE='#'
29538  HTTPS_REQUIRE_GCRYPT_FALSE=
29539fi
29540
29541
29542
29543
29544
29545
29546if test "x$have_gnutls" = x"yes"
29547then :
29548
29549    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GnuTLS quirks" >&5
29550printf %s "checking for GnuTLS quirks... " >&6; }
29551if test ${mhd_cv_gnutls_mthread_broken+y}
29552then :
29553  printf %s "(cached) " >&6
29554else $as_nop
29555
29556        mhd_cv_gnutls_mthread_broken="no"
29557        if test -r /etc/redhat-release
29558then :
29559
29560            if $FGREP ' release 6.' /etc/redhat-release >/dev/null || $FGREP '(Santiago)' /etc/redhat-release >/dev/null
29561then :
29562  mhd_cv_gnutls_mthread_broken="found"
29563fi
29564
29565
29566fi
29567        if test "x$mhd_cv_gnutls_mthread_broken" = x"no"
29568then :
29569
29570            if command -v rpm >/dev/null
29571then :
29572
29573                if test r`rpm -E '%{rhel} 2>/dev/null'` = "r6"
29574then :
29575  mhd_cv_gnutls_mthread_broken="found"
29576fi
29577
29578
29579fi
29580
29581
29582fi
29583
29584
29585fi
29586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_gnutls_mthread_broken" >&5
29587printf "%s\n" "$mhd_cv_gnutls_mthread_broken" >&6; }
29588    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls-cli binary" >&5
29589printf %s "checking for gnutls-cli binary... " >&6; }
29590if test ${mhd_cv_gnutls_cli+y}
29591then :
29592  printf %s "(cached) " >&6
29593else $as_nop
29594
29595        mhd_cv_gnutls_cli="no"
29596        if command -v gnutls-cli >/dev/null 2>&1
29597then :
29598  if { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: gnutls-cli --version >&2"; } >&5
29599  (gnutls-cli --version >&2) 2>&5
29600  ac_status=$?
29601  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29602  test $ac_status = 0; }
29603then :
29604  mhd_cv_gnutls_cli="yes"
29605fi
29606
29607fi
29608
29609
29610fi
29611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_gnutls_cli" >&5
29612printf "%s\n" "$mhd_cv_gnutls_cli" >&6; }
29613
29614
29615fi
29616 if test "x${mhd_cv_gnutls_mthread_broken}" = "xfound"; then
29617  HAVE_GNUTLS_MTHREAD_BROKEN_TRUE=
29618  HAVE_GNUTLS_MTHREAD_BROKEN_FALSE='#'
29619else
29620  HAVE_GNUTLS_MTHREAD_BROKEN_TRUE='#'
29621  HAVE_GNUTLS_MTHREAD_BROKEN_FALSE=
29622fi
29623
29624 if test "x${mhd_cv_gnutls_mthread_broken}" = "xno" || test "x${mhd_cv_gnutls_cli}" == "xyes"; then
29625  USE_UPGRADE_TLS_TESTS_TRUE=
29626  USE_UPGRADE_TLS_TESTS_FALSE='#'
29627else
29628  USE_UPGRADE_TLS_TESTS_TRUE='#'
29629  USE_UPGRADE_TLS_TESTS_FALSE=
29630fi
29631
29632
29633# optional: HTTP Basic Auth support. Enabled by default
29634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HTTP basic authentication" >&5
29635printf %s "checking whether to support HTTP basic authentication... " >&6; }
29636# Check whether --enable-bauth was given.
29637if test ${enable_bauth+y}
29638then :
29639  enableval=$enable_bauth; enable_bauth=${enableval}
29640else $as_nop
29641  enable_bauth=yes
29642fi
29643
29644if test "x$enable_bauth" != "xno"
29645then :
29646   enable_bauth=yes
29647
29648printf "%s\n" "#define BAUTH_SUPPORT 1" >>confdefs.h
29649
29650fi
29651 if test "x$enable_bauth" != "xno"; then
29652  ENABLE_BAUTH_TRUE=
29653  ENABLE_BAUTH_FALSE='#'
29654else
29655  ENABLE_BAUTH_TRUE='#'
29656  ENABLE_BAUTH_FALSE=
29657fi
29658
29659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_bauth" >&5
29660printf "%s\n" "$enable_bauth" >&6; }
29661
29662# optional: HTTP Digest Auth support. Enabled by default
29663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HTTP digest authentication" >&5
29664printf %s "checking whether to support HTTP digest authentication... " >&6; }
29665# Check whether --enable-dauth was given.
29666if test ${enable_dauth+y}
29667then :
29668  enableval=$enable_dauth; enable_dauth=${enableval}
29669else $as_nop
29670  enable_dauth=yes
29671fi
29672
29673if test "x$enable_dauth" != "xno"
29674then :
29675   enable_dauth=yes
29676
29677printf "%s\n" "#define DAUTH_SUPPORT 1" >>confdefs.h
29678
29679fi
29680 if test "x$enable_dauth" != "xno"; then
29681  ENABLE_DAUTH_TRUE=
29682  ENABLE_DAUTH_FALSE='#'
29683else
29684  ENABLE_DAUTH_TRUE='#'
29685  ENABLE_DAUTH_FALSE=
29686fi
29687
29688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_dauth" >&5
29689printf "%s\n" "$enable_dauth" >&6; }
29690
29691# optional: HTTP "Upgrade" support. Enabled by default
29692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HTTP \"Upgrade\"" >&5
29693printf %s "checking whether to support HTTP \"Upgrade\"... " >&6; }
29694# Check whether --enable-httpupgrade was given.
29695if test ${enable_httpupgrade+y}
29696then :
29697  enableval=$enable_httpupgrade; if test "x$enable_httpupgrade" = x"no"
29698then :
29699
29700else $as_nop
29701  enable_httpupgrade='yes'
29702fi
29703else $as_nop
29704  enable_httpupgrade='yes'
29705fi
29706
29707if test "x$enable_httpupgrade" = x"yes"
29708then :
29709
29710
29711printf "%s\n" "#define UPGRADE_SUPPORT 1" >>confdefs.h
29712
29713fi
29714 if test "x$enable_httpupgrade" = "xyes"; then
29715  ENABLE_UPGRADE_TRUE=
29716  ENABLE_UPGRADE_FALSE='#'
29717else
29718  ENABLE_UPGRADE_TRUE='#'
29719  ENABLE_UPGRADE_FALSE=
29720fi
29721
29722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_httpupgrade" >&5
29723printf "%s\n" "$enable_httpupgrade" >&6; }
29724
29725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for calloc()" >&5
29726printf %s "checking for calloc()... " >&6; }
29727if test ${mhd_cv_have_func_calloc+y}
29728then :
29729  printf %s "(cached) " >&6
29730else $as_nop
29731
29732   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29733/* end confdefs.h.  */
29734
29735#include <stdlib.h>
29736
29737int
29738main (void)
29739{
29740void * ptr = calloc(1, 2); if (ptr) return 1;
29741  ;
29742  return 0;
29743}
29744
29745_ACEOF
29746if ac_fn_c_try_link "$LINENO"
29747then :
29748  mhd_cv_have_func_calloc='yes'
29749else $as_nop
29750  mhd_cv_have_func_calloc='no'
29751
29752fi
29753rm -f core conftest.err conftest.$ac_objext conftest.beam \
29754    conftest$ac_exeext conftest.$ac_ext
29755
29756
29757fi
29758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_calloc" >&5
29759printf "%s\n" "$mhd_cv_have_func_calloc" >&6; }
29760if test "x$mhd_cv_have_func_calloc" = x"yes"
29761then :
29762
29763printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
29764
29765fi
29766
29767# Some systems have IPv6 disabled in kernel at run-time
29768if test "x${have_inet6}" = "xyes" && test "x${cross_compiling}" = "xno"
29769then :
29770
29771   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether IPv6 could be used for testing" >&5
29772printf %s "checking whether IPv6 could be used for testing... " >&6; }
29773if test ${mhd_cv_ipv6_for_testing+y}
29774then :
29775  printf %s "(cached) " >&6
29776else $as_nop
29777
29778       if test "$cross_compiling" = yes
29779then :
29780  mhd_cv_ipv6_for_testing="no"
29781
29782else $as_nop
29783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29784/* end confdefs.h.  */
29785
29786
29787#ifdef HAVE_UNISTD_H
29788#include <unistd.h>
29789#endif
29790#ifdef HAVE_SYS_TYPES_H
29791#include <sys/types.h>
29792#endif
29793#ifdef HAVE_SYS_SOCKET_H
29794#include <sys/socket.h>
29795#endif
29796#ifdef HAVE_WINSOCK2_H
29797#include <winsock2.h>
29798#endif
29799#ifdef HAVE_WS2TCPIP_H
29800#include <ws2tcpip.h>
29801#endif
29802#ifdef HAVE_NETINET_IN_H
29803#include <netinet/in.h>
29804#endif
29805#ifdef HAVE_NETINET_IP_H
29806#include <netinet/ip.h>
29807#endif
29808#ifdef HAVE_ARPA_INET_H
29809#include <arpa/inet.h>
29810#endif
29811#ifdef HAVE_NETINET_TCP_H
29812#include <netinet/tcp.h>
29813#endif
29814
29815static void zr_mem(void *ptr, socklen_t size)
29816{ char *mem = ptr; while(size--) {mem[0] = 0; mem++;} }
29817
29818int main(void)
29819{
29820  int ret = 30;
29821  struct sockaddr_in6 sa;
29822#if !defined(_WIN32) || defined(__CYGWIN__)
29823  int sckt;
29824  const int invld_sckt = -1;
29825#else
29826  SOCKET sckt;
29827  const SOCKET invld_sckt = INVALID_SOCKET;
29828  WSADATA wsa_data;
29829
29830  WSAStartup(MAKEWORD(2, 2), &wsa_data);
29831#endif
29832  zr_mem(&sa, sizeof(sa));
29833  sa.sin6_family = AF_INET6;
29834  sa.sin6_port = 0;
29835  sa.sin6_addr = in6addr_loopback;
29836#ifdef HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN
29837  sa.sin6_len = sizeof(sa);
29838#endif
29839  sckt = socket (PF_INET6, SOCK_STREAM, 0);
29840  if (invld_sckt != sckt)
29841  {
29842    if (0 == bind (sckt, (struct sockaddr *)&sa, sizeof(sa)))
29843    {
29844      if (0 == listen (sckt, 1))
29845        ret = 0;
29846      else
29847        ret = 1; /* listen() failed */
29848    } else ret = 2; /* bind() failed */
29849#if !defined(_WIN32) || defined(__CYGWIN__)
29850    close (sckt);
29851#else
29852    closesocket (sckt);
29853#endif
29854  } else ret = 3; /* socket() failed */
29855#if defined(_WIN32) && !defined(__CYGWIN__)
29856  WSACleanup();
29857#endif
29858  return ret;
29859}
29860
29861
29862_ACEOF
29863if ac_fn_c_try_run "$LINENO"
29864then :
29865  mhd_cv_ipv6_for_testing="yes"
29866else $as_nop
29867  mhd_cv_ipv6_for_testing="no"
29868fi
29869rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29870  conftest.$ac_objext conftest.beam conftest.$ac_ext
29871fi
29872
29873
29874
29875fi
29876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_ipv6_for_testing" >&5
29877printf "%s\n" "$mhd_cv_ipv6_for_testing" >&6; }
29878
29879
29880fi
29881if test "x$mhd_cv_ipv6_for_testing" = x"yes"
29882then :
29883
29884printf "%s\n" "#define USE_IPV6_TESTING 1" >>confdefs.h
29885
29886
29887fi
29888
29889
29890# Check for fork() and waitpid(). They are used for tests.
29891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fork()" >&5
29892printf %s "checking for fork()... " >&6; }
29893mhd_have_fork_waitpid='no'
29894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29895/* end confdefs.h.  */
29896
29897
29898#ifdef HAVE_SYS_TYPES_H
29899#include <sys/types.h>
29900#endif
29901#ifdef HAVE_UNISTD_H
29902#include <unistd.h>
29903#endif
29904
29905int
29906main (void)
29907{
29908
29909  pid_t p = fork ();
29910  if (0 == p)
29911    return 1;
29912
29913  ;
29914  return 0;
29915}
29916
29917_ACEOF
29918if ac_fn_c_try_link "$LINENO"
29919then :
29920
29921
29922printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h
29923
29924   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29925printf "%s\n" "yes" >&6; }
29926
29927   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for waitpid()" >&5
29928printf %s "checking for waitpid()... " >&6; }
29929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29930/* end confdefs.h.  */
29931
29932
29933#include <sys/wait.h>
29934
29935int
29936main (void)
29937{
29938
29939     pid_t p = fork ();
29940     if (0 == p)
29941       return 1;
29942     waitpid (p, (void*)0, 0)
29943
29944  ;
29945  return 0;
29946}
29947
29948_ACEOF
29949if ac_fn_c_try_link "$LINENO"
29950then :
29951
29952
29953printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
29954
29955      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29956printf "%s\n" "yes" >&6; }
29957      mhd_have_fork_waitpid='yes'
29958
29959else $as_nop
29960
29961       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29962printf "%s\n" "no" >&6; }
29963
29964fi
29965rm -f core conftest.err conftest.$ac_objext conftest.beam \
29966    conftest$ac_exeext conftest.$ac_ext
29967
29968else $as_nop
29969
29970   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29971printf "%s\n" "no" >&6; }
29972
29973fi
29974rm -f core conftest.err conftest.$ac_objext conftest.beam \
29975    conftest$ac_exeext conftest.$ac_ext
29976
29977 if test "x$mhd_have_fork_waitpid" = "xyes"; then
29978  HAVE_FORK_WAITPID_TRUE=
29979  HAVE_FORK_WAITPID_FALSE='#'
29980else
29981  HAVE_FORK_WAITPID_TRUE='#'
29982  HAVE_FORK_WAITPID_FALSE=
29983fi
29984
29985
29986# gcov compilation
29987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to compile with support for code coverage analysis" >&5
29988printf %s "checking whether to compile with support for code coverage analysis... " >&6; }
29989# Check whether --enable-coverage was given.
29990if test ${enable_coverage+y}
29991then :
29992  enableval=$enable_coverage; use_gcov=${enableval}
29993else $as_nop
29994  use_gcov=no
29995fi
29996
29997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_gcov" >&5
29998printf "%s\n" "$use_gcov" >&6; }
29999 if test "x$use_gcov" = "xyes"; then
30000  USE_COVERAGE_TRUE=
30001  USE_COVERAGE_FALSE='#'
30002else
30003  USE_COVERAGE_TRUE='#'
30004  USE_COVERAGE_FALSE=
30005fi
30006
30007
30008                  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5
30009printf %s "checking the number of available CPUs... " >&6; }
30010      CPU_COUNT="0"
30011
30012      # Try generic methods
30013
30014      # 'getconf' is POSIX utility, but '_NPROCESSORS_ONLN' and
30015      # 'NPROCESSORS_ONLN' are platform-specific
30016      command -v getconf >/dev/null 2>&1 && \
30017        CPU_COUNT=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null` || CPU_COUNT="0"
30018      if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v nproc >/dev/null 2>&1
30019then :
30020  : # empty
30021else $as_nop
30022          # 'nproc' is part of GNU Coreutils and is widely available
30023        CPU_COUNT=`OMP_NUM_THREADS='' nproc 2>/dev/null` || CPU_COUNT=`nproc 2>/dev/null` || CPU_COUNT="0"
30024
30025fi
30026      if test "$CPU_COUNT" -gt "0" 2>/dev/null
30027then :
30028  : # empty
30029else $as_nop
30030          # Try platform-specific preferred methods
30031        case $host_os in #(
30032            *linux*) :
30033    CPU_COUNT=`lscpu -p 2>/dev/null | $EGREP -e '^[0-9]+,' -c` || CPU_COUNT="0" ;; #(
30034            *darwin*) :
30035    CPU_COUNT=`sysctl -n hw.logicalcpu 2>/dev/null` || CPU_COUNT="0" ;; #(
30036            freebsd*) :
30037    command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n kern.smp.cpus 2>/dev/null` || CPU_COUNT="0" ;; #(
30038            netbsd*) :
30039    command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n hw.ncpuonline 2>/dev/null` || CPU_COUNT="0" ;; #(
30040            solaris*) :
30041    command -v psrinfo >/dev/null 2>&1 && CPU_COUNT=`psrinfo 2>/dev/null | $EGREP -e '^[0-9].*on-line' -c 2>/dev/null` || CPU_COUNT="0" ;; #(
30042            mingw*) :
30043    CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
30044            msys*) :
30045    CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
30046            cygwin*) :
30047    CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0"         ;; #(
30048  *) :
30049     ;;
30050esac
30051fi
30052      if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v sysctl >/dev/null 2>&1
30053then :
30054  : # empty
30055else $as_nop
30056          # Try less preferred generic method
30057        # 'hw.ncpu' exist on many platforms, but not on GNU/Linux
30058        CPU_COUNT=`sysctl -n hw.ncpu 2>/dev/null` || CPU_COUNT="0"
30059
30060fi
30061      if test "$CPU_COUNT" -gt "0" 2>/dev/null
30062then :
30063  : # empty
30064else $as_nop
30065        # Try platform-specific fallback methods
30066      # They can be less accurate and slower then preferred methods
30067        case $host_os in #(
30068            *linux*) :
30069    CPU_COUNT=`$EGREP -e '^processor' -c /proc/cpuinfo 2>/dev/null` || CPU_COUNT="0" ;; #(
30070            *darwin*) :
30071    CPU_COUNT=`system_profiler SPHardwareDataType 2>/dev/null | $EGREP -i -e 'number of cores:'|cut -d : -f 2 -s|tr -d ' '` || CPU_COUNT="0" ;; #(
30072            freebsd*) :
30073    CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+: '|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #(
30074            netbsd*) :
30075    CPU_COUNT=`command -v cpuctl >/dev/null 2>&1 && cpuctl list 2>/dev/null| $EGREP -e '^[0-9]+ .* online ' -c` || \
30076                           CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+ at'|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #(
30077            solaris*) :
30078    command -v kstat >/dev/null 2>&1 && CPU_COUNT=`kstat -m cpu_info -s state -p 2>/dev/null | $EGREP -c -e 'on-line'` || \
30079                           CPU_COUNT=`kstat -m cpu_info 2>/dev/null | $EGREP -c -e 'module: cpu_info'` || CPU_COUNT="0" ;; #(
30080            mingw*) :
30081    if CPU_COUNT=`reg query 'HKLM\\Hardware\\Description\\System\\CentralProcessor' 2>/dev/null | $EGREP -e '\\\\[0-9]+$' -c`
30082then :
30083                          : # empty
30084else $as_nop
30085  test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS"
30086fi ;; #(
30087            msys*) :
30088    test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #(
30089            cygwin*) :
30090    test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS"         ;; #(
30091  *) :
30092     ;;
30093esac
30094fi
30095      if test "x$CPU_COUNT" != "x0" && test "$CPU_COUNT" -gt 0 2>/dev/null
30096then :
30097            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT" >&5
30098printf "%s\n" "$CPU_COUNT" >&6; }
30099
30100else $as_nop
30101                        CPU_COUNT="1"
30102            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1)" >&5
30103printf "%s\n" "unable to detect (assuming 1)" >&6; }
30104
30105fi
30106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for number of CPU cores to use in tests" >&5
30107printf %s "checking for number of CPU cores to use in tests... " >&6; }
30108if test "x$enable_heavy_tests" = x"yes"
30109then :
30110
30111    # Enable usage of many core if heavy tests are enabled
30112    if test "$CPU_COUNT" -gt "32"
30113then :
30114  CPU_COUNT="32"
30115fi
30116else $as_nop
30117
30118    # Limit usage to just a few cores if heavy tests are not enabled
30119    if test "$CPU_COUNT" -gt "6"
30120then :
30121  CPU_COUNT="6"
30122fi
30123    if test "$CPU_COUNT" -lt "2"
30124then :
30125  CPU_COUNT="2"
30126fi
30127
30128
30129fi
30130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT" >&5
30131printf "%s\n" "$CPU_COUNT" >&6; }
30132
30133
30134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable debug asserts" >&5
30135printf %s "checking whether to enable debug asserts... " >&6; }
30136# Check whether --enable-asserts was given.
30137if test ${enable_asserts+y}
30138then :
30139  enableval=$enable_asserts;
30140else $as_nop
30141  enable_asserts='no'
30142fi
30143
30144case $enable_asserts in #(
30145  yes) :
30146    : ;; #(
30147  no) :
30148    : ;; #(
30149  *) :
30150    enable_asserts='no' ;;
30151esac
30152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_asserts" >&5
30153printf "%s\n" "$enable_asserts" >&6; }
30154
30155if test "x$enable_asserts" = x"yes"
30156then :
30157
30158
30159printf "%s\n" "#define _DEBUG 1" >>confdefs.h
30160
30161   mhd_assert_test_prg="#include <assert.h>
30162   int pos_val(void) {return 5;}
30163   int neg_val(void) {return -5;}
30164   int main(void)
30165   { int pos_var = pos_val(), neg_var = neg_val();
30166     assert(neg_var > pos_var); /* Must trigger assert. */
30167     (void)pos_var; (void)neg_var;
30168     return 0; }
30169   "
30170   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether system assert() is available" >&5
30171printf %s "checking whether system assert() is available... " >&6; }
30172if test ${mhd_cv_sys_assert_avail+y}
30173then :
30174  printf %s "(cached) " >&6
30175else $as_nop
30176
30177      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30178/* end confdefs.h.  */
30179$mhd_assert_test_prg
30180_ACEOF
30181if ac_fn_c_try_link "$LINENO"
30182then :
30183  mhd_cv_sys_assert_avail='yes'
30184else $as_nop
30185  mhd_cv_sys_assert_avail='no'
30186fi
30187rm -f core conftest.err conftest.$ac_objext conftest.beam \
30188    conftest$ac_exeext conftest.$ac_ext
30189
30190
30191fi
30192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_sys_assert_avail" >&5
30193printf "%s\n" "$mhd_cv_sys_assert_avail" >&6; }
30194   if test "x$mhd_cv_sys_assert_avail" = x"no"
30195then :
30196
30197else $as_nop
30198
30199printf "%s\n" "#define HAVE_ASSERT 1" >>confdefs.h
30200
30201fi
30202   { mhd_assert_test_prg=; unset mhd_assert_test_prg;}
30203
30204else $as_nop
30205
30206printf "%s\n" "#define NDEBUG 1" >>confdefs.h
30207
30208
30209fi
30210
30211{ enabled_sanitizers=; unset enabled_sanitizers;}
30212AM_TESTS_ENVIRONMENT=""
30213AM_ASAN_OPTIONS=""
30214AM_UBSAN_OPTIONS=""
30215AM_LSAN_OPTIONS=""
30216{ ASAN_OPTIONS=; unset ASAN_OPTIONS;}
30217{ UBSAN_OPTIONS=; unset UBSAN_OPTIONS;}
30218{ LSAN_OPTIONS=; unset LSAN_OPTIONS;}
30219
30220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable run-time sanitizers" >&5
30221printf %s "checking whether to enable run-time sanitizers... " >&6; }
30222# Check whether --enable-sanitizers was given.
30223if test ${enable_sanitizers+y}
30224then :
30225  enableval=$enable_sanitizers;
30226else $as_nop
30227  enable_sanitizers=no
30228fi
30229
30230if test "x${enable_sanitizers}" = "x"
30231then :
30232  enable_sanitizers="auto"
30233fi
30234if test "x$enable_sanitizers" = x"yes"
30235then :
30236  enable_sanitizers="auto"
30237fi
30238if test "x${enable_sanitizers}" = "xno"
30239then :
30240
30241    enable_sanitizers="no"
30242    enable_san_address="no"
30243    enable_san_undef="no"
30244    enable_san_leak="no"
30245    enable_san_upoison="no"
30246
30247elif test "x${enable_sanitizers}" = "xauto"
30248then :
30249
30250    enable_san_address="auto"
30251    enable_san_undef="auto"
30252    enable_san_leak="auto"
30253    enable_san_upoison="auto"
30254
30255else $as_nop
30256
30257    { san=; unset san;}
30258    enable_san_address="no"
30259    enable_san_undef="no"
30260    enable_san_leak="no"
30261    enable_san_upoison="no"
30262    for san in `printf "%s\n" ${enable_sanitizers} | tr ',' ' '`
30263    do
30264      case $san in #(
30265  address) :
30266    enable_san_address="yes" ;; #(
30267  undefined) :
30268    enable_san_undef="yes" ;; #(
30269  leak) :
30270    enable_san_leak="yes" ;; #(
30271  user-poison|user_poison) :
30272    enable_san_upoison="yes" ;; #(
30273  no|yes|auto) :
30274    as_fn_error $? "\"$san\" cannot be used with other options for --enable-sanitizers=" "$LINENO" 5 ;; #(
30275  *) :
30276    as_fn_error $? "Unknown parameter \"$san\" for --enable-sanitizers=" "$LINENO" 5
30277       ;;
30278esac
30279    done
30280    if test "x${enable_san_upoison}" = "xyes" && test "x${enable_san_address}" = "xno"
30281then :
30282  as_fn_error $? "User memory poisoning cannot be used without address sanitizer" "$LINENO" 5
30283
30284fi
30285    enable_sanitizers="selected"
30286
30287
30288fi
30289case ${enable_sanitizers} in #(
30290  selected) :
30291    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: selected" >&5
30292printf "%s\n" "selected" >&6; } ;; #(
30293  auto) :
30294    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, detect and use supported sanitizers" >&5
30295printf "%s\n" "yes, detect and use supported sanitizers" >&6; } ;; #(
30296  *) :
30297    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30298printf "%s\n" "no" >&6; }
30299 ;;
30300esac
30301if test "x$enable_sanitizers" = x"no"
30302then :
30303  :
30304else $as_nop
30305
30306   { san_FLAGS=; unset san_FLAGS;} # the sanitizer flags to be added to both CFLAGS and LDFLAGS
30307   { san_CFLAGS=; unset san_CFLAGS;} # the sanitizer flags to be added to CFLAGS
30308   saved_CFLAGS="$CFLAGS"
30309   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether '-fsanitize=' works for $CC" >&5
30310printf %s "checking whether '-fsanitize=' works for $CC... " >&6; }
30311if test ${mhd_cv_cc_sanitizer_works+y}
30312then :
30313  printf %s "(cached) " >&6
30314else $as_nop
30315
30316       CFLAGS="${saved_CFLAGS} -fsanitize=wrongFeatureName"
30317       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30318/* end confdefs.h.  */
30319
30320int
30321main (void)
30322{
30323
30324  ;
30325  return 0;
30326}
30327_ACEOF
30328if ac_fn_c_try_compile "$LINENO"
30329then :
30330  mhd_cv_cc_sanitizer_works=no
30331else $as_nop
30332  mhd_cv_cc_sanitizer_works=yes
30333fi
30334rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30335
30336
30337fi
30338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_sanitizer_works" >&5
30339printf "%s\n" "$mhd_cv_cc_sanitizer_works" >&6; }
30340   if test "x$mhd_cv_cc_sanitizer_works" = x"yes"
30341then :
30342
30343       if test "x$enable_san_address" = x"no"
30344then :
30345  :
30346else $as_nop
30347
30348           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for address sanitizer" >&5
30349printf %s "checking for address sanitizer... " >&6; }
30350if test ${mhd_cv_cc_sanitizer_address+y}
30351then :
30352  printf %s "(cached) " >&6
30353else $as_nop
30354
30355               CFLAGS="${saved_CFLAGS} ${san_CFLAGS} ${san_FLAGS} -fsanitize=address"
30356               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30357/* end confdefs.h.  */
30358
30359int
30360main (void)
30361{
30362
30363  ;
30364  return 0;
30365}
30366_ACEOF
30367if ac_fn_c_try_link "$LINENO"
30368then :
30369  mhd_cv_cc_sanitizer_address=yes
30370else $as_nop
30371  mhd_cv_cc_sanitizer_address=no
30372fi
30373rm -f core conftest.err conftest.$ac_objext conftest.beam \
30374    conftest$ac_exeext conftest.$ac_ext
30375
30376
30377fi
30378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_sanitizer_address" >&5
30379printf "%s\n" "$mhd_cv_cc_sanitizer_address" >&6; }
30380           if test "x$mhd_cv_cc_sanitizer_address" = x"yes"
30381then :
30382
30383
30384printf "%s\n" "#define MHD_ASAN_ACTIVE 1" >>confdefs.h
30385
30386
30387if test ${san_FLAGS+y}
30388then :
30389
30390  case " $san_FLAGS " in #(
30391  *" -fsanitize=address "*) :
30392    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS already contains -fsanitize=address"; } >&5
30393  (: san_FLAGS already contains -fsanitize=address) 2>&5
30394  ac_status=$?
30395  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30396  test $ac_status = 0; } ;; #(
30397  *) :
30398
30399     as_fn_append san_FLAGS " -fsanitize=address"
30400     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5
30401  (: san_FLAGS="$san_FLAGS") 2>&5
30402  ac_status=$?
30403  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30404  test $ac_status = 0; }
30405     ;;
30406esac
30407
30408else $as_nop
30409
30410  san_FLAGS=-fsanitize=address
30411  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5
30412  (: san_FLAGS="$san_FLAGS") 2>&5
30413  ac_status=$?
30414  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30415  test $ac_status = 0; }
30416
30417fi
30418
30419               enabled_sanitizers="${enabled_sanitizers}${enabled_sanitizers:+, }address"
30420               if test "x$enable_san_leak" = x"no"
30421then :
30422  :
30423else $as_nop
30424
30425                   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether leak detect is not rejected by address sanitizer" >&5
30426printf %s "checking whether leak detect is not rejected by address sanitizer... " >&6; }
30427if test ${mhd_cv_cc_sanitizer_address_leak+y}
30428then :
30429  printf %s "(cached) " >&6
30430else $as_nop
30431
30432                       CFLAGS="${saved_CFLAGS} ${san_CFLAGS} ${san_FLAGS}"
30433                       ASAN_OPTIONS="exitcode=88:detect_leaks=1:halt_on_error=1"
30434                       export ASAN_OPTIONS
30435                       if test "$cross_compiling" = yes
30436then :
30437
30438                           # Cross-compiling with sanitizers?
30439                           mhd_cv_cc_sanitizer_address_leak='assuming no'
30440
30441
30442else $as_nop
30443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30444/* end confdefs.h.  */
30445
30446int
30447main (void)
30448{
30449
30450  ;
30451  return 0;
30452}
30453_ACEOF
30454if ac_fn_c_try_run "$LINENO"
30455then :
30456  mhd_cv_cc_sanitizer_address_leak=yes
30457else $as_nop
30458  mhd_cv_cc_sanitizer_address_leak=no
30459fi
30460rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30461  conftest.$ac_objext conftest.beam conftest.$ac_ext
30462fi
30463
30464                       { ASAN_OPTIONS=; unset ASAN_OPTIONS;}
30465
30466
30467fi
30468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_sanitizer_address_leak" >&5
30469printf "%s\n" "$mhd_cv_cc_sanitizer_address_leak" >&6; }
30470
30471
30472fi
30473               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pointer compare sanitizer" >&5
30474printf %s "checking for pointer compare sanitizer... " >&6; }
30475if test ${mhd_cv_cc_sanitizer_pointer_compare+y}
30476then :
30477  printf %s "(cached) " >&6
30478else $as_nop
30479
30480                   CFLAGS="${saved_CFLAGS} ${san_CFLAGS} ${san_FLAGS} -fsanitize=pointer-compare"
30481                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30482/* end confdefs.h.  */
30483
30484int
30485main (void)
30486{
30487
30488  ;
30489  return 0;
30490}
30491_ACEOF
30492if ac_fn_c_try_link "$LINENO"
30493then :
30494  mhd_cv_cc_sanitizer_pointer_compare=yes
30495else $as_nop
30496  mhd_cv_cc_sanitizer_pointer_compare=no
30497fi
30498rm -f core conftest.err conftest.$ac_objext conftest.beam \
30499    conftest$ac_exeext conftest.$ac_ext
30500
30501
30502fi
30503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_sanitizer_pointer_compare" >&5
30504printf "%s\n" "$mhd_cv_cc_sanitizer_pointer_compare" >&6; }
30505               if test "x$mhd_cv_cc_sanitizer_pointer_compare" = x"yes"
30506then :
30507
30508
30509if test ${san_FLAGS+y}
30510then :
30511
30512  case " $san_FLAGS " in #(
30513  *" -fsanitize=pointer-compare "*) :
30514    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS already contains -fsanitize=pointer-compare"; } >&5
30515  (: san_FLAGS already contains -fsanitize=pointer-compare) 2>&5
30516  ac_status=$?
30517  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30518  test $ac_status = 0; } ;; #(
30519  *) :
30520
30521     as_fn_append san_FLAGS " -fsanitize=pointer-compare"
30522     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5
30523  (: san_FLAGS="$san_FLAGS") 2>&5
30524  ac_status=$?
30525  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30526  test $ac_status = 0; }
30527     ;;
30528esac
30529
30530else $as_nop
30531
30532  san_FLAGS=-fsanitize=pointer-compare
30533  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5
30534  (: san_FLAGS="$san_FLAGS") 2>&5
30535  ac_status=$?
30536  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30537  test $ac_status = 0; }
30538
30539fi
30540
30541                   enabled_sanitizers="${enabled_sanitizers}${enabled_sanitizers:+, }pointer compare"
30542
30543
30544fi
30545               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pointer subtract sanitizer" >&5
30546printf %s "checking for pointer subtract sanitizer... " >&6; }
30547if test ${mhd_cv_cc_sanitizer_pointer_subtract+y}
30548then :
30549  printf %s "(cached) " >&6
30550else $as_nop
30551
30552                   CFLAGS="${saved_CFLAGS} ${san_CFLAGS} ${san_FLAGS} -fsanitize=pointer-subtract"
30553                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30554/* end confdefs.h.  */
30555
30556int
30557main (void)
30558{
30559
30560  ;
30561  return 0;
30562}
30563_ACEOF
30564if ac_fn_c_try_link "$LINENO"
30565then :
30566  mhd_cv_cc_sanitizer_pointer_subtract=yes
30567else $as_nop
30568  mhd_cv_cc_sanitizer_pointer_subtract=no
30569fi
30570rm -f core conftest.err conftest.$ac_objext conftest.beam \
30571    conftest$ac_exeext conftest.$ac_ext
30572
30573
30574fi
30575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_sanitizer_pointer_subtract" >&5
30576printf "%s\n" "$mhd_cv_cc_sanitizer_pointer_subtract" >&6; }
30577               if test "x$mhd_cv_cc_sanitizer_pointer_subtract" = x"yes"
30578then :
30579
30580
30581if test ${san_FLAGS+y}
30582then :
30583
30584  case " $san_FLAGS " in #(
30585  *" -fsanitize=pointer-subtract "*) :
30586    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS already contains -fsanitize=pointer-subtract"; } >&5
30587  (: san_FLAGS already contains -fsanitize=pointer-subtract) 2>&5
30588  ac_status=$?
30589  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30590  test $ac_status = 0; } ;; #(
30591  *) :
30592
30593     as_fn_append san_FLAGS " -fsanitize=pointer-subtract"
30594     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5
30595  (: san_FLAGS="$san_FLAGS") 2>&5
30596  ac_status=$?
30597  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30598  test $ac_status = 0; }
30599     ;;
30600esac
30601
30602else $as_nop
30603
30604  san_FLAGS=-fsanitize=pointer-subtract
30605  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5
30606  (: san_FLAGS="$san_FLAGS") 2>&5
30607  ac_status=$?
30608  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30609  test $ac_status = 0; }
30610
30611fi
30612
30613                   enabled_sanitizers="${enabled_sanitizers}${enabled_sanitizers:+, }pointer subtract"
30614
30615
30616fi
30617               if test "x$enable_san_upoison" = x"no"
30618then :
30619  :
30620else $as_nop
30621
30622                   ac_fn_c_check_header_compile "$LINENO" "sanitizer/asan_interface.h" "ac_cv_header_sanitizer_asan_interface_h" "$ac_includes_default
30623"
30624if test "x$ac_cv_header_sanitizer_asan_interface_h" = xyes
30625then :
30626  printf "%s\n" "#define HAVE_SANITIZER_ASAN_INTERFACE_H 1" >>confdefs.h
30627
30628fi
30629
30630                   if test "x${mhd_cv_cc_sanitizer_pointer_compare}" = "xyes" && test "x${ac_cv_header_sanitizer_asan_interface_h}" = "xyes"
30631then :
30632
30633                       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether '__attribute__((no_sanitize(\"pointer-compare\",\"pointer-subtract\")))' works" >&5
30634printf %s "checking whether '__attribute__((no_sanitize(\"pointer-compare\",\"pointer-subtract\")))' works... " >&6; }
30635if test ${mhd_cv_func_attribute_nosanitize_ptr+y}
30636then :
30637  printf %s "(cached) " >&6
30638else $as_nop
30639
30640                           ASAN_OPTIONS="exitcode=88:detect_invalid_pointer_pairs=3:halt_on_error=1"
30641                           export ASAN_OPTIONS
30642                           CFLAGS="${saved_CFLAGS} ${san_CFLAGS} ${san_FLAGS} ${errattr_CFLAGS}"
30643                           if test "$cross_compiling" = yes
30644then :
30645
30646                               # Cross-compiling with sanitizers??
30647                               mhd_cv_func_attribute_nosanitize_ptr='assuming no'
30648
30649
30650else $as_nop
30651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30652/* end confdefs.h.  */
30653
30654
30655#include <stdlib.h>
30656
30657__attribute__((no_sanitize("pointer-compare","pointer-subtract")))
30658int ptr_process(void *ptr1, void *ptr2)
30659{
30660  if ((char*)ptr1 <= (char*)ptr2)
30661    return (int) ((char*)ptr2 - (char*)ptr1);
30662  return (int) ((char*)ptr1 - (char*)ptr2);
30663}
30664
30665int
30666main (void)
30667{
30668
30669  int *a = (int*) malloc (sizeof(int)*4);
30670  int *b = (int*) malloc (sizeof(long)*6);
30671  int c = ptr_process(a, b);
30672  if (c)
30673  {
30674    free (b);
30675    free (a);
30676    return 0;
30677  }
30678  free (a);
30679  free (b);
30680
30681
30682  ;
30683  return 0;
30684}
30685
30686_ACEOF
30687if ac_fn_c_try_run "$LINENO"
30688then :
30689  mhd_cv_func_attribute_nosanitize_ptr=yes
30690else $as_nop
30691  mhd_cv_func_attribute_nosanitize_ptr=no
30692fi
30693rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30694  conftest.$ac_objext conftest.beam conftest.$ac_ext
30695fi
30696
30697                           { ASAN_OPTIONS=; unset ASAN_OPTIONS;}
30698
30699
30700fi
30701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_func_attribute_nosanitize_ptr" >&5
30702printf "%s\n" "$mhd_cv_func_attribute_nosanitize_ptr" >&6; }
30703                       if test "x$mhd_cv_func_attribute_nosanitize_ptr" = x"yes"
30704then :
30705
30706printf "%s\n" "#define FUNC_ATTR_PTRCOMPARE_WOKRS 1" >>confdefs.h
30707
30708else $as_nop
30709
30710                           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether '__attribute__((no_sanitize(\"address\")))' works for pointers compare" >&5
30711printf %s "checking whether '__attribute__((no_sanitize(\"address\")))' works for pointers compare... " >&6; }
30712if test ${mhd_cv_func_attribute_nosanitize_addr+y}
30713then :
30714  printf %s "(cached) " >&6
30715else $as_nop
30716
30717                               ASAN_OPTIONS="exitcode=88:detect_invalid_pointer_pairs=3:halt_on_error=1"
30718                               export ASAN_OPTIONS
30719                               CFLAGS="${saved_CFLAGS} ${san_CFLAGS} ${san_FLAGS} ${errattr_CFLAGS}"
30720                               if test "$cross_compiling" = yes
30721then :
30722
30723                                   # Cross-compiling with sanitizers??
30724                                   mhd_cv_func_attribute_nosanitize_addr='assuming no'
30725
30726
30727else $as_nop
30728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30729/* end confdefs.h.  */
30730
30731
30732#include <stdlib.h>
30733
30734__attribute__((no_sanitize("address")))
30735int ptr_process(void *ptr1, void *ptr2)
30736{
30737  if ((char*)ptr1 <= (char*)ptr2)
30738    return (int) ((char*)ptr2 - (char*)ptr1);
30739  return (int) ((char*)ptr1 - (char*)ptr2);
30740}
30741
30742int
30743main (void)
30744{
30745
30746  int *a = (int*) malloc (sizeof(int)*4);
30747  int *b = (int*) malloc (sizeof(long)*6);
30748  int c = ptr_process(a, b);
30749  if (c)
30750  {
30751    free (b);
30752    free (a);
30753    return 0;
30754  }
30755  free (a);
30756  free (b);
30757
30758
30759  ;
30760  return 0;
30761}
30762
30763_ACEOF
30764if ac_fn_c_try_run "$LINENO"
30765then :
30766  mhd_cv_func_attribute_nosanitize_addr=yes
30767else $as_nop
30768  mhd_cv_func_attribute_nosanitize_addr=no
30769fi
30770rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30771  conftest.$ac_objext conftest.beam conftest.$ac_ext
30772fi
30773
30774                               { ASAN_OPTIONS=; unset ASAN_OPTIONS;}
30775
30776
30777fi
30778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_func_attribute_nosanitize_addr" >&5
30779printf "%s\n" "$mhd_cv_func_attribute_nosanitize_addr" >&6; }
30780                           if test "x$mhd_cv_func_attribute_nosanitize_addr" = x"yes"
30781then :
30782
30783printf "%s\n" "#define FUNC_ATTR_NOSANITIZE_WORKS 1" >>confdefs.h
30784
30785
30786fi
30787
30788
30789fi
30790
30791
30792fi
30793
30794
30795fi
30796
30797
30798fi
30799           if test "x${enable_san_address}" = "xyes" && test "x${mhd_cv_cc_sanitizer_address}" != "xyes"
30800then :
30801  as_fn_error $? "Address sanitizer cannot be enabled" "$LINENO" 5
30802
30803fi
30804           enable_san_address="${mhd_cv_cc_sanitizer_address}"
30805
30806
30807fi
30808       if test "x$enable_san_undef" = x"no"
30809then :
30810  :
30811else $as_nop
30812
30813
30814            test_undf_prog='
30815#include <stdio.h>
30816
30817void func_out_b(char *arr)
30818{
30819  arr[0] = 0;
30820  arr[16] = 2;
30821}
30822
30823unsigned int int_deref(void *ptr)
30824{
30825  return (*((int*)ptr)) + 2;
30826}
30827
30828int func1(void)
30829{
30830  char chr[16];
30831  func_out_b (chr);
30832  return int_deref(chr + 1) + int_deref(chr + 2);
30833}
30834
30835int main(void)
30836{
30837  unsigned long ulvar;
30838  signed char ch1;
30839  ulvar = -1 * func1();
30840  ch1 = ulvar * 6UL;
30841  printf("%lu\n", ulvar + ch1);
30842  return 0;
30843}
30844            '
30845
30846           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for undefined behavior sanitizer" >&5
30847printf %s "checking for undefined behavior sanitizer... " >&6; }
30848if test ${mhd_cv_cc_sanitizer_undefined+y}
30849then :
30850  printf %s "(cached) " >&6
30851else $as_nop
30852
30853               CFLAGS="${saved_CFLAGS} ${san_FLAGS} ${san_CFLAGS} -fsanitize=undefined"
30854               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30855/* end confdefs.h.  */
30856${test_undf_prog}
30857_ACEOF
30858if ac_fn_c_try_link "$LINENO"
30859then :
30860  mhd_cv_cc_sanitizer_undefined=yes
30861else $as_nop
30862  mhd_cv_cc_sanitizer_undefined=no
30863fi
30864rm -f core conftest.err conftest.$ac_objext conftest.beam \
30865    conftest$ac_exeext conftest.$ac_ext
30866
30867
30868fi
30869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_sanitizer_undefined" >&5
30870printf "%s\n" "$mhd_cv_cc_sanitizer_undefined" >&6; }
30871           if test "x$mhd_cv_cc_sanitizer_undefined" = x"yes"
30872then :
30873
30874
30875if test ${san_FLAGS+y}
30876then :
30877
30878  case " $san_FLAGS " in #(
30879  *" -fsanitize=undefined "*) :
30880    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS already contains -fsanitize=undefined"; } >&5
30881  (: san_FLAGS already contains -fsanitize=undefined) 2>&5
30882  ac_status=$?
30883  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30884  test $ac_status = 0; } ;; #(
30885  *) :
30886
30887     as_fn_append san_FLAGS " -fsanitize=undefined"
30888     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5
30889  (: san_FLAGS="$san_FLAGS") 2>&5
30890  ac_status=$?
30891  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30892  test $ac_status = 0; }
30893     ;;
30894esac
30895
30896else $as_nop
30897
30898  san_FLAGS=-fsanitize=undefined
30899  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5
30900  (: san_FLAGS="$san_FLAGS") 2>&5
30901  ac_status=$?
30902  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30903  test $ac_status = 0; }
30904
30905fi
30906
30907               enabled_sanitizers="${enabled_sanitizers}${enabled_sanitizers:+, }undefined"
30908
30909else $as_nop
30910
30911               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for undefined behavior sanitizer with '-fsanitize-undefined-trap-on-error'" >&5
30912printf %s "checking for undefined behavior sanitizer with '-fsanitize-undefined-trap-on-error'... " >&6; }
30913if test ${mhd_cv_cc_sanitizer_undefined_trap+y}
30914then :
30915  printf %s "(cached) " >&6
30916else $as_nop
30917
30918                   CFLAGS="${saved_CFLAGS} ${san_FLAGS} ${san_CFLAGS} -fsanitize=undefined -fsanitize-undefined-trap-on-error"
30919                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30920/* end confdefs.h.  */
30921${test_undf_prog}
30922_ACEOF
30923if ac_fn_c_try_link "$LINENO"
30924then :
30925  mhd_cv_cc_sanitizer_undefined_trap=yes
30926else $as_nop
30927  mhd_cv_cc_sanitizer_undefined_trap=no
30928fi
30929rm -f core conftest.err conftest.$ac_objext conftest.beam \
30930    conftest$ac_exeext conftest.$ac_ext
30931
30932
30933fi
30934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_sanitizer_undefined_trap" >&5
30935printf "%s\n" "$mhd_cv_cc_sanitizer_undefined_trap" >&6; }
30936               if test "x$mhd_cv_cc_sanitizer_undefined_trap" = x"yes"
30937then :
30938
30939
30940if test ${san_FLAGS+y}
30941then :
30942
30943  case " $san_FLAGS " in #(
30944  *" -fsanitize=undefined "*) :
30945    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS already contains -fsanitize=undefined"; } >&5
30946  (: san_FLAGS already contains -fsanitize=undefined) 2>&5
30947  ac_status=$?
30948  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30949  test $ac_status = 0; } ;; #(
30950  *) :
30951
30952     as_fn_append san_FLAGS " -fsanitize=undefined"
30953     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5
30954  (: san_FLAGS="$san_FLAGS") 2>&5
30955  ac_status=$?
30956  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30957  test $ac_status = 0; }
30958     ;;
30959esac
30960
30961else $as_nop
30962
30963  san_FLAGS=-fsanitize=undefined
30964  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5
30965  (: san_FLAGS="$san_FLAGS") 2>&5
30966  ac_status=$?
30967  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30968  test $ac_status = 0; }
30969
30970fi
30971
30972
30973if test ${san_FLAGS+y}
30974then :
30975
30976  case " $san_FLAGS " in #(
30977  *" -fsanitize-undefined-trap-on-error "*) :
30978    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS already contains -fsanitize-undefined-trap-on-error"; } >&5
30979  (: san_FLAGS already contains -fsanitize-undefined-trap-on-error) 2>&5
30980  ac_status=$?
30981  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30982  test $ac_status = 0; } ;; #(
30983  *) :
30984
30985     as_fn_append san_FLAGS " -fsanitize-undefined-trap-on-error"
30986     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5
30987  (: san_FLAGS="$san_FLAGS") 2>&5
30988  ac_status=$?
30989  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30990  test $ac_status = 0; }
30991     ;;
30992esac
30993
30994else $as_nop
30995
30996  san_FLAGS=-fsanitize-undefined-trap-on-error
30997  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5
30998  (: san_FLAGS="$san_FLAGS") 2>&5
30999  ac_status=$?
31000  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31001  test $ac_status = 0; }
31002
31003fi
31004
31005                   enabled_sanitizers="${enabled_sanitizers}${enabled_sanitizers:+, }undefined"
31006                   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Enabled sanitizer without run-time library, error reporting will be limited" >&5
31007printf "%s\n" "$as_me: WARNING: Enabled sanitizer without run-time library, error reporting will be limited" >&2;}
31008
31009else $as_nop
31010
31011                   if test -z "${enabled_sanitizers}"
31012then :
31013
31014                       # Last resort
31015                       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for undefined behavior sanitizer with '-fsanitize-trap=all'" >&5
31016printf %s "checking for undefined behavior sanitizer with '-fsanitize-trap=all'... " >&6; }
31017if test ${mhd_cv_cc_sanitizer_undefined_trap_all+y}
31018then :
31019  printf %s "(cached) " >&6
31020else $as_nop
31021
31022                           CFLAGS="${saved_CFLAGS} ${san_FLAGS} ${san_CFLAGS} -fsanitize=undefined -fsanitize-trap=all"
31023                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31024/* end confdefs.h.  */
31025${test_undf_prog}
31026_ACEOF
31027if ac_fn_c_try_link "$LINENO"
31028then :
31029  mhd_cv_cc_sanitizer_undefined_trap_all=yes
31030else $as_nop
31031  mhd_cv_cc_sanitizer_undefined_trap_all=no
31032fi
31033rm -f core conftest.err conftest.$ac_objext conftest.beam \
31034    conftest$ac_exeext conftest.$ac_ext
31035
31036
31037fi
31038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_sanitizer_undefined_trap_all" >&5
31039printf "%s\n" "$mhd_cv_cc_sanitizer_undefined_trap_all" >&6; }
31040                       if test "x$mhd_cv_cc_sanitizer_undefined_trap_all" = x"yes"
31041then :
31042
31043
31044if test ${san_FLAGS+y}
31045then :
31046
31047  case " $san_FLAGS " in #(
31048  *" -fsanitize=undefined "*) :
31049    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS already contains -fsanitize=undefined"; } >&5
31050  (: san_FLAGS already contains -fsanitize=undefined) 2>&5
31051  ac_status=$?
31052  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31053  test $ac_status = 0; } ;; #(
31054  *) :
31055
31056     as_fn_append san_FLAGS " -fsanitize=undefined"
31057     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5
31058  (: san_FLAGS="$san_FLAGS") 2>&5
31059  ac_status=$?
31060  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31061  test $ac_status = 0; }
31062     ;;
31063esac
31064
31065else $as_nop
31066
31067  san_FLAGS=-fsanitize=undefined
31068  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5
31069  (: san_FLAGS="$san_FLAGS") 2>&5
31070  ac_status=$?
31071  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31072  test $ac_status = 0; }
31073
31074fi
31075
31076
31077if test ${san_FLAGS+y}
31078then :
31079
31080  case " $san_FLAGS " in #(
31081  *" -fsanitize-trap=all "*) :
31082    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS already contains -fsanitize-trap=all"; } >&5
31083  (: san_FLAGS already contains -fsanitize-trap=all) 2>&5
31084  ac_status=$?
31085  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31086  test $ac_status = 0; } ;; #(
31087  *) :
31088
31089     as_fn_append san_FLAGS " -fsanitize-trap=all"
31090     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5
31091  (: san_FLAGS="$san_FLAGS") 2>&5
31092  ac_status=$?
31093  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31094  test $ac_status = 0; }
31095     ;;
31096esac
31097
31098else $as_nop
31099
31100  san_FLAGS=-fsanitize-trap=all
31101  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5
31102  (: san_FLAGS="$san_FLAGS") 2>&5
31103  ac_status=$?
31104  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31105  test $ac_status = 0; }
31106
31107fi
31108
31109                           CFLAGS="${saved_CFLAGS} ${san_FLAGS} ${san_CFLAGS} -fsanitize=undefined -fsanitize-trap=all"
31110                           enabled_sanitizers="${enabled_sanitizers}${enabled_sanitizers:+, }undefined"
31111                           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Enabled sanitizer without run-time library, error reporting will be limited" >&5
31112printf "%s\n" "$as_me: WARNING: Enabled sanitizer without run-time library, error reporting will be limited" >&2;}
31113
31114
31115fi
31116
31117
31118fi
31119
31120
31121fi
31122
31123
31124fi
31125           case "$enabled_sanitizers" in #(
31126  *undefined) :
31127
31128               if test "x$mhd_cv_cc_sanitizer_undefined" = x"yes"
31129then :
31130
31131else $as_nop
31132
31133                   # A workaround for broken clang which is trying to use UBSan lib
31134                   # even when instructed to not use it
31135                   CFLAGS="${saved_CFLAGS} ${san_FLAGS} ${san_CFLAGS}"
31136
31137
31138
31139
31140for flag in -fsanitize-trap=implicit-conversion; do
31141  as_CACHEVAR=`printf "%s\n" "ax_cv_check_ldflags__$flag" | $as_tr_sh`
31142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
31143printf %s "checking whether the linker accepts $flag... " >&6; }
31144if eval test \${$as_CACHEVAR+y}
31145then :
31146  printf %s "(cached) " >&6
31147else $as_nop
31148
31149  ax_check_save_flags=$LDFLAGS
31150  LDFLAGS="$LDFLAGS  $flag"
31151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31152/* end confdefs.h.  */
31153${test_undf_prog}
31154_ACEOF
31155if ac_fn_c_try_link "$LINENO"
31156then :
31157  eval "$as_CACHEVAR=yes"
31158else $as_nop
31159  eval "$as_CACHEVAR=no"
31160fi
31161rm -f core conftest.err conftest.$ac_objext conftest.beam \
31162    conftest$ac_exeext conftest.$ac_ext
31163  LDFLAGS=$ax_check_save_flags
31164fi
31165eval ac_res=\$$as_CACHEVAR
31166	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31167printf "%s\n" "$ac_res" >&6; }
31168if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
31169then :
31170
31171if test ${san_FLAGS+y}
31172then :
31173
31174  case " $san_FLAGS " in #(
31175  *" $flag "*) :
31176    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS already contains \$flag"; } >&5
31177  (: san_FLAGS already contains $flag) 2>&5
31178  ac_status=$?
31179  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31180  test $ac_status = 0; } ;; #(
31181  *) :
31182
31183     as_fn_append san_FLAGS " $flag"
31184     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5
31185  (: san_FLAGS="$san_FLAGS") 2>&5
31186  ac_status=$?
31187  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31188  test $ac_status = 0; }
31189     ;;
31190esac
31191
31192else $as_nop
31193
31194  san_FLAGS=$flag
31195  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5
31196  (: san_FLAGS="$san_FLAGS") 2>&5
31197  ac_status=$?
31198  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31199  test $ac_status = 0; }
31200
31201fi
31202
31203else $as_nop
31204  :
31205fi
31206
31207done
31208
31209
31210
31211fi
31212               CFLAGS="${saved_CFLAGS} ${san_FLAGS} ${san_CFLAGS}"
31213
31214
31215
31216
31217for flag in -fsanitize=bounds-strict -fsanitize=local-bounds -fsanitize=implicit-conversion -fsanitize=nullability-arg; do
31218  as_CACHEVAR=`printf "%s\n" "ax_cv_check_ldflags__$flag" | $as_tr_sh`
31219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
31220printf %s "checking whether the linker accepts $flag... " >&6; }
31221if eval test \${$as_CACHEVAR+y}
31222then :
31223  printf %s "(cached) " >&6
31224else $as_nop
31225
31226  ax_check_save_flags=$LDFLAGS
31227  LDFLAGS="$LDFLAGS  $flag"
31228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31229/* end confdefs.h.  */
31230${test_undf_prog}
31231_ACEOF
31232if ac_fn_c_try_link "$LINENO"
31233then :
31234  eval "$as_CACHEVAR=yes"
31235else $as_nop
31236  eval "$as_CACHEVAR=no"
31237fi
31238rm -f core conftest.err conftest.$ac_objext conftest.beam \
31239    conftest$ac_exeext conftest.$ac_ext
31240  LDFLAGS=$ax_check_save_flags
31241fi
31242eval ac_res=\$$as_CACHEVAR
31243	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31244printf "%s\n" "$ac_res" >&6; }
31245if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
31246then :
31247
31248if test ${san_CFLAGS+y}
31249then :
31250
31251  case " $san_CFLAGS " in #(
31252  *" $flag "*) :
31253    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_CFLAGS already contains \$flag"; } >&5
31254  (: san_CFLAGS already contains $flag) 2>&5
31255  ac_status=$?
31256  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31257  test $ac_status = 0; } ;; #(
31258  *) :
31259
31260     as_fn_append san_CFLAGS " $flag"
31261     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_CFLAGS=\"\$san_CFLAGS\""; } >&5
31262  (: san_CFLAGS="$san_CFLAGS") 2>&5
31263  ac_status=$?
31264  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31265  test $ac_status = 0; }
31266     ;;
31267esac
31268
31269else $as_nop
31270
31271  san_CFLAGS=$flag
31272  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_CFLAGS=\"\$san_CFLAGS\""; } >&5
31273  (: san_CFLAGS="$san_CFLAGS") 2>&5
31274  ac_status=$?
31275  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31276  test $ac_status = 0; }
31277
31278fi
31279
31280else $as_nop
31281  :
31282fi
31283
31284done
31285
31286
31287            ;; #(
31288  *) :
31289     ;;
31290esac
31291           { test_undf_prog=; unset test_undf_prog;}
31292           case "$enabled_sanitizers" in #(
31293  *undefined) :
31294    enable_san_undef="yes" ;; #(
31295  *) :
31296
31297               if test "x$enable_san_undef" = xyes
31298then :
31299  as_fn_error $? "Undefined behavior sanitizer cannot be enabled" "$LINENO" 5
31300fi
31301               enable_san_undef="no"
31302
31303            ;;
31304esac
31305
31306
31307fi
31308       if test "x$enable_san_leak" = x"no"
31309then :
31310  :
31311else $as_nop
31312
31313           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for leak sanitizer" >&5
31314printf %s "checking for leak sanitizer... " >&6; }
31315if test ${mhd_cv_cc_sanitizer_leak+y}
31316then :
31317  printf %s "(cached) " >&6
31318else $as_nop
31319
31320               CFLAGS="${saved_CFLAGS} ${san_FLAGS} ${san_CFLAGS} -fsanitize=leak"
31321               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31322/* end confdefs.h.  */
31323
31324int
31325main (void)
31326{
31327
31328  ;
31329  return 0;
31330}
31331_ACEOF
31332if ac_fn_c_try_link "$LINENO"
31333then :
31334  mhd_cv_cc_sanitizer_leak=yes
31335else $as_nop
31336  mhd_cv_cc_sanitizer_leak=no
31337fi
31338rm -f core conftest.err conftest.$ac_objext conftest.beam \
31339    conftest$ac_exeext conftest.$ac_ext
31340
31341
31342fi
31343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_sanitizer_leak" >&5
31344printf "%s\n" "$mhd_cv_cc_sanitizer_leak" >&6; }
31345           if test "x$mhd_cv_cc_sanitizer_leak" = x"yes"
31346then :
31347
31348
31349if test ${san_FLAGS+y}
31350then :
31351
31352  case " $san_FLAGS " in #(
31353  *" -fsanitize=leak "*) :
31354    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS already contains -fsanitize=leak"; } >&5
31355  (: san_FLAGS already contains -fsanitize=leak) 2>&5
31356  ac_status=$?
31357  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31358  test $ac_status = 0; } ;; #(
31359  *) :
31360
31361     as_fn_append san_FLAGS " -fsanitize=leak"
31362     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5
31363  (: san_FLAGS="$san_FLAGS") 2>&5
31364  ac_status=$?
31365  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31366  test $ac_status = 0; }
31367     ;;
31368esac
31369
31370else $as_nop
31371
31372  san_FLAGS=-fsanitize=leak
31373  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5
31374  (: san_FLAGS="$san_FLAGS") 2>&5
31375  ac_status=$?
31376  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31377  test $ac_status = 0; }
31378
31379fi
31380
31381               enabled_sanitizers="${enabled_sanitizers}${enabled_sanitizers:+, }leak"
31382
31383
31384fi
31385           if test "x${enable_san_leak}" = "xyes" && test "x${mhd_cv_cc_sanitizer_leak}" != "xyes"
31386then :
31387  as_fn_error $? "User poison cannot be enabled" "$LINENO" 5
31388
31389fi
31390           enable_san_leak="${mhd_cv_cc_sanitizer_leak}"
31391
31392
31393fi
31394       if test -z "${enabled_sanitizers}"
31395then :
31396  as_fn_error $? "cannot find any sanitizer supported by $CC" "$LINENO" 5
31397fi
31398       if test "x$enable_san_upoison" = x"no"
31399then :
31400  :
31401else $as_nop
31402
31403           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable user memory poisoning" >&5
31404printf %s "checking whether to enable user memory poisoning... " >&6; }
31405           if test "x${mhd_cv_cc_sanitizer_address}" = "xyes" && test "x${mhd_cv_cc_sanitizer_pointer_compare}" = "xyes" && \
31406             test "x${ac_cv_header_sanitizer_asan_interface_h}" = "xyes" && \
31407             (test "x${mhd_cv_func_attribute_nosanitize_ptr}" = "xyes" || test "x${mhd_cv_func_attribute_nosanitize_addr}" = "xyes")
31408then :
31409
31410
31411printf "%s\n" "#define MHD_ASAN_POISON_ACTIVE 1" >>confdefs.h
31412
31413               enabled_sanitizers="${enabled_sanitizers}${enabled_sanitizers:+, }user-poison"
31414               enable_san_upoison="yes"
31415               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31416printf "%s\n" "yes" >&6; }
31417
31418else $as_nop
31419
31420               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31421printf "%s\n" "no" >&6; }
31422               if test "x$enable_san_upoison" = x"yes"
31423then :
31424  as_fn_error $? "User memory poisoning cannot be enabled" "$LINENO" 5
31425fi
31426               enable_san_upoison="no"
31427
31428
31429fi
31430
31431
31432fi
31433       if test "x$enable_san_address" = x"yes"
31434then :
31435
31436           if test "x$mhd_cv_cc_sanitizer_address" = x"yes"
31437then :
31438
31439
31440if test ${san_CFLAGS+y}
31441then :
31442
31443  case " $san_CFLAGS " in #(
31444  *" -D_FORTIFY_SOURCE=0 "*) :
31445    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_CFLAGS already contains -D_FORTIFY_SOURCE=0"; } >&5
31446  (: san_CFLAGS already contains -D_FORTIFY_SOURCE=0) 2>&5
31447  ac_status=$?
31448  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31449  test $ac_status = 0; } ;; #(
31450  *) :
31451
31452     as_fn_append san_CFLAGS " -D_FORTIFY_SOURCE=0"
31453     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_CFLAGS=\"\$san_CFLAGS\""; } >&5
31454  (: san_CFLAGS="$san_CFLAGS") 2>&5
31455  ac_status=$?
31456  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31457  test $ac_status = 0; }
31458     ;;
31459esac
31460
31461else $as_nop
31462
31463  san_CFLAGS=-D_FORTIFY_SOURCE=0
31464  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_CFLAGS=\"\$san_CFLAGS\""; } >&5
31465  (: san_CFLAGS="$san_CFLAGS") 2>&5
31466  ac_status=$?
31467  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31468  test $ac_status = 0; }
31469
31470fi
31471
31472               CFLAGS="${saved_CFLAGS} ${san_FLAGS} ${san_CFLAGS}"
31473
31474
31475
31476
31477for flag in -Wp,-U_FORTIFY_SOURCE; do
31478  as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
31479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
31480printf %s "checking whether C compiler accepts $flag... " >&6; }
31481if eval test \${$as_CACHEVAR+y}
31482then :
31483  printf %s "(cached) " >&6
31484else $as_nop
31485
31486  ax_check_save_flags=$CFLAGS
31487  CFLAGS="$CFLAGS  $flag"
31488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31489/* end confdefs.h.  */
31490
31491int
31492main (void)
31493{
31494
31495  ;
31496  return 0;
31497}
31498_ACEOF
31499if ac_fn_c_try_compile "$LINENO"
31500then :
31501  eval "$as_CACHEVAR=yes"
31502else $as_nop
31503  eval "$as_CACHEVAR=no"
31504fi
31505rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31506  CFLAGS=$ax_check_save_flags
31507fi
31508eval ac_res=\$$as_CACHEVAR
31509	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31510printf "%s\n" "$ac_res" >&6; }
31511if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
31512then :
31513
31514if test ${san_CFLAGS+y}
31515then :
31516
31517  case " $san_CFLAGS " in #(
31518  *" $flag "*) :
31519    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_CFLAGS already contains \$flag"; } >&5
31520  (: san_CFLAGS already contains $flag) 2>&5
31521  ac_status=$?
31522  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31523  test $ac_status = 0; } ;; #(
31524  *) :
31525
31526     as_fn_append san_CFLAGS " $flag"
31527     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_CFLAGS=\"\$san_CFLAGS\""; } >&5
31528  (: san_CFLAGS="$san_CFLAGS") 2>&5
31529  ac_status=$?
31530  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31531  test $ac_status = 0; }
31532     ;;
31533esac
31534
31535else $as_nop
31536
31537  san_CFLAGS=$flag
31538  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_CFLAGS=\"\$san_CFLAGS\""; } >&5
31539  (: san_CFLAGS="$san_CFLAGS") 2>&5
31540  ac_status=$?
31541  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31542  test $ac_status = 0; }
31543
31544fi
31545
31546else $as_nop
31547  :
31548fi
31549
31550done
31551
31552
31553else $as_nop
31554  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $CC does not support address sanitizer" >&5
31555printf "%s\n" "$as_me: WARNING: $CC does not support address sanitizer" >&2;}
31556
31557fi
31558
31559
31560fi
31561       CFLAGS="${saved_CFLAGS} ${san_FLAGS} ${san_CFLAGS}"
31562       # Always stop on sanitizer error
31563
31564
31565
31566
31567for flag in -fno-sanitize-recover=all; do
31568  as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
31569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
31570printf %s "checking whether C compiler accepts $flag... " >&6; }
31571if eval test \${$as_CACHEVAR+y}
31572then :
31573  printf %s "(cached) " >&6
31574else $as_nop
31575
31576  ax_check_save_flags=$CFLAGS
31577  CFLAGS="$CFLAGS  $flag"
31578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31579/* end confdefs.h.  */
31580
31581int
31582main (void)
31583{
31584
31585  ;
31586  return 0;
31587}
31588_ACEOF
31589if ac_fn_c_try_compile "$LINENO"
31590then :
31591  eval "$as_CACHEVAR=yes"
31592else $as_nop
31593  eval "$as_CACHEVAR=no"
31594fi
31595rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31596  CFLAGS=$ax_check_save_flags
31597fi
31598eval ac_res=\$$as_CACHEVAR
31599	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31600printf "%s\n" "$ac_res" >&6; }
31601if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
31602then :
31603
31604if test ${san_CFLAGS+y}
31605then :
31606
31607  case " $san_CFLAGS " in #(
31608  *" $flag "*) :
31609    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_CFLAGS already contains \$flag"; } >&5
31610  (: san_CFLAGS already contains $flag) 2>&5
31611  ac_status=$?
31612  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31613  test $ac_status = 0; } ;; #(
31614  *) :
31615
31616     as_fn_append san_CFLAGS " $flag"
31617     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_CFLAGS=\"\$san_CFLAGS\""; } >&5
31618  (: san_CFLAGS="$san_CFLAGS") 2>&5
31619  ac_status=$?
31620  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31621  test $ac_status = 0; }
31622     ;;
31623esac
31624
31625else $as_nop
31626
31627  san_CFLAGS=$flag
31628  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_CFLAGS=\"\$san_CFLAGS\""; } >&5
31629  (: san_CFLAGS="$san_CFLAGS") 2>&5
31630  ac_status=$?
31631  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31632  test $ac_status = 0; }
31633
31634fi
31635
31636else $as_nop
31637  :
31638fi
31639
31640done
31641
31642       # Get a better output for sanitizers error reporting
31643
31644
31645
31646
31647for flag in -fno-omit-frame-pointer -fno-optimize-sibling-calls; do
31648  as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
31649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
31650printf %s "checking whether C compiler accepts $flag... " >&6; }
31651if eval test \${$as_CACHEVAR+y}
31652then :
31653  printf %s "(cached) " >&6
31654else $as_nop
31655
31656  ax_check_save_flags=$CFLAGS
31657  CFLAGS="$CFLAGS  $flag"
31658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31659/* end confdefs.h.  */
31660
31661int
31662main (void)
31663{
31664
31665  ;
31666  return 0;
31667}
31668_ACEOF
31669if ac_fn_c_try_compile "$LINENO"
31670then :
31671  eval "$as_CACHEVAR=yes"
31672else $as_nop
31673  eval "$as_CACHEVAR=no"
31674fi
31675rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31676  CFLAGS=$ax_check_save_flags
31677fi
31678eval ac_res=\$$as_CACHEVAR
31679	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31680printf "%s\n" "$ac_res" >&6; }
31681if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
31682then :
31683
31684if test ${san_CFLAGS+y}
31685then :
31686
31687  case " $san_CFLAGS " in #(
31688  *" $flag "*) :
31689    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_CFLAGS already contains \$flag"; } >&5
31690  (: san_CFLAGS already contains $flag) 2>&5
31691  ac_status=$?
31692  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31693  test $ac_status = 0; } ;; #(
31694  *) :
31695
31696     as_fn_append san_CFLAGS " $flag"
31697     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_CFLAGS=\"\$san_CFLAGS\""; } >&5
31698  (: san_CFLAGS="$san_CFLAGS") 2>&5
31699  ac_status=$?
31700  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31701  test $ac_status = 0; }
31702     ;;
31703esac
31704
31705else $as_nop
31706
31707  san_CFLAGS=$flag
31708  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_CFLAGS=\"\$san_CFLAGS\""; } >&5
31709  (: san_CFLAGS="$san_CFLAGS") 2>&5
31710  ac_status=$?
31711  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31712  test $ac_status = 0; }
31713
31714fi
31715
31716else $as_nop
31717  :
31718fi
31719
31720done
31721
31722       if test "x$enable_san_address" = x"yes"
31723then :
31724
31725           AM_ASAN_OPTIONS="exitcode=88:strict_string_checks=1:detect_stack_use_after_return=1"
31726           AM_ASAN_OPTIONS="${AM_ASAN_OPTIONS}:check_initialization_order=1:strict_init_order=1:redzone=64"
31727           AM_ASAN_OPTIONS="${AM_ASAN_OPTIONS}:max_free_fill_size=1024:detect_invalid_pointer_pairs=3"
31728           AM_ASAN_OPTIONS="${AM_ASAN_OPTIONS}:handle_ioctl=1:halt_on_error=1"
31729           if test "x$enable_san_upoison" = x"yes"
31730then :
31731  AM_ASAN_OPTIONS="${AM_ASAN_OPTIONS}:allow_user_poisoning=1"
31732fi
31733           if test "x$enable_san_leak" = x"yes"
31734then :
31735  if test "x$mhd_cv_cc_sanitizer_address_leak" = x"yes"
31736then :
31737  AM_ASAN_OPTIONS="${AM_ASAN_OPTIONS}:detect_leaks=1"
31738fi
31739
31740else $as_nop
31741  AM_ASAN_OPTIONS="${AM_ASAN_OPTIONS}:detect_leaks=0"
31742
31743fi
31744
31745
31746fi
31747       if test "x$enable_san_undef" = xyes
31748then :
31749  AM_UBSAN_OPTIONS="exitcode=87:print_stacktrace=1:halt_on_error=1"
31750fi
31751       if test "x$enable_san_leak" = x"yes"
31752then :
31753  AM_LSAN_OPTIONS="use_unaligned=1"
31754
31755fi
31756       AM_TESTS_ENVIRONMENT='\
31757ASAN_OPTIONS="$(AM_ASAN_OPTIONS)" ; export ASAN_OPTIONS ; \
31758UBSAN_OPTIONS="$(AM_UBSAN_OPTIONS)" ; export UBSAN_OPTIONS ; \
31759LSAN_OPTIONS="$(AM_LSAN_OPTIONS)" ; export LSAN_OPTIONS ;'
31760
31761
31762fi
31763   CFLAGS="${saved_CFLAGS} ${san_FLAGS} ${san_CFLAGS}"
31764   { saved_CFLAGS=; unset saved_CFLAGS;}
31765
31766
31767fi
31768 if test -n "$enabled_sanitizers" && test "x$mhd_cv_cc_sanitizer_works" = "xyes"; then
31769  USE_SANITIZERS_TRUE=
31770  USE_SANITIZERS_FALSE='#'
31771else
31772  USE_SANITIZERS_TRUE='#'
31773  USE_SANITIZERS_FALSE=
31774fi
31775
31776
31777
31778
31779
31780
31781MHD_LIB_LDFLAGS="$MHD_LIB_LDFLAGS -export-dynamic -no-undefined"
31782
31783
31784
31785
31786
31787
31788
31789
31790
31791
31792
31793
31794# for pkg-config
31795
31796
31797
31798
31799
31800
31801
31802# Used for 'po' directory staff
31803
31804EMPTY_VAR=
31805
31806
31807# We define the paths here, because MinGW/GCC expands paths
31808# passed through the command line ("-DDIR=..."). This would
31809# lead to hard-coded paths ("C:\mingw\mingw\bin...") that do
31810# not contain the actual installation.
31811
31812  prefix_NONE=
31813  exec_prefix_NONE=
31814  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
31815  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
31816  eval ac_define_dir="\"$libdir/libmicrohttpd\""
31817  eval ac_define_dir="\"$ac_define_dir\""
31818  MHD_PLUGIN_INSTALL_PREFIX="$ac_define_dir"
31819
31820
31821printf "%s\n" "#define MHD_PLUGIN_INSTALL_PREFIX \"$ac_define_dir\"" >>confdefs.h
31822
31823  test "$prefix_NONE" && prefix=NONE
31824  test "$exec_prefix_NONE" && exec_prefix=NONE
31825
31826
31827
31828# should experimental code be compiled (code that may not yet compile)?
31829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to compile experimental code" >&5
31830printf %s "checking whether to compile experimental code... " >&6; }
31831# Check whether --enable-experimental was given.
31832if test ${enable_experimental+y}
31833then :
31834  enableval=$enable_experimental; enable_experimental=${enableval}
31835else $as_nop
31836  enable_experimental=no
31837fi
31838
31839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_experimental" >&5
31840printf "%s\n" "$enable_experimental" >&6; }
31841 if test "x$enable_experimental" = "xyes"; then
31842  HAVE_EXPERIMENTAL_TRUE=
31843  HAVE_EXPERIMENTAL_FALSE='#'
31844else
31845  HAVE_EXPERIMENTAL_TRUE='#'
31846  HAVE_EXPERIMENTAL_FALSE=
31847fi
31848
31849
31850
31851ac_config_files="$ac_config_files libmicrohttpd.pc w32/common/microhttpd_dll_res_vc.rc Makefile contrib/Makefile doc/Makefile doc/doxygen/libmicrohttpd.doxy doc/doxygen/Makefile doc/examples/Makefile m4/Makefile src/Makefile src/include/Makefile src/lib/Makefile src/microhttpd/Makefile src/microhttpd_ws/Makefile src/examples/Makefile src/testcurl/Makefile src/testcurl/https/Makefile src/testzzuf/Makefile"
31852
31853cat >confcache <<\_ACEOF
31854# This file is a shell script that caches the results of configure
31855# tests run on this system so they can be shared between configure
31856# scripts and configure runs, see configure's option --config-cache.
31857# It is not useful on other systems.  If it contains results you don't
31858# want to keep, you may remove or edit it.
31859#
31860# config.status only pays attention to the cache file if you give it
31861# the --recheck option to rerun configure.
31862#
31863# `ac_cv_env_foo' variables (set or unset) will be overridden when
31864# loading this file, other *unset* `ac_cv_foo' will be assigned the
31865# following values.
31866
31867_ACEOF
31868
31869# The following way of writing the cache mishandles newlines in values,
31870# but we know of no workaround that is simple, portable, and efficient.
31871# So, we kill variables containing newlines.
31872# Ultrix sh set writes to stderr and can't be redirected directly,
31873# and sets the high bit in the cache file unless we assign to the vars.
31874(
31875  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31876    eval ac_val=\$$ac_var
31877    case $ac_val in #(
31878    *${as_nl}*)
31879      case $ac_var in #(
31880      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31881printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31882      esac
31883      case $ac_var in #(
31884      _ | IFS | as_nl) ;; #(
31885      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31886      *) { eval $ac_var=; unset $ac_var;} ;;
31887      esac ;;
31888    esac
31889  done
31890
31891  (set) 2>&1 |
31892    case $as_nl`(ac_space=' '; set) 2>&1` in #(
31893    *${as_nl}ac_space=\ *)
31894      # `set' does not quote correctly, so add quotes: double-quote
31895      # substitution turns \\\\ into \\, and sed turns \\ into \.
31896      sed -n \
31897	"s/'/'\\\\''/g;
31898	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31899      ;; #(
31900    *)
31901      # `set' quotes correctly as required by POSIX, so do not add quotes.
31902      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31903      ;;
31904    esac |
31905    sort
31906) |
31907  sed '
31908     /^ac_cv_env_/b end
31909     t clear
31910     :clear
31911     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
31912     t end
31913     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31914     :end' >>confcache
31915if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31916  if test -w "$cache_file"; then
31917    if test "x$cache_file" != "x/dev/null"; then
31918      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31919printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
31920      if test ! -f "$cache_file" || test -h "$cache_file"; then
31921	cat confcache >"$cache_file"
31922      else
31923        case $cache_file in #(
31924        */* | ?:*)
31925	  mv -f confcache "$cache_file"$$ &&
31926	  mv -f "$cache_file"$$ "$cache_file" ;; #(
31927        *)
31928	  mv -f confcache "$cache_file" ;;
31929	esac
31930      fi
31931    fi
31932  else
31933    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31934printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
31935  fi
31936fi
31937rm -f confcache
31938
31939test "x$prefix" = xNONE && prefix=$ac_default_prefix
31940# Let make expand exec_prefix.
31941test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31942
31943DEFS=-DHAVE_CONFIG_H
31944
31945ac_libobjs=
31946ac_ltlibobjs=
31947U=
31948for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31949  # 1. Remove the extension, and $U if already installed.
31950  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31951  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
31952  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
31953  #    will be set to the directory where LIBOBJS objects are built.
31954  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31955  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31956done
31957LIBOBJS=$ac_libobjs
31958
31959LTLIBOBJS=$ac_ltlibobjs
31960
31961
31962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
31963printf %s "checking that generated files are newer than configure... " >&6; }
31964   if test -n "$am_sleep_pid"; then
31965     # Hide warnings about reused PIDs.
31966     wait $am_sleep_pid 2>/dev/null
31967   fi
31968   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
31969printf "%s\n" "done" >&6; }
31970 if test -n "$EXEEXT"; then
31971  am__EXEEXT_TRUE=
31972  am__EXEEXT_FALSE='#'
31973else
31974  am__EXEEXT_TRUE='#'
31975  am__EXEEXT_FALSE=
31976fi
31977
31978if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
31979  as_fn_error $? "conditional \"AMDEP\" was never defined.
31980Usually this means the macro was only invoked conditionally." "$LINENO" 5
31981fi
31982if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31983  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
31984Usually this means the macro was only invoked conditionally." "$LINENO" 5
31985fi
31986if test -z "${MHD_HAVE_TSEARCH_TRUE}" && test -z "${MHD_HAVE_TSEARCH_FALSE}"; then
31987  as_fn_error $? "conditional \"MHD_HAVE_TSEARCH\" was never defined.
31988Usually this means the macro was only invoked conditionally." "$LINENO" 5
31989fi
31990if test -z "${HAVE_PO_TRUE}" && test -z "${HAVE_PO_FALSE}"; then
31991  as_fn_error $? "conditional \"HAVE_PO\" was never defined.
31992Usually this means the macro was only invoked conditionally." "$LINENO" 5
31993fi
31994if test -z "${CYGWIN_TARGET_TRUE}" && test -z "${CYGWIN_TARGET_FALSE}"; then
31995  as_fn_error $? "conditional \"CYGWIN_TARGET\" was never defined.
31996Usually this means the macro was only invoked conditionally." "$LINENO" 5
31997fi
31998if test -z "${HAVE_POSIX_THREADS_TRUE}" && test -z "${HAVE_POSIX_THREADS_FALSE}"; then
31999  as_fn_error $? "conditional \"HAVE_POSIX_THREADS\" was never defined.
32000Usually this means the macro was only invoked conditionally." "$LINENO" 5
32001fi
32002if test -z "${USE_POSIX_THREADS_TRUE}" && test -z "${USE_POSIX_THREADS_FALSE}"; then
32003  as_fn_error $? "conditional \"USE_POSIX_THREADS\" was never defined.
32004Usually this means the macro was only invoked conditionally." "$LINENO" 5
32005fi
32006if test -z "${USE_W32_THREADS_TRUE}" && test -z "${USE_W32_THREADS_FALSE}"; then
32007  as_fn_error $? "conditional \"USE_W32_THREADS\" was never defined.
32008Usually this means the macro was only invoked conditionally." "$LINENO" 5
32009fi
32010if test -z "${USE_THREADS_TRUE}" && test -z "${USE_THREADS_FALSE}"; then
32011  as_fn_error $? "conditional \"USE_THREADS\" was never defined.
32012Usually this means the macro was only invoked conditionally." "$LINENO" 5
32013fi
32014if test -z "${DISABLE_THREADS_TRUE}" && test -z "${DISABLE_THREADS_FALSE}"; then
32015  as_fn_error $? "conditional \"DISABLE_THREADS\" was never defined.
32016Usually this means the macro was only invoked conditionally." "$LINENO" 5
32017fi
32018if test -z "${HAVE_W32_TRUE}" && test -z "${HAVE_W32_FALSE}"; then
32019  as_fn_error $? "conditional \"HAVE_W32\" was never defined.
32020Usually this means the macro was only invoked conditionally." "$LINENO" 5
32021fi
32022if test -z "${W32_SHARED_LIB_EXP_TRUE}" && test -z "${W32_SHARED_LIB_EXP_FALSE}"; then
32023  as_fn_error $? "conditional \"W32_SHARED_LIB_EXP\" was never defined.
32024Usually this means the macro was only invoked conditionally." "$LINENO" 5
32025fi
32026if test -z "${USE_MS_LIB_TOOL_TRUE}" && test -z "${USE_MS_LIB_TOOL_FALSE}"; then
32027  as_fn_error $? "conditional \"USE_MS_LIB_TOOL\" was never defined.
32028Usually this means the macro was only invoked conditionally." "$LINENO" 5
32029fi
32030if test -z "${USE_EXPORT_FILE_TRUE}" && test -z "${USE_EXPORT_FILE_FALSE}"; then
32031  as_fn_error $? "conditional \"USE_EXPORT_FILE\" was never defined.
32032Usually this means the macro was only invoked conditionally." "$LINENO" 5
32033fi
32034if test -z "${HAVE_LISTEN_SHUTDOWN_TRUE}" && test -z "${HAVE_LISTEN_SHUTDOWN_FALSE}"; then
32035  as_fn_error $? "conditional \"HAVE_LISTEN_SHUTDOWN\" was never defined.
32036Usually this means the macro was only invoked conditionally." "$LINENO" 5
32037fi
32038
32039if test -z "${HAVE_CURL_BINARY_TRUE}" && test -z "${HAVE_CURL_BINARY_FALSE}"; then
32040  as_fn_error $? "conditional \"HAVE_CURL_BINARY\" was never defined.
32041Usually this means the macro was only invoked conditionally." "$LINENO" 5
32042fi
32043if test -z "${HAVE_MAKEINFO_BINARY_TRUE}" && test -z "${HAVE_MAKEINFO_BINARY_FALSE}"; then
32044  as_fn_error $? "conditional \"HAVE_MAKEINFO_BINARY\" was never defined.
32045Usually this means the macro was only invoked conditionally." "$LINENO" 5
32046fi
32047if test -z "${W32_STATIC_LIB_TRUE}" && test -z "${W32_STATIC_LIB_FALSE}"; then
32048  as_fn_error $? "conditional \"W32_STATIC_LIB\" was never defined.
32049Usually this means the macro was only invoked conditionally." "$LINENO" 5
32050fi
32051if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
32052  as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
32053Usually this means the macro was only invoked conditionally." "$LINENO" 5
32054fi
32055if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
32056  as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
32057Usually this means the macro was only invoked conditionally." "$LINENO" 5
32058fi
32059if test -z "${HEAVY_TESTS_TRUE}" && test -z "${HEAVY_TESTS_FALSE}"; then
32060  as_fn_error $? "conditional \"HEAVY_TESTS\" was never defined.
32061Usually this means the macro was only invoked conditionally." "$LINENO" 5
32062fi
32063if test -z "${MHD_HAVE_EPOLL_TRUE}" && test -z "${MHD_HAVE_EPOLL_FALSE}"; then
32064  as_fn_error $? "conditional \"MHD_HAVE_EPOLL\" was never defined.
32065Usually this means the macro was only invoked conditionally." "$LINENO" 5
32066fi
32067if test -z "${MHD_HAVE_TLS_PLUGIN_TRUE}" && test -z "${MHD_HAVE_TLS_PLUGIN_FALSE}"; then
32068  as_fn_error $? "conditional \"MHD_HAVE_TLS_PLUGIN\" was never defined.
32069Usually this means the macro was only invoked conditionally." "$LINENO" 5
32070fi
32071if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
32072  as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined.
32073Usually this means the macro was only invoked conditionally." "$LINENO" 5
32074fi
32075if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then
32076  as_fn_error $? "conditional \"HAVE_CURL\" was never defined.
32077Usually this means the macro was only invoked conditionally." "$LINENO" 5
32078fi
32079if test -z "${MHD_HAVE_LIBMAGIC_TRUE}" && test -z "${MHD_HAVE_LIBMAGIC_FALSE}"; then
32080  as_fn_error $? "conditional \"MHD_HAVE_LIBMAGIC\" was never defined.
32081Usually this means the macro was only invoked conditionally." "$LINENO" 5
32082fi
32083if test -z "${HAVE_POSTPROCESSOR_TRUE}" && test -z "${HAVE_POSTPROCESSOR_FALSE}"; then
32084  as_fn_error $? "conditional \"HAVE_POSTPROCESSOR\" was never defined.
32085Usually this means the macro was only invoked conditionally." "$LINENO" 5
32086fi
32087if test -z "${HAVE_ZZUF_TRUE}" && test -z "${HAVE_ZZUF_FALSE}"; then
32088  as_fn_error $? "conditional \"HAVE_ZZUF\" was never defined.
32089Usually this means the macro was only invoked conditionally." "$LINENO" 5
32090fi
32091if test -z "${HAVE_SOCAT_TRUE}" && test -z "${HAVE_SOCAT_FALSE}"; then
32092  as_fn_error $? "conditional \"HAVE_SOCAT\" was never defined.
32093Usually this means the macro was only invoked conditionally." "$LINENO" 5
32094fi
32095if test -z "${HAVE_GNUTLS_TRUE}" && test -z "${HAVE_GNUTLS_FALSE}"; then
32096  as_fn_error $? "conditional \"HAVE_GNUTLS\" was never defined.
32097Usually this means the macro was only invoked conditionally." "$LINENO" 5
32098fi
32099if test -z "${HAVE_GNUTLS_SNI_TRUE}" && test -z "${HAVE_GNUTLS_SNI_FALSE}"; then
32100  as_fn_error $? "conditional \"HAVE_GNUTLS_SNI\" was never defined.
32101Usually this means the macro was only invoked conditionally." "$LINENO" 5
32102fi
32103if test -z "${ENABLE_HTTPS_TRUE}" && test -z "${ENABLE_HTTPS_FALSE}"; then
32104  as_fn_error $? "conditional \"ENABLE_HTTPS\" was never defined.
32105Usually this means the macro was only invoked conditionally." "$LINENO" 5
32106fi
32107if test -z "${HTTPS_REQUIRE_GCRYPT_TRUE}" && test -z "${HTTPS_REQUIRE_GCRYPT_FALSE}"; then
32108  as_fn_error $? "conditional \"HTTPS_REQUIRE_GCRYPT\" was never defined.
32109Usually this means the macro was only invoked conditionally." "$LINENO" 5
32110fi
32111if test -z "${HAVE_GNUTLS_MTHREAD_BROKEN_TRUE}" && test -z "${HAVE_GNUTLS_MTHREAD_BROKEN_FALSE}"; then
32112  as_fn_error $? "conditional \"HAVE_GNUTLS_MTHREAD_BROKEN\" was never defined.
32113Usually this means the macro was only invoked conditionally." "$LINENO" 5
32114fi
32115if test -z "${USE_UPGRADE_TLS_TESTS_TRUE}" && test -z "${USE_UPGRADE_TLS_TESTS_FALSE}"; then
32116  as_fn_error $? "conditional \"USE_UPGRADE_TLS_TESTS\" was never defined.
32117Usually this means the macro was only invoked conditionally." "$LINENO" 5
32118fi
32119if test -z "${ENABLE_BAUTH_TRUE}" && test -z "${ENABLE_BAUTH_FALSE}"; then
32120  as_fn_error $? "conditional \"ENABLE_BAUTH\" was never defined.
32121Usually this means the macro was only invoked conditionally." "$LINENO" 5
32122fi
32123if test -z "${ENABLE_DAUTH_TRUE}" && test -z "${ENABLE_DAUTH_FALSE}"; then
32124  as_fn_error $? "conditional \"ENABLE_DAUTH\" was never defined.
32125Usually this means the macro was only invoked conditionally." "$LINENO" 5
32126fi
32127if test -z "${ENABLE_UPGRADE_TRUE}" && test -z "${ENABLE_UPGRADE_FALSE}"; then
32128  as_fn_error $? "conditional \"ENABLE_UPGRADE\" was never defined.
32129Usually this means the macro was only invoked conditionally." "$LINENO" 5
32130fi
32131if test -z "${HAVE_FORK_WAITPID_TRUE}" && test -z "${HAVE_FORK_WAITPID_FALSE}"; then
32132  as_fn_error $? "conditional \"HAVE_FORK_WAITPID\" was never defined.
32133Usually this means the macro was only invoked conditionally." "$LINENO" 5
32134fi
32135if test -z "${USE_COVERAGE_TRUE}" && test -z "${USE_COVERAGE_FALSE}"; then
32136  as_fn_error $? "conditional \"USE_COVERAGE\" was never defined.
32137Usually this means the macro was only invoked conditionally." "$LINENO" 5
32138fi
32139if test -z "${USE_SANITIZERS_TRUE}" && test -z "${USE_SANITIZERS_FALSE}"; then
32140  as_fn_error $? "conditional \"USE_SANITIZERS\" was never defined.
32141Usually this means the macro was only invoked conditionally." "$LINENO" 5
32142fi
32143if test -z "${HAVE_EXPERIMENTAL_TRUE}" && test -z "${HAVE_EXPERIMENTAL_FALSE}"; then
32144  as_fn_error $? "conditional \"HAVE_EXPERIMENTAL\" was never defined.
32145Usually this means the macro was only invoked conditionally." "$LINENO" 5
32146fi
32147
32148: "${CONFIG_STATUS=./config.status}"
32149ac_write_fail=0
32150ac_clean_files_save=$ac_clean_files
32151ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32153printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
32154as_write_fail=0
32155cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32156#! $SHELL
32157# Generated by $as_me.
32158# Run this file to recreate the current configuration.
32159# Compiler output produced by configure, useful for debugging
32160# configure, is in config.log if it exists.
32161
32162debug=false
32163ac_cs_recheck=false
32164ac_cs_silent=false
32165
32166SHELL=\${CONFIG_SHELL-$SHELL}
32167export SHELL
32168_ASEOF
32169cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32170## -------------------- ##
32171## M4sh Initialization. ##
32172## -------------------- ##
32173
32174# Be more Bourne compatible
32175DUALCASE=1; export DUALCASE # for MKS sh
32176as_nop=:
32177if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
32178then :
32179  emulate sh
32180  NULLCMD=:
32181  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32182  # is contrary to our usage.  Disable this feature.
32183  alias -g '${1+"$@"}'='"$@"'
32184  setopt NO_GLOB_SUBST
32185else $as_nop
32186  case `(set -o) 2>/dev/null` in #(
32187  *posix*) :
32188    set -o posix ;; #(
32189  *) :
32190     ;;
32191esac
32192fi
32193
32194
32195
32196# Reset variables that may have inherited troublesome values from
32197# the environment.
32198
32199# IFS needs to be set, to space, tab, and newline, in precisely that order.
32200# (If _AS_PATH_WALK were called with IFS unset, it would have the
32201# side effect of setting IFS to empty, thus disabling word splitting.)
32202# Quoting is to prevent editors from complaining about space-tab.
32203as_nl='
32204'
32205export as_nl
32206IFS=" ""	$as_nl"
32207
32208PS1='$ '
32209PS2='> '
32210PS4='+ '
32211
32212# Ensure predictable behavior from utilities with locale-dependent output.
32213LC_ALL=C
32214export LC_ALL
32215LANGUAGE=C
32216export LANGUAGE
32217
32218# We cannot yet rely on "unset" to work, but we need these variables
32219# to be unset--not just set to an empty or harmless value--now, to
32220# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
32221# also avoids known problems related to "unset" and subshell syntax
32222# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
32223for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
32224do eval test \${$as_var+y} \
32225  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32226done
32227
32228# Ensure that fds 0, 1, and 2 are open.
32229if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
32230if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
32231if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
32232
32233# The user is always right.
32234if ${PATH_SEPARATOR+false} :; then
32235  PATH_SEPARATOR=:
32236  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32237    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32238      PATH_SEPARATOR=';'
32239  }
32240fi
32241
32242
32243# Find who we are.  Look in the path if we contain no directory separator.
32244as_myself=
32245case $0 in #((
32246  *[\\/]* ) as_myself=$0 ;;
32247  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32248for as_dir in $PATH
32249do
32250  IFS=$as_save_IFS
32251  case $as_dir in #(((
32252    '') as_dir=./ ;;
32253    */) ;;
32254    *) as_dir=$as_dir/ ;;
32255  esac
32256    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
32257  done
32258IFS=$as_save_IFS
32259
32260     ;;
32261esac
32262# We did not find ourselves, most probably we were run as `sh COMMAND'
32263# in which case we are not to be found in the path.
32264if test "x$as_myself" = x; then
32265  as_myself=$0
32266fi
32267if test ! -f "$as_myself"; then
32268  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32269  exit 1
32270fi
32271
32272
32273
32274# as_fn_error STATUS ERROR [LINENO LOG_FD]
32275# ----------------------------------------
32276# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32277# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32278# script with STATUS, using 1 if that was 0.
32279as_fn_error ()
32280{
32281  as_status=$1; test $as_status -eq 0 && as_status=1
32282  if test "$4"; then
32283    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32284    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32285  fi
32286  printf "%s\n" "$as_me: error: $2" >&2
32287  as_fn_exit $as_status
32288} # as_fn_error
32289
32290
32291
32292# as_fn_set_status STATUS
32293# -----------------------
32294# Set $? to STATUS, without forking.
32295as_fn_set_status ()
32296{
32297  return $1
32298} # as_fn_set_status
32299
32300# as_fn_exit STATUS
32301# -----------------
32302# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32303as_fn_exit ()
32304{
32305  set +e
32306  as_fn_set_status $1
32307  exit $1
32308} # as_fn_exit
32309
32310# as_fn_unset VAR
32311# ---------------
32312# Portably unset VAR.
32313as_fn_unset ()
32314{
32315  { eval $1=; unset $1;}
32316}
32317as_unset=as_fn_unset
32318
32319# as_fn_append VAR VALUE
32320# ----------------------
32321# Append the text in VALUE to the end of the definition contained in VAR. Take
32322# advantage of any shell optimizations that allow amortized linear growth over
32323# repeated appends, instead of the typical quadratic growth present in naive
32324# implementations.
32325if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
32326then :
32327  eval 'as_fn_append ()
32328  {
32329    eval $1+=\$2
32330  }'
32331else $as_nop
32332  as_fn_append ()
32333  {
32334    eval $1=\$$1\$2
32335  }
32336fi # as_fn_append
32337
32338# as_fn_arith ARG...
32339# ------------------
32340# Perform arithmetic evaluation on the ARGs, and store the result in the
32341# global $as_val. Take advantage of shells that can avoid forks. The arguments
32342# must be portable across $(()) and expr.
32343if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
32344then :
32345  eval 'as_fn_arith ()
32346  {
32347    as_val=$(( $* ))
32348  }'
32349else $as_nop
32350  as_fn_arith ()
32351  {
32352    as_val=`expr "$@" || test $? -eq 1`
32353  }
32354fi # as_fn_arith
32355
32356
32357if expr a : '\(a\)' >/dev/null 2>&1 &&
32358   test "X`expr 00001 : '.*\(...\)'`" = X001; then
32359  as_expr=expr
32360else
32361  as_expr=false
32362fi
32363
32364if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32365  as_basename=basename
32366else
32367  as_basename=false
32368fi
32369
32370if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32371  as_dirname=dirname
32372else
32373  as_dirname=false
32374fi
32375
32376as_me=`$as_basename -- "$0" ||
32377$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32378	 X"$0" : 'X\(//\)$' \| \
32379	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32380printf "%s\n" X/"$0" |
32381    sed '/^.*\/\([^/][^/]*\)\/*$/{
32382	    s//\1/
32383	    q
32384	  }
32385	  /^X\/\(\/\/\)$/{
32386	    s//\1/
32387	    q
32388	  }
32389	  /^X\/\(\/\).*/{
32390	    s//\1/
32391	    q
32392	  }
32393	  s/.*/./; q'`
32394
32395# Avoid depending upon Character Ranges.
32396as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32397as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32398as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32399as_cr_digits='0123456789'
32400as_cr_alnum=$as_cr_Letters$as_cr_digits
32401
32402
32403# Determine whether it's possible to make 'echo' print without a newline.
32404# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
32405# for compatibility with existing Makefiles.
32406ECHO_C= ECHO_N= ECHO_T=
32407case `echo -n x` in #(((((
32408-n*)
32409  case `echo 'xy\c'` in
32410  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
32411  xy)  ECHO_C='\c';;
32412  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
32413       ECHO_T='	';;
32414  esac;;
32415*)
32416  ECHO_N='-n';;
32417esac
32418
32419# For backward compatibility with old third-party macros, we provide
32420# the shell variables $as_echo and $as_echo_n.  New code should use
32421# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
32422as_echo='printf %s\n'
32423as_echo_n='printf %s'
32424
32425rm -f conf$$ conf$$.exe conf$$.file
32426if test -d conf$$.dir; then
32427  rm -f conf$$.dir/conf$$.file
32428else
32429  rm -f conf$$.dir
32430  mkdir conf$$.dir 2>/dev/null
32431fi
32432if (echo >conf$$.file) 2>/dev/null; then
32433  if ln -s conf$$.file conf$$ 2>/dev/null; then
32434    as_ln_s='ln -s'
32435    # ... but there are two gotchas:
32436    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32437    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32438    # In both cases, we have to default to `cp -pR'.
32439    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32440      as_ln_s='cp -pR'
32441  elif ln conf$$.file conf$$ 2>/dev/null; then
32442    as_ln_s=ln
32443  else
32444    as_ln_s='cp -pR'
32445  fi
32446else
32447  as_ln_s='cp -pR'
32448fi
32449rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32450rmdir conf$$.dir 2>/dev/null
32451
32452
32453# as_fn_mkdir_p
32454# -------------
32455# Create "$as_dir" as a directory, including parents if necessary.
32456as_fn_mkdir_p ()
32457{
32458
32459  case $as_dir in #(
32460  -*) as_dir=./$as_dir;;
32461  esac
32462  test -d "$as_dir" || eval $as_mkdir_p || {
32463    as_dirs=
32464    while :; do
32465      case $as_dir in #(
32466      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32467      *) as_qdir=$as_dir;;
32468      esac
32469      as_dirs="'$as_qdir' $as_dirs"
32470      as_dir=`$as_dirname -- "$as_dir" ||
32471$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32472	 X"$as_dir" : 'X\(//\)[^/]' \| \
32473	 X"$as_dir" : 'X\(//\)$' \| \
32474	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32475printf "%s\n" X"$as_dir" |
32476    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32477	    s//\1/
32478	    q
32479	  }
32480	  /^X\(\/\/\)[^/].*/{
32481	    s//\1/
32482	    q
32483	  }
32484	  /^X\(\/\/\)$/{
32485	    s//\1/
32486	    q
32487	  }
32488	  /^X\(\/\).*/{
32489	    s//\1/
32490	    q
32491	  }
32492	  s/.*/./; q'`
32493      test -d "$as_dir" && break
32494    done
32495    test -z "$as_dirs" || eval "mkdir $as_dirs"
32496  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
32497
32498
32499} # as_fn_mkdir_p
32500if mkdir -p . 2>/dev/null; then
32501  as_mkdir_p='mkdir -p "$as_dir"'
32502else
32503  test -d ./-p && rmdir ./-p
32504  as_mkdir_p=false
32505fi
32506
32507
32508# as_fn_executable_p FILE
32509# -----------------------
32510# Test if FILE is an executable regular file.
32511as_fn_executable_p ()
32512{
32513  test -f "$1" && test -x "$1"
32514} # as_fn_executable_p
32515as_test_x='test -x'
32516as_executable_p=as_fn_executable_p
32517
32518# Sed expression to map a string onto a valid CPP name.
32519as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32520
32521# Sed expression to map a string onto a valid variable name.
32522as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32523
32524
32525exec 6>&1
32526## ----------------------------------- ##
32527## Main body of $CONFIG_STATUS script. ##
32528## ----------------------------------- ##
32529_ASEOF
32530test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
32531
32532cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32533# Save the log message, to keep $0 and so on meaningful, and to
32534# report actual input values of CONFIG_FILES etc. instead of their
32535# values after options handling.
32536ac_log="
32537This file was extended by GNU Libmicrohttpd $as_me 0.9.74, which was
32538generated by GNU Autoconf 2.71.  Invocation command line was
32539
32540  CONFIG_FILES    = $CONFIG_FILES
32541  CONFIG_HEADERS  = $CONFIG_HEADERS
32542  CONFIG_LINKS    = $CONFIG_LINKS
32543  CONFIG_COMMANDS = $CONFIG_COMMANDS
32544  $ $0 $@
32545
32546on `(hostname || uname -n) 2>/dev/null | sed 1q`
32547"
32548
32549_ACEOF
32550
32551case $ac_config_files in *"
32552"*) set x $ac_config_files; shift; ac_config_files=$*;;
32553esac
32554
32555case $ac_config_headers in *"
32556"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32557esac
32558
32559
32560cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32561# Files that config.status was made for.
32562config_files="$ac_config_files"
32563config_headers="$ac_config_headers"
32564config_commands="$ac_config_commands"
32565
32566_ACEOF
32567
32568cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32569ac_cs_usage="\
32570\`$as_me' instantiates files and other configuration actions
32571from templates according to the current configuration.  Unless the files
32572and actions are specified as TAGs, all are instantiated by default.
32573
32574Usage: $0 [OPTION]... [TAG]...
32575
32576  -h, --help       print this help, then exit
32577  -V, --version    print version number and configuration settings, then exit
32578      --config     print configuration, then exit
32579  -q, --quiet, --silent
32580                   do not print progress messages
32581  -d, --debug      don't remove temporary files
32582      --recheck    update $as_me by reconfiguring in the same conditions
32583      --file=FILE[:TEMPLATE]
32584                   instantiate the configuration file FILE
32585      --header=FILE[:TEMPLATE]
32586                   instantiate the configuration header FILE
32587
32588Configuration files:
32589$config_files
32590
32591Configuration headers:
32592$config_headers
32593
32594Configuration commands:
32595$config_commands
32596
32597Report bugs to <libmicrohttpd@gnu.org>.
32598GNU Libmicrohttpd home page: <https://www.gnu.org/software/libmicrohttpd/>.
32599General help using GNU software: <https://www.gnu.org/gethelp/>."
32600
32601_ACEOF
32602ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
32603ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
32604cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32605ac_cs_config='$ac_cs_config_escaped'
32606ac_cs_version="\\
32607GNU Libmicrohttpd config.status 0.9.74
32608configured by $0, generated by GNU Autoconf 2.71,
32609  with options \\"\$ac_cs_config\\"
32610
32611Copyright (C) 2021 Free Software Foundation, Inc.
32612This config.status script is free software; the Free Software Foundation
32613gives unlimited permission to copy, distribute and modify it."
32614
32615ac_pwd='$ac_pwd'
32616srcdir='$srcdir'
32617INSTALL='$INSTALL'
32618MKDIR_P='$MKDIR_P'
32619AWK='$AWK'
32620test -n "\$AWK" || AWK=awk
32621_ACEOF
32622
32623cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32624# The default lists apply if the user does not specify any file.
32625ac_need_defaults=:
32626while test $# != 0
32627do
32628  case $1 in
32629  --*=?*)
32630    ac_option=`expr "X$1" : 'X\([^=]*\)='`
32631    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32632    ac_shift=:
32633    ;;
32634  --*=)
32635    ac_option=`expr "X$1" : 'X\([^=]*\)='`
32636    ac_optarg=
32637    ac_shift=:
32638    ;;
32639  *)
32640    ac_option=$1
32641    ac_optarg=$2
32642    ac_shift=shift
32643    ;;
32644  esac
32645
32646  case $ac_option in
32647  # Handling of the options.
32648  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32649    ac_cs_recheck=: ;;
32650  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32651    printf "%s\n" "$ac_cs_version"; exit ;;
32652  --config | --confi | --conf | --con | --co | --c )
32653    printf "%s\n" "$ac_cs_config"; exit ;;
32654  --debug | --debu | --deb | --de | --d | -d )
32655    debug=: ;;
32656  --file | --fil | --fi | --f )
32657    $ac_shift
32658    case $ac_optarg in
32659    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32660    '') as_fn_error $? "missing file argument" ;;
32661    esac
32662    as_fn_append CONFIG_FILES " '$ac_optarg'"
32663    ac_need_defaults=false;;
32664  --header | --heade | --head | --hea )
32665    $ac_shift
32666    case $ac_optarg in
32667    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32668    esac
32669    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
32670    ac_need_defaults=false;;
32671  --he | --h)
32672    # Conflict between --help and --header
32673    as_fn_error $? "ambiguous option: \`$1'
32674Try \`$0 --help' for more information.";;
32675  --help | --hel | -h )
32676    printf "%s\n" "$ac_cs_usage"; exit ;;
32677  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32678  | -silent | --silent | --silen | --sile | --sil | --si | --s)
32679    ac_cs_silent=: ;;
32680
32681  # This is an error.
32682  -*) as_fn_error $? "unrecognized option: \`$1'
32683Try \`$0 --help' for more information." ;;
32684
32685  *) as_fn_append ac_config_targets " $1"
32686     ac_need_defaults=false ;;
32687
32688  esac
32689  shift
32690done
32691
32692ac_configure_extra_args=
32693
32694if $ac_cs_silent; then
32695  exec 6>/dev/null
32696  ac_configure_extra_args="$ac_configure_extra_args --silent"
32697fi
32698
32699_ACEOF
32700cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32701if \$ac_cs_recheck; then
32702  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32703  shift
32704  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
32705  CONFIG_SHELL='$SHELL'
32706  export CONFIG_SHELL
32707  exec "\$@"
32708fi
32709
32710_ACEOF
32711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32712exec 5>>config.log
32713{
32714  echo
32715  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32716## Running $as_me. ##
32717_ASBOX
32718  printf "%s\n" "$ac_log"
32719} >&5
32720
32721_ACEOF
32722cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32723#
32724# INIT-COMMANDS
32725#
32726AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
32727
32728
32729# The HP-UX ksh and POSIX shell print the target directory to stdout
32730# if CDPATH is set.
32731(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32732
32733sed_quote_subst='$sed_quote_subst'
32734double_quote_subst='$double_quote_subst'
32735delay_variable_subst='$delay_variable_subst'
32736macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
32737macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
32738AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
32739DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
32740OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
32741enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
32742enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
32743pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
32744enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
32745shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
32746SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
32747ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
32748PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
32749host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
32750host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
32751host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
32752build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
32753build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
32754build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
32755SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
32756Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
32757GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
32758EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
32759FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
32760LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
32761NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
32762LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
32763max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
32764ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
32765exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
32766lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
32767lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
32768lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
32769lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
32770lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
32771reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
32772reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
32773deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
32774file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
32775file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
32776want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
32777sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
32778AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
32779AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
32780archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
32781STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
32782RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
32783old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32784old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32785old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
32786lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
32787CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
32788CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
32789compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
32790GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
32791lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
32792lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
32793lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
32794lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
32795lt_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"`'
32796lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
32797nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
32798lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
32799lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
32800objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
32801MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
32802lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
32803lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
32804lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
32805lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
32806lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
32807need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
32808MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
32809DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
32810NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
32811LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
32812OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
32813OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
32814libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
32815shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
32816extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32817archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
32818enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
32819export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
32820whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
32821compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
32822old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
32823old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32824archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
32825archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32826module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
32827module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32828with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
32829allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
32830no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
32831hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
32832hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
32833hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
32834hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
32835hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
32836hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
32837hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
32838inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
32839link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
32840always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
32841export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
32842exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
32843include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
32844prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
32845postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
32846file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
32847variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
32848need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
32849need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
32850version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
32851runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
32852shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
32853shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
32854libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
32855library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
32856soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
32857install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
32858postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32859postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32860finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
32861finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
32862hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
32863sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
32864configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
32865configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
32866hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
32867enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
32868enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
32869enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
32870old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
32871striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
32872LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
32873reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
32874reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
32875old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
32876compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
32877GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
32878lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
32879lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
32880lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
32881lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
32882lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
32883archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
32884enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
32885export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
32886whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
32887compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
32888old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
32889old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
32890archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
32891archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
32892module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
32893module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
32894with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
32895allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
32896no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
32897hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
32898hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
32899hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
32900hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
32901hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
32902hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
32903hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
32904inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
32905link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
32906always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
32907export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
32908exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
32909include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
32910prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
32911postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
32912file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
32913hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
32914
32915LTCC='$LTCC'
32916LTCFLAGS='$LTCFLAGS'
32917compiler='$compiler_DEFAULT'
32918
32919# A function that is used when there is no print builtin or printf.
32920func_fallback_echo ()
32921{
32922  eval 'cat <<_LTECHO_EOF
32923\$1
32924_LTECHO_EOF'
32925}
32926
32927# Quote evaled strings.
32928for var in AS \
32929DLLTOOL \
32930OBJDUMP \
32931SHELL \
32932ECHO \
32933PATH_SEPARATOR \
32934SED \
32935GREP \
32936EGREP \
32937FGREP \
32938LD \
32939NM \
32940LN_S \
32941lt_SP2NL \
32942lt_NL2SP \
32943reload_flag \
32944deplibs_check_method \
32945file_magic_cmd \
32946file_magic_glob \
32947want_nocaseglob \
32948sharedlib_from_linklib_cmd \
32949AR \
32950AR_FLAGS \
32951archiver_list_spec \
32952STRIP \
32953RANLIB \
32954CC \
32955CFLAGS \
32956compiler \
32957lt_cv_sys_global_symbol_pipe \
32958lt_cv_sys_global_symbol_to_cdecl \
32959lt_cv_sys_global_symbol_to_import \
32960lt_cv_sys_global_symbol_to_c_name_address \
32961lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
32962lt_cv_nm_interface \
32963nm_file_list_spec \
32964lt_cv_truncate_bin \
32965lt_prog_compiler_no_builtin_flag \
32966lt_prog_compiler_pic \
32967lt_prog_compiler_wl \
32968lt_prog_compiler_static \
32969lt_cv_prog_compiler_c_o \
32970need_locks \
32971MANIFEST_TOOL \
32972DSYMUTIL \
32973NMEDIT \
32974LIPO \
32975OTOOL \
32976OTOOL64 \
32977shrext_cmds \
32978export_dynamic_flag_spec \
32979whole_archive_flag_spec \
32980compiler_needs_object \
32981with_gnu_ld \
32982allow_undefined_flag \
32983no_undefined_flag \
32984hardcode_libdir_flag_spec \
32985hardcode_libdir_separator \
32986exclude_expsyms \
32987include_expsyms \
32988file_list_spec \
32989variables_saved_for_relink \
32990libname_spec \
32991library_names_spec \
32992soname_spec \
32993install_override_mode \
32994finish_eval \
32995old_striplib \
32996striplib \
32997LD_RC \
32998reload_flag_RC \
32999compiler_RC \
33000lt_prog_compiler_no_builtin_flag_RC \
33001lt_prog_compiler_pic_RC \
33002lt_prog_compiler_wl_RC \
33003lt_prog_compiler_static_RC \
33004lt_cv_prog_compiler_c_o_RC \
33005export_dynamic_flag_spec_RC \
33006whole_archive_flag_spec_RC \
33007compiler_needs_object_RC \
33008with_gnu_ld_RC \
33009allow_undefined_flag_RC \
33010no_undefined_flag_RC \
33011hardcode_libdir_flag_spec_RC \
33012hardcode_libdir_separator_RC \
33013exclude_expsyms_RC \
33014include_expsyms_RC \
33015file_list_spec_RC; do
33016    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
33017    *[\\\\\\\`\\"\\\$]*)
33018      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
33019      ;;
33020    *)
33021      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33022      ;;
33023    esac
33024done
33025
33026# Double-quote double-evaled strings.
33027for var in reload_cmds \
33028old_postinstall_cmds \
33029old_postuninstall_cmds \
33030old_archive_cmds \
33031extract_expsyms_cmds \
33032old_archive_from_new_cmds \
33033old_archive_from_expsyms_cmds \
33034archive_cmds \
33035archive_expsym_cmds \
33036module_cmds \
33037module_expsym_cmds \
33038export_symbols_cmds \
33039prelink_cmds \
33040postlink_cmds \
33041postinstall_cmds \
33042postuninstall_cmds \
33043finish_cmds \
33044sys_lib_search_path_spec \
33045configure_time_dlsearch_path \
33046configure_time_lt_sys_library_path \
33047reload_cmds_RC \
33048old_archive_cmds_RC \
33049old_archive_from_new_cmds_RC \
33050old_archive_from_expsyms_cmds_RC \
33051archive_cmds_RC \
33052archive_expsym_cmds_RC \
33053module_cmds_RC \
33054module_expsym_cmds_RC \
33055export_symbols_cmds_RC \
33056prelink_cmds_RC \
33057postlink_cmds_RC; do
33058    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
33059    *[\\\\\\\`\\"\\\$]*)
33060      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
33061      ;;
33062    *)
33063      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33064      ;;
33065    esac
33066done
33067
33068ac_aux_dir='$ac_aux_dir'
33069
33070# See if we are running on zsh, and set the options that allow our
33071# commands through without removal of \ escapes INIT.
33072if test -n "\${ZSH_VERSION+set}"; then
33073   setopt NO_GLOB_SUBST
33074fi
33075
33076
33077    PACKAGE='$PACKAGE'
33078    VERSION='$VERSION'
33079    RM='$RM'
33080    ofile='$ofile'
33081
33082
33083
33084
33085
33086# Capture the value of obsolete ALL_LINGUAS because we need it to compute
33087    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
33088    OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
33089    # Capture the value of LINGUAS because we need it to compute CATALOGS.
33090    LINGUAS="${LINGUAS-%UNSET%}"
33091
33092
33093_ACEOF
33094
33095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33096
33097# Handling of arguments.
33098for ac_config_target in $ac_config_targets
33099do
33100  case $ac_config_target in
33101    "MHD_config.h") CONFIG_HEADERS="$CONFIG_HEADERS MHD_config.h" ;;
33102    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33103    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33104    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
33105    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
33106    "src/microhttpd/microhttpd_dll_res.rc") CONFIG_FILES="$CONFIG_FILES src/microhttpd/microhttpd_dll_res.rc" ;;
33107    "libmicrohttpd.pc") CONFIG_FILES="$CONFIG_FILES libmicrohttpd.pc" ;;
33108    "w32/common/microhttpd_dll_res_vc.rc") CONFIG_FILES="$CONFIG_FILES w32/common/microhttpd_dll_res_vc.rc" ;;
33109    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33110    "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
33111    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
33112    "doc/doxygen/libmicrohttpd.doxy") CONFIG_FILES="$CONFIG_FILES doc/doxygen/libmicrohttpd.doxy" ;;
33113    "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
33114    "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;;
33115    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
33116    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
33117    "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
33118    "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
33119    "src/microhttpd/Makefile") CONFIG_FILES="$CONFIG_FILES src/microhttpd/Makefile" ;;
33120    "src/microhttpd_ws/Makefile") CONFIG_FILES="$CONFIG_FILES src/microhttpd_ws/Makefile" ;;
33121    "src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;;
33122    "src/testcurl/Makefile") CONFIG_FILES="$CONFIG_FILES src/testcurl/Makefile" ;;
33123    "src/testcurl/https/Makefile") CONFIG_FILES="$CONFIG_FILES src/testcurl/https/Makefile" ;;
33124    "src/testzzuf/Makefile") CONFIG_FILES="$CONFIG_FILES src/testzzuf/Makefile" ;;
33125
33126  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33127  esac
33128done
33129
33130
33131# If the user did not use the arguments to specify the items to instantiate,
33132# then the envvar interface is used.  Set only those that are not.
33133# We use the long form for the default assignment because of an extremely
33134# bizarre bug on SunOS 4.1.3.
33135if $ac_need_defaults; then
33136  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
33137  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
33138  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
33139fi
33140
33141# Have a temporary directory for convenience.  Make it in the build tree
33142# simply because there is no reason against having it here, and in addition,
33143# creating and moving files from /tmp can sometimes cause problems.
33144# Hook for its removal unless debugging.
33145# Note that there is a small window in which the directory will not be cleaned:
33146# after its creation but before its name has been assigned to `$tmp'.
33147$debug ||
33148{
33149  tmp= ac_tmp=
33150  trap 'exit_status=$?
33151  : "${ac_tmp:=$tmp}"
33152  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33153' 0
33154  trap 'as_fn_exit 1' 1 2 13 15
33155}
33156# Create a (secure) tmp directory for tmp files.
33157
33158{
33159  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33160  test -d "$tmp"
33161}  ||
33162{
33163  tmp=./conf$$-$RANDOM
33164  (umask 077 && mkdir "$tmp")
33165} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33166ac_tmp=$tmp
33167
33168# Set up the scripts for CONFIG_FILES section.
33169# No need to generate them if there are no CONFIG_FILES.
33170# This happens for instance with `./config.status config.h'.
33171if test -n "$CONFIG_FILES"; then
33172
33173
33174ac_cr=`echo X | tr X '\015'`
33175# On cygwin, bash can eat \r inside `` if the user requested igncr.
33176# But we know of no other shell where ac_cr would be empty at this
33177# point, so we can use a bashism as a fallback.
33178if test "x$ac_cr" = x; then
33179  eval ac_cr=\$\'\\r\'
33180fi
33181ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33182if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33183  ac_cs_awk_cr='\\r'
33184else
33185  ac_cs_awk_cr=$ac_cr
33186fi
33187
33188echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33189_ACEOF
33190
33191
33192{
33193  echo "cat >conf$$subs.awk <<_ACEOF" &&
33194  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33195  echo "_ACEOF"
33196} >conf$$subs.sh ||
33197  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33198ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33199ac_delim='%!_!# '
33200for ac_last_try in false false false false false :; do
33201  . ./conf$$subs.sh ||
33202    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33203
33204  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33205  if test $ac_delim_n = $ac_delim_num; then
33206    break
33207  elif $ac_last_try; then
33208    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33209  else
33210    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33211  fi
33212done
33213rm -f conf$$subs.sh
33214
33215cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33216cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33217_ACEOF
33218sed -n '
33219h
33220s/^/S["/; s/!.*/"]=/
33221p
33222g
33223s/^[^!]*!//
33224:repl
33225t repl
33226s/'"$ac_delim"'$//
33227t delim
33228:nl
33229h
33230s/\(.\{148\}\)..*/\1/
33231t more1
33232s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33233p
33234n
33235b repl
33236:more1
33237s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33238p
33239g
33240s/.\{148\}//
33241t nl
33242:delim
33243h
33244s/\(.\{148\}\)..*/\1/
33245t more2
33246s/["\\]/\\&/g; s/^/"/; s/$/"/
33247p
33248b
33249:more2
33250s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33251p
33252g
33253s/.\{148\}//
33254t delim
33255' <conf$$subs.awk | sed '
33256/^[^""]/{
33257  N
33258  s/\n//
33259}
33260' >>$CONFIG_STATUS || ac_write_fail=1
33261rm -f conf$$subs.awk
33262cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33263_ACAWK
33264cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33265  for (key in S) S_is_set[key] = 1
33266  FS = ""
33267
33268}
33269{
33270  line = $ 0
33271  nfields = split(line, field, "@")
33272  substed = 0
33273  len = length(field[1])
33274  for (i = 2; i < nfields; i++) {
33275    key = field[i]
33276    keylen = length(key)
33277    if (S_is_set[key]) {
33278      value = S[key]
33279      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33280      len += length(value) + length(field[++i])
33281      substed = 1
33282    } else
33283      len += 1 + keylen
33284  }
33285
33286  print line
33287}
33288
33289_ACAWK
33290_ACEOF
33291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33292if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33293  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33294else
33295  cat
33296fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33297  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33298_ACEOF
33299
33300# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33301# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33302# trailing colons and then remove the whole line if VPATH becomes empty
33303# (actually we leave an empty line to preserve line numbers).
33304if test "x$srcdir" = x.; then
33305  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
33306h
33307s///
33308s/^/:/
33309s/[	 ]*$/:/
33310s/:\$(srcdir):/:/g
33311s/:\${srcdir}:/:/g
33312s/:@srcdir@:/:/g
33313s/^:*//
33314s/:*$//
33315x
33316s/\(=[	 ]*\).*/\1/
33317G
33318s/\n//
33319s/^[^=]*=[	 ]*$//
33320}'
33321fi
33322
33323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33324fi # test -n "$CONFIG_FILES"
33325
33326# Set up the scripts for CONFIG_HEADERS section.
33327# No need to generate them if there are no CONFIG_HEADERS.
33328# This happens for instance with `./config.status Makefile'.
33329if test -n "$CONFIG_HEADERS"; then
33330cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33331BEGIN {
33332_ACEOF
33333
33334# Transform confdefs.h into an awk script `defines.awk', embedded as
33335# here-document in config.status, that substitutes the proper values into
33336# config.h.in to produce config.h.
33337
33338# Create a delimiter string that does not exist in confdefs.h, to ease
33339# handling of long lines.
33340ac_delim='%!_!# '
33341for ac_last_try in false false :; do
33342  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33343  if test -z "$ac_tt"; then
33344    break
33345  elif $ac_last_try; then
33346    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33347  else
33348    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33349  fi
33350done
33351
33352# For the awk script, D is an array of macro values keyed by name,
33353# likewise P contains macro parameters if any.  Preserve backslash
33354# newline sequences.
33355
33356ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33357sed -n '
33358s/.\{148\}/&'"$ac_delim"'/g
33359t rset
33360:rset
33361s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
33362t def
33363d
33364:def
33365s/\\$//
33366t bsnl
33367s/["\\]/\\&/g
33368s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
33369D["\1"]=" \3"/p
33370s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
33371d
33372:bsnl
33373s/["\\]/\\&/g
33374s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
33375D["\1"]=" \3\\\\\\n"\\/p
33376t cont
33377s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33378t cont
33379d
33380:cont
33381n
33382s/.\{148\}/&'"$ac_delim"'/g
33383t clear
33384:clear
33385s/\\$//
33386t bsnlc
33387s/["\\]/\\&/g; s/^/"/; s/$/"/p
33388d
33389:bsnlc
33390s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33391b cont
33392' <confdefs.h | sed '
33393s/'"$ac_delim"'/"\\\
33394"/g' >>$CONFIG_STATUS || ac_write_fail=1
33395
33396cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33397  for (key in D) D_is_set[key] = 1
33398  FS = ""
33399}
33400/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33401  line = \$ 0
33402  split(line, arg, " ")
33403  if (arg[1] == "#") {
33404    defundef = arg[2]
33405    mac1 = arg[3]
33406  } else {
33407    defundef = substr(arg[1], 2)
33408    mac1 = arg[2]
33409  }
33410  split(mac1, mac2, "(") #)
33411  macro = mac2[1]
33412  prefix = substr(line, 1, index(line, defundef) - 1)
33413  if (D_is_set[macro]) {
33414    # Preserve the white space surrounding the "#".
33415    print prefix "define", macro P[macro] D[macro]
33416    next
33417  } else {
33418    # Replace #undef with comments.  This is necessary, for example,
33419    # in the case of _POSIX_SOURCE, which is predefined and required
33420    # on some systems where configure will not decide to define it.
33421    if (defundef == "undef") {
33422      print "/*", prefix defundef, macro, "*/"
33423      next
33424    }
33425  }
33426}
33427{ print }
33428_ACAWK
33429_ACEOF
33430cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33431  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33432fi # test -n "$CONFIG_HEADERS"
33433
33434
33435eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
33436shift
33437for ac_tag
33438do
33439  case $ac_tag in
33440  :[FHLC]) ac_mode=$ac_tag; continue;;
33441  esac
33442  case $ac_mode$ac_tag in
33443  :[FHL]*:*);;
33444  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33445  :[FH]-) ac_tag=-:-;;
33446  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33447  esac
33448  ac_save_IFS=$IFS
33449  IFS=:
33450  set x $ac_tag
33451  IFS=$ac_save_IFS
33452  shift
33453  ac_file=$1
33454  shift
33455
33456  case $ac_mode in
33457  :L) ac_source=$1;;
33458  :[FH])
33459    ac_file_inputs=
33460    for ac_f
33461    do
33462      case $ac_f in
33463      -) ac_f="$ac_tmp/stdin";;
33464      *) # Look for the file first in the build tree, then in the source tree
33465	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
33466	 # because $ac_f cannot contain `:'.
33467	 test -f "$ac_f" ||
33468	   case $ac_f in
33469	   [\\/$]*) false;;
33470	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33471	   esac ||
33472	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33473      esac
33474      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33475      as_fn_append ac_file_inputs " '$ac_f'"
33476    done
33477
33478    # Let's still pretend it is `configure' which instantiates (i.e., don't
33479    # use $as_me), people would be surprised to read:
33480    #    /* config.h.  Generated by config.status.  */
33481    configure_input='Generated from '`
33482	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33483	`' by configure.'
33484    if test x"$ac_file" != x-; then
33485      configure_input="$ac_file.  $configure_input"
33486      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33487printf "%s\n" "$as_me: creating $ac_file" >&6;}
33488    fi
33489    # Neutralize special characters interpreted by sed in replacement strings.
33490    case $configure_input in #(
33491    *\&* | *\|* | *\\* )
33492       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
33493       sed 's/[\\\\&|]/\\\\&/g'`;; #(
33494    *) ac_sed_conf_input=$configure_input;;
33495    esac
33496
33497    case $ac_tag in
33498    *:-:* | *:-) cat >"$ac_tmp/stdin" \
33499      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33500    esac
33501    ;;
33502  esac
33503
33504  ac_dir=`$as_dirname -- "$ac_file" ||
33505$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33506	 X"$ac_file" : 'X\(//\)[^/]' \| \
33507	 X"$ac_file" : 'X\(//\)$' \| \
33508	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33509printf "%s\n" X"$ac_file" |
33510    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33511	    s//\1/
33512	    q
33513	  }
33514	  /^X\(\/\/\)[^/].*/{
33515	    s//\1/
33516	    q
33517	  }
33518	  /^X\(\/\/\)$/{
33519	    s//\1/
33520	    q
33521	  }
33522	  /^X\(\/\).*/{
33523	    s//\1/
33524	    q
33525	  }
33526	  s/.*/./; q'`
33527  as_dir="$ac_dir"; as_fn_mkdir_p
33528  ac_builddir=.
33529
33530case "$ac_dir" in
33531.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33532*)
33533  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
33534  # A ".." for each directory in $ac_dir_suffix.
33535  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33536  case $ac_top_builddir_sub in
33537  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33538  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33539  esac ;;
33540esac
33541ac_abs_top_builddir=$ac_pwd
33542ac_abs_builddir=$ac_pwd$ac_dir_suffix
33543# for backward compatibility:
33544ac_top_builddir=$ac_top_build_prefix
33545
33546case $srcdir in
33547  .)  # We are building in place.
33548    ac_srcdir=.
33549    ac_top_srcdir=$ac_top_builddir_sub
33550    ac_abs_top_srcdir=$ac_pwd ;;
33551  [\\/]* | ?:[\\/]* )  # Absolute name.
33552    ac_srcdir=$srcdir$ac_dir_suffix;
33553    ac_top_srcdir=$srcdir
33554    ac_abs_top_srcdir=$srcdir ;;
33555  *) # Relative name.
33556    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33557    ac_top_srcdir=$ac_top_build_prefix$srcdir
33558    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33559esac
33560ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33561
33562
33563  case $ac_mode in
33564  :F)
33565  #
33566  # CONFIG_FILE
33567  #
33568
33569  case $INSTALL in
33570  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33571  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33572  esac
33573  ac_MKDIR_P=$MKDIR_P
33574  case $MKDIR_P in
33575  [\\/$]* | ?:[\\/]* ) ;;
33576  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
33577  esac
33578_ACEOF
33579
33580cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33581# If the template does not know about datarootdir, expand it.
33582# FIXME: This hack should be removed a few years after 2.60.
33583ac_datarootdir_hack=; ac_datarootdir_seen=
33584ac_sed_dataroot='
33585/datarootdir/ {
33586  p
33587  q
33588}
33589/@datadir@/p
33590/@docdir@/p
33591/@infodir@/p
33592/@localedir@/p
33593/@mandir@/p'
33594case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33595*datarootdir*) ac_datarootdir_seen=yes;;
33596*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33597  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33598printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33599_ACEOF
33600cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33601  ac_datarootdir_hack='
33602  s&@datadir@&$datadir&g
33603  s&@docdir@&$docdir&g
33604  s&@infodir@&$infodir&g
33605  s&@localedir@&$localedir&g
33606  s&@mandir@&$mandir&g
33607  s&\\\${datarootdir}&$datarootdir&g' ;;
33608esac
33609_ACEOF
33610
33611# Neutralize VPATH when `$srcdir' = `.'.
33612# Shell code in configure.ac might set extrasub.
33613# FIXME: do we really want to maintain this feature?
33614cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33615ac_sed_extra="$ac_vpsub
33616$extrasub
33617_ACEOF
33618cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33619:t
33620/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33621s|@configure_input@|$ac_sed_conf_input|;t t
33622s&@top_builddir@&$ac_top_builddir_sub&;t t
33623s&@top_build_prefix@&$ac_top_build_prefix&;t t
33624s&@srcdir@&$ac_srcdir&;t t
33625s&@abs_srcdir@&$ac_abs_srcdir&;t t
33626s&@top_srcdir@&$ac_top_srcdir&;t t
33627s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33628s&@builddir@&$ac_builddir&;t t
33629s&@abs_builddir@&$ac_abs_builddir&;t t
33630s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33631s&@INSTALL@&$ac_INSTALL&;t t
33632s&@MKDIR_P@&$ac_MKDIR_P&;t t
33633$ac_datarootdir_hack
33634"
33635eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
33636  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33637
33638test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33639  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33640  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
33641      "$ac_tmp/out"`; test -z "$ac_out"; } &&
33642  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33643which seems to be undefined.  Please make sure it is defined" >&5
33644printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33645which seems to be undefined.  Please make sure it is defined" >&2;}
33646
33647  rm -f "$ac_tmp/stdin"
33648  case $ac_file in
33649  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33650  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33651  esac \
33652  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33653 ;;
33654  :H)
33655  #
33656  # CONFIG_HEADER
33657  #
33658  if test x"$ac_file" != x-; then
33659    {
33660      printf "%s\n" "/* $configure_input  */" >&1 \
33661      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33662    } >"$ac_tmp/config.h" \
33663      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33664    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33665      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33666printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
33667    else
33668      rm -f "$ac_file"
33669      mv "$ac_tmp/config.h" "$ac_file" \
33670	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
33671    fi
33672  else
33673    printf "%s\n" "/* $configure_input  */" >&1 \
33674      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33675      || as_fn_error $? "could not create -" "$LINENO" 5
33676  fi
33677# Compute "$ac_file"'s index in $config_headers.
33678_am_arg="$ac_file"
33679_am_stamp_count=1
33680for _am_header in $config_headers :; do
33681  case $_am_header in
33682    $_am_arg | $_am_arg:* )
33683      break ;;
33684    * )
33685      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33686  esac
33687done
33688echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
33689$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33690	 X"$_am_arg" : 'X\(//\)[^/]' \| \
33691	 X"$_am_arg" : 'X\(//\)$' \| \
33692	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
33693printf "%s\n" X"$_am_arg" |
33694    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33695	    s//\1/
33696	    q
33697	  }
33698	  /^X\(\/\/\)[^/].*/{
33699	    s//\1/
33700	    q
33701	  }
33702	  /^X\(\/\/\)$/{
33703	    s//\1/
33704	    q
33705	  }
33706	  /^X\(\/\).*/{
33707	    s//\1/
33708	    q
33709	  }
33710	  s/.*/./; q'`/stamp-h$_am_stamp_count
33711 ;;
33712
33713  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33714printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
33715 ;;
33716  esac
33717
33718
33719  case $ac_file$ac_mode in
33720    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
33721  # Older Autoconf quotes --file arguments for eval, but not when files
33722  # are listed without --file.  Let's play safe and only enable the eval
33723  # if we detect the quoting.
33724  # TODO: see whether this extra hack can be removed once we start
33725  # requiring Autoconf 2.70 or later.
33726  case $CONFIG_FILES in #(
33727  *\'*) :
33728    eval set x "$CONFIG_FILES" ;; #(
33729  *) :
33730    set x $CONFIG_FILES ;; #(
33731  *) :
33732     ;;
33733esac
33734  shift
33735  # Used to flag and report bootstrapping failures.
33736  am_rc=0
33737  for am_mf
33738  do
33739    # Strip MF so we end up with the name of the file.
33740    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
33741    # Check whether this is an Automake generated Makefile which includes
33742    # dependency-tracking related rules and includes.
33743    # Grep'ing the whole file directly is not great: AIX grep has a line
33744    # limit of 2048, but all sed's we know have understand at least 4000.
33745    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
33746      || continue
33747    am_dirpart=`$as_dirname -- "$am_mf" ||
33748$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33749	 X"$am_mf" : 'X\(//\)[^/]' \| \
33750	 X"$am_mf" : 'X\(//\)$' \| \
33751	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
33752printf "%s\n" X"$am_mf" |
33753    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33754	    s//\1/
33755	    q
33756	  }
33757	  /^X\(\/\/\)[^/].*/{
33758	    s//\1/
33759	    q
33760	  }
33761	  /^X\(\/\/\)$/{
33762	    s//\1/
33763	    q
33764	  }
33765	  /^X\(\/\).*/{
33766	    s//\1/
33767	    q
33768	  }
33769	  s/.*/./; q'`
33770    am_filepart=`$as_basename -- "$am_mf" ||
33771$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
33772	 X"$am_mf" : 'X\(//\)$' \| \
33773	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
33774printf "%s\n" X/"$am_mf" |
33775    sed '/^.*\/\([^/][^/]*\)\/*$/{
33776	    s//\1/
33777	    q
33778	  }
33779	  /^X\/\(\/\/\)$/{
33780	    s//\1/
33781	    q
33782	  }
33783	  /^X\/\(\/\).*/{
33784	    s//\1/
33785	    q
33786	  }
33787	  s/.*/./; q'`
33788    { echo "$as_me:$LINENO: cd "$am_dirpart" \
33789      && sed -e '/# am--include-marker/d' "$am_filepart" \
33790        | $MAKE -f - am--depfiles" >&5
33791   (cd "$am_dirpart" \
33792      && sed -e '/# am--include-marker/d' "$am_filepart" \
33793        | $MAKE -f - am--depfiles) >&5 2>&5
33794   ac_status=$?
33795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33796   (exit $ac_status); } || am_rc=$?
33797  done
33798  if test $am_rc -ne 0; then
33799    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33800printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
33801as_fn_error $? "Something went wrong bootstrapping makefile fragments
33802    for automatic dependency tracking.  If GNU make was not used, consider
33803    re-running the configure script with MAKE=\"gmake\" (or whatever is
33804    necessary).  You can also try re-running configure with the
33805    '--disable-dependency-tracking' option to at least be able to build
33806    the package (albeit without support for automatic dependency tracking).
33807See \`config.log' for more details" "$LINENO" 5; }
33808  fi
33809  { am_dirpart=; unset am_dirpart;}
33810  { am_filepart=; unset am_filepart;}
33811  { am_mf=; unset am_mf;}
33812  { am_rc=; unset am_rc;}
33813  rm -f conftest-deps.mk
33814}
33815 ;;
33816    "libtool":C)
33817
33818    # See if we are running on zsh, and set the options that allow our
33819    # commands through without removal of \ escapes.
33820    if test -n "${ZSH_VERSION+set}"; then
33821      setopt NO_GLOB_SUBST
33822    fi
33823
33824    cfgfile=${ofile}T
33825    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33826    $RM "$cfgfile"
33827
33828    cat <<_LT_EOF >> "$cfgfile"
33829#! $SHELL
33830# Generated automatically by $as_me ($PACKAGE) $VERSION
33831# NOTE: Changes made to this file will be lost: look at ltmain.sh.
33832
33833# Provide generalized library-building support services.
33834# Written by Gordon Matzigkeit, 1996
33835
33836# Copyright (C) 2014 Free Software Foundation, Inc.
33837# This is free software; see the source for copying conditions.  There is NO
33838# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
33839
33840# GNU Libtool is free software; you can redistribute it and/or modify
33841# it under the terms of the GNU General Public License as published by
33842# the Free Software Foundation; either version 2 of of the License, or
33843# (at your option) any later version.
33844#
33845# As a special exception to the GNU General Public License, if you
33846# distribute this file as part of a program or library that is built
33847# using GNU Libtool, you may include this file under the  same
33848# distribution terms that you use for the rest of that program.
33849#
33850# GNU Libtool is distributed in the hope that it will be useful, but
33851# WITHOUT ANY WARRANTY; without even the implied warranty of
33852# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
33853# GNU General Public License for more details.
33854#
33855# You should have received a copy of the GNU General Public License
33856# along with this program.  If not, see <http://www.gnu.org/licenses/>.
33857
33858
33859# The names of the tagged configurations supported by this script.
33860available_tags='RC '
33861
33862# Configured defaults for sys_lib_dlsearch_path munging.
33863: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
33864
33865# ### BEGIN LIBTOOL CONFIG
33866
33867# Which release of libtool.m4 was used?
33868macro_version=$macro_version
33869macro_revision=$macro_revision
33870
33871# Assembler program.
33872AS=$lt_AS
33873
33874# DLL creation program.
33875DLLTOOL=$lt_DLLTOOL
33876
33877# Object dumper program.
33878OBJDUMP=$lt_OBJDUMP
33879
33880# Whether or not to build shared libraries.
33881build_libtool_libs=$enable_shared
33882
33883# Whether or not to build static libraries.
33884build_old_libs=$enable_static
33885
33886# What type of objects to build.
33887pic_mode=$pic_mode
33888
33889# Whether or not to optimize for fast installation.
33890fast_install=$enable_fast_install
33891
33892# Shared archive member basename,for filename based shared library versioning on AIX.
33893shared_archive_member_spec=$shared_archive_member_spec
33894
33895# Shell to use when invoking shell scripts.
33896SHELL=$lt_SHELL
33897
33898# An echo program that protects backslashes.
33899ECHO=$lt_ECHO
33900
33901# The PATH separator for the build system.
33902PATH_SEPARATOR=$lt_PATH_SEPARATOR
33903
33904# The host system.
33905host_alias=$host_alias
33906host=$host
33907host_os=$host_os
33908
33909# The build system.
33910build_alias=$build_alias
33911build=$build
33912build_os=$build_os
33913
33914# A sed program that does not truncate output.
33915SED=$lt_SED
33916
33917# Sed that helps us avoid accidentally triggering echo(1) options like -n.
33918Xsed="\$SED -e 1s/^X//"
33919
33920# A grep program that handles long lines.
33921GREP=$lt_GREP
33922
33923# An ERE matcher.
33924EGREP=$lt_EGREP
33925
33926# A literal string matcher.
33927FGREP=$lt_FGREP
33928
33929# A BSD- or MS-compatible name lister.
33930NM=$lt_NM
33931
33932# Whether we need soft or hard links.
33933LN_S=$lt_LN_S
33934
33935# What is the maximum length of a command?
33936max_cmd_len=$max_cmd_len
33937
33938# Object file suffix (normally "o").
33939objext=$ac_objext
33940
33941# Executable file suffix (normally "").
33942exeext=$exeext
33943
33944# whether the shell understands "unset".
33945lt_unset=$lt_unset
33946
33947# turn spaces into newlines.
33948SP2NL=$lt_lt_SP2NL
33949
33950# turn newlines into spaces.
33951NL2SP=$lt_lt_NL2SP
33952
33953# convert \$build file names to \$host format.
33954to_host_file_cmd=$lt_cv_to_host_file_cmd
33955
33956# convert \$build files to toolchain format.
33957to_tool_file_cmd=$lt_cv_to_tool_file_cmd
33958
33959# Method to check whether dependent libraries are shared objects.
33960deplibs_check_method=$lt_deplibs_check_method
33961
33962# Command to use when deplibs_check_method = "file_magic".
33963file_magic_cmd=$lt_file_magic_cmd
33964
33965# How to find potential files when deplibs_check_method = "file_magic".
33966file_magic_glob=$lt_file_magic_glob
33967
33968# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
33969want_nocaseglob=$lt_want_nocaseglob
33970
33971# Command to associate shared and link libraries.
33972sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
33973
33974# The archiver.
33975AR=$lt_AR
33976
33977# Flags to create an archive.
33978AR_FLAGS=$lt_AR_FLAGS
33979
33980# How to feed a file listing to the archiver.
33981archiver_list_spec=$lt_archiver_list_spec
33982
33983# A symbol stripping program.
33984STRIP=$lt_STRIP
33985
33986# Commands used to install an old-style archive.
33987RANLIB=$lt_RANLIB
33988old_postinstall_cmds=$lt_old_postinstall_cmds
33989old_postuninstall_cmds=$lt_old_postuninstall_cmds
33990
33991# Whether to use a lock for old archive extraction.
33992lock_old_archive_extraction=$lock_old_archive_extraction
33993
33994# A C compiler.
33995LTCC=$lt_CC
33996
33997# LTCC compiler flags.
33998LTCFLAGS=$lt_CFLAGS
33999
34000# Take the output of nm and produce a listing of raw symbols and C names.
34001global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34002
34003# Transform the output of nm in a proper C declaration.
34004global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34005
34006# Transform the output of nm into a list of symbols to manually relocate.
34007global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
34008
34009# Transform the output of nm in a C name address pair.
34010global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34011
34012# Transform the output of nm in a C name address pair when lib prefix is needed.
34013global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34014
34015# The name lister interface.
34016nm_interface=$lt_lt_cv_nm_interface
34017
34018# Specify filename containing input files for \$NM.
34019nm_file_list_spec=$lt_nm_file_list_spec
34020
34021# The root where to search for dependent libraries,and where our libraries should be installed.
34022lt_sysroot=$lt_sysroot
34023
34024# Command to truncate a binary pipe.
34025lt_truncate_bin=$lt_lt_cv_truncate_bin
34026
34027# The name of the directory that contains temporary libtool files.
34028objdir=$objdir
34029
34030# Used to examine libraries when file_magic_cmd begins with "file".
34031MAGIC_CMD=$MAGIC_CMD
34032
34033# Must we lock files when doing compilation?
34034need_locks=$lt_need_locks
34035
34036# Manifest tool.
34037MANIFEST_TOOL=$lt_MANIFEST_TOOL
34038
34039# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34040DSYMUTIL=$lt_DSYMUTIL
34041
34042# Tool to change global to local symbols on Mac OS X.
34043NMEDIT=$lt_NMEDIT
34044
34045# Tool to manipulate fat objects and archives on Mac OS X.
34046LIPO=$lt_LIPO
34047
34048# ldd/readelf like tool for Mach-O binaries on Mac OS X.
34049OTOOL=$lt_OTOOL
34050
34051# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34052OTOOL64=$lt_OTOOL64
34053
34054# Old archive suffix (normally "a").
34055libext=$libext
34056
34057# Shared library suffix (normally ".so").
34058shrext_cmds=$lt_shrext_cmds
34059
34060# The commands to extract the exported symbol list from a shared archive.
34061extract_expsyms_cmds=$lt_extract_expsyms_cmds
34062
34063# Variables whose values should be saved in libtool wrapper scripts and
34064# restored at link time.
34065variables_saved_for_relink=$lt_variables_saved_for_relink
34066
34067# Do we need the "lib" prefix for modules?
34068need_lib_prefix=$need_lib_prefix
34069
34070# Do we need a version for libraries?
34071need_version=$need_version
34072
34073# Library versioning type.
34074version_type=$version_type
34075
34076# Shared library runtime path variable.
34077runpath_var=$runpath_var
34078
34079# Shared library path variable.
34080shlibpath_var=$shlibpath_var
34081
34082# Is shlibpath searched before the hard-coded library search path?
34083shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34084
34085# Format of library name prefix.
34086libname_spec=$lt_libname_spec
34087
34088# List of archive names.  First name is the real one, the rest are links.
34089# The last name is the one that the linker finds with -lNAME
34090library_names_spec=$lt_library_names_spec
34091
34092# The coded name of the library, if different from the real name.
34093soname_spec=$lt_soname_spec
34094
34095# Permission mode override for installation of shared libraries.
34096install_override_mode=$lt_install_override_mode
34097
34098# Command to use after installation of a shared archive.
34099postinstall_cmds=$lt_postinstall_cmds
34100
34101# Command to use after uninstallation of a shared archive.
34102postuninstall_cmds=$lt_postuninstall_cmds
34103
34104# Commands used to finish a libtool library installation in a directory.
34105finish_cmds=$lt_finish_cmds
34106
34107# As "finish_cmds", except a single script fragment to be evaled but
34108# not shown.
34109finish_eval=$lt_finish_eval
34110
34111# Whether we should hardcode library paths into libraries.
34112hardcode_into_libs=$hardcode_into_libs
34113
34114# Compile-time system search path for libraries.
34115sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34116
34117# Detected run-time system search path for libraries.
34118sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
34119
34120# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
34121configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
34122
34123# Whether dlopen is supported.
34124dlopen_support=$enable_dlopen
34125
34126# Whether dlopen of programs is supported.
34127dlopen_self=$enable_dlopen_self
34128
34129# Whether dlopen of statically linked programs is supported.
34130dlopen_self_static=$enable_dlopen_self_static
34131
34132# Commands to strip libraries.
34133old_striplib=$lt_old_striplib
34134striplib=$lt_striplib
34135
34136
34137# The linker used to build libraries.
34138LD=$lt_LD
34139
34140# How to create reloadable object files.
34141reload_flag=$lt_reload_flag
34142reload_cmds=$lt_reload_cmds
34143
34144# Commands used to build an old-style archive.
34145old_archive_cmds=$lt_old_archive_cmds
34146
34147# A language specific compiler.
34148CC=$lt_compiler
34149
34150# Is the compiler the GNU compiler?
34151with_gcc=$GCC
34152
34153# Compiler flag to turn off builtin functions.
34154no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34155
34156# Additional compiler flags for building library objects.
34157pic_flag=$lt_lt_prog_compiler_pic
34158
34159# How to pass a linker flag through the compiler.
34160wl=$lt_lt_prog_compiler_wl
34161
34162# Compiler flag to prevent dynamic linking.
34163link_static_flag=$lt_lt_prog_compiler_static
34164
34165# Does compiler simultaneously support -c and -o options?
34166compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34167
34168# Whether or not to add -lc for building shared libraries.
34169build_libtool_need_lc=$archive_cmds_need_lc
34170
34171# Whether or not to disallow shared libs when runtime libs are static.
34172allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
34173
34174# Compiler flag to allow reflexive dlopens.
34175export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
34176
34177# Compiler flag to generate shared objects directly from archives.
34178whole_archive_flag_spec=$lt_whole_archive_flag_spec
34179
34180# Whether the compiler copes with passing no objects directly.
34181compiler_needs_object=$lt_compiler_needs_object
34182
34183# Create an old-style archive from a shared archive.
34184old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
34185
34186# Create a temporary old-style archive to link instead of a shared archive.
34187old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
34188
34189# Commands used to build a shared archive.
34190archive_cmds=$lt_archive_cmds
34191archive_expsym_cmds=$lt_archive_expsym_cmds
34192
34193# Commands used to build a loadable module if different from building
34194# a shared archive.
34195module_cmds=$lt_module_cmds
34196module_expsym_cmds=$lt_module_expsym_cmds
34197
34198# Whether we are building with GNU ld or not.
34199with_gnu_ld=$lt_with_gnu_ld
34200
34201# Flag that allows shared libraries with undefined symbols to be built.
34202allow_undefined_flag=$lt_allow_undefined_flag
34203
34204# Flag that enforces no undefined symbols.
34205no_undefined_flag=$lt_no_undefined_flag
34206
34207# Flag to hardcode \$libdir into a binary during linking.
34208# This must work even if \$libdir does not exist
34209hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
34210
34211# Whether we need a single "-rpath" flag with a separated argument.
34212hardcode_libdir_separator=$lt_hardcode_libdir_separator
34213
34214# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34215# DIR into the resulting binary.
34216hardcode_direct=$hardcode_direct
34217
34218# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34219# DIR into the resulting binary and the resulting library dependency is
34220# "absolute",i.e impossible to change by setting \$shlibpath_var if the
34221# library is relocated.
34222hardcode_direct_absolute=$hardcode_direct_absolute
34223
34224# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34225# into the resulting binary.
34226hardcode_minus_L=$hardcode_minus_L
34227
34228# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34229# into the resulting binary.
34230hardcode_shlibpath_var=$hardcode_shlibpath_var
34231
34232# Set to "yes" if building a shared library automatically hardcodes DIR
34233# into the library and all subsequent libraries and executables linked
34234# against it.
34235hardcode_automatic=$hardcode_automatic
34236
34237# Set to yes if linker adds runtime paths of dependent libraries
34238# to runtime path list.
34239inherit_rpath=$inherit_rpath
34240
34241# Whether libtool must link a program against all its dependency libraries.
34242link_all_deplibs=$link_all_deplibs
34243
34244# Set to "yes" if exported symbols are required.
34245always_export_symbols=$always_export_symbols
34246
34247# The commands to list exported symbols.
34248export_symbols_cmds=$lt_export_symbols_cmds
34249
34250# Symbols that should not be listed in the preloaded symbols.
34251exclude_expsyms=$lt_exclude_expsyms
34252
34253# Symbols that must always be exported.
34254include_expsyms=$lt_include_expsyms
34255
34256# Commands necessary for linking programs (against libraries) with templates.
34257prelink_cmds=$lt_prelink_cmds
34258
34259# Commands necessary for finishing linking programs.
34260postlink_cmds=$lt_postlink_cmds
34261
34262# Specify filename containing input files.
34263file_list_spec=$lt_file_list_spec
34264
34265# How to hardcode a shared library path into an executable.
34266hardcode_action=$hardcode_action
34267
34268# ### END LIBTOOL CONFIG
34269
34270_LT_EOF
34271
34272    cat <<'_LT_EOF' >> "$cfgfile"
34273
34274# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
34275
34276# func_munge_path_list VARIABLE PATH
34277# -----------------------------------
34278# VARIABLE is name of variable containing _space_ separated list of
34279# directories to be munged by the contents of PATH, which is string
34280# having a format:
34281# "DIR[:DIR]:"
34282#       string "DIR[ DIR]" will be prepended to VARIABLE
34283# ":DIR[:DIR]"
34284#       string "DIR[ DIR]" will be appended to VARIABLE
34285# "DIRP[:DIRP]::[DIRA:]DIRA"
34286#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
34287#       "DIRA[ DIRA]" will be appended to VARIABLE
34288# "DIR[:DIR]"
34289#       VARIABLE will be replaced by "DIR[ DIR]"
34290func_munge_path_list ()
34291{
34292    case x$2 in
34293    x)
34294        ;;
34295    *:)
34296        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
34297        ;;
34298    x:*)
34299        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
34300        ;;
34301    *::*)
34302        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
34303        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
34304        ;;
34305    *)
34306        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
34307        ;;
34308    esac
34309}
34310
34311
34312# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
34313func_cc_basename ()
34314{
34315    for cc_temp in $*""; do
34316      case $cc_temp in
34317        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
34318        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
34319        \-*) ;;
34320        *) break;;
34321      esac
34322    done
34323    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
34324}
34325
34326
34327# ### END FUNCTIONS SHARED WITH CONFIGURE
34328
34329_LT_EOF
34330
34331  case $host_os in
34332  aix3*)
34333    cat <<\_LT_EOF >> "$cfgfile"
34334# AIX sometimes has problems with the GCC collect2 program.  For some
34335# reason, if we set the COLLECT_NAMES environment variable, the problems
34336# vanish in a puff of smoke.
34337if test set != "${COLLECT_NAMES+set}"; then
34338  COLLECT_NAMES=
34339  export COLLECT_NAMES
34340fi
34341_LT_EOF
34342    ;;
34343  esac
34344
34345
34346
34347ltmain=$ac_aux_dir/ltmain.sh
34348
34349
34350  # We use sed instead of cat because bash on DJGPP gets confused if
34351  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
34352  # text mode, it properly converts lines to CR/LF.  This bash problem
34353  # is reportedly fixed, but why not run on old versions too?
34354  sed '$q' "$ltmain" >> "$cfgfile" \
34355     || (rm -f "$cfgfile"; exit 1)
34356
34357   mv -f "$cfgfile" "$ofile" ||
34358    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
34359  chmod +x "$ofile"
34360
34361
34362    cat <<_LT_EOF >> "$ofile"
34363
34364# ### BEGIN LIBTOOL TAG CONFIG: RC
34365
34366# The linker used to build libraries.
34367LD=$lt_LD_RC
34368
34369# How to create reloadable object files.
34370reload_flag=$lt_reload_flag_RC
34371reload_cmds=$lt_reload_cmds_RC
34372
34373# Commands used to build an old-style archive.
34374old_archive_cmds=$lt_old_archive_cmds_RC
34375
34376# A language specific compiler.
34377CC=$lt_compiler_RC
34378
34379# Is the compiler the GNU compiler?
34380with_gcc=$GCC_RC
34381
34382# Compiler flag to turn off builtin functions.
34383no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
34384
34385# Additional compiler flags for building library objects.
34386pic_flag=$lt_lt_prog_compiler_pic_RC
34387
34388# How to pass a linker flag through the compiler.
34389wl=$lt_lt_prog_compiler_wl_RC
34390
34391# Compiler flag to prevent dynamic linking.
34392link_static_flag=$lt_lt_prog_compiler_static_RC
34393
34394# Does compiler simultaneously support -c and -o options?
34395compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
34396
34397# Whether or not to add -lc for building shared libraries.
34398build_libtool_need_lc=$archive_cmds_need_lc_RC
34399
34400# Whether or not to disallow shared libs when runtime libs are static.
34401allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
34402
34403# Compiler flag to allow reflexive dlopens.
34404export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
34405
34406# Compiler flag to generate shared objects directly from archives.
34407whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
34408
34409# Whether the compiler copes with passing no objects directly.
34410compiler_needs_object=$lt_compiler_needs_object_RC
34411
34412# Create an old-style archive from a shared archive.
34413old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
34414
34415# Create a temporary old-style archive to link instead of a shared archive.
34416old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
34417
34418# Commands used to build a shared archive.
34419archive_cmds=$lt_archive_cmds_RC
34420archive_expsym_cmds=$lt_archive_expsym_cmds_RC
34421
34422# Commands used to build a loadable module if different from building
34423# a shared archive.
34424module_cmds=$lt_module_cmds_RC
34425module_expsym_cmds=$lt_module_expsym_cmds_RC
34426
34427# Whether we are building with GNU ld or not.
34428with_gnu_ld=$lt_with_gnu_ld_RC
34429
34430# Flag that allows shared libraries with undefined symbols to be built.
34431allow_undefined_flag=$lt_allow_undefined_flag_RC
34432
34433# Flag that enforces no undefined symbols.
34434no_undefined_flag=$lt_no_undefined_flag_RC
34435
34436# Flag to hardcode \$libdir into a binary during linking.
34437# This must work even if \$libdir does not exist
34438hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
34439
34440# Whether we need a single "-rpath" flag with a separated argument.
34441hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
34442
34443# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34444# DIR into the resulting binary.
34445hardcode_direct=$hardcode_direct_RC
34446
34447# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34448# DIR into the resulting binary and the resulting library dependency is
34449# "absolute",i.e impossible to change by setting \$shlibpath_var if the
34450# library is relocated.
34451hardcode_direct_absolute=$hardcode_direct_absolute_RC
34452
34453# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34454# into the resulting binary.
34455hardcode_minus_L=$hardcode_minus_L_RC
34456
34457# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34458# into the resulting binary.
34459hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
34460
34461# Set to "yes" if building a shared library automatically hardcodes DIR
34462# into the library and all subsequent libraries and executables linked
34463# against it.
34464hardcode_automatic=$hardcode_automatic_RC
34465
34466# Set to yes if linker adds runtime paths of dependent libraries
34467# to runtime path list.
34468inherit_rpath=$inherit_rpath_RC
34469
34470# Whether libtool must link a program against all its dependency libraries.
34471link_all_deplibs=$link_all_deplibs_RC
34472
34473# Set to "yes" if exported symbols are required.
34474always_export_symbols=$always_export_symbols_RC
34475
34476# The commands to list exported symbols.
34477export_symbols_cmds=$lt_export_symbols_cmds_RC
34478
34479# Symbols that should not be listed in the preloaded symbols.
34480exclude_expsyms=$lt_exclude_expsyms_RC
34481
34482# Symbols that must always be exported.
34483include_expsyms=$lt_include_expsyms_RC
34484
34485# Commands necessary for linking programs (against libraries) with templates.
34486prelink_cmds=$lt_prelink_cmds_RC
34487
34488# Commands necessary for finishing linking programs.
34489postlink_cmds=$lt_postlink_cmds_RC
34490
34491# Specify filename containing input files.
34492file_list_spec=$lt_file_list_spec_RC
34493
34494# How to hardcode a shared library path into an executable.
34495hardcode_action=$hardcode_action_RC
34496
34497# ### END LIBTOOL TAG CONFIG: RC
34498_LT_EOF
34499
34500 ;;
34501    "po-directories":C)
34502    for ac_file in $CONFIG_FILES; do
34503      # Support "outfile[:infile[:infile...]]"
34504      case "$ac_file" in
34505        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
34506      esac
34507      # PO directories have a Makefile.in generated from Makefile.in.in.
34508      case "$ac_file" in */Makefile.in)
34509        # Adjust a relative srcdir.
34510        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
34511        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
34512        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
34513        # In autoconf-2.13 it is called $ac_given_srcdir.
34514        # In autoconf-2.50 it is called $srcdir.
34515        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
34516        case "$ac_given_srcdir" in
34517          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
34518          /*) top_srcdir="$ac_given_srcdir" ;;
34519          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
34520        esac
34521        # Treat a directory as a PO directory if and only if it has a
34522        # POTFILES.in file. This allows packages to have multiple PO
34523        # directories under different names or in different locations.
34524        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
34525          rm -f "$ac_dir/POTFILES"
34526          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
34527          gt_tab=`printf '\t'`
34528          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"
34529          POMAKEFILEDEPS="POTFILES.in"
34530          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
34531          # on $ac_dir but don't depend on user-specified configuration
34532          # parameters.
34533          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
34534            # The LINGUAS file contains the set of available languages.
34535            if test -n "$OBSOLETE_ALL_LINGUAS"; then
34536              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
34537            fi
34538            ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
34539            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
34540          else
34541            # The set of available languages was given in configure.in.
34542            ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
34543          fi
34544          # Compute POFILES
34545          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
34546          # Compute UPDATEPOFILES
34547          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
34548          # Compute DUMMYPOFILES
34549          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
34550          # Compute GMOFILES
34551          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
34552          case "$ac_given_srcdir" in
34553            .) srcdirpre= ;;
34554            *) srcdirpre='$(srcdir)/' ;;
34555          esac
34556          POFILES=
34557          UPDATEPOFILES=
34558          DUMMYPOFILES=
34559          GMOFILES=
34560          for lang in $ALL_LINGUAS; do
34561            POFILES="$POFILES $srcdirpre$lang.po"
34562            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
34563            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
34564            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
34565          done
34566          # CATALOGS depends on both $ac_dir and the user's LINGUAS
34567          # environment variable.
34568          INST_LINGUAS=
34569          if test -n "$ALL_LINGUAS"; then
34570            for presentlang in $ALL_LINGUAS; do
34571              useit=no
34572              if test "%UNSET%" != "$LINGUAS"; then
34573                desiredlanguages="$LINGUAS"
34574              else
34575                desiredlanguages="$ALL_LINGUAS"
34576              fi
34577              for desiredlang in $desiredlanguages; do
34578                # Use the presentlang catalog if desiredlang is
34579                #   a. equal to presentlang, or
34580                #   b. a variant of presentlang (because in this case,
34581                #      presentlang can be used as a fallback for messages
34582                #      which are not translated in the desiredlang catalog).
34583                case "$desiredlang" in
34584                  "$presentlang"*) useit=yes;;
34585                esac
34586              done
34587              if test $useit = yes; then
34588                INST_LINGUAS="$INST_LINGUAS $presentlang"
34589              fi
34590            done
34591          fi
34592          CATALOGS=
34593          if test -n "$INST_LINGUAS"; then
34594            for lang in $INST_LINGUAS; do
34595              CATALOGS="$CATALOGS $lang.gmo"
34596            done
34597          fi
34598          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
34599          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"
34600          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
34601            if test -f "$f"; then
34602              case "$f" in
34603                *.orig | *.bak | *~) ;;
34604                *) cat "$f" >> "$ac_dir/Makefile" ;;
34605              esac
34606            fi
34607          done
34608        fi
34609        ;;
34610      esac
34611    done ;;
34612
34613  esac
34614done # for ac_tag
34615
34616
34617as_fn_exit 0
34618_ACEOF
34619ac_clean_files=$ac_clean_files_save
34620
34621test $ac_write_fail = 0 ||
34622  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34623
34624
34625# configure is writing to config.log, and then calls config.status.
34626# config.status does its own redirection, appending to config.log.
34627# Unfortunately, on DOS this fails, as config.log is still kept open
34628# by configure, so config.status won't be able to write to it; its
34629# output is simply discarded.  So we exec the FD to /dev/null,
34630# effectively closing config.log, so it can be properly (re)opened and
34631# appended to by config.status.  When coming back to configure, we
34632# need to make the FD available again.
34633if test "$no_create" != yes; then
34634  ac_cs_success=:
34635  ac_config_status_args=
34636  test "$silent" = yes &&
34637    ac_config_status_args="$ac_config_status_args --quiet"
34638  exec 5>/dev/null
34639  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34640  exec 5>>config.log
34641  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34642  # would make configure fail if this is the last instruction.
34643  $ac_cs_success || as_fn_exit 1
34644fi
34645if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
34646  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34647printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
34648fi
34649
34650
34651# Finally: summary
34652if test "x$enable_curl" != "xyes"
34653then :
34654  MSG_CURL="no, many unit tests will not run"
34655else $as_nop
34656  MSG_CURL="yes"
34657fi
34658
34659if test "x$os_is_windows" = x"yes"
34660then :
34661  os_ver_msg="
34662  Target W32 ver:    ${mhd_w32_ver_msg}"
34663else $as_nop
34664  { os_ver_msg=; unset os_ver_msg;}
34665fi
34666
34667
34668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: GNU libmicrohttpd ${PACKAGE_VERSION} Configuration Summary:
34669  Target directory:  ${prefix}
34670  Cross-compiling:   ${cross_compiling}
34671  Operating System:  ${mhd_host_os}${os_ver_msg}
34672  Shutdown of listening socket triggers select: ${mhd_cv_host_shtdwn_trgr_select}
34673  Inter-thread comm: ${use_itc}
34674  poll support:      ${enable_poll=no}
34675  epoll support:     ${enable_epoll=no}
34676  sendfile used:     ${found_sendfile}
34677  HTTPS support:     ${MSG_HTTPS}
34678  Threading lib:     ${USE_THREADS}
34679  Use thread names:  ${enable_thread_names}
34680  Use debug asserts: ${enable_asserts}
34681  Use sanitizers:    ${enabled_sanitizers:=no}
34682  Messages:          ${enable_messages}
34683  Gettext:           ${have_po}
34684  Basic auth.:       ${enable_bauth}
34685  Digest auth.:      ${enable_dauth}
34686  HTTP \"Upgrade\":    ${enable_httpupgrade}
34687  Postproc:          ${enable_postprocessor}
34688  Build docs:        ${enable_doc}
34689  Build examples:    ${enable_examples}
34690  Test with libcurl: ${MSG_CURL}
34691" >&5
34692printf "%s\n" "$as_me: GNU libmicrohttpd ${PACKAGE_VERSION} Configuration Summary:
34693  Target directory:  ${prefix}
34694  Cross-compiling:   ${cross_compiling}
34695  Operating System:  ${mhd_host_os}${os_ver_msg}
34696  Shutdown of listening socket triggers select: ${mhd_cv_host_shtdwn_trgr_select}
34697  Inter-thread comm: ${use_itc}
34698  poll support:      ${enable_poll=no}
34699  epoll support:     ${enable_epoll=no}
34700  sendfile used:     ${found_sendfile}
34701  HTTPS support:     ${MSG_HTTPS}
34702  Threading lib:     ${USE_THREADS}
34703  Use thread names:  ${enable_thread_names}
34704  Use debug asserts: ${enable_asserts}
34705  Use sanitizers:    ${enabled_sanitizers:=no}
34706  Messages:          ${enable_messages}
34707  Gettext:           ${have_po}
34708  Basic auth.:       ${enable_bauth}
34709  Digest auth.:      ${enable_dauth}
34710  HTTP \"Upgrade\":    ${enable_httpupgrade}
34711  Postproc:          ${enable_postprocessor}
34712  Build docs:        ${enable_doc}
34713  Build examples:    ${enable_examples}
34714  Test with libcurl: ${MSG_CURL}
34715" >&6;}
34716
34717if test "x$enable_https" = "xyes"
34718then :
34719  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: HTTPS subsystem configuration:
34720  License         :  LGPLv2.1+ only
34721 " >&5
34722printf "%s\n" "$as_me: HTTPS subsystem configuration:
34723  License         :  LGPLv2.1+ only
34724 " >&6;}
34725else $as_nop
34726  { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
34727  License         :  LGPLv2.1+ or eCos
34728 " >&5
34729printf "%s\n" "$as_me:
34730  License         :  LGPLv2.1+ or eCos
34731 " >&6;}
34732fi
34733
34734if test "x$enable_bauth" != "xyes" || \
34735   test "x$enable_dauth" != "xyes" || \
34736   test "x$enable_httpupgrade" != "xyes" || \
34737   test "x$enable_postprocessor" != "xyes"
34738then :
34739  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: This will be a custom build with missing symbols. Do NOT use this build in a distribution. Building with these kinds of configure options is only for custom builds for embedded systems." >&5
34740printf "%s\n" "$as_me: WARNING: This will be a custom build with missing symbols. Do NOT use this build in a distribution. Building with these kinds of configure options is only for custom builds for embedded systems." >&6;}
34741fi
34742
34743