1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libsodium 1.0.18.
4#
5# Report bugs to <https://github.com/jedisct1/libsodium/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://github.com/jedisct1/libsodium/issues about your
279$0: system, including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='libsodium'
592PACKAGE_TARNAME='libsodium'
593PACKAGE_VERSION='1.0.18'
594PACKAGE_STRING='libsodium 1.0.18'
595PACKAGE_BUGREPORT='https://github.com/jedisct1/libsodium/issues'
596PACKAGE_URL='https://github.com/jedisct1/libsodium'
597
598ac_unique_file="src/libsodium/sodium/version.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639HAVE_LD_OUTPUT_DEF_FALSE
640HAVE_LD_OUTPUT_DEF_TRUE
641AS
642WASI_FALSE
643WASI_TRUE
644EMSCRIPTEN_FALSE
645EMSCRIPTEN_TRUE
646TEST_LDFLAGS
647LIBTOOL_EXTRA_FLAGS
648ALLOCA
649HAVE_CPUID_V
650HAVE_TI_MODE_V
651HAVE_TI_MODE_FALSE
652HAVE_TI_MODE_TRUE
653HAVE_AVX_ASM_V
654HAVE_AVX_ASM_FALSE
655HAVE_AVX_ASM_TRUE
656HAVE_AMD64_ASM_V
657HAVE_AMD64_ASM_FALSE
658HAVE_AMD64_ASM_TRUE
659CFLAGS_RDRAND
660CFLAGS_PCLMUL
661CFLAGS_AESNI
662CFLAGS_AVX512F
663CFLAGS_AVX2
664CFLAGS_AVX
665CFLAGS_SSE41
666CFLAGS_SSSE3
667CFLAGS_SSE3
668CFLAGS_SSE2
669CFLAGS_MMX
670LIBTOOL_DEPS
671LT_SYS_LIBRARY_PATH
672OTOOL64
673OTOOL
674LIPO
675NMEDIT
676DSYMUTIL
677MANIFEST_TOOL
678RANLIB
679ac_ct_AR
680AR
681DLLTOOL
682OBJDUMP
683LN_S
684NM
685ac_ct_DUMPBIN
686DUMPBIN
687LD
688FGREP
689LIBTOOL
690CWFLAGS
691am__fastdepCCAS_FALSE
692am__fastdepCCAS_TRUE
693CCASDEPMODE
694CCASFLAGS
695CCAS
696VALGRIND_CHECK_RULES
697valgrind_enabled_tools
698valgrind_tools
699ENABLE_VALGRIND_sgcheck
700ENABLE_VALGRIND_drd
701ENABLE_VALGRIND_helgrind
702ENABLE_VALGRIND_memcheck
703VALGRIND_ENABLED
704VALGRIND_ENABLED_FALSE
705VALGRIND_ENABLED_TRUE
706VALGRIND
707PKGCONFIG_LIBS_PRIVATE
708SAFECODE_HOME
709PTHREAD_CFLAGS
710PTHREAD_LIBS
711PTHREAD_CC
712ax_pthread_config
713EGREP
714GREP
715CPP
716SED
717SODIUM_LIBRARY_MINIMAL_DEF
718MINIMAL_FALSE
719MINIMAL_TRUE
720am__fastdepCC_FALSE
721am__fastdepCC_TRUE
722CCDEPMODE
723am__include
724DEPDIR
725OBJEXT
726EXEEXT
727ac_ct_CC
728CPPFLAGS
729LDFLAGS
730CFLAGS
731CC
732DLL_VERSION
733SODIUM_LIBRARY_VERSION
734SODIUM_LIBRARY_VERSION_MINOR
735SODIUM_LIBRARY_VERSION_MAJOR
736am__nodep
737AMDEPBACKSLASH
738AMDEP_FALSE
739AMDEP_TRUE
740MAINT
741MAINTAINER_MODE_FALSE
742MAINTAINER_MODE_TRUE
743AM_BACKSLASH
744AM_DEFAULT_VERBOSITY
745AM_DEFAULT_V
746AM_V
747am__untar
748am__tar
749AMTAR
750am__leading_dot
751SET_MAKE
752AWK
753mkdir_p
754MKDIR_P
755INSTALL_STRIP_PROGRAM
756STRIP
757install_sh
758MAKEINFO
759AUTOHEADER
760AUTOMAKE
761AUTOCONF
762ACLOCAL
763VERSION
764PACKAGE
765CYGPATH_W
766am__isrc
767INSTALL_DATA
768INSTALL_SCRIPT
769INSTALL_PROGRAM
770host_os
771host_vendor
772host_cpu
773host
774build_os
775build_vendor
776build_cpu
777build
778target_alias
779host_alias
780build_alias
781LIBS
782ECHO_T
783ECHO_N
784ECHO_C
785DEFS
786mandir
787localedir
788libdir
789psdir
790pdfdir
791dvidir
792htmldir
793infodir
794docdir
795oldincludedir
796includedir
797localstatedir
798sharedstatedir
799sysconfdir
800datadir
801datarootdir
802libexecdir
803sbindir
804bindir
805program_transform_name
806prefix
807exec_prefix
808PACKAGE_URL
809PACKAGE_BUGREPORT
810PACKAGE_STRING
811PACKAGE_VERSION
812PACKAGE_TARNAME
813PACKAGE_NAME
814PATH_SEPARATOR
815SHELL
816am__quote'
817ac_subst_files=''
818ac_user_opts='
819enable_option_checking
820enable_silent_rules
821enable_maintainer_mode
822enable_dependency_tracking
823enable_ssp
824enable_asm
825enable_pie
826enable_blocking_random
827enable_minimal
828with_pthreads
829with_safecode
830with_ctgrind
831enable_retpoline
832enable_debug
833enable_opt
834enable_valgrind
835enable_valgrind_memcheck
836enable_valgrind_helgrind
837enable_valgrind_drd
838enable_valgrind_sgcheck
839enable_soname_versions
840enable_shared
841enable_static
842with_pic
843enable_fast_install
844with_aix_soname
845with_gnu_ld
846with_sysroot
847enable_libtool_lock
848'
849      ac_precious_vars='build_alias
850host_alias
851target_alias
852CC
853CFLAGS
854LDFLAGS
855LIBS
856CPPFLAGS
857CPP
858SAFECODE_HOME
859CCAS
860CCASFLAGS
861CWFLAGS
862LT_SYS_LIBRARY_PATH
863AR'
864
865
866# Initialize some variables set by options.
867ac_init_help=
868ac_init_version=false
869ac_unrecognized_opts=
870ac_unrecognized_sep=
871# The variables have the same names as the options, with
872# dashes changed to underlines.
873cache_file=/dev/null
874exec_prefix=NONE
875no_create=
876no_recursion=
877prefix=NONE
878program_prefix=NONE
879program_suffix=NONE
880program_transform_name=s,x,x,
881silent=
882site=
883srcdir=
884verbose=
885x_includes=NONE
886x_libraries=NONE
887
888# Installation directory options.
889# These are left unexpanded so users can "make install exec_prefix=/foo"
890# and all the variables that are supposed to be based on exec_prefix
891# by default will actually change.
892# Use braces instead of parens because sh, perl, etc. also accept them.
893# (The list follows the same order as the GNU Coding Standards.)
894bindir='${exec_prefix}/bin'
895sbindir='${exec_prefix}/sbin'
896libexecdir='${exec_prefix}/libexec'
897datarootdir='${prefix}/share'
898datadir='${datarootdir}'
899sysconfdir='${prefix}/etc'
900sharedstatedir='${prefix}/com'
901localstatedir='${prefix}/var'
902includedir='${prefix}/include'
903oldincludedir='/usr/include'
904docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
905infodir='${datarootdir}/info'
906htmldir='${docdir}'
907dvidir='${docdir}'
908pdfdir='${docdir}'
909psdir='${docdir}'
910libdir='${exec_prefix}/lib'
911localedir='${datarootdir}/locale'
912mandir='${datarootdir}/man'
913
914ac_prev=
915ac_dashdash=
916for ac_option
917do
918  # If the previous option needs an argument, assign it.
919  if test -n "$ac_prev"; then
920    eval $ac_prev=\$ac_option
921    ac_prev=
922    continue
923  fi
924
925  case $ac_option in
926  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927  *=)   ac_optarg= ;;
928  *)    ac_optarg=yes ;;
929  esac
930
931  # Accept the important Cygnus configure options, so we can diagnose typos.
932
933  case $ac_dashdash$ac_option in
934  --)
935    ac_dashdash=yes ;;
936
937  -bindir | --bindir | --bindi | --bind | --bin | --bi)
938    ac_prev=bindir ;;
939  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
940    bindir=$ac_optarg ;;
941
942  -build | --build | --buil | --bui | --bu)
943    ac_prev=build_alias ;;
944  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
945    build_alias=$ac_optarg ;;
946
947  -cache-file | --cache-file | --cache-fil | --cache-fi \
948  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
949    ac_prev=cache_file ;;
950  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
951  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
952    cache_file=$ac_optarg ;;
953
954  --config-cache | -C)
955    cache_file=config.cache ;;
956
957  -datadir | --datadir | --datadi | --datad)
958    ac_prev=datadir ;;
959  -datadir=* | --datadir=* | --datadi=* | --datad=*)
960    datadir=$ac_optarg ;;
961
962  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
963  | --dataroo | --dataro | --datar)
964    ac_prev=datarootdir ;;
965  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
966  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
967    datarootdir=$ac_optarg ;;
968
969  -disable-* | --disable-*)
970    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
971    # Reject names that are not valid shell variable names.
972    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973      as_fn_error $? "invalid feature name: $ac_useropt"
974    ac_useropt_orig=$ac_useropt
975    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976    case $ac_user_opts in
977      *"
978"enable_$ac_useropt"
979"*) ;;
980      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
981	 ac_unrecognized_sep=', ';;
982    esac
983    eval enable_$ac_useropt=no ;;
984
985  -docdir | --docdir | --docdi | --doc | --do)
986    ac_prev=docdir ;;
987  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
988    docdir=$ac_optarg ;;
989
990  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
991    ac_prev=dvidir ;;
992  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
993    dvidir=$ac_optarg ;;
994
995  -enable-* | --enable-*)
996    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
997    # Reject names that are not valid shell variable names.
998    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999      as_fn_error $? "invalid feature name: $ac_useropt"
1000    ac_useropt_orig=$ac_useropt
1001    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002    case $ac_user_opts in
1003      *"
1004"enable_$ac_useropt"
1005"*) ;;
1006      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1007	 ac_unrecognized_sep=', ';;
1008    esac
1009    eval enable_$ac_useropt=\$ac_optarg ;;
1010
1011  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013  | --exec | --exe | --ex)
1014    ac_prev=exec_prefix ;;
1015  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017  | --exec=* | --exe=* | --ex=*)
1018    exec_prefix=$ac_optarg ;;
1019
1020  -gas | --gas | --ga | --g)
1021    # Obsolete; use --with-gas.
1022    with_gas=yes ;;
1023
1024  -help | --help | --hel | --he | -h)
1025    ac_init_help=long ;;
1026  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027    ac_init_help=recursive ;;
1028  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029    ac_init_help=short ;;
1030
1031  -host | --host | --hos | --ho)
1032    ac_prev=host_alias ;;
1033  -host=* | --host=* | --hos=* | --ho=*)
1034    host_alias=$ac_optarg ;;
1035
1036  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037    ac_prev=htmldir ;;
1038  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039  | --ht=*)
1040    htmldir=$ac_optarg ;;
1041
1042  -includedir | --includedir | --includedi | --included | --include \
1043  | --includ | --inclu | --incl | --inc)
1044    ac_prev=includedir ;;
1045  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046  | --includ=* | --inclu=* | --incl=* | --inc=*)
1047    includedir=$ac_optarg ;;
1048
1049  -infodir | --infodir | --infodi | --infod | --info | --inf)
1050    ac_prev=infodir ;;
1051  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052    infodir=$ac_optarg ;;
1053
1054  -libdir | --libdir | --libdi | --libd)
1055    ac_prev=libdir ;;
1056  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057    libdir=$ac_optarg ;;
1058
1059  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060  | --libexe | --libex | --libe)
1061    ac_prev=libexecdir ;;
1062  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063  | --libexe=* | --libex=* | --libe=*)
1064    libexecdir=$ac_optarg ;;
1065
1066  -localedir | --localedir | --localedi | --localed | --locale)
1067    ac_prev=localedir ;;
1068  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069    localedir=$ac_optarg ;;
1070
1071  -localstatedir | --localstatedir | --localstatedi | --localstated \
1072  | --localstate | --localstat | --localsta | --localst | --locals)
1073    ac_prev=localstatedir ;;
1074  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076    localstatedir=$ac_optarg ;;
1077
1078  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079    ac_prev=mandir ;;
1080  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081    mandir=$ac_optarg ;;
1082
1083  -nfp | --nfp | --nf)
1084    # Obsolete; use --without-fp.
1085    with_fp=no ;;
1086
1087  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088  | --no-cr | --no-c | -n)
1089    no_create=yes ;;
1090
1091  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093    no_recursion=yes ;;
1094
1095  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097  | --oldin | --oldi | --old | --ol | --o)
1098    ac_prev=oldincludedir ;;
1099  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102    oldincludedir=$ac_optarg ;;
1103
1104  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105    ac_prev=prefix ;;
1106  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107    prefix=$ac_optarg ;;
1108
1109  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110  | --program-pre | --program-pr | --program-p)
1111    ac_prev=program_prefix ;;
1112  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114    program_prefix=$ac_optarg ;;
1115
1116  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117  | --program-suf | --program-su | --program-s)
1118    ac_prev=program_suffix ;;
1119  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121    program_suffix=$ac_optarg ;;
1122
1123  -program-transform-name | --program-transform-name \
1124  | --program-transform-nam | --program-transform-na \
1125  | --program-transform-n | --program-transform- \
1126  | --program-transform | --program-transfor \
1127  | --program-transfo | --program-transf \
1128  | --program-trans | --program-tran \
1129  | --progr-tra | --program-tr | --program-t)
1130    ac_prev=program_transform_name ;;
1131  -program-transform-name=* | --program-transform-name=* \
1132  | --program-transform-nam=* | --program-transform-na=* \
1133  | --program-transform-n=* | --program-transform-=* \
1134  | --program-transform=* | --program-transfor=* \
1135  | --program-transfo=* | --program-transf=* \
1136  | --program-trans=* | --program-tran=* \
1137  | --progr-tra=* | --program-tr=* | --program-t=*)
1138    program_transform_name=$ac_optarg ;;
1139
1140  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141    ac_prev=pdfdir ;;
1142  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143    pdfdir=$ac_optarg ;;
1144
1145  -psdir | --psdir | --psdi | --psd | --ps)
1146    ac_prev=psdir ;;
1147  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148    psdir=$ac_optarg ;;
1149
1150  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151  | -silent | --silent | --silen | --sile | --sil)
1152    silent=yes ;;
1153
1154  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155    ac_prev=sbindir ;;
1156  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157  | --sbi=* | --sb=*)
1158    sbindir=$ac_optarg ;;
1159
1160  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162  | --sharedst | --shareds | --shared | --share | --shar \
1163  | --sha | --sh)
1164    ac_prev=sharedstatedir ;;
1165  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168  | --sha=* | --sh=*)
1169    sharedstatedir=$ac_optarg ;;
1170
1171  -site | --site | --sit)
1172    ac_prev=site ;;
1173  -site=* | --site=* | --sit=*)
1174    site=$ac_optarg ;;
1175
1176  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177    ac_prev=srcdir ;;
1178  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179    srcdir=$ac_optarg ;;
1180
1181  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182  | --syscon | --sysco | --sysc | --sys | --sy)
1183    ac_prev=sysconfdir ;;
1184  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186    sysconfdir=$ac_optarg ;;
1187
1188  -target | --target | --targe | --targ | --tar | --ta | --t)
1189    ac_prev=target_alias ;;
1190  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191    target_alias=$ac_optarg ;;
1192
1193  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194    verbose=yes ;;
1195
1196  -version | --version | --versio | --versi | --vers | -V)
1197    ac_init_version=: ;;
1198
1199  -with-* | --with-*)
1200    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201    # Reject names that are not valid shell variable names.
1202    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203      as_fn_error $? "invalid package name: $ac_useropt"
1204    ac_useropt_orig=$ac_useropt
1205    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206    case $ac_user_opts in
1207      *"
1208"with_$ac_useropt"
1209"*) ;;
1210      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1211	 ac_unrecognized_sep=', ';;
1212    esac
1213    eval with_$ac_useropt=\$ac_optarg ;;
1214
1215  -without-* | --without-*)
1216    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1217    # Reject names that are not valid shell variable names.
1218    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219      as_fn_error $? "invalid package name: $ac_useropt"
1220    ac_useropt_orig=$ac_useropt
1221    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222    case $ac_user_opts in
1223      *"
1224"with_$ac_useropt"
1225"*) ;;
1226      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1227	 ac_unrecognized_sep=', ';;
1228    esac
1229    eval with_$ac_useropt=no ;;
1230
1231  --x)
1232    # Obsolete; use --with-x.
1233    with_x=yes ;;
1234
1235  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236  | --x-incl | --x-inc | --x-in | --x-i)
1237    ac_prev=x_includes ;;
1238  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240    x_includes=$ac_optarg ;;
1241
1242  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244    ac_prev=x_libraries ;;
1245  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247    x_libraries=$ac_optarg ;;
1248
1249  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1250Try \`$0 --help' for more information"
1251    ;;
1252
1253  *=*)
1254    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255    # Reject names that are not valid shell variable names.
1256    case $ac_envvar in #(
1257      '' | [0-9]* | *[!_$as_cr_alnum]* )
1258      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1259    esac
1260    eval $ac_envvar=\$ac_optarg
1261    export $ac_envvar ;;
1262
1263  *)
1264    # FIXME: should be removed in autoconf 3.0.
1265    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1269    ;;
1270
1271  esac
1272done
1273
1274if test -n "$ac_prev"; then
1275  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276  as_fn_error $? "missing argument to $ac_option"
1277fi
1278
1279if test -n "$ac_unrecognized_opts"; then
1280  case $enable_option_checking in
1281    no) ;;
1282    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1283    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1284  esac
1285fi
1286
1287# Check all directory arguments for consistency.
1288for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1289		datadir sysconfdir sharedstatedir localstatedir includedir \
1290		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1291		libdir localedir mandir
1292do
1293  eval ac_val=\$$ac_var
1294  # Remove trailing slashes.
1295  case $ac_val in
1296    */ )
1297      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1298      eval $ac_var=\$ac_val;;
1299  esac
1300  # Be sure to have absolute directory names.
1301  case $ac_val in
1302    [\\/$]* | ?:[\\/]* )  continue;;
1303    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1304  esac
1305  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1306done
1307
1308# There might be people who depend on the old broken behavior: `$host'
1309# used to hold the argument of --host etc.
1310# FIXME: To remove some day.
1311build=$build_alias
1312host=$host_alias
1313target=$target_alias
1314
1315# FIXME: To remove some day.
1316if test "x$host_alias" != x; then
1317  if test "x$build_alias" = x; then
1318    cross_compiling=maybe
1319  elif test "x$build_alias" != "x$host_alias"; then
1320    cross_compiling=yes
1321  fi
1322fi
1323
1324ac_tool_prefix=
1325test -n "$host_alias" && ac_tool_prefix=$host_alias-
1326
1327test "$silent" = yes && exec 6>/dev/null
1328
1329
1330ac_pwd=`pwd` && test -n "$ac_pwd" &&
1331ac_ls_di=`ls -di .` &&
1332ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1333  as_fn_error $? "working directory cannot be determined"
1334test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1335  as_fn_error $? "pwd does not report name of working directory"
1336
1337
1338# Find the source files, if location was not specified.
1339if test -z "$srcdir"; then
1340  ac_srcdir_defaulted=yes
1341  # Try the directory containing this script, then the parent directory.
1342  ac_confdir=`$as_dirname -- "$as_myself" ||
1343$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1344	 X"$as_myself" : 'X\(//\)[^/]' \| \
1345	 X"$as_myself" : 'X\(//\)$' \| \
1346	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1347$as_echo X"$as_myself" |
1348    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349	    s//\1/
1350	    q
1351	  }
1352	  /^X\(\/\/\)[^/].*/{
1353	    s//\1/
1354	    q
1355	  }
1356	  /^X\(\/\/\)$/{
1357	    s//\1/
1358	    q
1359	  }
1360	  /^X\(\/\).*/{
1361	    s//\1/
1362	    q
1363	  }
1364	  s/.*/./; q'`
1365  srcdir=$ac_confdir
1366  if test ! -r "$srcdir/$ac_unique_file"; then
1367    srcdir=..
1368  fi
1369else
1370  ac_srcdir_defaulted=no
1371fi
1372if test ! -r "$srcdir/$ac_unique_file"; then
1373  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1374  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1375fi
1376ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1377ac_abs_confdir=`(
1378	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1379	pwd)`
1380# When building in place, set srcdir=.
1381if test "$ac_abs_confdir" = "$ac_pwd"; then
1382  srcdir=.
1383fi
1384# Remove unnecessary trailing slashes from srcdir.
1385# Double slashes in file names in object file debugging info
1386# mess up M-x gdb in Emacs.
1387case $srcdir in
1388*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1389esac
1390for ac_var in $ac_precious_vars; do
1391  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1392  eval ac_env_${ac_var}_value=\$${ac_var}
1393  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1394  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1395done
1396
1397#
1398# Report the --help message.
1399#
1400if test "$ac_init_help" = "long"; then
1401  # Omit some internal or obsolete options to make the list less imposing.
1402  # This message is too long to be a string in the A/UX 3.1 sh.
1403  cat <<_ACEOF
1404\`configure' configures libsodium 1.0.18 to adapt to many kinds of systems.
1405
1406Usage: $0 [OPTION]... [VAR=VALUE]...
1407
1408To assign environment variables (e.g., CC, CFLAGS...), specify them as
1409VAR=VALUE.  See below for descriptions of some of the useful variables.
1410
1411Defaults for the options are specified in brackets.
1412
1413Configuration:
1414  -h, --help              display this help and exit
1415      --help=short        display options specific to this package
1416      --help=recursive    display the short help of all the included packages
1417  -V, --version           display version information and exit
1418  -q, --quiet, --silent   do not print \`checking ...' messages
1419      --cache-file=FILE   cache test results in FILE [disabled]
1420  -C, --config-cache      alias for \`--cache-file=config.cache'
1421  -n, --no-create         do not create output files
1422      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1423
1424Installation directories:
1425  --prefix=PREFIX         install architecture-independent files in PREFIX
1426                          [$ac_default_prefix]
1427  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1428                          [PREFIX]
1429
1430By default, \`make install' will install all the files in
1431\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1432an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1433for instance \`--prefix=\$HOME'.
1434
1435For better control, use the options below.
1436
1437Fine tuning of the installation directories:
1438  --bindir=DIR            user executables [EPREFIX/bin]
1439  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1440  --libexecdir=DIR        program executables [EPREFIX/libexec]
1441  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1442  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1443  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1444  --libdir=DIR            object code libraries [EPREFIX/lib]
1445  --includedir=DIR        C header files [PREFIX/include]
1446  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1447  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1448  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1449  --infodir=DIR           info documentation [DATAROOTDIR/info]
1450  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1451  --mandir=DIR            man documentation [DATAROOTDIR/man]
1452  --docdir=DIR            documentation root [DATAROOTDIR/doc/libsodium]
1453  --htmldir=DIR           html documentation [DOCDIR]
1454  --dvidir=DIR            dvi documentation [DOCDIR]
1455  --pdfdir=DIR            pdf documentation [DOCDIR]
1456  --psdir=DIR             ps documentation [DOCDIR]
1457_ACEOF
1458
1459  cat <<\_ACEOF
1460
1461Program names:
1462  --program-prefix=PREFIX            prepend PREFIX to installed program names
1463  --program-suffix=SUFFIX            append SUFFIX to installed program names
1464  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1465
1466System types:
1467  --build=BUILD     configure for building on BUILD [guessed]
1468  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1469_ACEOF
1470fi
1471
1472if test -n "$ac_init_help"; then
1473  case $ac_init_help in
1474     short | recursive ) echo "Configuration of libsodium 1.0.18:";;
1475   esac
1476  cat <<\_ACEOF
1477
1478Optional Features:
1479  --disable-option-checking  ignore unrecognized --enable/--with options
1480  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1481  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1482  --enable-silent-rules   less verbose build output (undo: "make V=1")
1483  --disable-silent-rules  verbose build output (undo: "make V=0")
1484  --enable-maintainer-mode
1485                          enable make rules and dependencies not useful (and
1486                          sometimes confusing) to the casual installer
1487  --enable-dependency-tracking
1488                          do not reject slow dependency extractors
1489  --disable-dependency-tracking
1490                          speeds up one-time build
1491  --disable-ssp           Do not compile with -fstack-protector
1492  --disable-asm           Do not compile assembly code -- As a side effect,
1493                          this disables CPU-specific implementations on
1494                          non-Windows platforms. Only for use with targets
1495                          such as WebAssembly.
1496  --disable-pie           Do not produce position independent executables
1497  --enable-blocking-random
1498                          Enable this switch only if /dev/urandom is totally
1499                          broken on the target platform
1500  --enable-minimal        Only compile the minimum set of functions required
1501                          for the high-level API
1502  --enable-retpoline      Use return trampolines for indirect calls
1503  --enable-debug          For maintainers only - please do not use
1504  --enable-opt            Optimize for the native CPU - The resulting library
1505                          will be faster but not portable
1506  --enable-valgrind       Whether to enable Valgrind on the unit tests
1507                          (requires GNU make)
1508  --disable-valgrind-memcheck
1509                          Whether to skip memcheck during the Valgrind tests
1510  --disable-valgrind-helgrind
1511                          Whether to skip helgrind during the Valgrind tests
1512  --disable-valgrind-drd  Whether to skip drd during the Valgrind tests
1513  --disable-valgrind-sgcheck
1514                          Whether to skip sgcheck during the Valgrind tests
1515  --enable-soname-versions
1516                          enable soname versions (must be disabled for
1517                          Android) (default: enabled)
1518  --enable-shared[=PKGS]  build shared libraries [default=yes]
1519  --enable-static[=PKGS]  build static libraries [default=yes]
1520  --enable-fast-install[=PKGS]
1521                          optimize for fast installation [default=yes]
1522  --disable-libtool-lock  avoid locking (might break parallel builds)
1523
1524Optional Packages:
1525  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1526  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1527  --with-pthreads         use pthreads library, or --without-pthreads to
1528                          disable threading support.
1529  --with-safecode         For maintainers only - please do not use
1530  --with-ctgrind          For maintainers only - please do not use
1531  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1532                          both]
1533  --with-aix-soname=aix|svr4|both
1534                          shared library versioning (aka "SONAME") variant to
1535                          provide on AIX, [default=aix].
1536  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1537  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1538                          compiler's sysroot if not specified).
1539
1540Some influential environment variables:
1541  CC          C compiler command
1542  CFLAGS      C compiler flags
1543  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1544              nonstandard directory <lib dir>
1545  LIBS        libraries to pass to the linker, e.g. -l<library>
1546  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1547              you have headers in a nonstandard directory <include dir>
1548  CPP         C preprocessor
1549  SAFECODE_HOME
1550              set to the safecode base directory
1551  CCAS        assembler compiler command (defaults to CC)
1552  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1553  CWFLAGS     define to compilation flags for generating extra warnings
1554  LT_SYS_LIBRARY_PATH
1555              User-defined run-time library search path.
1556  AR          path to the ar utility
1557
1558Use these variables to override the choices made by `configure' or to help
1559it to find libraries and programs with nonstandard names/locations.
1560
1561Report bugs to <https://github.com/jedisct1/libsodium/issues>.
1562libsodium home page: <https://github.com/jedisct1/libsodium>.
1563_ACEOF
1564ac_status=$?
1565fi
1566
1567if test "$ac_init_help" = "recursive"; then
1568  # If there are subdirs, report their specific --help.
1569  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1570    test -d "$ac_dir" ||
1571      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1572      continue
1573    ac_builddir=.
1574
1575case "$ac_dir" in
1576.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577*)
1578  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1579  # A ".." for each directory in $ac_dir_suffix.
1580  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1581  case $ac_top_builddir_sub in
1582  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1584  esac ;;
1585esac
1586ac_abs_top_builddir=$ac_pwd
1587ac_abs_builddir=$ac_pwd$ac_dir_suffix
1588# for backward compatibility:
1589ac_top_builddir=$ac_top_build_prefix
1590
1591case $srcdir in
1592  .)  # We are building in place.
1593    ac_srcdir=.
1594    ac_top_srcdir=$ac_top_builddir_sub
1595    ac_abs_top_srcdir=$ac_pwd ;;
1596  [\\/]* | ?:[\\/]* )  # Absolute name.
1597    ac_srcdir=$srcdir$ac_dir_suffix;
1598    ac_top_srcdir=$srcdir
1599    ac_abs_top_srcdir=$srcdir ;;
1600  *) # Relative name.
1601    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1602    ac_top_srcdir=$ac_top_build_prefix$srcdir
1603    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1604esac
1605ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1606
1607    cd "$ac_dir" || { ac_status=$?; continue; }
1608    # Check for guested configure.
1609    if test -f "$ac_srcdir/configure.gnu"; then
1610      echo &&
1611      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1612    elif test -f "$ac_srcdir/configure"; then
1613      echo &&
1614      $SHELL "$ac_srcdir/configure" --help=recursive
1615    else
1616      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1617    fi || ac_status=$?
1618    cd "$ac_pwd" || { ac_status=$?; break; }
1619  done
1620fi
1621
1622test -n "$ac_init_help" && exit $ac_status
1623if $ac_init_version; then
1624  cat <<\_ACEOF
1625libsodium configure 1.0.18
1626generated by GNU Autoconf 2.69
1627
1628Copyright (C) 2012 Free Software Foundation, Inc.
1629This configure script is free software; the Free Software Foundation
1630gives unlimited permission to copy, distribute and modify it.
1631_ACEOF
1632  exit
1633fi
1634
1635## ------------------------ ##
1636## Autoconf initialization. ##
1637## ------------------------ ##
1638
1639# ac_fn_c_try_compile LINENO
1640# --------------------------
1641# Try to compile conftest.$ac_ext, and return whether this succeeded.
1642ac_fn_c_try_compile ()
1643{
1644  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645  rm -f conftest.$ac_objext
1646  if { { ac_try="$ac_compile"
1647case "(($ac_try" in
1648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649  *) ac_try_echo=$ac_try;;
1650esac
1651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652$as_echo "$ac_try_echo"; } >&5
1653  (eval "$ac_compile") 2>conftest.err
1654  ac_status=$?
1655  if test -s conftest.err; then
1656    grep -v '^ *+' conftest.err >conftest.er1
1657    cat conftest.er1 >&5
1658    mv -f conftest.er1 conftest.err
1659  fi
1660  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661  test $ac_status = 0; } && {
1662	 test -z "$ac_c_werror_flag" ||
1663	 test ! -s conftest.err
1664       } && test -s conftest.$ac_objext; then :
1665  ac_retval=0
1666else
1667  $as_echo "$as_me: failed program was:" >&5
1668sed 's/^/| /' conftest.$ac_ext >&5
1669
1670	ac_retval=1
1671fi
1672  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673  as_fn_set_status $ac_retval
1674
1675} # ac_fn_c_try_compile
1676
1677# ac_fn_c_try_link LINENO
1678# -----------------------
1679# Try to link conftest.$ac_ext, and return whether this succeeded.
1680ac_fn_c_try_link ()
1681{
1682  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683  rm -f conftest.$ac_objext conftest$ac_exeext
1684  if { { ac_try="$ac_link"
1685case "(($ac_try" in
1686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687  *) ac_try_echo=$ac_try;;
1688esac
1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690$as_echo "$ac_try_echo"; } >&5
1691  (eval "$ac_link") 2>conftest.err
1692  ac_status=$?
1693  if test -s conftest.err; then
1694    grep -v '^ *+' conftest.err >conftest.er1
1695    cat conftest.er1 >&5
1696    mv -f conftest.er1 conftest.err
1697  fi
1698  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699  test $ac_status = 0; } && {
1700	 test -z "$ac_c_werror_flag" ||
1701	 test ! -s conftest.err
1702       } && test -s conftest$ac_exeext && {
1703	 test "$cross_compiling" = yes ||
1704	 test -x conftest$ac_exeext
1705       }; then :
1706  ac_retval=0
1707else
1708  $as_echo "$as_me: failed program was:" >&5
1709sed 's/^/| /' conftest.$ac_ext >&5
1710
1711	ac_retval=1
1712fi
1713  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1714  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1715  # interfere with the next link command; also delete a directory that is
1716  # left behind by Apple's compiler.  We do this before executing the actions.
1717  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1718  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719  as_fn_set_status $ac_retval
1720
1721} # ac_fn_c_try_link
1722
1723# ac_fn_c_try_cpp LINENO
1724# ----------------------
1725# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1726ac_fn_c_try_cpp ()
1727{
1728  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729  if { { ac_try="$ac_cpp conftest.$ac_ext"
1730case "(($ac_try" in
1731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732  *) ac_try_echo=$ac_try;;
1733esac
1734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735$as_echo "$ac_try_echo"; } >&5
1736  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1737  ac_status=$?
1738  if test -s conftest.err; then
1739    grep -v '^ *+' conftest.err >conftest.er1
1740    cat conftest.er1 >&5
1741    mv -f conftest.er1 conftest.err
1742  fi
1743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744  test $ac_status = 0; } > conftest.i && {
1745	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1746	 test ! -s conftest.err
1747       }; then :
1748  ac_retval=0
1749else
1750  $as_echo "$as_me: failed program was:" >&5
1751sed 's/^/| /' conftest.$ac_ext >&5
1752
1753    ac_retval=1
1754fi
1755  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756  as_fn_set_status $ac_retval
1757
1758} # ac_fn_c_try_cpp
1759
1760# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1761# -------------------------------------------------------
1762# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1763# the include files in INCLUDES and setting the cache variable VAR
1764# accordingly.
1765ac_fn_c_check_header_mongrel ()
1766{
1767  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768  if eval \${$3+:} false; then :
1769  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770$as_echo_n "checking for $2... " >&6; }
1771if eval \${$3+:} false; then :
1772  $as_echo_n "(cached) " >&6
1773fi
1774eval ac_res=\$$3
1775	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776$as_echo "$ac_res" >&6; }
1777else
1778  # Is the header compilable?
1779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1780$as_echo_n "checking $2 usability... " >&6; }
1781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782/* end confdefs.h.  */
1783$4
1784#include <$2>
1785_ACEOF
1786if ac_fn_c_try_compile "$LINENO"; then :
1787  ac_header_compiler=yes
1788else
1789  ac_header_compiler=no
1790fi
1791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1793$as_echo "$ac_header_compiler" >&6; }
1794
1795# Is the header present?
1796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1797$as_echo_n "checking $2 presence... " >&6; }
1798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799/* end confdefs.h.  */
1800#include <$2>
1801_ACEOF
1802if ac_fn_c_try_cpp "$LINENO"; then :
1803  ac_header_preproc=yes
1804else
1805  ac_header_preproc=no
1806fi
1807rm -f conftest.err conftest.i conftest.$ac_ext
1808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1809$as_echo "$ac_header_preproc" >&6; }
1810
1811# So?  What about this header?
1812case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1813  yes:no: )
1814    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1815$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1816    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1817$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1818    ;;
1819  no:yes:* )
1820    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1821$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1822    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1823$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1824    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1825$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1826    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1827$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1828    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1829$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1830( $as_echo "## ----------------------------------------------------------- ##
1831## Report this to https://github.com/jedisct1/libsodium/issues ##
1832## ----------------------------------------------------------- ##"
1833     ) | sed "s/^/$as_me: WARNING:     /" >&2
1834    ;;
1835esac
1836  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837$as_echo_n "checking for $2... " >&6; }
1838if eval \${$3+:} false; then :
1839  $as_echo_n "(cached) " >&6
1840else
1841  eval "$3=\$ac_header_compiler"
1842fi
1843eval ac_res=\$$3
1844	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845$as_echo "$ac_res" >&6; }
1846fi
1847  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848
1849} # ac_fn_c_check_header_mongrel
1850
1851# ac_fn_c_try_run LINENO
1852# ----------------------
1853# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1854# that executables *can* be run.
1855ac_fn_c_try_run ()
1856{
1857  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858  if { { ac_try="$ac_link"
1859case "(($ac_try" in
1860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861  *) ac_try_echo=$ac_try;;
1862esac
1863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864$as_echo "$ac_try_echo"; } >&5
1865  (eval "$ac_link") 2>&5
1866  ac_status=$?
1867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1869  { { case "(($ac_try" in
1870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871  *) ac_try_echo=$ac_try;;
1872esac
1873eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874$as_echo "$ac_try_echo"; } >&5
1875  (eval "$ac_try") 2>&5
1876  ac_status=$?
1877  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878  test $ac_status = 0; }; }; then :
1879  ac_retval=0
1880else
1881  $as_echo "$as_me: program exited with status $ac_status" >&5
1882       $as_echo "$as_me: failed program was:" >&5
1883sed 's/^/| /' conftest.$ac_ext >&5
1884
1885       ac_retval=$ac_status
1886fi
1887  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889  as_fn_set_status $ac_retval
1890
1891} # ac_fn_c_try_run
1892
1893# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1894# -------------------------------------------------------
1895# Tests whether HEADER exists and can be compiled using the include files in
1896# INCLUDES, setting the cache variable VAR accordingly.
1897ac_fn_c_check_header_compile ()
1898{
1899  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901$as_echo_n "checking for $2... " >&6; }
1902if eval \${$3+:} false; then :
1903  $as_echo_n "(cached) " >&6
1904else
1905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906/* end confdefs.h.  */
1907$4
1908#include <$2>
1909_ACEOF
1910if ac_fn_c_try_compile "$LINENO"; then :
1911  eval "$3=yes"
1912else
1913  eval "$3=no"
1914fi
1915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1916fi
1917eval ac_res=\$$3
1918	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919$as_echo "$ac_res" >&6; }
1920  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921
1922} # ac_fn_c_check_header_compile
1923
1924# ac_fn_c_check_func LINENO FUNC VAR
1925# ----------------------------------
1926# Tests whether FUNC exists, setting the cache variable VAR accordingly
1927ac_fn_c_check_func ()
1928{
1929  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931$as_echo_n "checking for $2... " >&6; }
1932if eval \${$3+:} false; then :
1933  $as_echo_n "(cached) " >&6
1934else
1935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936/* end confdefs.h.  */
1937/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1938   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1939#define $2 innocuous_$2
1940
1941/* System header to define __stub macros and hopefully few prototypes,
1942    which can conflict with char $2 (); below.
1943    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1944    <limits.h> exists even on freestanding compilers.  */
1945
1946#ifdef __STDC__
1947# include <limits.h>
1948#else
1949# include <assert.h>
1950#endif
1951
1952#undef $2
1953
1954/* Override any GCC internal prototype to avoid an error.
1955   Use char because int might match the return type of a GCC
1956   builtin and then its argument prototype would still apply.  */
1957#ifdef __cplusplus
1958extern "C"
1959#endif
1960char $2 ();
1961/* The GNU C library defines this for functions which it implements
1962    to always fail with ENOSYS.  Some functions are actually named
1963    something starting with __ and the normal name is an alias.  */
1964#if defined __stub_$2 || defined __stub___$2
1965choke me
1966#endif
1967
1968int
1969main ()
1970{
1971return $2 ();
1972  ;
1973  return 0;
1974}
1975_ACEOF
1976if ac_fn_c_try_link "$LINENO"; then :
1977  eval "$3=yes"
1978else
1979  eval "$3=no"
1980fi
1981rm -f core conftest.err conftest.$ac_objext \
1982    conftest$ac_exeext conftest.$ac_ext
1983fi
1984eval ac_res=\$$3
1985	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986$as_echo "$ac_res" >&6; }
1987  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988
1989} # ac_fn_c_check_func
1990
1991# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1992# -------------------------------------------
1993# Tests whether TYPE exists after having included INCLUDES, setting cache
1994# variable VAR accordingly.
1995ac_fn_c_check_type ()
1996{
1997  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999$as_echo_n "checking for $2... " >&6; }
2000if eval \${$3+:} false; then :
2001  $as_echo_n "(cached) " >&6
2002else
2003  eval "$3=no"
2004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005/* end confdefs.h.  */
2006$4
2007int
2008main ()
2009{
2010if (sizeof ($2))
2011	 return 0;
2012  ;
2013  return 0;
2014}
2015_ACEOF
2016if ac_fn_c_try_compile "$LINENO"; then :
2017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018/* end confdefs.h.  */
2019$4
2020int
2021main ()
2022{
2023if (sizeof (($2)))
2024	    return 0;
2025  ;
2026  return 0;
2027}
2028_ACEOF
2029if ac_fn_c_try_compile "$LINENO"; then :
2030
2031else
2032  eval "$3=yes"
2033fi
2034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035fi
2036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037fi
2038eval ac_res=\$$3
2039	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040$as_echo "$ac_res" >&6; }
2041  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042
2043} # ac_fn_c_check_type
2044cat >config.log <<_ACEOF
2045This file contains any messages produced by compilers while
2046running configure, to aid debugging if configure makes a mistake.
2047
2048It was created by libsodium $as_me 1.0.18, which was
2049generated by GNU Autoconf 2.69.  Invocation command line was
2050
2051  $ $0 $@
2052
2053_ACEOF
2054exec 5>>config.log
2055{
2056cat <<_ASUNAME
2057## --------- ##
2058## Platform. ##
2059## --------- ##
2060
2061hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2062uname -m = `(uname -m) 2>/dev/null || echo unknown`
2063uname -r = `(uname -r) 2>/dev/null || echo unknown`
2064uname -s = `(uname -s) 2>/dev/null || echo unknown`
2065uname -v = `(uname -v) 2>/dev/null || echo unknown`
2066
2067/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2068/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2069
2070/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2071/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2072/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2073/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2074/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2075/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2076/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2077
2078_ASUNAME
2079
2080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081for as_dir in $PATH
2082do
2083  IFS=$as_save_IFS
2084  test -z "$as_dir" && as_dir=.
2085    $as_echo "PATH: $as_dir"
2086  done
2087IFS=$as_save_IFS
2088
2089} >&5
2090
2091cat >&5 <<_ACEOF
2092
2093
2094## ----------- ##
2095## Core tests. ##
2096## ----------- ##
2097
2098_ACEOF
2099
2100
2101# Keep a trace of the command line.
2102# Strip out --no-create and --no-recursion so they do not pile up.
2103# Strip out --silent because we don't want to record it for future runs.
2104# Also quote any args containing shell meta-characters.
2105# Make two passes to allow for proper duplicate-argument suppression.
2106ac_configure_args=
2107ac_configure_args0=
2108ac_configure_args1=
2109ac_must_keep_next=false
2110for ac_pass in 1 2
2111do
2112  for ac_arg
2113  do
2114    case $ac_arg in
2115    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2116    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2117    | -silent | --silent | --silen | --sile | --sil)
2118      continue ;;
2119    *\'*)
2120      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2121    esac
2122    case $ac_pass in
2123    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2124    2)
2125      as_fn_append ac_configure_args1 " '$ac_arg'"
2126      if test $ac_must_keep_next = true; then
2127	ac_must_keep_next=false # Got value, back to normal.
2128      else
2129	case $ac_arg in
2130	  *=* | --config-cache | -C | -disable-* | --disable-* \
2131	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2132	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2133	  | -with-* | --with-* | -without-* | --without-* | --x)
2134	    case "$ac_configure_args0 " in
2135	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2136	    esac
2137	    ;;
2138	  -* ) ac_must_keep_next=true ;;
2139	esac
2140      fi
2141      as_fn_append ac_configure_args " '$ac_arg'"
2142      ;;
2143    esac
2144  done
2145done
2146{ ac_configure_args0=; unset ac_configure_args0;}
2147{ ac_configure_args1=; unset ac_configure_args1;}
2148
2149# When interrupted or exit'd, cleanup temporary files, and complete
2150# config.log.  We remove comments because anyway the quotes in there
2151# would cause problems or look ugly.
2152# WARNING: Use '\'' to represent an apostrophe within the trap.
2153# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2154trap 'exit_status=$?
2155  # Save into config.log some information that might help in debugging.
2156  {
2157    echo
2158
2159    $as_echo "## ---------------- ##
2160## Cache variables. ##
2161## ---------------- ##"
2162    echo
2163    # The following way of writing the cache mishandles newlines in values,
2164(
2165  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2166    eval ac_val=\$$ac_var
2167    case $ac_val in #(
2168    *${as_nl}*)
2169      case $ac_var in #(
2170      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2171$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2172      esac
2173      case $ac_var in #(
2174      _ | IFS | as_nl) ;; #(
2175      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2176      *) { eval $ac_var=; unset $ac_var;} ;;
2177      esac ;;
2178    esac
2179  done
2180  (set) 2>&1 |
2181    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2182    *${as_nl}ac_space=\ *)
2183      sed -n \
2184	"s/'\''/'\''\\\\'\'''\''/g;
2185	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2186      ;; #(
2187    *)
2188      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2189      ;;
2190    esac |
2191    sort
2192)
2193    echo
2194
2195    $as_echo "## ----------------- ##
2196## Output variables. ##
2197## ----------------- ##"
2198    echo
2199    for ac_var in $ac_subst_vars
2200    do
2201      eval ac_val=\$$ac_var
2202      case $ac_val in
2203      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2204      esac
2205      $as_echo "$ac_var='\''$ac_val'\''"
2206    done | sort
2207    echo
2208
2209    if test -n "$ac_subst_files"; then
2210      $as_echo "## ------------------- ##
2211## File substitutions. ##
2212## ------------------- ##"
2213      echo
2214      for ac_var in $ac_subst_files
2215      do
2216	eval ac_val=\$$ac_var
2217	case $ac_val in
2218	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2219	esac
2220	$as_echo "$ac_var='\''$ac_val'\''"
2221      done | sort
2222      echo
2223    fi
2224
2225    if test -s confdefs.h; then
2226      $as_echo "## ----------- ##
2227## confdefs.h. ##
2228## ----------- ##"
2229      echo
2230      cat confdefs.h
2231      echo
2232    fi
2233    test "$ac_signal" != 0 &&
2234      $as_echo "$as_me: caught signal $ac_signal"
2235    $as_echo "$as_me: exit $exit_status"
2236  } >&5
2237  rm -f core *.core core.conftest.* &&
2238    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2239    exit $exit_status
2240' 0
2241for ac_signal in 1 2 13 15; do
2242  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2243done
2244ac_signal=0
2245
2246# confdefs.h avoids OS command line length limits that DEFS can exceed.
2247rm -f -r conftest* confdefs.h
2248
2249$as_echo "/* confdefs.h */" > confdefs.h
2250
2251# Predefined preprocessor variables.
2252
2253cat >>confdefs.h <<_ACEOF
2254#define PACKAGE_NAME "$PACKAGE_NAME"
2255_ACEOF
2256
2257cat >>confdefs.h <<_ACEOF
2258#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2259_ACEOF
2260
2261cat >>confdefs.h <<_ACEOF
2262#define PACKAGE_VERSION "$PACKAGE_VERSION"
2263_ACEOF
2264
2265cat >>confdefs.h <<_ACEOF
2266#define PACKAGE_STRING "$PACKAGE_STRING"
2267_ACEOF
2268
2269cat >>confdefs.h <<_ACEOF
2270#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2271_ACEOF
2272
2273cat >>confdefs.h <<_ACEOF
2274#define PACKAGE_URL "$PACKAGE_URL"
2275_ACEOF
2276
2277
2278# Let the site file select an alternate cache file if it wants to.
2279# Prefer an explicitly selected file to automatically selected ones.
2280ac_site_file1=NONE
2281ac_site_file2=NONE
2282if test -n "$CONFIG_SITE"; then
2283  # We do not want a PATH search for config.site.
2284  case $CONFIG_SITE in #((
2285    -*)  ac_site_file1=./$CONFIG_SITE;;
2286    */*) ac_site_file1=$CONFIG_SITE;;
2287    *)   ac_site_file1=./$CONFIG_SITE;;
2288  esac
2289elif test "x$prefix" != xNONE; then
2290  ac_site_file1=$prefix/share/config.site
2291  ac_site_file2=$prefix/etc/config.site
2292else
2293  ac_site_file1=$ac_default_prefix/share/config.site
2294  ac_site_file2=$ac_default_prefix/etc/config.site
2295fi
2296for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2297do
2298  test "x$ac_site_file" = xNONE && continue
2299  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2300    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2301$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2302    sed 's/^/| /' "$ac_site_file" >&5
2303    . "$ac_site_file" \
2304      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2306as_fn_error $? "failed to load site script $ac_site_file
2307See \`config.log' for more details" "$LINENO" 5; }
2308  fi
2309done
2310
2311if test -r "$cache_file"; then
2312  # Some versions of bash will fail to source /dev/null (special files
2313  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2314  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2315    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2316$as_echo "$as_me: loading cache $cache_file" >&6;}
2317    case $cache_file in
2318      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2319      *)                      . "./$cache_file";;
2320    esac
2321  fi
2322else
2323  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2324$as_echo "$as_me: creating cache $cache_file" >&6;}
2325  >$cache_file
2326fi
2327
2328# Check that the precious variables saved in the cache have kept the same
2329# value.
2330ac_cache_corrupted=false
2331for ac_var in $ac_precious_vars; do
2332  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2333  eval ac_new_set=\$ac_env_${ac_var}_set
2334  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2335  eval ac_new_val=\$ac_env_${ac_var}_value
2336  case $ac_old_set,$ac_new_set in
2337    set,)
2338      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2339$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2340      ac_cache_corrupted=: ;;
2341    ,set)
2342      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2343$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2344      ac_cache_corrupted=: ;;
2345    ,);;
2346    *)
2347      if test "x$ac_old_val" != "x$ac_new_val"; then
2348	# differences in whitespace do not lead to failure.
2349	ac_old_val_w=`echo x $ac_old_val`
2350	ac_new_val_w=`echo x $ac_new_val`
2351	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2352	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2353$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2354	  ac_cache_corrupted=:
2355	else
2356	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2357$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2358	  eval $ac_var=\$ac_old_val
2359	fi
2360	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2361$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2362	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2363$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2364      fi;;
2365  esac
2366  # Pass precious variables to config.status.
2367  if test "$ac_new_set" = set; then
2368    case $ac_new_val in
2369    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2370    *) ac_arg=$ac_var=$ac_new_val ;;
2371    esac
2372    case " $ac_configure_args " in
2373      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2374      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2375    esac
2376  fi
2377done
2378if $ac_cache_corrupted; then
2379  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2380$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2381  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2382$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2383  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2384fi
2385## -------------------- ##
2386## Main body of script. ##
2387## -------------------- ##
2388
2389ac_ext=c
2390ac_cpp='$CPP $CPPFLAGS'
2391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393ac_compiler_gnu=$ac_cv_c_compiler_gnu
2394
2395
2396ac_aux_dir=
2397for ac_dir in build-aux "$srcdir"/build-aux; do
2398  if test -f "$ac_dir/install-sh"; then
2399    ac_aux_dir=$ac_dir
2400    ac_install_sh="$ac_aux_dir/install-sh -c"
2401    break
2402  elif test -f "$ac_dir/install.sh"; then
2403    ac_aux_dir=$ac_dir
2404    ac_install_sh="$ac_aux_dir/install.sh -c"
2405    break
2406  elif test -f "$ac_dir/shtool"; then
2407    ac_aux_dir=$ac_dir
2408    ac_install_sh="$ac_aux_dir/shtool install -c"
2409    break
2410  fi
2411done
2412if test -z "$ac_aux_dir"; then
2413  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2414fi
2415
2416# These three variables are undocumented and unsupported,
2417# and are intended to be withdrawn in a future Autoconf release.
2418# They can cause serious problems if a builder's source tree is in a directory
2419# whose full name contains unusual characters.
2420ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2421ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2422ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2423
2424
2425
2426
2427# Make sure we can run config.sub.
2428$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2429  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2430
2431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2432$as_echo_n "checking build system type... " >&6; }
2433if ${ac_cv_build+:} false; then :
2434  $as_echo_n "(cached) " >&6
2435else
2436  ac_build_alias=$build_alias
2437test "x$ac_build_alias" = x &&
2438  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2439test "x$ac_build_alias" = x &&
2440  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2441ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2442  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2443
2444fi
2445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2446$as_echo "$ac_cv_build" >&6; }
2447case $ac_cv_build in
2448*-*-*) ;;
2449*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2450esac
2451build=$ac_cv_build
2452ac_save_IFS=$IFS; IFS='-'
2453set x $ac_cv_build
2454shift
2455build_cpu=$1
2456build_vendor=$2
2457shift; shift
2458# Remember, the first character of IFS is used to create $*,
2459# except with old shells:
2460build_os=$*
2461IFS=$ac_save_IFS
2462case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2463
2464
2465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2466$as_echo_n "checking host system type... " >&6; }
2467if ${ac_cv_host+:} false; then :
2468  $as_echo_n "(cached) " >&6
2469else
2470  if test "x$host_alias" = x; then
2471  ac_cv_host=$ac_cv_build
2472else
2473  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2474    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2475fi
2476
2477fi
2478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2479$as_echo "$ac_cv_host" >&6; }
2480case $ac_cv_host in
2481*-*-*) ;;
2482*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2483esac
2484host=$ac_cv_host
2485ac_save_IFS=$IFS; IFS='-'
2486set x $ac_cv_host
2487shift
2488host_cpu=$1
2489host_vendor=$2
2490shift; shift
2491# Remember, the first character of IFS is used to create $*,
2492# except with old shells:
2493host_os=$*
2494IFS=$ac_save_IFS
2495case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2496
2497
2498am__api_version='1.16'
2499
2500# Find a good install program.  We prefer a C program (faster),
2501# so one script is as good as another.  But avoid the broken or
2502# incompatible versions:
2503# SysV /etc/install, /usr/sbin/install
2504# SunOS /usr/etc/install
2505# IRIX /sbin/install
2506# AIX /bin/install
2507# AmigaOS /C/install, which installs bootblocks on floppy discs
2508# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2509# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2510# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2511# OS/2's system install, which has a completely different semantic
2512# ./install, which can be erroneously created by make from ./install.sh.
2513# Reject install programs that cannot install multiple files.
2514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2515$as_echo_n "checking for a BSD-compatible install... " >&6; }
2516if test -z "$INSTALL"; then
2517if ${ac_cv_path_install+:} false; then :
2518  $as_echo_n "(cached) " >&6
2519else
2520  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521for as_dir in $PATH
2522do
2523  IFS=$as_save_IFS
2524  test -z "$as_dir" && as_dir=.
2525    # Account for people who put trailing slashes in PATH elements.
2526case $as_dir/ in #((
2527  ./ | .// | /[cC]/* | \
2528  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2529  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2530  /usr/ucb/* ) ;;
2531  *)
2532    # OSF1 and SCO ODT 3.0 have their own names for install.
2533    # Don't use installbsd from OSF since it installs stuff as root
2534    # by default.
2535    for ac_prog in ginstall scoinst install; do
2536      for ac_exec_ext in '' $ac_executable_extensions; do
2537	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2538	  if test $ac_prog = install &&
2539	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2540	    # AIX install.  It has an incompatible calling convention.
2541	    :
2542	  elif test $ac_prog = install &&
2543	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2544	    # program-specific install script used by HP pwplus--don't use.
2545	    :
2546	  else
2547	    rm -rf conftest.one conftest.two conftest.dir
2548	    echo one > conftest.one
2549	    echo two > conftest.two
2550	    mkdir conftest.dir
2551	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2552	      test -s conftest.one && test -s conftest.two &&
2553	      test -s conftest.dir/conftest.one &&
2554	      test -s conftest.dir/conftest.two
2555	    then
2556	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2557	      break 3
2558	    fi
2559	  fi
2560	fi
2561      done
2562    done
2563    ;;
2564esac
2565
2566  done
2567IFS=$as_save_IFS
2568
2569rm -rf conftest.one conftest.two conftest.dir
2570
2571fi
2572  if test "${ac_cv_path_install+set}" = set; then
2573    INSTALL=$ac_cv_path_install
2574  else
2575    # As a last resort, use the slow shell script.  Don't cache a
2576    # value for INSTALL within a source directory, because that will
2577    # break other packages using the cache if that directory is
2578    # removed, or if the value is a relative name.
2579    INSTALL=$ac_install_sh
2580  fi
2581fi
2582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2583$as_echo "$INSTALL" >&6; }
2584
2585# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2586# It thinks the first close brace ends the variable substitution.
2587test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2588
2589test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2590
2591test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2592
2593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2594$as_echo_n "checking whether build environment is sane... " >&6; }
2595# Reject unsafe characters in $srcdir or the absolute working directory
2596# name.  Accept space and tab only in the latter.
2597am_lf='
2598'
2599case `pwd` in
2600  *[\\\"\#\$\&\'\`$am_lf]*)
2601    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2602esac
2603case $srcdir in
2604  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2605    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2606esac
2607
2608# Do 'set' in a subshell so we don't clobber the current shell's
2609# arguments.  Must try -L first in case configure is actually a
2610# symlink; some systems play weird games with the mod time of symlinks
2611# (eg FreeBSD returns the mod time of the symlink's containing
2612# directory).
2613if (
2614   am_has_slept=no
2615   for am_try in 1 2; do
2616     echo "timestamp, slept: $am_has_slept" > conftest.file
2617     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2618     if test "$*" = "X"; then
2619	# -L didn't work.
2620	set X `ls -t "$srcdir/configure" conftest.file`
2621     fi
2622     if test "$*" != "X $srcdir/configure conftest.file" \
2623	&& test "$*" != "X conftest.file $srcdir/configure"; then
2624
2625	# If neither matched, then we have a broken ls.  This can happen
2626	# if, for instance, CONFIG_SHELL is bash and it inherits a
2627	# broken ls alias from the environment.  This has actually
2628	# happened.  Such a system could not be considered "sane".
2629	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2630  alias in your environment" "$LINENO" 5
2631     fi
2632     if test "$2" = conftest.file || test $am_try -eq 2; then
2633       break
2634     fi
2635     # Just in case.
2636     sleep 1
2637     am_has_slept=yes
2638   done
2639   test "$2" = conftest.file
2640   )
2641then
2642   # Ok.
2643   :
2644else
2645   as_fn_error $? "newly created file is older than distributed files!
2646Check your system clock" "$LINENO" 5
2647fi
2648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2649$as_echo "yes" >&6; }
2650# If we didn't sleep, we still need to ensure time stamps of config.status and
2651# generated files are strictly newer.
2652am_sleep_pid=
2653if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2654  ( sleep 1 ) &
2655  am_sleep_pid=$!
2656fi
2657
2658rm -f conftest.file
2659
2660test "$program_prefix" != NONE &&
2661  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2662# Use a double $ so make ignores it.
2663test "$program_suffix" != NONE &&
2664  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2665# Double any \ or $.
2666# By default was `s,x,x', remove it if useless.
2667ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2668program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2669
2670# Expand $ac_aux_dir to an absolute path.
2671am_aux_dir=`cd "$ac_aux_dir" && pwd`
2672
2673if test x"${MISSING+set}" != xset; then
2674  case $am_aux_dir in
2675  *\ * | *\	*)
2676    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2677  *)
2678    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2679  esac
2680fi
2681# Use eval to expand $SHELL
2682if eval "$MISSING --is-lightweight"; then
2683  am_missing_run="$MISSING "
2684else
2685  am_missing_run=
2686  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2687$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2688fi
2689
2690if test x"${install_sh+set}" != xset; then
2691  case $am_aux_dir in
2692  *\ * | *\	*)
2693    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2694  *)
2695    install_sh="\${SHELL} $am_aux_dir/install-sh"
2696  esac
2697fi
2698
2699# Installed binaries are usually stripped using 'strip' when the user
2700# run "make install-strip".  However 'strip' might not be the right
2701# tool to use in cross-compilation environments, therefore Automake
2702# will honor the 'STRIP' environment variable to overrule this program.
2703if test "$cross_compiling" != no; then
2704  if test -n "$ac_tool_prefix"; then
2705  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2706set dummy ${ac_tool_prefix}strip; ac_word=$2
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708$as_echo_n "checking for $ac_word... " >&6; }
2709if ${ac_cv_prog_STRIP+:} false; then :
2710  $as_echo_n "(cached) " >&6
2711else
2712  if test -n "$STRIP"; then
2713  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2714else
2715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716for as_dir in $PATH
2717do
2718  IFS=$as_save_IFS
2719  test -z "$as_dir" && as_dir=.
2720    for ac_exec_ext in '' $ac_executable_extensions; do
2721  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2722    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2723    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724    break 2
2725  fi
2726done
2727  done
2728IFS=$as_save_IFS
2729
2730fi
2731fi
2732STRIP=$ac_cv_prog_STRIP
2733if test -n "$STRIP"; then
2734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2735$as_echo "$STRIP" >&6; }
2736else
2737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738$as_echo "no" >&6; }
2739fi
2740
2741
2742fi
2743if test -z "$ac_cv_prog_STRIP"; then
2744  ac_ct_STRIP=$STRIP
2745  # Extract the first word of "strip", so it can be a program name with args.
2746set dummy strip; ac_word=$2
2747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2748$as_echo_n "checking for $ac_word... " >&6; }
2749if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2750  $as_echo_n "(cached) " >&6
2751else
2752  if test -n "$ac_ct_STRIP"; then
2753  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2754else
2755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756for as_dir in $PATH
2757do
2758  IFS=$as_save_IFS
2759  test -z "$as_dir" && as_dir=.
2760    for ac_exec_ext in '' $ac_executable_extensions; do
2761  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2762    ac_cv_prog_ac_ct_STRIP="strip"
2763    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2764    break 2
2765  fi
2766done
2767  done
2768IFS=$as_save_IFS
2769
2770fi
2771fi
2772ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2773if test -n "$ac_ct_STRIP"; then
2774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2775$as_echo "$ac_ct_STRIP" >&6; }
2776else
2777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778$as_echo "no" >&6; }
2779fi
2780
2781  if test "x$ac_ct_STRIP" = x; then
2782    STRIP=":"
2783  else
2784    case $cross_compiling:$ac_tool_warned in
2785yes:)
2786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2788ac_tool_warned=yes ;;
2789esac
2790    STRIP=$ac_ct_STRIP
2791  fi
2792else
2793  STRIP="$ac_cv_prog_STRIP"
2794fi
2795
2796fi
2797INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2798
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2800$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2801if test -z "$MKDIR_P"; then
2802  if ${ac_cv_path_mkdir+:} false; then :
2803  $as_echo_n "(cached) " >&6
2804else
2805  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2807do
2808  IFS=$as_save_IFS
2809  test -z "$as_dir" && as_dir=.
2810    for ac_prog in mkdir gmkdir; do
2811	 for ac_exec_ext in '' $ac_executable_extensions; do
2812	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2813	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2814	     'mkdir (GNU coreutils) '* | \
2815	     'mkdir (coreutils) '* | \
2816	     'mkdir (fileutils) '4.1*)
2817	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2818	       break 3;;
2819	   esac
2820	 done
2821       done
2822  done
2823IFS=$as_save_IFS
2824
2825fi
2826
2827  test -d ./--version && rmdir ./--version
2828  if test "${ac_cv_path_mkdir+set}" = set; then
2829    MKDIR_P="$ac_cv_path_mkdir -p"
2830  else
2831    # As a last resort, use the slow shell script.  Don't cache a
2832    # value for MKDIR_P within a source directory, because that will
2833    # break other packages using the cache if that directory is
2834    # removed, or if the value is a relative name.
2835    MKDIR_P="$ac_install_sh -d"
2836  fi
2837fi
2838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2839$as_echo "$MKDIR_P" >&6; }
2840
2841for ac_prog in gawk mawk nawk awk
2842do
2843  # Extract the first word of "$ac_prog", so it can be a program name with args.
2844set dummy $ac_prog; ac_word=$2
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846$as_echo_n "checking for $ac_word... " >&6; }
2847if ${ac_cv_prog_AWK+:} false; then :
2848  $as_echo_n "(cached) " >&6
2849else
2850  if test -n "$AWK"; then
2851  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2852else
2853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854for as_dir in $PATH
2855do
2856  IFS=$as_save_IFS
2857  test -z "$as_dir" && as_dir=.
2858    for ac_exec_ext in '' $ac_executable_extensions; do
2859  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2860    ac_cv_prog_AWK="$ac_prog"
2861    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862    break 2
2863  fi
2864done
2865  done
2866IFS=$as_save_IFS
2867
2868fi
2869fi
2870AWK=$ac_cv_prog_AWK
2871if test -n "$AWK"; then
2872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2873$as_echo "$AWK" >&6; }
2874else
2875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876$as_echo "no" >&6; }
2877fi
2878
2879
2880  test -n "$AWK" && break
2881done
2882
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2884$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2885set x ${MAKE-make}
2886ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2887if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2888  $as_echo_n "(cached) " >&6
2889else
2890  cat >conftest.make <<\_ACEOF
2891SHELL = /bin/sh
2892all:
2893	@echo '@@@%%%=$(MAKE)=@@@%%%'
2894_ACEOF
2895# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2896case `${MAKE-make} -f conftest.make 2>/dev/null` in
2897  *@@@%%%=?*=@@@%%%*)
2898    eval ac_cv_prog_make_${ac_make}_set=yes;;
2899  *)
2900    eval ac_cv_prog_make_${ac_make}_set=no;;
2901esac
2902rm -f conftest.make
2903fi
2904if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2906$as_echo "yes" >&6; }
2907  SET_MAKE=
2908else
2909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910$as_echo "no" >&6; }
2911  SET_MAKE="MAKE=${MAKE-make}"
2912fi
2913
2914rm -rf .tst 2>/dev/null
2915mkdir .tst 2>/dev/null
2916if test -d .tst; then
2917  am__leading_dot=.
2918else
2919  am__leading_dot=_
2920fi
2921rmdir .tst 2>/dev/null
2922
2923# Check whether --enable-silent-rules was given.
2924if test "${enable_silent_rules+set}" = set; then :
2925  enableval=$enable_silent_rules;
2926fi
2927
2928case $enable_silent_rules in # (((
2929  yes) AM_DEFAULT_VERBOSITY=0;;
2930   no) AM_DEFAULT_VERBOSITY=1;;
2931    *) AM_DEFAULT_VERBOSITY=1;;
2932esac
2933am_make=${MAKE-make}
2934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2935$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2936if ${am_cv_make_support_nested_variables+:} false; then :
2937  $as_echo_n "(cached) " >&6
2938else
2939  if $as_echo 'TRUE=$(BAR$(V))
2940BAR0=false
2941BAR1=true
2942V=1
2943am__doit:
2944	@$(TRUE)
2945.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2946  am_cv_make_support_nested_variables=yes
2947else
2948  am_cv_make_support_nested_variables=no
2949fi
2950fi
2951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2952$as_echo "$am_cv_make_support_nested_variables" >&6; }
2953if test $am_cv_make_support_nested_variables = yes; then
2954    AM_V='$(V)'
2955  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2956else
2957  AM_V=$AM_DEFAULT_VERBOSITY
2958  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2959fi
2960AM_BACKSLASH='\'
2961
2962if test "`cd $srcdir && pwd`" != "`pwd`"; then
2963  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2964  # is not polluted with repeated "-I."
2965  am__isrc=' -I$(srcdir)'
2966  # test to see if srcdir already configured
2967  if test -f $srcdir/config.status; then
2968    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2969  fi
2970fi
2971
2972# test whether we have cygpath
2973if test -z "$CYGPATH_W"; then
2974  if (cygpath --version) >/dev/null 2>/dev/null; then
2975    CYGPATH_W='cygpath -w'
2976  else
2977    CYGPATH_W=echo
2978  fi
2979fi
2980
2981
2982# Define the identity of the package.
2983 PACKAGE='libsodium'
2984 VERSION='1.0.18'
2985
2986
2987cat >>confdefs.h <<_ACEOF
2988#define PACKAGE "$PACKAGE"
2989_ACEOF
2990
2991
2992cat >>confdefs.h <<_ACEOF
2993#define VERSION "$VERSION"
2994_ACEOF
2995
2996# Some tools Automake needs.
2997
2998ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2999
3000
3001AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3002
3003
3004AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3005
3006
3007AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3008
3009
3010MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3011
3012# For better backward compatibility.  To be removed once Automake 1.9.x
3013# dies out for good.  For more background, see:
3014# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3015# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3016mkdir_p='$(MKDIR_P)'
3017
3018# We need awk for the "check" target (and possibly the TAP driver).  The
3019# system "awk" is bad on some platforms.
3020# Always define AMTAR for backward compatibility.  Yes, it's still used
3021# in the wild :-(  We should find a proper way to deprecate it ...
3022AMTAR='$${TAR-tar}'
3023
3024
3025# We'll loop over all known methods to create a tar archive until one works.
3026_am_tools='gnutar plaintar pax cpio none'
3027
3028# The POSIX 1988 'ustar' format is defined with fixed-size fields.
3029      # There is notably a 21 bits limit for the UID and the GID.  In fact,
3030      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3031      # and bug#13588).
3032      am_max_uid=2097151 # 2^21 - 1
3033      am_max_gid=$am_max_uid
3034      # The $UID and $GID variables are not portable, so we need to resort
3035      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3036      # below are definitely unexpected, so allow the users to see them
3037      # (that is, avoid stderr redirection).
3038      am_uid=`id -u || echo unknown`
3039      am_gid=`id -g || echo unknown`
3040      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3041$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3042      if test $am_uid -le $am_max_uid; then
3043         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3044$as_echo "yes" >&6; }
3045      else
3046         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047$as_echo "no" >&6; }
3048         _am_tools=none
3049      fi
3050      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3051$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3052      if test $am_gid -le $am_max_gid; then
3053         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3054$as_echo "yes" >&6; }
3055      else
3056        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3057$as_echo "no" >&6; }
3058        _am_tools=none
3059      fi
3060
3061  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3062$as_echo_n "checking how to create a ustar tar archive... " >&6; }
3063
3064  # Go ahead even if we have the value already cached.  We do so because we
3065  # need to set the values for the 'am__tar' and 'am__untar' variables.
3066  _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3067
3068  for _am_tool in $_am_tools; do
3069    case $_am_tool in
3070    gnutar)
3071      for _am_tar in tar gnutar gtar; do
3072        { echo "$as_me:$LINENO: $_am_tar --version" >&5
3073   ($_am_tar --version) >&5 2>&5
3074   ac_status=$?
3075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076   (exit $ac_status); } && break
3077      done
3078      am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3079      am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3080      am__untar="$_am_tar -xf -"
3081      ;;
3082    plaintar)
3083      # Must skip GNU tar: if it does not support --format= it doesn't create
3084      # ustar tarball either.
3085      (tar --version) >/dev/null 2>&1 && continue
3086      am__tar='tar chf - "$$tardir"'
3087      am__tar_='tar chf - "$tardir"'
3088      am__untar='tar xf -'
3089      ;;
3090    pax)
3091      am__tar='pax -L -x ustar -w "$$tardir"'
3092      am__tar_='pax -L -x ustar -w "$tardir"'
3093      am__untar='pax -r'
3094      ;;
3095    cpio)
3096      am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3097      am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3098      am__untar='cpio -i -H ustar -d'
3099      ;;
3100    none)
3101      am__tar=false
3102      am__tar_=false
3103      am__untar=false
3104      ;;
3105    esac
3106
3107    # If the value was cached, stop now.  We just wanted to have am__tar
3108    # and am__untar set.
3109    test -n "${am_cv_prog_tar_ustar}" && break
3110
3111    # tar/untar a dummy directory, and stop if the command works.
3112    rm -rf conftest.dir
3113    mkdir conftest.dir
3114    echo GrepMe > conftest.dir/file
3115    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3116   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3117   ac_status=$?
3118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119   (exit $ac_status); }
3120    rm -rf conftest.dir
3121    if test -s conftest.tar; then
3122      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3123   ($am__untar <conftest.tar) >&5 2>&5
3124   ac_status=$?
3125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126   (exit $ac_status); }
3127      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3128   (cat conftest.dir/file) >&5 2>&5
3129   ac_status=$?
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); }
3132      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3133    fi
3134  done
3135  rm -rf conftest.dir
3136
3137  if ${am_cv_prog_tar_ustar+:} false; then :
3138  $as_echo_n "(cached) " >&6
3139else
3140  am_cv_prog_tar_ustar=$_am_tool
3141fi
3142
3143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3144$as_echo "$am_cv_prog_tar_ustar" >&6; }
3145
3146
3147
3148
3149
3150
3151# POSIX will say in a future version that running "rm -f" with no argument
3152# is OK; and we want to be able to make that assumption in our Makefile
3153# recipes.  So use an aggressive probe to check that the usage we want is
3154# actually supported "in the wild" to an acceptable degree.
3155# See automake bug#10828.
3156# To make any issue more visible, cause the running configure to be aborted
3157# by default if the 'rm' program in use doesn't match our expectations; the
3158# user can still override this though.
3159if rm -f && rm -fr && rm -rf; then : OK; else
3160  cat >&2 <<'END'
3161Oops!
3162
3163Your 'rm' program seems unable to run without file operands specified
3164on the command line, even when the '-f' option is present.  This is contrary
3165to the behaviour of most rm programs out there, and not conforming with
3166the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3167
3168Please tell bug-automake@gnu.org about your system, including the value
3169of your $PATH and any error possibly output before this message.  This
3170can help us improve future automake versions.
3171
3172END
3173  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3174    echo 'Configuration will proceed anyway, since you have set the' >&2
3175    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3176    echo >&2
3177  else
3178    cat >&2 <<'END'
3179Aborting the configuration process, to ensure you take notice of the issue.
3180
3181You can download and install GNU coreutils to get an 'rm' implementation
3182that behaves properly: <https://www.gnu.org/software/coreutils/>.
3183
3184If you want to complete the configuration process using your problematic
3185'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3186to "yes", and re-run configure.
3187
3188END
3189    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3190  fi
3191fi
3192
3193# Check whether --enable-silent-rules was given.
3194if test "${enable_silent_rules+set}" = set; then :
3195  enableval=$enable_silent_rules;
3196fi
3197
3198case $enable_silent_rules in # (((
3199  yes) AM_DEFAULT_VERBOSITY=0;;
3200   no) AM_DEFAULT_VERBOSITY=1;;
3201    *) AM_DEFAULT_VERBOSITY=0;;
3202esac
3203am_make=${MAKE-make}
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3205$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3206if ${am_cv_make_support_nested_variables+:} false; then :
3207  $as_echo_n "(cached) " >&6
3208else
3209  if $as_echo 'TRUE=$(BAR$(V))
3210BAR0=false
3211BAR1=true
3212V=1
3213am__doit:
3214	@$(TRUE)
3215.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3216  am_cv_make_support_nested_variables=yes
3217else
3218  am_cv_make_support_nested_variables=no
3219fi
3220fi
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3222$as_echo "$am_cv_make_support_nested_variables" >&6; }
3223if test $am_cv_make_support_nested_variables = yes; then
3224    AM_V='$(V)'
3225  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3226else
3227  AM_V=$AM_DEFAULT_VERBOSITY
3228  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3229fi
3230AM_BACKSLASH='\'
3231
3232
3233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3234$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3235    # Check whether --enable-maintainer-mode was given.
3236if test "${enable_maintainer_mode+set}" = set; then :
3237  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3238else
3239  USE_MAINTAINER_MODE=no
3240fi
3241
3242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3243$as_echo "$USE_MAINTAINER_MODE" >&6; }
3244   if test $USE_MAINTAINER_MODE = yes; then
3245  MAINTAINER_MODE_TRUE=
3246  MAINTAINER_MODE_FALSE='#'
3247else
3248  MAINTAINER_MODE_TRUE='#'
3249  MAINTAINER_MODE_FALSE=
3250fi
3251
3252  MAINT=$MAINTAINER_MODE_TRUE
3253
3254
3255# Check whether --enable-dependency-tracking was given.
3256if test "${enable_dependency_tracking+set}" = set; then :
3257  enableval=$enable_dependency_tracking;
3258fi
3259
3260if test "x$enable_dependency_tracking" != xno; then
3261  am_depcomp="$ac_aux_dir/depcomp"
3262  AMDEPBACKSLASH='\'
3263  am__nodep='_no'
3264fi
3265 if test "x$enable_dependency_tracking" != xno; then
3266  AMDEP_TRUE=
3267  AMDEP_FALSE='#'
3268else
3269  AMDEP_TRUE='#'
3270  AMDEP_FALSE=
3271fi
3272
3273
3274
3275
3276
3277SODIUM_LIBRARY_VERSION_MAJOR=10
3278SODIUM_LIBRARY_VERSION_MINOR=3
3279DLL_VERSION=24
3280SODIUM_LIBRARY_VERSION=26:0:3
3281#                       | | |
3282#                +------+ | +---+
3283#                |        |     |
3284#             current:revision:age
3285#                |        |     |
3286#                |        |     +- increment if interfaces have been added
3287#                |        |        set to zero if interfaces have been removed
3288#                |        |        or changed
3289#                |        +- increment if source code has changed
3290#                |           set to zero if current is incremented
3291#                +- increment if interfaces have been added, removed or changed
3292
3293
3294
3295
3296
3297
3298LX_CFLAGS=${CFLAGS-NONE}
3299PKGCONFIG_LIBS_PRIVATE=""
3300
3301
3302if pwd | fgrep ' ' > /dev/null 2>&1; then :
3303  as_fn_error $? "The build directory contains whitespaces - This can cause tests/installation to fail due to limitations of some libtool versions" "$LINENO" 5
3304
3305fi
3306
3307
3308# Check whether --enable-ssp was given.
3309if test "${enable_ssp+set}" = set; then :
3310  enableval=$enable_ssp;
3311  if test "x$enableval" = "xno"; then :
3312
3313    enable_ssp="no"
3314
3315else
3316
3317    enable_ssp="yes"
3318
3319fi
3320
3321else
3322
3323  enable_ssp="yes"
3324
3325fi
3326
3327
3328# Check whether --enable-asm was given.
3329if test "${enable_asm+set}" = set; then :
3330  enableval=$enable_asm;
3331  if test "x$enableval" = "xno"; then :
3332
3333    enable_asm="no"
3334
3335else
3336
3337    enable_asm="yes"
3338
3339fi
3340
3341else
3342
3343  enable_asm="yes"
3344
3345fi
3346
3347
3348DEPDIR="${am__leading_dot}deps"
3349
3350ac_config_commands="$ac_config_commands depfiles"
3351
3352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3353$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3354cat > confinc.mk << 'END'
3355am__doit:
3356	@echo this is the am__doit target >confinc.out
3357.PHONY: am__doit
3358END
3359am__include="#"
3360am__quote=
3361# BSD make does it like this.
3362echo '.include "confinc.mk" # ignored' > confmf.BSD
3363# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3364echo 'include confinc.mk # ignored' > confmf.GNU
3365_am_result=no
3366for s in GNU BSD; do
3367  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3368   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3369   ac_status=$?
3370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371   (exit $ac_status); }
3372  case $?:`cat confinc.out 2>/dev/null` in #(
3373  '0:this is the am__doit target') :
3374    case $s in #(
3375  BSD) :
3376    am__include='.include' am__quote='"' ;; #(
3377  *) :
3378    am__include='include' am__quote='' ;;
3379esac ;; #(
3380  *) :
3381     ;;
3382esac
3383  if test "$am__include" != "#"; then
3384    _am_result="yes ($s style)"
3385    break
3386  fi
3387done
3388rm -f confinc.* confmf.*
3389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3390$as_echo "${_am_result}" >&6; }
3391
3392ac_ext=c
3393ac_cpp='$CPP $CPPFLAGS'
3394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397if test -n "$ac_tool_prefix"; then
3398  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3399set dummy ${ac_tool_prefix}gcc; ac_word=$2
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3401$as_echo_n "checking for $ac_word... " >&6; }
3402if ${ac_cv_prog_CC+:} false; then :
3403  $as_echo_n "(cached) " >&6
3404else
3405  if test -n "$CC"; then
3406  ac_cv_prog_CC="$CC" # Let the user override the test.
3407else
3408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409for as_dir in $PATH
3410do
3411  IFS=$as_save_IFS
3412  test -z "$as_dir" && as_dir=.
3413    for ac_exec_ext in '' $ac_executable_extensions; do
3414  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3415    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3416    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3417    break 2
3418  fi
3419done
3420  done
3421IFS=$as_save_IFS
3422
3423fi
3424fi
3425CC=$ac_cv_prog_CC
3426if test -n "$CC"; then
3427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3428$as_echo "$CC" >&6; }
3429else
3430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431$as_echo "no" >&6; }
3432fi
3433
3434
3435fi
3436if test -z "$ac_cv_prog_CC"; then
3437  ac_ct_CC=$CC
3438  # Extract the first word of "gcc", so it can be a program name with args.
3439set dummy gcc; ac_word=$2
3440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3441$as_echo_n "checking for $ac_word... " >&6; }
3442if ${ac_cv_prog_ac_ct_CC+:} false; then :
3443  $as_echo_n "(cached) " >&6
3444else
3445  if test -n "$ac_ct_CC"; then
3446  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3447else
3448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449for as_dir in $PATH
3450do
3451  IFS=$as_save_IFS
3452  test -z "$as_dir" && as_dir=.
3453    for ac_exec_ext in '' $ac_executable_extensions; do
3454  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3455    ac_cv_prog_ac_ct_CC="gcc"
3456    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3457    break 2
3458  fi
3459done
3460  done
3461IFS=$as_save_IFS
3462
3463fi
3464fi
3465ac_ct_CC=$ac_cv_prog_ac_ct_CC
3466if test -n "$ac_ct_CC"; then
3467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3468$as_echo "$ac_ct_CC" >&6; }
3469else
3470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471$as_echo "no" >&6; }
3472fi
3473
3474  if test "x$ac_ct_CC" = x; then
3475    CC=""
3476  else
3477    case $cross_compiling:$ac_tool_warned in
3478yes:)
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3480$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3481ac_tool_warned=yes ;;
3482esac
3483    CC=$ac_ct_CC
3484  fi
3485else
3486  CC="$ac_cv_prog_CC"
3487fi
3488
3489if test -z "$CC"; then
3490          if test -n "$ac_tool_prefix"; then
3491    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3492set dummy ${ac_tool_prefix}cc; ac_word=$2
3493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494$as_echo_n "checking for $ac_word... " >&6; }
3495if ${ac_cv_prog_CC+:} false; then :
3496  $as_echo_n "(cached) " >&6
3497else
3498  if test -n "$CC"; then
3499  ac_cv_prog_CC="$CC" # Let the user override the test.
3500else
3501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502for as_dir in $PATH
3503do
3504  IFS=$as_save_IFS
3505  test -z "$as_dir" && as_dir=.
3506    for ac_exec_ext in '' $ac_executable_extensions; do
3507  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3508    ac_cv_prog_CC="${ac_tool_prefix}cc"
3509    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3510    break 2
3511  fi
3512done
3513  done
3514IFS=$as_save_IFS
3515
3516fi
3517fi
3518CC=$ac_cv_prog_CC
3519if test -n "$CC"; then
3520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3521$as_echo "$CC" >&6; }
3522else
3523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524$as_echo "no" >&6; }
3525fi
3526
3527
3528  fi
3529fi
3530if test -z "$CC"; then
3531  # Extract the first word of "cc", so it can be a program name with args.
3532set dummy cc; ac_word=$2
3533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3534$as_echo_n "checking for $ac_word... " >&6; }
3535if ${ac_cv_prog_CC+:} false; then :
3536  $as_echo_n "(cached) " >&6
3537else
3538  if test -n "$CC"; then
3539  ac_cv_prog_CC="$CC" # Let the user override the test.
3540else
3541  ac_prog_rejected=no
3542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543for as_dir in $PATH
3544do
3545  IFS=$as_save_IFS
3546  test -z "$as_dir" && as_dir=.
3547    for ac_exec_ext in '' $ac_executable_extensions; do
3548  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3549    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3550       ac_prog_rejected=yes
3551       continue
3552     fi
3553    ac_cv_prog_CC="cc"
3554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3555    break 2
3556  fi
3557done
3558  done
3559IFS=$as_save_IFS
3560
3561if test $ac_prog_rejected = yes; then
3562  # We found a bogon in the path, so make sure we never use it.
3563  set dummy $ac_cv_prog_CC
3564  shift
3565  if test $# != 0; then
3566    # We chose a different compiler from the bogus one.
3567    # However, it has the same basename, so the bogon will be chosen
3568    # first if we set CC to just the basename; use the full file name.
3569    shift
3570    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3571  fi
3572fi
3573fi
3574fi
3575CC=$ac_cv_prog_CC
3576if test -n "$CC"; then
3577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3578$as_echo "$CC" >&6; }
3579else
3580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581$as_echo "no" >&6; }
3582fi
3583
3584
3585fi
3586if test -z "$CC"; then
3587  if test -n "$ac_tool_prefix"; then
3588  for ac_prog in cl.exe
3589  do
3590    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3591set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3593$as_echo_n "checking for $ac_word... " >&6; }
3594if ${ac_cv_prog_CC+:} false; then :
3595  $as_echo_n "(cached) " >&6
3596else
3597  if test -n "$CC"; then
3598  ac_cv_prog_CC="$CC" # Let the user override the test.
3599else
3600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601for as_dir in $PATH
3602do
3603  IFS=$as_save_IFS
3604  test -z "$as_dir" && as_dir=.
3605    for ac_exec_ext in '' $ac_executable_extensions; do
3606  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3607    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3608    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3609    break 2
3610  fi
3611done
3612  done
3613IFS=$as_save_IFS
3614
3615fi
3616fi
3617CC=$ac_cv_prog_CC
3618if test -n "$CC"; then
3619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3620$as_echo "$CC" >&6; }
3621else
3622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623$as_echo "no" >&6; }
3624fi
3625
3626
3627    test -n "$CC" && break
3628  done
3629fi
3630if test -z "$CC"; then
3631  ac_ct_CC=$CC
3632  for ac_prog in cl.exe
3633do
3634  # Extract the first word of "$ac_prog", so it can be a program name with args.
3635set dummy $ac_prog; ac_word=$2
3636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3637$as_echo_n "checking for $ac_word... " >&6; }
3638if ${ac_cv_prog_ac_ct_CC+:} false; then :
3639  $as_echo_n "(cached) " >&6
3640else
3641  if test -n "$ac_ct_CC"; then
3642  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3643else
3644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645for as_dir in $PATH
3646do
3647  IFS=$as_save_IFS
3648  test -z "$as_dir" && as_dir=.
3649    for ac_exec_ext in '' $ac_executable_extensions; do
3650  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3651    ac_cv_prog_ac_ct_CC="$ac_prog"
3652    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3653    break 2
3654  fi
3655done
3656  done
3657IFS=$as_save_IFS
3658
3659fi
3660fi
3661ac_ct_CC=$ac_cv_prog_ac_ct_CC
3662if test -n "$ac_ct_CC"; then
3663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3664$as_echo "$ac_ct_CC" >&6; }
3665else
3666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3667$as_echo "no" >&6; }
3668fi
3669
3670
3671  test -n "$ac_ct_CC" && break
3672done
3673
3674  if test "x$ac_ct_CC" = x; then
3675    CC=""
3676  else
3677    case $cross_compiling:$ac_tool_warned in
3678yes:)
3679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3681ac_tool_warned=yes ;;
3682esac
3683    CC=$ac_ct_CC
3684  fi
3685fi
3686
3687fi
3688
3689
3690test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3691$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3692as_fn_error $? "no acceptable C compiler found in \$PATH
3693See \`config.log' for more details" "$LINENO" 5; }
3694
3695# Provide some information about the compiler.
3696$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3697set X $ac_compile
3698ac_compiler=$2
3699for ac_option in --version -v -V -qversion; do
3700  { { ac_try="$ac_compiler $ac_option >&5"
3701case "(($ac_try" in
3702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703  *) ac_try_echo=$ac_try;;
3704esac
3705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3706$as_echo "$ac_try_echo"; } >&5
3707  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3708  ac_status=$?
3709  if test -s conftest.err; then
3710    sed '10a\
3711... rest of stderr output deleted ...
3712         10q' conftest.err >conftest.er1
3713    cat conftest.er1 >&5
3714  fi
3715  rm -f conftest.er1 conftest.err
3716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717  test $ac_status = 0; }
3718done
3719
3720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721/* end confdefs.h.  */
3722
3723int
3724main ()
3725{
3726
3727  ;
3728  return 0;
3729}
3730_ACEOF
3731ac_clean_files_save=$ac_clean_files
3732ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3733# Try to create an executable without -o first, disregard a.out.
3734# It will help us diagnose broken compilers, and finding out an intuition
3735# of exeext.
3736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3737$as_echo_n "checking whether the C compiler works... " >&6; }
3738ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3739
3740# The possible output files:
3741ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3742
3743ac_rmfiles=
3744for ac_file in $ac_files
3745do
3746  case $ac_file in
3747    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3748    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3749  esac
3750done
3751rm -f $ac_rmfiles
3752
3753if { { ac_try="$ac_link_default"
3754case "(($ac_try" in
3755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756  *) ac_try_echo=$ac_try;;
3757esac
3758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3759$as_echo "$ac_try_echo"; } >&5
3760  (eval "$ac_link_default") 2>&5
3761  ac_status=$?
3762  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3763  test $ac_status = 0; }; then :
3764  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3765# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3766# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3767# so that the user can short-circuit this test for compilers unknown to
3768# Autoconf.
3769for ac_file in $ac_files ''
3770do
3771  test -f "$ac_file" || continue
3772  case $ac_file in
3773    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3774	;;
3775    [ab].out )
3776	# We found the default executable, but exeext='' is most
3777	# certainly right.
3778	break;;
3779    *.* )
3780	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3781	then :; else
3782	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3783	fi
3784	# We set ac_cv_exeext here because the later test for it is not
3785	# safe: cross compilers may not add the suffix if given an `-o'
3786	# argument, so we may need to know it at that point already.
3787	# Even if this section looks crufty: it has the advantage of
3788	# actually working.
3789	break;;
3790    * )
3791	break;;
3792  esac
3793done
3794test "$ac_cv_exeext" = no && ac_cv_exeext=
3795
3796else
3797  ac_file=''
3798fi
3799if test -z "$ac_file"; then :
3800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3801$as_echo "no" >&6; }
3802$as_echo "$as_me: failed program was:" >&5
3803sed 's/^/| /' conftest.$ac_ext >&5
3804
3805{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3806$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3807as_fn_error 77 "C compiler cannot create executables
3808See \`config.log' for more details" "$LINENO" 5; }
3809else
3810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3811$as_echo "yes" >&6; }
3812fi
3813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3814$as_echo_n "checking for C compiler default output file name... " >&6; }
3815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3816$as_echo "$ac_file" >&6; }
3817ac_exeext=$ac_cv_exeext
3818
3819rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3820ac_clean_files=$ac_clean_files_save
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3822$as_echo_n "checking for suffix of executables... " >&6; }
3823if { { ac_try="$ac_link"
3824case "(($ac_try" in
3825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826  *) ac_try_echo=$ac_try;;
3827esac
3828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3829$as_echo "$ac_try_echo"; } >&5
3830  (eval "$ac_link") 2>&5
3831  ac_status=$?
3832  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3833  test $ac_status = 0; }; then :
3834  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3835# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3836# work properly (i.e., refer to `conftest.exe'), while it won't with
3837# `rm'.
3838for ac_file in conftest.exe conftest conftest.*; do
3839  test -f "$ac_file" || continue
3840  case $ac_file in
3841    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3842    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3843	  break;;
3844    * ) break;;
3845  esac
3846done
3847else
3848  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3849$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3850as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3851See \`config.log' for more details" "$LINENO" 5; }
3852fi
3853rm -f conftest conftest$ac_cv_exeext
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3855$as_echo "$ac_cv_exeext" >&6; }
3856
3857rm -f conftest.$ac_ext
3858EXEEXT=$ac_cv_exeext
3859ac_exeext=$EXEEXT
3860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861/* end confdefs.h.  */
3862#include <stdio.h>
3863int
3864main ()
3865{
3866FILE *f = fopen ("conftest.out", "w");
3867 return ferror (f) || fclose (f) != 0;
3868
3869  ;
3870  return 0;
3871}
3872_ACEOF
3873ac_clean_files="$ac_clean_files conftest.out"
3874# Check that the compiler produces executables we can run.  If not, either
3875# the compiler is broken, or we cross compile.
3876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3877$as_echo_n "checking whether we are cross compiling... " >&6; }
3878if test "$cross_compiling" != yes; then
3879  { { ac_try="$ac_link"
3880case "(($ac_try" in
3881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882  *) ac_try_echo=$ac_try;;
3883esac
3884eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3885$as_echo "$ac_try_echo"; } >&5
3886  (eval "$ac_link") 2>&5
3887  ac_status=$?
3888  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3889  test $ac_status = 0; }
3890  if { ac_try='./conftest$ac_cv_exeext'
3891  { { case "(($ac_try" in
3892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893  *) ac_try_echo=$ac_try;;
3894esac
3895eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3896$as_echo "$ac_try_echo"; } >&5
3897  (eval "$ac_try") 2>&5
3898  ac_status=$?
3899  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3900  test $ac_status = 0; }; }; then
3901    cross_compiling=no
3902  else
3903    if test "$cross_compiling" = maybe; then
3904	cross_compiling=yes
3905    else
3906	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3907$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3908as_fn_error $? "cannot run C compiled programs.
3909If you meant to cross compile, use \`--host'.
3910See \`config.log' for more details" "$LINENO" 5; }
3911    fi
3912  fi
3913fi
3914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3915$as_echo "$cross_compiling" >&6; }
3916
3917rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3918ac_clean_files=$ac_clean_files_save
3919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3920$as_echo_n "checking for suffix of object files... " >&6; }
3921if ${ac_cv_objext+:} false; then :
3922  $as_echo_n "(cached) " >&6
3923else
3924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925/* end confdefs.h.  */
3926
3927int
3928main ()
3929{
3930
3931  ;
3932  return 0;
3933}
3934_ACEOF
3935rm -f conftest.o conftest.obj
3936if { { ac_try="$ac_compile"
3937case "(($ac_try" in
3938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939  *) ac_try_echo=$ac_try;;
3940esac
3941eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3942$as_echo "$ac_try_echo"; } >&5
3943  (eval "$ac_compile") 2>&5
3944  ac_status=$?
3945  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3946  test $ac_status = 0; }; then :
3947  for ac_file in conftest.o conftest.obj conftest.*; do
3948  test -f "$ac_file" || continue;
3949  case $ac_file in
3950    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3951    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3952       break;;
3953  esac
3954done
3955else
3956  $as_echo "$as_me: failed program was:" >&5
3957sed 's/^/| /' conftest.$ac_ext >&5
3958
3959{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3960$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3961as_fn_error $? "cannot compute suffix of object files: cannot compile
3962See \`config.log' for more details" "$LINENO" 5; }
3963fi
3964rm -f conftest.$ac_cv_objext conftest.$ac_ext
3965fi
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3967$as_echo "$ac_cv_objext" >&6; }
3968OBJEXT=$ac_cv_objext
3969ac_objext=$OBJEXT
3970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3971$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3972if ${ac_cv_c_compiler_gnu+:} false; then :
3973  $as_echo_n "(cached) " >&6
3974else
3975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976/* end confdefs.h.  */
3977
3978int
3979main ()
3980{
3981#ifndef __GNUC__
3982       choke me
3983#endif
3984
3985  ;
3986  return 0;
3987}
3988_ACEOF
3989if ac_fn_c_try_compile "$LINENO"; then :
3990  ac_compiler_gnu=yes
3991else
3992  ac_compiler_gnu=no
3993fi
3994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3995ac_cv_c_compiler_gnu=$ac_compiler_gnu
3996
3997fi
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3999$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4000if test $ac_compiler_gnu = yes; then
4001  GCC=yes
4002else
4003  GCC=
4004fi
4005ac_test_CFLAGS=${CFLAGS+set}
4006ac_save_CFLAGS=$CFLAGS
4007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4008$as_echo_n "checking whether $CC accepts -g... " >&6; }
4009if ${ac_cv_prog_cc_g+:} false; then :
4010  $as_echo_n "(cached) " >&6
4011else
4012  ac_save_c_werror_flag=$ac_c_werror_flag
4013   ac_c_werror_flag=yes
4014   ac_cv_prog_cc_g=no
4015   CFLAGS="-g"
4016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017/* end confdefs.h.  */
4018
4019int
4020main ()
4021{
4022
4023  ;
4024  return 0;
4025}
4026_ACEOF
4027if ac_fn_c_try_compile "$LINENO"; then :
4028  ac_cv_prog_cc_g=yes
4029else
4030  CFLAGS=""
4031      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032/* end confdefs.h.  */
4033
4034int
4035main ()
4036{
4037
4038  ;
4039  return 0;
4040}
4041_ACEOF
4042if ac_fn_c_try_compile "$LINENO"; then :
4043
4044else
4045  ac_c_werror_flag=$ac_save_c_werror_flag
4046	 CFLAGS="-g"
4047	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048/* end confdefs.h.  */
4049
4050int
4051main ()
4052{
4053
4054  ;
4055  return 0;
4056}
4057_ACEOF
4058if ac_fn_c_try_compile "$LINENO"; then :
4059  ac_cv_prog_cc_g=yes
4060fi
4061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4062fi
4063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064fi
4065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066   ac_c_werror_flag=$ac_save_c_werror_flag
4067fi
4068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4069$as_echo "$ac_cv_prog_cc_g" >&6; }
4070if test "$ac_test_CFLAGS" = set; then
4071  CFLAGS=$ac_save_CFLAGS
4072elif test $ac_cv_prog_cc_g = yes; then
4073  if test "$GCC" = yes; then
4074    CFLAGS="-g -O2"
4075  else
4076    CFLAGS="-g"
4077  fi
4078else
4079  if test "$GCC" = yes; then
4080    CFLAGS="-O2"
4081  else
4082    CFLAGS=
4083  fi
4084fi
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4086$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4087if ${ac_cv_prog_cc_c89+:} false; then :
4088  $as_echo_n "(cached) " >&6
4089else
4090  ac_cv_prog_cc_c89=no
4091ac_save_CC=$CC
4092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093/* end confdefs.h.  */
4094#include <stdarg.h>
4095#include <stdio.h>
4096struct stat;
4097/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4098struct buf { int x; };
4099FILE * (*rcsopen) (struct buf *, struct stat *, int);
4100static char *e (p, i)
4101     char **p;
4102     int i;
4103{
4104  return p[i];
4105}
4106static char *f (char * (*g) (char **, int), char **p, ...)
4107{
4108  char *s;
4109  va_list v;
4110  va_start (v,p);
4111  s = g (p, va_arg (v,int));
4112  va_end (v);
4113  return s;
4114}
4115
4116/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4117   function prototypes and stuff, but not '\xHH' hex character constants.
4118   These don't provoke an error unfortunately, instead are silently treated
4119   as 'x'.  The following induces an error, until -std is added to get
4120   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4121   array size at least.  It's necessary to write '\x00'==0 to get something
4122   that's true only with -std.  */
4123int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4124
4125/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4126   inside strings and character constants.  */
4127#define FOO(x) 'x'
4128int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4129
4130int test (int i, double x);
4131struct s1 {int (*f) (int a);};
4132struct s2 {int (*f) (double a);};
4133int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4134int argc;
4135char **argv;
4136int
4137main ()
4138{
4139return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4140  ;
4141  return 0;
4142}
4143_ACEOF
4144for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4145	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4146do
4147  CC="$ac_save_CC $ac_arg"
4148  if ac_fn_c_try_compile "$LINENO"; then :
4149  ac_cv_prog_cc_c89=$ac_arg
4150fi
4151rm -f core conftest.err conftest.$ac_objext
4152  test "x$ac_cv_prog_cc_c89" != "xno" && break
4153done
4154rm -f conftest.$ac_ext
4155CC=$ac_save_CC
4156
4157fi
4158# AC_CACHE_VAL
4159case "x$ac_cv_prog_cc_c89" in
4160  x)
4161    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4162$as_echo "none needed" >&6; } ;;
4163  xno)
4164    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4165$as_echo "unsupported" >&6; } ;;
4166  *)
4167    CC="$CC $ac_cv_prog_cc_c89"
4168    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4169$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4170esac
4171if test "x$ac_cv_prog_cc_c89" != xno; then :
4172
4173fi
4174
4175ac_ext=c
4176ac_cpp='$CPP $CPPFLAGS'
4177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4179ac_compiler_gnu=$ac_cv_c_compiler_gnu
4180
4181ac_ext=c
4182ac_cpp='$CPP $CPPFLAGS'
4183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4185ac_compiler_gnu=$ac_cv_c_compiler_gnu
4186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4187$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4188if ${am_cv_prog_cc_c_o+:} false; then :
4189  $as_echo_n "(cached) " >&6
4190else
4191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192/* end confdefs.h.  */
4193
4194int
4195main ()
4196{
4197
4198  ;
4199  return 0;
4200}
4201_ACEOF
4202  # Make sure it works both with $CC and with simple cc.
4203  # Following AC_PROG_CC_C_O, we do the test twice because some
4204  # compilers refuse to overwrite an existing .o file with -o,
4205  # though they will create one.
4206  am_cv_prog_cc_c_o=yes
4207  for am_i in 1 2; do
4208    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4209   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4210   ac_status=$?
4211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212   (exit $ac_status); } \
4213         && test -f conftest2.$ac_objext; then
4214      : OK
4215    else
4216      am_cv_prog_cc_c_o=no
4217      break
4218    fi
4219  done
4220  rm -f core conftest*
4221  unset am_i
4222fi
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4224$as_echo "$am_cv_prog_cc_c_o" >&6; }
4225if test "$am_cv_prog_cc_c_o" != yes; then
4226   # Losing compiler, so override with the script.
4227   # FIXME: It is wrong to rewrite CC.
4228   # But if we don't then we get into trouble of one sort or another.
4229   # A longer-term fix would be to have automake use am__CC in this case,
4230   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4231   CC="$am_aux_dir/compile $CC"
4232fi
4233ac_ext=c
4234ac_cpp='$CPP $CPPFLAGS'
4235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4237ac_compiler_gnu=$ac_cv_c_compiler_gnu
4238
4239
4240depcc="$CC"   am_compiler_list=
4241
4242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4243$as_echo_n "checking dependency style of $depcc... " >&6; }
4244if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4245  $as_echo_n "(cached) " >&6
4246else
4247  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4248  # We make a subdir and do the tests there.  Otherwise we can end up
4249  # making bogus files that we don't know about and never remove.  For
4250  # instance it was reported that on HP-UX the gcc test will end up
4251  # making a dummy file named 'D' -- because '-MD' means "put the output
4252  # in D".
4253  rm -rf conftest.dir
4254  mkdir conftest.dir
4255  # Copy depcomp to subdir because otherwise we won't find it if we're
4256  # using a relative directory.
4257  cp "$am_depcomp" conftest.dir
4258  cd conftest.dir
4259  # We will build objects and dependencies in a subdirectory because
4260  # it helps to detect inapplicable dependency modes.  For instance
4261  # both Tru64's cc and ICC support -MD to output dependencies as a
4262  # side effect of compilation, but ICC will put the dependencies in
4263  # the current directory while Tru64 will put them in the object
4264  # directory.
4265  mkdir sub
4266
4267  am_cv_CC_dependencies_compiler_type=none
4268  if test "$am_compiler_list" = ""; then
4269     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4270  fi
4271  am__universal=false
4272  case " $depcc " in #(
4273     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4274     esac
4275
4276  for depmode in $am_compiler_list; do
4277    # Setup a source with many dependencies, because some compilers
4278    # like to wrap large dependency lists on column 80 (with \), and
4279    # we should not choose a depcomp mode which is confused by this.
4280    #
4281    # We need to recreate these files for each test, as the compiler may
4282    # overwrite some of them when testing with obscure command lines.
4283    # This happens at least with the AIX C compiler.
4284    : > sub/conftest.c
4285    for i in 1 2 3 4 5 6; do
4286      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4287      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4288      # Solaris 10 /bin/sh.
4289      echo '/* dummy */' > sub/conftst$i.h
4290    done
4291    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4292
4293    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4294    # mode.  It turns out that the SunPro C++ compiler does not properly
4295    # handle '-M -o', and we need to detect this.  Also, some Intel
4296    # versions had trouble with output in subdirs.
4297    am__obj=sub/conftest.${OBJEXT-o}
4298    am__minus_obj="-o $am__obj"
4299    case $depmode in
4300    gcc)
4301      # This depmode causes a compiler race in universal mode.
4302      test "$am__universal" = false || continue
4303      ;;
4304    nosideeffect)
4305      # After this tag, mechanisms are not by side-effect, so they'll
4306      # only be used when explicitly requested.
4307      if test "x$enable_dependency_tracking" = xyes; then
4308	continue
4309      else
4310	break
4311      fi
4312      ;;
4313    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4314      # This compiler won't grok '-c -o', but also, the minuso test has
4315      # not run yet.  These depmodes are late enough in the game, and
4316      # so weak that their functioning should not be impacted.
4317      am__obj=conftest.${OBJEXT-o}
4318      am__minus_obj=
4319      ;;
4320    none) break ;;
4321    esac
4322    if depmode=$depmode \
4323       source=sub/conftest.c object=$am__obj \
4324       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4325       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4326         >/dev/null 2>conftest.err &&
4327       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4328       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4329       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4330       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4331      # icc doesn't choke on unknown options, it will just issue warnings
4332      # or remarks (even with -Werror).  So we grep stderr for any message
4333      # that says an option was ignored or not supported.
4334      # When given -MP, icc 7.0 and 7.1 complain thusly:
4335      #   icc: Command line warning: ignoring option '-M'; no argument required
4336      # The diagnosis changed in icc 8.0:
4337      #   icc: Command line remark: option '-MP' not supported
4338      if (grep 'ignoring option' conftest.err ||
4339          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4340        am_cv_CC_dependencies_compiler_type=$depmode
4341        break
4342      fi
4343    fi
4344  done
4345
4346  cd ..
4347  rm -rf conftest.dir
4348else
4349  am_cv_CC_dependencies_compiler_type=none
4350fi
4351
4352fi
4353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4354$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4355CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4356
4357 if
4358  test "x$enable_dependency_tracking" != xno \
4359  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4360  am__fastdepCC_TRUE=
4361  am__fastdepCC_FALSE='#'
4362else
4363  am__fastdepCC_TRUE='#'
4364  am__fastdepCC_FALSE=
4365fi
4366
4367
4368
4369if test "x$EMSCRIPTEN" != "x"; then :
4370
4371  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -s ASSERTIONS=0" >&5
4372$as_echo_n "checking whether C compiler accepts -s ASSERTIONS=0... " >&6; }
4373if ${ax_cv_check_cflags___s_ASSERTIONS_0+:} false; then :
4374  $as_echo_n "(cached) " >&6
4375else
4376
4377  ax_check_save_flags=$CFLAGS
4378  CFLAGS="$CFLAGS  -s ASSERTIONS=0"
4379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380/* end confdefs.h.  */
4381#include <time.h>
4382int
4383main ()
4384{
4385time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
4386  ;
4387  return 0;
4388}
4389_ACEOF
4390if ac_fn_c_try_link "$LINENO"; then :
4391  ax_cv_check_cflags___s_ASSERTIONS_0=yes
4392else
4393  ax_cv_check_cflags___s_ASSERTIONS_0=no
4394fi
4395rm -f core conftest.err conftest.$ac_objext \
4396    conftest$ac_exeext conftest.$ac_ext
4397  CFLAGS=$ax_check_save_flags
4398fi
4399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___s_ASSERTIONS_0" >&5
4400$as_echo "$ax_cv_check_cflags___s_ASSERTIONS_0" >&6; }
4401if test "x$ax_cv_check_cflags___s_ASSERTIONS_0" = xyes; then :
4402
4403    enable_asm="no"
4404    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiling to JavaScript - asm implementations disabled" >&5
4405$as_echo "$as_me: WARNING: compiling to JavaScript - asm implementations disabled" >&2;}
4406
4407else
4408
4409    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: EMSCRIPTEN environment variable defined, but emcc doesn't appear to be used - Assuming compilation to native code" >&5
4410$as_echo "$as_me: WARNING: EMSCRIPTEN environment variable defined, but emcc doesn't appear to be used - Assuming compilation to native code" >&2;}
4411    CFLAGS="$CFLAGS -U__EMSCRIPTEN__"
4412    unset EMSCRIPTEN
4413
4414fi
4415
4416
4417fi
4418
4419# Check whether --enable-pie was given.
4420if test "${enable_pie+set}" = set; then :
4421  enableval=$enable_pie; enable_pie=$enableval
4422else
4423  enable_pie="maybe"
4424fi
4425
4426
4427case $host_os in #(
4428  mingw*|cygwin*|msys) :
4429    enable_pie="no" ;; #(
4430  *) :
4431     ;;
4432esac
4433
4434# Check whether --enable-blocking-random was given.
4435if test "${enable_blocking_random+set}" = set; then :
4436  enableval=$enable_blocking_random;
4437  if test "x$enableval" = "xyes"; then :
4438
4439
4440$as_echo "#define USE_BLOCKING_RANDOM 1" >>confdefs.h
4441
4442
4443fi
4444
4445fi
4446
4447
4448# Check whether --enable-minimal was given.
4449if test "${enable_minimal+set}" = set; then :
4450  enableval=$enable_minimal;
4451  if test "x$enableval" = "xyes"; then :
4452
4453    enable_minimal="yes"
4454    SODIUM_LIBRARY_MINIMAL_DEF="#define SODIUM_LIBRARY_MINIMAL 1"
4455
4456$as_echo "#define MINIMAL 1" >>confdefs.h
4457
4458
4459else
4460
4461    enable_minimal="no"
4462
4463fi
4464
4465else
4466
4467  enable_minimal="no"
4468
4469fi
4470
4471 if test x$enable_minimal = xyes; then
4472  MINIMAL_TRUE=
4473  MINIMAL_FALSE='#'
4474else
4475  MINIMAL_TRUE='#'
4476  MINIMAL_FALSE=
4477fi
4478
4479
4480
4481
4482# Check whether --with-pthreads was given.
4483if test "${with_pthreads+set}" = set; then :
4484  withval=$with_pthreads;
4485else
4486  withval="yes"
4487fi
4488
4489
4490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4491$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4492if ${ac_cv_path_SED+:} false; then :
4493  $as_echo_n "(cached) " >&6
4494else
4495            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4496     for ac_i in 1 2 3 4 5 6 7; do
4497       ac_script="$ac_script$as_nl$ac_script"
4498     done
4499     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4500     { ac_script=; unset ac_script;}
4501     if test -z "$SED"; then
4502  ac_path_SED_found=false
4503  # Loop through the user's path and test for each of PROGNAME-LIST
4504  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505for as_dir in $PATH
4506do
4507  IFS=$as_save_IFS
4508  test -z "$as_dir" && as_dir=.
4509    for ac_prog in sed gsed; do
4510    for ac_exec_ext in '' $ac_executable_extensions; do
4511      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4512      as_fn_executable_p "$ac_path_SED" || continue
4513# Check for GNU ac_path_SED and select it if it is found.
4514  # Check for GNU $ac_path_SED
4515case `"$ac_path_SED" --version 2>&1` in
4516*GNU*)
4517  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4518*)
4519  ac_count=0
4520  $as_echo_n 0123456789 >"conftest.in"
4521  while :
4522  do
4523    cat "conftest.in" "conftest.in" >"conftest.tmp"
4524    mv "conftest.tmp" "conftest.in"
4525    cp "conftest.in" "conftest.nl"
4526    $as_echo '' >> "conftest.nl"
4527    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4528    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4529    as_fn_arith $ac_count + 1 && ac_count=$as_val
4530    if test $ac_count -gt ${ac_path_SED_max-0}; then
4531      # Best one so far, save it but keep looking for a better one
4532      ac_cv_path_SED="$ac_path_SED"
4533      ac_path_SED_max=$ac_count
4534    fi
4535    # 10*(2^10) chars as input seems more than enough
4536    test $ac_count -gt 10 && break
4537  done
4538  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4539esac
4540
4541      $ac_path_SED_found && break 3
4542    done
4543  done
4544  done
4545IFS=$as_save_IFS
4546  if test -z "$ac_cv_path_SED"; then
4547    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4548  fi
4549else
4550  ac_cv_path_SED=$SED
4551fi
4552
4553fi
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4555$as_echo "$ac_cv_path_SED" >&6; }
4556 SED="$ac_cv_path_SED"
4557  rm -f conftest.sed
4558
4559ac_ext=c
4560ac_cpp='$CPP $CPPFLAGS'
4561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4563ac_compiler_gnu=$ac_cv_c_compiler_gnu
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4565$as_echo_n "checking how to run the C preprocessor... " >&6; }
4566# On Suns, sometimes $CPP names a directory.
4567if test -n "$CPP" && test -d "$CPP"; then
4568  CPP=
4569fi
4570if test -z "$CPP"; then
4571  if ${ac_cv_prog_CPP+:} false; then :
4572  $as_echo_n "(cached) " >&6
4573else
4574      # Double quotes because CPP needs to be expanded
4575    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4576    do
4577      ac_preproc_ok=false
4578for ac_c_preproc_warn_flag in '' yes
4579do
4580  # Use a header file that comes with gcc, so configuring glibc
4581  # with a fresh cross-compiler works.
4582  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4583  # <limits.h> exists even on freestanding compilers.
4584  # On the NeXT, cc -E runs the code through the compiler's parser,
4585  # not just through cpp. "Syntax error" is here to catch this case.
4586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587/* end confdefs.h.  */
4588#ifdef __STDC__
4589# include <limits.h>
4590#else
4591# include <assert.h>
4592#endif
4593		     Syntax error
4594_ACEOF
4595if ac_fn_c_try_cpp "$LINENO"; then :
4596
4597else
4598  # Broken: fails on valid input.
4599continue
4600fi
4601rm -f conftest.err conftest.i conftest.$ac_ext
4602
4603  # OK, works on sane cases.  Now check whether nonexistent headers
4604  # can be detected and how.
4605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606/* end confdefs.h.  */
4607#include <ac_nonexistent.h>
4608_ACEOF
4609if ac_fn_c_try_cpp "$LINENO"; then :
4610  # Broken: success on invalid input.
4611continue
4612else
4613  # Passes both tests.
4614ac_preproc_ok=:
4615break
4616fi
4617rm -f conftest.err conftest.i conftest.$ac_ext
4618
4619done
4620# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4621rm -f conftest.i conftest.err conftest.$ac_ext
4622if $ac_preproc_ok; then :
4623  break
4624fi
4625
4626    done
4627    ac_cv_prog_CPP=$CPP
4628
4629fi
4630  CPP=$ac_cv_prog_CPP
4631else
4632  ac_cv_prog_CPP=$CPP
4633fi
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4635$as_echo "$CPP" >&6; }
4636ac_preproc_ok=false
4637for ac_c_preproc_warn_flag in '' yes
4638do
4639  # Use a header file that comes with gcc, so configuring glibc
4640  # with a fresh cross-compiler works.
4641  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4642  # <limits.h> exists even on freestanding compilers.
4643  # On the NeXT, cc -E runs the code through the compiler's parser,
4644  # not just through cpp. "Syntax error" is here to catch this case.
4645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646/* end confdefs.h.  */
4647#ifdef __STDC__
4648# include <limits.h>
4649#else
4650# include <assert.h>
4651#endif
4652		     Syntax error
4653_ACEOF
4654if ac_fn_c_try_cpp "$LINENO"; then :
4655
4656else
4657  # Broken: fails on valid input.
4658continue
4659fi
4660rm -f conftest.err conftest.i conftest.$ac_ext
4661
4662  # OK, works on sane cases.  Now check whether nonexistent headers
4663  # can be detected and how.
4664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665/* end confdefs.h.  */
4666#include <ac_nonexistent.h>
4667_ACEOF
4668if ac_fn_c_try_cpp "$LINENO"; then :
4669  # Broken: success on invalid input.
4670continue
4671else
4672  # Passes both tests.
4673ac_preproc_ok=:
4674break
4675fi
4676rm -f conftest.err conftest.i conftest.$ac_ext
4677
4678done
4679# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4680rm -f conftest.i conftest.err conftest.$ac_ext
4681if $ac_preproc_ok; then :
4682
4683else
4684  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4685$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4686as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4687See \`config.log' for more details" "$LINENO" 5; }
4688fi
4689
4690ac_ext=c
4691ac_cpp='$CPP $CPPFLAGS'
4692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4694ac_compiler_gnu=$ac_cv_c_compiler_gnu
4695
4696
4697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4698$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4699if ${ac_cv_path_GREP+:} false; then :
4700  $as_echo_n "(cached) " >&6
4701else
4702  if test -z "$GREP"; then
4703  ac_path_GREP_found=false
4704  # Loop through the user's path and test for each of PROGNAME-LIST
4705  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4707do
4708  IFS=$as_save_IFS
4709  test -z "$as_dir" && as_dir=.
4710    for ac_prog in grep ggrep; do
4711    for ac_exec_ext in '' $ac_executable_extensions; do
4712      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4713      as_fn_executable_p "$ac_path_GREP" || continue
4714# Check for GNU ac_path_GREP and select it if it is found.
4715  # Check for GNU $ac_path_GREP
4716case `"$ac_path_GREP" --version 2>&1` in
4717*GNU*)
4718  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4719*)
4720  ac_count=0
4721  $as_echo_n 0123456789 >"conftest.in"
4722  while :
4723  do
4724    cat "conftest.in" "conftest.in" >"conftest.tmp"
4725    mv "conftest.tmp" "conftest.in"
4726    cp "conftest.in" "conftest.nl"
4727    $as_echo 'GREP' >> "conftest.nl"
4728    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4729    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4730    as_fn_arith $ac_count + 1 && ac_count=$as_val
4731    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4732      # Best one so far, save it but keep looking for a better one
4733      ac_cv_path_GREP="$ac_path_GREP"
4734      ac_path_GREP_max=$ac_count
4735    fi
4736    # 10*(2^10) chars as input seems more than enough
4737    test $ac_count -gt 10 && break
4738  done
4739  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4740esac
4741
4742      $ac_path_GREP_found && break 3
4743    done
4744  done
4745  done
4746IFS=$as_save_IFS
4747  if test -z "$ac_cv_path_GREP"; then
4748    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4749  fi
4750else
4751  ac_cv_path_GREP=$GREP
4752fi
4753
4754fi
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4756$as_echo "$ac_cv_path_GREP" >&6; }
4757 GREP="$ac_cv_path_GREP"
4758
4759
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4761$as_echo_n "checking for egrep... " >&6; }
4762if ${ac_cv_path_EGREP+:} false; then :
4763  $as_echo_n "(cached) " >&6
4764else
4765  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4766   then ac_cv_path_EGREP="$GREP -E"
4767   else
4768     if test -z "$EGREP"; then
4769  ac_path_EGREP_found=false
4770  # Loop through the user's path and test for each of PROGNAME-LIST
4771  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4773do
4774  IFS=$as_save_IFS
4775  test -z "$as_dir" && as_dir=.
4776    for ac_prog in egrep; do
4777    for ac_exec_ext in '' $ac_executable_extensions; do
4778      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4779      as_fn_executable_p "$ac_path_EGREP" || continue
4780# Check for GNU ac_path_EGREP and select it if it is found.
4781  # Check for GNU $ac_path_EGREP
4782case `"$ac_path_EGREP" --version 2>&1` in
4783*GNU*)
4784  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4785*)
4786  ac_count=0
4787  $as_echo_n 0123456789 >"conftest.in"
4788  while :
4789  do
4790    cat "conftest.in" "conftest.in" >"conftest.tmp"
4791    mv "conftest.tmp" "conftest.in"
4792    cp "conftest.in" "conftest.nl"
4793    $as_echo 'EGREP' >> "conftest.nl"
4794    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4795    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4796    as_fn_arith $ac_count + 1 && ac_count=$as_val
4797    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4798      # Best one so far, save it but keep looking for a better one
4799      ac_cv_path_EGREP="$ac_path_EGREP"
4800      ac_path_EGREP_max=$ac_count
4801    fi
4802    # 10*(2^10) chars as input seems more than enough
4803    test $ac_count -gt 10 && break
4804  done
4805  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4806esac
4807
4808      $ac_path_EGREP_found && break 3
4809    done
4810  done
4811  done
4812IFS=$as_save_IFS
4813  if test -z "$ac_cv_path_EGREP"; then
4814    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4815  fi
4816else
4817  ac_cv_path_EGREP=$EGREP
4818fi
4819
4820   fi
4821fi
4822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4823$as_echo "$ac_cv_path_EGREP" >&6; }
4824 EGREP="$ac_cv_path_EGREP"
4825
4826
4827if test "x$withval" = "xyes"; then :
4828
4829
4830
4831
4832
4833ac_ext=c
4834ac_cpp='$CPP $CPPFLAGS'
4835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4837ac_compiler_gnu=$ac_cv_c_compiler_gnu
4838
4839ax_pthread_ok=no
4840
4841# We used to check for pthread.h first, but this fails if pthread.h
4842# requires special compiler flags (e.g. on Tru64 or Sequent).
4843# It gets checked for in the link test anyway.
4844
4845# First of all, check if the user has set any of the PTHREAD_LIBS,
4846# etcetera environment variables, and if threads linking works using
4847# them:
4848if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
4849        ax_pthread_save_CC="$CC"
4850        ax_pthread_save_CFLAGS="$CFLAGS"
4851        ax_pthread_save_LIBS="$LIBS"
4852        if test "x$PTHREAD_CC" != "x"; then :
4853  CC="$PTHREAD_CC"
4854fi
4855        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4856        LIBS="$PTHREAD_LIBS $LIBS"
4857        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
4858$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
4859        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860/* end confdefs.h.  */
4861
4862/* Override any GCC internal prototype to avoid an error.
4863   Use char because int might match the return type of a GCC
4864   builtin and then its argument prototype would still apply.  */
4865#ifdef __cplusplus
4866extern "C"
4867#endif
4868char pthread_join ();
4869int
4870main ()
4871{
4872return pthread_join ();
4873  ;
4874  return 0;
4875}
4876_ACEOF
4877if ac_fn_c_try_link "$LINENO"; then :
4878  ax_pthread_ok=yes
4879fi
4880rm -f core conftest.err conftest.$ac_objext \
4881    conftest$ac_exeext conftest.$ac_ext
4882        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
4883$as_echo "$ax_pthread_ok" >&6; }
4884        if test "x$ax_pthread_ok" = "xno"; then
4885                PTHREAD_LIBS=""
4886                PTHREAD_CFLAGS=""
4887        fi
4888        CC="$ax_pthread_save_CC"
4889        CFLAGS="$ax_pthread_save_CFLAGS"
4890        LIBS="$ax_pthread_save_LIBS"
4891fi
4892
4893# We must check for the threads library under a number of different
4894# names; the ordering is very important because some systems
4895# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
4896# libraries is broken (non-POSIX).
4897
4898# Create a list of thread flags to try.  Items starting with a "-" are
4899# C compiler flags, and other items are library names, except for "none"
4900# which indicates that we try without any flags at all, and "pthread-config"
4901# which is a program returning the flags for the Pth emulation library.
4902
4903ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
4904
4905# The ordering *is* (sometimes) important.  Some notes on the
4906# individual items follow:
4907
4908# pthreads: AIX (must check this before -lpthread)
4909# none: in case threads are in libc; should be tried before -Kthread and
4910#       other compiler flags to prevent continual compiler warnings
4911# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
4912# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
4913#           (Note: HP C rejects this with "bad form for `-t' option")
4914# -pthreads: Solaris/gcc (Note: HP C also rejects)
4915# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
4916#      doesn't hurt to check since this sometimes defines pthreads and
4917#      -D_REENTRANT too), HP C (must be checked before -lpthread, which
4918#      is present but should not be used directly; and before -mthreads,
4919#      because the compiler interprets this as "-mt" + "-hreads")
4920# -mthreads: Mingw32/gcc, Lynx/gcc
4921# pthread: Linux, etcetera
4922# --thread-safe: KAI C++
4923# pthread-config: use pthread-config program (for GNU Pth library)
4924
4925case $host_os in
4926
4927        freebsd*)
4928
4929        # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
4930        # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
4931
4932        ax_pthread_flags="-kthread lthread $ax_pthread_flags"
4933        ;;
4934
4935        hpux*)
4936
4937        # From the cc(1) man page: "[-mt] Sets various -D flags to enable
4938        # multi-threading and also sets -lpthread."
4939
4940        ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
4941        ;;
4942
4943        openedition*)
4944
4945        # IBM z/OS requires a feature-test macro to be defined in order to
4946        # enable POSIX threads at all, so give the user a hint if this is
4947        # not set. (We don't define these ourselves, as they can affect
4948        # other portions of the system API in unpredictable ways.)
4949
4950        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951/* end confdefs.h.  */
4952
4953#            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
4954             AX_PTHREAD_ZOS_MISSING
4955#            endif
4956
4957_ACEOF
4958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4959  $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
4960  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
4961$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
4962fi
4963rm -f conftest*
4964
4965        ;;
4966
4967        solaris*)
4968
4969        # On Solaris (at least, for some versions), libc contains stubbed
4970        # (non-functional) versions of the pthreads routines, so link-based
4971        # tests will erroneously succeed. (N.B.: The stubs are missing
4972        # pthread_cleanup_push, or rather a function called by this macro,
4973        # so we could check for that, but who knows whether they'll stub
4974        # that too in a future libc.)  So we'll check first for the
4975        # standard Solaris way of linking pthreads (-mt -lpthread).
4976
4977        ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
4978        ;;
4979esac
4980
4981# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
4982
4983if test "x$GCC" = "xyes"; then :
4984  ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
4985fi
4986
4987# The presence of a feature test macro requesting re-entrant function
4988# definitions is, on some systems, a strong hint that pthreads support is
4989# correctly enabled
4990
4991case $host_os in
4992        darwin* | hpux* | linux* | osf* | solaris*)
4993        ax_pthread_check_macro="_REENTRANT"
4994        ;;
4995
4996        aix*)
4997        ax_pthread_check_macro="_THREAD_SAFE"
4998        ;;
4999
5000        *)
5001        ax_pthread_check_macro="--"
5002        ;;
5003esac
5004if test "x$ax_pthread_check_macro" = "x--"; then :
5005  ax_pthread_check_cond=0
5006else
5007  ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
5008fi
5009
5010# Are we compiling with Clang?
5011
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
5013$as_echo_n "checking whether $CC is Clang... " >&6; }
5014if ${ax_cv_PTHREAD_CLANG+:} false; then :
5015  $as_echo_n "(cached) " >&6
5016else
5017  ax_cv_PTHREAD_CLANG=no
5018     # Note that Autoconf sets GCC=yes for Clang as well as GCC
5019     if test "x$GCC" = "xyes"; then
5020        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5021/* end confdefs.h.  */
5022/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
5023#            if defined(__clang__) && defined(__llvm__)
5024             AX_PTHREAD_CC_IS_CLANG
5025#            endif
5026
5027_ACEOF
5028if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5029  $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
5030  ax_cv_PTHREAD_CLANG=yes
5031fi
5032rm -f conftest*
5033
5034     fi
5035
5036fi
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
5038$as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
5039ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
5040
5041ax_pthread_clang_warning=no
5042
5043# Clang needs special handling, because older versions handle the -pthread
5044# option in a rather... idiosyncratic way
5045
5046if test "x$ax_pthread_clang" = "xyes"; then
5047
5048        # Clang takes -pthread; it has never supported any other flag
5049
5050        # (Note 1: This will need to be revisited if a system that Clang
5051        # supports has POSIX threads in a separate library.  This tends not
5052        # to be the way of modern systems, but it's conceivable.)
5053
5054        # (Note 2: On some systems, notably Darwin, -pthread is not needed
5055        # to get POSIX threads support; the API is always present and
5056        # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
5057        # -pthread does define _REENTRANT, and while the Darwin headers
5058        # ignore this macro, third-party headers might not.)
5059
5060        PTHREAD_CFLAGS="-pthread"
5061        PTHREAD_LIBS=
5062
5063        ax_pthread_ok=yes
5064
5065        # However, older versions of Clang make a point of warning the user
5066        # that, in an invocation where only linking and no compilation is
5067        # taking place, the -pthread option has no effect ("argument unused
5068        # during compilation").  They expect -pthread to be passed in only
5069        # when source code is being compiled.
5070        #
5071        # Problem is, this is at odds with the way Automake and most other
5072        # C build frameworks function, which is that the same flags used in
5073        # compilation (CFLAGS) are also used in linking.  Many systems
5074        # supported by AX_PTHREAD require exactly this for POSIX threads
5075        # support, and in fact it is often not straightforward to specify a
5076        # flag that is used only in the compilation phase and not in
5077        # linking.  Such a scenario is extremely rare in practice.
5078        #
5079        # Even though use of the -pthread flag in linking would only print
5080        # a warning, this can be a nuisance for well-run software projects
5081        # that build with -Werror.  So if the active version of Clang has
5082        # this misfeature, we search for an option to squash it.
5083
5084        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
5085$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
5086if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
5087  $as_echo_n "(cached) " >&6
5088else
5089  ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
5090             # Create an alternate version of $ac_link that compiles and
5091             # links in two steps (.c -> .o, .o -> exe) instead of one
5092             # (.c -> exe), because the warning occurs only in the second
5093             # step
5094             ax_pthread_save_ac_link="$ac_link"
5095             ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
5096             ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
5097             ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
5098             ax_pthread_save_CFLAGS="$CFLAGS"
5099             for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
5100                if test "x$ax_pthread_try" = "xunknown"; then :
5101  break
5102fi
5103                CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
5104                ac_link="$ax_pthread_save_ac_link"
5105                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106/* end confdefs.h.  */
5107int main(void){return 0;}
5108_ACEOF
5109if ac_fn_c_try_link "$LINENO"; then :
5110  ac_link="$ax_pthread_2step_ac_link"
5111                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112/* end confdefs.h.  */
5113int main(void){return 0;}
5114_ACEOF
5115if ac_fn_c_try_link "$LINENO"; then :
5116  break
5117fi
5118rm -f core conftest.err conftest.$ac_objext \
5119    conftest$ac_exeext conftest.$ac_ext
5120
5121fi
5122rm -f core conftest.err conftest.$ac_objext \
5123    conftest$ac_exeext conftest.$ac_ext
5124             done
5125             ac_link="$ax_pthread_save_ac_link"
5126             CFLAGS="$ax_pthread_save_CFLAGS"
5127             if test "x$ax_pthread_try" = "x"; then :
5128  ax_pthread_try=no
5129fi
5130             ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
5131
5132fi
5133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
5134$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
5135
5136        case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
5137                no | unknown) ;;
5138                *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
5139        esac
5140
5141fi # $ax_pthread_clang = yes
5142
5143if test "x$ax_pthread_ok" = "xno"; then
5144for ax_pthread_try_flag in $ax_pthread_flags; do
5145
5146        case $ax_pthread_try_flag in
5147                none)
5148                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
5149$as_echo_n "checking whether pthreads work without any flags... " >&6; }
5150                ;;
5151
5152                -mt,pthread)
5153                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
5154$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
5155                PTHREAD_CFLAGS="-mt"
5156                PTHREAD_LIBS="-lpthread"
5157                ;;
5158
5159                -*)
5160                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
5161$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
5162                PTHREAD_CFLAGS="$ax_pthread_try_flag"
5163                ;;
5164
5165                pthread-config)
5166                # Extract the first word of "pthread-config", so it can be a program name with args.
5167set dummy pthread-config; ac_word=$2
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5169$as_echo_n "checking for $ac_word... " >&6; }
5170if ${ac_cv_prog_ax_pthread_config+:} false; then :
5171  $as_echo_n "(cached) " >&6
5172else
5173  if test -n "$ax_pthread_config"; then
5174  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
5175else
5176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177for as_dir in $PATH
5178do
5179  IFS=$as_save_IFS
5180  test -z "$as_dir" && as_dir=.
5181    for ac_exec_ext in '' $ac_executable_extensions; do
5182  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5183    ac_cv_prog_ax_pthread_config="yes"
5184    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5185    break 2
5186  fi
5187done
5188  done
5189IFS=$as_save_IFS
5190
5191  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
5192fi
5193fi
5194ax_pthread_config=$ac_cv_prog_ax_pthread_config
5195if test -n "$ax_pthread_config"; then
5196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
5197$as_echo "$ax_pthread_config" >&6; }
5198else
5199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200$as_echo "no" >&6; }
5201fi
5202
5203
5204                if test "x$ax_pthread_config" = "xno"; then :
5205  continue
5206fi
5207                PTHREAD_CFLAGS="`pthread-config --cflags`"
5208                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
5209                ;;
5210
5211                *)
5212                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
5213$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
5214                PTHREAD_LIBS="-l$ax_pthread_try_flag"
5215                ;;
5216        esac
5217
5218        ax_pthread_save_CFLAGS="$CFLAGS"
5219        ax_pthread_save_LIBS="$LIBS"
5220        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5221        LIBS="$PTHREAD_LIBS $LIBS"
5222
5223        # Check for various functions.  We must include pthread.h,
5224        # since some functions may be macros.  (On the Sequent, we
5225        # need a special flag -Kthread to make this header compile.)
5226        # We check for pthread_join because it is in -lpthread on IRIX
5227        # while pthread_create is in libc.  We check for pthread_attr_init
5228        # due to DEC craziness with -lpthreads.  We check for
5229        # pthread_cleanup_push because it is one of the few pthread
5230        # functions on Solaris that doesn't have a non-functional libc stub.
5231        # We try pthread_create on general principles.
5232
5233        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234/* end confdefs.h.  */
5235#include <pthread.h>
5236#                       if $ax_pthread_check_cond
5237#                        error "$ax_pthread_check_macro must be defined"
5238#                       endif
5239                        static void routine(void *a) { a = 0; }
5240                        static void *start_routine(void *a) { return a; }
5241int
5242main ()
5243{
5244pthread_t th; pthread_attr_t attr;
5245                        pthread_create(&th, 0, start_routine, 0);
5246                        pthread_join(th, 0);
5247                        pthread_attr_init(&attr);
5248                        pthread_cleanup_push(routine, 0);
5249                        pthread_cleanup_pop(0) /* ; */
5250  ;
5251  return 0;
5252}
5253_ACEOF
5254if ac_fn_c_try_link "$LINENO"; then :
5255  ax_pthread_ok=yes
5256fi
5257rm -f core conftest.err conftest.$ac_objext \
5258    conftest$ac_exeext conftest.$ac_ext
5259
5260        CFLAGS="$ax_pthread_save_CFLAGS"
5261        LIBS="$ax_pthread_save_LIBS"
5262
5263        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
5264$as_echo "$ax_pthread_ok" >&6; }
5265        if test "x$ax_pthread_ok" = "xyes"; then :
5266  break
5267fi
5268
5269        PTHREAD_LIBS=""
5270        PTHREAD_CFLAGS=""
5271done
5272fi
5273
5274# Various other checks:
5275if test "x$ax_pthread_ok" = "xyes"; then
5276        ax_pthread_save_CFLAGS="$CFLAGS"
5277        ax_pthread_save_LIBS="$LIBS"
5278        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5279        LIBS="$PTHREAD_LIBS $LIBS"
5280
5281        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
5282        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
5283$as_echo_n "checking for joinable pthread attribute... " >&6; }
5284if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
5285  $as_echo_n "(cached) " >&6
5286else
5287  ax_cv_PTHREAD_JOINABLE_ATTR=unknown
5288             for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
5289                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290/* end confdefs.h.  */
5291#include <pthread.h>
5292int
5293main ()
5294{
5295int attr = $ax_pthread_attr; return attr /* ; */
5296  ;
5297  return 0;
5298}
5299_ACEOF
5300if ac_fn_c_try_link "$LINENO"; then :
5301  ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
5302fi
5303rm -f core conftest.err conftest.$ac_objext \
5304    conftest$ac_exeext conftest.$ac_ext
5305             done
5306
5307fi
5308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
5309$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
5310        if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
5311               test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
5312               test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
5313
5314cat >>confdefs.h <<_ACEOF
5315#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
5316_ACEOF
5317
5318               ax_pthread_joinable_attr_defined=yes
5319
5320fi
5321
5322        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
5323$as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
5324if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
5325  $as_echo_n "(cached) " >&6
5326else
5327  ax_cv_PTHREAD_SPECIAL_FLAGS=no
5328             case $host_os in
5329             solaris*)
5330             ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
5331             ;;
5332             esac
5333
5334fi
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
5336$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
5337        if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
5338               test "x$ax_pthread_special_flags_added" != "xyes"; then :
5339  PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
5340               ax_pthread_special_flags_added=yes
5341fi
5342
5343        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
5344$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
5345if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
5346  $as_echo_n "(cached) " >&6
5347else
5348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349/* end confdefs.h.  */
5350#include <pthread.h>
5351int
5352main ()
5353{
5354int i = PTHREAD_PRIO_INHERIT;
5355  ;
5356  return 0;
5357}
5358_ACEOF
5359if ac_fn_c_try_link "$LINENO"; then :
5360  ax_cv_PTHREAD_PRIO_INHERIT=yes
5361else
5362  ax_cv_PTHREAD_PRIO_INHERIT=no
5363fi
5364rm -f core conftest.err conftest.$ac_objext \
5365    conftest$ac_exeext conftest.$ac_ext
5366
5367fi
5368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
5369$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
5370        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
5371               test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
5372
5373$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
5374
5375               ax_pthread_prio_inherit_defined=yes
5376
5377fi
5378
5379        CFLAGS="$ax_pthread_save_CFLAGS"
5380        LIBS="$ax_pthread_save_LIBS"
5381
5382        # More AIX lossage: compile with *_r variant
5383        if test "x$GCC" != "xyes"; then
5384            case $host_os in
5385                aix*)
5386                case "x/$CC" in #(
5387  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
5388    #handle absolute path differently from PATH based program lookup
5389                     case "x$CC" in #(
5390  x/*) :
5391    if as_fn_executable_p ${CC}_r; then :
5392  PTHREAD_CC="${CC}_r"
5393fi ;; #(
5394  *) :
5395    for ac_prog in ${CC}_r
5396do
5397  # Extract the first word of "$ac_prog", so it can be a program name with args.
5398set dummy $ac_prog; ac_word=$2
5399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5400$as_echo_n "checking for $ac_word... " >&6; }
5401if ${ac_cv_prog_PTHREAD_CC+:} false; then :
5402  $as_echo_n "(cached) " >&6
5403else
5404  if test -n "$PTHREAD_CC"; then
5405  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
5406else
5407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408for as_dir in $PATH
5409do
5410  IFS=$as_save_IFS
5411  test -z "$as_dir" && as_dir=.
5412    for ac_exec_ext in '' $ac_executable_extensions; do
5413  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5414    ac_cv_prog_PTHREAD_CC="$ac_prog"
5415    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5416    break 2
5417  fi
5418done
5419  done
5420IFS=$as_save_IFS
5421
5422fi
5423fi
5424PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
5425if test -n "$PTHREAD_CC"; then
5426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
5427$as_echo "$PTHREAD_CC" >&6; }
5428else
5429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5430$as_echo "no" >&6; }
5431fi
5432
5433
5434  test -n "$PTHREAD_CC" && break
5435done
5436test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
5437 ;;
5438esac ;; #(
5439  *) :
5440     ;;
5441esac
5442                ;;
5443            esac
5444        fi
5445fi
5446
5447test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
5448
5449
5450
5451
5452
5453# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
5454if test "x$ax_pthread_ok" = "xyes"; then
5455
5456    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457/* end confdefs.h.  */
5458
5459        #include <pthread.h>
5460
5461int
5462main ()
5463{
5464
5465        pthread_mutex_t mutex;
5466
5467        pthread_mutex_lock(&mutex);
5468        pthread_mutex_unlock(&mutex)
5469
5470
5471  ;
5472  return 0;
5473}
5474_ACEOF
5475if ac_fn_c_try_link "$LINENO"; then :
5476
5477
5478$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
5479
5480        with_threads="yes"
5481        LIBS="$PTHREAD_LIBS $LIBS"
5482        PKGCONFIG_LIBS_PRIVATE="$PTHREAD_LIBS $PTHREAD_CFLAGS $PKGCONFIG_LIBS_PRIVATE"
5483        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5484        CC="$PTHREAD_CC"
5485
5486fi
5487rm -f core conftest.err conftest.$ac_objext \
5488    conftest$ac_exeext conftest.$ac_ext
5489
5490        :
5491else
5492        ax_pthread_ok=no
5493         { $as_echo "$as_me:${as_lineno-$LINENO}: pthread mutexes are not available" >&5
5494$as_echo "$as_me: pthread mutexes are not available" >&6;}
5495
5496fi
5497ac_ext=c
5498ac_cpp='$CPP $CPPFLAGS'
5499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5501ac_compiler_gnu=$ac_cv_c_compiler_gnu
5502
5503
5504
5505else
5506  with_threads="no"
5507fi
5508
5509
5510# Check whether --with-safecode was given.
5511if test "${with_safecode+set}" = set; then :
5512  withval=$with_safecode; if test "x$withval" = "xyes"; then :
5513
5514
5515    : ${SAFECODE_HOME:=/opt/safecode}
5516    LDFLAGS="$LDFLAGS -L${SAFECODE_HOME}/lib"
5517    LIBS="$LIBS -lsc_dbg_rt -lpoolalloc_bitmap -lstdc++"
5518    CFLAGS="$CFLAGS -fmemsafety"
5519
5520fi
5521
5522fi
5523
5524
5525
5526# Check whether --with-ctgrind was given.
5527if test "${with_ctgrind+set}" = set; then :
5528  withval=$with_ctgrind; if test "x$withval" = "xyes"; then :
5529
5530    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_poison in -lctgrind" >&5
5531$as_echo_n "checking for ct_poison in -lctgrind... " >&6; }
5532if ${ac_cv_lib_ctgrind_ct_poison+:} false; then :
5533  $as_echo_n "(cached) " >&6
5534else
5535  ac_check_lib_save_LIBS=$LIBS
5536LIBS="-lctgrind  $LIBS"
5537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538/* end confdefs.h.  */
5539
5540/* Override any GCC internal prototype to avoid an error.
5541   Use char because int might match the return type of a GCC
5542   builtin and then its argument prototype would still apply.  */
5543#ifdef __cplusplus
5544extern "C"
5545#endif
5546char ct_poison ();
5547int
5548main ()
5549{
5550return ct_poison ();
5551  ;
5552  return 0;
5553}
5554_ACEOF
5555if ac_fn_c_try_link "$LINENO"; then :
5556  ac_cv_lib_ctgrind_ct_poison=yes
5557else
5558  ac_cv_lib_ctgrind_ct_poison=no
5559fi
5560rm -f core conftest.err conftest.$ac_objext \
5561    conftest$ac_exeext conftest.$ac_ext
5562LIBS=$ac_check_lib_save_LIBS
5563fi
5564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ctgrind_ct_poison" >&5
5565$as_echo "$ac_cv_lib_ctgrind_ct_poison" >&6; }
5566if test "x$ac_cv_lib_ctgrind_ct_poison" = xyes; then :
5567  cat >>confdefs.h <<_ACEOF
5568#define HAVE_LIBCTGRIND 1
5569_ACEOF
5570
5571  LIBS="-lctgrind $LIBS"
5572
5573fi
5574
5575
5576fi
5577
5578fi
5579
5580
5581# Check whether --enable-retpoline was given.
5582if test "${enable_retpoline+set}" = set; then :
5583  enableval=$enable_retpoline; if test "x$enableval" = "xyes"; then :
5584
5585  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mindirect-branch=thunk-inline" >&5
5586$as_echo_n "checking whether C compiler accepts -mindirect-branch=thunk-inline... " >&6; }
5587if ${ax_cv_check_cflags___mindirect_branch_thunk_inline+:} false; then :
5588  $as_echo_n "(cached) " >&6
5589else
5590
5591  ax_check_save_flags=$CFLAGS
5592  CFLAGS="$CFLAGS  -mindirect-branch=thunk-inline"
5593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594/* end confdefs.h.  */
5595#include <time.h>
5596int
5597main ()
5598{
5599time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
5600  ;
5601  return 0;
5602}
5603_ACEOF
5604if ac_fn_c_try_link "$LINENO"; then :
5605  ax_cv_check_cflags___mindirect_branch_thunk_inline=yes
5606else
5607  ax_cv_check_cflags___mindirect_branch_thunk_inline=no
5608fi
5609rm -f core conftest.err conftest.$ac_objext \
5610    conftest$ac_exeext conftest.$ac_ext
5611  CFLAGS=$ax_check_save_flags
5612fi
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mindirect_branch_thunk_inline" >&5
5614$as_echo "$ax_cv_check_cflags___mindirect_branch_thunk_inline" >&6; }
5615if test "x$ax_cv_check_cflags___mindirect_branch_thunk_inline" = xyes; then :
5616  CFLAGS="$CFLAGS -mindirect-branch=thunk-inline"
5617else
5618  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mretpoline" >&5
5619$as_echo_n "checking whether C compiler accepts -mretpoline... " >&6; }
5620if ${ax_cv_check_cflags___mretpoline+:} false; then :
5621  $as_echo_n "(cached) " >&6
5622else
5623
5624  ax_check_save_flags=$CFLAGS
5625  CFLAGS="$CFLAGS  -mretpoline"
5626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5627/* end confdefs.h.  */
5628#include <time.h>
5629int
5630main ()
5631{
5632time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
5633  ;
5634  return 0;
5635}
5636_ACEOF
5637if ac_fn_c_try_link "$LINENO"; then :
5638  ax_cv_check_cflags___mretpoline=yes
5639else
5640  ax_cv_check_cflags___mretpoline=no
5641fi
5642rm -f core conftest.err conftest.$ac_objext \
5643    conftest$ac_exeext conftest.$ac_ext
5644  CFLAGS=$ax_check_save_flags
5645fi
5646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mretpoline" >&5
5647$as_echo "$ax_cv_check_cflags___mretpoline" >&6; }
5648if test "x$ax_cv_check_cflags___mretpoline" = xyes; then :
5649  CFLAGS="$CFLAGS -mretpoline"
5650else
5651  :
5652fi
5653
5654
5655fi
5656
5657  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mindirect-branch-register" >&5
5658$as_echo_n "checking whether C compiler accepts -mindirect-branch-register... " >&6; }
5659if ${ax_cv_check_cflags___mindirect_branch_register+:} false; then :
5660  $as_echo_n "(cached) " >&6
5661else
5662
5663  ax_check_save_flags=$CFLAGS
5664  CFLAGS="$CFLAGS  -mindirect-branch-register"
5665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666/* end confdefs.h.  */
5667#include <time.h>
5668int
5669main ()
5670{
5671time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
5672  ;
5673  return 0;
5674}
5675_ACEOF
5676if ac_fn_c_try_link "$LINENO"; then :
5677  ax_cv_check_cflags___mindirect_branch_register=yes
5678else
5679  ax_cv_check_cflags___mindirect_branch_register=no
5680fi
5681rm -f core conftest.err conftest.$ac_objext \
5682    conftest$ac_exeext conftest.$ac_ext
5683  CFLAGS=$ax_check_save_flags
5684fi
5685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mindirect_branch_register" >&5
5686$as_echo "$ax_cv_check_cflags___mindirect_branch_register" >&6; }
5687if test "x$ax_cv_check_cflags___mindirect_branch_register" = xyes; then :
5688  :
5689else
5690  :
5691fi
5692
5693
5694fi
5695
5696fi
5697
5698
5699ENABLE_CWFLAGS=no
5700# Check whether --enable-debug was given.
5701if test "${enable_debug+set}" = set; then :
5702  enableval=$enable_debug;
5703  if test "x$enableval" = "xyes"; then :
5704
5705    if test "x$LX_CFLAGS" = "xNONE"; then :
5706
5707      nxflags=""
5708      for flag in `echo $CFLAGS`; do
5709        case $flag in #(
5710  -O*) :
5711      ;; #(
5712  -g*) :
5713      ;; #(
5714  *) :
5715    as_fn_append nxflags " $flag" ;; #(
5716  *) :
5717     ;;
5718esac
5719      done
5720      CFLAGS="$nxflags -O -g3"
5721
5722fi
5723    ENABLE_CWFLAGS=yes
5724    CPPFLAGS="$CPPFLAGS -DDEBUG=1 -U_FORTIFY_SOURCE"
5725
5726fi
5727
5728fi
5729
5730
5731# Check whether --enable-opt was given.
5732if test "${enable_opt+set}" = set; then :
5733  enableval=$enable_opt;
5734  if test "x$enableval" = "xyes"; then :
5735
5736    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Ofast" >&5
5737$as_echo_n "checking whether C compiler accepts -Ofast... " >&6; }
5738if ${ax_cv_check_cflags___Ofast+:} false; then :
5739  $as_echo_n "(cached) " >&6
5740else
5741
5742  ax_check_save_flags=$CFLAGS
5743  CFLAGS="$CFLAGS  -Ofast"
5744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745/* end confdefs.h.  */
5746#include <time.h>
5747int
5748main ()
5749{
5750time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
5751  ;
5752  return 0;
5753}
5754_ACEOF
5755if ac_fn_c_try_link "$LINENO"; then :
5756  ax_cv_check_cflags___Ofast=yes
5757else
5758  ax_cv_check_cflags___Ofast=no
5759fi
5760rm -f core conftest.err conftest.$ac_objext \
5761    conftest$ac_exeext conftest.$ac_ext
5762  CFLAGS=$ax_check_save_flags
5763fi
5764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Ofast" >&5
5765$as_echo "$ax_cv_check_cflags___Ofast" >&6; }
5766if test "x$ax_cv_check_cflags___Ofast" = xyes; then :
5767  CFLAGS="$CFLAGS -Ofast"
5768else
5769  :
5770fi
5771
5772    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ftree-vectorize" >&5
5773$as_echo_n "checking whether C compiler accepts -ftree-vectorize... " >&6; }
5774if ${ax_cv_check_cflags___ftree_vectorize+:} false; then :
5775  $as_echo_n "(cached) " >&6
5776else
5777
5778  ax_check_save_flags=$CFLAGS
5779  CFLAGS="$CFLAGS  -ftree-vectorize"
5780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781/* end confdefs.h.  */
5782#include <time.h>
5783int
5784main ()
5785{
5786time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
5787  ;
5788  return 0;
5789}
5790_ACEOF
5791if ac_fn_c_try_link "$LINENO"; then :
5792  ax_cv_check_cflags___ftree_vectorize=yes
5793else
5794  ax_cv_check_cflags___ftree_vectorize=no
5795fi
5796rm -f core conftest.err conftest.$ac_objext \
5797    conftest$ac_exeext conftest.$ac_ext
5798  CFLAGS=$ax_check_save_flags
5799fi
5800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ftree_vectorize" >&5
5801$as_echo "$ax_cv_check_cflags___ftree_vectorize" >&6; }
5802if test "x$ax_cv_check_cflags___ftree_vectorize" = xyes; then :
5803  CFLAGS="$CFLAGS -ftree-vectorize"
5804else
5805  :
5806fi
5807
5808    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ftree-slp-vectorize" >&5
5809$as_echo_n "checking whether C compiler accepts -ftree-slp-vectorize... " >&6; }
5810if ${ax_cv_check_cflags___ftree_slp_vectorize+:} false; then :
5811  $as_echo_n "(cached) " >&6
5812else
5813
5814  ax_check_save_flags=$CFLAGS
5815  CFLAGS="$CFLAGS  -ftree-slp-vectorize"
5816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817/* end confdefs.h.  */
5818#include <time.h>
5819int
5820main ()
5821{
5822time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
5823  ;
5824  return 0;
5825}
5826_ACEOF
5827if ac_fn_c_try_link "$LINENO"; then :
5828  ax_cv_check_cflags___ftree_slp_vectorize=yes
5829else
5830  ax_cv_check_cflags___ftree_slp_vectorize=no
5831fi
5832rm -f core conftest.err conftest.$ac_objext \
5833    conftest$ac_exeext conftest.$ac_ext
5834  CFLAGS=$ax_check_save_flags
5835fi
5836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ftree_slp_vectorize" >&5
5837$as_echo "$ax_cv_check_cflags___ftree_slp_vectorize" >&6; }
5838if test "x$ax_cv_check_cflags___ftree_slp_vectorize" = xyes; then :
5839  CFLAGS="$CFLAGS -ftree-slp-vectorize"
5840else
5841  :
5842fi
5843
5844    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fomit-frame-pointer" >&5
5845$as_echo_n "checking whether C compiler accepts -fomit-frame-pointer... " >&6; }
5846if ${ax_cv_check_cflags___fomit_frame_pointer+:} false; then :
5847  $as_echo_n "(cached) " >&6
5848else
5849
5850  ax_check_save_flags=$CFLAGS
5851  CFLAGS="$CFLAGS  -fomit-frame-pointer"
5852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5853/* end confdefs.h.  */
5854#include <time.h>
5855int
5856main ()
5857{
5858time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
5859  ;
5860  return 0;
5861}
5862_ACEOF
5863if ac_fn_c_try_link "$LINENO"; then :
5864  ax_cv_check_cflags___fomit_frame_pointer=yes
5865else
5866  ax_cv_check_cflags___fomit_frame_pointer=no
5867fi
5868rm -f core conftest.err conftest.$ac_objext \
5869    conftest$ac_exeext conftest.$ac_ext
5870  CFLAGS=$ax_check_save_flags
5871fi
5872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fomit_frame_pointer" >&5
5873$as_echo "$ax_cv_check_cflags___fomit_frame_pointer" >&6; }
5874if test "x$ax_cv_check_cflags___fomit_frame_pointer" = xyes; then :
5875  CFLAGS="$CFLAGS -fomit-frame-pointer"
5876else
5877  :
5878fi
5879
5880    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -march=native" >&5
5881$as_echo_n "checking whether C compiler accepts -march=native... " >&6; }
5882if ${ax_cv_check_cflags___march_native+:} false; then :
5883  $as_echo_n "(cached) " >&6
5884else
5885
5886  ax_check_save_flags=$CFLAGS
5887  CFLAGS="$CFLAGS  -march=native"
5888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5889/* end confdefs.h.  */
5890#include <time.h>
5891int
5892main ()
5893{
5894time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
5895  ;
5896  return 0;
5897}
5898_ACEOF
5899if ac_fn_c_try_link "$LINENO"; then :
5900  ax_cv_check_cflags___march_native=yes
5901else
5902  ax_cv_check_cflags___march_native=no
5903fi
5904rm -f core conftest.err conftest.$ac_objext \
5905    conftest$ac_exeext conftest.$ac_ext
5906  CFLAGS=$ax_check_save_flags
5907fi
5908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___march_native" >&5
5909$as_echo "$ax_cv_check_cflags___march_native" >&6; }
5910if test "x$ax_cv_check_cflags___march_native" = xyes; then :
5911  CFLAGS="$CFLAGS -march=native"
5912else
5913  :
5914fi
5915
5916
5917fi
5918
5919fi
5920
5921
5922
5923
5924
5925
5926		# Check whether --enable-valgrind was given.
5927if test "${enable_valgrind+set}" = set; then :
5928  enableval=$enable_valgrind; enable_valgrind=$enableval
5929else
5930  enable_valgrind=no
5931fi
5932
5933
5934	if test "$enable_valgrind" != "no"; then :
5935
5936		# Check for Valgrind.
5937		# Extract the first word of "valgrind", so it can be a program name with args.
5938set dummy valgrind; ac_word=$2
5939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5940$as_echo_n "checking for $ac_word... " >&6; }
5941if ${ac_cv_prog_VALGRIND+:} false; then :
5942  $as_echo_n "(cached) " >&6
5943else
5944  if test -n "$VALGRIND"; then
5945  ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
5946else
5947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948for as_dir in $PATH
5949do
5950  IFS=$as_save_IFS
5951  test -z "$as_dir" && as_dir=.
5952    for ac_exec_ext in '' $ac_executable_extensions; do
5953  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5954    ac_cv_prog_VALGRIND="valgrind"
5955    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5956    break 2
5957  fi
5958done
5959  done
5960IFS=$as_save_IFS
5961
5962fi
5963fi
5964VALGRIND=$ac_cv_prog_VALGRIND
5965if test -n "$VALGRIND"; then
5966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
5967$as_echo "$VALGRIND" >&6; }
5968else
5969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970$as_echo "no" >&6; }
5971fi
5972
5973
5974		if test "$VALGRIND" = ""; then :
5975
5976			if test "$enable_valgrind" = "yes"; then :
5977
5978				as_fn_error $? "Could not find valgrind; either install it or reconfigure with --disable-valgrind" "$LINENO" 5
5979
5980else
5981
5982				enable_valgrind=no
5983
5984fi
5985
5986else
5987
5988			enable_valgrind=yes
5989
5990fi
5991
5992fi
5993
5994	 if test "$enable_valgrind" = "yes"; then
5995  VALGRIND_ENABLED_TRUE=
5996  VALGRIND_ENABLED_FALSE='#'
5997else
5998  VALGRIND_ENABLED_TRUE='#'
5999  VALGRIND_ENABLED_FALSE=
6000fi
6001
6002	VALGRIND_ENABLED=$enable_valgrind
6003
6004
6005	# Check for Valgrind tools we care about.
6006	valgrind_enabled_tools=
6007
6008		# Check whether --enable-valgrind-memcheck was given.
6009if test "${enable_valgrind_memcheck+set}" = set; then :
6010  enableval=$enable_valgrind_memcheck; enable_valgrind_memcheck=$enableval
6011else
6012  enable_valgrind_memcheck=
6013fi
6014
6015		if test "$enable_valgrind" = "no"; then :
6016
6017			enable_valgrind_memcheck=no
6018elif test "$enable_valgrind_memcheck" != "no"; then :
6019
6020			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool memcheck" >&5
6021$as_echo_n "checking for Valgrind tool memcheck... " >&6; }
6022if ${ax_cv_valgrind_tool_memcheck+:} false; then :
6023  $as_echo_n "(cached) " >&6
6024else
6025
6026				ax_cv_valgrind_tool_memcheck=no
6027
6028				if `$VALGRIND --tool=memcheck --help >/dev/null 2>&1`; then :
6029
6030					ax_cv_valgrind_tool_memcheck=yes
6031
6032fi
6033
6034fi
6035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_memcheck" >&5
6036$as_echo "$ax_cv_valgrind_tool_memcheck" >&6; }
6037			if test "$ax_cv_valgrind_tool_memcheck" = "no"; then :
6038
6039				if test "$enable_valgrind_memcheck" = "yes"; then :
6040
6041					as_fn_error $? "Valgrind does not support memcheck; reconfigure with --disable-valgrind-memcheck" "$LINENO" 5
6042
6043else
6044
6045					enable_valgrind_memcheck=no
6046
6047fi
6048
6049else
6050
6051				enable_valgrind_memcheck=yes
6052
6053fi
6054
6055fi
6056		if test "$enable_valgrind_memcheck" = "yes"; then :
6057
6058			valgrind_enabled_tools="$valgrind_enabled_tools memcheck"
6059
6060fi
6061		ENABLE_VALGRIND_memcheck=$enable_valgrind_memcheck
6062
6063
6064		# Check whether --enable-valgrind-helgrind was given.
6065if test "${enable_valgrind_helgrind+set}" = set; then :
6066  enableval=$enable_valgrind_helgrind; enable_valgrind_helgrind=$enableval
6067else
6068  enable_valgrind_helgrind=
6069fi
6070
6071		if test "$enable_valgrind" = "no"; then :
6072
6073			enable_valgrind_helgrind=no
6074elif test "$enable_valgrind_helgrind" != "no"; then :
6075
6076			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool helgrind" >&5
6077$as_echo_n "checking for Valgrind tool helgrind... " >&6; }
6078if ${ax_cv_valgrind_tool_helgrind+:} false; then :
6079  $as_echo_n "(cached) " >&6
6080else
6081
6082				ax_cv_valgrind_tool_helgrind=no
6083
6084				if `$VALGRIND --tool=helgrind --help >/dev/null 2>&1`; then :
6085
6086					ax_cv_valgrind_tool_helgrind=yes
6087
6088fi
6089
6090fi
6091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_helgrind" >&5
6092$as_echo "$ax_cv_valgrind_tool_helgrind" >&6; }
6093			if test "$ax_cv_valgrind_tool_helgrind" = "no"; then :
6094
6095				if test "$enable_valgrind_helgrind" = "yes"; then :
6096
6097					as_fn_error $? "Valgrind does not support helgrind; reconfigure with --disable-valgrind-helgrind" "$LINENO" 5
6098
6099else
6100
6101					enable_valgrind_helgrind=no
6102
6103fi
6104
6105else
6106
6107				enable_valgrind_helgrind=yes
6108
6109fi
6110
6111fi
6112		if test "$enable_valgrind_helgrind" = "yes"; then :
6113
6114			valgrind_enabled_tools="$valgrind_enabled_tools helgrind"
6115
6116fi
6117		ENABLE_VALGRIND_helgrind=$enable_valgrind_helgrind
6118
6119
6120		# Check whether --enable-valgrind-drd was given.
6121if test "${enable_valgrind_drd+set}" = set; then :
6122  enableval=$enable_valgrind_drd; enable_valgrind_drd=$enableval
6123else
6124  enable_valgrind_drd=
6125fi
6126
6127		if test "$enable_valgrind" = "no"; then :
6128
6129			enable_valgrind_drd=no
6130elif test "$enable_valgrind_drd" != "no"; then :
6131
6132			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool drd" >&5
6133$as_echo_n "checking for Valgrind tool drd... " >&6; }
6134if ${ax_cv_valgrind_tool_drd+:} false; then :
6135  $as_echo_n "(cached) " >&6
6136else
6137
6138				ax_cv_valgrind_tool_drd=no
6139
6140				if `$VALGRIND --tool=drd --help >/dev/null 2>&1`; then :
6141
6142					ax_cv_valgrind_tool_drd=yes
6143
6144fi
6145
6146fi
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_drd" >&5
6148$as_echo "$ax_cv_valgrind_tool_drd" >&6; }
6149			if test "$ax_cv_valgrind_tool_drd" = "no"; then :
6150
6151				if test "$enable_valgrind_drd" = "yes"; then :
6152
6153					as_fn_error $? "Valgrind does not support drd; reconfigure with --disable-valgrind-drd" "$LINENO" 5
6154
6155else
6156
6157					enable_valgrind_drd=no
6158
6159fi
6160
6161else
6162
6163				enable_valgrind_drd=yes
6164
6165fi
6166
6167fi
6168		if test "$enable_valgrind_drd" = "yes"; then :
6169
6170			valgrind_enabled_tools="$valgrind_enabled_tools drd"
6171
6172fi
6173		ENABLE_VALGRIND_drd=$enable_valgrind_drd
6174
6175
6176		# Check whether --enable-valgrind-sgcheck was given.
6177if test "${enable_valgrind_sgcheck+set}" = set; then :
6178  enableval=$enable_valgrind_sgcheck; enable_valgrind_sgcheck=$enableval
6179else
6180  enable_valgrind_sgcheck=
6181fi
6182
6183		if test "$enable_valgrind" = "no"; then :
6184
6185			enable_valgrind_sgcheck=no
6186elif test "$enable_valgrind_sgcheck" != "no"; then :
6187
6188			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool sgcheck" >&5
6189$as_echo_n "checking for Valgrind tool sgcheck... " >&6; }
6190if ${ax_cv_valgrind_tool_sgcheck+:} false; then :
6191  $as_echo_n "(cached) " >&6
6192else
6193
6194				ax_cv_valgrind_tool_sgcheck=no
6195
6196				if `$VALGRIND --tool=exp-sgcheck --help >/dev/null 2>&1`; then :
6197
6198					ax_cv_valgrind_tool_sgcheck=yes
6199
6200fi
6201
6202fi
6203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_sgcheck" >&5
6204$as_echo "$ax_cv_valgrind_tool_sgcheck" >&6; }
6205			if test "$ax_cv_valgrind_tool_sgcheck" = "no"; then :
6206
6207				if test "$enable_valgrind_sgcheck" = "yes"; then :
6208
6209					as_fn_error $? "Valgrind does not support sgcheck; reconfigure with --disable-valgrind-sgcheck" "$LINENO" 5
6210
6211else
6212
6213					enable_valgrind_sgcheck=no
6214
6215fi
6216
6217else
6218
6219				enable_valgrind_sgcheck=yes
6220
6221fi
6222
6223fi
6224		if test "$enable_valgrind_sgcheck" = "yes"; then :
6225
6226			valgrind_enabled_tools="$valgrind_enabled_tools sgcheck"
6227
6228fi
6229		ENABLE_VALGRIND_sgcheck=$enable_valgrind_sgcheck
6230
6231
6232	valgrind_tools="memcheck helgrind drd sgcheck"
6233
6234	valgrind_enabled_tools=$valgrind_enabled_tools
6235
6236
6237VALGRIND_CHECK_RULES='
6238# Valgrind check
6239#
6240# Optional:
6241#  - VALGRIND_SUPPRESSIONS_FILES: Space-separated list of Valgrind suppressions
6242#    files to load. (Default: empty)
6243#  - VALGRIND_FLAGS: General flags to pass to all Valgrind tools.
6244#    (Default: --num-callers=30)
6245#  - VALGRIND_$toolname_FLAGS: Flags to pass to Valgrind $toolname (one of:
6246#    memcheck, helgrind, drd, sgcheck). (Default: various)
6247
6248# Optional variables
6249VALGRIND_SUPPRESSIONS ?= $(addprefix --suppressions=,$(VALGRIND_SUPPRESSIONS_FILES))
6250VALGRIND_FLAGS ?= --num-callers=30
6251VALGRIND_memcheck_FLAGS ?= --leak-check=full --show-reachable=no
6252VALGRIND_helgrind_FLAGS ?= --history-level=approx
6253VALGRIND_drd_FLAGS ?=
6254VALGRIND_sgcheck_FLAGS ?=
6255
6256# Internal use
6257valgrind_log_files = $(addprefix test-suite-,$(addsuffix .log,$(valgrind_tools)))
6258
6259valgrind_memcheck_flags = --tool=memcheck $(VALGRIND_memcheck_FLAGS)
6260valgrind_helgrind_flags = --tool=helgrind $(VALGRIND_helgrind_FLAGS)
6261valgrind_drd_flags = --tool=drd $(VALGRIND_drd_FLAGS)
6262valgrind_sgcheck_flags = --tool=exp-sgcheck $(VALGRIND_sgcheck_FLAGS)
6263
6264valgrind_quiet = $(valgrind_quiet_$(V))
6265valgrind_quiet_ = $(valgrind_quiet_$(AM_DEFAULT_VERBOSITY))
6266valgrind_quiet_0 = --quiet
6267valgrind_v_use   = $(valgrind_v_use_$(V))
6268valgrind_v_use_  = $(valgrind_v_use_$(AM_DEFAULT_VERBOSITY))
6269valgrind_v_use_0 = @echo "  USE   " $(patsubst check-valgrind-%,%,$''@):;
6270
6271# Support running with and without libtool.
6272ifneq ($(LIBTOOL),)
6273valgrind_lt = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=execute
6274else
6275valgrind_lt =
6276endif
6277
6278# Use recursive makes in order to ignore errors during check
6279check-valgrind:
6280ifeq ($(VALGRIND_ENABLED),yes)
6281	$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k \
6282		$(foreach tool, $(valgrind_enabled_tools), check-valgrind-$(tool))
6283else
6284	@echo "Need to use GNU make and reconfigure with --enable-valgrind"
6285endif
6286
6287# Valgrind running
6288VALGRIND_TESTS_ENVIRONMENT = \
6289	$(TESTS_ENVIRONMENT) \
6290	env VALGRIND=$(VALGRIND) \
6291	G_SLICE=always-malloc,debug-blocks \
6292	G_DEBUG=fatal-warnings,fatal-criticals,gc-friendly
6293
6294VALGRIND_LOG_COMPILER = \
6295	$(valgrind_lt) \
6296	$(VALGRIND) $(VALGRIND_SUPPRESSIONS) --error-exitcode=1 $(VALGRIND_FLAGS)
6297
6298define valgrind_tool_rule =
6299check-valgrind-$(1):
6300ifeq ($$(VALGRIND_ENABLED)-$$(ENABLE_VALGRIND_$(1)),yes-yes)
6301	$$(valgrind_v_use)$$(MAKE) check-TESTS \
6302		TESTS_ENVIRONMENT="$$(VALGRIND_TESTS_ENVIRONMENT)" \
6303		LOG_COMPILER="$$(VALGRIND_LOG_COMPILER)" \
6304		LOG_FLAGS="$$(valgrind_$(1)_flags)" \
6305		TEST_SUITE_LOG=test-suite-$(1).log
6306else ifeq ($$(VALGRIND_ENABLED),yes)
6307	@echo "Need to reconfigure with --enable-valgrind-$(1)"
6308else
6309	@echo "Need to reconfigure with --enable-valgrind"
6310endif
6311endef
6312
6313$(foreach tool,$(valgrind_tools),$(eval $(call valgrind_tool_rule,$(tool))))
6314
6315A''M_DISTCHECK_CONFIGURE_FLAGS ?=
6316A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-valgrind
6317
6318MOSTLYCLEANFILES ?=
6319MOSTLYCLEANFILES += $(valgrind_log_files)
6320
6321.PHONY: check-valgrind $(add-prefix check-valgrind-,$(valgrind_tools))
6322'
6323
6324	if test "$enable_valgrind" != "yes"; then :
6325
6326		VALGRIND_CHECK_RULES='
6327check-valgrind:
6328	@echo "Need to use GNU make and reconfigure with --enable-valgrind"'
6329
6330fi
6331
6332
6333
6334
6335
6336
6337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6338$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6339if ${ac_cv_prog_cc_c99+:} false; then :
6340  $as_echo_n "(cached) " >&6
6341else
6342  ac_cv_prog_cc_c99=no
6343ac_save_CC=$CC
6344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345/* end confdefs.h.  */
6346#include <stdarg.h>
6347#include <stdbool.h>
6348#include <stdlib.h>
6349#include <wchar.h>
6350#include <stdio.h>
6351
6352// Check varargs macros.  These examples are taken from C99 6.10.3.5.
6353#define debug(...) fprintf (stderr, __VA_ARGS__)
6354#define showlist(...) puts (#__VA_ARGS__)
6355#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6356static void
6357test_varargs_macros (void)
6358{
6359  int x = 1234;
6360  int y = 5678;
6361  debug ("Flag");
6362  debug ("X = %d\n", x);
6363  showlist (The first, second, and third items.);
6364  report (x>y, "x is %d but y is %d", x, y);
6365}
6366
6367// Check long long types.
6368#define BIG64 18446744073709551615ull
6369#define BIG32 4294967295ul
6370#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6371#if !BIG_OK
6372  your preprocessor is broken;
6373#endif
6374#if BIG_OK
6375#else
6376  your preprocessor is broken;
6377#endif
6378static long long int bignum = -9223372036854775807LL;
6379static unsigned long long int ubignum = BIG64;
6380
6381struct incomplete_array
6382{
6383  int datasize;
6384  double data[];
6385};
6386
6387struct named_init {
6388  int number;
6389  const wchar_t *name;
6390  double average;
6391};
6392
6393typedef const char *ccp;
6394
6395static inline int
6396test_restrict (ccp restrict text)
6397{
6398  // See if C++-style comments work.
6399  // Iterate through items via the restricted pointer.
6400  // Also check for declarations in for loops.
6401  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6402    continue;
6403  return 0;
6404}
6405
6406// Check varargs and va_copy.
6407static void
6408test_varargs (const char *format, ...)
6409{
6410  va_list args;
6411  va_start (args, format);
6412  va_list args_copy;
6413  va_copy (args_copy, args);
6414
6415  const char *str;
6416  int number;
6417  float fnumber;
6418
6419  while (*format)
6420    {
6421      switch (*format++)
6422	{
6423	case 's': // string
6424	  str = va_arg (args_copy, const char *);
6425	  break;
6426	case 'd': // int
6427	  number = va_arg (args_copy, int);
6428	  break;
6429	case 'f': // float
6430	  fnumber = va_arg (args_copy, double);
6431	  break;
6432	default:
6433	  break;
6434	}
6435    }
6436  va_end (args_copy);
6437  va_end (args);
6438}
6439
6440int
6441main ()
6442{
6443
6444  // Check bool.
6445  _Bool success = false;
6446
6447  // Check restrict.
6448  if (test_restrict ("String literal") == 0)
6449    success = true;
6450  char *restrict newvar = "Another string";
6451
6452  // Check varargs.
6453  test_varargs ("s, d' f .", "string", 65, 34.234);
6454  test_varargs_macros ();
6455
6456  // Check flexible array members.
6457  struct incomplete_array *ia =
6458    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6459  ia->datasize = 10;
6460  for (int i = 0; i < ia->datasize; ++i)
6461    ia->data[i] = i * 1.234;
6462
6463  // Check named initializers.
6464  struct named_init ni = {
6465    .number = 34,
6466    .name = L"Test wide string",
6467    .average = 543.34343,
6468  };
6469
6470  ni.number = 58;
6471
6472  int dynamic_array[ni.number];
6473  dynamic_array[ni.number - 1] = 543;
6474
6475  // work around unused variable warnings
6476  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6477	  || dynamic_array[ni.number - 1] != 543);
6478
6479  ;
6480  return 0;
6481}
6482_ACEOF
6483for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
6484do
6485  CC="$ac_save_CC $ac_arg"
6486  if ac_fn_c_try_compile "$LINENO"; then :
6487  ac_cv_prog_cc_c99=$ac_arg
6488fi
6489rm -f core conftest.err conftest.$ac_objext
6490  test "x$ac_cv_prog_cc_c99" != "xno" && break
6491done
6492rm -f conftest.$ac_ext
6493CC=$ac_save_CC
6494
6495fi
6496# AC_CACHE_VAL
6497case "x$ac_cv_prog_cc_c99" in
6498  x)
6499    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6500$as_echo "none needed" >&6; } ;;
6501  xno)
6502    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6503$as_echo "unsupported" >&6; } ;;
6504  *)
6505    CC="$CC $ac_cv_prog_cc_c99"
6506    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6507$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6508esac
6509if test "x$ac_cv_prog_cc_c99" != xno; then :
6510
6511fi
6512
6513
6514# By default we simply use the C compiler to build assembly code.
6515
6516test "${CCAS+set}" = set || CCAS=$CC
6517test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6518
6519
6520
6521depcc="$CCAS"   am_compiler_list=
6522
6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6524$as_echo_n "checking dependency style of $depcc... " >&6; }
6525if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
6526  $as_echo_n "(cached) " >&6
6527else
6528  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6529  # We make a subdir and do the tests there.  Otherwise we can end up
6530  # making bogus files that we don't know about and never remove.  For
6531  # instance it was reported that on HP-UX the gcc test will end up
6532  # making a dummy file named 'D' -- because '-MD' means "put the output
6533  # in D".
6534  rm -rf conftest.dir
6535  mkdir conftest.dir
6536  # Copy depcomp to subdir because otherwise we won't find it if we're
6537  # using a relative directory.
6538  cp "$am_depcomp" conftest.dir
6539  cd conftest.dir
6540  # We will build objects and dependencies in a subdirectory because
6541  # it helps to detect inapplicable dependency modes.  For instance
6542  # both Tru64's cc and ICC support -MD to output dependencies as a
6543  # side effect of compilation, but ICC will put the dependencies in
6544  # the current directory while Tru64 will put them in the object
6545  # directory.
6546  mkdir sub
6547
6548  am_cv_CCAS_dependencies_compiler_type=none
6549  if test "$am_compiler_list" = ""; then
6550     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6551  fi
6552  am__universal=false
6553
6554
6555  for depmode in $am_compiler_list; do
6556    # Setup a source with many dependencies, because some compilers
6557    # like to wrap large dependency lists on column 80 (with \), and
6558    # we should not choose a depcomp mode which is confused by this.
6559    #
6560    # We need to recreate these files for each test, as the compiler may
6561    # overwrite some of them when testing with obscure command lines.
6562    # This happens at least with the AIX C compiler.
6563    : > sub/conftest.c
6564    for i in 1 2 3 4 5 6; do
6565      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6566      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6567      # Solaris 10 /bin/sh.
6568      echo '/* dummy */' > sub/conftst$i.h
6569    done
6570    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6571
6572    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6573    # mode.  It turns out that the SunPro C++ compiler does not properly
6574    # handle '-M -o', and we need to detect this.  Also, some Intel
6575    # versions had trouble with output in subdirs.
6576    am__obj=sub/conftest.${OBJEXT-o}
6577    am__minus_obj="-o $am__obj"
6578    case $depmode in
6579    gcc)
6580      # This depmode causes a compiler race in universal mode.
6581      test "$am__universal" = false || continue
6582      ;;
6583    nosideeffect)
6584      # After this tag, mechanisms are not by side-effect, so they'll
6585      # only be used when explicitly requested.
6586      if test "x$enable_dependency_tracking" = xyes; then
6587	continue
6588      else
6589	break
6590      fi
6591      ;;
6592    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6593      # This compiler won't grok '-c -o', but also, the minuso test has
6594      # not run yet.  These depmodes are late enough in the game, and
6595      # so weak that their functioning should not be impacted.
6596      am__obj=conftest.${OBJEXT-o}
6597      am__minus_obj=
6598      ;;
6599    none) break ;;
6600    esac
6601    if depmode=$depmode \
6602       source=sub/conftest.c object=$am__obj \
6603       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6604       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6605         >/dev/null 2>conftest.err &&
6606       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6607       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6608       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6609       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6610      # icc doesn't choke on unknown options, it will just issue warnings
6611      # or remarks (even with -Werror).  So we grep stderr for any message
6612      # that says an option was ignored or not supported.
6613      # When given -MP, icc 7.0 and 7.1 complain thusly:
6614      #   icc: Command line warning: ignoring option '-M'; no argument required
6615      # The diagnosis changed in icc 8.0:
6616      #   icc: Command line remark: option '-MP' not supported
6617      if (grep 'ignoring option' conftest.err ||
6618          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6619        am_cv_CCAS_dependencies_compiler_type=$depmode
6620        break
6621      fi
6622    fi
6623  done
6624
6625  cd ..
6626  rm -rf conftest.dir
6627else
6628  am_cv_CCAS_dependencies_compiler_type=none
6629fi
6630
6631fi
6632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6633$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6634CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
6635
6636 if
6637  test "x$enable_dependency_tracking" != xno \
6638  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6639  am__fastdepCCAS_TRUE=
6640  am__fastdepCCAS_FALSE='#'
6641else
6642  am__fastdepCCAS_TRUE='#'
6643  am__fastdepCCAS_FALSE=
6644fi
6645
6646
6647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6648$as_echo_n "checking for ANSI C header files... " >&6; }
6649if ${ac_cv_header_stdc+:} false; then :
6650  $as_echo_n "(cached) " >&6
6651else
6652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6653/* end confdefs.h.  */
6654#include <stdlib.h>
6655#include <stdarg.h>
6656#include <string.h>
6657#include <float.h>
6658
6659int
6660main ()
6661{
6662
6663  ;
6664  return 0;
6665}
6666_ACEOF
6667if ac_fn_c_try_compile "$LINENO"; then :
6668  ac_cv_header_stdc=yes
6669else
6670  ac_cv_header_stdc=no
6671fi
6672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673
6674if test $ac_cv_header_stdc = yes; then
6675  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677/* end confdefs.h.  */
6678#include <string.h>
6679
6680_ACEOF
6681if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6682  $EGREP "memchr" >/dev/null 2>&1; then :
6683
6684else
6685  ac_cv_header_stdc=no
6686fi
6687rm -f conftest*
6688
6689fi
6690
6691if test $ac_cv_header_stdc = yes; then
6692  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6694/* end confdefs.h.  */
6695#include <stdlib.h>
6696
6697_ACEOF
6698if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6699  $EGREP "free" >/dev/null 2>&1; then :
6700
6701else
6702  ac_cv_header_stdc=no
6703fi
6704rm -f conftest*
6705
6706fi
6707
6708if test $ac_cv_header_stdc = yes; then
6709  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6710  if test "$cross_compiling" = yes; then :
6711  :
6712else
6713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714/* end confdefs.h.  */
6715#include <ctype.h>
6716#include <stdlib.h>
6717#if ((' ' & 0x0FF) == 0x020)
6718# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6719# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6720#else
6721# define ISLOWER(c) \
6722		   (('a' <= (c) && (c) <= 'i') \
6723		     || ('j' <= (c) && (c) <= 'r') \
6724		     || ('s' <= (c) && (c) <= 'z'))
6725# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6726#endif
6727
6728#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6729int
6730main ()
6731{
6732  int i;
6733  for (i = 0; i < 256; i++)
6734    if (XOR (islower (i), ISLOWER (i))
6735	|| toupper (i) != TOUPPER (i))
6736      return 2;
6737  return 0;
6738}
6739_ACEOF
6740if ac_fn_c_try_run "$LINENO"; then :
6741
6742else
6743  ac_cv_header_stdc=no
6744fi
6745rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6746  conftest.$ac_objext conftest.beam conftest.$ac_ext
6747fi
6748
6749fi
6750fi
6751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6752$as_echo "$ac_cv_header_stdc" >&6; }
6753if test $ac_cv_header_stdc = yes; then
6754
6755$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6756
6757fi
6758
6759# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6760for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6761		  inttypes.h stdint.h unistd.h
6762do :
6763  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6764ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6765"
6766if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6767  cat >>confdefs.h <<_ACEOF
6768#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6769_ACEOF
6770
6771fi
6772
6773done
6774
6775
6776
6777  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6778if test "x$ac_cv_header_minix_config_h" = xyes; then :
6779  MINIX=yes
6780else
6781  MINIX=
6782fi
6783
6784
6785  if test "$MINIX" = yes; then
6786
6787$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6788
6789
6790$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6791
6792
6793$as_echo "#define _MINIX 1" >>confdefs.h
6794
6795  fi
6796
6797
6798  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6799$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6800if ${ac_cv_safe_to_define___extensions__+:} false; then :
6801  $as_echo_n "(cached) " >&6
6802else
6803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6804/* end confdefs.h.  */
6805
6806#         define __EXTENSIONS__ 1
6807          $ac_includes_default
6808int
6809main ()
6810{
6811
6812  ;
6813  return 0;
6814}
6815_ACEOF
6816if ac_fn_c_try_compile "$LINENO"; then :
6817  ac_cv_safe_to_define___extensions__=yes
6818else
6819  ac_cv_safe_to_define___extensions__=no
6820fi
6821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6822fi
6823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6824$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6825  test $ac_cv_safe_to_define___extensions__ = yes &&
6826    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6827
6828  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6829
6830  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6831
6832  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6833
6834  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6835
6836
6837
6838  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5
6839$as_echo_n "checking for variable-length arrays... " >&6; }
6840if ${ac_cv_c_vararrays+:} false; then :
6841  $as_echo_n "(cached) " >&6
6842else
6843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844/* end confdefs.h.  */
6845
6846int
6847main ()
6848{
6849static int x; char a[++x]; a[sizeof a - 1] = 0; return a[0];
6850  ;
6851  return 0;
6852}
6853_ACEOF
6854if ac_fn_c_try_compile "$LINENO"; then :
6855  ac_cv_c_vararrays=yes
6856else
6857  ac_cv_c_vararrays=no
6858fi
6859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6860fi
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5
6862$as_echo "$ac_cv_c_vararrays" >&6; }
6863  if test $ac_cv_c_vararrays = yes; then
6864
6865$as_echo "#define HAVE_C_VARARRAYS 1" >>confdefs.h
6866
6867  fi
6868
6869
6870
6871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __wasi__ defined" >&5
6872$as_echo_n "checking for __wasi__ defined... " >&6; }
6873if ${ac_cv_defined___wasi__+:} false; then :
6874  $as_echo_n "(cached) " >&6
6875else
6876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877/* end confdefs.h.  */
6878
6879int
6880main ()
6881{
6882
6883  #ifdef __wasi__
6884  int ok;
6885  #else
6886  choke me
6887  #endif
6888
6889  ;
6890  return 0;
6891}
6892_ACEOF
6893if ac_fn_c_try_compile "$LINENO"; then :
6894  ac_cv_defined___wasi__=yes
6895else
6896  ac_cv_defined___wasi__=no
6897fi
6898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6899fi
6900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined___wasi__" >&5
6901$as_echo "$ac_cv_defined___wasi__" >&6; }
6902if test $ac_cv_defined___wasi__ != "no"; then :
6903  WASI="yes"
6904fi
6905
6906
6907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FORTIFY_SOURCE defined" >&5
6908$as_echo_n "checking for _FORTIFY_SOURCE defined... " >&6; }
6909if ${ac_cv_defined__FORTIFY_SOURCE+:} false; then :
6910  $as_echo_n "(cached) " >&6
6911else
6912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913/* end confdefs.h.  */
6914
6915int
6916main ()
6917{
6918
6919  #ifdef _FORTIFY_SOURCE
6920  int ok;
6921  #else
6922  choke me
6923  #endif
6924
6925  ;
6926  return 0;
6927}
6928_ACEOF
6929if ac_fn_c_try_compile "$LINENO"; then :
6930  ac_cv_defined__FORTIFY_SOURCE=yes
6931else
6932  ac_cv_defined__FORTIFY_SOURCE=no
6933fi
6934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6935fi
6936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__FORTIFY_SOURCE" >&5
6937$as_echo "$ac_cv_defined__FORTIFY_SOURCE" >&6; }
6938if test $ac_cv_defined__FORTIFY_SOURCE != "no"; then :
6939
6940else
6941
6942  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -D_FORTIFY_SOURCE=2" >&5
6943$as_echo_n "checking whether C compiler accepts -D_FORTIFY_SOURCE=2... " >&6; }
6944if ${ax_cv_check_cflags___D_FORTIFY_SOURCE_2+:} false; then :
6945  $as_echo_n "(cached) " >&6
6946else
6947
6948  ax_check_save_flags=$CFLAGS
6949  CFLAGS="$CFLAGS  -D_FORTIFY_SOURCE=2"
6950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6951/* end confdefs.h.  */
6952#include <time.h>
6953int
6954main ()
6955{
6956time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
6957  ;
6958  return 0;
6959}
6960_ACEOF
6961if ac_fn_c_try_link "$LINENO"; then :
6962  ax_cv_check_cflags___D_FORTIFY_SOURCE_2=yes
6963else
6964  ax_cv_check_cflags___D_FORTIFY_SOURCE_2=no
6965fi
6966rm -f core conftest.err conftest.$ac_objext \
6967    conftest$ac_exeext conftest.$ac_ext
6968  CFLAGS=$ax_check_save_flags
6969fi
6970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___D_FORTIFY_SOURCE_2" >&5
6971$as_echo "$ax_cv_check_cflags___D_FORTIFY_SOURCE_2" >&6; }
6972if test "x$ax_cv_check_cflags___D_FORTIFY_SOURCE_2" = xyes; then :
6973  CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
6974else
6975  :
6976fi
6977
6978
6979fi
6980
6981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5
6982$as_echo_n "checking whether C compiler accepts -fvisibility=hidden... " >&6; }
6983if ${ax_cv_check_cflags___fvisibility_hidden+:} false; then :
6984  $as_echo_n "(cached) " >&6
6985else
6986
6987  ax_check_save_flags=$CFLAGS
6988  CFLAGS="$CFLAGS  -fvisibility=hidden"
6989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990/* end confdefs.h.  */
6991#include <time.h>
6992int
6993main ()
6994{
6995time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
6996  ;
6997  return 0;
6998}
6999_ACEOF
7000if ac_fn_c_try_link "$LINENO"; then :
7001  ax_cv_check_cflags___fvisibility_hidden=yes
7002else
7003  ax_cv_check_cflags___fvisibility_hidden=no
7004fi
7005rm -f core conftest.err conftest.$ac_objext \
7006    conftest$ac_exeext conftest.$ac_ext
7007  CFLAGS=$ax_check_save_flags
7008fi
7009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fvisibility_hidden" >&5
7010$as_echo "$ax_cv_check_cflags___fvisibility_hidden" >&6; }
7011if test "x$ax_cv_check_cflags___fvisibility_hidden" = xyes; then :
7012  CFLAGS="$CFLAGS -fvisibility=hidden"
7013else
7014  :
7015fi
7016
7017
7018case $host_os in #(
7019  cygwin*|mingw*|msys|pw32*|cegcc*) :
7020      ;; #(
7021  *) :
7022
7023  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIC" >&5
7024$as_echo_n "checking whether C compiler accepts -fPIC... " >&6; }
7025if ${ax_cv_check_cflags___fPIC+:} false; then :
7026  $as_echo_n "(cached) " >&6
7027else
7028
7029  ax_check_save_flags=$CFLAGS
7030  CFLAGS="$CFLAGS  -fPIC"
7031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7032/* end confdefs.h.  */
7033#include <time.h>
7034int
7035main ()
7036{
7037time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7038  ;
7039  return 0;
7040}
7041_ACEOF
7042if ac_fn_c_try_link "$LINENO"; then :
7043  ax_cv_check_cflags___fPIC=yes
7044else
7045  ax_cv_check_cflags___fPIC=no
7046fi
7047rm -f core conftest.err conftest.$ac_objext \
7048    conftest$ac_exeext conftest.$ac_ext
7049  CFLAGS=$ax_check_save_flags
7050fi
7051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIC" >&5
7052$as_echo "$ax_cv_check_cflags___fPIC" >&6; }
7053if test "x$ax_cv_check_cflags___fPIC" = xyes; then :
7054  CFLAGS="$CFLAGS -fPIC"
7055else
7056  :
7057fi
7058
7059 ;;
7060esac
7061
7062if test "$enable_pie" != "no"; then :
7063
7064  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5
7065$as_echo_n "checking whether C compiler accepts -fPIE... " >&6; }
7066if ${ax_cv_check_cflags___fPIE+:} false; then :
7067  $as_echo_n "(cached) " >&6
7068else
7069
7070  ax_check_save_flags=$CFLAGS
7071  CFLAGS="$CFLAGS  -fPIE"
7072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7073/* end confdefs.h.  */
7074#include <time.h>
7075int
7076main ()
7077{
7078time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7079  ;
7080  return 0;
7081}
7082_ACEOF
7083if ac_fn_c_try_link "$LINENO"; then :
7084  ax_cv_check_cflags___fPIE=yes
7085else
7086  ax_cv_check_cflags___fPIE=no
7087fi
7088rm -f core conftest.err conftest.$ac_objext \
7089    conftest$ac_exeext conftest.$ac_ext
7090  CFLAGS=$ax_check_save_flags
7091fi
7092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIE" >&5
7093$as_echo "$ax_cv_check_cflags___fPIE" >&6; }
7094if test "x$ax_cv_check_cflags___fPIE" = xyes; then :
7095
7096    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5
7097$as_echo_n "checking whether the linker accepts -pie... " >&6; }
7098if ${ax_cv_check_ldflags___pie+:} false; then :
7099  $as_echo_n "(cached) " >&6
7100else
7101
7102  ax_check_save_flags=$LDFLAGS
7103  LDFLAGS="$LDFLAGS  -pie"
7104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7105/* end confdefs.h.  */
7106#include <time.h>
7107int
7108main ()
7109{
7110time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7111  ;
7112  return 0;
7113}
7114_ACEOF
7115if ac_fn_c_try_link "$LINENO"; then :
7116  ax_cv_check_ldflags___pie=yes
7117else
7118  ax_cv_check_ldflags___pie=no
7119fi
7120rm -f core conftest.err conftest.$ac_objext \
7121    conftest$ac_exeext conftest.$ac_ext
7122  LDFLAGS=$ax_check_save_flags
7123fi
7124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___pie" >&5
7125$as_echo "$ax_cv_check_ldflags___pie" >&6; }
7126if test "x$ax_cv_check_ldflags___pie" = xyes; then :
7127
7128      CFLAGS="$CFLAGS -fPIE"
7129       LDFLAGS="$LDFLAGS -pie"
7130
7131else
7132  :
7133fi
7134
7135
7136else
7137  :
7138fi
7139
7140
7141fi
7142
7143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5
7144$as_echo_n "checking whether C compiler accepts -fno-strict-aliasing... " >&6; }
7145if ${ax_cv_check_cflags___fno_strict_aliasing+:} false; then :
7146  $as_echo_n "(cached) " >&6
7147else
7148
7149  ax_check_save_flags=$CFLAGS
7150  CFLAGS="$CFLAGS  -fno-strict-aliasing"
7151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152/* end confdefs.h.  */
7153#include <time.h>
7154int
7155main ()
7156{
7157time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7158  ;
7159  return 0;
7160}
7161_ACEOF
7162if ac_fn_c_try_link "$LINENO"; then :
7163  ax_cv_check_cflags___fno_strict_aliasing=yes
7164else
7165  ax_cv_check_cflags___fno_strict_aliasing=no
7166fi
7167rm -f core conftest.err conftest.$ac_objext \
7168    conftest$ac_exeext conftest.$ac_ext
7169  CFLAGS=$ax_check_save_flags
7170fi
7171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_aliasing" >&5
7172$as_echo "$ax_cv_check_cflags___fno_strict_aliasing" >&6; }
7173if test "x$ax_cv_check_cflags___fno_strict_aliasing" = xyes; then :
7174  CFLAGS="$CFLAGS -fno-strict-aliasing"
7175else
7176  :
7177fi
7178
7179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-overflow" >&5
7180$as_echo_n "checking whether C compiler accepts -fno-strict-overflow... " >&6; }
7181if ${ax_cv_check_cflags___fno_strict_overflow+:} false; then :
7182  $as_echo_n "(cached) " >&6
7183else
7184
7185  ax_check_save_flags=$CFLAGS
7186  CFLAGS="$CFLAGS  -fno-strict-overflow"
7187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188/* end confdefs.h.  */
7189#include <time.h>
7190int
7191main ()
7192{
7193time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7194  ;
7195  return 0;
7196}
7197_ACEOF
7198if ac_fn_c_try_link "$LINENO"; then :
7199  ax_cv_check_cflags___fno_strict_overflow=yes
7200else
7201  ax_cv_check_cflags___fno_strict_overflow=no
7202fi
7203rm -f core conftest.err conftest.$ac_objext \
7204    conftest$ac_exeext conftest.$ac_ext
7205  CFLAGS=$ax_check_save_flags
7206fi
7207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_overflow" >&5
7208$as_echo "$ax_cv_check_cflags___fno_strict_overflow" >&6; }
7209if test "x$ax_cv_check_cflags___fno_strict_overflow" = xyes; then :
7210  CFLAGS="$CFLAGS -fno-strict-overflow"
7211else
7212
7213  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fwrapv" >&5
7214$as_echo_n "checking whether C compiler accepts -fwrapv... " >&6; }
7215if ${ax_cv_check_cflags___fwrapv+:} false; then :
7216  $as_echo_n "(cached) " >&6
7217else
7218
7219  ax_check_save_flags=$CFLAGS
7220  CFLAGS="$CFLAGS  -fwrapv"
7221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222/* end confdefs.h.  */
7223#include <time.h>
7224int
7225main ()
7226{
7227time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7228  ;
7229  return 0;
7230}
7231_ACEOF
7232if ac_fn_c_try_link "$LINENO"; then :
7233  ax_cv_check_cflags___fwrapv=yes
7234else
7235  ax_cv_check_cflags___fwrapv=no
7236fi
7237rm -f core conftest.err conftest.$ac_objext \
7238    conftest$ac_exeext conftest.$ac_ext
7239  CFLAGS=$ax_check_save_flags
7240fi
7241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fwrapv" >&5
7242$as_echo "$ax_cv_check_cflags___fwrapv" >&6; }
7243if test "x$ax_cv_check_cflags___fwrapv" = xyes; then :
7244  CFLAGS="$CFLAGS -fwrapv"
7245else
7246  :
7247fi
7248
7249
7250fi
7251
7252
7253if test "$GCC" = "yes" ; then :
7254
7255  case $host_cpu in #(
7256  i?86|amd64|x86_64) :
7257
7258      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259/* end confdefs.h.  */
7260
7261#if !defined(__clang__) && defined(__GNUC__) && ((__GNUC__ << 8) | __GNUC_MINOR__) < 0x403
7262# error old gcc
7263#endif
7264int main(void) { return 0; }
7265
7266_ACEOF
7267if ac_fn_c_try_compile "$LINENO"; then :
7268
7269else
7270
7271          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -flax-vector-conversions" >&5
7272$as_echo_n "checking whether C compiler accepts -flax-vector-conversions... " >&6; }
7273if ${ax_cv_check_cflags___flax_vector_conversions+:} false; then :
7274  $as_echo_n "(cached) " >&6
7275else
7276
7277  ax_check_save_flags=$CFLAGS
7278  CFLAGS="$CFLAGS  -flax-vector-conversions"
7279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280/* end confdefs.h.  */
7281#include <time.h>
7282int
7283main ()
7284{
7285time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7286  ;
7287  return 0;
7288}
7289_ACEOF
7290if ac_fn_c_try_link "$LINENO"; then :
7291  ax_cv_check_cflags___flax_vector_conversions=yes
7292else
7293  ax_cv_check_cflags___flax_vector_conversions=no
7294fi
7295rm -f core conftest.err conftest.$ac_objext \
7296    conftest$ac_exeext conftest.$ac_ext
7297  CFLAGS=$ax_check_save_flags
7298fi
7299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___flax_vector_conversions" >&5
7300$as_echo "$ax_cv_check_cflags___flax_vector_conversions" >&6; }
7301if test "x$ax_cv_check_cflags___flax_vector_conversions" = xyes; then :
7302  CFLAGS="$CFLAGS -flax-vector-conversions"
7303else
7304  :
7305fi
7306
7307
7308fi
7309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7310
7311     ;; #(
7312  *) :
7313     ;;
7314esac
7315
7316fi
7317
7318LIBTOOL_OLD_FLAGS="$LIBTOOL_EXTRA_FLAGS"
7319LIBTOOL_EXTRA_FLAGS="$LIBTOOL_EXTRA_FLAGS -version-info $SODIUM_LIBRARY_VERSION"
7320# Check whether --enable-soname-versions was given.
7321if test "${enable_soname_versions+set}" = set; then :
7322  enableval=$enable_soname_versions;
7323        if test "x$enableval" = "xno"; then :
7324
7325          LIBTOOL_EXTRA_FLAGS="$LIBTOOL_OLD_FLAGS -avoid-version"
7326
7327fi
7328
7329
7330fi
7331
7332
7333case $host_os in #(
7334  cygwin*|mingw*|msys|pw32*|cegcc*) :
7335
7336    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--dynamicbase" >&5
7337$as_echo_n "checking whether the linker accepts -Wl,--dynamicbase... " >&6; }
7338if ${ax_cv_check_ldflags___Wl___dynamicbase+:} false; then :
7339  $as_echo_n "(cached) " >&6
7340else
7341
7342  ax_check_save_flags=$LDFLAGS
7343  LDFLAGS="$LDFLAGS  -Wl,--dynamicbase"
7344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7345/* end confdefs.h.  */
7346#include <time.h>
7347int
7348main ()
7349{
7350time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7351  ;
7352  return 0;
7353}
7354_ACEOF
7355if ac_fn_c_try_link "$LINENO"; then :
7356  ax_cv_check_ldflags___Wl___dynamicbase=yes
7357else
7358  ax_cv_check_ldflags___Wl___dynamicbase=no
7359fi
7360rm -f core conftest.err conftest.$ac_objext \
7361    conftest$ac_exeext conftest.$ac_ext
7362  LDFLAGS=$ax_check_save_flags
7363fi
7364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___dynamicbase" >&5
7365$as_echo "$ax_cv_check_ldflags___Wl___dynamicbase" >&6; }
7366if test "x$ax_cv_check_ldflags___Wl___dynamicbase" = xyes; then :
7367  LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
7368else
7369  :
7370fi
7371
7372    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--high-entropy-va" >&5
7373$as_echo_n "checking whether the linker accepts -Wl,--high-entropy-va... " >&6; }
7374if ${ax_cv_check_ldflags___Wl___high_entropy_va+:} false; then :
7375  $as_echo_n "(cached) " >&6
7376else
7377
7378  ax_check_save_flags=$LDFLAGS
7379  LDFLAGS="$LDFLAGS  -Wl,--high-entropy-va"
7380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7381/* end confdefs.h.  */
7382#include <time.h>
7383int
7384main ()
7385{
7386time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7387  ;
7388  return 0;
7389}
7390_ACEOF
7391if ac_fn_c_try_link "$LINENO"; then :
7392  ax_cv_check_ldflags___Wl___high_entropy_va=yes
7393else
7394  ax_cv_check_ldflags___Wl___high_entropy_va=no
7395fi
7396rm -f core conftest.err conftest.$ac_objext \
7397    conftest$ac_exeext conftest.$ac_ext
7398  LDFLAGS=$ax_check_save_flags
7399fi
7400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___high_entropy_va" >&5
7401$as_echo "$ax_cv_check_ldflags___Wl___high_entropy_va" >&6; }
7402if test "x$ax_cv_check_ldflags___Wl___high_entropy_va" = xyes; then :
7403  LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
7404else
7405  :
7406fi
7407
7408    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--nxcompat" >&5
7409$as_echo_n "checking whether the linker accepts -Wl,--nxcompat... " >&6; }
7410if ${ax_cv_check_ldflags___Wl___nxcompat+:} false; then :
7411  $as_echo_n "(cached) " >&6
7412else
7413
7414  ax_check_save_flags=$LDFLAGS
7415  LDFLAGS="$LDFLAGS  -Wl,--nxcompat"
7416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7417/* end confdefs.h.  */
7418#include <time.h>
7419int
7420main ()
7421{
7422time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7423  ;
7424  return 0;
7425}
7426_ACEOF
7427if ac_fn_c_try_link "$LINENO"; then :
7428  ax_cv_check_ldflags___Wl___nxcompat=yes
7429else
7430  ax_cv_check_ldflags___Wl___nxcompat=no
7431fi
7432rm -f core conftest.err conftest.$ac_objext \
7433    conftest$ac_exeext conftest.$ac_ext
7434  LDFLAGS=$ax_check_save_flags
7435fi
7436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___nxcompat" >&5
7437$as_echo "$ax_cv_check_ldflags___Wl___nxcompat" >&6; }
7438if test "x$ax_cv_check_ldflags___Wl___nxcompat" = xyes; then :
7439  LDFLAGS="$LDFLAGS -Wl,--nxcompat"
7440else
7441  :
7442fi
7443
7444   ;; #(
7445  *) :
7446     ;;
7447esac
7448
7449case $host_os in #(
7450  cygwin*|mingw*|msys|pw32*|cegcc*) :
7451
7452    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-asynchronous-unwind-tables" >&5
7453$as_echo_n "checking whether C compiler accepts -fno-asynchronous-unwind-tables... " >&6; }
7454if ${ax_cv_check_cflags___fno_asynchronous_unwind_tables+:} false; then :
7455  $as_echo_n "(cached) " >&6
7456else
7457
7458  ax_check_save_flags=$CFLAGS
7459  CFLAGS="$CFLAGS  -fno-asynchronous-unwind-tables"
7460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461/* end confdefs.h.  */
7462#include <time.h>
7463int
7464main ()
7465{
7466time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7467  ;
7468  return 0;
7469}
7470_ACEOF
7471if ac_fn_c_try_link "$LINENO"; then :
7472  ax_cv_check_cflags___fno_asynchronous_unwind_tables=yes
7473else
7474  ax_cv_check_cflags___fno_asynchronous_unwind_tables=no
7475fi
7476rm -f core conftest.err conftest.$ac_objext \
7477    conftest$ac_exeext conftest.$ac_ext
7478  CFLAGS=$ax_check_save_flags
7479fi
7480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_asynchronous_unwind_tables" >&5
7481$as_echo "$ax_cv_check_cflags___fno_asynchronous_unwind_tables" >&6; }
7482if test "x$ax_cv_check_cflags___fno_asynchronous_unwind_tables" = xyes; then :
7483
7484      CFLAGS="$CFLAGS -fno-asynchronous-unwind-tables"
7485
7486else
7487  :
7488fi
7489
7490 ;; #(
7491  *) :
7492     ;;
7493esac
7494
7495if test "x$enable_ssp" != "xno"; then :
7496
7497
7498case $host_os in #(
7499  cygwin*|mingw*|msys|pw32*|cegcc*|haiku|none) :
7500      ;; #(
7501  *) :
7502
7503    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector" >&5
7504$as_echo_n "checking whether C compiler accepts -fstack-protector... " >&6; }
7505if ${ax_cv_check_cflags___fstack_protector+:} false; then :
7506  $as_echo_n "(cached) " >&6
7507else
7508
7509  ax_check_save_flags=$CFLAGS
7510  CFLAGS="$CFLAGS  -fstack-protector"
7511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512/* end confdefs.h.  */
7513#include <time.h>
7514int
7515main ()
7516{
7517time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7518  ;
7519  return 0;
7520}
7521_ACEOF
7522if ac_fn_c_try_link "$LINENO"; then :
7523  ax_cv_check_cflags___fstack_protector=yes
7524else
7525  ax_cv_check_cflags___fstack_protector=no
7526fi
7527rm -f core conftest.err conftest.$ac_objext \
7528    conftest$ac_exeext conftest.$ac_ext
7529  CFLAGS=$ax_check_save_flags
7530fi
7531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector" >&5
7532$as_echo "$ax_cv_check_cflags___fstack_protector" >&6; }
7533if test "x$ax_cv_check_cflags___fstack_protector" = xyes; then :
7534
7535      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector" >&5
7536$as_echo_n "checking whether the linker accepts -fstack-protector... " >&6; }
7537if ${ax_cv_check_ldflags___fstack_protector+:} false; then :
7538  $as_echo_n "(cached) " >&6
7539else
7540
7541  ax_check_save_flags=$LDFLAGS
7542  LDFLAGS="$LDFLAGS  -fstack-protector"
7543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7544/* end confdefs.h.  */
7545#include <time.h>
7546int
7547main ()
7548{
7549time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7550  ;
7551  return 0;
7552}
7553_ACEOF
7554if ac_fn_c_try_link "$LINENO"; then :
7555  ax_cv_check_ldflags___fstack_protector=yes
7556else
7557  ax_cv_check_ldflags___fstack_protector=no
7558fi
7559rm -f core conftest.err conftest.$ac_objext \
7560    conftest$ac_exeext conftest.$ac_ext
7561  LDFLAGS=$ax_check_save_flags
7562fi
7563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector" >&5
7564$as_echo "$ax_cv_check_ldflags___fstack_protector" >&6; }
7565if test "x$ax_cv_check_ldflags___fstack_protector" = xyes; then :
7566  CFLAGS="$CFLAGS -fstack-protector"
7567
7568else
7569  :
7570fi
7571
7572
7573else
7574  :
7575fi
7576
7577   ;; #(
7578  *) :
7579     ;;
7580esac
7581
7582fi
7583
7584
7585
7586as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS -Wall" | $as_tr_sh`
7587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS -Wall" >&5
7588$as_echo_n "checking whether C compiler accepts $CFLAGS -Wall... " >&6; }
7589if eval \${$as_CACHEVAR+:} false; then :
7590  $as_echo_n "(cached) " >&6
7591else
7592
7593  ax_check_save_flags=$CFLAGS
7594  CFLAGS="$CFLAGS  $CFLAGS -Wall"
7595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596/* end confdefs.h.  */
7597#include <time.h>
7598int
7599main ()
7600{
7601time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7602  ;
7603  return 0;
7604}
7605_ACEOF
7606if ac_fn_c_try_link "$LINENO"; then :
7607  eval "$as_CACHEVAR=yes"
7608else
7609  eval "$as_CACHEVAR=no"
7610fi
7611rm -f core conftest.err conftest.$ac_objext \
7612    conftest$ac_exeext conftest.$ac_ext
7613  CFLAGS=$ax_check_save_flags
7614fi
7615eval ac_res=\$$as_CACHEVAR
7616	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7617$as_echo "$ac_res" >&6; }
7618if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7619  CWFLAGS="$CFLAGS -Wall"
7620else
7621  :
7622fi
7623
7624as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS -Wextra" | $as_tr_sh`
7625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS -Wextra" >&5
7626$as_echo_n "checking whether C compiler accepts $CFLAGS -Wextra... " >&6; }
7627if eval \${$as_CACHEVAR+:} false; then :
7628  $as_echo_n "(cached) " >&6
7629else
7630
7631  ax_check_save_flags=$CFLAGS
7632  CFLAGS="$CFLAGS  $CFLAGS -Wextra"
7633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634/* end confdefs.h.  */
7635#include <time.h>
7636int
7637main ()
7638{
7639time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7640  ;
7641  return 0;
7642}
7643_ACEOF
7644if ac_fn_c_try_link "$LINENO"; then :
7645  eval "$as_CACHEVAR=yes"
7646else
7647  eval "$as_CACHEVAR=no"
7648fi
7649rm -f core conftest.err conftest.$ac_objext \
7650    conftest$ac_exeext conftest.$ac_ext
7651  CFLAGS=$ax_check_save_flags
7652fi
7653eval ac_res=\$$as_CACHEVAR
7654	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7655$as_echo "$ac_res" >&6; }
7656if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7657  CWFLAGS="$CFLAGS -Wextra"
7658else
7659  :
7660fi
7661
7662
7663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang" >&5
7664$as_echo_n "checking for clang... " >&6; }
7665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666/* end confdefs.h.  */
7667
7668int
7669main ()
7670{
7671
7672#ifndef __clang__
7673#error Not clang
7674#endif
7675
7676  ;
7677  return 0;
7678}
7679_ACEOF
7680if ac_fn_c_try_compile "$LINENO"; then :
7681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7682$as_echo "yes" >&6; }
7683   as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wno-unknown-warning-option" | $as_tr_sh`
7684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wno-unknown-warning-option" >&5
7685$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wno-unknown-warning-option... " >&6; }
7686if eval \${$as_CACHEVAR+:} false; then :
7687  $as_echo_n "(cached) " >&6
7688else
7689
7690  ax_check_save_flags=$CFLAGS
7691  CFLAGS="$CFLAGS  $CWFLAGS -Wno-unknown-warning-option"
7692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693/* end confdefs.h.  */
7694#include <time.h>
7695int
7696main ()
7697{
7698time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7699  ;
7700  return 0;
7701}
7702_ACEOF
7703if ac_fn_c_try_link "$LINENO"; then :
7704  eval "$as_CACHEVAR=yes"
7705else
7706  eval "$as_CACHEVAR=no"
7707fi
7708rm -f core conftest.err conftest.$ac_objext \
7709    conftest$ac_exeext conftest.$ac_ext
7710  CFLAGS=$ax_check_save_flags
7711fi
7712eval ac_res=\$$as_CACHEVAR
7713	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7714$as_echo "$ac_res" >&6; }
7715if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7716  CWFLAGS="$CWFLAGS -Wno-unknown-warning-option"
7717else
7718  :
7719fi
7720
7721
7722else
7723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7724$as_echo "no" >&6; }
7725
7726fi
7727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7728
7729as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wbad-function-cast" | $as_tr_sh`
7730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wbad-function-cast" >&5
7731$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wbad-function-cast... " >&6; }
7732if eval \${$as_CACHEVAR+:} false; then :
7733  $as_echo_n "(cached) " >&6
7734else
7735
7736  ax_check_save_flags=$CFLAGS
7737  CFLAGS="$CFLAGS  $CWFLAGS -Wbad-function-cast"
7738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7739/* end confdefs.h.  */
7740#include <time.h>
7741int
7742main ()
7743{
7744time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7745  ;
7746  return 0;
7747}
7748_ACEOF
7749if ac_fn_c_try_link "$LINENO"; then :
7750  eval "$as_CACHEVAR=yes"
7751else
7752  eval "$as_CACHEVAR=no"
7753fi
7754rm -f core conftest.err conftest.$ac_objext \
7755    conftest$ac_exeext conftest.$ac_ext
7756  CFLAGS=$ax_check_save_flags
7757fi
7758eval ac_res=\$$as_CACHEVAR
7759	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7760$as_echo "$ac_res" >&6; }
7761if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7762  CWFLAGS="$CWFLAGS -Wbad-function-cast"
7763else
7764  :
7765fi
7766
7767as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wcast-qual" | $as_tr_sh`
7768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wcast-qual" >&5
7769$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wcast-qual... " >&6; }
7770if eval \${$as_CACHEVAR+:} false; then :
7771  $as_echo_n "(cached) " >&6
7772else
7773
7774  ax_check_save_flags=$CFLAGS
7775  CFLAGS="$CFLAGS  $CWFLAGS -Wcast-qual"
7776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777/* end confdefs.h.  */
7778#include <time.h>
7779int
7780main ()
7781{
7782time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7783  ;
7784  return 0;
7785}
7786_ACEOF
7787if ac_fn_c_try_link "$LINENO"; then :
7788  eval "$as_CACHEVAR=yes"
7789else
7790  eval "$as_CACHEVAR=no"
7791fi
7792rm -f core conftest.err conftest.$ac_objext \
7793    conftest$ac_exeext conftest.$ac_ext
7794  CFLAGS=$ax_check_save_flags
7795fi
7796eval ac_res=\$$as_CACHEVAR
7797	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7798$as_echo "$ac_res" >&6; }
7799if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7800  CWFLAGS="$CWFLAGS -Wcast-qual"
7801else
7802  :
7803fi
7804
7805as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wdiv-by-zero" | $as_tr_sh`
7806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wdiv-by-zero" >&5
7807$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wdiv-by-zero... " >&6; }
7808if eval \${$as_CACHEVAR+:} false; then :
7809  $as_echo_n "(cached) " >&6
7810else
7811
7812  ax_check_save_flags=$CFLAGS
7813  CFLAGS="$CFLAGS  $CWFLAGS -Wdiv-by-zero"
7814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815/* end confdefs.h.  */
7816#include <time.h>
7817int
7818main ()
7819{
7820time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7821  ;
7822  return 0;
7823}
7824_ACEOF
7825if ac_fn_c_try_link "$LINENO"; then :
7826  eval "$as_CACHEVAR=yes"
7827else
7828  eval "$as_CACHEVAR=no"
7829fi
7830rm -f core conftest.err conftest.$ac_objext \
7831    conftest$ac_exeext conftest.$ac_ext
7832  CFLAGS=$ax_check_save_flags
7833fi
7834eval ac_res=\$$as_CACHEVAR
7835	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7836$as_echo "$ac_res" >&6; }
7837if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7838  CWFLAGS="$CWFLAGS -Wdiv-by-zero"
7839else
7840  :
7841fi
7842
7843as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wduplicated-branches" | $as_tr_sh`
7844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wduplicated-branches" >&5
7845$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wduplicated-branches... " >&6; }
7846if eval \${$as_CACHEVAR+:} false; then :
7847  $as_echo_n "(cached) " >&6
7848else
7849
7850  ax_check_save_flags=$CFLAGS
7851  CFLAGS="$CFLAGS  $CWFLAGS -Wduplicated-branches"
7852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853/* end confdefs.h.  */
7854#include <time.h>
7855int
7856main ()
7857{
7858time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7859  ;
7860  return 0;
7861}
7862_ACEOF
7863if ac_fn_c_try_link "$LINENO"; then :
7864  eval "$as_CACHEVAR=yes"
7865else
7866  eval "$as_CACHEVAR=no"
7867fi
7868rm -f core conftest.err conftest.$ac_objext \
7869    conftest$ac_exeext conftest.$ac_ext
7870  CFLAGS=$ax_check_save_flags
7871fi
7872eval ac_res=\$$as_CACHEVAR
7873	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7874$as_echo "$ac_res" >&6; }
7875if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7876  CWFLAGS="$CWFLAGS -Wduplicated-branches"
7877else
7878  :
7879fi
7880
7881as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wduplicated-cond" | $as_tr_sh`
7882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wduplicated-cond" >&5
7883$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wduplicated-cond... " >&6; }
7884if eval \${$as_CACHEVAR+:} false; then :
7885  $as_echo_n "(cached) " >&6
7886else
7887
7888  ax_check_save_flags=$CFLAGS
7889  CFLAGS="$CFLAGS  $CWFLAGS -Wduplicated-cond"
7890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7891/* end confdefs.h.  */
7892#include <time.h>
7893int
7894main ()
7895{
7896time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7897  ;
7898  return 0;
7899}
7900_ACEOF
7901if ac_fn_c_try_link "$LINENO"; then :
7902  eval "$as_CACHEVAR=yes"
7903else
7904  eval "$as_CACHEVAR=no"
7905fi
7906rm -f core conftest.err conftest.$ac_objext \
7907    conftest$ac_exeext conftest.$ac_ext
7908  CFLAGS=$ax_check_save_flags
7909fi
7910eval ac_res=\$$as_CACHEVAR
7911	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7912$as_echo "$ac_res" >&6; }
7913if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7914  CWFLAGS="$CWFLAGS -Wduplicated-cond"
7915else
7916  :
7917fi
7918
7919as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wfloat-equal" | $as_tr_sh`
7920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wfloat-equal" >&5
7921$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wfloat-equal... " >&6; }
7922if eval \${$as_CACHEVAR+:} false; then :
7923  $as_echo_n "(cached) " >&6
7924else
7925
7926  ax_check_save_flags=$CFLAGS
7927  CFLAGS="$CFLAGS  $CWFLAGS -Wfloat-equal"
7928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929/* end confdefs.h.  */
7930#include <time.h>
7931int
7932main ()
7933{
7934time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7935  ;
7936  return 0;
7937}
7938_ACEOF
7939if ac_fn_c_try_link "$LINENO"; then :
7940  eval "$as_CACHEVAR=yes"
7941else
7942  eval "$as_CACHEVAR=no"
7943fi
7944rm -f core conftest.err conftest.$ac_objext \
7945    conftest$ac_exeext conftest.$ac_ext
7946  CFLAGS=$ax_check_save_flags
7947fi
7948eval ac_res=\$$as_CACHEVAR
7949	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7950$as_echo "$ac_res" >&6; }
7951if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7952  CWFLAGS="$CWFLAGS -Wfloat-equal"
7953else
7954  :
7955fi
7956
7957as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wformat=2" | $as_tr_sh`
7958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wformat=2" >&5
7959$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wformat=2... " >&6; }
7960if eval \${$as_CACHEVAR+:} false; then :
7961  $as_echo_n "(cached) " >&6
7962else
7963
7964  ax_check_save_flags=$CFLAGS
7965  CFLAGS="$CFLAGS  $CWFLAGS -Wformat=2"
7966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7967/* end confdefs.h.  */
7968#include <time.h>
7969int
7970main ()
7971{
7972time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7973  ;
7974  return 0;
7975}
7976_ACEOF
7977if ac_fn_c_try_link "$LINENO"; then :
7978  eval "$as_CACHEVAR=yes"
7979else
7980  eval "$as_CACHEVAR=no"
7981fi
7982rm -f core conftest.err conftest.$ac_objext \
7983    conftest$ac_exeext conftest.$ac_ext
7984  CFLAGS=$ax_check_save_flags
7985fi
7986eval ac_res=\$$as_CACHEVAR
7987	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7988$as_echo "$ac_res" >&6; }
7989if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7990  CWFLAGS="$CWFLAGS -Wformat=2"
7991else
7992  :
7993fi
7994
7995as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wlogical-op" | $as_tr_sh`
7996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wlogical-op" >&5
7997$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wlogical-op... " >&6; }
7998if eval \${$as_CACHEVAR+:} false; then :
7999  $as_echo_n "(cached) " >&6
8000else
8001
8002  ax_check_save_flags=$CFLAGS
8003  CFLAGS="$CFLAGS  $CWFLAGS -Wlogical-op"
8004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005/* end confdefs.h.  */
8006#include <time.h>
8007int
8008main ()
8009{
8010time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8011  ;
8012  return 0;
8013}
8014_ACEOF
8015if ac_fn_c_try_link "$LINENO"; then :
8016  eval "$as_CACHEVAR=yes"
8017else
8018  eval "$as_CACHEVAR=no"
8019fi
8020rm -f core conftest.err conftest.$ac_objext \
8021    conftest$ac_exeext conftest.$ac_ext
8022  CFLAGS=$ax_check_save_flags
8023fi
8024eval ac_res=\$$as_CACHEVAR
8025	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8026$as_echo "$ac_res" >&6; }
8027if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8028  CWFLAGS="$CWFLAGS -Wlogical-op"
8029else
8030  :
8031fi
8032
8033as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wmaybe-uninitialized" | $as_tr_sh`
8034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmaybe-uninitialized" >&5
8035$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wmaybe-uninitialized... " >&6; }
8036if eval \${$as_CACHEVAR+:} false; then :
8037  $as_echo_n "(cached) " >&6
8038else
8039
8040  ax_check_save_flags=$CFLAGS
8041  CFLAGS="$CFLAGS  $CWFLAGS -Wmaybe-uninitialized"
8042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043/* end confdefs.h.  */
8044#include <time.h>
8045int
8046main ()
8047{
8048time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8049  ;
8050  return 0;
8051}
8052_ACEOF
8053if ac_fn_c_try_link "$LINENO"; then :
8054  eval "$as_CACHEVAR=yes"
8055else
8056  eval "$as_CACHEVAR=no"
8057fi
8058rm -f core conftest.err conftest.$ac_objext \
8059    conftest$ac_exeext conftest.$ac_ext
8060  CFLAGS=$ax_check_save_flags
8061fi
8062eval ac_res=\$$as_CACHEVAR
8063	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8064$as_echo "$ac_res" >&6; }
8065if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8066  CWFLAGS="$CWFLAGS -Wmaybe-uninitialized"
8067else
8068  :
8069fi
8070
8071as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wmisleading-indentation" | $as_tr_sh`
8072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmisleading-indentation" >&5
8073$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wmisleading-indentation... " >&6; }
8074if eval \${$as_CACHEVAR+:} false; then :
8075  $as_echo_n "(cached) " >&6
8076else
8077
8078  ax_check_save_flags=$CFLAGS
8079  CFLAGS="$CFLAGS  $CWFLAGS -Wmisleading-indentation"
8080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8081/* end confdefs.h.  */
8082#include <time.h>
8083int
8084main ()
8085{
8086time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8087  ;
8088  return 0;
8089}
8090_ACEOF
8091if ac_fn_c_try_link "$LINENO"; then :
8092  eval "$as_CACHEVAR=yes"
8093else
8094  eval "$as_CACHEVAR=no"
8095fi
8096rm -f core conftest.err conftest.$ac_objext \
8097    conftest$ac_exeext conftest.$ac_ext
8098  CFLAGS=$ax_check_save_flags
8099fi
8100eval ac_res=\$$as_CACHEVAR
8101	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8102$as_echo "$ac_res" >&6; }
8103if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8104  CWFLAGS="$CWFLAGS -Wmisleading-indentation"
8105else
8106  :
8107fi
8108
8109as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wmissing-declarations" | $as_tr_sh`
8110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmissing-declarations" >&5
8111$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wmissing-declarations... " >&6; }
8112if eval \${$as_CACHEVAR+:} false; then :
8113  $as_echo_n "(cached) " >&6
8114else
8115
8116  ax_check_save_flags=$CFLAGS
8117  CFLAGS="$CFLAGS  $CWFLAGS -Wmissing-declarations"
8118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119/* end confdefs.h.  */
8120#include <time.h>
8121int
8122main ()
8123{
8124time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8125  ;
8126  return 0;
8127}
8128_ACEOF
8129if ac_fn_c_try_link "$LINENO"; then :
8130  eval "$as_CACHEVAR=yes"
8131else
8132  eval "$as_CACHEVAR=no"
8133fi
8134rm -f core conftest.err conftest.$ac_objext \
8135    conftest$ac_exeext conftest.$ac_ext
8136  CFLAGS=$ax_check_save_flags
8137fi
8138eval ac_res=\$$as_CACHEVAR
8139	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8140$as_echo "$ac_res" >&6; }
8141if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8142  CWFLAGS="$CWFLAGS -Wmissing-declarations"
8143else
8144  :
8145fi
8146
8147as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wmissing-prototypes" | $as_tr_sh`
8148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmissing-prototypes" >&5
8149$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wmissing-prototypes... " >&6; }
8150if eval \${$as_CACHEVAR+:} false; then :
8151  $as_echo_n "(cached) " >&6
8152else
8153
8154  ax_check_save_flags=$CFLAGS
8155  CFLAGS="$CFLAGS  $CWFLAGS -Wmissing-prototypes"
8156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8157/* end confdefs.h.  */
8158#include <time.h>
8159int
8160main ()
8161{
8162time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8163  ;
8164  return 0;
8165}
8166_ACEOF
8167if ac_fn_c_try_link "$LINENO"; then :
8168  eval "$as_CACHEVAR=yes"
8169else
8170  eval "$as_CACHEVAR=no"
8171fi
8172rm -f core conftest.err conftest.$ac_objext \
8173    conftest$ac_exeext conftest.$ac_ext
8174  CFLAGS=$ax_check_save_flags
8175fi
8176eval ac_res=\$$as_CACHEVAR
8177	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8178$as_echo "$ac_res" >&6; }
8179if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8180  CWFLAGS="$CWFLAGS -Wmissing-prototypes"
8181else
8182  :
8183fi
8184
8185as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wnested-externs" | $as_tr_sh`
8186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wnested-externs" >&5
8187$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wnested-externs... " >&6; }
8188if eval \${$as_CACHEVAR+:} false; then :
8189  $as_echo_n "(cached) " >&6
8190else
8191
8192  ax_check_save_flags=$CFLAGS
8193  CFLAGS="$CFLAGS  $CWFLAGS -Wnested-externs"
8194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8195/* end confdefs.h.  */
8196#include <time.h>
8197int
8198main ()
8199{
8200time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8201  ;
8202  return 0;
8203}
8204_ACEOF
8205if ac_fn_c_try_link "$LINENO"; then :
8206  eval "$as_CACHEVAR=yes"
8207else
8208  eval "$as_CACHEVAR=no"
8209fi
8210rm -f core conftest.err conftest.$ac_objext \
8211    conftest$ac_exeext conftest.$ac_ext
8212  CFLAGS=$ax_check_save_flags
8213fi
8214eval ac_res=\$$as_CACHEVAR
8215	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8216$as_echo "$ac_res" >&6; }
8217if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8218  CWFLAGS="$CWFLAGS -Wnested-externs"
8219else
8220  :
8221fi
8222
8223as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wno-type-limits" | $as_tr_sh`
8224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wno-type-limits" >&5
8225$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wno-type-limits... " >&6; }
8226if eval \${$as_CACHEVAR+:} false; then :
8227  $as_echo_n "(cached) " >&6
8228else
8229
8230  ax_check_save_flags=$CFLAGS
8231  CFLAGS="$CFLAGS  $CWFLAGS -Wno-type-limits"
8232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233/* end confdefs.h.  */
8234#include <time.h>
8235int
8236main ()
8237{
8238time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8239  ;
8240  return 0;
8241}
8242_ACEOF
8243if ac_fn_c_try_link "$LINENO"; then :
8244  eval "$as_CACHEVAR=yes"
8245else
8246  eval "$as_CACHEVAR=no"
8247fi
8248rm -f core conftest.err conftest.$ac_objext \
8249    conftest$ac_exeext conftest.$ac_ext
8250  CFLAGS=$ax_check_save_flags
8251fi
8252eval ac_res=\$$as_CACHEVAR
8253	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8254$as_echo "$ac_res" >&6; }
8255if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8256  CWFLAGS="$CWFLAGS -Wno-type-limits"
8257else
8258  :
8259fi
8260
8261as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wno-unknown-pragmas" | $as_tr_sh`
8262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wno-unknown-pragmas" >&5
8263$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wno-unknown-pragmas... " >&6; }
8264if eval \${$as_CACHEVAR+:} false; then :
8265  $as_echo_n "(cached) " >&6
8266else
8267
8268  ax_check_save_flags=$CFLAGS
8269  CFLAGS="$CFLAGS  $CWFLAGS -Wno-unknown-pragmas"
8270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271/* end confdefs.h.  */
8272#include <time.h>
8273int
8274main ()
8275{
8276time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8277  ;
8278  return 0;
8279}
8280_ACEOF
8281if ac_fn_c_try_link "$LINENO"; then :
8282  eval "$as_CACHEVAR=yes"
8283else
8284  eval "$as_CACHEVAR=no"
8285fi
8286rm -f core conftest.err conftest.$ac_objext \
8287    conftest$ac_exeext conftest.$ac_ext
8288  CFLAGS=$ax_check_save_flags
8289fi
8290eval ac_res=\$$as_CACHEVAR
8291	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8292$as_echo "$ac_res" >&6; }
8293if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8294  CWFLAGS="$CWFLAGS -Wno-unknown-pragmas"
8295else
8296  :
8297fi
8298
8299as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wnormalized=id" | $as_tr_sh`
8300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wnormalized=id" >&5
8301$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wnormalized=id... " >&6; }
8302if eval \${$as_CACHEVAR+:} false; then :
8303  $as_echo_n "(cached) " >&6
8304else
8305
8306  ax_check_save_flags=$CFLAGS
8307  CFLAGS="$CFLAGS  $CWFLAGS -Wnormalized=id"
8308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8309/* end confdefs.h.  */
8310#include <time.h>
8311int
8312main ()
8313{
8314time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8315  ;
8316  return 0;
8317}
8318_ACEOF
8319if ac_fn_c_try_link "$LINENO"; then :
8320  eval "$as_CACHEVAR=yes"
8321else
8322  eval "$as_CACHEVAR=no"
8323fi
8324rm -f core conftest.err conftest.$ac_objext \
8325    conftest$ac_exeext conftest.$ac_ext
8326  CFLAGS=$ax_check_save_flags
8327fi
8328eval ac_res=\$$as_CACHEVAR
8329	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8330$as_echo "$ac_res" >&6; }
8331if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8332  CWFLAGS="$CWFLAGS -Wnormalized=id"
8333else
8334  :
8335fi
8336
8337as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wnull-dereference" | $as_tr_sh`
8338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wnull-dereference" >&5
8339$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wnull-dereference... " >&6; }
8340if eval \${$as_CACHEVAR+:} false; then :
8341  $as_echo_n "(cached) " >&6
8342else
8343
8344  ax_check_save_flags=$CFLAGS
8345  CFLAGS="$CFLAGS  $CWFLAGS -Wnull-dereference"
8346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347/* end confdefs.h.  */
8348#include <time.h>
8349int
8350main ()
8351{
8352time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8353  ;
8354  return 0;
8355}
8356_ACEOF
8357if ac_fn_c_try_link "$LINENO"; then :
8358  eval "$as_CACHEVAR=yes"
8359else
8360  eval "$as_CACHEVAR=no"
8361fi
8362rm -f core conftest.err conftest.$ac_objext \
8363    conftest$ac_exeext conftest.$ac_ext
8364  CFLAGS=$ax_check_save_flags
8365fi
8366eval ac_res=\$$as_CACHEVAR
8367	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8368$as_echo "$ac_res" >&6; }
8369if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8370  CWFLAGS="$CWFLAGS -Wnull-dereference"
8371else
8372  :
8373fi
8374
8375as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wold-style-declaration" | $as_tr_sh`
8376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wold-style-declaration" >&5
8377$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wold-style-declaration... " >&6; }
8378if eval \${$as_CACHEVAR+:} false; then :
8379  $as_echo_n "(cached) " >&6
8380else
8381
8382  ax_check_save_flags=$CFLAGS
8383  CFLAGS="$CFLAGS  $CWFLAGS -Wold-style-declaration"
8384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8385/* end confdefs.h.  */
8386#include <time.h>
8387int
8388main ()
8389{
8390time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8391  ;
8392  return 0;
8393}
8394_ACEOF
8395if ac_fn_c_try_link "$LINENO"; then :
8396  eval "$as_CACHEVAR=yes"
8397else
8398  eval "$as_CACHEVAR=no"
8399fi
8400rm -f core conftest.err conftest.$ac_objext \
8401    conftest$ac_exeext conftest.$ac_ext
8402  CFLAGS=$ax_check_save_flags
8403fi
8404eval ac_res=\$$as_CACHEVAR
8405	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8406$as_echo "$ac_res" >&6; }
8407if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8408  CWFLAGS="$CWFLAGS -Wold-style-declaration"
8409else
8410  :
8411fi
8412
8413as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wpointer-arith" | $as_tr_sh`
8414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wpointer-arith" >&5
8415$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wpointer-arith... " >&6; }
8416if eval \${$as_CACHEVAR+:} false; then :
8417  $as_echo_n "(cached) " >&6
8418else
8419
8420  ax_check_save_flags=$CFLAGS
8421  CFLAGS="$CFLAGS  $CWFLAGS -Wpointer-arith"
8422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8423/* end confdefs.h.  */
8424#include <time.h>
8425int
8426main ()
8427{
8428time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8429  ;
8430  return 0;
8431}
8432_ACEOF
8433if ac_fn_c_try_link "$LINENO"; then :
8434  eval "$as_CACHEVAR=yes"
8435else
8436  eval "$as_CACHEVAR=no"
8437fi
8438rm -f core conftest.err conftest.$ac_objext \
8439    conftest$ac_exeext conftest.$ac_ext
8440  CFLAGS=$ax_check_save_flags
8441fi
8442eval ac_res=\$$as_CACHEVAR
8443	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8444$as_echo "$ac_res" >&6; }
8445if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8446  CWFLAGS="$CWFLAGS -Wpointer-arith"
8447else
8448  :
8449fi
8450
8451as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wredundant-decls" | $as_tr_sh`
8452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wredundant-decls" >&5
8453$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wredundant-decls... " >&6; }
8454if eval \${$as_CACHEVAR+:} false; then :
8455  $as_echo_n "(cached) " >&6
8456else
8457
8458  ax_check_save_flags=$CFLAGS
8459  CFLAGS="$CFLAGS  $CWFLAGS -Wredundant-decls"
8460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461/* end confdefs.h.  */
8462#include <time.h>
8463int
8464main ()
8465{
8466time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8467  ;
8468  return 0;
8469}
8470_ACEOF
8471if ac_fn_c_try_link "$LINENO"; then :
8472  eval "$as_CACHEVAR=yes"
8473else
8474  eval "$as_CACHEVAR=no"
8475fi
8476rm -f core conftest.err conftest.$ac_objext \
8477    conftest$ac_exeext conftest.$ac_ext
8478  CFLAGS=$ax_check_save_flags
8479fi
8480eval ac_res=\$$as_CACHEVAR
8481	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8482$as_echo "$ac_res" >&6; }
8483if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8484  CWFLAGS="$CWFLAGS -Wredundant-decls"
8485else
8486  :
8487fi
8488
8489as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wrestrict" | $as_tr_sh`
8490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wrestrict" >&5
8491$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wrestrict... " >&6; }
8492if eval \${$as_CACHEVAR+:} false; then :
8493  $as_echo_n "(cached) " >&6
8494else
8495
8496  ax_check_save_flags=$CFLAGS
8497  CFLAGS="$CFLAGS  $CWFLAGS -Wrestrict"
8498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499/* end confdefs.h.  */
8500#include <time.h>
8501int
8502main ()
8503{
8504time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8505  ;
8506  return 0;
8507}
8508_ACEOF
8509if ac_fn_c_try_link "$LINENO"; then :
8510  eval "$as_CACHEVAR=yes"
8511else
8512  eval "$as_CACHEVAR=no"
8513fi
8514rm -f core conftest.err conftest.$ac_objext \
8515    conftest$ac_exeext conftest.$ac_ext
8516  CFLAGS=$ax_check_save_flags
8517fi
8518eval ac_res=\$$as_CACHEVAR
8519	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8520$as_echo "$ac_res" >&6; }
8521if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8522  CWFLAGS="$CWFLAGS -Wrestrict"
8523else
8524  :
8525fi
8526
8527as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wshorten-64-to-32" | $as_tr_sh`
8528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wshorten-64-to-32" >&5
8529$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wshorten-64-to-32... " >&6; }
8530if eval \${$as_CACHEVAR+:} false; then :
8531  $as_echo_n "(cached) " >&6
8532else
8533
8534  ax_check_save_flags=$CFLAGS
8535  CFLAGS="$CFLAGS  $CWFLAGS -Wshorten-64-to-32"
8536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8537/* end confdefs.h.  */
8538#include <time.h>
8539int
8540main ()
8541{
8542time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8543  ;
8544  return 0;
8545}
8546_ACEOF
8547if ac_fn_c_try_link "$LINENO"; then :
8548  eval "$as_CACHEVAR=yes"
8549else
8550  eval "$as_CACHEVAR=no"
8551fi
8552rm -f core conftest.err conftest.$ac_objext \
8553    conftest$ac_exeext conftest.$ac_ext
8554  CFLAGS=$ax_check_save_flags
8555fi
8556eval ac_res=\$$as_CACHEVAR
8557	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8558$as_echo "$ac_res" >&6; }
8559if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8560  CWFLAGS="$CWFLAGS -Wshorten-64-to-32"
8561else
8562  :
8563fi
8564
8565as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wsometimes-uninitialized" | $as_tr_sh`
8566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wsometimes-uninitialized" >&5
8567$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wsometimes-uninitialized... " >&6; }
8568if eval \${$as_CACHEVAR+:} false; then :
8569  $as_echo_n "(cached) " >&6
8570else
8571
8572  ax_check_save_flags=$CFLAGS
8573  CFLAGS="$CFLAGS  $CWFLAGS -Wsometimes-uninitialized"
8574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575/* end confdefs.h.  */
8576#include <time.h>
8577int
8578main ()
8579{
8580time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8581  ;
8582  return 0;
8583}
8584_ACEOF
8585if ac_fn_c_try_link "$LINENO"; then :
8586  eval "$as_CACHEVAR=yes"
8587else
8588  eval "$as_CACHEVAR=no"
8589fi
8590rm -f core conftest.err conftest.$ac_objext \
8591    conftest$ac_exeext conftest.$ac_ext
8592  CFLAGS=$ax_check_save_flags
8593fi
8594eval ac_res=\$$as_CACHEVAR
8595	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8596$as_echo "$ac_res" >&6; }
8597if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8598  CWFLAGS="$CWFLAGS -Wsometimes-uninitialized"
8599else
8600  :
8601fi
8602
8603as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wstrict-prototypes" | $as_tr_sh`
8604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wstrict-prototypes" >&5
8605$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wstrict-prototypes... " >&6; }
8606if eval \${$as_CACHEVAR+:} false; then :
8607  $as_echo_n "(cached) " >&6
8608else
8609
8610  ax_check_save_flags=$CFLAGS
8611  CFLAGS="$CFLAGS  $CWFLAGS -Wstrict-prototypes"
8612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613/* end confdefs.h.  */
8614#include <time.h>
8615int
8616main ()
8617{
8618time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8619  ;
8620  return 0;
8621}
8622_ACEOF
8623if ac_fn_c_try_link "$LINENO"; then :
8624  eval "$as_CACHEVAR=yes"
8625else
8626  eval "$as_CACHEVAR=no"
8627fi
8628rm -f core conftest.err conftest.$ac_objext \
8629    conftest$ac_exeext conftest.$ac_ext
8630  CFLAGS=$ax_check_save_flags
8631fi
8632eval ac_res=\$$as_CACHEVAR
8633	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8634$as_echo "$ac_res" >&6; }
8635if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8636  CWFLAGS="$CWFLAGS -Wstrict-prototypes"
8637else
8638  :
8639fi
8640
8641as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wswitch-enum" | $as_tr_sh`
8642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wswitch-enum" >&5
8643$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wswitch-enum... " >&6; }
8644if eval \${$as_CACHEVAR+:} false; then :
8645  $as_echo_n "(cached) " >&6
8646else
8647
8648  ax_check_save_flags=$CFLAGS
8649  CFLAGS="$CFLAGS  $CWFLAGS -Wswitch-enum"
8650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8651/* end confdefs.h.  */
8652#include <time.h>
8653int
8654main ()
8655{
8656time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8657  ;
8658  return 0;
8659}
8660_ACEOF
8661if ac_fn_c_try_link "$LINENO"; then :
8662  eval "$as_CACHEVAR=yes"
8663else
8664  eval "$as_CACHEVAR=no"
8665fi
8666rm -f core conftest.err conftest.$ac_objext \
8667    conftest$ac_exeext conftest.$ac_ext
8668  CFLAGS=$ax_check_save_flags
8669fi
8670eval ac_res=\$$as_CACHEVAR
8671	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8672$as_echo "$ac_res" >&6; }
8673if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8674  CWFLAGS="$CWFLAGS -Wswitch-enum"
8675else
8676  :
8677fi
8678
8679as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wvariable-decl" | $as_tr_sh`
8680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wvariable-decl" >&5
8681$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wvariable-decl... " >&6; }
8682if eval \${$as_CACHEVAR+:} false; then :
8683  $as_echo_n "(cached) " >&6
8684else
8685
8686  ax_check_save_flags=$CFLAGS
8687  CFLAGS="$CFLAGS  $CWFLAGS -Wvariable-decl"
8688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689/* end confdefs.h.  */
8690#include <time.h>
8691int
8692main ()
8693{
8694time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8695  ;
8696  return 0;
8697}
8698_ACEOF
8699if ac_fn_c_try_link "$LINENO"; then :
8700  eval "$as_CACHEVAR=yes"
8701else
8702  eval "$as_CACHEVAR=no"
8703fi
8704rm -f core conftest.err conftest.$ac_objext \
8705    conftest$ac_exeext conftest.$ac_ext
8706  CFLAGS=$ax_check_save_flags
8707fi
8708eval ac_res=\$$as_CACHEVAR
8709	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8710$as_echo "$ac_res" >&6; }
8711if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8712  CWFLAGS="$CWFLAGS -Wvariable-decl"
8713else
8714  :
8715fi
8716
8717as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wwrite-strings" | $as_tr_sh`
8718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wwrite-strings" >&5
8719$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wwrite-strings... " >&6; }
8720if eval \${$as_CACHEVAR+:} false; then :
8721  $as_echo_n "(cached) " >&6
8722else
8723
8724  ax_check_save_flags=$CFLAGS
8725  CFLAGS="$CFLAGS  $CWFLAGS -Wwrite-strings"
8726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727/* end confdefs.h.  */
8728#include <time.h>
8729int
8730main ()
8731{
8732time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8733  ;
8734  return 0;
8735}
8736_ACEOF
8737if ac_fn_c_try_link "$LINENO"; then :
8738  eval "$as_CACHEVAR=yes"
8739else
8740  eval "$as_CACHEVAR=no"
8741fi
8742rm -f core conftest.err conftest.$ac_objext \
8743    conftest$ac_exeext conftest.$ac_ext
8744  CFLAGS=$ax_check_save_flags
8745fi
8746eval ac_res=\$$as_CACHEVAR
8747	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8748$as_echo "$ac_res" >&6; }
8749if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8750  CWFLAGS="$CWFLAGS -Wwrite-strings"
8751else
8752  :
8753fi
8754
8755
8756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
8757$as_echo_n "checking whether the linker accepts -Wl,-z,relro... " >&6; }
8758if ${ax_cv_check_ldflags___Wl__z_relro+:} false; then :
8759  $as_echo_n "(cached) " >&6
8760else
8761
8762  ax_check_save_flags=$LDFLAGS
8763  LDFLAGS="$LDFLAGS  -Wl,-z,relro"
8764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8765/* end confdefs.h.  */
8766#include <time.h>
8767int
8768main ()
8769{
8770time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8771  ;
8772  return 0;
8773}
8774_ACEOF
8775if ac_fn_c_try_link "$LINENO"; then :
8776  ax_cv_check_ldflags___Wl__z_relro=yes
8777else
8778  ax_cv_check_ldflags___Wl__z_relro=no
8779fi
8780rm -f core conftest.err conftest.$ac_objext \
8781    conftest$ac_exeext conftest.$ac_ext
8782  LDFLAGS=$ax_check_save_flags
8783fi
8784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_relro" >&5
8785$as_echo "$ax_cv_check_ldflags___Wl__z_relro" >&6; }
8786if test "x$ax_cv_check_ldflags___Wl__z_relro" = xyes; then :
8787  LDFLAGS="$LDFLAGS -Wl,-z,relro"
8788else
8789  :
8790fi
8791
8792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,now" >&5
8793$as_echo_n "checking whether the linker accepts -Wl,-z,now... " >&6; }
8794if ${ax_cv_check_ldflags___Wl__z_now+:} false; then :
8795  $as_echo_n "(cached) " >&6
8796else
8797
8798  ax_check_save_flags=$LDFLAGS
8799  LDFLAGS="$LDFLAGS  -Wl,-z,now"
8800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8801/* end confdefs.h.  */
8802#include <time.h>
8803int
8804main ()
8805{
8806time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8807  ;
8808  return 0;
8809}
8810_ACEOF
8811if ac_fn_c_try_link "$LINENO"; then :
8812  ax_cv_check_ldflags___Wl__z_now=yes
8813else
8814  ax_cv_check_ldflags___Wl__z_now=no
8815fi
8816rm -f core conftest.err conftest.$ac_objext \
8817    conftest$ac_exeext conftest.$ac_ext
8818  LDFLAGS=$ax_check_save_flags
8819fi
8820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_now" >&5
8821$as_echo "$ax_cv_check_ldflags___Wl__z_now" >&6; }
8822if test "x$ax_cv_check_ldflags___Wl__z_now" = xyes; then :
8823  LDFLAGS="$LDFLAGS -Wl,-z,now"
8824else
8825  :
8826fi
8827
8828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,noexecstack" >&5
8829$as_echo_n "checking whether the linker accepts -Wl,-z,noexecstack... " >&6; }
8830if ${ax_cv_check_ldflags___Wl__z_noexecstack+:} false; then :
8831  $as_echo_n "(cached) " >&6
8832else
8833
8834  ax_check_save_flags=$LDFLAGS
8835  LDFLAGS="$LDFLAGS  -Wl,-z,noexecstack"
8836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837/* end confdefs.h.  */
8838#include <time.h>
8839int
8840main ()
8841{
8842time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8843  ;
8844  return 0;
8845}
8846_ACEOF
8847if ac_fn_c_try_link "$LINENO"; then :
8848  ax_cv_check_ldflags___Wl__z_noexecstack=yes
8849else
8850  ax_cv_check_ldflags___Wl__z_noexecstack=no
8851fi
8852rm -f core conftest.err conftest.$ac_objext \
8853    conftest$ac_exeext conftest.$ac_ext
8854  LDFLAGS=$ax_check_save_flags
8855fi
8856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_noexecstack" >&5
8857$as_echo "$ax_cv_check_ldflags___Wl__z_noexecstack" >&6; }
8858if test "x$ax_cv_check_ldflags___Wl__z_noexecstack" = xyes; then :
8859  LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
8860else
8861  :
8862fi
8863
8864
8865
8866        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether segmentation violations can be caught when using the C compiler" >&5
8867$as_echo_n "checking whether segmentation violations can be caught when using the C compiler... " >&6; }
8868if ${ax_cv_check_cCATCHABLE_SEGV+:} false; then :
8869  $as_echo_n "(cached) " >&6
8870else
8871
8872        if test "$cross_compiling" = yes; then :
8873  ax_cv_check_cCATCHABLE_SEGV=unknown
8874
8875else
8876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8877/* end confdefs.h.  */
8878
8879
8880#include <signal.h>
8881#include <stdlib.h>
8882static void sig(int _) { exit(0); }
8883
8884int
8885main ()
8886{
8887
8888volatile unsigned char * volatile x = (volatile unsigned char *) malloc(8);
8889size_t i;
8890
8891signal(SIGSEGV, sig);
8892signal(SIGBUS, sig);
8893#if !defined(__SANITIZE_ADDRESS__) && !defined(__EMSCRIPTEN__)
8894for (i = 0; i < 10000000; i += 1024) { x[-i] = x[i] = (unsigned char) i; }
8895#endif
8896free((void *) x);
8897exit(1)
8898
8899  ;
8900  return 0;
8901}
8902_ACEOF
8903if ac_fn_c_try_run "$LINENO"; then :
8904  ax_cv_check_cCATCHABLE_SEGV=yes
8905else
8906  ax_cv_check_cCATCHABLE_SEGV=no
8907fi
8908rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8909  conftest.$ac_objext conftest.beam conftest.$ac_ext
8910fi
8911
8912
8913fi
8914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cCATCHABLE_SEGV" >&5
8915$as_echo "$ax_cv_check_cCATCHABLE_SEGV" >&6; }
8916    if test "x$ax_cv_check_cCATCHABLE_SEGV" = xyes; then :
8917
8918$as_echo "#define HAVE_CATCHABLE_SEGV 1" >>confdefs.h
8919
8920else
8921  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On this platform, segmentation violations cannot be caught using signal handlers. This is expected if you enabled a tool such as Address Sanitizer (-fsanitize=address), but be aware that using Address Sanitizer may also significantly reduce performance." >&5
8922$as_echo "$as_me: WARNING: On this platform, segmentation violations cannot be caught using signal handlers. This is expected if you enabled a tool such as Address Sanitizer (-fsanitize=address), but be aware that using Address Sanitizer may also significantly reduce performance." >&2;}
8923
8924fi
8925
8926
8927        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SIGABRT can be caught when using the C compiler" >&5
8928$as_echo_n "checking whether SIGABRT can be caught when using the C compiler... " >&6; }
8929if ${ax_cv_check_cCATCHABLE_ABRT+:} false; then :
8930  $as_echo_n "(cached) " >&6
8931else
8932
8933        if test "$cross_compiling" = yes; then :
8934  ax_cv_check_cCATCHABLE_ABRT=unknown
8935
8936else
8937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8938/* end confdefs.h.  */
8939
8940
8941#include <signal.h>
8942#include <stdlib.h>
8943
8944#ifndef SIGABRT
8945# error SIGABRT is not defined
8946#endif
8947
8948static void sigabrt_handler_3(int _)
8949{
8950    exit(0);
8951}
8952
8953static void sigabrt_handler_2(int _)
8954{
8955    signal(SIGABRT, sigabrt_handler_3);
8956    abort();
8957    exit(1);
8958}
8959
8960static void sigabrt_handler_1(int _)
8961{
8962    signal(SIGABRT, sigabrt_handler_2);
8963    abort();
8964    exit(1);
8965}
8966
8967int
8968main ()
8969{
8970
8971signal(SIGABRT, sigabrt_handler_1);
8972abort();
8973exit(1);
8974
8975  ;
8976  return 0;
8977}
8978_ACEOF
8979if ac_fn_c_try_run "$LINENO"; then :
8980  ax_cv_check_cCATCHABLE_ABRT=yes
8981else
8982  ax_cv_check_cCATCHABLE_ABRT=no
8983fi
8984rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8985  conftest.$ac_objext conftest.beam conftest.$ac_ext
8986fi
8987
8988
8989fi
8990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cCATCHABLE_ABRT" >&5
8991$as_echo "$ax_cv_check_cCATCHABLE_ABRT" >&6; }
8992    if test "x$ax_cv_check_cCATCHABLE_ABRT" = xyes; then :
8993
8994$as_echo "#define HAVE_CATCHABLE_ABRT 1" >>confdefs.h
8995
8996else
8997  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On this platform, SIGABRT cannot be caught using signal handlers." >&5
8998$as_echo "$as_me: WARNING: On this platform, SIGABRT cannot be caught using signal handlers." >&2;}
8999
9000fi
9001
9002
9003if test "x$with_threads" = "xyes"; then :
9004
9005
9006  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
9007$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
9008  if ${ac_cv_tls+:} false; then :
9009  $as_echo_n "(cached) " >&6
9010else
9011  for ax_tls_keyword in thread_local _Thread_local __thread '__declspec(thread)' none; do
9012       case $ax_tls_keyword in #(
9013  none) :
9014    ac_cv_tls=none ; break ;; #(
9015  *) :
9016    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9017/* end confdefs.h.  */
9018#include <stdlib.h>
9019               static void
9020               foo(void) {
9021               static  $ax_tls_keyword  int bar;
9022               exit(1);
9023               }
9024int
9025main ()
9026{
9027
9028  ;
9029  return 0;
9030}
9031_ACEOF
9032if ac_fn_c_try_compile "$LINENO"; then :
9033  ac_cv_tls=$ax_tls_keyword ; break
9034else
9035  ac_cv_tls=none
9036
9037fi
9038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;;
9039esac
9040    done
9041
9042fi
9043
9044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
9045$as_echo "$ac_cv_tls" >&6; }
9046
9047  if test "$ac_cv_tls" != "none"; then :
9048
9049cat >>confdefs.h <<_ACEOF
9050#define TLS $ac_cv_tls
9051_ACEOF
9052
9053     { $as_echo "$as_me:${as_lineno-$LINENO}: result: thread local storage is supported" >&5
9054$as_echo "thread local storage is supported" >&6; }
9055          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ftls-model=local-dynamic" >&5
9056$as_echo_n "checking whether C compiler accepts -ftls-model=local-dynamic... " >&6; }
9057if ${ax_cv_check_cflags___ftls_model_local_dynamic+:} false; then :
9058  $as_echo_n "(cached) " >&6
9059else
9060
9061  ax_check_save_flags=$CFLAGS
9062  CFLAGS="$CFLAGS  -ftls-model=local-dynamic"
9063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9064/* end confdefs.h.  */
9065#include <time.h>
9066int
9067main ()
9068{
9069time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
9070  ;
9071  return 0;
9072}
9073_ACEOF
9074if ac_fn_c_try_link "$LINENO"; then :
9075  ax_cv_check_cflags___ftls_model_local_dynamic=yes
9076else
9077  ax_cv_check_cflags___ftls_model_local_dynamic=no
9078fi
9079rm -f core conftest.err conftest.$ac_objext \
9080    conftest$ac_exeext conftest.$ac_ext
9081  CFLAGS=$ax_check_save_flags
9082fi
9083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ftls_model_local_dynamic" >&5
9084$as_echo "$ax_cv_check_cflags___ftls_model_local_dynamic" >&6; }
9085if test "x$ax_cv_check_cflags___ftls_model_local_dynamic" = xyes; then :
9086  CFLAGS="$CFLAGS -ftls-model=local-dynamic"
9087else
9088  :
9089fi
9090
9091else
9092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: thread local storage is not supported" >&5
9093$as_echo "thread local storage is not supported" >&6; }
9094fi
9095
9096fi
9097
9098case `pwd` in
9099  *\ * | *\	*)
9100    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9101$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9102esac
9103
9104
9105
9106macro_version='2.4.6'
9107macro_revision='2.4.6'
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121ltmain=$ac_aux_dir/ltmain.sh
9122
9123# Backslashify metacharacters that are still active within
9124# double-quoted strings.
9125sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9126
9127# Same as above, but do not quote variable references.
9128double_quote_subst='s/\(["`\\]\)/\\\1/g'
9129
9130# Sed substitution to delay expansion of an escaped shell variable in a
9131# double_quote_subst'ed string.
9132delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9133
9134# Sed substitution to delay expansion of an escaped single quote.
9135delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9136
9137# Sed substitution to avoid accidental globbing in evaled expressions
9138no_glob_subst='s/\*/\\\*/g'
9139
9140ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9141ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
9142ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
9143
9144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
9145$as_echo_n "checking how to print strings... " >&6; }
9146# Test print first, because it will be a builtin if present.
9147if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
9148   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
9149  ECHO='print -r --'
9150elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
9151  ECHO='printf %s\n'
9152else
9153  # Use this function as a fallback that always works.
9154  func_fallback_echo ()
9155  {
9156    eval 'cat <<_LTECHO_EOF
9157$1
9158_LTECHO_EOF'
9159  }
9160  ECHO='func_fallback_echo'
9161fi
9162
9163# func_echo_all arg...
9164# Invoke $ECHO with all args, space-separated.
9165func_echo_all ()
9166{
9167    $ECHO ""
9168}
9169
9170case $ECHO in
9171  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
9172$as_echo "printf" >&6; } ;;
9173  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
9174$as_echo "print -r" >&6; } ;;
9175  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
9176$as_echo "cat" >&6; } ;;
9177esac
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
9193$as_echo_n "checking for a sed that does not truncate output... " >&6; }
9194if ${ac_cv_path_SED+:} false; then :
9195  $as_echo_n "(cached) " >&6
9196else
9197            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
9198     for ac_i in 1 2 3 4 5 6 7; do
9199       ac_script="$ac_script$as_nl$ac_script"
9200     done
9201     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
9202     { ac_script=; unset ac_script;}
9203     if test -z "$SED"; then
9204  ac_path_SED_found=false
9205  # Loop through the user's path and test for each of PROGNAME-LIST
9206  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9207for as_dir in $PATH
9208do
9209  IFS=$as_save_IFS
9210  test -z "$as_dir" && as_dir=.
9211    for ac_prog in sed gsed; do
9212    for ac_exec_ext in '' $ac_executable_extensions; do
9213      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
9214      as_fn_executable_p "$ac_path_SED" || continue
9215# Check for GNU ac_path_SED and select it if it is found.
9216  # Check for GNU $ac_path_SED
9217case `"$ac_path_SED" --version 2>&1` in
9218*GNU*)
9219  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
9220*)
9221  ac_count=0
9222  $as_echo_n 0123456789 >"conftest.in"
9223  while :
9224  do
9225    cat "conftest.in" "conftest.in" >"conftest.tmp"
9226    mv "conftest.tmp" "conftest.in"
9227    cp "conftest.in" "conftest.nl"
9228    $as_echo '' >> "conftest.nl"
9229    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
9230    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9231    as_fn_arith $ac_count + 1 && ac_count=$as_val
9232    if test $ac_count -gt ${ac_path_SED_max-0}; then
9233      # Best one so far, save it but keep looking for a better one
9234      ac_cv_path_SED="$ac_path_SED"
9235      ac_path_SED_max=$ac_count
9236    fi
9237    # 10*(2^10) chars as input seems more than enough
9238    test $ac_count -gt 10 && break
9239  done
9240  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9241esac
9242
9243      $ac_path_SED_found && break 3
9244    done
9245  done
9246  done
9247IFS=$as_save_IFS
9248  if test -z "$ac_cv_path_SED"; then
9249    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9250  fi
9251else
9252  ac_cv_path_SED=$SED
9253fi
9254
9255fi
9256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
9257$as_echo "$ac_cv_path_SED" >&6; }
9258 SED="$ac_cv_path_SED"
9259  rm -f conftest.sed
9260
9261test -z "$SED" && SED=sed
9262Xsed="$SED -e 1s/^X//"
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
9275$as_echo_n "checking for fgrep... " >&6; }
9276if ${ac_cv_path_FGREP+:} false; then :
9277  $as_echo_n "(cached) " >&6
9278else
9279  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
9280   then ac_cv_path_FGREP="$GREP -F"
9281   else
9282     if test -z "$FGREP"; then
9283  ac_path_FGREP_found=false
9284  # Loop through the user's path and test for each of PROGNAME-LIST
9285  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9286for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9287do
9288  IFS=$as_save_IFS
9289  test -z "$as_dir" && as_dir=.
9290    for ac_prog in fgrep; do
9291    for ac_exec_ext in '' $ac_executable_extensions; do
9292      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
9293      as_fn_executable_p "$ac_path_FGREP" || continue
9294# Check for GNU ac_path_FGREP and select it if it is found.
9295  # Check for GNU $ac_path_FGREP
9296case `"$ac_path_FGREP" --version 2>&1` in
9297*GNU*)
9298  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
9299*)
9300  ac_count=0
9301  $as_echo_n 0123456789 >"conftest.in"
9302  while :
9303  do
9304    cat "conftest.in" "conftest.in" >"conftest.tmp"
9305    mv "conftest.tmp" "conftest.in"
9306    cp "conftest.in" "conftest.nl"
9307    $as_echo 'FGREP' >> "conftest.nl"
9308    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
9309    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9310    as_fn_arith $ac_count + 1 && ac_count=$as_val
9311    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
9312      # Best one so far, save it but keep looking for a better one
9313      ac_cv_path_FGREP="$ac_path_FGREP"
9314      ac_path_FGREP_max=$ac_count
9315    fi
9316    # 10*(2^10) chars as input seems more than enough
9317    test $ac_count -gt 10 && break
9318  done
9319  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9320esac
9321
9322      $ac_path_FGREP_found && break 3
9323    done
9324  done
9325  done
9326IFS=$as_save_IFS
9327  if test -z "$ac_cv_path_FGREP"; then
9328    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9329  fi
9330else
9331  ac_cv_path_FGREP=$FGREP
9332fi
9333
9334   fi
9335fi
9336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
9337$as_echo "$ac_cv_path_FGREP" >&6; }
9338 FGREP="$ac_cv_path_FGREP"
9339
9340
9341test -z "$GREP" && GREP=grep
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361# Check whether --with-gnu-ld was given.
9362if test "${with_gnu_ld+set}" = set; then :
9363  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
9364else
9365  with_gnu_ld=no
9366fi
9367
9368ac_prog=ld
9369if test yes = "$GCC"; then
9370  # Check if gcc -print-prog-name=ld gives a path.
9371  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9372$as_echo_n "checking for ld used by $CC... " >&6; }
9373  case $host in
9374  *-*-mingw*)
9375    # gcc leaves a trailing carriage return, which upsets mingw
9376    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9377  *)
9378    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9379  esac
9380  case $ac_prog in
9381    # Accept absolute paths.
9382    [\\/]* | ?:[\\/]*)
9383      re_direlt='/[^/][^/]*/\.\./'
9384      # Canonicalize the pathname of ld
9385      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9386      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9387	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9388      done
9389      test -z "$LD" && LD=$ac_prog
9390      ;;
9391  "")
9392    # If it fails, then pretend we aren't using GCC.
9393    ac_prog=ld
9394    ;;
9395  *)
9396    # If it is relative, then search for the first ld in PATH.
9397    with_gnu_ld=unknown
9398    ;;
9399  esac
9400elif test yes = "$with_gnu_ld"; then
9401  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9402$as_echo_n "checking for GNU ld... " >&6; }
9403else
9404  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9405$as_echo_n "checking for non-GNU ld... " >&6; }
9406fi
9407if ${lt_cv_path_LD+:} false; then :
9408  $as_echo_n "(cached) " >&6
9409else
9410  if test -z "$LD"; then
9411  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9412  for ac_dir in $PATH; do
9413    IFS=$lt_save_ifs
9414    test -z "$ac_dir" && ac_dir=.
9415    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9416      lt_cv_path_LD=$ac_dir/$ac_prog
9417      # Check to see if the program is GNU ld.  I'd rather use --version,
9418      # but apparently some variants of GNU ld only accept -v.
9419      # Break only if it was the GNU/non-GNU ld that we prefer.
9420      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9421      *GNU* | *'with BFD'*)
9422	test no != "$with_gnu_ld" && break
9423	;;
9424      *)
9425	test yes != "$with_gnu_ld" && break
9426	;;
9427      esac
9428    fi
9429  done
9430  IFS=$lt_save_ifs
9431else
9432  lt_cv_path_LD=$LD # Let the user override the test with a path.
9433fi
9434fi
9435
9436LD=$lt_cv_path_LD
9437if test -n "$LD"; then
9438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9439$as_echo "$LD" >&6; }
9440else
9441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9442$as_echo "no" >&6; }
9443fi
9444test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9446$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9447if ${lt_cv_prog_gnu_ld+:} false; then :
9448  $as_echo_n "(cached) " >&6
9449else
9450  # I'd rather use --version here, but apparently some GNU lds only accept -v.
9451case `$LD -v 2>&1 </dev/null` in
9452*GNU* | *'with BFD'*)
9453  lt_cv_prog_gnu_ld=yes
9454  ;;
9455*)
9456  lt_cv_prog_gnu_ld=no
9457  ;;
9458esac
9459fi
9460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9461$as_echo "$lt_cv_prog_gnu_ld" >&6; }
9462with_gnu_ld=$lt_cv_prog_gnu_ld
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9473$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9474if ${lt_cv_path_NM+:} false; then :
9475  $as_echo_n "(cached) " >&6
9476else
9477  if test -n "$NM"; then
9478  # Let the user override the test.
9479  lt_cv_path_NM=$NM
9480else
9481  lt_nm_to_check=${ac_tool_prefix}nm
9482  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9483    lt_nm_to_check="$lt_nm_to_check nm"
9484  fi
9485  for lt_tmp_nm in $lt_nm_to_check; do
9486    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9487    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9488      IFS=$lt_save_ifs
9489      test -z "$ac_dir" && ac_dir=.
9490      tmp_nm=$ac_dir/$lt_tmp_nm
9491      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
9492	# Check to see if the nm accepts a BSD-compat flag.
9493	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
9494	#   nm: unknown option "B" ignored
9495	# Tru64's nm complains that /dev/null is an invalid object file
9496	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
9497	case $build_os in
9498	mingw*) lt_bad_file=conftest.nm/nofile ;;
9499	*) lt_bad_file=/dev/null ;;
9500	esac
9501	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
9502	*$lt_bad_file* | *'Invalid file or object type'*)
9503	  lt_cv_path_NM="$tmp_nm -B"
9504	  break 2
9505	  ;;
9506	*)
9507	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9508	  */dev/null*)
9509	    lt_cv_path_NM="$tmp_nm -p"
9510	    break 2
9511	    ;;
9512	  *)
9513	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9514	    continue # so that we can try to find one that supports BSD flags
9515	    ;;
9516	  esac
9517	  ;;
9518	esac
9519      fi
9520    done
9521    IFS=$lt_save_ifs
9522  done
9523  : ${lt_cv_path_NM=no}
9524fi
9525fi
9526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9527$as_echo "$lt_cv_path_NM" >&6; }
9528if test no != "$lt_cv_path_NM"; then
9529  NM=$lt_cv_path_NM
9530else
9531  # Didn't find any BSD compatible name lister, look for dumpbin.
9532  if test -n "$DUMPBIN"; then :
9533    # Let the user override the test.
9534  else
9535    if test -n "$ac_tool_prefix"; then
9536  for ac_prog in dumpbin "link -dump"
9537  do
9538    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9539set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9541$as_echo_n "checking for $ac_word... " >&6; }
9542if ${ac_cv_prog_DUMPBIN+:} false; then :
9543  $as_echo_n "(cached) " >&6
9544else
9545  if test -n "$DUMPBIN"; then
9546  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9547else
9548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9549for as_dir in $PATH
9550do
9551  IFS=$as_save_IFS
9552  test -z "$as_dir" && as_dir=.
9553    for ac_exec_ext in '' $ac_executable_extensions; do
9554  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9555    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9556    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9557    break 2
9558  fi
9559done
9560  done
9561IFS=$as_save_IFS
9562
9563fi
9564fi
9565DUMPBIN=$ac_cv_prog_DUMPBIN
9566if test -n "$DUMPBIN"; then
9567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9568$as_echo "$DUMPBIN" >&6; }
9569else
9570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9571$as_echo "no" >&6; }
9572fi
9573
9574
9575    test -n "$DUMPBIN" && break
9576  done
9577fi
9578if test -z "$DUMPBIN"; then
9579  ac_ct_DUMPBIN=$DUMPBIN
9580  for ac_prog in dumpbin "link -dump"
9581do
9582  # Extract the first word of "$ac_prog", so it can be a program name with args.
9583set dummy $ac_prog; ac_word=$2
9584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9585$as_echo_n "checking for $ac_word... " >&6; }
9586if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
9587  $as_echo_n "(cached) " >&6
9588else
9589  if test -n "$ac_ct_DUMPBIN"; then
9590  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9591else
9592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9593for as_dir in $PATH
9594do
9595  IFS=$as_save_IFS
9596  test -z "$as_dir" && as_dir=.
9597    for ac_exec_ext in '' $ac_executable_extensions; do
9598  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9599    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9600    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9601    break 2
9602  fi
9603done
9604  done
9605IFS=$as_save_IFS
9606
9607fi
9608fi
9609ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9610if test -n "$ac_ct_DUMPBIN"; then
9611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9612$as_echo "$ac_ct_DUMPBIN" >&6; }
9613else
9614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9615$as_echo "no" >&6; }
9616fi
9617
9618
9619  test -n "$ac_ct_DUMPBIN" && break
9620done
9621
9622  if test "x$ac_ct_DUMPBIN" = x; then
9623    DUMPBIN=":"
9624  else
9625    case $cross_compiling:$ac_tool_warned in
9626yes:)
9627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9629ac_tool_warned=yes ;;
9630esac
9631    DUMPBIN=$ac_ct_DUMPBIN
9632  fi
9633fi
9634
9635    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
9636    *COFF*)
9637      DUMPBIN="$DUMPBIN -symbols -headers"
9638      ;;
9639    *)
9640      DUMPBIN=:
9641      ;;
9642    esac
9643  fi
9644
9645  if test : != "$DUMPBIN"; then
9646    NM=$DUMPBIN
9647  fi
9648fi
9649test -z "$NM" && NM=nm
9650
9651
9652
9653
9654
9655
9656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9657$as_echo_n "checking the name lister ($NM) interface... " >&6; }
9658if ${lt_cv_nm_interface+:} false; then :
9659  $as_echo_n "(cached) " >&6
9660else
9661  lt_cv_nm_interface="BSD nm"
9662  echo "int some_variable = 0;" > conftest.$ac_ext
9663  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9664  (eval "$ac_compile" 2>conftest.err)
9665  cat conftest.err >&5
9666  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9667  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9668  cat conftest.err >&5
9669  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9670  cat conftest.out >&5
9671  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9672    lt_cv_nm_interface="MS dumpbin"
9673  fi
9674  rm -f conftest*
9675fi
9676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9677$as_echo "$lt_cv_nm_interface" >&6; }
9678
9679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9680$as_echo_n "checking whether ln -s works... " >&6; }
9681LN_S=$as_ln_s
9682if test "$LN_S" = "ln -s"; then
9683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9684$as_echo "yes" >&6; }
9685else
9686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9687$as_echo "no, using $LN_S" >&6; }
9688fi
9689
9690# find the maximum length of command line arguments
9691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9692$as_echo_n "checking the maximum length of command line arguments... " >&6; }
9693if ${lt_cv_sys_max_cmd_len+:} false; then :
9694  $as_echo_n "(cached) " >&6
9695else
9696    i=0
9697  teststring=ABCD
9698
9699  case $build_os in
9700  msdosdjgpp*)
9701    # On DJGPP, this test can blow up pretty badly due to problems in libc
9702    # (any single argument exceeding 2000 bytes causes a buffer overrun
9703    # during glob expansion).  Even if it were fixed, the result of this
9704    # check would be larger than it should be.
9705    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9706    ;;
9707
9708  gnu*)
9709    # Under GNU Hurd, this test is not required because there is
9710    # no limit to the length of command line arguments.
9711    # Libtool will interpret -1 as no limit whatsoever
9712    lt_cv_sys_max_cmd_len=-1;
9713    ;;
9714
9715  cygwin* | mingw* | cegcc*)
9716    # On Win9x/ME, this test blows up -- it succeeds, but takes
9717    # about 5 minutes as the teststring grows exponentially.
9718    # Worse, since 9x/ME are not pre-emptively multitasking,
9719    # you end up with a "frozen" computer, even though with patience
9720    # the test eventually succeeds (with a max line length of 256k).
9721    # Instead, let's just punt: use the minimum linelength reported by
9722    # all of the supported platforms: 8192 (on NT/2K/XP).
9723    lt_cv_sys_max_cmd_len=8192;
9724    ;;
9725
9726  mint*)
9727    # On MiNT this can take a long time and run out of memory.
9728    lt_cv_sys_max_cmd_len=8192;
9729    ;;
9730
9731  amigaos*)
9732    # On AmigaOS with pdksh, this test takes hours, literally.
9733    # So we just punt and use a minimum line length of 8192.
9734    lt_cv_sys_max_cmd_len=8192;
9735    ;;
9736
9737  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
9738    # This has been around since 386BSD, at least.  Likely further.
9739    if test -x /sbin/sysctl; then
9740      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9741    elif test -x /usr/sbin/sysctl; then
9742      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9743    else
9744      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
9745    fi
9746    # And add a safety zone
9747    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9748    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9749    ;;
9750
9751  interix*)
9752    # We know the value 262144 and hardcode it with a safety zone (like BSD)
9753    lt_cv_sys_max_cmd_len=196608
9754    ;;
9755
9756  os2*)
9757    # The test takes a long time on OS/2.
9758    lt_cv_sys_max_cmd_len=8192
9759    ;;
9760
9761  osf*)
9762    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9763    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9764    # nice to cause kernel panics so lets avoid the loop below.
9765    # First set a reasonable default.
9766    lt_cv_sys_max_cmd_len=16384
9767    #
9768    if test -x /sbin/sysconfig; then
9769      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9770        *1*) lt_cv_sys_max_cmd_len=-1 ;;
9771      esac
9772    fi
9773    ;;
9774  sco3.2v5*)
9775    lt_cv_sys_max_cmd_len=102400
9776    ;;
9777  sysv5* | sco5v6* | sysv4.2uw2*)
9778    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9779    if test -n "$kargmax"; then
9780      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
9781    else
9782      lt_cv_sys_max_cmd_len=32768
9783    fi
9784    ;;
9785  *)
9786    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9787    if test -n "$lt_cv_sys_max_cmd_len" && \
9788       test undefined != "$lt_cv_sys_max_cmd_len"; then
9789      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9790      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9791    else
9792      # Make teststring a little bigger before we do anything with it.
9793      # a 1K string should be a reasonable start.
9794      for i in 1 2 3 4 5 6 7 8; do
9795        teststring=$teststring$teststring
9796      done
9797      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9798      # If test is not a shell built-in, we'll probably end up computing a
9799      # maximum length that is only half of the actual maximum length, but
9800      # we can't tell.
9801      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
9802	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9803	      test 17 != "$i" # 1/2 MB should be enough
9804      do
9805        i=`expr $i + 1`
9806        teststring=$teststring$teststring
9807      done
9808      # Only check the string length outside the loop.
9809      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9810      teststring=
9811      # Add a significant safety factor because C++ compilers can tack on
9812      # massive amounts of additional arguments before passing them to the
9813      # linker.  It appears as though 1/2 is a usable value.
9814      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9815    fi
9816    ;;
9817  esac
9818
9819fi
9820
9821if test -n "$lt_cv_sys_max_cmd_len"; then
9822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9823$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9824else
9825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9826$as_echo "none" >&6; }
9827fi
9828max_cmd_len=$lt_cv_sys_max_cmd_len
9829
9830
9831
9832
9833
9834
9835: ${CP="cp -f"}
9836: ${MV="mv -f"}
9837: ${RM="rm -f"}
9838
9839if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9840  lt_unset=unset
9841else
9842  lt_unset=false
9843fi
9844
9845
9846
9847
9848
9849# test EBCDIC or ASCII
9850case `echo X|tr X '\101'` in
9851 A) # ASCII based system
9852    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9853  lt_SP2NL='tr \040 \012'
9854  lt_NL2SP='tr \015\012 \040\040'
9855  ;;
9856 *) # EBCDIC based system
9857  lt_SP2NL='tr \100 \n'
9858  lt_NL2SP='tr \r\n \100\100'
9859  ;;
9860esac
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9871$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
9872if ${lt_cv_to_host_file_cmd+:} false; then :
9873  $as_echo_n "(cached) " >&6
9874else
9875  case $host in
9876  *-*-mingw* )
9877    case $build in
9878      *-*-mingw* ) # actually msys
9879        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9880        ;;
9881      *-*-cygwin* )
9882        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9883        ;;
9884      * ) # otherwise, assume *nix
9885        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9886        ;;
9887    esac
9888    ;;
9889  *-*-cygwin* )
9890    case $build in
9891      *-*-mingw* ) # actually msys
9892        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9893        ;;
9894      *-*-cygwin* )
9895        lt_cv_to_host_file_cmd=func_convert_file_noop
9896        ;;
9897      * ) # otherwise, assume *nix
9898        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9899        ;;
9900    esac
9901    ;;
9902  * ) # unhandled hosts (and "normal" native builds)
9903    lt_cv_to_host_file_cmd=func_convert_file_noop
9904    ;;
9905esac
9906
9907fi
9908
9909to_host_file_cmd=$lt_cv_to_host_file_cmd
9910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9911$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9912
9913
9914
9915
9916
9917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9918$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
9919if ${lt_cv_to_tool_file_cmd+:} false; then :
9920  $as_echo_n "(cached) " >&6
9921else
9922  #assume ordinary cross tools, or native build.
9923lt_cv_to_tool_file_cmd=func_convert_file_noop
9924case $host in
9925  *-*-mingw* )
9926    case $build in
9927      *-*-mingw* ) # actually msys
9928        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9929        ;;
9930    esac
9931    ;;
9932esac
9933
9934fi
9935
9936to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9938$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9939
9940
9941
9942
9943
9944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9945$as_echo_n "checking for $LD option to reload object files... " >&6; }
9946if ${lt_cv_ld_reload_flag+:} false; then :
9947  $as_echo_n "(cached) " >&6
9948else
9949  lt_cv_ld_reload_flag='-r'
9950fi
9951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9952$as_echo "$lt_cv_ld_reload_flag" >&6; }
9953reload_flag=$lt_cv_ld_reload_flag
9954case $reload_flag in
9955"" | " "*) ;;
9956*) reload_flag=" $reload_flag" ;;
9957esac
9958reload_cmds='$LD$reload_flag -o $output$reload_objs'
9959case $host_os in
9960  cygwin* | mingw* | pw32* | cegcc*)
9961    if test yes != "$GCC"; then
9962      reload_cmds=false
9963    fi
9964    ;;
9965  darwin*)
9966    if test yes = "$GCC"; then
9967      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
9968    else
9969      reload_cmds='$LD$reload_flag -o $output$reload_objs'
9970    fi
9971    ;;
9972esac
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982if test -n "$ac_tool_prefix"; then
9983  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9984set dummy ${ac_tool_prefix}objdump; ac_word=$2
9985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9986$as_echo_n "checking for $ac_word... " >&6; }
9987if ${ac_cv_prog_OBJDUMP+:} false; then :
9988  $as_echo_n "(cached) " >&6
9989else
9990  if test -n "$OBJDUMP"; then
9991  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9992else
9993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9994for as_dir in $PATH
9995do
9996  IFS=$as_save_IFS
9997  test -z "$as_dir" && as_dir=.
9998    for ac_exec_ext in '' $ac_executable_extensions; do
9999  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10000    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10001    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10002    break 2
10003  fi
10004done
10005  done
10006IFS=$as_save_IFS
10007
10008fi
10009fi
10010OBJDUMP=$ac_cv_prog_OBJDUMP
10011if test -n "$OBJDUMP"; then
10012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10013$as_echo "$OBJDUMP" >&6; }
10014else
10015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10016$as_echo "no" >&6; }
10017fi
10018
10019
10020fi
10021if test -z "$ac_cv_prog_OBJDUMP"; then
10022  ac_ct_OBJDUMP=$OBJDUMP
10023  # Extract the first word of "objdump", so it can be a program name with args.
10024set dummy objdump; ac_word=$2
10025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10026$as_echo_n "checking for $ac_word... " >&6; }
10027if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10028  $as_echo_n "(cached) " >&6
10029else
10030  if test -n "$ac_ct_OBJDUMP"; then
10031  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10032else
10033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10034for as_dir in $PATH
10035do
10036  IFS=$as_save_IFS
10037  test -z "$as_dir" && as_dir=.
10038    for ac_exec_ext in '' $ac_executable_extensions; do
10039  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10040    ac_cv_prog_ac_ct_OBJDUMP="objdump"
10041    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10042    break 2
10043  fi
10044done
10045  done
10046IFS=$as_save_IFS
10047
10048fi
10049fi
10050ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10051if test -n "$ac_ct_OBJDUMP"; then
10052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10053$as_echo "$ac_ct_OBJDUMP" >&6; }
10054else
10055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10056$as_echo "no" >&6; }
10057fi
10058
10059  if test "x$ac_ct_OBJDUMP" = x; then
10060    OBJDUMP="false"
10061  else
10062    case $cross_compiling:$ac_tool_warned in
10063yes:)
10064{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10065$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10066ac_tool_warned=yes ;;
10067esac
10068    OBJDUMP=$ac_ct_OBJDUMP
10069  fi
10070else
10071  OBJDUMP="$ac_cv_prog_OBJDUMP"
10072fi
10073
10074test -z "$OBJDUMP" && OBJDUMP=objdump
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10085$as_echo_n "checking how to recognize dependent libraries... " >&6; }
10086if ${lt_cv_deplibs_check_method+:} false; then :
10087  $as_echo_n "(cached) " >&6
10088else
10089  lt_cv_file_magic_cmd='$MAGIC_CMD'
10090lt_cv_file_magic_test_file=
10091lt_cv_deplibs_check_method='unknown'
10092# Need to set the preceding variable on all platforms that support
10093# interlibrary dependencies.
10094# 'none' -- dependencies not supported.
10095# 'unknown' -- same as none, but documents that we really don't know.
10096# 'pass_all' -- all dependencies passed with no checks.
10097# 'test_compile' -- check by making test program.
10098# 'file_magic [[regex]]' -- check by looking for files in library path
10099# that responds to the $file_magic_cmd with a given extended regex.
10100# If you have 'file' or equivalent on your system and you're not sure
10101# whether 'pass_all' will *always* work, you probably want this one.
10102
10103case $host_os in
10104aix[4-9]*)
10105  lt_cv_deplibs_check_method=pass_all
10106  ;;
10107
10108beos*)
10109  lt_cv_deplibs_check_method=pass_all
10110  ;;
10111
10112bsdi[45]*)
10113  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10114  lt_cv_file_magic_cmd='/usr/bin/file -L'
10115  lt_cv_file_magic_test_file=/shlib/libc.so
10116  ;;
10117
10118cygwin*)
10119  # func_win32_libid is a shell function defined in ltmain.sh
10120  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10121  lt_cv_file_magic_cmd='func_win32_libid'
10122  ;;
10123
10124mingw* | pw32*)
10125  # Base MSYS/MinGW do not provide the 'file' command needed by
10126  # func_win32_libid shell function, so use a weaker test based on 'objdump',
10127  # unless we find 'file', for example because we are cross-compiling.
10128  if ( file / ) >/dev/null 2>&1; then
10129    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10130    lt_cv_file_magic_cmd='func_win32_libid'
10131  else
10132    # Keep this pattern in sync with the one in func_win32_libid.
10133    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10134    lt_cv_file_magic_cmd='$OBJDUMP -f'
10135  fi
10136  ;;
10137
10138cegcc*)
10139  # use the weaker test based on 'objdump'. See mingw*.
10140  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10141  lt_cv_file_magic_cmd='$OBJDUMP -f'
10142  ;;
10143
10144darwin* | rhapsody*)
10145  lt_cv_deplibs_check_method=pass_all
10146  ;;
10147
10148freebsd* | dragonfly*)
10149  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10150    case $host_cpu in
10151    i*86 )
10152      # Not sure whether the presence of OpenBSD here was a mistake.
10153      # Let's accept both of them until this is cleared up.
10154      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10155      lt_cv_file_magic_cmd=/usr/bin/file
10156      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10157      ;;
10158    esac
10159  else
10160    lt_cv_deplibs_check_method=pass_all
10161  fi
10162  ;;
10163
10164haiku*)
10165  lt_cv_deplibs_check_method=pass_all
10166  ;;
10167
10168hpux10.20* | hpux11*)
10169  lt_cv_file_magic_cmd=/usr/bin/file
10170  case $host_cpu in
10171  ia64*)
10172    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10173    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10174    ;;
10175  hppa*64*)
10176    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]'
10177    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10178    ;;
10179  *)
10180    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10181    lt_cv_file_magic_test_file=/usr/lib/libc.sl
10182    ;;
10183  esac
10184  ;;
10185
10186interix[3-9]*)
10187  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10188  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10189  ;;
10190
10191irix5* | irix6* | nonstopux*)
10192  case $LD in
10193  *-32|*"-32 ") libmagic=32-bit;;
10194  *-n32|*"-n32 ") libmagic=N32;;
10195  *-64|*"-64 ") libmagic=64-bit;;
10196  *) libmagic=never-match;;
10197  esac
10198  lt_cv_deplibs_check_method=pass_all
10199  ;;
10200
10201# This must be glibc/ELF.
10202linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10203  lt_cv_deplibs_check_method=pass_all
10204  ;;
10205
10206netbsd*)
10207  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10208    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10209  else
10210    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10211  fi
10212  ;;
10213
10214newos6*)
10215  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10216  lt_cv_file_magic_cmd=/usr/bin/file
10217  lt_cv_file_magic_test_file=/usr/lib/libnls.so
10218  ;;
10219
10220*nto* | *qnx*)
10221  lt_cv_deplibs_check_method=pass_all
10222  ;;
10223
10224openbsd* | bitrig*)
10225  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10226    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10227  else
10228    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10229  fi
10230  ;;
10231
10232osf3* | osf4* | osf5*)
10233  lt_cv_deplibs_check_method=pass_all
10234  ;;
10235
10236rdos*)
10237  lt_cv_deplibs_check_method=pass_all
10238  ;;
10239
10240solaris*)
10241  lt_cv_deplibs_check_method=pass_all
10242  ;;
10243
10244sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10245  lt_cv_deplibs_check_method=pass_all
10246  ;;
10247
10248sysv4 | sysv4.3*)
10249  case $host_vendor in
10250  motorola)
10251    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]'
10252    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10253    ;;
10254  ncr)
10255    lt_cv_deplibs_check_method=pass_all
10256    ;;
10257  sequent)
10258    lt_cv_file_magic_cmd='/bin/file'
10259    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10260    ;;
10261  sni)
10262    lt_cv_file_magic_cmd='/bin/file'
10263    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10264    lt_cv_file_magic_test_file=/lib/libc.so
10265    ;;
10266  siemens)
10267    lt_cv_deplibs_check_method=pass_all
10268    ;;
10269  pc)
10270    lt_cv_deplibs_check_method=pass_all
10271    ;;
10272  esac
10273  ;;
10274
10275tpf*)
10276  lt_cv_deplibs_check_method=pass_all
10277  ;;
10278os2*)
10279  lt_cv_deplibs_check_method=pass_all
10280  ;;
10281esac
10282
10283fi
10284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10285$as_echo "$lt_cv_deplibs_check_method" >&6; }
10286
10287file_magic_glob=
10288want_nocaseglob=no
10289if test "$build" = "$host"; then
10290  case $host_os in
10291  mingw* | pw32*)
10292    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10293      want_nocaseglob=yes
10294    else
10295      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10296    fi
10297    ;;
10298  esac
10299fi
10300
10301file_magic_cmd=$lt_cv_file_magic_cmd
10302deplibs_check_method=$lt_cv_deplibs_check_method
10303test -z "$deplibs_check_method" && deplibs_check_method=unknown
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326if test -n "$ac_tool_prefix"; then
10327  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10328set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10330$as_echo_n "checking for $ac_word... " >&6; }
10331if ${ac_cv_prog_DLLTOOL+:} false; then :
10332  $as_echo_n "(cached) " >&6
10333else
10334  if test -n "$DLLTOOL"; then
10335  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10336else
10337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10338for as_dir in $PATH
10339do
10340  IFS=$as_save_IFS
10341  test -z "$as_dir" && as_dir=.
10342    for ac_exec_ext in '' $ac_executable_extensions; do
10343  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10344    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10345    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10346    break 2
10347  fi
10348done
10349  done
10350IFS=$as_save_IFS
10351
10352fi
10353fi
10354DLLTOOL=$ac_cv_prog_DLLTOOL
10355if test -n "$DLLTOOL"; then
10356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10357$as_echo "$DLLTOOL" >&6; }
10358else
10359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10360$as_echo "no" >&6; }
10361fi
10362
10363
10364fi
10365if test -z "$ac_cv_prog_DLLTOOL"; then
10366  ac_ct_DLLTOOL=$DLLTOOL
10367  # Extract the first word of "dlltool", so it can be a program name with args.
10368set dummy dlltool; ac_word=$2
10369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10370$as_echo_n "checking for $ac_word... " >&6; }
10371if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10372  $as_echo_n "(cached) " >&6
10373else
10374  if test -n "$ac_ct_DLLTOOL"; then
10375  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10376else
10377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10378for as_dir in $PATH
10379do
10380  IFS=$as_save_IFS
10381  test -z "$as_dir" && as_dir=.
10382    for ac_exec_ext in '' $ac_executable_extensions; do
10383  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10384    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10385    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10386    break 2
10387  fi
10388done
10389  done
10390IFS=$as_save_IFS
10391
10392fi
10393fi
10394ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10395if test -n "$ac_ct_DLLTOOL"; then
10396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10397$as_echo "$ac_ct_DLLTOOL" >&6; }
10398else
10399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10400$as_echo "no" >&6; }
10401fi
10402
10403  if test "x$ac_ct_DLLTOOL" = x; then
10404    DLLTOOL="false"
10405  else
10406    case $cross_compiling:$ac_tool_warned in
10407yes:)
10408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10410ac_tool_warned=yes ;;
10411esac
10412    DLLTOOL=$ac_ct_DLLTOOL
10413  fi
10414else
10415  DLLTOOL="$ac_cv_prog_DLLTOOL"
10416fi
10417
10418test -z "$DLLTOOL" && DLLTOOL=dlltool
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10430$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10431if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10432  $as_echo_n "(cached) " >&6
10433else
10434  lt_cv_sharedlib_from_linklib_cmd='unknown'
10435
10436case $host_os in
10437cygwin* | mingw* | pw32* | cegcc*)
10438  # two different shell functions defined in ltmain.sh;
10439  # decide which one to use based on capabilities of $DLLTOOL
10440  case `$DLLTOOL --help 2>&1` in
10441  *--identify-strict*)
10442    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10443    ;;
10444  *)
10445    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10446    ;;
10447  esac
10448  ;;
10449*)
10450  # fallback: assume linklib IS sharedlib
10451  lt_cv_sharedlib_from_linklib_cmd=$ECHO
10452  ;;
10453esac
10454
10455fi
10456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10457$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10458sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10459test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10460
10461
10462
10463
10464
10465
10466
10467if test -n "$ac_tool_prefix"; then
10468  for ac_prog in ar
10469  do
10470    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10471set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10473$as_echo_n "checking for $ac_word... " >&6; }
10474if ${ac_cv_prog_AR+:} false; then :
10475  $as_echo_n "(cached) " >&6
10476else
10477  if test -n "$AR"; then
10478  ac_cv_prog_AR="$AR" # Let the user override the test.
10479else
10480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10481for as_dir in $PATH
10482do
10483  IFS=$as_save_IFS
10484  test -z "$as_dir" && as_dir=.
10485    for ac_exec_ext in '' $ac_executable_extensions; do
10486  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10487    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10489    break 2
10490  fi
10491done
10492  done
10493IFS=$as_save_IFS
10494
10495fi
10496fi
10497AR=$ac_cv_prog_AR
10498if test -n "$AR"; then
10499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10500$as_echo "$AR" >&6; }
10501else
10502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10503$as_echo "no" >&6; }
10504fi
10505
10506
10507    test -n "$AR" && break
10508  done
10509fi
10510if test -z "$AR"; then
10511  ac_ct_AR=$AR
10512  for ac_prog in ar
10513do
10514  # Extract the first word of "$ac_prog", so it can be a program name with args.
10515set dummy $ac_prog; ac_word=$2
10516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10517$as_echo_n "checking for $ac_word... " >&6; }
10518if ${ac_cv_prog_ac_ct_AR+:} false; then :
10519  $as_echo_n "(cached) " >&6
10520else
10521  if test -n "$ac_ct_AR"; then
10522  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10523else
10524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10525for as_dir in $PATH
10526do
10527  IFS=$as_save_IFS
10528  test -z "$as_dir" && as_dir=.
10529    for ac_exec_ext in '' $ac_executable_extensions; do
10530  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10531    ac_cv_prog_ac_ct_AR="$ac_prog"
10532    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10533    break 2
10534  fi
10535done
10536  done
10537IFS=$as_save_IFS
10538
10539fi
10540fi
10541ac_ct_AR=$ac_cv_prog_ac_ct_AR
10542if test -n "$ac_ct_AR"; then
10543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10544$as_echo "$ac_ct_AR" >&6; }
10545else
10546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10547$as_echo "no" >&6; }
10548fi
10549
10550
10551  test -n "$ac_ct_AR" && break
10552done
10553
10554  if test "x$ac_ct_AR" = x; then
10555    AR="false"
10556  else
10557    case $cross_compiling:$ac_tool_warned in
10558yes:)
10559{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10560$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10561ac_tool_warned=yes ;;
10562esac
10563    AR=$ac_ct_AR
10564  fi
10565fi
10566
10567: ${AR=ar}
10568: ${AR_FLAGS=cru}
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10581$as_echo_n "checking for archiver @FILE support... " >&6; }
10582if ${lt_cv_ar_at_file+:} false; then :
10583  $as_echo_n "(cached) " >&6
10584else
10585  lt_cv_ar_at_file=no
10586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10587/* end confdefs.h.  */
10588
10589int
10590main ()
10591{
10592
10593  ;
10594  return 0;
10595}
10596_ACEOF
10597if ac_fn_c_try_compile "$LINENO"; then :
10598  echo conftest.$ac_objext > conftest.lst
10599      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10600      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10601  (eval $lt_ar_try) 2>&5
10602  ac_status=$?
10603  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10604  test $ac_status = 0; }
10605      if test 0 -eq "$ac_status"; then
10606	# Ensure the archiver fails upon bogus file names.
10607	rm -f conftest.$ac_objext libconftest.a
10608	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10609  (eval $lt_ar_try) 2>&5
10610  ac_status=$?
10611  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10612  test $ac_status = 0; }
10613	if test 0 -ne "$ac_status"; then
10614          lt_cv_ar_at_file=@
10615        fi
10616      fi
10617      rm -f conftest.* libconftest.a
10618
10619fi
10620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10621
10622fi
10623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10624$as_echo "$lt_cv_ar_at_file" >&6; }
10625
10626if test no = "$lt_cv_ar_at_file"; then
10627  archiver_list_spec=
10628else
10629  archiver_list_spec=$lt_cv_ar_at_file
10630fi
10631
10632
10633
10634
10635
10636
10637
10638if test -n "$ac_tool_prefix"; then
10639  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10640set dummy ${ac_tool_prefix}strip; ac_word=$2
10641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10642$as_echo_n "checking for $ac_word... " >&6; }
10643if ${ac_cv_prog_STRIP+:} false; then :
10644  $as_echo_n "(cached) " >&6
10645else
10646  if test -n "$STRIP"; then
10647  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10648else
10649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10650for as_dir in $PATH
10651do
10652  IFS=$as_save_IFS
10653  test -z "$as_dir" && as_dir=.
10654    for ac_exec_ext in '' $ac_executable_extensions; do
10655  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10656    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10657    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10658    break 2
10659  fi
10660done
10661  done
10662IFS=$as_save_IFS
10663
10664fi
10665fi
10666STRIP=$ac_cv_prog_STRIP
10667if test -n "$STRIP"; then
10668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10669$as_echo "$STRIP" >&6; }
10670else
10671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10672$as_echo "no" >&6; }
10673fi
10674
10675
10676fi
10677if test -z "$ac_cv_prog_STRIP"; then
10678  ac_ct_STRIP=$STRIP
10679  # Extract the first word of "strip", so it can be a program name with args.
10680set dummy strip; ac_word=$2
10681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10682$as_echo_n "checking for $ac_word... " >&6; }
10683if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10684  $as_echo_n "(cached) " >&6
10685else
10686  if test -n "$ac_ct_STRIP"; then
10687  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10688else
10689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10690for as_dir in $PATH
10691do
10692  IFS=$as_save_IFS
10693  test -z "$as_dir" && as_dir=.
10694    for ac_exec_ext in '' $ac_executable_extensions; do
10695  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10696    ac_cv_prog_ac_ct_STRIP="strip"
10697    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10698    break 2
10699  fi
10700done
10701  done
10702IFS=$as_save_IFS
10703
10704fi
10705fi
10706ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10707if test -n "$ac_ct_STRIP"; then
10708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10709$as_echo "$ac_ct_STRIP" >&6; }
10710else
10711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10712$as_echo "no" >&6; }
10713fi
10714
10715  if test "x$ac_ct_STRIP" = x; then
10716    STRIP=":"
10717  else
10718    case $cross_compiling:$ac_tool_warned in
10719yes:)
10720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10722ac_tool_warned=yes ;;
10723esac
10724    STRIP=$ac_ct_STRIP
10725  fi
10726else
10727  STRIP="$ac_cv_prog_STRIP"
10728fi
10729
10730test -z "$STRIP" && STRIP=:
10731
10732
10733
10734
10735
10736
10737if test -n "$ac_tool_prefix"; then
10738  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10739set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10741$as_echo_n "checking for $ac_word... " >&6; }
10742if ${ac_cv_prog_RANLIB+:} false; then :
10743  $as_echo_n "(cached) " >&6
10744else
10745  if test -n "$RANLIB"; then
10746  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10747else
10748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10749for as_dir in $PATH
10750do
10751  IFS=$as_save_IFS
10752  test -z "$as_dir" && as_dir=.
10753    for ac_exec_ext in '' $ac_executable_extensions; do
10754  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10755    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10756    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10757    break 2
10758  fi
10759done
10760  done
10761IFS=$as_save_IFS
10762
10763fi
10764fi
10765RANLIB=$ac_cv_prog_RANLIB
10766if test -n "$RANLIB"; then
10767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10768$as_echo "$RANLIB" >&6; }
10769else
10770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10771$as_echo "no" >&6; }
10772fi
10773
10774
10775fi
10776if test -z "$ac_cv_prog_RANLIB"; then
10777  ac_ct_RANLIB=$RANLIB
10778  # Extract the first word of "ranlib", so it can be a program name with args.
10779set dummy ranlib; ac_word=$2
10780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10781$as_echo_n "checking for $ac_word... " >&6; }
10782if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10783  $as_echo_n "(cached) " >&6
10784else
10785  if test -n "$ac_ct_RANLIB"; then
10786  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10787else
10788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10789for as_dir in $PATH
10790do
10791  IFS=$as_save_IFS
10792  test -z "$as_dir" && as_dir=.
10793    for ac_exec_ext in '' $ac_executable_extensions; do
10794  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10795    ac_cv_prog_ac_ct_RANLIB="ranlib"
10796    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10797    break 2
10798  fi
10799done
10800  done
10801IFS=$as_save_IFS
10802
10803fi
10804fi
10805ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10806if test -n "$ac_ct_RANLIB"; then
10807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10808$as_echo "$ac_ct_RANLIB" >&6; }
10809else
10810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10811$as_echo "no" >&6; }
10812fi
10813
10814  if test "x$ac_ct_RANLIB" = x; then
10815    RANLIB=":"
10816  else
10817    case $cross_compiling:$ac_tool_warned in
10818yes:)
10819{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10820$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10821ac_tool_warned=yes ;;
10822esac
10823    RANLIB=$ac_ct_RANLIB
10824  fi
10825else
10826  RANLIB="$ac_cv_prog_RANLIB"
10827fi
10828
10829test -z "$RANLIB" && RANLIB=:
10830
10831
10832
10833
10834
10835
10836# Determine commands to create old-style static archives.
10837old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10838old_postinstall_cmds='chmod 644 $oldlib'
10839old_postuninstall_cmds=
10840
10841if test -n "$RANLIB"; then
10842  case $host_os in
10843  bitrig* | openbsd*)
10844    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10845    ;;
10846  *)
10847    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10848    ;;
10849  esac
10850  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10851fi
10852
10853case $host_os in
10854  darwin*)
10855    lock_old_archive_extraction=yes ;;
10856  *)
10857    lock_old_archive_extraction=no ;;
10858esac
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898# If no C compiler was specified, use CC.
10899LTCC=${LTCC-"$CC"}
10900
10901# If no C compiler flags were specified, use CFLAGS.
10902LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10903
10904# Allow CC to be a program name with arguments.
10905compiler=$CC
10906
10907
10908# Check for command to grab the raw symbol name followed by C symbol from nm.
10909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10910$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10911if ${lt_cv_sys_global_symbol_pipe+:} false; then :
10912  $as_echo_n "(cached) " >&6
10913else
10914
10915# These are sane defaults that work on at least a few old systems.
10916# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10917
10918# Character class describing NM global symbol codes.
10919symcode='[BCDEGRST]'
10920
10921# Regexp to match symbols that can be accessed directly from C.
10922sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10923
10924# Define system-specific variables.
10925case $host_os in
10926aix*)
10927  symcode='[BCDT]'
10928  ;;
10929cygwin* | mingw* | pw32* | cegcc*)
10930  symcode='[ABCDGISTW]'
10931  ;;
10932hpux*)
10933  if test ia64 = "$host_cpu"; then
10934    symcode='[ABCDEGRST]'
10935  fi
10936  ;;
10937irix* | nonstopux*)
10938  symcode='[BCDEGRST]'
10939  ;;
10940osf*)
10941  symcode='[BCDEGQRST]'
10942  ;;
10943solaris*)
10944  symcode='[BDRT]'
10945  ;;
10946sco3.2v5*)
10947  symcode='[DT]'
10948  ;;
10949sysv4.2uw2*)
10950  symcode='[DT]'
10951  ;;
10952sysv5* | sco5v6* | unixware* | OpenUNIX*)
10953  symcode='[ABDT]'
10954  ;;
10955sysv4)
10956  symcode='[DFNSTU]'
10957  ;;
10958esac
10959
10960# If we're using GNU nm, then use its standard symbol codes.
10961case `$NM -V 2>&1` in
10962*GNU* | *'with BFD'*)
10963  symcode='[ABCDGIRSTW]' ;;
10964esac
10965
10966if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10967  # Gets list of data symbols to import.
10968  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
10969  # Adjust the below global symbol transforms to fixup imported variables.
10970  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
10971  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
10972  lt_c_name_lib_hook="\
10973  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
10974  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
10975else
10976  # Disable hooks by default.
10977  lt_cv_sys_global_symbol_to_import=
10978  lt_cdecl_hook=
10979  lt_c_name_hook=
10980  lt_c_name_lib_hook=
10981fi
10982
10983# Transform an extracted symbol line into a proper C declaration.
10984# Some systems (esp. on ia64) link data and code symbols differently,
10985# so use this general approach.
10986lt_cv_sys_global_symbol_to_cdecl="sed -n"\
10987$lt_cdecl_hook\
10988" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
10989" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
10990
10991# Transform an extracted symbol line into symbol name and symbol address
10992lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
10993$lt_c_name_hook\
10994" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10995" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
10996
10997# Transform an extracted symbol line into symbol name with lib prefix and
10998# symbol address.
10999lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
11000$lt_c_name_lib_hook\
11001" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
11002" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
11003" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
11004
11005# Handle CRLF in mingw tool chain
11006opt_cr=
11007case $build_os in
11008mingw*)
11009  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11010  ;;
11011esac
11012
11013# Try without a prefix underscore, then with it.
11014for ac_symprfx in "" "_"; do
11015
11016  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11017  symxfrm="\\1 $ac_symprfx\\2 \\2"
11018
11019  # Write the raw and C identifiers.
11020  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11021    # Fake it for dumpbin and say T for any non-static function,
11022    # D for any global variable and I for any imported variable.
11023    # Also find C++ and __fastcall symbols from MSVC++,
11024    # which start with @ or ?.
11025    lt_cv_sys_global_symbol_pipe="$AWK '"\
11026"     {last_section=section; section=\$ 3};"\
11027"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
11028"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11029"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
11030"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
11031"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
11032"     \$ 0!~/External *\|/{next};"\
11033"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11034"     {if(hide[section]) next};"\
11035"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
11036"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
11037"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
11038"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
11039"     ' prfx=^$ac_symprfx"
11040  else
11041    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11042  fi
11043  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
11044
11045  # Check to see that the pipe works correctly.
11046  pipe_works=no
11047
11048  rm -f conftest*
11049  cat > conftest.$ac_ext <<_LT_EOF
11050#ifdef __cplusplus
11051extern "C" {
11052#endif
11053char nm_test_var;
11054void nm_test_func(void);
11055void nm_test_func(void){}
11056#ifdef __cplusplus
11057}
11058#endif
11059int main(){nm_test_var='a';nm_test_func();return(0);}
11060_LT_EOF
11061
11062  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11063  (eval $ac_compile) 2>&5
11064  ac_status=$?
11065  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11066  test $ac_status = 0; }; then
11067    # Now try to grab the symbols.
11068    nlist=conftest.nm
11069    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11070  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
11071  ac_status=$?
11072  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11073  test $ac_status = 0; } && test -s "$nlist"; then
11074      # Try sorting and uniquifying the output.
11075      if sort "$nlist" | uniq > "$nlist"T; then
11076	mv -f "$nlist"T "$nlist"
11077      else
11078	rm -f "$nlist"T
11079      fi
11080
11081      # Make sure that we snagged all the symbols we need.
11082      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11083	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11084	  cat <<_LT_EOF > conftest.$ac_ext
11085/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
11086#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
11087/* DATA imports from DLLs on WIN32 can't be const, because runtime
11088   relocations are performed -- see ld's documentation on pseudo-relocs.  */
11089# define LT_DLSYM_CONST
11090#elif defined __osf__
11091/* This system does not cope well with relocations in const data.  */
11092# define LT_DLSYM_CONST
11093#else
11094# define LT_DLSYM_CONST const
11095#endif
11096
11097#ifdef __cplusplus
11098extern "C" {
11099#endif
11100
11101_LT_EOF
11102	  # Now generate the symbol file.
11103	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11104
11105	  cat <<_LT_EOF >> conftest.$ac_ext
11106
11107/* The mapping between symbol names and symbols.  */
11108LT_DLSYM_CONST struct {
11109  const char *name;
11110  void       *address;
11111}
11112lt__PROGRAM__LTX_preloaded_symbols[] =
11113{
11114  { "@PROGRAM@", (void *) 0 },
11115_LT_EOF
11116	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11117	  cat <<\_LT_EOF >> conftest.$ac_ext
11118  {0, (void *) 0}
11119};
11120
11121/* This works around a problem in FreeBSD linker */
11122#ifdef FREEBSD_WORKAROUND
11123static const void *lt_preloaded_setup() {
11124  return lt__PROGRAM__LTX_preloaded_symbols;
11125}
11126#endif
11127
11128#ifdef __cplusplus
11129}
11130#endif
11131_LT_EOF
11132	  # Now try linking the two files.
11133	  mv conftest.$ac_objext conftstm.$ac_objext
11134	  lt_globsym_save_LIBS=$LIBS
11135	  lt_globsym_save_CFLAGS=$CFLAGS
11136	  LIBS=conftstm.$ac_objext
11137	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11138	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11139  (eval $ac_link) 2>&5
11140  ac_status=$?
11141  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11142  test $ac_status = 0; } && test -s conftest$ac_exeext; then
11143	    pipe_works=yes
11144	  fi
11145	  LIBS=$lt_globsym_save_LIBS
11146	  CFLAGS=$lt_globsym_save_CFLAGS
11147	else
11148	  echo "cannot find nm_test_func in $nlist" >&5
11149	fi
11150      else
11151	echo "cannot find nm_test_var in $nlist" >&5
11152      fi
11153    else
11154      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11155    fi
11156  else
11157    echo "$progname: failed program was:" >&5
11158    cat conftest.$ac_ext >&5
11159  fi
11160  rm -rf conftest* conftst*
11161
11162  # Do not use the global_symbol_pipe unless it works.
11163  if test yes = "$pipe_works"; then
11164    break
11165  else
11166    lt_cv_sys_global_symbol_pipe=
11167  fi
11168done
11169
11170fi
11171
11172if test -z "$lt_cv_sys_global_symbol_pipe"; then
11173  lt_cv_sys_global_symbol_to_cdecl=
11174fi
11175if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11177$as_echo "failed" >&6; }
11178else
11179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11180$as_echo "ok" >&6; }
11181fi
11182
11183# Response file support.
11184if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11185  nm_file_list_spec='@'
11186elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11187  nm_file_list_spec='@'
11188fi
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11227$as_echo_n "checking for sysroot... " >&6; }
11228
11229# Check whether --with-sysroot was given.
11230if test "${with_sysroot+set}" = set; then :
11231  withval=$with_sysroot;
11232else
11233  with_sysroot=no
11234fi
11235
11236
11237lt_sysroot=
11238case $with_sysroot in #(
11239 yes)
11240   if test yes = "$GCC"; then
11241     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11242   fi
11243   ;; #(
11244 /*)
11245   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11246   ;; #(
11247 no|'')
11248   ;; #(
11249 *)
11250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
11251$as_echo "$with_sysroot" >&6; }
11252   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11253   ;;
11254esac
11255
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11257$as_echo "${lt_sysroot:-no}" >&6; }
11258
11259
11260
11261
11262
11263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
11264$as_echo_n "checking for a working dd... " >&6; }
11265if ${ac_cv_path_lt_DD+:} false; then :
11266  $as_echo_n "(cached) " >&6
11267else
11268  printf 0123456789abcdef0123456789abcdef >conftest.i
11269cat conftest.i conftest.i >conftest2.i
11270: ${lt_DD:=$DD}
11271if test -z "$lt_DD"; then
11272  ac_path_lt_DD_found=false
11273  # Loop through the user's path and test for each of PROGNAME-LIST
11274  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11275for as_dir in $PATH
11276do
11277  IFS=$as_save_IFS
11278  test -z "$as_dir" && as_dir=.
11279    for ac_prog in dd; do
11280    for ac_exec_ext in '' $ac_executable_extensions; do
11281      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
11282      as_fn_executable_p "$ac_path_lt_DD" || continue
11283if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11284  cmp -s conftest.i conftest.out \
11285  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
11286fi
11287      $ac_path_lt_DD_found && break 3
11288    done
11289  done
11290  done
11291IFS=$as_save_IFS
11292  if test -z "$ac_cv_path_lt_DD"; then
11293    :
11294  fi
11295else
11296  ac_cv_path_lt_DD=$lt_DD
11297fi
11298
11299rm -f conftest.i conftest2.i conftest.out
11300fi
11301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
11302$as_echo "$ac_cv_path_lt_DD" >&6; }
11303
11304
11305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
11306$as_echo_n "checking how to truncate binary pipes... " >&6; }
11307if ${lt_cv_truncate_bin+:} false; then :
11308  $as_echo_n "(cached) " >&6
11309else
11310  printf 0123456789abcdef0123456789abcdef >conftest.i
11311cat conftest.i conftest.i >conftest2.i
11312lt_cv_truncate_bin=
11313if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11314  cmp -s conftest.i conftest.out \
11315  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
11316fi
11317rm -f conftest.i conftest2.i conftest.out
11318test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
11319fi
11320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
11321$as_echo "$lt_cv_truncate_bin" >&6; }
11322
11323
11324
11325
11326
11327
11328
11329# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
11330func_cc_basename ()
11331{
11332    for cc_temp in $*""; do
11333      case $cc_temp in
11334        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11335        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11336        \-*) ;;
11337        *) break;;
11338      esac
11339    done
11340    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11341}
11342
11343# Check whether --enable-libtool-lock was given.
11344if test "${enable_libtool_lock+set}" = set; then :
11345  enableval=$enable_libtool_lock;
11346fi
11347
11348test no = "$enable_libtool_lock" || enable_libtool_lock=yes
11349
11350# Some flags need to be propagated to the compiler or linker for good
11351# libtool support.
11352case $host in
11353ia64-*-hpux*)
11354  # Find out what ABI is being produced by ac_compile, and set mode
11355  # options accordingly.
11356  echo 'int i;' > conftest.$ac_ext
11357  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11358  (eval $ac_compile) 2>&5
11359  ac_status=$?
11360  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11361  test $ac_status = 0; }; then
11362    case `/usr/bin/file conftest.$ac_objext` in
11363      *ELF-32*)
11364	HPUX_IA64_MODE=32
11365	;;
11366      *ELF-64*)
11367	HPUX_IA64_MODE=64
11368	;;
11369    esac
11370  fi
11371  rm -rf conftest*
11372  ;;
11373*-*-irix6*)
11374  # Find out what ABI is being produced by ac_compile, and set linker
11375  # options accordingly.
11376  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11377  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11378  (eval $ac_compile) 2>&5
11379  ac_status=$?
11380  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11381  test $ac_status = 0; }; then
11382    if test yes = "$lt_cv_prog_gnu_ld"; then
11383      case `/usr/bin/file conftest.$ac_objext` in
11384	*32-bit*)
11385	  LD="${LD-ld} -melf32bsmip"
11386	  ;;
11387	*N32*)
11388	  LD="${LD-ld} -melf32bmipn32"
11389	  ;;
11390	*64-bit*)
11391	  LD="${LD-ld} -melf64bmip"
11392	;;
11393      esac
11394    else
11395      case `/usr/bin/file conftest.$ac_objext` in
11396	*32-bit*)
11397	  LD="${LD-ld} -32"
11398	  ;;
11399	*N32*)
11400	  LD="${LD-ld} -n32"
11401	  ;;
11402	*64-bit*)
11403	  LD="${LD-ld} -64"
11404	  ;;
11405      esac
11406    fi
11407  fi
11408  rm -rf conftest*
11409  ;;
11410
11411mips64*-*linux*)
11412  # Find out what ABI is being produced by ac_compile, and set linker
11413  # options accordingly.
11414  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11415  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11416  (eval $ac_compile) 2>&5
11417  ac_status=$?
11418  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11419  test $ac_status = 0; }; then
11420    emul=elf
11421    case `/usr/bin/file conftest.$ac_objext` in
11422      *32-bit*)
11423	emul="${emul}32"
11424	;;
11425      *64-bit*)
11426	emul="${emul}64"
11427	;;
11428    esac
11429    case `/usr/bin/file conftest.$ac_objext` in
11430      *MSB*)
11431	emul="${emul}btsmip"
11432	;;
11433      *LSB*)
11434	emul="${emul}ltsmip"
11435	;;
11436    esac
11437    case `/usr/bin/file conftest.$ac_objext` in
11438      *N32*)
11439	emul="${emul}n32"
11440	;;
11441    esac
11442    LD="${LD-ld} -m $emul"
11443  fi
11444  rm -rf conftest*
11445  ;;
11446
11447x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
11448s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11449  # Find out what ABI is being produced by ac_compile, and set linker
11450  # options accordingly.  Note that the listed cases only cover the
11451  # situations where additional linker options are needed (such as when
11452  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
11453  # vice versa); the common cases where no linker options are needed do
11454  # not appear in the list.
11455  echo 'int i;' > conftest.$ac_ext
11456  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11457  (eval $ac_compile) 2>&5
11458  ac_status=$?
11459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11460  test $ac_status = 0; }; then
11461    case `/usr/bin/file conftest.o` in
11462      *32-bit*)
11463	case $host in
11464	  x86_64-*kfreebsd*-gnu)
11465	    LD="${LD-ld} -m elf_i386_fbsd"
11466	    ;;
11467	  x86_64-*linux*)
11468	    case `/usr/bin/file conftest.o` in
11469	      *x86-64*)
11470		LD="${LD-ld} -m elf32_x86_64"
11471		;;
11472	      *)
11473		LD="${LD-ld} -m elf_i386"
11474		;;
11475	    esac
11476	    ;;
11477	  powerpc64le-*linux*)
11478	    LD="${LD-ld} -m elf32lppclinux"
11479	    ;;
11480	  powerpc64-*linux*)
11481	    LD="${LD-ld} -m elf32ppclinux"
11482	    ;;
11483	  s390x-*linux*)
11484	    LD="${LD-ld} -m elf_s390"
11485	    ;;
11486	  sparc64-*linux*)
11487	    LD="${LD-ld} -m elf32_sparc"
11488	    ;;
11489	esac
11490	;;
11491      *64-bit*)
11492	case $host in
11493	  x86_64-*kfreebsd*-gnu)
11494	    LD="${LD-ld} -m elf_x86_64_fbsd"
11495	    ;;
11496	  x86_64-*linux*)
11497	    LD="${LD-ld} -m elf_x86_64"
11498	    ;;
11499	  powerpcle-*linux*)
11500	    LD="${LD-ld} -m elf64lppc"
11501	    ;;
11502	  powerpc-*linux*)
11503	    LD="${LD-ld} -m elf64ppc"
11504	    ;;
11505	  s390*-*linux*|s390*-*tpf*)
11506	    LD="${LD-ld} -m elf64_s390"
11507	    ;;
11508	  sparc*-*linux*)
11509	    LD="${LD-ld} -m elf64_sparc"
11510	    ;;
11511	esac
11512	;;
11513    esac
11514  fi
11515  rm -rf conftest*
11516  ;;
11517
11518*-*-sco3.2v5*)
11519  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11520  SAVE_CFLAGS=$CFLAGS
11521  CFLAGS="$CFLAGS -belf"
11522  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11523$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
11524if ${lt_cv_cc_needs_belf+:} false; then :
11525  $as_echo_n "(cached) " >&6
11526else
11527  ac_ext=c
11528ac_cpp='$CPP $CPPFLAGS'
11529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11531ac_compiler_gnu=$ac_cv_c_compiler_gnu
11532
11533     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534/* end confdefs.h.  */
11535
11536int
11537main ()
11538{
11539
11540  ;
11541  return 0;
11542}
11543_ACEOF
11544if ac_fn_c_try_link "$LINENO"; then :
11545  lt_cv_cc_needs_belf=yes
11546else
11547  lt_cv_cc_needs_belf=no
11548fi
11549rm -f core conftest.err conftest.$ac_objext \
11550    conftest$ac_exeext conftest.$ac_ext
11551     ac_ext=c
11552ac_cpp='$CPP $CPPFLAGS'
11553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11555ac_compiler_gnu=$ac_cv_c_compiler_gnu
11556
11557fi
11558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11559$as_echo "$lt_cv_cc_needs_belf" >&6; }
11560  if test yes != "$lt_cv_cc_needs_belf"; then
11561    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11562    CFLAGS=$SAVE_CFLAGS
11563  fi
11564  ;;
11565*-*solaris*)
11566  # Find out what ABI is being produced by ac_compile, and set linker
11567  # options accordingly.
11568  echo 'int i;' > conftest.$ac_ext
11569  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11570  (eval $ac_compile) 2>&5
11571  ac_status=$?
11572  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11573  test $ac_status = 0; }; then
11574    case `/usr/bin/file conftest.o` in
11575    *64-bit*)
11576      case $lt_cv_prog_gnu_ld in
11577      yes*)
11578        case $host in
11579        i?86-*-solaris*|x86_64-*-solaris*)
11580          LD="${LD-ld} -m elf_x86_64"
11581          ;;
11582        sparc*-*-solaris*)
11583          LD="${LD-ld} -m elf64_sparc"
11584          ;;
11585        esac
11586        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
11587        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11588          LD=${LD-ld}_sol2
11589        fi
11590        ;;
11591      *)
11592	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11593	  LD="${LD-ld} -64"
11594	fi
11595	;;
11596      esac
11597      ;;
11598    esac
11599  fi
11600  rm -rf conftest*
11601  ;;
11602esac
11603
11604need_locks=$enable_libtool_lock
11605
11606if test -n "$ac_tool_prefix"; then
11607  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11608set dummy ${ac_tool_prefix}mt; ac_word=$2
11609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11610$as_echo_n "checking for $ac_word... " >&6; }
11611if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11612  $as_echo_n "(cached) " >&6
11613else
11614  if test -n "$MANIFEST_TOOL"; then
11615  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11616else
11617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11618for as_dir in $PATH
11619do
11620  IFS=$as_save_IFS
11621  test -z "$as_dir" && as_dir=.
11622    for ac_exec_ext in '' $ac_executable_extensions; do
11623  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11624    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11625    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11626    break 2
11627  fi
11628done
11629  done
11630IFS=$as_save_IFS
11631
11632fi
11633fi
11634MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11635if test -n "$MANIFEST_TOOL"; then
11636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11637$as_echo "$MANIFEST_TOOL" >&6; }
11638else
11639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11640$as_echo "no" >&6; }
11641fi
11642
11643
11644fi
11645if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11646  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11647  # Extract the first word of "mt", so it can be a program name with args.
11648set dummy mt; ac_word=$2
11649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11650$as_echo_n "checking for $ac_word... " >&6; }
11651if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11652  $as_echo_n "(cached) " >&6
11653else
11654  if test -n "$ac_ct_MANIFEST_TOOL"; then
11655  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11656else
11657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11658for as_dir in $PATH
11659do
11660  IFS=$as_save_IFS
11661  test -z "$as_dir" && as_dir=.
11662    for ac_exec_ext in '' $ac_executable_extensions; do
11663  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11664    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11666    break 2
11667  fi
11668done
11669  done
11670IFS=$as_save_IFS
11671
11672fi
11673fi
11674ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11675if test -n "$ac_ct_MANIFEST_TOOL"; then
11676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11677$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11678else
11679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11680$as_echo "no" >&6; }
11681fi
11682
11683  if test "x$ac_ct_MANIFEST_TOOL" = x; then
11684    MANIFEST_TOOL=":"
11685  else
11686    case $cross_compiling:$ac_tool_warned in
11687yes:)
11688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11690ac_tool_warned=yes ;;
11691esac
11692    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11693  fi
11694else
11695  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11696fi
11697
11698test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11700$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11701if ${lt_cv_path_mainfest_tool+:} false; then :
11702  $as_echo_n "(cached) " >&6
11703else
11704  lt_cv_path_mainfest_tool=no
11705  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11706  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11707  cat conftest.err >&5
11708  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11709    lt_cv_path_mainfest_tool=yes
11710  fi
11711  rm -f conftest*
11712fi
11713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11714$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11715if test yes != "$lt_cv_path_mainfest_tool"; then
11716  MANIFEST_TOOL=:
11717fi
11718
11719
11720
11721
11722
11723
11724  case $host_os in
11725    rhapsody* | darwin*)
11726    if test -n "$ac_tool_prefix"; then
11727  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11728set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11730$as_echo_n "checking for $ac_word... " >&6; }
11731if ${ac_cv_prog_DSYMUTIL+:} false; then :
11732  $as_echo_n "(cached) " >&6
11733else
11734  if test -n "$DSYMUTIL"; then
11735  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11736else
11737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11738for as_dir in $PATH
11739do
11740  IFS=$as_save_IFS
11741  test -z "$as_dir" && as_dir=.
11742    for ac_exec_ext in '' $ac_executable_extensions; do
11743  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11744    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11745    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11746    break 2
11747  fi
11748done
11749  done
11750IFS=$as_save_IFS
11751
11752fi
11753fi
11754DSYMUTIL=$ac_cv_prog_DSYMUTIL
11755if test -n "$DSYMUTIL"; then
11756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11757$as_echo "$DSYMUTIL" >&6; }
11758else
11759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11760$as_echo "no" >&6; }
11761fi
11762
11763
11764fi
11765if test -z "$ac_cv_prog_DSYMUTIL"; then
11766  ac_ct_DSYMUTIL=$DSYMUTIL
11767  # Extract the first word of "dsymutil", so it can be a program name with args.
11768set dummy dsymutil; ac_word=$2
11769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11770$as_echo_n "checking for $ac_word... " >&6; }
11771if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
11772  $as_echo_n "(cached) " >&6
11773else
11774  if test -n "$ac_ct_DSYMUTIL"; then
11775  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11776else
11777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11778for as_dir in $PATH
11779do
11780  IFS=$as_save_IFS
11781  test -z "$as_dir" && as_dir=.
11782    for ac_exec_ext in '' $ac_executable_extensions; do
11783  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11784    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11785    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11786    break 2
11787  fi
11788done
11789  done
11790IFS=$as_save_IFS
11791
11792fi
11793fi
11794ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11795if test -n "$ac_ct_DSYMUTIL"; then
11796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11797$as_echo "$ac_ct_DSYMUTIL" >&6; }
11798else
11799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11800$as_echo "no" >&6; }
11801fi
11802
11803  if test "x$ac_ct_DSYMUTIL" = x; then
11804    DSYMUTIL=":"
11805  else
11806    case $cross_compiling:$ac_tool_warned in
11807yes:)
11808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11810ac_tool_warned=yes ;;
11811esac
11812    DSYMUTIL=$ac_ct_DSYMUTIL
11813  fi
11814else
11815  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11816fi
11817
11818    if test -n "$ac_tool_prefix"; then
11819  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11820set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11822$as_echo_n "checking for $ac_word... " >&6; }
11823if ${ac_cv_prog_NMEDIT+:} false; then :
11824  $as_echo_n "(cached) " >&6
11825else
11826  if test -n "$NMEDIT"; then
11827  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11828else
11829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11830for as_dir in $PATH
11831do
11832  IFS=$as_save_IFS
11833  test -z "$as_dir" && as_dir=.
11834    for ac_exec_ext in '' $ac_executable_extensions; do
11835  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11836    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11837    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11838    break 2
11839  fi
11840done
11841  done
11842IFS=$as_save_IFS
11843
11844fi
11845fi
11846NMEDIT=$ac_cv_prog_NMEDIT
11847if test -n "$NMEDIT"; then
11848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11849$as_echo "$NMEDIT" >&6; }
11850else
11851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11852$as_echo "no" >&6; }
11853fi
11854
11855
11856fi
11857if test -z "$ac_cv_prog_NMEDIT"; then
11858  ac_ct_NMEDIT=$NMEDIT
11859  # Extract the first word of "nmedit", so it can be a program name with args.
11860set dummy nmedit; ac_word=$2
11861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11862$as_echo_n "checking for $ac_word... " >&6; }
11863if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
11864  $as_echo_n "(cached) " >&6
11865else
11866  if test -n "$ac_ct_NMEDIT"; then
11867  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11868else
11869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11870for as_dir in $PATH
11871do
11872  IFS=$as_save_IFS
11873  test -z "$as_dir" && as_dir=.
11874    for ac_exec_ext in '' $ac_executable_extensions; do
11875  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11876    ac_cv_prog_ac_ct_NMEDIT="nmedit"
11877    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11878    break 2
11879  fi
11880done
11881  done
11882IFS=$as_save_IFS
11883
11884fi
11885fi
11886ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11887if test -n "$ac_ct_NMEDIT"; then
11888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11889$as_echo "$ac_ct_NMEDIT" >&6; }
11890else
11891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11892$as_echo "no" >&6; }
11893fi
11894
11895  if test "x$ac_ct_NMEDIT" = x; then
11896    NMEDIT=":"
11897  else
11898    case $cross_compiling:$ac_tool_warned in
11899yes:)
11900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11902ac_tool_warned=yes ;;
11903esac
11904    NMEDIT=$ac_ct_NMEDIT
11905  fi
11906else
11907  NMEDIT="$ac_cv_prog_NMEDIT"
11908fi
11909
11910    if test -n "$ac_tool_prefix"; then
11911  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11912set dummy ${ac_tool_prefix}lipo; ac_word=$2
11913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11914$as_echo_n "checking for $ac_word... " >&6; }
11915if ${ac_cv_prog_LIPO+:} false; then :
11916  $as_echo_n "(cached) " >&6
11917else
11918  if test -n "$LIPO"; then
11919  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11920else
11921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922for as_dir in $PATH
11923do
11924  IFS=$as_save_IFS
11925  test -z "$as_dir" && as_dir=.
11926    for ac_exec_ext in '' $ac_executable_extensions; do
11927  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11928    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11929    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11930    break 2
11931  fi
11932done
11933  done
11934IFS=$as_save_IFS
11935
11936fi
11937fi
11938LIPO=$ac_cv_prog_LIPO
11939if test -n "$LIPO"; then
11940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11941$as_echo "$LIPO" >&6; }
11942else
11943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944$as_echo "no" >&6; }
11945fi
11946
11947
11948fi
11949if test -z "$ac_cv_prog_LIPO"; then
11950  ac_ct_LIPO=$LIPO
11951  # Extract the first word of "lipo", so it can be a program name with args.
11952set dummy lipo; ac_word=$2
11953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11954$as_echo_n "checking for $ac_word... " >&6; }
11955if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
11956  $as_echo_n "(cached) " >&6
11957else
11958  if test -n "$ac_ct_LIPO"; then
11959  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11960else
11961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11962for as_dir in $PATH
11963do
11964  IFS=$as_save_IFS
11965  test -z "$as_dir" && as_dir=.
11966    for ac_exec_ext in '' $ac_executable_extensions; do
11967  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11968    ac_cv_prog_ac_ct_LIPO="lipo"
11969    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11970    break 2
11971  fi
11972done
11973  done
11974IFS=$as_save_IFS
11975
11976fi
11977fi
11978ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11979if test -n "$ac_ct_LIPO"; then
11980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11981$as_echo "$ac_ct_LIPO" >&6; }
11982else
11983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11984$as_echo "no" >&6; }
11985fi
11986
11987  if test "x$ac_ct_LIPO" = x; then
11988    LIPO=":"
11989  else
11990    case $cross_compiling:$ac_tool_warned in
11991yes:)
11992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11994ac_tool_warned=yes ;;
11995esac
11996    LIPO=$ac_ct_LIPO
11997  fi
11998else
11999  LIPO="$ac_cv_prog_LIPO"
12000fi
12001
12002    if test -n "$ac_tool_prefix"; then
12003  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12004set dummy ${ac_tool_prefix}otool; ac_word=$2
12005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12006$as_echo_n "checking for $ac_word... " >&6; }
12007if ${ac_cv_prog_OTOOL+:} false; then :
12008  $as_echo_n "(cached) " >&6
12009else
12010  if test -n "$OTOOL"; then
12011  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12012else
12013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12014for as_dir in $PATH
12015do
12016  IFS=$as_save_IFS
12017  test -z "$as_dir" && as_dir=.
12018    for ac_exec_ext in '' $ac_executable_extensions; do
12019  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12020    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12021    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12022    break 2
12023  fi
12024done
12025  done
12026IFS=$as_save_IFS
12027
12028fi
12029fi
12030OTOOL=$ac_cv_prog_OTOOL
12031if test -n "$OTOOL"; then
12032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12033$as_echo "$OTOOL" >&6; }
12034else
12035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12036$as_echo "no" >&6; }
12037fi
12038
12039
12040fi
12041if test -z "$ac_cv_prog_OTOOL"; then
12042  ac_ct_OTOOL=$OTOOL
12043  # Extract the first word of "otool", so it can be a program name with args.
12044set dummy otool; ac_word=$2
12045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12046$as_echo_n "checking for $ac_word... " >&6; }
12047if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
12048  $as_echo_n "(cached) " >&6
12049else
12050  if test -n "$ac_ct_OTOOL"; then
12051  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12052else
12053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12054for as_dir in $PATH
12055do
12056  IFS=$as_save_IFS
12057  test -z "$as_dir" && as_dir=.
12058    for ac_exec_ext in '' $ac_executable_extensions; do
12059  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12060    ac_cv_prog_ac_ct_OTOOL="otool"
12061    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12062    break 2
12063  fi
12064done
12065  done
12066IFS=$as_save_IFS
12067
12068fi
12069fi
12070ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12071if test -n "$ac_ct_OTOOL"; then
12072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12073$as_echo "$ac_ct_OTOOL" >&6; }
12074else
12075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12076$as_echo "no" >&6; }
12077fi
12078
12079  if test "x$ac_ct_OTOOL" = x; then
12080    OTOOL=":"
12081  else
12082    case $cross_compiling:$ac_tool_warned in
12083yes:)
12084{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12085$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12086ac_tool_warned=yes ;;
12087esac
12088    OTOOL=$ac_ct_OTOOL
12089  fi
12090else
12091  OTOOL="$ac_cv_prog_OTOOL"
12092fi
12093
12094    if test -n "$ac_tool_prefix"; then
12095  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12096set dummy ${ac_tool_prefix}otool64; ac_word=$2
12097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12098$as_echo_n "checking for $ac_word... " >&6; }
12099if ${ac_cv_prog_OTOOL64+:} false; then :
12100  $as_echo_n "(cached) " >&6
12101else
12102  if test -n "$OTOOL64"; then
12103  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12104else
12105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12106for as_dir in $PATH
12107do
12108  IFS=$as_save_IFS
12109  test -z "$as_dir" && as_dir=.
12110    for ac_exec_ext in '' $ac_executable_extensions; do
12111  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12112    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12113    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12114    break 2
12115  fi
12116done
12117  done
12118IFS=$as_save_IFS
12119
12120fi
12121fi
12122OTOOL64=$ac_cv_prog_OTOOL64
12123if test -n "$OTOOL64"; then
12124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12125$as_echo "$OTOOL64" >&6; }
12126else
12127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12128$as_echo "no" >&6; }
12129fi
12130
12131
12132fi
12133if test -z "$ac_cv_prog_OTOOL64"; then
12134  ac_ct_OTOOL64=$OTOOL64
12135  # Extract the first word of "otool64", so it can be a program name with args.
12136set dummy otool64; ac_word=$2
12137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12138$as_echo_n "checking for $ac_word... " >&6; }
12139if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
12140  $as_echo_n "(cached) " >&6
12141else
12142  if test -n "$ac_ct_OTOOL64"; then
12143  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12144else
12145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12146for as_dir in $PATH
12147do
12148  IFS=$as_save_IFS
12149  test -z "$as_dir" && as_dir=.
12150    for ac_exec_ext in '' $ac_executable_extensions; do
12151  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12152    ac_cv_prog_ac_ct_OTOOL64="otool64"
12153    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12154    break 2
12155  fi
12156done
12157  done
12158IFS=$as_save_IFS
12159
12160fi
12161fi
12162ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12163if test -n "$ac_ct_OTOOL64"; then
12164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12165$as_echo "$ac_ct_OTOOL64" >&6; }
12166else
12167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12168$as_echo "no" >&6; }
12169fi
12170
12171  if test "x$ac_ct_OTOOL64" = x; then
12172    OTOOL64=":"
12173  else
12174    case $cross_compiling:$ac_tool_warned in
12175yes:)
12176{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12177$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12178ac_tool_warned=yes ;;
12179esac
12180    OTOOL64=$ac_ct_OTOOL64
12181  fi
12182else
12183  OTOOL64="$ac_cv_prog_OTOOL64"
12184fi
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12213$as_echo_n "checking for -single_module linker flag... " >&6; }
12214if ${lt_cv_apple_cc_single_mod+:} false; then :
12215  $as_echo_n "(cached) " >&6
12216else
12217  lt_cv_apple_cc_single_mod=no
12218      if test -z "$LT_MULTI_MODULE"; then
12219	# By default we will add the -single_module flag. You can override
12220	# by either setting the environment variable LT_MULTI_MODULE
12221	# non-empty at configure time, or by adding -multi_module to the
12222	# link flags.
12223	rm -rf libconftest.dylib*
12224	echo "int foo(void){return 1;}" > conftest.c
12225	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12226-dynamiclib -Wl,-single_module conftest.c" >&5
12227	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12228	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12229        _lt_result=$?
12230	# If there is a non-empty error log, and "single_module"
12231	# appears in it, assume the flag caused a linker warning
12232        if test -s conftest.err && $GREP single_module conftest.err; then
12233	  cat conftest.err >&5
12234	# Otherwise, if the output was created with a 0 exit code from
12235	# the compiler, it worked.
12236	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
12237	  lt_cv_apple_cc_single_mod=yes
12238	else
12239	  cat conftest.err >&5
12240	fi
12241	rm -rf libconftest.dylib*
12242	rm -f conftest.*
12243      fi
12244fi
12245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12246$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12247
12248    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12249$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
12250if ${lt_cv_ld_exported_symbols_list+:} false; then :
12251  $as_echo_n "(cached) " >&6
12252else
12253  lt_cv_ld_exported_symbols_list=no
12254      save_LDFLAGS=$LDFLAGS
12255      echo "_main" > conftest.sym
12256      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12257      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258/* end confdefs.h.  */
12259
12260int
12261main ()
12262{
12263
12264  ;
12265  return 0;
12266}
12267_ACEOF
12268if ac_fn_c_try_link "$LINENO"; then :
12269  lt_cv_ld_exported_symbols_list=yes
12270else
12271  lt_cv_ld_exported_symbols_list=no
12272fi
12273rm -f core conftest.err conftest.$ac_objext \
12274    conftest$ac_exeext conftest.$ac_ext
12275	LDFLAGS=$save_LDFLAGS
12276
12277fi
12278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12279$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
12280
12281    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12282$as_echo_n "checking for -force_load linker flag... " >&6; }
12283if ${lt_cv_ld_force_load+:} false; then :
12284  $as_echo_n "(cached) " >&6
12285else
12286  lt_cv_ld_force_load=no
12287      cat > conftest.c << _LT_EOF
12288int forced_loaded() { return 2;}
12289_LT_EOF
12290      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12291      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12292      echo "$AR cru libconftest.a conftest.o" >&5
12293      $AR cru libconftest.a conftest.o 2>&5
12294      echo "$RANLIB libconftest.a" >&5
12295      $RANLIB libconftest.a 2>&5
12296      cat > conftest.c << _LT_EOF
12297int main() { return 0;}
12298_LT_EOF
12299      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12300      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12301      _lt_result=$?
12302      if test -s conftest.err && $GREP force_load conftest.err; then
12303	cat conftest.err >&5
12304      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
12305	lt_cv_ld_force_load=yes
12306      else
12307	cat conftest.err >&5
12308      fi
12309        rm -f conftest.err libconftest.a conftest conftest.c
12310        rm -rf conftest.dSYM
12311
12312fi
12313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12314$as_echo "$lt_cv_ld_force_load" >&6; }
12315    case $host_os in
12316    rhapsody* | darwin1.[012])
12317      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
12318    darwin1.*)
12319      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12320    darwin*) # darwin 5.x on
12321      # if running on 10.5 or later, the deployment target defaults
12322      # to the OS version, if on x86, and 10.4, the deployment
12323      # target defaults to 10.4. Don't you love it?
12324      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12325	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12326	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
12327	10.[012][,.]*)
12328	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12329	10.*)
12330	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
12331      esac
12332    ;;
12333  esac
12334    if test yes = "$lt_cv_apple_cc_single_mod"; then
12335      _lt_dar_single_mod='$single_module'
12336    fi
12337    if test yes = "$lt_cv_ld_exported_symbols_list"; then
12338      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
12339    else
12340      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
12341    fi
12342    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
12343      _lt_dsymutil='~$DSYMUTIL $lib || :'
12344    else
12345      _lt_dsymutil=
12346    fi
12347    ;;
12348  esac
12349
12350# func_munge_path_list VARIABLE PATH
12351# -----------------------------------
12352# VARIABLE is name of variable containing _space_ separated list of
12353# directories to be munged by the contents of PATH, which is string
12354# having a format:
12355# "DIR[:DIR]:"
12356#       string "DIR[ DIR]" will be prepended to VARIABLE
12357# ":DIR[:DIR]"
12358#       string "DIR[ DIR]" will be appended to VARIABLE
12359# "DIRP[:DIRP]::[DIRA:]DIRA"
12360#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
12361#       "DIRA[ DIRA]" will be appended to VARIABLE
12362# "DIR[:DIR]"
12363#       VARIABLE will be replaced by "DIR[ DIR]"
12364func_munge_path_list ()
12365{
12366    case x$2 in
12367    x)
12368        ;;
12369    *:)
12370        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
12371        ;;
12372    x:*)
12373        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
12374        ;;
12375    *::*)
12376        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
12377        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
12378        ;;
12379    *)
12380        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
12381        ;;
12382    esac
12383}
12384
12385for ac_header in dlfcn.h
12386do :
12387  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12388"
12389if test "x$ac_cv_header_dlfcn_h" = xyes; then :
12390  cat >>confdefs.h <<_ACEOF
12391#define HAVE_DLFCN_H 1
12392_ACEOF
12393
12394fi
12395
12396done
12397
12398
12399
12400
12401
12402# Set options
12403
12404
12405
12406        enable_dlopen=no
12407
12408
12409  enable_win32_dll=no
12410
12411
12412            # Check whether --enable-shared was given.
12413if test "${enable_shared+set}" = set; then :
12414  enableval=$enable_shared; p=${PACKAGE-default}
12415    case $enableval in
12416    yes) enable_shared=yes ;;
12417    no) enable_shared=no ;;
12418    *)
12419      enable_shared=no
12420      # Look at the argument we got.  We use all the common list separators.
12421      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12422      for pkg in $enableval; do
12423	IFS=$lt_save_ifs
12424	if test "X$pkg" = "X$p"; then
12425	  enable_shared=yes
12426	fi
12427      done
12428      IFS=$lt_save_ifs
12429      ;;
12430    esac
12431else
12432  enable_shared=yes
12433fi
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443  # Check whether --enable-static was given.
12444if test "${enable_static+set}" = set; then :
12445  enableval=$enable_static; p=${PACKAGE-default}
12446    case $enableval in
12447    yes) enable_static=yes ;;
12448    no) enable_static=no ;;
12449    *)
12450     enable_static=no
12451      # Look at the argument we got.  We use all the common list separators.
12452      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12453      for pkg in $enableval; do
12454	IFS=$lt_save_ifs
12455	if test "X$pkg" = "X$p"; then
12456	  enable_static=yes
12457	fi
12458      done
12459      IFS=$lt_save_ifs
12460      ;;
12461    esac
12462else
12463  enable_static=yes
12464fi
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475# Check whether --with-pic was given.
12476if test "${with_pic+set}" = set; then :
12477  withval=$with_pic; lt_p=${PACKAGE-default}
12478    case $withval in
12479    yes|no) pic_mode=$withval ;;
12480    *)
12481      pic_mode=default
12482      # Look at the argument we got.  We use all the common list separators.
12483      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12484      for lt_pkg in $withval; do
12485	IFS=$lt_save_ifs
12486	if test "X$lt_pkg" = "X$lt_p"; then
12487	  pic_mode=yes
12488	fi
12489      done
12490      IFS=$lt_save_ifs
12491      ;;
12492    esac
12493else
12494  pic_mode=default
12495fi
12496
12497
12498
12499
12500
12501
12502
12503
12504  # Check whether --enable-fast-install was given.
12505if test "${enable_fast_install+set}" = set; then :
12506  enableval=$enable_fast_install; p=${PACKAGE-default}
12507    case $enableval in
12508    yes) enable_fast_install=yes ;;
12509    no) enable_fast_install=no ;;
12510    *)
12511      enable_fast_install=no
12512      # Look at the argument we got.  We use all the common list separators.
12513      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12514      for pkg in $enableval; do
12515	IFS=$lt_save_ifs
12516	if test "X$pkg" = "X$p"; then
12517	  enable_fast_install=yes
12518	fi
12519      done
12520      IFS=$lt_save_ifs
12521      ;;
12522    esac
12523else
12524  enable_fast_install=yes
12525fi
12526
12527
12528
12529
12530
12531
12532
12533
12534  shared_archive_member_spec=
12535case $host,$enable_shared in
12536power*-*-aix[5-9]*,yes)
12537  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
12538$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
12539
12540# Check whether --with-aix-soname was given.
12541if test "${with_aix_soname+set}" = set; then :
12542  withval=$with_aix_soname; case $withval in
12543    aix|svr4|both)
12544      ;;
12545    *)
12546      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
12547      ;;
12548    esac
12549    lt_cv_with_aix_soname=$with_aix_soname
12550else
12551  if ${lt_cv_with_aix_soname+:} false; then :
12552  $as_echo_n "(cached) " >&6
12553else
12554  lt_cv_with_aix_soname=aix
12555fi
12556
12557    with_aix_soname=$lt_cv_with_aix_soname
12558fi
12559
12560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
12561$as_echo "$with_aix_soname" >&6; }
12562  if test aix != "$with_aix_soname"; then
12563    # For the AIX way of multilib, we name the shared archive member
12564    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
12565    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
12566    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
12567    # the AIX toolchain works better with OBJECT_MODE set (default 32).
12568    if test 64 = "${OBJECT_MODE-32}"; then
12569      shared_archive_member_spec=shr_64
12570    else
12571      shared_archive_member_spec=shr
12572    fi
12573  fi
12574  ;;
12575*)
12576  with_aix_soname=aix
12577  ;;
12578esac
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589# This can be used to rebuild libtool when needed
12590LIBTOOL_DEPS=$ltmain
12591
12592# Always use our own libtool.
12593LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624test -z "$LN_S" && LN_S="ln -s"
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639if test -n "${ZSH_VERSION+set}"; then
12640   setopt NO_GLOB_SUBST
12641fi
12642
12643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12644$as_echo_n "checking for objdir... " >&6; }
12645if ${lt_cv_objdir+:} false; then :
12646  $as_echo_n "(cached) " >&6
12647else
12648  rm -f .libs 2>/dev/null
12649mkdir .libs 2>/dev/null
12650if test -d .libs; then
12651  lt_cv_objdir=.libs
12652else
12653  # MS-DOS does not allow filenames that begin with a dot.
12654  lt_cv_objdir=_libs
12655fi
12656rmdir .libs 2>/dev/null
12657fi
12658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12659$as_echo "$lt_cv_objdir" >&6; }
12660objdir=$lt_cv_objdir
12661
12662
12663
12664
12665
12666cat >>confdefs.h <<_ACEOF
12667#define LT_OBJDIR "$lt_cv_objdir/"
12668_ACEOF
12669
12670
12671
12672
12673case $host_os in
12674aix3*)
12675  # AIX sometimes has problems with the GCC collect2 program.  For some
12676  # reason, if we set the COLLECT_NAMES environment variable, the problems
12677  # vanish in a puff of smoke.
12678  if test set != "${COLLECT_NAMES+set}"; then
12679    COLLECT_NAMES=
12680    export COLLECT_NAMES
12681  fi
12682  ;;
12683esac
12684
12685# Global variables:
12686ofile=libtool
12687can_build_shared=yes
12688
12689# All known linkers require a '.a' archive for static linking (except MSVC,
12690# which needs '.lib').
12691libext=a
12692
12693with_gnu_ld=$lt_cv_prog_gnu_ld
12694
12695old_CC=$CC
12696old_CFLAGS=$CFLAGS
12697
12698# Set sane defaults for various variables
12699test -z "$CC" && CC=cc
12700test -z "$LTCC" && LTCC=$CC
12701test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12702test -z "$LD" && LD=ld
12703test -z "$ac_objext" && ac_objext=o
12704
12705func_cc_basename $compiler
12706cc_basename=$func_cc_basename_result
12707
12708
12709# Only perform the check for file, if the check method requires it
12710test -z "$MAGIC_CMD" && MAGIC_CMD=file
12711case $deplibs_check_method in
12712file_magic*)
12713  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12714    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12715$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12716if ${lt_cv_path_MAGIC_CMD+:} false; then :
12717  $as_echo_n "(cached) " >&6
12718else
12719  case $MAGIC_CMD in
12720[\\/*] |  ?:[\\/]*)
12721  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12722  ;;
12723*)
12724  lt_save_MAGIC_CMD=$MAGIC_CMD
12725  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12726  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12727  for ac_dir in $ac_dummy; do
12728    IFS=$lt_save_ifs
12729    test -z "$ac_dir" && ac_dir=.
12730    if test -f "$ac_dir/${ac_tool_prefix}file"; then
12731      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
12732      if test -n "$file_magic_test_file"; then
12733	case $deplibs_check_method in
12734	"file_magic "*)
12735	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12736	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12737	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12738	    $EGREP "$file_magic_regex" > /dev/null; then
12739	    :
12740	  else
12741	    cat <<_LT_EOF 1>&2
12742
12743*** Warning: the command libtool uses to detect shared libraries,
12744*** $file_magic_cmd, produces output that libtool cannot recognize.
12745*** The result is that libtool may fail to recognize shared libraries
12746*** as such.  This will affect the creation of libtool libraries that
12747*** depend on shared libraries, but programs linked with such libtool
12748*** libraries will work regardless of this problem.  Nevertheless, you
12749*** may want to report the problem to your system manager and/or to
12750*** bug-libtool@gnu.org
12751
12752_LT_EOF
12753	  fi ;;
12754	esac
12755      fi
12756      break
12757    fi
12758  done
12759  IFS=$lt_save_ifs
12760  MAGIC_CMD=$lt_save_MAGIC_CMD
12761  ;;
12762esac
12763fi
12764
12765MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12766if test -n "$MAGIC_CMD"; then
12767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12768$as_echo "$MAGIC_CMD" >&6; }
12769else
12770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771$as_echo "no" >&6; }
12772fi
12773
12774
12775
12776
12777
12778if test -z "$lt_cv_path_MAGIC_CMD"; then
12779  if test -n "$ac_tool_prefix"; then
12780    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12781$as_echo_n "checking for file... " >&6; }
12782if ${lt_cv_path_MAGIC_CMD+:} false; then :
12783  $as_echo_n "(cached) " >&6
12784else
12785  case $MAGIC_CMD in
12786[\\/*] |  ?:[\\/]*)
12787  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12788  ;;
12789*)
12790  lt_save_MAGIC_CMD=$MAGIC_CMD
12791  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12792  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12793  for ac_dir in $ac_dummy; do
12794    IFS=$lt_save_ifs
12795    test -z "$ac_dir" && ac_dir=.
12796    if test -f "$ac_dir/file"; then
12797      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
12798      if test -n "$file_magic_test_file"; then
12799	case $deplibs_check_method in
12800	"file_magic "*)
12801	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12802	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12803	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12804	    $EGREP "$file_magic_regex" > /dev/null; then
12805	    :
12806	  else
12807	    cat <<_LT_EOF 1>&2
12808
12809*** Warning: the command libtool uses to detect shared libraries,
12810*** $file_magic_cmd, produces output that libtool cannot recognize.
12811*** The result is that libtool may fail to recognize shared libraries
12812*** as such.  This will affect the creation of libtool libraries that
12813*** depend on shared libraries, but programs linked with such libtool
12814*** libraries will work regardless of this problem.  Nevertheless, you
12815*** may want to report the problem to your system manager and/or to
12816*** bug-libtool@gnu.org
12817
12818_LT_EOF
12819	  fi ;;
12820	esac
12821      fi
12822      break
12823    fi
12824  done
12825  IFS=$lt_save_ifs
12826  MAGIC_CMD=$lt_save_MAGIC_CMD
12827  ;;
12828esac
12829fi
12830
12831MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12832if test -n "$MAGIC_CMD"; then
12833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12834$as_echo "$MAGIC_CMD" >&6; }
12835else
12836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12837$as_echo "no" >&6; }
12838fi
12839
12840
12841  else
12842    MAGIC_CMD=:
12843  fi
12844fi
12845
12846  fi
12847  ;;
12848esac
12849
12850# Use C for the default configuration in the libtool script
12851
12852lt_save_CC=$CC
12853ac_ext=c
12854ac_cpp='$CPP $CPPFLAGS'
12855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12857ac_compiler_gnu=$ac_cv_c_compiler_gnu
12858
12859
12860# Source file extension for C test sources.
12861ac_ext=c
12862
12863# Object file extension for compiled C test sources.
12864objext=o
12865objext=$objext
12866
12867# Code to be used in simple compile tests
12868lt_simple_compile_test_code="int some_variable = 0;"
12869
12870# Code to be used in simple link tests
12871lt_simple_link_test_code='int main(){return(0);}'
12872
12873
12874
12875
12876
12877
12878
12879# If no C compiler was specified, use CC.
12880LTCC=${LTCC-"$CC"}
12881
12882# If no C compiler flags were specified, use CFLAGS.
12883LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12884
12885# Allow CC to be a program name with arguments.
12886compiler=$CC
12887
12888# Save the default compiler, since it gets overwritten when the other
12889# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12890compiler_DEFAULT=$CC
12891
12892# save warnings/boilerplate of simple test code
12893ac_outfile=conftest.$ac_objext
12894echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12895eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12896_lt_compiler_boilerplate=`cat conftest.err`
12897$RM conftest*
12898
12899ac_outfile=conftest.$ac_objext
12900echo "$lt_simple_link_test_code" >conftest.$ac_ext
12901eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12902_lt_linker_boilerplate=`cat conftest.err`
12903$RM -r conftest*
12904
12905
12906## CAVEAT EMPTOR:
12907## There is no encapsulation within the following macros, do not change
12908## the running order or otherwise move them around unless you know exactly
12909## what you are doing...
12910if test -n "$compiler"; then
12911
12912lt_prog_compiler_no_builtin_flag=
12913
12914if test yes = "$GCC"; then
12915  case $cc_basename in
12916  nvcc*)
12917    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12918  *)
12919    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12920  esac
12921
12922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12923$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12924if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12925  $as_echo_n "(cached) " >&6
12926else
12927  lt_cv_prog_compiler_rtti_exceptions=no
12928   ac_outfile=conftest.$ac_objext
12929   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12930   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
12931   # Insert the option either (1) after the last *FLAGS variable, or
12932   # (2) before a word containing "conftest.", or (3) at the end.
12933   # Note that $ac_compile itself does not contain backslashes and begins
12934   # with a dollar sign (not a hyphen), so the echo should work correctly.
12935   # The option is referenced via a variable to avoid confusing sed.
12936   lt_compile=`echo "$ac_compile" | $SED \
12937   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12938   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12939   -e 's:$: $lt_compiler_flag:'`
12940   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12941   (eval "$lt_compile" 2>conftest.err)
12942   ac_status=$?
12943   cat conftest.err >&5
12944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945   if (exit $ac_status) && test -s "$ac_outfile"; then
12946     # The compiler can only warn and ignore the option if not recognized
12947     # So say no if there are warnings other than the usual output.
12948     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12949     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12950     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12951       lt_cv_prog_compiler_rtti_exceptions=yes
12952     fi
12953   fi
12954   $RM conftest*
12955
12956fi
12957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12958$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12959
12960if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12961    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12962else
12963    :
12964fi
12965
12966fi
12967
12968
12969
12970
12971
12972
12973  lt_prog_compiler_wl=
12974lt_prog_compiler_pic=
12975lt_prog_compiler_static=
12976
12977
12978  if test yes = "$GCC"; then
12979    lt_prog_compiler_wl='-Wl,'
12980    lt_prog_compiler_static='-static'
12981
12982    case $host_os in
12983      aix*)
12984      # All AIX code is PIC.
12985      if test ia64 = "$host_cpu"; then
12986	# AIX 5 now supports IA64 processor
12987	lt_prog_compiler_static='-Bstatic'
12988      fi
12989      lt_prog_compiler_pic='-fPIC'
12990      ;;
12991
12992    amigaos*)
12993      case $host_cpu in
12994      powerpc)
12995            # see comment about AmigaOS4 .so support
12996            lt_prog_compiler_pic='-fPIC'
12997        ;;
12998      m68k)
12999            # FIXME: we need at least 68020 code to build shared libraries, but
13000            # adding the '-m68020' flag to GCC prevents building anything better,
13001            # like '-m68040'.
13002            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13003        ;;
13004      esac
13005      ;;
13006
13007    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13008      # PIC is the default for these OSes.
13009      ;;
13010
13011    mingw* | cygwin* | pw32* | os2* | cegcc*)
13012      # This hack is so that the source file can tell whether it is being
13013      # built for inclusion in a dll (and should export symbols for example).
13014      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13015      # (--disable-auto-import) libraries
13016      lt_prog_compiler_pic='-DDLL_EXPORT'
13017      case $host_os in
13018      os2*)
13019	lt_prog_compiler_static='$wl-static'
13020	;;
13021      esac
13022      ;;
13023
13024    darwin* | rhapsody*)
13025      # PIC is the default on this platform
13026      # Common symbols not allowed in MH_DYLIB files
13027      lt_prog_compiler_pic='-fno-common'
13028      ;;
13029
13030    haiku*)
13031      # PIC is the default for Haiku.
13032      # The "-static" flag exists, but is broken.
13033      lt_prog_compiler_static=
13034      ;;
13035
13036    hpux*)
13037      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13038      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13039      # sets the default TLS model and affects inlining.
13040      case $host_cpu in
13041      hppa*64*)
13042	# +Z the default
13043	;;
13044      *)
13045	lt_prog_compiler_pic='-fPIC'
13046	;;
13047      esac
13048      ;;
13049
13050    interix[3-9]*)
13051      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13052      # Instead, we relocate shared libraries at runtime.
13053      ;;
13054
13055    msdosdjgpp*)
13056      # Just because we use GCC doesn't mean we suddenly get shared libraries
13057      # on systems that don't support them.
13058      lt_prog_compiler_can_build_shared=no
13059      enable_shared=no
13060      ;;
13061
13062    *nto* | *qnx*)
13063      # QNX uses GNU C++, but need to define -shared option too, otherwise
13064      # it will coredump.
13065      lt_prog_compiler_pic='-fPIC -shared'
13066      ;;
13067
13068    sysv4*MP*)
13069      if test -d /usr/nec; then
13070	lt_prog_compiler_pic=-Kconform_pic
13071      fi
13072      ;;
13073
13074    *)
13075      lt_prog_compiler_pic='-fPIC'
13076      ;;
13077    esac
13078
13079    case $cc_basename in
13080    nvcc*) # Cuda Compiler Driver 2.2
13081      lt_prog_compiler_wl='-Xlinker '
13082      if test -n "$lt_prog_compiler_pic"; then
13083        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13084      fi
13085      ;;
13086    esac
13087  else
13088    # PORTME Check for flag to pass linker flags through the system compiler.
13089    case $host_os in
13090    aix*)
13091      lt_prog_compiler_wl='-Wl,'
13092      if test ia64 = "$host_cpu"; then
13093	# AIX 5 now supports IA64 processor
13094	lt_prog_compiler_static='-Bstatic'
13095      else
13096	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13097      fi
13098      ;;
13099
13100    darwin* | rhapsody*)
13101      # PIC is the default on this platform
13102      # Common symbols not allowed in MH_DYLIB files
13103      lt_prog_compiler_pic='-fno-common'
13104      case $cc_basename in
13105      nagfor*)
13106        # NAG Fortran compiler
13107        lt_prog_compiler_wl='-Wl,-Wl,,'
13108        lt_prog_compiler_pic='-PIC'
13109        lt_prog_compiler_static='-Bstatic'
13110        ;;
13111      esac
13112      ;;
13113
13114    mingw* | cygwin* | pw32* | os2* | cegcc*)
13115      # This hack is so that the source file can tell whether it is being
13116      # built for inclusion in a dll (and should export symbols for example).
13117      lt_prog_compiler_pic='-DDLL_EXPORT'
13118      case $host_os in
13119      os2*)
13120	lt_prog_compiler_static='$wl-static'
13121	;;
13122      esac
13123      ;;
13124
13125    hpux9* | hpux10* | hpux11*)
13126      lt_prog_compiler_wl='-Wl,'
13127      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13128      # not for PA HP-UX.
13129      case $host_cpu in
13130      hppa*64*|ia64*)
13131	# +Z the default
13132	;;
13133      *)
13134	lt_prog_compiler_pic='+Z'
13135	;;
13136      esac
13137      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13138      lt_prog_compiler_static='$wl-a ${wl}archive'
13139      ;;
13140
13141    irix5* | irix6* | nonstopux*)
13142      lt_prog_compiler_wl='-Wl,'
13143      # PIC (with -KPIC) is the default.
13144      lt_prog_compiler_static='-non_shared'
13145      ;;
13146
13147    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13148      case $cc_basename in
13149      # old Intel for x86_64, which still supported -KPIC.
13150      ecc*)
13151	lt_prog_compiler_wl='-Wl,'
13152	lt_prog_compiler_pic='-KPIC'
13153	lt_prog_compiler_static='-static'
13154        ;;
13155      # icc used to be incompatible with GCC.
13156      # ICC 10 doesn't accept -KPIC any more.
13157      icc* | ifort*)
13158	lt_prog_compiler_wl='-Wl,'
13159	lt_prog_compiler_pic='-fPIC'
13160	lt_prog_compiler_static='-static'
13161        ;;
13162      # Lahey Fortran 8.1.
13163      lf95*)
13164	lt_prog_compiler_wl='-Wl,'
13165	lt_prog_compiler_pic='--shared'
13166	lt_prog_compiler_static='--static'
13167	;;
13168      nagfor*)
13169	# NAG Fortran compiler
13170	lt_prog_compiler_wl='-Wl,-Wl,,'
13171	lt_prog_compiler_pic='-PIC'
13172	lt_prog_compiler_static='-Bstatic'
13173	;;
13174      tcc*)
13175	# Fabrice Bellard et al's Tiny C Compiler
13176	lt_prog_compiler_wl='-Wl,'
13177	lt_prog_compiler_pic='-fPIC'
13178	lt_prog_compiler_static='-static'
13179	;;
13180      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13181        # Portland Group compilers (*not* the Pentium gcc compiler,
13182	# which looks to be a dead project)
13183	lt_prog_compiler_wl='-Wl,'
13184	lt_prog_compiler_pic='-fpic'
13185	lt_prog_compiler_static='-Bstatic'
13186        ;;
13187      ccc*)
13188        lt_prog_compiler_wl='-Wl,'
13189        # All Alpha code is PIC.
13190        lt_prog_compiler_static='-non_shared'
13191        ;;
13192      xl* | bgxl* | bgf* | mpixl*)
13193	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13194	lt_prog_compiler_wl='-Wl,'
13195	lt_prog_compiler_pic='-qpic'
13196	lt_prog_compiler_static='-qstaticlink'
13197	;;
13198      *)
13199	case `$CC -V 2>&1 | sed 5q` in
13200	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13201	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
13202	  lt_prog_compiler_pic='-KPIC'
13203	  lt_prog_compiler_static='-Bstatic'
13204	  lt_prog_compiler_wl=''
13205	  ;;
13206	*Sun\ F* | *Sun*Fortran*)
13207	  lt_prog_compiler_pic='-KPIC'
13208	  lt_prog_compiler_static='-Bstatic'
13209	  lt_prog_compiler_wl='-Qoption ld '
13210	  ;;
13211	*Sun\ C*)
13212	  # Sun C 5.9
13213	  lt_prog_compiler_pic='-KPIC'
13214	  lt_prog_compiler_static='-Bstatic'
13215	  lt_prog_compiler_wl='-Wl,'
13216	  ;;
13217        *Intel*\ [CF]*Compiler*)
13218	  lt_prog_compiler_wl='-Wl,'
13219	  lt_prog_compiler_pic='-fPIC'
13220	  lt_prog_compiler_static='-static'
13221	  ;;
13222	*Portland\ Group*)
13223	  lt_prog_compiler_wl='-Wl,'
13224	  lt_prog_compiler_pic='-fpic'
13225	  lt_prog_compiler_static='-Bstatic'
13226	  ;;
13227	esac
13228	;;
13229      esac
13230      ;;
13231
13232    newsos6)
13233      lt_prog_compiler_pic='-KPIC'
13234      lt_prog_compiler_static='-Bstatic'
13235      ;;
13236
13237    *nto* | *qnx*)
13238      # QNX uses GNU C++, but need to define -shared option too, otherwise
13239      # it will coredump.
13240      lt_prog_compiler_pic='-fPIC -shared'
13241      ;;
13242
13243    osf3* | osf4* | osf5*)
13244      lt_prog_compiler_wl='-Wl,'
13245      # All OSF/1 code is PIC.
13246      lt_prog_compiler_static='-non_shared'
13247      ;;
13248
13249    rdos*)
13250      lt_prog_compiler_static='-non_shared'
13251      ;;
13252
13253    solaris*)
13254      lt_prog_compiler_pic='-KPIC'
13255      lt_prog_compiler_static='-Bstatic'
13256      case $cc_basename in
13257      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13258	lt_prog_compiler_wl='-Qoption ld ';;
13259      *)
13260	lt_prog_compiler_wl='-Wl,';;
13261      esac
13262      ;;
13263
13264    sunos4*)
13265      lt_prog_compiler_wl='-Qoption ld '
13266      lt_prog_compiler_pic='-PIC'
13267      lt_prog_compiler_static='-Bstatic'
13268      ;;
13269
13270    sysv4 | sysv4.2uw2* | sysv4.3*)
13271      lt_prog_compiler_wl='-Wl,'
13272      lt_prog_compiler_pic='-KPIC'
13273      lt_prog_compiler_static='-Bstatic'
13274      ;;
13275
13276    sysv4*MP*)
13277      if test -d /usr/nec; then
13278	lt_prog_compiler_pic='-Kconform_pic'
13279	lt_prog_compiler_static='-Bstatic'
13280      fi
13281      ;;
13282
13283    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13284      lt_prog_compiler_wl='-Wl,'
13285      lt_prog_compiler_pic='-KPIC'
13286      lt_prog_compiler_static='-Bstatic'
13287      ;;
13288
13289    unicos*)
13290      lt_prog_compiler_wl='-Wl,'
13291      lt_prog_compiler_can_build_shared=no
13292      ;;
13293
13294    uts4*)
13295      lt_prog_compiler_pic='-pic'
13296      lt_prog_compiler_static='-Bstatic'
13297      ;;
13298
13299    *)
13300      lt_prog_compiler_can_build_shared=no
13301      ;;
13302    esac
13303  fi
13304
13305case $host_os in
13306  # For platforms that do not support PIC, -DPIC is meaningless:
13307  *djgpp*)
13308    lt_prog_compiler_pic=
13309    ;;
13310  *)
13311    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13312    ;;
13313esac
13314
13315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13316$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13317if ${lt_cv_prog_compiler_pic+:} false; then :
13318  $as_echo_n "(cached) " >&6
13319else
13320  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13321fi
13322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13323$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13324lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13325
13326#
13327# Check to make sure the PIC flag actually works.
13328#
13329if test -n "$lt_prog_compiler_pic"; then
13330  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13331$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13332if ${lt_cv_prog_compiler_pic_works+:} false; then :
13333  $as_echo_n "(cached) " >&6
13334else
13335  lt_cv_prog_compiler_pic_works=no
13336   ac_outfile=conftest.$ac_objext
13337   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13338   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
13339   # Insert the option either (1) after the last *FLAGS variable, or
13340   # (2) before a word containing "conftest.", or (3) at the end.
13341   # Note that $ac_compile itself does not contain backslashes and begins
13342   # with a dollar sign (not a hyphen), so the echo should work correctly.
13343   # The option is referenced via a variable to avoid confusing sed.
13344   lt_compile=`echo "$ac_compile" | $SED \
13345   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13346   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13347   -e 's:$: $lt_compiler_flag:'`
13348   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13349   (eval "$lt_compile" 2>conftest.err)
13350   ac_status=$?
13351   cat conftest.err >&5
13352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353   if (exit $ac_status) && test -s "$ac_outfile"; then
13354     # The compiler can only warn and ignore the option if not recognized
13355     # So say no if there are warnings other than the usual output.
13356     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13357     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13358     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13359       lt_cv_prog_compiler_pic_works=yes
13360     fi
13361   fi
13362   $RM conftest*
13363
13364fi
13365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13366$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13367
13368if test yes = "$lt_cv_prog_compiler_pic_works"; then
13369    case $lt_prog_compiler_pic in
13370     "" | " "*) ;;
13371     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13372     esac
13373else
13374    lt_prog_compiler_pic=
13375     lt_prog_compiler_can_build_shared=no
13376fi
13377
13378fi
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390#
13391# Check to make sure the static flag actually works.
13392#
13393wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13395$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13396if ${lt_cv_prog_compiler_static_works+:} false; then :
13397  $as_echo_n "(cached) " >&6
13398else
13399  lt_cv_prog_compiler_static_works=no
13400   save_LDFLAGS=$LDFLAGS
13401   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13402   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13403   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13404     # The linker can only warn and ignore the option if not recognized
13405     # So say no if there are warnings
13406     if test -s conftest.err; then
13407       # Append any errors to the config.log.
13408       cat conftest.err 1>&5
13409       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13410       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13411       if diff conftest.exp conftest.er2 >/dev/null; then
13412         lt_cv_prog_compiler_static_works=yes
13413       fi
13414     else
13415       lt_cv_prog_compiler_static_works=yes
13416     fi
13417   fi
13418   $RM -r conftest*
13419   LDFLAGS=$save_LDFLAGS
13420
13421fi
13422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13423$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13424
13425if test yes = "$lt_cv_prog_compiler_static_works"; then
13426    :
13427else
13428    lt_prog_compiler_static=
13429fi
13430
13431
13432
13433
13434
13435
13436
13437  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13438$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13439if ${lt_cv_prog_compiler_c_o+:} false; then :
13440  $as_echo_n "(cached) " >&6
13441else
13442  lt_cv_prog_compiler_c_o=no
13443   $RM -r conftest 2>/dev/null
13444   mkdir conftest
13445   cd conftest
13446   mkdir out
13447   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13448
13449   lt_compiler_flag="-o out/conftest2.$ac_objext"
13450   # Insert the option either (1) after the last *FLAGS variable, or
13451   # (2) before a word containing "conftest.", or (3) at the end.
13452   # Note that $ac_compile itself does not contain backslashes and begins
13453   # with a dollar sign (not a hyphen), so the echo should work correctly.
13454   lt_compile=`echo "$ac_compile" | $SED \
13455   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13456   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13457   -e 's:$: $lt_compiler_flag:'`
13458   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13459   (eval "$lt_compile" 2>out/conftest.err)
13460   ac_status=$?
13461   cat out/conftest.err >&5
13462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13464   then
13465     # The compiler can only warn and ignore the option if not recognized
13466     # So say no if there are warnings
13467     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13468     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13469     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13470       lt_cv_prog_compiler_c_o=yes
13471     fi
13472   fi
13473   chmod u+w . 2>&5
13474   $RM conftest*
13475   # SGI C++ compiler will create directory out/ii_files/ for
13476   # template instantiation
13477   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13478   $RM out/* && rmdir out
13479   cd ..
13480   $RM -r conftest
13481   $RM conftest*
13482
13483fi
13484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13485$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13486
13487
13488
13489
13490
13491
13492  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13493$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13494if ${lt_cv_prog_compiler_c_o+:} false; then :
13495  $as_echo_n "(cached) " >&6
13496else
13497  lt_cv_prog_compiler_c_o=no
13498   $RM -r conftest 2>/dev/null
13499   mkdir conftest
13500   cd conftest
13501   mkdir out
13502   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13503
13504   lt_compiler_flag="-o out/conftest2.$ac_objext"
13505   # Insert the option either (1) after the last *FLAGS variable, or
13506   # (2) before a word containing "conftest.", or (3) at the end.
13507   # Note that $ac_compile itself does not contain backslashes and begins
13508   # with a dollar sign (not a hyphen), so the echo should work correctly.
13509   lt_compile=`echo "$ac_compile" | $SED \
13510   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13511   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13512   -e 's:$: $lt_compiler_flag:'`
13513   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13514   (eval "$lt_compile" 2>out/conftest.err)
13515   ac_status=$?
13516   cat out/conftest.err >&5
13517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13519   then
13520     # The compiler can only warn and ignore the option if not recognized
13521     # So say no if there are warnings
13522     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13523     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13524     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13525       lt_cv_prog_compiler_c_o=yes
13526     fi
13527   fi
13528   chmod u+w . 2>&5
13529   $RM conftest*
13530   # SGI C++ compiler will create directory out/ii_files/ for
13531   # template instantiation
13532   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13533   $RM out/* && rmdir out
13534   cd ..
13535   $RM -r conftest
13536   $RM conftest*
13537
13538fi
13539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13540$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13541
13542
13543
13544
13545hard_links=nottested
13546if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
13547  # do not overwrite the value of need_locks provided by the user
13548  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13549$as_echo_n "checking if we can lock with hard links... " >&6; }
13550  hard_links=yes
13551  $RM conftest*
13552  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13553  touch conftest.a
13554  ln conftest.a conftest.b 2>&5 || hard_links=no
13555  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13557$as_echo "$hard_links" >&6; }
13558  if test no = "$hard_links"; then
13559    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
13560$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
13561    need_locks=warn
13562  fi
13563else
13564  need_locks=no
13565fi
13566
13567
13568
13569
13570
13571
13572  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13573$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13574
13575  runpath_var=
13576  allow_undefined_flag=
13577  always_export_symbols=no
13578  archive_cmds=
13579  archive_expsym_cmds=
13580  compiler_needs_object=no
13581  enable_shared_with_static_runtimes=no
13582  export_dynamic_flag_spec=
13583  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13584  hardcode_automatic=no
13585  hardcode_direct=no
13586  hardcode_direct_absolute=no
13587  hardcode_libdir_flag_spec=
13588  hardcode_libdir_separator=
13589  hardcode_minus_L=no
13590  hardcode_shlibpath_var=unsupported
13591  inherit_rpath=no
13592  link_all_deplibs=unknown
13593  module_cmds=
13594  module_expsym_cmds=
13595  old_archive_from_new_cmds=
13596  old_archive_from_expsyms_cmds=
13597  thread_safe_flag_spec=
13598  whole_archive_flag_spec=
13599  # include_expsyms should be a list of space-separated symbols to be *always*
13600  # included in the symbol list
13601  include_expsyms=
13602  # exclude_expsyms can be an extended regexp of symbols to exclude
13603  # it will be wrapped by ' (' and ')$', so one must not match beginning or
13604  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
13605  # as well as any symbol that contains 'd'.
13606  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13607  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13608  # platforms (ab)use it in PIC code, but their linkers get confused if
13609  # the symbol is explicitly referenced.  Since portable code cannot
13610  # rely on this symbol name, it's probably fine to never include it in
13611  # preloaded symbol tables.
13612  # Exclude shared library initialization/finalization symbols.
13613  extract_expsyms_cmds=
13614
13615  case $host_os in
13616  cygwin* | mingw* | pw32* | cegcc*)
13617    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13618    # When not using gcc, we currently assume that we are using
13619    # Microsoft Visual C++.
13620    if test yes != "$GCC"; then
13621      with_gnu_ld=no
13622    fi
13623    ;;
13624  interix*)
13625    # we just hope/assume this is gcc and not c89 (= MSVC++)
13626    with_gnu_ld=yes
13627    ;;
13628  openbsd* | bitrig*)
13629    with_gnu_ld=no
13630    ;;
13631  esac
13632
13633  ld_shlibs=yes
13634
13635  # On some targets, GNU ld is compatible enough with the native linker
13636  # that we're better off using the native interface for both.
13637  lt_use_gnu_ld_interface=no
13638  if test yes = "$with_gnu_ld"; then
13639    case $host_os in
13640      aix*)
13641	# The AIX port of GNU ld has always aspired to compatibility
13642	# with the native linker.  However, as the warning in the GNU ld
13643	# block says, versions before 2.19.5* couldn't really create working
13644	# shared libraries, regardless of the interface used.
13645	case `$LD -v 2>&1` in
13646	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13647	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13648	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13649	  *)
13650	    lt_use_gnu_ld_interface=yes
13651	    ;;
13652	esac
13653	;;
13654      *)
13655	lt_use_gnu_ld_interface=yes
13656	;;
13657    esac
13658  fi
13659
13660  if test yes = "$lt_use_gnu_ld_interface"; then
13661    # If archive_cmds runs LD, not CC, wlarc should be empty
13662    wlarc='$wl'
13663
13664    # Set some defaults for GNU ld with shared library support. These
13665    # are reset later if shared libraries are not supported. Putting them
13666    # here allows them to be overridden if necessary.
13667    runpath_var=LD_RUN_PATH
13668    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13669    export_dynamic_flag_spec='$wl--export-dynamic'
13670    # ancient GNU ld didn't support --whole-archive et. al.
13671    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13672      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13673    else
13674      whole_archive_flag_spec=
13675    fi
13676    supports_anon_versioning=no
13677    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
13678      *GNU\ gold*) supports_anon_versioning=yes ;;
13679      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13680      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13681      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13682      *\ 2.11.*) ;; # other 2.11 versions
13683      *) supports_anon_versioning=yes ;;
13684    esac
13685
13686    # See if GNU ld supports shared libraries.
13687    case $host_os in
13688    aix[3-9]*)
13689      # On AIX/PPC, the GNU linker is very broken
13690      if test ia64 != "$host_cpu"; then
13691	ld_shlibs=no
13692	cat <<_LT_EOF 1>&2
13693
13694*** Warning: the GNU linker, at least up to release 2.19, is reported
13695*** to be unable to reliably create shared libraries on AIX.
13696*** Therefore, libtool is disabling shared libraries support.  If you
13697*** really care for shared libraries, you may want to install binutils
13698*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13699*** You will then need to restart the configuration process.
13700
13701_LT_EOF
13702      fi
13703      ;;
13704
13705    amigaos*)
13706      case $host_cpu in
13707      powerpc)
13708            # see comment about AmigaOS4 .so support
13709            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13710            archive_expsym_cmds=''
13711        ;;
13712      m68k)
13713            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)'
13714            hardcode_libdir_flag_spec='-L$libdir'
13715            hardcode_minus_L=yes
13716        ;;
13717      esac
13718      ;;
13719
13720    beos*)
13721      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13722	allow_undefined_flag=unsupported
13723	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13724	# support --undefined.  This deserves some investigation.  FIXME
13725	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13726      else
13727	ld_shlibs=no
13728      fi
13729      ;;
13730
13731    cygwin* | mingw* | pw32* | cegcc*)
13732      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13733      # as there is no search path for DLLs.
13734      hardcode_libdir_flag_spec='-L$libdir'
13735      export_dynamic_flag_spec='$wl--export-all-symbols'
13736      allow_undefined_flag=unsupported
13737      always_export_symbols=no
13738      enable_shared_with_static_runtimes=yes
13739      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'
13740      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13741
13742      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13743        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13744	# If the export-symbols file already is a .def file, use it as
13745	# is; otherwise, prepend EXPORTS...
13746	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13747          cp $export_symbols $output_objdir/$soname.def;
13748        else
13749          echo EXPORTS > $output_objdir/$soname.def;
13750          cat $export_symbols >> $output_objdir/$soname.def;
13751        fi~
13752        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13753      else
13754	ld_shlibs=no
13755      fi
13756      ;;
13757
13758    haiku*)
13759      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13760      link_all_deplibs=yes
13761      ;;
13762
13763    os2*)
13764      hardcode_libdir_flag_spec='-L$libdir'
13765      hardcode_minus_L=yes
13766      allow_undefined_flag=unsupported
13767      shrext_cmds=.dll
13768      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13769	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13770	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13771	$ECHO EXPORTS >> $output_objdir/$libname.def~
13772	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13773	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13774	emximp -o $lib $output_objdir/$libname.def'
13775      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13776	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13777	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13778	$ECHO EXPORTS >> $output_objdir/$libname.def~
13779	prefix_cmds="$SED"~
13780	if test EXPORTS = "`$SED 1q $export_symbols`"; then
13781	  prefix_cmds="$prefix_cmds -e 1d";
13782	fi~
13783	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13784	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13785	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13786	emximp -o $lib $output_objdir/$libname.def'
13787      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13788      enable_shared_with_static_runtimes=yes
13789      ;;
13790
13791    interix[3-9]*)
13792      hardcode_direct=no
13793      hardcode_shlibpath_var=no
13794      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13795      export_dynamic_flag_spec='$wl-E'
13796      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13797      # Instead, shared libraries are loaded at an image base (0x10000000 by
13798      # default) and relocated if they conflict, which is a slow very memory
13799      # consuming and fragmenting process.  To avoid this, we pick a random,
13800      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13801      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13802      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13803      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'
13804      ;;
13805
13806    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13807      tmp_diet=no
13808      if test linux-dietlibc = "$host_os"; then
13809	case $cc_basename in
13810	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
13811	esac
13812      fi
13813      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13814	 && test no = "$tmp_diet"
13815      then
13816	tmp_addflag=' $pic_flag'
13817	tmp_sharedflag='-shared'
13818	case $cc_basename,$host_cpu in
13819        pgcc*)				# Portland Group C compiler
13820	  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'
13821	  tmp_addflag=' $pic_flag'
13822	  ;;
13823	pgf77* | pgf90* | pgf95* | pgfortran*)
13824					# Portland Group f77 and f90 compilers
13825	  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'
13826	  tmp_addflag=' $pic_flag -Mnomain' ;;
13827	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
13828	  tmp_addflag=' -i_dynamic' ;;
13829	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13830	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13831	ifc* | ifort*)			# Intel Fortran compiler
13832	  tmp_addflag=' -nofor_main' ;;
13833	lf95*)				# Lahey Fortran 8.1
13834	  whole_archive_flag_spec=
13835	  tmp_sharedflag='--shared' ;;
13836        nagfor*)                        # NAGFOR 5.3
13837          tmp_sharedflag='-Wl,-shared' ;;
13838	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13839	  tmp_sharedflag='-qmkshrobj'
13840	  tmp_addflag= ;;
13841	nvcc*)	# Cuda Compiler Driver 2.2
13842	  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'
13843	  compiler_needs_object=yes
13844	  ;;
13845	esac
13846	case `$CC -V 2>&1 | sed 5q` in
13847	*Sun\ C*)			# Sun C 5.9
13848	  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'
13849	  compiler_needs_object=yes
13850	  tmp_sharedflag='-G' ;;
13851	*Sun\ F*)			# Sun Fortran 8.3
13852	  tmp_sharedflag='-G' ;;
13853	esac
13854	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13855
13856        if test yes = "$supports_anon_versioning"; then
13857          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13858            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13859            echo "local: *; };" >> $output_objdir/$libname.ver~
13860            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13861        fi
13862
13863	case $cc_basename in
13864	tcc*)
13865	  export_dynamic_flag_spec='-rdynamic'
13866	  ;;
13867	xlf* | bgf* | bgxlf* | mpixlf*)
13868	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13869	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13870	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13871	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13872	  if test yes = "$supports_anon_versioning"; then
13873	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13874              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13875              echo "local: *; };" >> $output_objdir/$libname.ver~
13876              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13877	  fi
13878	  ;;
13879	esac
13880      else
13881        ld_shlibs=no
13882      fi
13883      ;;
13884
13885    netbsd*)
13886      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13887	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13888	wlarc=
13889      else
13890	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13891	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13892      fi
13893      ;;
13894
13895    solaris*)
13896      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13897	ld_shlibs=no
13898	cat <<_LT_EOF 1>&2
13899
13900*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13901*** create shared libraries on Solaris systems.  Therefore, libtool
13902*** is disabling shared libraries support.  We urge you to upgrade GNU
13903*** binutils to release 2.9.1 or newer.  Another option is to modify
13904*** your PATH or compiler configuration so that the native linker is
13905*** used, and then restart.
13906
13907_LT_EOF
13908      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13909	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13910	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13911      else
13912	ld_shlibs=no
13913      fi
13914      ;;
13915
13916    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13917      case `$LD -v 2>&1` in
13918        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13919	ld_shlibs=no
13920	cat <<_LT_EOF 1>&2
13921
13922*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
13923*** reliably create shared libraries on SCO systems.  Therefore, libtool
13924*** is disabling shared libraries support.  We urge you to upgrade GNU
13925*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13926*** your PATH or compiler configuration so that the native linker is
13927*** used, and then restart.
13928
13929_LT_EOF
13930	;;
13931	*)
13932	  # For security reasons, it is highly recommended that you always
13933	  # use absolute paths for naming shared libraries, and exclude the
13934	  # DT_RUNPATH tag from executables and libraries.  But doing so
13935	  # requires that you compile everything twice, which is a pain.
13936	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13937	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13938	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13939	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13940	  else
13941	    ld_shlibs=no
13942	  fi
13943	;;
13944      esac
13945      ;;
13946
13947    sunos4*)
13948      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13949      wlarc=
13950      hardcode_direct=yes
13951      hardcode_shlibpath_var=no
13952      ;;
13953
13954    *)
13955      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13956	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13957	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13958      else
13959	ld_shlibs=no
13960      fi
13961      ;;
13962    esac
13963
13964    if test no = "$ld_shlibs"; then
13965      runpath_var=
13966      hardcode_libdir_flag_spec=
13967      export_dynamic_flag_spec=
13968      whole_archive_flag_spec=
13969    fi
13970  else
13971    # PORTME fill in a description of your system's linker (not GNU ld)
13972    case $host_os in
13973    aix3*)
13974      allow_undefined_flag=unsupported
13975      always_export_symbols=yes
13976      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'
13977      # Note: this linker hardcodes the directories in LIBPATH if there
13978      # are no directories specified by -L.
13979      hardcode_minus_L=yes
13980      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13981	# Neither direct hardcoding nor static linking is supported with a
13982	# broken collect2.
13983	hardcode_direct=unsupported
13984      fi
13985      ;;
13986
13987    aix[4-9]*)
13988      if test ia64 = "$host_cpu"; then
13989	# On IA64, the linker does run time linking by default, so we don't
13990	# have to do anything special.
13991	aix_use_runtimelinking=no
13992	exp_sym_flag='-Bexport'
13993	no_entry_flag=
13994      else
13995	# If we're using GNU nm, then we don't want the "-C" option.
13996	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
13997	# Without the "-l" option, or with the "-B" option, AIX nm treats
13998	# weak defined symbols like other global defined symbols, whereas
13999	# GNU nm marks them as "W".
14000	# While the 'weak' keyword is ignored in the Export File, we need
14001	# it in the Import File for the 'aix-soname' feature, so we have
14002	# to replace the "-B" option with "-P" for AIX nm.
14003	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14004	  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'
14005	else
14006	  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'
14007	fi
14008	aix_use_runtimelinking=no
14009
14010	# Test if we are trying to use run time linking or normal
14011	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14012	# have runtime linking enabled, and use it for executables.
14013	# For shared libraries, we enable/disable runtime linking
14014	# depending on the kind of the shared library created -
14015	# when "with_aix_soname,aix_use_runtimelinking" is:
14016	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
14017	# "aix,yes"  lib.so          shared, rtl:yes, for executables
14018	#            lib.a           static archive
14019	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
14020	#            lib.a(lib.so.V) shared, rtl:no,  for executables
14021	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14022	#            lib.a(lib.so.V) shared, rtl:no
14023	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
14024	#            lib.a           static archive
14025	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14026	  for ld_flag in $LDFLAGS; do
14027	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
14028	    aix_use_runtimelinking=yes
14029	    break
14030	  fi
14031	  done
14032	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14033	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
14034	    # so we don't have lib.a shared libs to link our executables.
14035	    # We have to force runtime linking in this case.
14036	    aix_use_runtimelinking=yes
14037	    LDFLAGS="$LDFLAGS -Wl,-brtl"
14038	  fi
14039	  ;;
14040	esac
14041
14042	exp_sym_flag='-bexport'
14043	no_entry_flag='-bnoentry'
14044      fi
14045
14046      # When large executables or shared objects are built, AIX ld can
14047      # have problems creating the table of contents.  If linking a library
14048      # or program results in "error TOC overflow" add -mminimal-toc to
14049      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14050      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14051
14052      archive_cmds=''
14053      hardcode_direct=yes
14054      hardcode_direct_absolute=yes
14055      hardcode_libdir_separator=':'
14056      link_all_deplibs=yes
14057      file_list_spec='$wl-f,'
14058      case $with_aix_soname,$aix_use_runtimelinking in
14059      aix,*) ;; # traditional, no import file
14060      svr4,* | *,yes) # use import file
14061	# The Import File defines what to hardcode.
14062	hardcode_direct=no
14063	hardcode_direct_absolute=no
14064	;;
14065      esac
14066
14067      if test yes = "$GCC"; then
14068	case $host_os in aix4.[012]|aix4.[012].*)
14069	# We only want to do this on AIX 4.2 and lower, the check
14070	# below for broken collect2 doesn't work under 4.3+
14071	  collect2name=`$CC -print-prog-name=collect2`
14072	  if test -f "$collect2name" &&
14073	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14074	  then
14075	  # We have reworked collect2
14076	  :
14077	  else
14078	  # We have old collect2
14079	  hardcode_direct=unsupported
14080	  # It fails to find uninstalled libraries when the uninstalled
14081	  # path is not listed in the libpath.  Setting hardcode_minus_L
14082	  # to unsupported forces relinking
14083	  hardcode_minus_L=yes
14084	  hardcode_libdir_flag_spec='-L$libdir'
14085	  hardcode_libdir_separator=
14086	  fi
14087	  ;;
14088	esac
14089	shared_flag='-shared'
14090	if test yes = "$aix_use_runtimelinking"; then
14091	  shared_flag="$shared_flag "'$wl-G'
14092	fi
14093	# Need to ensure runtime linking is disabled for the traditional
14094	# shared library, or the linker may eventually find shared libraries
14095	# /with/ Import File - we do not want to mix them.
14096	shared_flag_aix='-shared'
14097	shared_flag_svr4='-shared $wl-G'
14098      else
14099	# not using gcc
14100	if test ia64 = "$host_cpu"; then
14101	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14102	# chokes on -Wl,-G. The following line is correct:
14103	  shared_flag='-G'
14104	else
14105	  if test yes = "$aix_use_runtimelinking"; then
14106	    shared_flag='$wl-G'
14107	  else
14108	    shared_flag='$wl-bM:SRE'
14109	  fi
14110	  shared_flag_aix='$wl-bM:SRE'
14111	  shared_flag_svr4='$wl-G'
14112	fi
14113      fi
14114
14115      export_dynamic_flag_spec='$wl-bexpall'
14116      # It seems that -bexpall does not export symbols beginning with
14117      # underscore (_), so it is better to generate a list of symbols to export.
14118      always_export_symbols=yes
14119      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14120	# Warning - without using the other runtime loading flags (-brtl),
14121	# -berok will link without error, but may produce a broken library.
14122	allow_undefined_flag='-berok'
14123        # Determine the default libpath from the value encoded in an
14124        # empty executable.
14125        if test set = "${lt_cv_aix_libpath+set}"; then
14126  aix_libpath=$lt_cv_aix_libpath
14127else
14128  if ${lt_cv_aix_libpath_+:} false; then :
14129  $as_echo_n "(cached) " >&6
14130else
14131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14132/* end confdefs.h.  */
14133
14134int
14135main ()
14136{
14137
14138  ;
14139  return 0;
14140}
14141_ACEOF
14142if ac_fn_c_try_link "$LINENO"; then :
14143
14144  lt_aix_libpath_sed='
14145      /Import File Strings/,/^$/ {
14146	  /^0/ {
14147	      s/^0  *\([^ ]*\) *$/\1/
14148	      p
14149	  }
14150      }'
14151  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14152  # Check for a 64-bit object if we didn't find anything.
14153  if test -z "$lt_cv_aix_libpath_"; then
14154    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14155  fi
14156fi
14157rm -f core conftest.err conftest.$ac_objext \
14158    conftest$ac_exeext conftest.$ac_ext
14159  if test -z "$lt_cv_aix_libpath_"; then
14160    lt_cv_aix_libpath_=/usr/lib:/lib
14161  fi
14162
14163fi
14164
14165  aix_libpath=$lt_cv_aix_libpath_
14166fi
14167
14168        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14169        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
14170      else
14171	if test ia64 = "$host_cpu"; then
14172	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
14173	  allow_undefined_flag="-z nodefs"
14174	  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"
14175	else
14176	 # Determine the default libpath from the value encoded in an
14177	 # empty executable.
14178	 if test set = "${lt_cv_aix_libpath+set}"; then
14179  aix_libpath=$lt_cv_aix_libpath
14180else
14181  if ${lt_cv_aix_libpath_+:} false; then :
14182  $as_echo_n "(cached) " >&6
14183else
14184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14185/* end confdefs.h.  */
14186
14187int
14188main ()
14189{
14190
14191  ;
14192  return 0;
14193}
14194_ACEOF
14195if ac_fn_c_try_link "$LINENO"; then :
14196
14197  lt_aix_libpath_sed='
14198      /Import File Strings/,/^$/ {
14199	  /^0/ {
14200	      s/^0  *\([^ ]*\) *$/\1/
14201	      p
14202	  }
14203      }'
14204  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14205  # Check for a 64-bit object if we didn't find anything.
14206  if test -z "$lt_cv_aix_libpath_"; then
14207    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14208  fi
14209fi
14210rm -f core conftest.err conftest.$ac_objext \
14211    conftest$ac_exeext conftest.$ac_ext
14212  if test -z "$lt_cv_aix_libpath_"; then
14213    lt_cv_aix_libpath_=/usr/lib:/lib
14214  fi
14215
14216fi
14217
14218  aix_libpath=$lt_cv_aix_libpath_
14219fi
14220
14221	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14222	  # Warning - without using the other run time loading flags,
14223	  # -berok will link without error, but may produce a broken library.
14224	  no_undefined_flag=' $wl-bernotok'
14225	  allow_undefined_flag=' $wl-berok'
14226	  if test yes = "$with_gnu_ld"; then
14227	    # We only use this code for GNU lds that support --whole-archive.
14228	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
14229	  else
14230	    # Exported symbols can be pulled into shared objects from archives
14231	    whole_archive_flag_spec='$convenience'
14232	  fi
14233	  archive_cmds_need_lc=yes
14234	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14235	  # -brtl affects multiple linker settings, -berok does not and is overridden later
14236	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14237	  if test svr4 != "$with_aix_soname"; then
14238	    # This is similar to how AIX traditionally builds its shared libraries.
14239	    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'
14240	  fi
14241	  if test aix != "$with_aix_soname"; then
14242	    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'
14243	  else
14244	    # used by -dlpreopen to get the symbols
14245	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14246	  fi
14247	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
14248	fi
14249      fi
14250      ;;
14251
14252    amigaos*)
14253      case $host_cpu in
14254      powerpc)
14255            # see comment about AmigaOS4 .so support
14256            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14257            archive_expsym_cmds=''
14258        ;;
14259      m68k)
14260            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)'
14261            hardcode_libdir_flag_spec='-L$libdir'
14262            hardcode_minus_L=yes
14263        ;;
14264      esac
14265      ;;
14266
14267    bsdi[45]*)
14268      export_dynamic_flag_spec=-rdynamic
14269      ;;
14270
14271    cygwin* | mingw* | pw32* | cegcc*)
14272      # When not using gcc, we currently assume that we are using
14273      # Microsoft Visual C++.
14274      # hardcode_libdir_flag_spec is actually meaningless, as there is
14275      # no search path for DLLs.
14276      case $cc_basename in
14277      cl*)
14278	# Native MSVC
14279	hardcode_libdir_flag_spec=' '
14280	allow_undefined_flag=unsupported
14281	always_export_symbols=yes
14282	file_list_spec='@'
14283	# Tell ltmain to make .lib files, not .a files.
14284	libext=lib
14285	# Tell ltmain to make .dll files, not .so files.
14286	shrext_cmds=.dll
14287	# FIXME: Setting linknames here is a bad hack.
14288	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14289	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14290            cp "$export_symbols" "$output_objdir/$soname.def";
14291            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14292          else
14293            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14294          fi~
14295          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14296          linknames='
14297	# The linker will not automatically build a static lib if we build a DLL.
14298	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14299	enable_shared_with_static_runtimes=yes
14300	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14301	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14302	# Don't use ranlib
14303	old_postinstall_cmds='chmod 644 $oldlib'
14304	postlink_cmds='lt_outputfile="@OUTPUT@"~
14305          lt_tool_outputfile="@TOOL_OUTPUT@"~
14306          case $lt_outputfile in
14307            *.exe|*.EXE) ;;
14308            *)
14309              lt_outputfile=$lt_outputfile.exe
14310              lt_tool_outputfile=$lt_tool_outputfile.exe
14311              ;;
14312          esac~
14313          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14314            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14315            $RM "$lt_outputfile.manifest";
14316          fi'
14317	;;
14318      *)
14319	# Assume MSVC wrapper
14320	hardcode_libdir_flag_spec=' '
14321	allow_undefined_flag=unsupported
14322	# Tell ltmain to make .lib files, not .a files.
14323	libext=lib
14324	# Tell ltmain to make .dll files, not .so files.
14325	shrext_cmds=.dll
14326	# FIXME: Setting linknames here is a bad hack.
14327	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14328	# The linker will automatically build a .lib file if we build a DLL.
14329	old_archive_from_new_cmds='true'
14330	# FIXME: Should let the user specify the lib program.
14331	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14332	enable_shared_with_static_runtimes=yes
14333	;;
14334      esac
14335      ;;
14336
14337    darwin* | rhapsody*)
14338
14339
14340  archive_cmds_need_lc=no
14341  hardcode_direct=no
14342  hardcode_automatic=yes
14343  hardcode_shlibpath_var=unsupported
14344  if test yes = "$lt_cv_ld_force_load"; then
14345    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\"`'
14346
14347  else
14348    whole_archive_flag_spec=''
14349  fi
14350  link_all_deplibs=yes
14351  allow_undefined_flag=$_lt_dar_allow_undefined
14352  case $cc_basename in
14353     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14354     *) _lt_dar_can_shared=$GCC ;;
14355  esac
14356  if test yes = "$_lt_dar_can_shared"; then
14357    output_verbose_link_cmd=func_echo_all
14358    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14359    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14360    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"
14361    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"
14362
14363  else
14364  ld_shlibs=no
14365  fi
14366
14367      ;;
14368
14369    dgux*)
14370      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14371      hardcode_libdir_flag_spec='-L$libdir'
14372      hardcode_shlibpath_var=no
14373      ;;
14374
14375    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14376    # support.  Future versions do this automatically, but an explicit c++rt0.o
14377    # does not break anything, and helps significantly (at the cost of a little
14378    # extra space).
14379    freebsd2.2*)
14380      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14381      hardcode_libdir_flag_spec='-R$libdir'
14382      hardcode_direct=yes
14383      hardcode_shlibpath_var=no
14384      ;;
14385
14386    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14387    freebsd2.*)
14388      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14389      hardcode_direct=yes
14390      hardcode_minus_L=yes
14391      hardcode_shlibpath_var=no
14392      ;;
14393
14394    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14395    freebsd* | dragonfly*)
14396      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14397      hardcode_libdir_flag_spec='-R$libdir'
14398      hardcode_direct=yes
14399      hardcode_shlibpath_var=no
14400      ;;
14401
14402    hpux9*)
14403      if test yes = "$GCC"; then
14404	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'
14405      else
14406	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'
14407      fi
14408      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14409      hardcode_libdir_separator=:
14410      hardcode_direct=yes
14411
14412      # hardcode_minus_L: Not really in the search PATH,
14413      # but as the default location of the library.
14414      hardcode_minus_L=yes
14415      export_dynamic_flag_spec='$wl-E'
14416      ;;
14417
14418    hpux10*)
14419      if test yes,no = "$GCC,$with_gnu_ld"; then
14420	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14421      else
14422	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14423      fi
14424      if test no = "$with_gnu_ld"; then
14425	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14426	hardcode_libdir_separator=:
14427	hardcode_direct=yes
14428	hardcode_direct_absolute=yes
14429	export_dynamic_flag_spec='$wl-E'
14430	# hardcode_minus_L: Not really in the search PATH,
14431	# but as the default location of the library.
14432	hardcode_minus_L=yes
14433      fi
14434      ;;
14435
14436    hpux11*)
14437      if test yes,no = "$GCC,$with_gnu_ld"; then
14438	case $host_cpu in
14439	hppa*64*)
14440	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14441	  ;;
14442	ia64*)
14443	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14444	  ;;
14445	*)
14446	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14447	  ;;
14448	esac
14449      else
14450	case $host_cpu in
14451	hppa*64*)
14452	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14453	  ;;
14454	ia64*)
14455	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14456	  ;;
14457	*)
14458
14459	  # Older versions of the 11.00 compiler do not understand -b yet
14460	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14461	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14462$as_echo_n "checking if $CC understands -b... " >&6; }
14463if ${lt_cv_prog_compiler__b+:} false; then :
14464  $as_echo_n "(cached) " >&6
14465else
14466  lt_cv_prog_compiler__b=no
14467   save_LDFLAGS=$LDFLAGS
14468   LDFLAGS="$LDFLAGS -b"
14469   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14470   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14471     # The linker can only warn and ignore the option if not recognized
14472     # So say no if there are warnings
14473     if test -s conftest.err; then
14474       # Append any errors to the config.log.
14475       cat conftest.err 1>&5
14476       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14477       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14478       if diff conftest.exp conftest.er2 >/dev/null; then
14479         lt_cv_prog_compiler__b=yes
14480       fi
14481     else
14482       lt_cv_prog_compiler__b=yes
14483     fi
14484   fi
14485   $RM -r conftest*
14486   LDFLAGS=$save_LDFLAGS
14487
14488fi
14489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14490$as_echo "$lt_cv_prog_compiler__b" >&6; }
14491
14492if test yes = "$lt_cv_prog_compiler__b"; then
14493    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14494else
14495    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14496fi
14497
14498	  ;;
14499	esac
14500      fi
14501      if test no = "$with_gnu_ld"; then
14502	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14503	hardcode_libdir_separator=:
14504
14505	case $host_cpu in
14506	hppa*64*|ia64*)
14507	  hardcode_direct=no
14508	  hardcode_shlibpath_var=no
14509	  ;;
14510	*)
14511	  hardcode_direct=yes
14512	  hardcode_direct_absolute=yes
14513	  export_dynamic_flag_spec='$wl-E'
14514
14515	  # hardcode_minus_L: Not really in the search PATH,
14516	  # but as the default location of the library.
14517	  hardcode_minus_L=yes
14518	  ;;
14519	esac
14520      fi
14521      ;;
14522
14523    irix5* | irix6* | nonstopux*)
14524      if test yes = "$GCC"; then
14525	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'
14526	# Try to use the -exported_symbol ld option, if it does not
14527	# work, assume that -exports_file does not work either and
14528	# implicitly export all symbols.
14529	# This should be the same for all languages, so no per-tag cache variable.
14530	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14531$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14532if ${lt_cv_irix_exported_symbol+:} false; then :
14533  $as_echo_n "(cached) " >&6
14534else
14535  save_LDFLAGS=$LDFLAGS
14536	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
14537	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14538/* end confdefs.h.  */
14539int foo (void) { return 0; }
14540_ACEOF
14541if ac_fn_c_try_link "$LINENO"; then :
14542  lt_cv_irix_exported_symbol=yes
14543else
14544  lt_cv_irix_exported_symbol=no
14545fi
14546rm -f core conftest.err conftest.$ac_objext \
14547    conftest$ac_exeext conftest.$ac_ext
14548           LDFLAGS=$save_LDFLAGS
14549fi
14550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14551$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14552	if test yes = "$lt_cv_irix_exported_symbol"; then
14553          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'
14554	fi
14555      else
14556	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'
14557	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'
14558      fi
14559      archive_cmds_need_lc='no'
14560      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14561      hardcode_libdir_separator=:
14562      inherit_rpath=yes
14563      link_all_deplibs=yes
14564      ;;
14565
14566    linux*)
14567      case $cc_basename in
14568      tcc*)
14569	# Fabrice Bellard et al's Tiny C Compiler
14570	ld_shlibs=yes
14571	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14572	;;
14573      esac
14574      ;;
14575
14576    netbsd*)
14577      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14578	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14579      else
14580	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14581      fi
14582      hardcode_libdir_flag_spec='-R$libdir'
14583      hardcode_direct=yes
14584      hardcode_shlibpath_var=no
14585      ;;
14586
14587    newsos6)
14588      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14589      hardcode_direct=yes
14590      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14591      hardcode_libdir_separator=:
14592      hardcode_shlibpath_var=no
14593      ;;
14594
14595    *nto* | *qnx*)
14596      ;;
14597
14598    openbsd* | bitrig*)
14599      if test -f /usr/libexec/ld.so; then
14600	hardcode_direct=yes
14601	hardcode_shlibpath_var=no
14602	hardcode_direct_absolute=yes
14603	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14604	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14605	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
14606	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14607	  export_dynamic_flag_spec='$wl-E'
14608	else
14609	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14610	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14611	fi
14612      else
14613	ld_shlibs=no
14614      fi
14615      ;;
14616
14617    os2*)
14618      hardcode_libdir_flag_spec='-L$libdir'
14619      hardcode_minus_L=yes
14620      allow_undefined_flag=unsupported
14621      shrext_cmds=.dll
14622      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14623	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14624	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14625	$ECHO EXPORTS >> $output_objdir/$libname.def~
14626	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14627	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14628	emximp -o $lib $output_objdir/$libname.def'
14629      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14630	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14631	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14632	$ECHO EXPORTS >> $output_objdir/$libname.def~
14633	prefix_cmds="$SED"~
14634	if test EXPORTS = "`$SED 1q $export_symbols`"; then
14635	  prefix_cmds="$prefix_cmds -e 1d";
14636	fi~
14637	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14638	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14639	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14640	emximp -o $lib $output_objdir/$libname.def'
14641      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14642      enable_shared_with_static_runtimes=yes
14643      ;;
14644
14645    osf3*)
14646      if test yes = "$GCC"; then
14647	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14648	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'
14649      else
14650	allow_undefined_flag=' -expect_unresolved \*'
14651	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'
14652      fi
14653      archive_cmds_need_lc='no'
14654      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14655      hardcode_libdir_separator=:
14656      ;;
14657
14658    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14659      if test yes = "$GCC"; then
14660	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14661	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'
14662	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14663      else
14664	allow_undefined_flag=' -expect_unresolved \*'
14665	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'
14666	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~
14667          $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'
14668
14669	# Both c and cxx compiler support -rpath directly
14670	hardcode_libdir_flag_spec='-rpath $libdir'
14671      fi
14672      archive_cmds_need_lc='no'
14673      hardcode_libdir_separator=:
14674      ;;
14675
14676    solaris*)
14677      no_undefined_flag=' -z defs'
14678      if test yes = "$GCC"; then
14679	wlarc='$wl'
14680	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14681	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14682          $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'
14683      else
14684	case `$CC -V 2>&1` in
14685	*"Compilers 5.0"*)
14686	  wlarc=''
14687	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
14688	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14689            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14690	  ;;
14691	*)
14692	  wlarc='$wl'
14693	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14694	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14695            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14696	  ;;
14697	esac
14698      fi
14699      hardcode_libdir_flag_spec='-R$libdir'
14700      hardcode_shlibpath_var=no
14701      case $host_os in
14702      solaris2.[0-5] | solaris2.[0-5].*) ;;
14703      *)
14704	# The compiler driver will combine and reorder linker options,
14705	# but understands '-z linker_flag'.  GCC discards it without '$wl',
14706	# but is careful enough not to reorder.
14707	# Supported since Solaris 2.6 (maybe 2.5.1?)
14708	if test yes = "$GCC"; then
14709	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14710	else
14711	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14712	fi
14713	;;
14714      esac
14715      link_all_deplibs=yes
14716      ;;
14717
14718    sunos4*)
14719      if test sequent = "$host_vendor"; then
14720	# Use $CC to link under sequent, because it throws in some extra .o
14721	# files that make .init and .fini sections work.
14722	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14723      else
14724	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14725      fi
14726      hardcode_libdir_flag_spec='-L$libdir'
14727      hardcode_direct=yes
14728      hardcode_minus_L=yes
14729      hardcode_shlibpath_var=no
14730      ;;
14731
14732    sysv4)
14733      case $host_vendor in
14734	sni)
14735	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14736	  hardcode_direct=yes # is this really true???
14737	;;
14738	siemens)
14739	  ## LD is ld it makes a PLAMLIB
14740	  ## CC just makes a GrossModule.
14741	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14742	  reload_cmds='$CC -r -o $output$reload_objs'
14743	  hardcode_direct=no
14744        ;;
14745	motorola)
14746	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14747	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14748	;;
14749      esac
14750      runpath_var='LD_RUN_PATH'
14751      hardcode_shlibpath_var=no
14752      ;;
14753
14754    sysv4.3*)
14755      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14756      hardcode_shlibpath_var=no
14757      export_dynamic_flag_spec='-Bexport'
14758      ;;
14759
14760    sysv4*MP*)
14761      if test -d /usr/nec; then
14762	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14763	hardcode_shlibpath_var=no
14764	runpath_var=LD_RUN_PATH
14765	hardcode_runpath_var=yes
14766	ld_shlibs=yes
14767      fi
14768      ;;
14769
14770    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14771      no_undefined_flag='$wl-z,text'
14772      archive_cmds_need_lc=no
14773      hardcode_shlibpath_var=no
14774      runpath_var='LD_RUN_PATH'
14775
14776      if test yes = "$GCC"; then
14777	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14778	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14779      else
14780	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14781	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14782      fi
14783      ;;
14784
14785    sysv5* | sco3.2v5* | sco5v6*)
14786      # Note: We CANNOT use -z defs as we might desire, because we do not
14787      # link with -lc, and that would cause any symbols used from libc to
14788      # always be unresolved, which means just about no library would
14789      # ever link correctly.  If we're not using GNU ld we use -z text
14790      # though, which does catch some bad symbols but isn't as heavy-handed
14791      # as -z defs.
14792      no_undefined_flag='$wl-z,text'
14793      allow_undefined_flag='$wl-z,nodefs'
14794      archive_cmds_need_lc=no
14795      hardcode_shlibpath_var=no
14796      hardcode_libdir_flag_spec='$wl-R,$libdir'
14797      hardcode_libdir_separator=':'
14798      link_all_deplibs=yes
14799      export_dynamic_flag_spec='$wl-Bexport'
14800      runpath_var='LD_RUN_PATH'
14801
14802      if test yes = "$GCC"; then
14803	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14804	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14805      else
14806	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14807	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14808      fi
14809      ;;
14810
14811    uts4*)
14812      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14813      hardcode_libdir_flag_spec='-L$libdir'
14814      hardcode_shlibpath_var=no
14815      ;;
14816
14817    *)
14818      ld_shlibs=no
14819      ;;
14820    esac
14821
14822    if test sni = "$host_vendor"; then
14823      case $host in
14824      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14825	export_dynamic_flag_spec='$wl-Blargedynsym'
14826	;;
14827      esac
14828    fi
14829  fi
14830
14831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14832$as_echo "$ld_shlibs" >&6; }
14833test no = "$ld_shlibs" && can_build_shared=no
14834
14835with_gnu_ld=$with_gnu_ld
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851#
14852# Do we need to explicitly link libc?
14853#
14854case "x$archive_cmds_need_lc" in
14855x|xyes)
14856  # Assume -lc should be added
14857  archive_cmds_need_lc=yes
14858
14859  if test yes,yes = "$GCC,$enable_shared"; then
14860    case $archive_cmds in
14861    *'~'*)
14862      # FIXME: we may have to deal with multi-command sequences.
14863      ;;
14864    '$CC '*)
14865      # Test whether the compiler implicitly links with -lc since on some
14866      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14867      # to ld, don't add -lc before -lgcc.
14868      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14869$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14870if ${lt_cv_archive_cmds_need_lc+:} false; then :
14871  $as_echo_n "(cached) " >&6
14872else
14873  $RM conftest*
14874	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14875
14876	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14877  (eval $ac_compile) 2>&5
14878  ac_status=$?
14879  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14880  test $ac_status = 0; } 2>conftest.err; then
14881	  soname=conftest
14882	  lib=conftest
14883	  libobjs=conftest.$ac_objext
14884	  deplibs=
14885	  wl=$lt_prog_compiler_wl
14886	  pic_flag=$lt_prog_compiler_pic
14887	  compiler_flags=-v
14888	  linker_flags=-v
14889	  verstring=
14890	  output_objdir=.
14891	  libname=conftest
14892	  lt_save_allow_undefined_flag=$allow_undefined_flag
14893	  allow_undefined_flag=
14894	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14895  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14896  ac_status=$?
14897  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14898  test $ac_status = 0; }
14899	  then
14900	    lt_cv_archive_cmds_need_lc=no
14901	  else
14902	    lt_cv_archive_cmds_need_lc=yes
14903	  fi
14904	  allow_undefined_flag=$lt_save_allow_undefined_flag
14905	else
14906	  cat conftest.err 1>&5
14907	fi
14908	$RM conftest*
14909
14910fi
14911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14912$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14913      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14914      ;;
14915    esac
14916  fi
14917  ;;
14918esac
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15072$as_echo_n "checking dynamic linker characteristics... " >&6; }
15073
15074if test yes = "$GCC"; then
15075  case $host_os in
15076    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
15077    *) lt_awk_arg='/^libraries:/' ;;
15078  esac
15079  case $host_os in
15080    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
15081    *) lt_sed_strip_eq='s|=/|/|g' ;;
15082  esac
15083  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15084  case $lt_search_path_spec in
15085  *\;*)
15086    # if the path contains ";" then we assume it to be the separator
15087    # otherwise default to the standard path separator (i.e. ":") - it is
15088    # assumed that no part of a normal pathname contains ";" but that should
15089    # okay in the real world where ";" in dirpaths is itself problematic.
15090    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15091    ;;
15092  *)
15093    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15094    ;;
15095  esac
15096  # Ok, now we have the path, separated by spaces, we can step through it
15097  # and add multilib dir if necessary...
15098  lt_tmp_lt_search_path_spec=
15099  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15100  # ...but if some path component already ends with the multilib dir we assume
15101  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
15102  case "$lt_multi_os_dir; $lt_search_path_spec " in
15103  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
15104    lt_multi_os_dir=
15105    ;;
15106  esac
15107  for lt_sys_path in $lt_search_path_spec; do
15108    if test -d "$lt_sys_path$lt_multi_os_dir"; then
15109      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
15110    elif test -n "$lt_multi_os_dir"; then
15111      test -d "$lt_sys_path" && \
15112	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15113    fi
15114  done
15115  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15116BEGIN {RS = " "; FS = "/|\n";} {
15117  lt_foo = "";
15118  lt_count = 0;
15119  for (lt_i = NF; lt_i > 0; lt_i--) {
15120    if ($lt_i != "" && $lt_i != ".") {
15121      if ($lt_i == "..") {
15122        lt_count++;
15123      } else {
15124        if (lt_count == 0) {
15125          lt_foo = "/" $lt_i lt_foo;
15126        } else {
15127          lt_count--;
15128        }
15129      }
15130    }
15131  }
15132  if (lt_foo != "") { lt_freq[lt_foo]++; }
15133  if (lt_freq[lt_foo] == 1) { print lt_foo; }
15134}'`
15135  # AWK program above erroneously prepends '/' to C:/dos/paths
15136  # for these hosts.
15137  case $host_os in
15138    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15139      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
15140  esac
15141  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15142else
15143  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15144fi
15145library_names_spec=
15146libname_spec='lib$name'
15147soname_spec=
15148shrext_cmds=.so
15149postinstall_cmds=
15150postuninstall_cmds=
15151finish_cmds=
15152finish_eval=
15153shlibpath_var=
15154shlibpath_overrides_runpath=unknown
15155version_type=none
15156dynamic_linker="$host_os ld.so"
15157sys_lib_dlsearch_path_spec="/lib /usr/lib"
15158need_lib_prefix=unknown
15159hardcode_into_libs=no
15160
15161# when you set need_version to no, make sure it does not cause -set_version
15162# flags to be left without arguments
15163need_version=unknown
15164
15165
15166
15167case $host_os in
15168aix3*)
15169  version_type=linux # correct to gnu/linux during the next big refactor
15170  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15171  shlibpath_var=LIBPATH
15172
15173  # AIX 3 has no versioning support, so we append a major version to the name.
15174  soname_spec='$libname$release$shared_ext$major'
15175  ;;
15176
15177aix[4-9]*)
15178  version_type=linux # correct to gnu/linux during the next big refactor
15179  need_lib_prefix=no
15180  need_version=no
15181  hardcode_into_libs=yes
15182  if test ia64 = "$host_cpu"; then
15183    # AIX 5 supports IA64
15184    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15185    shlibpath_var=LD_LIBRARY_PATH
15186  else
15187    # With GCC up to 2.95.x, collect2 would create an import file
15188    # for dependence libraries.  The import file would start with
15189    # the line '#! .'.  This would cause the generated library to
15190    # depend on '.', always an invalid library.  This was fixed in
15191    # development snapshots of GCC prior to 3.0.
15192    case $host_os in
15193      aix4 | aix4.[01] | aix4.[01].*)
15194      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15195	   echo ' yes '
15196	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15197	:
15198      else
15199	can_build_shared=no
15200      fi
15201      ;;
15202    esac
15203    # Using Import Files as archive members, it is possible to support
15204    # filename-based versioning of shared library archives on AIX. While
15205    # this would work for both with and without runtime linking, it will
15206    # prevent static linking of such archives. So we do filename-based
15207    # shared library versioning with .so extension only, which is used
15208    # when both runtime linking and shared linking is enabled.
15209    # Unfortunately, runtime linking may impact performance, so we do
15210    # not want this to be the default eventually. Also, we use the
15211    # versioned .so libs for executables only if there is the -brtl
15212    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15213    # To allow for filename-based versioning support, we need to create
15214    # libNAME.so.V as an archive file, containing:
15215    # *) an Import File, referring to the versioned filename of the
15216    #    archive as well as the shared archive member, telling the
15217    #    bitwidth (32 or 64) of that shared object, and providing the
15218    #    list of exported symbols of that shared object, eventually
15219    #    decorated with the 'weak' keyword
15220    # *) the shared object with the F_LOADONLY flag set, to really avoid
15221    #    it being seen by the linker.
15222    # At run time we better use the real file rather than another symlink,
15223    # but for link time we create the symlink libNAME.so -> libNAME.so.V
15224
15225    case $with_aix_soname,$aix_use_runtimelinking in
15226    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15227    # soname into executable. Probably we can add versioning support to
15228    # collect2, so additional links can be useful in future.
15229    aix,yes) # traditional libtool
15230      dynamic_linker='AIX unversionable lib.so'
15231      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15232      # instead of lib<name>.a to let people know that these are not
15233      # typical AIX shared libraries.
15234      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15235      ;;
15236    aix,no) # traditional AIX only
15237      dynamic_linker='AIX lib.a(lib.so.V)'
15238      # We preserve .a as extension for shared libraries through AIX4.2
15239      # and later when we are not doing run time linking.
15240      library_names_spec='$libname$release.a $libname.a'
15241      soname_spec='$libname$release$shared_ext$major'
15242      ;;
15243    svr4,*) # full svr4 only
15244      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15245      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15246      # We do not specify a path in Import Files, so LIBPATH fires.
15247      shlibpath_overrides_runpath=yes
15248      ;;
15249    *,yes) # both, prefer svr4
15250      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15251      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15252      # unpreferred sharedlib libNAME.a needs extra handling
15253      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"'
15254      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"'
15255      # We do not specify a path in Import Files, so LIBPATH fires.
15256      shlibpath_overrides_runpath=yes
15257      ;;
15258    *,no) # both, prefer aix
15259      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15260      library_names_spec='$libname$release.a $libname.a'
15261      soname_spec='$libname$release$shared_ext$major'
15262      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15263      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)'
15264      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"'
15265      ;;
15266    esac
15267    shlibpath_var=LIBPATH
15268  fi
15269  ;;
15270
15271amigaos*)
15272  case $host_cpu in
15273  powerpc)
15274    # Since July 2007 AmigaOS4 officially supports .so libraries.
15275    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15276    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15277    ;;
15278  m68k)
15279    library_names_spec='$libname.ixlibrary $libname.a'
15280    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15281    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'
15282    ;;
15283  esac
15284  ;;
15285
15286beos*)
15287  library_names_spec='$libname$shared_ext'
15288  dynamic_linker="$host_os ld.so"
15289  shlibpath_var=LIBRARY_PATH
15290  ;;
15291
15292bsdi[45]*)
15293  version_type=linux # correct to gnu/linux during the next big refactor
15294  need_version=no
15295  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15296  soname_spec='$libname$release$shared_ext$major'
15297  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15298  shlibpath_var=LD_LIBRARY_PATH
15299  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15300  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15301  # the default ld.so.conf also contains /usr/contrib/lib and
15302  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15303  # libtool to hard-code these into programs
15304  ;;
15305
15306cygwin* | mingw* | pw32* | cegcc*)
15307  version_type=windows
15308  shrext_cmds=.dll
15309  need_version=no
15310  need_lib_prefix=no
15311
15312  case $GCC,$cc_basename in
15313  yes,*)
15314    # gcc
15315    library_names_spec='$libname.dll.a'
15316    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15317    postinstall_cmds='base_file=`basename \$file`~
15318      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15319      dldir=$destdir/`dirname \$dlpath`~
15320      test -d \$dldir || mkdir -p \$dldir~
15321      $install_prog $dir/$dlname \$dldir/$dlname~
15322      chmod a+x \$dldir/$dlname~
15323      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15324        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15325      fi'
15326    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15327      dlpath=$dir/\$dldll~
15328       $RM \$dlpath'
15329    shlibpath_overrides_runpath=yes
15330
15331    case $host_os in
15332    cygwin*)
15333      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15334      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15335
15336      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15337      ;;
15338    mingw* | cegcc*)
15339      # MinGW DLLs use traditional 'lib' prefix
15340      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15341      ;;
15342    pw32*)
15343      # pw32 DLLs use 'pw' prefix rather than 'lib'
15344      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15345      ;;
15346    esac
15347    dynamic_linker='Win32 ld.exe'
15348    ;;
15349
15350  *,cl*)
15351    # Native MSVC
15352    libname_spec='$name'
15353    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15354    library_names_spec='$libname.dll.lib'
15355
15356    case $build_os in
15357    mingw*)
15358      sys_lib_search_path_spec=
15359      lt_save_ifs=$IFS
15360      IFS=';'
15361      for lt_path in $LIB
15362      do
15363        IFS=$lt_save_ifs
15364        # Let DOS variable expansion print the short 8.3 style file name.
15365        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15366        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15367      done
15368      IFS=$lt_save_ifs
15369      # Convert to MSYS style.
15370      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15371      ;;
15372    cygwin*)
15373      # Convert to unix form, then to dos form, then back to unix form
15374      # but this time dos style (no spaces!) so that the unix form looks
15375      # like /cygdrive/c/PROGRA~1:/cygdr...
15376      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15377      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15378      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15379      ;;
15380    *)
15381      sys_lib_search_path_spec=$LIB
15382      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15383        # It is most probably a Windows format PATH.
15384        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15385      else
15386        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15387      fi
15388      # FIXME: find the short name or the path components, as spaces are
15389      # common. (e.g. "Program Files" -> "PROGRA~1")
15390      ;;
15391    esac
15392
15393    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15394    postinstall_cmds='base_file=`basename \$file`~
15395      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15396      dldir=$destdir/`dirname \$dlpath`~
15397      test -d \$dldir || mkdir -p \$dldir~
15398      $install_prog $dir/$dlname \$dldir/$dlname'
15399    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15400      dlpath=$dir/\$dldll~
15401       $RM \$dlpath'
15402    shlibpath_overrides_runpath=yes
15403    dynamic_linker='Win32 link.exe'
15404    ;;
15405
15406  *)
15407    # Assume MSVC wrapper
15408    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15409    dynamic_linker='Win32 ld.exe'
15410    ;;
15411  esac
15412  # FIXME: first we should search . and the directory the executable is in
15413  shlibpath_var=PATH
15414  ;;
15415
15416darwin* | rhapsody*)
15417  dynamic_linker="$host_os dyld"
15418  version_type=darwin
15419  need_lib_prefix=no
15420  need_version=no
15421  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15422  soname_spec='$libname$release$major$shared_ext'
15423  shlibpath_overrides_runpath=yes
15424  shlibpath_var=DYLD_LIBRARY_PATH
15425  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15426
15427  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15428  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15429  ;;
15430
15431dgux*)
15432  version_type=linux # correct to gnu/linux during the next big refactor
15433  need_lib_prefix=no
15434  need_version=no
15435  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15436  soname_spec='$libname$release$shared_ext$major'
15437  shlibpath_var=LD_LIBRARY_PATH
15438  ;;
15439
15440freebsd* | dragonfly*)
15441  # DragonFly does not have aout.  When/if they implement a new
15442  # versioning mechanism, adjust this.
15443  if test -x /usr/bin/objformat; then
15444    objformat=`/usr/bin/objformat`
15445  else
15446    case $host_os in
15447    freebsd[23].*) objformat=aout ;;
15448    *) objformat=elf ;;
15449    esac
15450  fi
15451  version_type=freebsd-$objformat
15452  case $version_type in
15453    freebsd-elf*)
15454      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15455      soname_spec='$libname$release$shared_ext$major'
15456      need_version=no
15457      need_lib_prefix=no
15458      ;;
15459    freebsd-*)
15460      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15461      need_version=yes
15462      ;;
15463  esac
15464  shlibpath_var=LD_LIBRARY_PATH
15465  case $host_os in
15466  freebsd2.*)
15467    shlibpath_overrides_runpath=yes
15468    ;;
15469  freebsd3.[01]* | freebsdelf3.[01]*)
15470    shlibpath_overrides_runpath=yes
15471    hardcode_into_libs=yes
15472    ;;
15473  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15474  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15475    shlibpath_overrides_runpath=no
15476    hardcode_into_libs=yes
15477    ;;
15478  *) # from 4.6 on, and DragonFly
15479    shlibpath_overrides_runpath=yes
15480    hardcode_into_libs=yes
15481    ;;
15482  esac
15483  ;;
15484
15485haiku*)
15486  version_type=linux # correct to gnu/linux during the next big refactor
15487  need_lib_prefix=no
15488  need_version=no
15489  dynamic_linker="$host_os runtime_loader"
15490  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15491  soname_spec='$libname$release$shared_ext$major'
15492  shlibpath_var=LIBRARY_PATH
15493  shlibpath_overrides_runpath=no
15494  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15495  hardcode_into_libs=yes
15496  ;;
15497
15498hpux9* | hpux10* | hpux11*)
15499  # Give a soname corresponding to the major version so that dld.sl refuses to
15500  # link against other versions.
15501  version_type=sunos
15502  need_lib_prefix=no
15503  need_version=no
15504  case $host_cpu in
15505  ia64*)
15506    shrext_cmds='.so'
15507    hardcode_into_libs=yes
15508    dynamic_linker="$host_os dld.so"
15509    shlibpath_var=LD_LIBRARY_PATH
15510    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15511    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15512    soname_spec='$libname$release$shared_ext$major'
15513    if test 32 = "$HPUX_IA64_MODE"; then
15514      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15515      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15516    else
15517      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15518      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15519    fi
15520    ;;
15521  hppa*64*)
15522    shrext_cmds='.sl'
15523    hardcode_into_libs=yes
15524    dynamic_linker="$host_os dld.sl"
15525    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15526    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15527    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15528    soname_spec='$libname$release$shared_ext$major'
15529    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15530    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15531    ;;
15532  *)
15533    shrext_cmds='.sl'
15534    dynamic_linker="$host_os dld.sl"
15535    shlibpath_var=SHLIB_PATH
15536    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15537    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15538    soname_spec='$libname$release$shared_ext$major'
15539    ;;
15540  esac
15541  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15542  postinstall_cmds='chmod 555 $lib'
15543  # or fails outright, so override atomically:
15544  install_override_mode=555
15545  ;;
15546
15547interix[3-9]*)
15548  version_type=linux # correct to gnu/linux during the next big refactor
15549  need_lib_prefix=no
15550  need_version=no
15551  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15552  soname_spec='$libname$release$shared_ext$major'
15553  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15554  shlibpath_var=LD_LIBRARY_PATH
15555  shlibpath_overrides_runpath=no
15556  hardcode_into_libs=yes
15557  ;;
15558
15559irix5* | irix6* | nonstopux*)
15560  case $host_os in
15561    nonstopux*) version_type=nonstopux ;;
15562    *)
15563	if test yes = "$lt_cv_prog_gnu_ld"; then
15564		version_type=linux # correct to gnu/linux during the next big refactor
15565	else
15566		version_type=irix
15567	fi ;;
15568  esac
15569  need_lib_prefix=no
15570  need_version=no
15571  soname_spec='$libname$release$shared_ext$major'
15572  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15573  case $host_os in
15574  irix5* | nonstopux*)
15575    libsuff= shlibsuff=
15576    ;;
15577  *)
15578    case $LD in # libtool.m4 will add one of these switches to LD
15579    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15580      libsuff= shlibsuff= libmagic=32-bit;;
15581    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15582      libsuff=32 shlibsuff=N32 libmagic=N32;;
15583    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15584      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15585    *) libsuff= shlibsuff= libmagic=never-match;;
15586    esac
15587    ;;
15588  esac
15589  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15590  shlibpath_overrides_runpath=no
15591  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15592  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15593  hardcode_into_libs=yes
15594  ;;
15595
15596# No shared lib support for Linux oldld, aout, or coff.
15597linux*oldld* | linux*aout* | linux*coff*)
15598  dynamic_linker=no
15599  ;;
15600
15601linux*android*)
15602  version_type=none # Android doesn't support versioned libraries.
15603  need_lib_prefix=no
15604  need_version=no
15605  library_names_spec='$libname$release$shared_ext'
15606  soname_spec='$libname$release$shared_ext'
15607  finish_cmds=
15608  shlibpath_var=LD_LIBRARY_PATH
15609  shlibpath_overrides_runpath=yes
15610
15611  # This implies no fast_install, which is unacceptable.
15612  # Some rework will be needed to allow for fast_install
15613  # before this can be enabled.
15614  hardcode_into_libs=yes
15615
15616  dynamic_linker='Android linker'
15617  # Don't embed -rpath directories since the linker doesn't support them.
15618  hardcode_libdir_flag_spec='-L$libdir'
15619  ;;
15620
15621# This must be glibc/ELF.
15622linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15623  version_type=linux # correct to gnu/linux during the next big refactor
15624  need_lib_prefix=no
15625  need_version=no
15626  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15627  soname_spec='$libname$release$shared_ext$major'
15628  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15629  shlibpath_var=LD_LIBRARY_PATH
15630  shlibpath_overrides_runpath=no
15631
15632  # Some binutils ld are patched to set DT_RUNPATH
15633  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15634  $as_echo_n "(cached) " >&6
15635else
15636  lt_cv_shlibpath_overrides_runpath=no
15637    save_LDFLAGS=$LDFLAGS
15638    save_libdir=$libdir
15639    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15640	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15641    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15642/* end confdefs.h.  */
15643
15644int
15645main ()
15646{
15647
15648  ;
15649  return 0;
15650}
15651_ACEOF
15652if ac_fn_c_try_link "$LINENO"; then :
15653  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15654  lt_cv_shlibpath_overrides_runpath=yes
15655fi
15656fi
15657rm -f core conftest.err conftest.$ac_objext \
15658    conftest$ac_exeext conftest.$ac_ext
15659    LDFLAGS=$save_LDFLAGS
15660    libdir=$save_libdir
15661
15662fi
15663
15664  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15665
15666  # This implies no fast_install, which is unacceptable.
15667  # Some rework will be needed to allow for fast_install
15668  # before this can be enabled.
15669  hardcode_into_libs=yes
15670
15671  # Ideally, we could use ldconfig to report *all* directores which are
15672  # searched for libraries, however this is still not possible.  Aside from not
15673  # being certain /sbin/ldconfig is available, command
15674  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15675  # even though it is searched at run-time.  Try to do the best guess by
15676  # appending ld.so.conf contents (and includes) to the search path.
15677  if test -f /etc/ld.so.conf; then
15678    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' ' '`
15679    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15680  fi
15681
15682  # We used to test for /lib/ld.so.1 and disable shared libraries on
15683  # powerpc, because MkLinux only supported shared libraries with the
15684  # GNU dynamic linker.  Since this was broken with cross compilers,
15685  # most powerpc-linux boxes support dynamic linking these days and
15686  # people can always --disable-shared, the test was removed, and we
15687  # assume the GNU/Linux dynamic linker is in use.
15688  dynamic_linker='GNU/Linux ld.so'
15689  ;;
15690
15691netbsd*)
15692  version_type=sunos
15693  need_lib_prefix=no
15694  need_version=no
15695  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15696    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15697    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15698    dynamic_linker='NetBSD (a.out) ld.so'
15699  else
15700    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15701    soname_spec='$libname$release$shared_ext$major'
15702    dynamic_linker='NetBSD ld.elf_so'
15703  fi
15704  shlibpath_var=LD_LIBRARY_PATH
15705  shlibpath_overrides_runpath=yes
15706  hardcode_into_libs=yes
15707  ;;
15708
15709newsos6)
15710  version_type=linux # correct to gnu/linux during the next big refactor
15711  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15712  shlibpath_var=LD_LIBRARY_PATH
15713  shlibpath_overrides_runpath=yes
15714  ;;
15715
15716*nto* | *qnx*)
15717  version_type=qnx
15718  need_lib_prefix=no
15719  need_version=no
15720  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15721  soname_spec='$libname$release$shared_ext$major'
15722  shlibpath_var=LD_LIBRARY_PATH
15723  shlibpath_overrides_runpath=no
15724  hardcode_into_libs=yes
15725  dynamic_linker='ldqnx.so'
15726  ;;
15727
15728openbsd* | bitrig*)
15729  version_type=sunos
15730  sys_lib_dlsearch_path_spec=/usr/lib
15731  need_lib_prefix=no
15732  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15733    need_version=no
15734  else
15735    need_version=yes
15736  fi
15737  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15738  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15739  shlibpath_var=LD_LIBRARY_PATH
15740  shlibpath_overrides_runpath=yes
15741  ;;
15742
15743os2*)
15744  libname_spec='$name'
15745  version_type=windows
15746  shrext_cmds=.dll
15747  need_version=no
15748  need_lib_prefix=no
15749  # OS/2 can only load a DLL with a base name of 8 characters or less.
15750  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15751    v=$($ECHO $release$versuffix | tr -d .-);
15752    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15753    $ECHO $n$v`$shared_ext'
15754  library_names_spec='${libname}_dll.$libext'
15755  dynamic_linker='OS/2 ld.exe'
15756  shlibpath_var=BEGINLIBPATH
15757  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15758  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15759  postinstall_cmds='base_file=`basename \$file`~
15760    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15761    dldir=$destdir/`dirname \$dlpath`~
15762    test -d \$dldir || mkdir -p \$dldir~
15763    $install_prog $dir/$dlname \$dldir/$dlname~
15764    chmod a+x \$dldir/$dlname~
15765    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15766      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15767    fi'
15768  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15769    dlpath=$dir/\$dldll~
15770    $RM \$dlpath'
15771  ;;
15772
15773osf3* | osf4* | osf5*)
15774  version_type=osf
15775  need_lib_prefix=no
15776  need_version=no
15777  soname_spec='$libname$release$shared_ext$major'
15778  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15779  shlibpath_var=LD_LIBRARY_PATH
15780  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15781  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15782  ;;
15783
15784rdos*)
15785  dynamic_linker=no
15786  ;;
15787
15788solaris*)
15789  version_type=linux # correct to gnu/linux during the next big refactor
15790  need_lib_prefix=no
15791  need_version=no
15792  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15793  soname_spec='$libname$release$shared_ext$major'
15794  shlibpath_var=LD_LIBRARY_PATH
15795  shlibpath_overrides_runpath=yes
15796  hardcode_into_libs=yes
15797  # ldd complains unless libraries are executable
15798  postinstall_cmds='chmod +x $lib'
15799  ;;
15800
15801sunos4*)
15802  version_type=sunos
15803  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15804  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15805  shlibpath_var=LD_LIBRARY_PATH
15806  shlibpath_overrides_runpath=yes
15807  if test yes = "$with_gnu_ld"; then
15808    need_lib_prefix=no
15809  fi
15810  need_version=yes
15811  ;;
15812
15813sysv4 | sysv4.3*)
15814  version_type=linux # correct to gnu/linux during the next big refactor
15815  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15816  soname_spec='$libname$release$shared_ext$major'
15817  shlibpath_var=LD_LIBRARY_PATH
15818  case $host_vendor in
15819    sni)
15820      shlibpath_overrides_runpath=no
15821      need_lib_prefix=no
15822      runpath_var=LD_RUN_PATH
15823      ;;
15824    siemens)
15825      need_lib_prefix=no
15826      ;;
15827    motorola)
15828      need_lib_prefix=no
15829      need_version=no
15830      shlibpath_overrides_runpath=no
15831      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15832      ;;
15833  esac
15834  ;;
15835
15836sysv4*MP*)
15837  if test -d /usr/nec; then
15838    version_type=linux # correct to gnu/linux during the next big refactor
15839    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15840    soname_spec='$libname$shared_ext.$major'
15841    shlibpath_var=LD_LIBRARY_PATH
15842  fi
15843  ;;
15844
15845sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15846  version_type=sco
15847  need_lib_prefix=no
15848  need_version=no
15849  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15850  soname_spec='$libname$release$shared_ext$major'
15851  shlibpath_var=LD_LIBRARY_PATH
15852  shlibpath_overrides_runpath=yes
15853  hardcode_into_libs=yes
15854  if test yes = "$with_gnu_ld"; then
15855    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15856  else
15857    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15858    case $host_os in
15859      sco3.2v5*)
15860        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15861	;;
15862    esac
15863  fi
15864  sys_lib_dlsearch_path_spec='/usr/lib'
15865  ;;
15866
15867tpf*)
15868  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15869  version_type=linux # correct to gnu/linux during the next big refactor
15870  need_lib_prefix=no
15871  need_version=no
15872  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15873  shlibpath_var=LD_LIBRARY_PATH
15874  shlibpath_overrides_runpath=no
15875  hardcode_into_libs=yes
15876  ;;
15877
15878uts4*)
15879  version_type=linux # correct to gnu/linux during the next big refactor
15880  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15881  soname_spec='$libname$release$shared_ext$major'
15882  shlibpath_var=LD_LIBRARY_PATH
15883  ;;
15884
15885*)
15886  dynamic_linker=no
15887  ;;
15888esac
15889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15890$as_echo "$dynamic_linker" >&6; }
15891test no = "$dynamic_linker" && can_build_shared=no
15892
15893variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15894if test yes = "$GCC"; then
15895  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15896fi
15897
15898if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15899  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15900fi
15901
15902if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15903  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15904fi
15905
15906# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15907configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15908
15909# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15910func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15911
15912# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15913configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16012$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16013hardcode_action=
16014if test -n "$hardcode_libdir_flag_spec" ||
16015   test -n "$runpath_var" ||
16016   test yes = "$hardcode_automatic"; then
16017
16018  # We can hardcode non-existent directories.
16019  if test no != "$hardcode_direct" &&
16020     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16021     # have to relink, otherwise we might link with an installed library
16022     # when we should be linking with a yet-to-be-installed one
16023     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
16024     test no != "$hardcode_minus_L"; then
16025    # Linking always hardcodes the temporary library directory.
16026    hardcode_action=relink
16027  else
16028    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16029    hardcode_action=immediate
16030  fi
16031else
16032  # We cannot hardcode anything, or else we can only hardcode existing
16033  # directories.
16034  hardcode_action=unsupported
16035fi
16036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16037$as_echo "$hardcode_action" >&6; }
16038
16039if test relink = "$hardcode_action" ||
16040   test yes = "$inherit_rpath"; then
16041  # Fast installation is not supported
16042  enable_fast_install=no
16043elif test yes = "$shlibpath_overrides_runpath" ||
16044     test no = "$enable_shared"; then
16045  # Fast installation is not necessary
16046  enable_fast_install=needless
16047fi
16048
16049
16050
16051
16052
16053
16054  if test yes != "$enable_dlopen"; then
16055  enable_dlopen=unknown
16056  enable_dlopen_self=unknown
16057  enable_dlopen_self_static=unknown
16058else
16059  lt_cv_dlopen=no
16060  lt_cv_dlopen_libs=
16061
16062  case $host_os in
16063  beos*)
16064    lt_cv_dlopen=load_add_on
16065    lt_cv_dlopen_libs=
16066    lt_cv_dlopen_self=yes
16067    ;;
16068
16069  mingw* | pw32* | cegcc*)
16070    lt_cv_dlopen=LoadLibrary
16071    lt_cv_dlopen_libs=
16072    ;;
16073
16074  cygwin*)
16075    lt_cv_dlopen=dlopen
16076    lt_cv_dlopen_libs=
16077    ;;
16078
16079  darwin*)
16080    # if libdl is installed we need to link against it
16081    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16082$as_echo_n "checking for dlopen in -ldl... " >&6; }
16083if ${ac_cv_lib_dl_dlopen+:} false; then :
16084  $as_echo_n "(cached) " >&6
16085else
16086  ac_check_lib_save_LIBS=$LIBS
16087LIBS="-ldl  $LIBS"
16088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16089/* end confdefs.h.  */
16090
16091/* Override any GCC internal prototype to avoid an error.
16092   Use char because int might match the return type of a GCC
16093   builtin and then its argument prototype would still apply.  */
16094#ifdef __cplusplus
16095extern "C"
16096#endif
16097char dlopen ();
16098int
16099main ()
16100{
16101return dlopen ();
16102  ;
16103  return 0;
16104}
16105_ACEOF
16106if ac_fn_c_try_link "$LINENO"; then :
16107  ac_cv_lib_dl_dlopen=yes
16108else
16109  ac_cv_lib_dl_dlopen=no
16110fi
16111rm -f core conftest.err conftest.$ac_objext \
16112    conftest$ac_exeext conftest.$ac_ext
16113LIBS=$ac_check_lib_save_LIBS
16114fi
16115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16116$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16117if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16118  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16119else
16120
16121    lt_cv_dlopen=dyld
16122    lt_cv_dlopen_libs=
16123    lt_cv_dlopen_self=yes
16124
16125fi
16126
16127    ;;
16128
16129  tpf*)
16130    # Don't try to run any link tests for TPF.  We know it's impossible
16131    # because TPF is a cross-compiler, and we know how we open DSOs.
16132    lt_cv_dlopen=dlopen
16133    lt_cv_dlopen_libs=
16134    lt_cv_dlopen_self=no
16135    ;;
16136
16137  *)
16138    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16139if test "x$ac_cv_func_shl_load" = xyes; then :
16140  lt_cv_dlopen=shl_load
16141else
16142  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16143$as_echo_n "checking for shl_load in -ldld... " >&6; }
16144if ${ac_cv_lib_dld_shl_load+:} false; then :
16145  $as_echo_n "(cached) " >&6
16146else
16147  ac_check_lib_save_LIBS=$LIBS
16148LIBS="-ldld  $LIBS"
16149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16150/* end confdefs.h.  */
16151
16152/* Override any GCC internal prototype to avoid an error.
16153   Use char because int might match the return type of a GCC
16154   builtin and then its argument prototype would still apply.  */
16155#ifdef __cplusplus
16156extern "C"
16157#endif
16158char shl_load ();
16159int
16160main ()
16161{
16162return shl_load ();
16163  ;
16164  return 0;
16165}
16166_ACEOF
16167if ac_fn_c_try_link "$LINENO"; then :
16168  ac_cv_lib_dld_shl_load=yes
16169else
16170  ac_cv_lib_dld_shl_load=no
16171fi
16172rm -f core conftest.err conftest.$ac_objext \
16173    conftest$ac_exeext conftest.$ac_ext
16174LIBS=$ac_check_lib_save_LIBS
16175fi
16176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16177$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16178if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16179  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
16180else
16181  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16182if test "x$ac_cv_func_dlopen" = xyes; then :
16183  lt_cv_dlopen=dlopen
16184else
16185  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16186$as_echo_n "checking for dlopen in -ldl... " >&6; }
16187if ${ac_cv_lib_dl_dlopen+:} false; then :
16188  $as_echo_n "(cached) " >&6
16189else
16190  ac_check_lib_save_LIBS=$LIBS
16191LIBS="-ldl  $LIBS"
16192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16193/* end confdefs.h.  */
16194
16195/* Override any GCC internal prototype to avoid an error.
16196   Use char because int might match the return type of a GCC
16197   builtin and then its argument prototype would still apply.  */
16198#ifdef __cplusplus
16199extern "C"
16200#endif
16201char dlopen ();
16202int
16203main ()
16204{
16205return dlopen ();
16206  ;
16207  return 0;
16208}
16209_ACEOF
16210if ac_fn_c_try_link "$LINENO"; then :
16211  ac_cv_lib_dl_dlopen=yes
16212else
16213  ac_cv_lib_dl_dlopen=no
16214fi
16215rm -f core conftest.err conftest.$ac_objext \
16216    conftest$ac_exeext conftest.$ac_ext
16217LIBS=$ac_check_lib_save_LIBS
16218fi
16219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16220$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16221if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16222  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16223else
16224  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16225$as_echo_n "checking for dlopen in -lsvld... " >&6; }
16226if ${ac_cv_lib_svld_dlopen+:} false; then :
16227  $as_echo_n "(cached) " >&6
16228else
16229  ac_check_lib_save_LIBS=$LIBS
16230LIBS="-lsvld  $LIBS"
16231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16232/* end confdefs.h.  */
16233
16234/* Override any GCC internal prototype to avoid an error.
16235   Use char because int might match the return type of a GCC
16236   builtin and then its argument prototype would still apply.  */
16237#ifdef __cplusplus
16238extern "C"
16239#endif
16240char dlopen ();
16241int
16242main ()
16243{
16244return dlopen ();
16245  ;
16246  return 0;
16247}
16248_ACEOF
16249if ac_fn_c_try_link "$LINENO"; then :
16250  ac_cv_lib_svld_dlopen=yes
16251else
16252  ac_cv_lib_svld_dlopen=no
16253fi
16254rm -f core conftest.err conftest.$ac_objext \
16255    conftest$ac_exeext conftest.$ac_ext
16256LIBS=$ac_check_lib_save_LIBS
16257fi
16258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16259$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16260if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16261  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
16262else
16263  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16264$as_echo_n "checking for dld_link in -ldld... " >&6; }
16265if ${ac_cv_lib_dld_dld_link+:} false; then :
16266  $as_echo_n "(cached) " >&6
16267else
16268  ac_check_lib_save_LIBS=$LIBS
16269LIBS="-ldld  $LIBS"
16270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16271/* end confdefs.h.  */
16272
16273/* Override any GCC internal prototype to avoid an error.
16274   Use char because int might match the return type of a GCC
16275   builtin and then its argument prototype would still apply.  */
16276#ifdef __cplusplus
16277extern "C"
16278#endif
16279char dld_link ();
16280int
16281main ()
16282{
16283return dld_link ();
16284  ;
16285  return 0;
16286}
16287_ACEOF
16288if ac_fn_c_try_link "$LINENO"; then :
16289  ac_cv_lib_dld_dld_link=yes
16290else
16291  ac_cv_lib_dld_dld_link=no
16292fi
16293rm -f core conftest.err conftest.$ac_objext \
16294    conftest$ac_exeext conftest.$ac_ext
16295LIBS=$ac_check_lib_save_LIBS
16296fi
16297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16298$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16299if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16300  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
16301fi
16302
16303
16304fi
16305
16306
16307fi
16308
16309
16310fi
16311
16312
16313fi
16314
16315
16316fi
16317
16318    ;;
16319  esac
16320
16321  if test no = "$lt_cv_dlopen"; then
16322    enable_dlopen=no
16323  else
16324    enable_dlopen=yes
16325  fi
16326
16327  case $lt_cv_dlopen in
16328  dlopen)
16329    save_CPPFLAGS=$CPPFLAGS
16330    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16331
16332    save_LDFLAGS=$LDFLAGS
16333    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16334
16335    save_LIBS=$LIBS
16336    LIBS="$lt_cv_dlopen_libs $LIBS"
16337
16338    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16339$as_echo_n "checking whether a program can dlopen itself... " >&6; }
16340if ${lt_cv_dlopen_self+:} false; then :
16341  $as_echo_n "(cached) " >&6
16342else
16343  	  if test yes = "$cross_compiling"; then :
16344  lt_cv_dlopen_self=cross
16345else
16346  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16347  lt_status=$lt_dlunknown
16348  cat > conftest.$ac_ext <<_LT_EOF
16349#line $LINENO "configure"
16350#include "confdefs.h"
16351
16352#if HAVE_DLFCN_H
16353#include <dlfcn.h>
16354#endif
16355
16356#include <stdio.h>
16357
16358#ifdef RTLD_GLOBAL
16359#  define LT_DLGLOBAL		RTLD_GLOBAL
16360#else
16361#  ifdef DL_GLOBAL
16362#    define LT_DLGLOBAL		DL_GLOBAL
16363#  else
16364#    define LT_DLGLOBAL		0
16365#  endif
16366#endif
16367
16368/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16369   find out it does not work in some platform. */
16370#ifndef LT_DLLAZY_OR_NOW
16371#  ifdef RTLD_LAZY
16372#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
16373#  else
16374#    ifdef DL_LAZY
16375#      define LT_DLLAZY_OR_NOW		DL_LAZY
16376#    else
16377#      ifdef RTLD_NOW
16378#        define LT_DLLAZY_OR_NOW	RTLD_NOW
16379#      else
16380#        ifdef DL_NOW
16381#          define LT_DLLAZY_OR_NOW	DL_NOW
16382#        else
16383#          define LT_DLLAZY_OR_NOW	0
16384#        endif
16385#      endif
16386#    endif
16387#  endif
16388#endif
16389
16390/* When -fvisibility=hidden is used, assume the code has been annotated
16391   correspondingly for the symbols needed.  */
16392#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16393int fnord () __attribute__((visibility("default")));
16394#endif
16395
16396int fnord () { return 42; }
16397int main ()
16398{
16399  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16400  int status = $lt_dlunknown;
16401
16402  if (self)
16403    {
16404      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16405      else
16406        {
16407	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16408          else puts (dlerror ());
16409	}
16410      /* dlclose (self); */
16411    }
16412  else
16413    puts (dlerror ());
16414
16415  return status;
16416}
16417_LT_EOF
16418  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16419  (eval $ac_link) 2>&5
16420  ac_status=$?
16421  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16422  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16423    (./conftest; exit; ) >&5 2>/dev/null
16424    lt_status=$?
16425    case x$lt_status in
16426      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16427      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16428      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16429    esac
16430  else :
16431    # compilation failed
16432    lt_cv_dlopen_self=no
16433  fi
16434fi
16435rm -fr conftest*
16436
16437
16438fi
16439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16440$as_echo "$lt_cv_dlopen_self" >&6; }
16441
16442    if test yes = "$lt_cv_dlopen_self"; then
16443      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16444      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16445$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16446if ${lt_cv_dlopen_self_static+:} false; then :
16447  $as_echo_n "(cached) " >&6
16448else
16449  	  if test yes = "$cross_compiling"; then :
16450  lt_cv_dlopen_self_static=cross
16451else
16452  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16453  lt_status=$lt_dlunknown
16454  cat > conftest.$ac_ext <<_LT_EOF
16455#line $LINENO "configure"
16456#include "confdefs.h"
16457
16458#if HAVE_DLFCN_H
16459#include <dlfcn.h>
16460#endif
16461
16462#include <stdio.h>
16463
16464#ifdef RTLD_GLOBAL
16465#  define LT_DLGLOBAL		RTLD_GLOBAL
16466#else
16467#  ifdef DL_GLOBAL
16468#    define LT_DLGLOBAL		DL_GLOBAL
16469#  else
16470#    define LT_DLGLOBAL		0
16471#  endif
16472#endif
16473
16474/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16475   find out it does not work in some platform. */
16476#ifndef LT_DLLAZY_OR_NOW
16477#  ifdef RTLD_LAZY
16478#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
16479#  else
16480#    ifdef DL_LAZY
16481#      define LT_DLLAZY_OR_NOW		DL_LAZY
16482#    else
16483#      ifdef RTLD_NOW
16484#        define LT_DLLAZY_OR_NOW	RTLD_NOW
16485#      else
16486#        ifdef DL_NOW
16487#          define LT_DLLAZY_OR_NOW	DL_NOW
16488#        else
16489#          define LT_DLLAZY_OR_NOW	0
16490#        endif
16491#      endif
16492#    endif
16493#  endif
16494#endif
16495
16496/* When -fvisibility=hidden is used, assume the code has been annotated
16497   correspondingly for the symbols needed.  */
16498#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16499int fnord () __attribute__((visibility("default")));
16500#endif
16501
16502int fnord () { return 42; }
16503int main ()
16504{
16505  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16506  int status = $lt_dlunknown;
16507
16508  if (self)
16509    {
16510      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16511      else
16512        {
16513	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16514          else puts (dlerror ());
16515	}
16516      /* dlclose (self); */
16517    }
16518  else
16519    puts (dlerror ());
16520
16521  return status;
16522}
16523_LT_EOF
16524  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16525  (eval $ac_link) 2>&5
16526  ac_status=$?
16527  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16528  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16529    (./conftest; exit; ) >&5 2>/dev/null
16530    lt_status=$?
16531    case x$lt_status in
16532      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16533      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16534      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16535    esac
16536  else :
16537    # compilation failed
16538    lt_cv_dlopen_self_static=no
16539  fi
16540fi
16541rm -fr conftest*
16542
16543
16544fi
16545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16546$as_echo "$lt_cv_dlopen_self_static" >&6; }
16547    fi
16548
16549    CPPFLAGS=$save_CPPFLAGS
16550    LDFLAGS=$save_LDFLAGS
16551    LIBS=$save_LIBS
16552    ;;
16553  esac
16554
16555  case $lt_cv_dlopen_self in
16556  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16557  *) enable_dlopen_self=unknown ;;
16558  esac
16559
16560  case $lt_cv_dlopen_self_static in
16561  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16562  *) enable_dlopen_self_static=unknown ;;
16563  esac
16564fi
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582striplib=
16583old_striplib=
16584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16585$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16586if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16587  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16588  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16590$as_echo "yes" >&6; }
16591else
16592# FIXME - insert some real tests, host_os isn't really good enough
16593  case $host_os in
16594  darwin*)
16595    if test -n "$STRIP"; then
16596      striplib="$STRIP -x"
16597      old_striplib="$STRIP -S"
16598      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16599$as_echo "yes" >&6; }
16600    else
16601      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16602$as_echo "no" >&6; }
16603    fi
16604    ;;
16605  *)
16606    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16607$as_echo "no" >&6; }
16608    ;;
16609  esac
16610fi
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623  # Report what library types will actually be built
16624  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16625$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16627$as_echo "$can_build_shared" >&6; }
16628
16629  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16630$as_echo_n "checking whether to build shared libraries... " >&6; }
16631  test no = "$can_build_shared" && enable_shared=no
16632
16633  # On AIX, shared libraries and static libraries use the same namespace, and
16634  # are all built from PIC.
16635  case $host_os in
16636  aix3*)
16637    test yes = "$enable_shared" && enable_static=no
16638    if test -n "$RANLIB"; then
16639      archive_cmds="$archive_cmds~\$RANLIB \$lib"
16640      postinstall_cmds='$RANLIB $lib'
16641    fi
16642    ;;
16643
16644  aix[4-9]*)
16645    if test ia64 != "$host_cpu"; then
16646      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
16647      yes,aix,yes) ;;			# shared object as lib.so file only
16648      yes,svr4,*) ;;			# shared object as lib.so archive member only
16649      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
16650      esac
16651    fi
16652    ;;
16653  esac
16654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16655$as_echo "$enable_shared" >&6; }
16656
16657  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16658$as_echo_n "checking whether to build static libraries... " >&6; }
16659  # Make sure either enable_shared or enable_static is yes.
16660  test yes = "$enable_shared" || enable_static=yes
16661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16662$as_echo "$enable_static" >&6; }
16663
16664
16665
16666
16667fi
16668ac_ext=c
16669ac_cpp='$CPP $CPPFLAGS'
16670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16672ac_compiler_gnu=$ac_cv_c_compiler_gnu
16673
16674CC=$lt_save_CC
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690        ac_config_commands="$ac_config_commands libtool"
16691
16692
16693
16694
16695# Only expand once:
16696
16697
16698
16699
16700
16701if test -n "$ac_tool_prefix"; then
16702  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16703set dummy ${ac_tool_prefix}ar; ac_word=$2
16704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16705$as_echo_n "checking for $ac_word... " >&6; }
16706if ${ac_cv_prog_AR+:} false; then :
16707  $as_echo_n "(cached) " >&6
16708else
16709  if test -n "$AR"; then
16710  ac_cv_prog_AR="$AR" # Let the user override the test.
16711else
16712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16713for as_dir in $PATH
16714do
16715  IFS=$as_save_IFS
16716  test -z "$as_dir" && as_dir=.
16717    for ac_exec_ext in '' $ac_executable_extensions; do
16718  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16719    ac_cv_prog_AR="${ac_tool_prefix}ar"
16720    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16721    break 2
16722  fi
16723done
16724  done
16725IFS=$as_save_IFS
16726
16727fi
16728fi
16729AR=$ac_cv_prog_AR
16730if test -n "$AR"; then
16731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
16732$as_echo "$AR" >&6; }
16733else
16734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16735$as_echo "no" >&6; }
16736fi
16737
16738
16739fi
16740if test -z "$ac_cv_prog_AR"; then
16741  ac_ct_AR=$AR
16742  # Extract the first word of "ar", so it can be a program name with args.
16743set dummy ar; ac_word=$2
16744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16745$as_echo_n "checking for $ac_word... " >&6; }
16746if ${ac_cv_prog_ac_ct_AR+:} false; then :
16747  $as_echo_n "(cached) " >&6
16748else
16749  if test -n "$ac_ct_AR"; then
16750  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16751else
16752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16753for as_dir in $PATH
16754do
16755  IFS=$as_save_IFS
16756  test -z "$as_dir" && as_dir=.
16757    for ac_exec_ext in '' $ac_executable_extensions; do
16758  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16759    ac_cv_prog_ac_ct_AR="ar"
16760    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16761    break 2
16762  fi
16763done
16764  done
16765IFS=$as_save_IFS
16766
16767fi
16768fi
16769ac_ct_AR=$ac_cv_prog_ac_ct_AR
16770if test -n "$ac_ct_AR"; then
16771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
16772$as_echo "$ac_ct_AR" >&6; }
16773else
16774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16775$as_echo "no" >&6; }
16776fi
16777
16778  if test "x$ac_ct_AR" = x; then
16779    AR="ar"
16780  else
16781    case $cross_compiling:$ac_tool_warned in
16782yes:)
16783{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16784$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16785ac_tool_warned=yes ;;
16786esac
16787    AR=$ac_ct_AR
16788  fi
16789else
16790  AR="$ac_cv_prog_AR"
16791fi
16792
16793
16794
16795if test "x$EMSCRIPTEN" = "x"; then :
16796
16797
16798  oldcflags="$CFLAGS"
16799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mmmx" >&5
16800$as_echo_n "checking whether C compiler accepts -mmmx... " >&6; }
16801if ${ax_cv_check_cflags___mmmx+:} false; then :
16802  $as_echo_n "(cached) " >&6
16803else
16804
16805  ax_check_save_flags=$CFLAGS
16806  CFLAGS="$CFLAGS  -mmmx"
16807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16808/* end confdefs.h.  */
16809#include <time.h>
16810int
16811main ()
16812{
16813time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
16814  ;
16815  return 0;
16816}
16817_ACEOF
16818if ac_fn_c_try_link "$LINENO"; then :
16819  ax_cv_check_cflags___mmmx=yes
16820else
16821  ax_cv_check_cflags___mmmx=no
16822fi
16823rm -f core conftest.err conftest.$ac_objext \
16824    conftest$ac_exeext conftest.$ac_ext
16825  CFLAGS=$ax_check_save_flags
16826fi
16827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mmmx" >&5
16828$as_echo "$ax_cv_check_cflags___mmmx" >&6; }
16829if test "x$ax_cv_check_cflags___mmmx" = xyes; then :
16830  CFLAGS="$CFLAGS -mmmx"
16831else
16832  :
16833fi
16834
16835  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MMX instructions set" >&5
16836$as_echo_n "checking for MMX instructions set... " >&6; }
16837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16838/* end confdefs.h.  */
16839
16840#pragma GCC target("mmx")
16841#include <mmintrin.h>
16842
16843int
16844main ()
16845{
16846 __m64 x = _mm_setzero_si64();
16847  ;
16848  return 0;
16849}
16850_ACEOF
16851if ac_fn_c_try_compile "$LINENO"; then :
16852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16853$as_echo "yes" >&6; }
16854
16855$as_echo "#define HAVE_MMINTRIN_H 1" >>confdefs.h
16856
16857     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mmmx" >&5
16858$as_echo_n "checking whether C compiler accepts -mmmx... " >&6; }
16859if ${ax_cv_check_cflags___mmmx+:} false; then :
16860  $as_echo_n "(cached) " >&6
16861else
16862
16863  ax_check_save_flags=$CFLAGS
16864  CFLAGS="$CFLAGS  -mmmx"
16865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16866/* end confdefs.h.  */
16867#include <time.h>
16868int
16869main ()
16870{
16871time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
16872  ;
16873  return 0;
16874}
16875_ACEOF
16876if ac_fn_c_try_link "$LINENO"; then :
16877  ax_cv_check_cflags___mmmx=yes
16878else
16879  ax_cv_check_cflags___mmmx=no
16880fi
16881rm -f core conftest.err conftest.$ac_objext \
16882    conftest$ac_exeext conftest.$ac_ext
16883  CFLAGS=$ax_check_save_flags
16884fi
16885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mmmx" >&5
16886$as_echo "$ax_cv_check_cflags___mmmx" >&6; }
16887if test "x$ax_cv_check_cflags___mmmx" = xyes; then :
16888  CFLAGS_MMX="-mmmx"
16889else
16890  :
16891fi
16892
16893else
16894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16895$as_echo "no" >&6; }
16896fi
16897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16898  CFLAGS="$oldcflags"
16899
16900  oldcflags="$CFLAGS"
16901  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse2" >&5
16902$as_echo_n "checking whether C compiler accepts -msse2... " >&6; }
16903if ${ax_cv_check_cflags___msse2+:} false; then :
16904  $as_echo_n "(cached) " >&6
16905else
16906
16907  ax_check_save_flags=$CFLAGS
16908  CFLAGS="$CFLAGS  -msse2"
16909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16910/* end confdefs.h.  */
16911#include <time.h>
16912int
16913main ()
16914{
16915time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
16916  ;
16917  return 0;
16918}
16919_ACEOF
16920if ac_fn_c_try_link "$LINENO"; then :
16921  ax_cv_check_cflags___msse2=yes
16922else
16923  ax_cv_check_cflags___msse2=no
16924fi
16925rm -f core conftest.err conftest.$ac_objext \
16926    conftest$ac_exeext conftest.$ac_ext
16927  CFLAGS=$ax_check_save_flags
16928fi
16929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse2" >&5
16930$as_echo "$ax_cv_check_cflags___msse2" >&6; }
16931if test "x$ax_cv_check_cflags___msse2" = xyes; then :
16932  CFLAGS="$CFLAGS -msse2"
16933else
16934  :
16935fi
16936
16937  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE2 instructions set" >&5
16938$as_echo_n "checking for SSE2 instructions set... " >&6; }
16939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16940/* end confdefs.h.  */
16941
16942#pragma GCC target("sse2")
16943#ifndef __SSE2__
16944# define __SSE2__
16945#endif
16946#include <emmintrin.h>
16947
16948int
16949main ()
16950{
16951 __m128d x = _mm_setzero_pd();
16952       __m128i z = _mm_srli_epi64(_mm_setzero_si128(), 26);
16953  ;
16954  return 0;
16955}
16956_ACEOF
16957if ac_fn_c_try_compile "$LINENO"; then :
16958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16959$as_echo "yes" >&6; }
16960
16961$as_echo "#define HAVE_EMMINTRIN_H 1" >>confdefs.h
16962
16963     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse2" >&5
16964$as_echo_n "checking whether C compiler accepts -msse2... " >&6; }
16965if ${ax_cv_check_cflags___msse2+:} false; then :
16966  $as_echo_n "(cached) " >&6
16967else
16968
16969  ax_check_save_flags=$CFLAGS
16970  CFLAGS="$CFLAGS  -msse2"
16971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16972/* end confdefs.h.  */
16973#include <time.h>
16974int
16975main ()
16976{
16977time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
16978  ;
16979  return 0;
16980}
16981_ACEOF
16982if ac_fn_c_try_link "$LINENO"; then :
16983  ax_cv_check_cflags___msse2=yes
16984else
16985  ax_cv_check_cflags___msse2=no
16986fi
16987rm -f core conftest.err conftest.$ac_objext \
16988    conftest$ac_exeext conftest.$ac_ext
16989  CFLAGS=$ax_check_save_flags
16990fi
16991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse2" >&5
16992$as_echo "$ax_cv_check_cflags___msse2" >&6; }
16993if test "x$ax_cv_check_cflags___msse2" = xyes; then :
16994  CFLAGS_SSE2="-msse2"
16995else
16996  :
16997fi
16998
16999else
17000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17001$as_echo "no" >&6; }
17002fi
17003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17004  CFLAGS="$oldcflags"
17005
17006  oldcflags="$CFLAGS"
17007  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse3" >&5
17008$as_echo_n "checking whether C compiler accepts -msse3... " >&6; }
17009if ${ax_cv_check_cflags___msse3+:} false; then :
17010  $as_echo_n "(cached) " >&6
17011else
17012
17013  ax_check_save_flags=$CFLAGS
17014  CFLAGS="$CFLAGS  -msse3"
17015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17016/* end confdefs.h.  */
17017#include <time.h>
17018int
17019main ()
17020{
17021time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17022  ;
17023  return 0;
17024}
17025_ACEOF
17026if ac_fn_c_try_link "$LINENO"; then :
17027  ax_cv_check_cflags___msse3=yes
17028else
17029  ax_cv_check_cflags___msse3=no
17030fi
17031rm -f core conftest.err conftest.$ac_objext \
17032    conftest$ac_exeext conftest.$ac_ext
17033  CFLAGS=$ax_check_save_flags
17034fi
17035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse3" >&5
17036$as_echo "$ax_cv_check_cflags___msse3" >&6; }
17037if test "x$ax_cv_check_cflags___msse3" = xyes; then :
17038  CFLAGS="$CFLAGS -msse3"
17039else
17040  :
17041fi
17042
17043  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE3 instructions set" >&5
17044$as_echo_n "checking for SSE3 instructions set... " >&6; }
17045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17046/* end confdefs.h.  */
17047
17048#pragma GCC target("sse3")
17049#include <pmmintrin.h>
17050
17051int
17052main ()
17053{
17054 __m128 x = _mm_addsub_ps(_mm_cvtpd_ps(_mm_setzero_pd()),
17055                                _mm_cvtpd_ps(_mm_setzero_pd()));
17056  ;
17057  return 0;
17058}
17059_ACEOF
17060if ac_fn_c_try_compile "$LINENO"; then :
17061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17062$as_echo "yes" >&6; }
17063
17064$as_echo "#define HAVE_PMMINTRIN_H 1" >>confdefs.h
17065
17066     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse3" >&5
17067$as_echo_n "checking whether C compiler accepts -msse3... " >&6; }
17068if ${ax_cv_check_cflags___msse3+:} false; then :
17069  $as_echo_n "(cached) " >&6
17070else
17071
17072  ax_check_save_flags=$CFLAGS
17073  CFLAGS="$CFLAGS  -msse3"
17074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17075/* end confdefs.h.  */
17076#include <time.h>
17077int
17078main ()
17079{
17080time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17081  ;
17082  return 0;
17083}
17084_ACEOF
17085if ac_fn_c_try_link "$LINENO"; then :
17086  ax_cv_check_cflags___msse3=yes
17087else
17088  ax_cv_check_cflags___msse3=no
17089fi
17090rm -f core conftest.err conftest.$ac_objext \
17091    conftest$ac_exeext conftest.$ac_ext
17092  CFLAGS=$ax_check_save_flags
17093fi
17094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse3" >&5
17095$as_echo "$ax_cv_check_cflags___msse3" >&6; }
17096if test "x$ax_cv_check_cflags___msse3" = xyes; then :
17097  CFLAGS_SSE3="-msse3"
17098else
17099  :
17100fi
17101
17102else
17103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17104$as_echo "no" >&6; }
17105fi
17106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17107  CFLAGS="$oldcflags"
17108
17109  oldcflags="$CFLAGS"
17110  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mssse3" >&5
17111$as_echo_n "checking whether C compiler accepts -mssse3... " >&6; }
17112if ${ax_cv_check_cflags___mssse3+:} false; then :
17113  $as_echo_n "(cached) " >&6
17114else
17115
17116  ax_check_save_flags=$CFLAGS
17117  CFLAGS="$CFLAGS  -mssse3"
17118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17119/* end confdefs.h.  */
17120#include <time.h>
17121int
17122main ()
17123{
17124time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17125  ;
17126  return 0;
17127}
17128_ACEOF
17129if ac_fn_c_try_link "$LINENO"; then :
17130  ax_cv_check_cflags___mssse3=yes
17131else
17132  ax_cv_check_cflags___mssse3=no
17133fi
17134rm -f core conftest.err conftest.$ac_objext \
17135    conftest$ac_exeext conftest.$ac_ext
17136  CFLAGS=$ax_check_save_flags
17137fi
17138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mssse3" >&5
17139$as_echo "$ax_cv_check_cflags___mssse3" >&6; }
17140if test "x$ax_cv_check_cflags___mssse3" = xyes; then :
17141  CFLAGS="$CFLAGS -mssse3"
17142else
17143  :
17144fi
17145
17146  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSSE3 instructions set" >&5
17147$as_echo_n "checking for SSSE3 instructions set... " >&6; }
17148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17149/* end confdefs.h.  */
17150
17151#pragma GCC target("ssse3")
17152#include <tmmintrin.h>
17153
17154int
17155main ()
17156{
17157 __m64 x = _mm_abs_pi32(_m_from_int(0));
17158  ;
17159  return 0;
17160}
17161_ACEOF
17162if ac_fn_c_try_compile "$LINENO"; then :
17163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17164$as_echo "yes" >&6; }
17165
17166$as_echo "#define HAVE_TMMINTRIN_H 1" >>confdefs.h
17167
17168     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mssse3" >&5
17169$as_echo_n "checking whether C compiler accepts -mssse3... " >&6; }
17170if ${ax_cv_check_cflags___mssse3+:} false; then :
17171  $as_echo_n "(cached) " >&6
17172else
17173
17174  ax_check_save_flags=$CFLAGS
17175  CFLAGS="$CFLAGS  -mssse3"
17176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17177/* end confdefs.h.  */
17178#include <time.h>
17179int
17180main ()
17181{
17182time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17183  ;
17184  return 0;
17185}
17186_ACEOF
17187if ac_fn_c_try_link "$LINENO"; then :
17188  ax_cv_check_cflags___mssse3=yes
17189else
17190  ax_cv_check_cflags___mssse3=no
17191fi
17192rm -f core conftest.err conftest.$ac_objext \
17193    conftest$ac_exeext conftest.$ac_ext
17194  CFLAGS=$ax_check_save_flags
17195fi
17196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mssse3" >&5
17197$as_echo "$ax_cv_check_cflags___mssse3" >&6; }
17198if test "x$ax_cv_check_cflags___mssse3" = xyes; then :
17199  CFLAGS_SSSE3="-mssse3"
17200else
17201  :
17202fi
17203
17204else
17205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17206$as_echo "no" >&6; }
17207fi
17208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17209  CFLAGS="$oldcflags"
17210
17211  oldcflags="$CFLAGS"
17212  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse4.1" >&5
17213$as_echo_n "checking whether C compiler accepts -msse4.1... " >&6; }
17214if ${ax_cv_check_cflags___msse4_1+:} false; then :
17215  $as_echo_n "(cached) " >&6
17216else
17217
17218  ax_check_save_flags=$CFLAGS
17219  CFLAGS="$CFLAGS  -msse4.1"
17220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17221/* end confdefs.h.  */
17222#include <time.h>
17223int
17224main ()
17225{
17226time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17227  ;
17228  return 0;
17229}
17230_ACEOF
17231if ac_fn_c_try_link "$LINENO"; then :
17232  ax_cv_check_cflags___msse4_1=yes
17233else
17234  ax_cv_check_cflags___msse4_1=no
17235fi
17236rm -f core conftest.err conftest.$ac_objext \
17237    conftest$ac_exeext conftest.$ac_ext
17238  CFLAGS=$ax_check_save_flags
17239fi
17240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse4_1" >&5
17241$as_echo "$ax_cv_check_cflags___msse4_1" >&6; }
17242if test "x$ax_cv_check_cflags___msse4_1" = xyes; then :
17243  CFLAGS="$CFLAGS -msse4.1"
17244else
17245  :
17246fi
17247
17248  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE4.1 instructions set" >&5
17249$as_echo_n "checking for SSE4.1 instructions set... " >&6; }
17250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17251/* end confdefs.h.  */
17252
17253#pragma GCC target("sse4.1")
17254#include <smmintrin.h>
17255
17256int
17257main ()
17258{
17259 __m128i x = _mm_minpos_epu16(_mm_setzero_si128());
17260  ;
17261  return 0;
17262}
17263_ACEOF
17264if ac_fn_c_try_compile "$LINENO"; then :
17265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17266$as_echo "yes" >&6; }
17267
17268$as_echo "#define HAVE_SMMINTRIN_H 1" >>confdefs.h
17269
17270     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse4.1" >&5
17271$as_echo_n "checking whether C compiler accepts -msse4.1... " >&6; }
17272if ${ax_cv_check_cflags___msse4_1+:} false; then :
17273  $as_echo_n "(cached) " >&6
17274else
17275
17276  ax_check_save_flags=$CFLAGS
17277  CFLAGS="$CFLAGS  -msse4.1"
17278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17279/* end confdefs.h.  */
17280#include <time.h>
17281int
17282main ()
17283{
17284time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17285  ;
17286  return 0;
17287}
17288_ACEOF
17289if ac_fn_c_try_link "$LINENO"; then :
17290  ax_cv_check_cflags___msse4_1=yes
17291else
17292  ax_cv_check_cflags___msse4_1=no
17293fi
17294rm -f core conftest.err conftest.$ac_objext \
17295    conftest$ac_exeext conftest.$ac_ext
17296  CFLAGS=$ax_check_save_flags
17297fi
17298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse4_1" >&5
17299$as_echo "$ax_cv_check_cflags___msse4_1" >&6; }
17300if test "x$ax_cv_check_cflags___msse4_1" = xyes; then :
17301  CFLAGS_SSE41="-msse4.1"
17302else
17303  :
17304fi
17305
17306else
17307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17308$as_echo "no" >&6; }
17309fi
17310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17311  CFLAGS="$oldcflags"
17312
17313  oldcflags="$CFLAGS"
17314  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx" >&5
17315$as_echo_n "checking whether C compiler accepts -mavx... " >&6; }
17316if ${ax_cv_check_cflags___mavx+:} false; then :
17317  $as_echo_n "(cached) " >&6
17318else
17319
17320  ax_check_save_flags=$CFLAGS
17321  CFLAGS="$CFLAGS  -mavx"
17322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17323/* end confdefs.h.  */
17324#include <time.h>
17325int
17326main ()
17327{
17328time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17329  ;
17330  return 0;
17331}
17332_ACEOF
17333if ac_fn_c_try_link "$LINENO"; then :
17334  ax_cv_check_cflags___mavx=yes
17335else
17336  ax_cv_check_cflags___mavx=no
17337fi
17338rm -f core conftest.err conftest.$ac_objext \
17339    conftest$ac_exeext conftest.$ac_ext
17340  CFLAGS=$ax_check_save_flags
17341fi
17342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx" >&5
17343$as_echo "$ax_cv_check_cflags___mavx" >&6; }
17344if test "x$ax_cv_check_cflags___mavx" = xyes; then :
17345  CFLAGS="$CFLAGS -mavx"
17346else
17347  :
17348fi
17349
17350  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX instructions set" >&5
17351$as_echo_n "checking for AVX instructions set... " >&6; }
17352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17353/* end confdefs.h.  */
17354
17355#pragma GCC target("avx")
17356#include <immintrin.h>
17357
17358int
17359main ()
17360{
17361 _mm256_zeroall();
17362  ;
17363  return 0;
17364}
17365_ACEOF
17366if ac_fn_c_try_compile "$LINENO"; then :
17367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17368$as_echo "yes" >&6; }
17369
17370$as_echo "#define HAVE_AVXINTRIN_H 1" >>confdefs.h
17371
17372     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx" >&5
17373$as_echo_n "checking whether C compiler accepts -mavx... " >&6; }
17374if ${ax_cv_check_cflags___mavx+:} false; then :
17375  $as_echo_n "(cached) " >&6
17376else
17377
17378  ax_check_save_flags=$CFLAGS
17379  CFLAGS="$CFLAGS  -mavx"
17380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17381/* end confdefs.h.  */
17382#include <time.h>
17383int
17384main ()
17385{
17386time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17387  ;
17388  return 0;
17389}
17390_ACEOF
17391if ac_fn_c_try_link "$LINENO"; then :
17392  ax_cv_check_cflags___mavx=yes
17393else
17394  ax_cv_check_cflags___mavx=no
17395fi
17396rm -f core conftest.err conftest.$ac_objext \
17397    conftest$ac_exeext conftest.$ac_ext
17398  CFLAGS=$ax_check_save_flags
17399fi
17400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx" >&5
17401$as_echo "$ax_cv_check_cflags___mavx" >&6; }
17402if test "x$ax_cv_check_cflags___mavx" = xyes; then :
17403  CFLAGS_AVX="-mavx"
17404else
17405  :
17406fi
17407
17408else
17409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17410$as_echo "no" >&6; }
17411fi
17412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17413  CFLAGS="$oldcflags"
17414
17415  oldcflags="$CFLAGS"
17416  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5
17417$as_echo_n "checking whether C compiler accepts -mavx2... " >&6; }
17418if ${ax_cv_check_cflags___mavx2+:} false; then :
17419  $as_echo_n "(cached) " >&6
17420else
17421
17422  ax_check_save_flags=$CFLAGS
17423  CFLAGS="$CFLAGS  -mavx2"
17424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17425/* end confdefs.h.  */
17426#include <time.h>
17427int
17428main ()
17429{
17430time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17431  ;
17432  return 0;
17433}
17434_ACEOF
17435if ac_fn_c_try_link "$LINENO"; then :
17436  ax_cv_check_cflags___mavx2=yes
17437else
17438  ax_cv_check_cflags___mavx2=no
17439fi
17440rm -f core conftest.err conftest.$ac_objext \
17441    conftest$ac_exeext conftest.$ac_ext
17442  CFLAGS=$ax_check_save_flags
17443fi
17444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx2" >&5
17445$as_echo "$ax_cv_check_cflags___mavx2" >&6; }
17446if test "x$ax_cv_check_cflags___mavx2" = xyes; then :
17447  CFLAGS="$CFLAGS -mavx2"
17448else
17449  :
17450fi
17451
17452  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX2 instructions set" >&5
17453$as_echo_n "checking for AVX2 instructions set... " >&6; }
17454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17455/* end confdefs.h.  */
17456
17457#pragma GCC target("avx2")
17458#include <immintrin.h>
17459
17460int
17461main ()
17462{
17463
17464__m256 x = _mm256_set1_ps(3.14);
17465__m256 y = _mm256_permutevar8x32_ps(x, _mm256_set1_epi32(42));
17466return _mm256_movemask_ps(_mm256_cmp_ps(x, y, _CMP_NEQ_OQ));
17467
17468  ;
17469  return 0;
17470}
17471_ACEOF
17472if ac_fn_c_try_compile "$LINENO"; then :
17473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17474$as_echo "yes" >&6; }
17475
17476$as_echo "#define HAVE_AVX2INTRIN_H 1" >>confdefs.h
17477
17478     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5
17479$as_echo_n "checking whether C compiler accepts -mavx2... " >&6; }
17480if ${ax_cv_check_cflags___mavx2+:} false; then :
17481  $as_echo_n "(cached) " >&6
17482else
17483
17484  ax_check_save_flags=$CFLAGS
17485  CFLAGS="$CFLAGS  -mavx2"
17486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17487/* end confdefs.h.  */
17488#include <time.h>
17489int
17490main ()
17491{
17492time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17493  ;
17494  return 0;
17495}
17496_ACEOF
17497if ac_fn_c_try_link "$LINENO"; then :
17498  ax_cv_check_cflags___mavx2=yes
17499else
17500  ax_cv_check_cflags___mavx2=no
17501fi
17502rm -f core conftest.err conftest.$ac_objext \
17503    conftest$ac_exeext conftest.$ac_ext
17504  CFLAGS=$ax_check_save_flags
17505fi
17506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx2" >&5
17507$as_echo "$ax_cv_check_cflags___mavx2" >&6; }
17508if test "x$ax_cv_check_cflags___mavx2" = xyes; then :
17509  CFLAGS_AVX2="-mavx2"
17510else
17511  :
17512fi
17513
17514     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _mm256_broadcastsi128_si256 is correctly defined" >&5
17515$as_echo_n "checking if _mm256_broadcastsi128_si256 is correctly defined... " >&6; }
17516     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17517/* end confdefs.h.  */
17518
17519#pragma GCC target("avx2")
17520#include <immintrin.h>
17521
17522int
17523main ()
17524{
17525 __m256i y = _mm256_broadcastsi128_si256(_mm_setzero_si128());
17526  ;
17527  return 0;
17528}
17529_ACEOF
17530if ac_fn_c_try_compile "$LINENO"; then :
17531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17532$as_echo "yes" >&6; }
17533else
17534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17535$as_echo "no" >&6; }
17536
17537$as_echo "#define _mm256_broadcastsi128_si256 _mm_broadcastsi128_si256" >>confdefs.h
17538
17539fi
17540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17541
17542else
17543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17544$as_echo "no" >&6; }
17545fi
17546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17547  CFLAGS="$oldcflags"
17548
17549  oldcflags="$CFLAGS"
17550  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx512f" >&5
17551$as_echo_n "checking whether C compiler accepts -mavx512f... " >&6; }
17552if ${ax_cv_check_cflags___mavx512f+:} false; then :
17553  $as_echo_n "(cached) " >&6
17554else
17555
17556  ax_check_save_flags=$CFLAGS
17557  CFLAGS="$CFLAGS  -mavx512f"
17558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17559/* end confdefs.h.  */
17560#include <time.h>
17561int
17562main ()
17563{
17564time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17565  ;
17566  return 0;
17567}
17568_ACEOF
17569if ac_fn_c_try_link "$LINENO"; then :
17570  ax_cv_check_cflags___mavx512f=yes
17571else
17572  ax_cv_check_cflags___mavx512f=no
17573fi
17574rm -f core conftest.err conftest.$ac_objext \
17575    conftest$ac_exeext conftest.$ac_ext
17576  CFLAGS=$ax_check_save_flags
17577fi
17578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx512f" >&5
17579$as_echo "$ax_cv_check_cflags___mavx512f" >&6; }
17580if test "x$ax_cv_check_cflags___mavx512f" = xyes; then :
17581  CFLAGS="$CFLAGS -mavx512f"
17582else
17583  :
17584fi
17585
17586  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX512F instructions set" >&5
17587$as_echo_n "checking for AVX512F instructions set... " >&6; }
17588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17589/* end confdefs.h.  */
17590
17591#pragma GCC target("avx512f")
17592#include <immintrin.h>
17593
17594int
17595main ()
17596{
17597
17598
17599#ifndef __AVX512F__
17600# error No AVX512 support
17601#elif defined(__clang__)
17602# if __clang_major__ < 4
17603#  error Compiler AVX512 support may be broken
17604# endif
17605#elif defined(__GNUC__)
17606# if __GNUC__ < 6
17607#  error Compiler AVX512 support may be broken
17608# endif
17609#endif
17610
17611__m512i x = _mm512_setzero_epi32();
17612__m512i y = _mm512_permutexvar_epi64(_mm512_setr_epi64(0, 1, 4, 5, 2, 3, 6, 7), x);
17613
17614  ;
17615  return 0;
17616}
17617_ACEOF
17618if ac_fn_c_try_compile "$LINENO"; then :
17619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17620$as_echo "yes" >&6; }
17621
17622$as_echo "#define HAVE_AVX512FINTRIN_H 1" >>confdefs.h
17623
17624     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx512f" >&5
17625$as_echo_n "checking whether C compiler accepts -mavx512f... " >&6; }
17626if ${ax_cv_check_cflags___mavx512f+:} false; then :
17627  $as_echo_n "(cached) " >&6
17628else
17629
17630  ax_check_save_flags=$CFLAGS
17631  CFLAGS="$CFLAGS  -mavx512f"
17632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17633/* end confdefs.h.  */
17634#include <time.h>
17635int
17636main ()
17637{
17638time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17639  ;
17640  return 0;
17641}
17642_ACEOF
17643if ac_fn_c_try_link "$LINENO"; then :
17644  ax_cv_check_cflags___mavx512f=yes
17645else
17646  ax_cv_check_cflags___mavx512f=no
17647fi
17648rm -f core conftest.err conftest.$ac_objext \
17649    conftest$ac_exeext conftest.$ac_ext
17650  CFLAGS=$ax_check_save_flags
17651fi
17652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx512f" >&5
17653$as_echo "$ax_cv_check_cflags___mavx512f" >&6; }
17654if test "x$ax_cv_check_cflags___mavx512f" = xyes; then :
17655  CFLAGS_AVX512F="-mavx512f"
17656else
17657  :
17658fi
17659
17660else
17661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17662$as_echo "no" >&6; }
17663     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS -mno-avx512f" | $as_tr_sh`
17664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS -mno-avx512f" >&5
17665$as_echo_n "checking whether C compiler accepts $CFLAGS -mno-avx512f... " >&6; }
17666if eval \${$as_CACHEVAR+:} false; then :
17667  $as_echo_n "(cached) " >&6
17668else
17669
17670  ax_check_save_flags=$CFLAGS
17671  CFLAGS="$CFLAGS  $CFLAGS -mno-avx512f"
17672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17673/* end confdefs.h.  */
17674#include <time.h>
17675int
17676main ()
17677{
17678time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17679  ;
17680  return 0;
17681}
17682_ACEOF
17683if ac_fn_c_try_link "$LINENO"; then :
17684  eval "$as_CACHEVAR=yes"
17685else
17686  eval "$as_CACHEVAR=no"
17687fi
17688rm -f core conftest.err conftest.$ac_objext \
17689    conftest$ac_exeext conftest.$ac_ext
17690  CFLAGS=$ax_check_save_flags
17691fi
17692eval ac_res=\$$as_CACHEVAR
17693	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17694$as_echo "$ac_res" >&6; }
17695if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17696  CFLAGS="$CFLAGS -mno-avx512f"
17697else
17698  :
17699fi
17700
17701
17702fi
17703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17704  CFLAGS="$oldcflags"
17705
17706  oldcflags="$CFLAGS"
17707  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maes" >&5
17708$as_echo_n "checking whether C compiler accepts -maes... " >&6; }
17709if ${ax_cv_check_cflags___maes+:} false; then :
17710  $as_echo_n "(cached) " >&6
17711else
17712
17713  ax_check_save_flags=$CFLAGS
17714  CFLAGS="$CFLAGS  -maes"
17715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17716/* end confdefs.h.  */
17717#include <time.h>
17718int
17719main ()
17720{
17721time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17722  ;
17723  return 0;
17724}
17725_ACEOF
17726if ac_fn_c_try_link "$LINENO"; then :
17727  ax_cv_check_cflags___maes=yes
17728else
17729  ax_cv_check_cflags___maes=no
17730fi
17731rm -f core conftest.err conftest.$ac_objext \
17732    conftest$ac_exeext conftest.$ac_ext
17733  CFLAGS=$ax_check_save_flags
17734fi
17735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___maes" >&5
17736$as_echo "$ax_cv_check_cflags___maes" >&6; }
17737if test "x$ax_cv_check_cflags___maes" = xyes; then :
17738  CFLAGS="$CFLAGS -maes"
17739else
17740  :
17741fi
17742
17743  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpclmul" >&5
17744$as_echo_n "checking whether C compiler accepts -mpclmul... " >&6; }
17745if ${ax_cv_check_cflags___mpclmul+:} false; then :
17746  $as_echo_n "(cached) " >&6
17747else
17748
17749  ax_check_save_flags=$CFLAGS
17750  CFLAGS="$CFLAGS  -mpclmul"
17751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17752/* end confdefs.h.  */
17753#include <time.h>
17754int
17755main ()
17756{
17757time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17758  ;
17759  return 0;
17760}
17761_ACEOF
17762if ac_fn_c_try_link "$LINENO"; then :
17763  ax_cv_check_cflags___mpclmul=yes
17764else
17765  ax_cv_check_cflags___mpclmul=no
17766fi
17767rm -f core conftest.err conftest.$ac_objext \
17768    conftest$ac_exeext conftest.$ac_ext
17769  CFLAGS=$ax_check_save_flags
17770fi
17771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mpclmul" >&5
17772$as_echo "$ax_cv_check_cflags___mpclmul" >&6; }
17773if test "x$ax_cv_check_cflags___mpclmul" = xyes; then :
17774  CFLAGS="$CFLAGS -mpclmul"
17775else
17776  :
17777fi
17778
17779  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AESNI instructions set and PCLMULQDQ" >&5
17780$as_echo_n "checking for AESNI instructions set and PCLMULQDQ... " >&6; }
17781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17782/* end confdefs.h.  */
17783
17784#pragma GCC target("aes")
17785#pragma GCC target("pclmul")
17786#include <wmmintrin.h>
17787
17788int
17789main ()
17790{
17791 __m128i x = _mm_aesimc_si128(_mm_setzero_si128());
17792       __m128i y = _mm_clmulepi64_si128(_mm_setzero_si128(), _mm_setzero_si128(), 0);
17793  ;
17794  return 0;
17795}
17796_ACEOF
17797if ac_fn_c_try_compile "$LINENO"; then :
17798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17799$as_echo "yes" >&6; }
17800
17801$as_echo "#define HAVE_WMMINTRIN_H 1" >>confdefs.h
17802
17803     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maes" >&5
17804$as_echo_n "checking whether C compiler accepts -maes... " >&6; }
17805if ${ax_cv_check_cflags___maes+:} false; then :
17806  $as_echo_n "(cached) " >&6
17807else
17808
17809  ax_check_save_flags=$CFLAGS
17810  CFLAGS="$CFLAGS  -maes"
17811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17812/* end confdefs.h.  */
17813#include <time.h>
17814int
17815main ()
17816{
17817time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17818  ;
17819  return 0;
17820}
17821_ACEOF
17822if ac_fn_c_try_link "$LINENO"; then :
17823  ax_cv_check_cflags___maes=yes
17824else
17825  ax_cv_check_cflags___maes=no
17826fi
17827rm -f core conftest.err conftest.$ac_objext \
17828    conftest$ac_exeext conftest.$ac_ext
17829  CFLAGS=$ax_check_save_flags
17830fi
17831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___maes" >&5
17832$as_echo "$ax_cv_check_cflags___maes" >&6; }
17833if test "x$ax_cv_check_cflags___maes" = xyes; then :
17834  CFLAGS_AESNI="-maes"
17835else
17836  :
17837fi
17838
17839     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpclmul" >&5
17840$as_echo_n "checking whether C compiler accepts -mpclmul... " >&6; }
17841if ${ax_cv_check_cflags___mpclmul+:} false; then :
17842  $as_echo_n "(cached) " >&6
17843else
17844
17845  ax_check_save_flags=$CFLAGS
17846  CFLAGS="$CFLAGS  -mpclmul"
17847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17848/* end confdefs.h.  */
17849#include <time.h>
17850int
17851main ()
17852{
17853time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17854  ;
17855  return 0;
17856}
17857_ACEOF
17858if ac_fn_c_try_link "$LINENO"; then :
17859  ax_cv_check_cflags___mpclmul=yes
17860else
17861  ax_cv_check_cflags___mpclmul=no
17862fi
17863rm -f core conftest.err conftest.$ac_objext \
17864    conftest$ac_exeext conftest.$ac_ext
17865  CFLAGS=$ax_check_save_flags
17866fi
17867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mpclmul" >&5
17868$as_echo "$ax_cv_check_cflags___mpclmul" >&6; }
17869if test "x$ax_cv_check_cflags___mpclmul" = xyes; then :
17870  CFLAGS_PCLMUL="-mpclmul"
17871else
17872  :
17873fi
17874
17875
17876else
17877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17878$as_echo "no" >&6; }
17879fi
17880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17881  CFLAGS="$oldcflags"
17882
17883  oldcflags="$CFLAGS"
17884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mrdrnd" >&5
17885$as_echo_n "checking whether C compiler accepts -mrdrnd... " >&6; }
17886if ${ax_cv_check_cflags___mrdrnd+:} false; then :
17887  $as_echo_n "(cached) " >&6
17888else
17889
17890  ax_check_save_flags=$CFLAGS
17891  CFLAGS="$CFLAGS  -mrdrnd"
17892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17893/* end confdefs.h.  */
17894#include <time.h>
17895int
17896main ()
17897{
17898time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17899  ;
17900  return 0;
17901}
17902_ACEOF
17903if ac_fn_c_try_link "$LINENO"; then :
17904  ax_cv_check_cflags___mrdrnd=yes
17905else
17906  ax_cv_check_cflags___mrdrnd=no
17907fi
17908rm -f core conftest.err conftest.$ac_objext \
17909    conftest$ac_exeext conftest.$ac_ext
17910  CFLAGS=$ax_check_save_flags
17911fi
17912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mrdrnd" >&5
17913$as_echo "$ax_cv_check_cflags___mrdrnd" >&6; }
17914if test "x$ax_cv_check_cflags___mrdrnd" = xyes; then :
17915  CFLAGS="$CFLAGS -mrdrnd"
17916else
17917  :
17918fi
17919
17920  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RDRAND" >&5
17921$as_echo_n "checking for RDRAND... " >&6; }
17922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17923/* end confdefs.h.  */
17924
17925#pragma GCC target("rdrnd")
17926#include <immintrin.h>
17927
17928int
17929main ()
17930{
17931 unsigned long long x; _rdrand64_step(&x);
17932  ;
17933  return 0;
17934}
17935_ACEOF
17936if ac_fn_c_try_compile "$LINENO"; then :
17937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17938$as_echo "yes" >&6; }
17939
17940$as_echo "#define HAVE_RDRAND 1" >>confdefs.h
17941
17942     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mrdrnd" >&5
17943$as_echo_n "checking whether C compiler accepts -mrdrnd... " >&6; }
17944if ${ax_cv_check_cflags___mrdrnd+:} false; then :
17945  $as_echo_n "(cached) " >&6
17946else
17947
17948  ax_check_save_flags=$CFLAGS
17949  CFLAGS="$CFLAGS  -mrdrnd"
17950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17951/* end confdefs.h.  */
17952#include <time.h>
17953int
17954main ()
17955{
17956time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17957  ;
17958  return 0;
17959}
17960_ACEOF
17961if ac_fn_c_try_link "$LINENO"; then :
17962  ax_cv_check_cflags___mrdrnd=yes
17963else
17964  ax_cv_check_cflags___mrdrnd=no
17965fi
17966rm -f core conftest.err conftest.$ac_objext \
17967    conftest$ac_exeext conftest.$ac_ext
17968  CFLAGS=$ax_check_save_flags
17969fi
17970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mrdrnd" >&5
17971$as_echo "$ax_cv_check_cflags___mrdrnd" >&6; }
17972if test "x$ax_cv_check_cflags___mrdrnd" = xyes; then :
17973  CFLAGS_RDRAND="-mrdrnd"
17974else
17975  :
17976fi
17977
17978
17979else
17980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17981$as_echo "no" >&6; }
17982fi
17983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17984  CFLAGS="$oldcflags"
17985
17986
17987fi
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001for ac_header in sys/mman.h sys/random.h intrin.h
18002do :
18003  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18004ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18005if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18006  cat >>confdefs.h <<_ACEOF
18007#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18008_ACEOF
18009
18010fi
18011
18012done
18013
18014
18015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if _xgetbv() is available" >&5
18016$as_echo_n "checking if _xgetbv() is available... " >&6; }
18017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18018/* end confdefs.h.  */
18019 #include <intrin.h>
18020int
18021main ()
18022{
18023 (void) _xgetbv(0)
18024  ;
18025  return 0;
18026}
18027_ACEOF
18028if ac_fn_c_try_link "$LINENO"; then :
18029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18030$as_echo "yes" >&6; }
18031
18032$as_echo "#define HAVE__XGETBV 1" >>confdefs.h
18033
18034else
18035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18036$as_echo "no" >&6; }
18037fi
18038rm -f core conftest.err conftest.$ac_objext \
18039    conftest$ac_exeext conftest.$ac_ext
18040
18041
18042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18043$as_echo_n "checking for inline... " >&6; }
18044if ${ac_cv_c_inline+:} false; then :
18045  $as_echo_n "(cached) " >&6
18046else
18047  ac_cv_c_inline=no
18048for ac_kw in inline __inline__ __inline; do
18049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18050/* end confdefs.h.  */
18051#ifndef __cplusplus
18052typedef int foo_t;
18053static $ac_kw foo_t static_foo () {return 0; }
18054$ac_kw foo_t foo () {return 0; }
18055#endif
18056
18057_ACEOF
18058if ac_fn_c_try_compile "$LINENO"; then :
18059  ac_cv_c_inline=$ac_kw
18060fi
18061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18062  test "$ac_cv_c_inline" != no && break
18063done
18064
18065fi
18066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18067$as_echo "$ac_cv_c_inline" >&6; }
18068
18069case $ac_cv_c_inline in
18070  inline | yes) ;;
18071  *)
18072    case $ac_cv_c_inline in
18073      no) ac_val=;;
18074      *) ac_val=$ac_cv_c_inline;;
18075    esac
18076    cat >>confdefs.h <<_ACEOF
18077#ifndef __cplusplus
18078#define inline $ac_val
18079#endif
18080_ACEOF
18081    ;;
18082esac
18083
18084case $host_cpu in #(
18085  i?86|amd64|x86_64) :
18086    ac_cv_c_bigendian=no
18087 ;; #(
18088  *) :
18089     ;;
18090esac
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18092$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18093if ${ac_cv_c_bigendian+:} false; then :
18094  $as_echo_n "(cached) " >&6
18095else
18096  ac_cv_c_bigendian=unknown
18097    # See if we're dealing with a universal compiler.
18098    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18099/* end confdefs.h.  */
18100#ifndef __APPLE_CC__
18101	       not a universal capable compiler
18102	     #endif
18103	     typedef int dummy;
18104
18105_ACEOF
18106if ac_fn_c_try_compile "$LINENO"; then :
18107
18108	# Check for potential -arch flags.  It is not universal unless
18109	# there are at least two -arch flags with different values.
18110	ac_arch=
18111	ac_prev=
18112	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
18113	 if test -n "$ac_prev"; then
18114	   case $ac_word in
18115	     i?86 | x86_64 | ppc | ppc64)
18116	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
18117		 ac_arch=$ac_word
18118	       else
18119		 ac_cv_c_bigendian=universal
18120		 break
18121	       fi
18122	       ;;
18123	   esac
18124	   ac_prev=
18125	 elif test "x$ac_word" = "x-arch"; then
18126	   ac_prev=arch
18127	 fi
18128       done
18129fi
18130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18131    if test $ac_cv_c_bigendian = unknown; then
18132      # See if sys/param.h defines the BYTE_ORDER macro.
18133      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18134/* end confdefs.h.  */
18135#include <sys/types.h>
18136	     #include <sys/param.h>
18137
18138int
18139main ()
18140{
18141#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18142		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18143		     && LITTLE_ENDIAN)
18144	      bogus endian macros
18145	     #endif
18146
18147  ;
18148  return 0;
18149}
18150_ACEOF
18151if ac_fn_c_try_compile "$LINENO"; then :
18152  # It does; now see whether it defined to BIG_ENDIAN or not.
18153	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18154/* end confdefs.h.  */
18155#include <sys/types.h>
18156		#include <sys/param.h>
18157
18158int
18159main ()
18160{
18161#if BYTE_ORDER != BIG_ENDIAN
18162		 not big endian
18163		#endif
18164
18165  ;
18166  return 0;
18167}
18168_ACEOF
18169if ac_fn_c_try_compile "$LINENO"; then :
18170  ac_cv_c_bigendian=yes
18171else
18172  ac_cv_c_bigendian=no
18173fi
18174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18175fi
18176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18177    fi
18178    if test $ac_cv_c_bigendian = unknown; then
18179      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18180      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18181/* end confdefs.h.  */
18182#include <limits.h>
18183
18184int
18185main ()
18186{
18187#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18188	      bogus endian macros
18189	     #endif
18190
18191  ;
18192  return 0;
18193}
18194_ACEOF
18195if ac_fn_c_try_compile "$LINENO"; then :
18196  # It does; now see whether it defined to _BIG_ENDIAN or not.
18197	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18198/* end confdefs.h.  */
18199#include <limits.h>
18200
18201int
18202main ()
18203{
18204#ifndef _BIG_ENDIAN
18205		 not big endian
18206		#endif
18207
18208  ;
18209  return 0;
18210}
18211_ACEOF
18212if ac_fn_c_try_compile "$LINENO"; then :
18213  ac_cv_c_bigendian=yes
18214else
18215  ac_cv_c_bigendian=no
18216fi
18217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18218fi
18219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18220    fi
18221    if test $ac_cv_c_bigendian = unknown; then
18222      # Compile a test program.
18223      if test "$cross_compiling" = yes; then :
18224  # Try to guess by grepping values from an object file.
18225	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18226/* end confdefs.h.  */
18227short int ascii_mm[] =
18228		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18229		short int ascii_ii[] =
18230		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18231		int use_ascii (int i) {
18232		  return ascii_mm[i] + ascii_ii[i];
18233		}
18234		short int ebcdic_ii[] =
18235		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18236		short int ebcdic_mm[] =
18237		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18238		int use_ebcdic (int i) {
18239		  return ebcdic_mm[i] + ebcdic_ii[i];
18240		}
18241		extern int foo;
18242
18243int
18244main ()
18245{
18246return use_ascii (foo) == use_ebcdic (foo);
18247  ;
18248  return 0;
18249}
18250_ACEOF
18251if ac_fn_c_try_compile "$LINENO"; then :
18252  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18253	      ac_cv_c_bigendian=yes
18254	    fi
18255	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18256	      if test "$ac_cv_c_bigendian" = unknown; then
18257		ac_cv_c_bigendian=no
18258	      else
18259		# finding both strings is unlikely to happen, but who knows?
18260		ac_cv_c_bigendian=unknown
18261	      fi
18262	    fi
18263fi
18264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18265else
18266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18267/* end confdefs.h.  */
18268$ac_includes_default
18269int
18270main ()
18271{
18272
18273	     /* Are we little or big endian?  From Harbison&Steele.  */
18274	     union
18275	     {
18276	       long int l;
18277	       char c[sizeof (long int)];
18278	     } u;
18279	     u.l = 1;
18280	     return u.c[sizeof (long int) - 1] == 1;
18281
18282  ;
18283  return 0;
18284}
18285_ACEOF
18286if ac_fn_c_try_run "$LINENO"; then :
18287  ac_cv_c_bigendian=no
18288else
18289  ac_cv_c_bigendian=yes
18290fi
18291rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18292  conftest.$ac_objext conftest.beam conftest.$ac_ext
18293fi
18294
18295    fi
18296fi
18297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18298$as_echo "$ac_cv_c_bigendian" >&6; }
18299 case $ac_cv_c_bigendian in #(
18300   yes)
18301
18302$as_echo "#define NATIVE_BIG_ENDIAN 1" >>confdefs.h
18303;; #(
18304   no)
18305
18306$as_echo "#define NATIVE_LITTLE_ENDIAN 1" >>confdefs.h
18307 ;; #(
18308   universal)
18309     as_fn_error $? "universal endianness is not supported - compile separately and use lipo(1)" "$LINENO" 5
18310
18311     ;; #(
18312   *)
18313     as_fn_error $? "unknown endianness" "$LINENO" 5 ;;
18314 esac
18315
18316
18317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __STDC_LIMIT_MACROS is required" >&5
18318$as_echo_n "checking whether __STDC_LIMIT_MACROS is required... " >&6; }
18319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18320/* end confdefs.h.  */
18321
18322#include <limits.h>
18323#include <stdint.h>
18324
18325int
18326main ()
18327{
18328
18329(void) SIZE_MAX;
18330(void) UINT64_MAX;
18331
18332  ;
18333  return 0;
18334}
18335_ACEOF
18336if ac_fn_c_try_compile "$LINENO"; then :
18337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18338$as_echo "no" >&6; }
18339else
18340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18341$as_echo "yes" >&6; }
18342   CPPFLAGS="$CPPFLAGS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS"
18343
18344fi
18345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18346
18347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use inline asm code" >&5
18348$as_echo_n "checking whether we can use inline asm code... " >&6; }
18349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18350/* end confdefs.h.  */
18351
18352
18353int
18354main ()
18355{
18356
18357int a = 42;
18358int *pnt = &a;
18359__asm__ __volatile__ ("" : : "r"(pnt) : "memory");
18360
18361  ;
18362  return 0;
18363}
18364_ACEOF
18365if ac_fn_c_try_link "$LINENO"; then :
18366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18367$as_echo "yes" >&6; }
18368
18369$as_echo "#define HAVE_INLINE_ASM 1" >>confdefs.h
18370
18371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18372$as_echo "no" >&6; }
18373
18374fi
18375rm -f core conftest.err conftest.$ac_objext \
18376    conftest$ac_exeext conftest.$ac_ext
18377
18378HAVE_AMD64_ASM_V=0
18379if test "$enable_asm" != "no"; then :
18380
18381  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use x86_64 asm code" >&5
18382$as_echo_n "checking whether we can use x86_64 asm code... " >&6; }
18383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18384/* end confdefs.h.  */
18385
18386
18387int
18388main ()
18389{
18390
18391#if defined(__amd64) || defined(__amd64__) || defined(__x86_64__)
18392# if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(_WIN32) || defined(_WIN64)
18393#  error Windows x86_64 calling conventions are not supported yet
18394# endif
18395/* neat */
18396#else
18397# error !x86_64
18398#endif
18399unsigned char i = 0, o = 0, t;
18400__asm__ __volatile__ ("pxor %%xmm12, %%xmm6 \n"
18401                      "movb (%[i]), %[t] \n"
18402                      "addb %[t], (%[o]) \n"
18403                      : [t] "=&r"(t)
18404                      : [o] "D"(&o), [i] "S"(&i)
18405                      : "memory", "flags", "cc");
18406
18407  ;
18408  return 0;
18409}
18410_ACEOF
18411if ac_fn_c_try_compile "$LINENO"; then :
18412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18413$as_echo "yes" >&6; }
18414
18415$as_echo "#define HAVE_AMD64_ASM 1" >>confdefs.h
18416
18417   HAVE_AMD64_ASM_V=1
18418else
18419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18420$as_echo "no" >&6; }
18421fi
18422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18423
18424fi
18425 if test $HAVE_AMD64_ASM_V = 1; then
18426  HAVE_AMD64_ASM_TRUE=
18427  HAVE_AMD64_ASM_FALSE='#'
18428else
18429  HAVE_AMD64_ASM_TRUE='#'
18430  HAVE_AMD64_ASM_FALSE=
18431fi
18432
18433
18434
18435HAVE_AVX_ASM_V=0
18436if test "$enable_asm" != "no"; then :
18437
18438  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can assemble AVX opcodes" >&5
18439$as_echo_n "checking whether we can assemble AVX opcodes... " >&6; }
18440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18441/* end confdefs.h.  */
18442
18443
18444int
18445main ()
18446{
18447
18448#if defined(__amd64) || defined(__amd64__) || defined(__x86_64__)
18449# if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(_WIN32) || defined(_WIN64)
18450#  error Windows x86_64 calling conventions are not supported yet
18451# endif
18452/* neat */
18453#else
18454# error !x86_64
18455#endif
18456__asm__ __volatile__ ("vpunpcklqdq %xmm0,%xmm13,%xmm0");
18457
18458  ;
18459  return 0;
18460}
18461_ACEOF
18462if ac_fn_c_try_compile "$LINENO"; then :
18463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18464$as_echo "yes" >&6; }
18465
18466$as_echo "#define HAVE_AVX_ASM 1" >>confdefs.h
18467
18468   HAVE_AVX_ASM_V=1
18469else
18470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18471$as_echo "no" >&6; }
18472fi
18473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18474
18475fi
18476 if test $HAVE_AVX_ASM_V = 1; then
18477  HAVE_AVX_ASM_TRUE=
18478  HAVE_AVX_ASM_FALSE='#'
18479else
18480  HAVE_AVX_ASM_TRUE='#'
18481  HAVE_AVX_ASM_FALSE=
18482fi
18483
18484
18485
18486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 128-bit arithmetic" >&5
18487$as_echo_n "checking for 128-bit arithmetic... " >&6; }
18488HAVE_TI_MODE_V=0
18489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18490/* end confdefs.h.  */
18491
18492#if !defined(__clang__) && !defined(__GNUC__) && !defined(__SIZEOF_INT128__)
18493# error mode(TI) is a gcc extension, and __int128 is not available
18494#endif
18495#if defined(__clang__) && !defined(__x86_64__) && !defined(__aarch64__)
18496# error clang does not properly handle the 128-bit type on 32-bit systems
18497#endif
18498#ifndef NATIVE_LITTLE_ENDIAN
18499# error libsodium currently expects a little endian CPU for the 128-bit type
18500#endif
18501#ifdef __EMSCRIPTEN__
18502# error emscripten currently doesn't support some operations on integers larger than 64 bits
18503#endif
18504#include <stddef.h>
18505#include <stdint.h>
18506#if defined(__SIZEOF_INT128__)
18507typedef unsigned __int128 uint128_t;
18508#else
18509typedef unsigned uint128_t __attribute__((mode(TI)));
18510#endif
18511void fcontract(uint128_t *t) {
18512  *t += 0x8000000000000 - 1;
18513  *t *= *t;
18514  *t >>= 84;
18515}
18516
18517int
18518main ()
18519{
18520
18521(void) fcontract;
18522
18523  ;
18524  return 0;
18525}
18526_ACEOF
18527if ac_fn_c_try_compile "$LINENO"; then :
18528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18529$as_echo "yes" >&6; }
18530
18531$as_echo "#define HAVE_TI_MODE 1" >>confdefs.h
18532
18533 HAVE_TI_MODE_V=1
18534else
18535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18536$as_echo "no" >&6; }
18537fi
18538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18539 if test $HAVE_TI_MODE_V = 1; then
18540  HAVE_TI_MODE_TRUE=
18541  HAVE_TI_MODE_FALSE='#'
18542else
18543  HAVE_TI_MODE_TRUE='#'
18544  HAVE_TI_MODE_FALSE=
18545fi
18546
18547
18548
18549HAVE_CPUID_V=0
18550if test "$enable_asm" != "no"; then :
18551
18552  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpuid instruction" >&5
18553$as_echo_n "checking for cpuid instruction... " >&6; }
18554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18555/* end confdefs.h.  */
18556
18557int
18558main ()
18559{
18560
18561unsigned int cpu_info[4];
18562__asm__ __volatile__ ("xchgl %%ebx, %k1; cpuid; xchgl %%ebx, %k1" :
18563                      "=a" (cpu_info[0]), "=&r" (cpu_info[1]),
18564                      "=c" (cpu_info[2]), "=d" (cpu_info[3]) :
18565                      "0" (0U), "2" (0U));
18566
18567  ;
18568  return 0;
18569}
18570_ACEOF
18571if ac_fn_c_try_compile "$LINENO"; then :
18572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18573$as_echo "yes" >&6; }
18574
18575$as_echo "#define HAVE_CPUID 1" >>confdefs.h
18576
18577   HAVE_CPUID_V=1
18578else
18579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18580$as_echo "no" >&6; }
18581fi
18582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18583
18584fi
18585
18586
18587asm_hide_symbol="unsupported"
18588if test "$enable_asm" != "no"; then :
18589
18590  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the .private_extern asm directive is supported" >&5
18591$as_echo_n "checking if the .private_extern asm directive is supported... " >&6; }
18592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18593/* end confdefs.h.  */
18594
18595int
18596main ()
18597{
18598
18599__asm__ __volatile__ (".private_extern dummy_symbol \n"
18600                      ".private_extern _dummy_symbol \n"
18601                      ".globl dummy_symbol \n"
18602                      ".globl _dummy_symbol \n"
18603                      "dummy_symbol: \n"
18604                      "_dummy_symbol: \n"
18605                      "    nop \n"
18606);
18607
18608  ;
18609  return 0;
18610}
18611_ACEOF
18612if ac_fn_c_try_link "$LINENO"; then :
18613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18614$as_echo "yes" >&6; }
18615   asm_hide_symbol=".private_extern"
18616else
18617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18618$as_echo "no" >&6; }
18619fi
18620rm -f core conftest.err conftest.$ac_objext \
18621    conftest$ac_exeext conftest.$ac_ext
18622
18623  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the .hidden asm directive is supported" >&5
18624$as_echo_n "checking if the .hidden asm directive is supported... " >&6; }
18625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18626/* end confdefs.h.  */
18627
18628int
18629main ()
18630{
18631
18632__asm__ __volatile__ (".hidden dummy_symbol \n"
18633                      ".hidden _dummy_symbol \n"
18634                      ".globl dummy_symbol \n"
18635                      ".globl _dummy_symbol \n"
18636                      "dummy_symbol: \n"
18637                      "_dummy_symbol: \n"
18638                      "    nop \n"
18639);
18640
18641  ;
18642  return 0;
18643}
18644_ACEOF
18645if ac_fn_c_try_link "$LINENO"; then :
18646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18647$as_echo "yes" >&6; }
18648   if test "$asm_hide_symbol" = "unsupported"; then :
18649  asm_hide_symbol=".hidden"
18650else
18651  { $as_echo "$as_me:${as_lineno-$LINENO}: unable to reliably tag symbols as private" >&5
18652$as_echo "$as_me: unable to reliably tag symbols as private" >&6;}
18653           asm_hide_symbol="unsupported"
18654fi
18655
18656else
18657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18658$as_echo "no" >&6; }
18659fi
18660rm -f core conftest.err conftest.$ac_objext \
18661    conftest$ac_exeext conftest.$ac_ext
18662
18663  if test "$asm_hide_symbol" != "unsupported"; then :
18664
18665
18666cat >>confdefs.h <<_ACEOF
18667#define ASM_HIDE_SYMBOL $asm_hide_symbol
18668_ACEOF
18669
18670
18671fi
18672
18673fi
18674
18675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if weak symbols are supported" >&5
18676$as_echo_n "checking if weak symbols are supported... " >&6; }
18677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18678/* end confdefs.h.  */
18679
18680#if !defined(__ELF__) && !defined(__APPLE_CC__)
18681# error Support for weak symbols may not be available
18682#endif
18683__attribute__((weak)) void __dummy(void *x) { }
18684void f(void *x) { __dummy(x); }
18685
18686int
18687main ()
18688{
18689
18690
18691  ;
18692  return 0;
18693}
18694_ACEOF
18695if ac_fn_c_try_link "$LINENO"; then :
18696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18697$as_echo "yes" >&6; }
18698
18699$as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
18700
18701else
18702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18703$as_echo "no" >&6; }
18704fi
18705rm -f core conftest.err conftest.$ac_objext \
18706    conftest$ac_exeext conftest.$ac_ext
18707
18708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if data alignment is required" >&5
18709$as_echo_n "checking if data alignment is required... " >&6; }
18710aligned_access_required=yes
18711case $host_cpu in #(
18712  i?86|amd64|x86_64|powerpc*|s390*) :
18713    aligned_access_required=no ;; #(
18714  arm*) :
18715    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18716/* end confdefs.h.  */
18717
18718#ifndef __ARM_FEATURE_UNALIGNED
18719# error data alignment is required
18720#endif
18721
18722int
18723main ()
18724{
18725
18726  ;
18727  return 0;
18728}
18729_ACEOF
18730if ac_fn_c_try_compile "$LINENO"; then :
18731  aligned_access_required=no
18732fi
18733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18734 ;; #(
18735  *) :
18736     ;;
18737esac
18738if test "x$aligned_access_required" = "xyes"; then :
18739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18740$as_echo "yes" >&6; }
18741else
18742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18743$as_echo "no" >&6; }
18744
18745$as_echo "#define CPU_UNALIGNED_ACCESS 1" >>confdefs.h
18746
18747fi
18748
18749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if atomic operations are supported" >&5
18750$as_echo_n "checking if atomic operations are supported... " >&6; }
18751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18752/* end confdefs.h.  */
18753
18754int
18755main ()
18756{
18757
18758static volatile int _sodium_lock;
18759__sync_lock_test_and_set(&_sodium_lock, 1);
18760__sync_lock_release(&_sodium_lock);
18761
18762
18763  ;
18764  return 0;
18765}
18766_ACEOF
18767if ac_fn_c_try_link "$LINENO"; then :
18768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18769$as_echo "yes" >&6; }
18770
18771$as_echo "#define HAVE_ATOMIC_OPS 1" >>confdefs.h
18772
18773else
18774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18775$as_echo "no" >&6; }
18776fi
18777rm -f core conftest.err conftest.$ac_objext \
18778    conftest$ac_exeext conftest.$ac_ext
18779
18780
18781ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18782if test "x$ac_cv_type_size_t" = xyes; then :
18783
18784else
18785
18786cat >>confdefs.h <<_ACEOF
18787#define size_t unsigned int
18788_ACEOF
18789
18790fi
18791
18792# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18793# for constant arguments.  Useless!
18794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18795$as_echo_n "checking for working alloca.h... " >&6; }
18796if ${ac_cv_working_alloca_h+:} false; then :
18797  $as_echo_n "(cached) " >&6
18798else
18799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18800/* end confdefs.h.  */
18801#include <alloca.h>
18802int
18803main ()
18804{
18805char *p = (char *) alloca (2 * sizeof (int));
18806			  if (p) return 0;
18807  ;
18808  return 0;
18809}
18810_ACEOF
18811if ac_fn_c_try_link "$LINENO"; then :
18812  ac_cv_working_alloca_h=yes
18813else
18814  ac_cv_working_alloca_h=no
18815fi
18816rm -f core conftest.err conftest.$ac_objext \
18817    conftest$ac_exeext conftest.$ac_ext
18818fi
18819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18820$as_echo "$ac_cv_working_alloca_h" >&6; }
18821if test $ac_cv_working_alloca_h = yes; then
18822
18823$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18824
18825fi
18826
18827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18828$as_echo_n "checking for alloca... " >&6; }
18829if ${ac_cv_func_alloca_works+:} false; then :
18830  $as_echo_n "(cached) " >&6
18831else
18832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18833/* end confdefs.h.  */
18834#ifdef __GNUC__
18835# define alloca __builtin_alloca
18836#else
18837# ifdef _MSC_VER
18838#  include <malloc.h>
18839#  define alloca _alloca
18840# else
18841#  ifdef HAVE_ALLOCA_H
18842#   include <alloca.h>
18843#  else
18844#   ifdef _AIX
18845 #pragma alloca
18846#   else
18847#    ifndef alloca /* predefined by HP cc +Olibcalls */
18848void *alloca (size_t);
18849#    endif
18850#   endif
18851#  endif
18852# endif
18853#endif
18854
18855int
18856main ()
18857{
18858char *p = (char *) alloca (1);
18859				    if (p) return 0;
18860  ;
18861  return 0;
18862}
18863_ACEOF
18864if ac_fn_c_try_link "$LINENO"; then :
18865  ac_cv_func_alloca_works=yes
18866else
18867  ac_cv_func_alloca_works=no
18868fi
18869rm -f core conftest.err conftest.$ac_objext \
18870    conftest$ac_exeext conftest.$ac_ext
18871fi
18872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18873$as_echo "$ac_cv_func_alloca_works" >&6; }
18874
18875if test $ac_cv_func_alloca_works = yes; then
18876
18877$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18878
18879else
18880  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18881# that cause trouble.  Some versions do not even contain alloca or
18882# contain a buggy version.  If you still want to use their alloca,
18883# use ar to extract alloca.o from them instead of compiling alloca.c.
18884
18885ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18886
18887$as_echo "#define C_ALLOCA 1" >>confdefs.h
18888
18889
18890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18891$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18892if ${ac_cv_os_cray+:} false; then :
18893  $as_echo_n "(cached) " >&6
18894else
18895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18896/* end confdefs.h.  */
18897#if defined CRAY && ! defined CRAY2
18898webecray
18899#else
18900wenotbecray
18901#endif
18902
18903_ACEOF
18904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18905  $EGREP "webecray" >/dev/null 2>&1; then :
18906  ac_cv_os_cray=yes
18907else
18908  ac_cv_os_cray=no
18909fi
18910rm -f conftest*
18911
18912fi
18913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18914$as_echo "$ac_cv_os_cray" >&6; }
18915if test $ac_cv_os_cray = yes; then
18916  for ac_func in _getb67 GETB67 getb67; do
18917    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18918ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18919if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18920
18921cat >>confdefs.h <<_ACEOF
18922#define CRAY_STACKSEG_END $ac_func
18923_ACEOF
18924
18925    break
18926fi
18927
18928  done
18929fi
18930
18931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18932$as_echo_n "checking stack direction for C alloca... " >&6; }
18933if ${ac_cv_c_stack_direction+:} false; then :
18934  $as_echo_n "(cached) " >&6
18935else
18936  if test "$cross_compiling" = yes; then :
18937  ac_cv_c_stack_direction=0
18938else
18939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18940/* end confdefs.h.  */
18941$ac_includes_default
18942int
18943find_stack_direction (int *addr, int depth)
18944{
18945  int dir, dummy = 0;
18946  if (! addr)
18947    addr = &dummy;
18948  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
18949  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
18950  return dir + dummy;
18951}
18952
18953int
18954main (int argc, char **argv)
18955{
18956  return find_stack_direction (0, argc + !argv + 20) < 0;
18957}
18958_ACEOF
18959if ac_fn_c_try_run "$LINENO"; then :
18960  ac_cv_c_stack_direction=1
18961else
18962  ac_cv_c_stack_direction=-1
18963fi
18964rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18965  conftest.$ac_objext conftest.beam conftest.$ac_ext
18966fi
18967
18968fi
18969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18970$as_echo "$ac_cv_c_stack_direction" >&6; }
18971cat >>confdefs.h <<_ACEOF
18972#define STACK_DIRECTION $ac_cv_c_stack_direction
18973_ACEOF
18974
18975
18976fi
18977
18978if test "x$EMSCRIPTEN" = "x"; then :
18979
18980  for ac_func in arc4random arc4random_buf
18981do :
18982  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18983ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18984if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18985  cat >>confdefs.h <<_ACEOF
18986#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18987_ACEOF
18988
18989fi
18990done
18991
18992  for ac_func in mmap mlock madvise mprotect
18993do :
18994  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18995ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18996if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18997  cat >>confdefs.h <<_ACEOF
18998#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18999_ACEOF
19000
19001fi
19002done
19003
19004
19005  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getrandom with a standard API" >&5
19006$as_echo_n "checking for getrandom with a standard API... " >&6; }
19007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19008/* end confdefs.h.  */
19009
19010#include <stdlib.h>
19011#ifdef HAVE_UNISTD_H
19012# include <unistd.h>
19013#endif
19014#ifdef HAVE_SYS_RANDOM_H
19015# include <sys/random.h>
19016#endif
19017
19018int
19019main ()
19020{
19021
19022unsigned char buf;
19023(void) getrandom((void *) &buf, 1U, 0U);
19024
19025  ;
19026  return 0;
19027}
19028_ACEOF
19029if ac_fn_c_try_link "$LINENO"; then :
19030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19031$as_echo "yes" >&6; }
19032   for ac_func in getrandom
19033do :
19034  ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
19035if test "x$ac_cv_func_getrandom" = xyes; then :
19036  cat >>confdefs.h <<_ACEOF
19037#define HAVE_GETRANDOM 1
19038_ACEOF
19039
19040fi
19041done
19042
19043else
19044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19045$as_echo "no" >&6; }
19046
19047fi
19048rm -f core conftest.err conftest.$ac_objext \
19049    conftest$ac_exeext conftest.$ac_ext
19050
19051  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getentropy with a standard API" >&5
19052$as_echo_n "checking for getentropy with a standard API... " >&6; }
19053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19054/* end confdefs.h.  */
19055
19056#include <stdlib.h>
19057#ifdef HAVE_UNISTD_H
19058# include <unistd.h>
19059#endif
19060#ifdef HAVE_SYS_RANDOM_H
19061# include <sys/random.h>
19062#endif
19063
19064int
19065main ()
19066{
19067
19068#ifdef __APPLE__
19069# error getentropy() is currently disabled on Apple operating systems
19070#endif
19071
19072unsigned char buf;
19073(void) getentropy((void *) &buf, 1U);
19074
19075  ;
19076  return 0;
19077}
19078_ACEOF
19079if ac_fn_c_try_link "$LINENO"; then :
19080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19081$as_echo "yes" >&6; }
19082   for ac_func in getentropy
19083do :
19084  ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
19085if test "x$ac_cv_func_getentropy" = xyes; then :
19086  cat >>confdefs.h <<_ACEOF
19087#define HAVE_GETENTROPY 1
19088_ACEOF
19089
19090fi
19091done
19092
19093else
19094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19095$as_echo "no" >&6; }
19096
19097fi
19098rm -f core conftest.err conftest.$ac_objext \
19099    conftest$ac_exeext conftest.$ac_ext
19100
19101fi
19102for ac_func in posix_memalign getpid nanosleep
19103do :
19104  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19105ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19106if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19107  cat >>confdefs.h <<_ACEOF
19108#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19109_ACEOF
19110
19111fi
19112done
19113
19114for ac_func in memset_s explicit_bzero explicit_memset
19115do :
19116  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19117ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19118if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19119  cat >>confdefs.h <<_ACEOF
19120#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19121_ACEOF
19122
19123fi
19124done
19125
19126
19127
19128
19129TEST_LDFLAGS=''
19130if test "x$EMSCRIPTEN" != "x"; then :
19131
19132  EXEEXT=.js
19133  TEST_LDFLAGS='--memory-init-file 0 --pre-js pre.js.inc -s RESERVED_FUNCTION_POINTERS=8'
19134
19135fi
19136
19137 if test "x$EMSCRIPTEN" != "x"; then
19138  EMSCRIPTEN_TRUE=
19139  EMSCRIPTEN_FALSE='#'
19140else
19141  EMSCRIPTEN_TRUE='#'
19142  EMSCRIPTEN_FALSE=
19143fi
19144
19145 if test "x$WASI" != "x"; then
19146  WASI_TRUE=
19147  WASI_FALSE='#'
19148else
19149  WASI_TRUE='#'
19150  WASI_FALSE=
19151fi
19152
19153
19154
19155$as_echo "#define CONFIGURED 1" >>confdefs.h
19156
19157
19158
19159
19160enable_win32_dll=yes
19161
19162case $host in
19163*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
19164  if test -n "$ac_tool_prefix"; then
19165  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
19166set dummy ${ac_tool_prefix}as; ac_word=$2
19167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19168$as_echo_n "checking for $ac_word... " >&6; }
19169if ${ac_cv_prog_AS+:} false; then :
19170  $as_echo_n "(cached) " >&6
19171else
19172  if test -n "$AS"; then
19173  ac_cv_prog_AS="$AS" # Let the user override the test.
19174else
19175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19176for as_dir in $PATH
19177do
19178  IFS=$as_save_IFS
19179  test -z "$as_dir" && as_dir=.
19180    for ac_exec_ext in '' $ac_executable_extensions; do
19181  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19182    ac_cv_prog_AS="${ac_tool_prefix}as"
19183    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19184    break 2
19185  fi
19186done
19187  done
19188IFS=$as_save_IFS
19189
19190fi
19191fi
19192AS=$ac_cv_prog_AS
19193if test -n "$AS"; then
19194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
19195$as_echo "$AS" >&6; }
19196else
19197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19198$as_echo "no" >&6; }
19199fi
19200
19201
19202fi
19203if test -z "$ac_cv_prog_AS"; then
19204  ac_ct_AS=$AS
19205  # Extract the first word of "as", so it can be a program name with args.
19206set dummy as; ac_word=$2
19207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19208$as_echo_n "checking for $ac_word... " >&6; }
19209if ${ac_cv_prog_ac_ct_AS+:} false; then :
19210  $as_echo_n "(cached) " >&6
19211else
19212  if test -n "$ac_ct_AS"; then
19213  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
19214else
19215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19216for as_dir in $PATH
19217do
19218  IFS=$as_save_IFS
19219  test -z "$as_dir" && as_dir=.
19220    for ac_exec_ext in '' $ac_executable_extensions; do
19221  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19222    ac_cv_prog_ac_ct_AS="as"
19223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19224    break 2
19225  fi
19226done
19227  done
19228IFS=$as_save_IFS
19229
19230fi
19231fi
19232ac_ct_AS=$ac_cv_prog_ac_ct_AS
19233if test -n "$ac_ct_AS"; then
19234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
19235$as_echo "$ac_ct_AS" >&6; }
19236else
19237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19238$as_echo "no" >&6; }
19239fi
19240
19241  if test "x$ac_ct_AS" = x; then
19242    AS="false"
19243  else
19244    case $cross_compiling:$ac_tool_warned in
19245yes:)
19246{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19247$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19248ac_tool_warned=yes ;;
19249esac
19250    AS=$ac_ct_AS
19251  fi
19252else
19253  AS="$ac_cv_prog_AS"
19254fi
19255
19256  if test -n "$ac_tool_prefix"; then
19257  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
19258set dummy ${ac_tool_prefix}dlltool; ac_word=$2
19259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19260$as_echo_n "checking for $ac_word... " >&6; }
19261if ${ac_cv_prog_DLLTOOL+:} false; then :
19262  $as_echo_n "(cached) " >&6
19263else
19264  if test -n "$DLLTOOL"; then
19265  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
19266else
19267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19268for as_dir in $PATH
19269do
19270  IFS=$as_save_IFS
19271  test -z "$as_dir" && as_dir=.
19272    for ac_exec_ext in '' $ac_executable_extensions; do
19273  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19274    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
19275    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19276    break 2
19277  fi
19278done
19279  done
19280IFS=$as_save_IFS
19281
19282fi
19283fi
19284DLLTOOL=$ac_cv_prog_DLLTOOL
19285if test -n "$DLLTOOL"; then
19286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
19287$as_echo "$DLLTOOL" >&6; }
19288else
19289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19290$as_echo "no" >&6; }
19291fi
19292
19293
19294fi
19295if test -z "$ac_cv_prog_DLLTOOL"; then
19296  ac_ct_DLLTOOL=$DLLTOOL
19297  # Extract the first word of "dlltool", so it can be a program name with args.
19298set dummy dlltool; ac_word=$2
19299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19300$as_echo_n "checking for $ac_word... " >&6; }
19301if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
19302  $as_echo_n "(cached) " >&6
19303else
19304  if test -n "$ac_ct_DLLTOOL"; then
19305  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
19306else
19307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19308for as_dir in $PATH
19309do
19310  IFS=$as_save_IFS
19311  test -z "$as_dir" && as_dir=.
19312    for ac_exec_ext in '' $ac_executable_extensions; do
19313  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19314    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
19315    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19316    break 2
19317  fi
19318done
19319  done
19320IFS=$as_save_IFS
19321
19322fi
19323fi
19324ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
19325if test -n "$ac_ct_DLLTOOL"; then
19326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
19327$as_echo "$ac_ct_DLLTOOL" >&6; }
19328else
19329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19330$as_echo "no" >&6; }
19331fi
19332
19333  if test "x$ac_ct_DLLTOOL" = x; then
19334    DLLTOOL="false"
19335  else
19336    case $cross_compiling:$ac_tool_warned in
19337yes:)
19338{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19339$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19340ac_tool_warned=yes ;;
19341esac
19342    DLLTOOL=$ac_ct_DLLTOOL
19343  fi
19344else
19345  DLLTOOL="$ac_cv_prog_DLLTOOL"
19346fi
19347
19348  if test -n "$ac_tool_prefix"; then
19349  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
19350set dummy ${ac_tool_prefix}objdump; ac_word=$2
19351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19352$as_echo_n "checking for $ac_word... " >&6; }
19353if ${ac_cv_prog_OBJDUMP+:} false; then :
19354  $as_echo_n "(cached) " >&6
19355else
19356  if test -n "$OBJDUMP"; then
19357  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
19358else
19359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19360for as_dir in $PATH
19361do
19362  IFS=$as_save_IFS
19363  test -z "$as_dir" && as_dir=.
19364    for ac_exec_ext in '' $ac_executable_extensions; do
19365  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19366    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
19367    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19368    break 2
19369  fi
19370done
19371  done
19372IFS=$as_save_IFS
19373
19374fi
19375fi
19376OBJDUMP=$ac_cv_prog_OBJDUMP
19377if test -n "$OBJDUMP"; then
19378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
19379$as_echo "$OBJDUMP" >&6; }
19380else
19381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19382$as_echo "no" >&6; }
19383fi
19384
19385
19386fi
19387if test -z "$ac_cv_prog_OBJDUMP"; then
19388  ac_ct_OBJDUMP=$OBJDUMP
19389  # Extract the first word of "objdump", so it can be a program name with args.
19390set dummy objdump; ac_word=$2
19391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19392$as_echo_n "checking for $ac_word... " >&6; }
19393if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
19394  $as_echo_n "(cached) " >&6
19395else
19396  if test -n "$ac_ct_OBJDUMP"; then
19397  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
19398else
19399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19400for as_dir in $PATH
19401do
19402  IFS=$as_save_IFS
19403  test -z "$as_dir" && as_dir=.
19404    for ac_exec_ext in '' $ac_executable_extensions; do
19405  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19406    ac_cv_prog_ac_ct_OBJDUMP="objdump"
19407    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19408    break 2
19409  fi
19410done
19411  done
19412IFS=$as_save_IFS
19413
19414fi
19415fi
19416ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
19417if test -n "$ac_ct_OBJDUMP"; then
19418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
19419$as_echo "$ac_ct_OBJDUMP" >&6; }
19420else
19421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19422$as_echo "no" >&6; }
19423fi
19424
19425  if test "x$ac_ct_OBJDUMP" = x; then
19426    OBJDUMP="false"
19427  else
19428    case $cross_compiling:$ac_tool_warned in
19429yes:)
19430{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19431$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19432ac_tool_warned=yes ;;
19433esac
19434    OBJDUMP=$ac_ct_OBJDUMP
19435  fi
19436else
19437  OBJDUMP="$ac_cv_prog_OBJDUMP"
19438fi
19439
19440  ;;
19441esac
19442
19443test -z "$AS" && AS=as
19444
19445
19446
19447
19448
19449test -z "$DLLTOOL" && DLLTOOL=dlltool
19450
19451
19452test -z "$OBJDUMP" && OBJDUMP=objdump
19453
19454
19455
19456
19457
19458  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc/ld supports -Wl,--output-def" >&5
19459$as_echo_n "checking if gcc/ld supports -Wl,--output-def... " >&6; }
19460if ${gl_cv_ld_output_def+:} false; then :
19461  $as_echo_n "(cached) " >&6
19462else
19463  if test "$enable_shared" = no; then
19464       gl_cv_ld_output_def="not needed, shared libraries are disabled"
19465     else
19466       gl_ldflags_save=$LDFLAGS
19467       LDFLAGS="-Wl,--output-def,conftest.def"
19468       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19469/* end confdefs.h.  */
19470
19471int
19472main ()
19473{
19474
19475  ;
19476  return 0;
19477}
19478_ACEOF
19479if ac_fn_c_try_link "$LINENO"; then :
19480  gl_cv_ld_output_def=yes
19481else
19482  gl_cv_ld_output_def=no
19483fi
19484rm -f core conftest.err conftest.$ac_objext \
19485    conftest$ac_exeext conftest.$ac_ext
19486       rm -f conftest.def
19487       LDFLAGS="$gl_ldflags_save"
19488     fi
19489fi
19490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_output_def" >&5
19491$as_echo "$gl_cv_ld_output_def" >&6; }
19492   if test "x$gl_cv_ld_output_def" = "xyes"; then
19493  HAVE_LD_OUTPUT_DEF_TRUE=
19494  HAVE_LD_OUTPUT_DEF_FALSE='#'
19495else
19496  HAVE_LD_OUTPUT_DEF_TRUE='#'
19497  HAVE_LD_OUTPUT_DEF_FALSE=
19498fi
19499
19500
19501
19502
19503
19504
19505if test "x$ENABLE_CWFLAGS" = "xyes"; then :
19506
19507  CFLAGS="$CFLAGS $CWFLAGS"
19508
19509fi
19510
19511ac_config_files="$ac_config_files Makefile builds/Makefile contrib/Makefile dist-build/Makefile libsodium.pc libsodium-uninstalled.pc msvc-scripts/Makefile src/Makefile src/libsodium/Makefile src/libsodium/include/Makefile src/libsodium/include/sodium/version.h test/default/Makefile test/Makefile"
19512
19513cat >confcache <<\_ACEOF
19514# This file is a shell script that caches the results of configure
19515# tests run on this system so they can be shared between configure
19516# scripts and configure runs, see configure's option --config-cache.
19517# It is not useful on other systems.  If it contains results you don't
19518# want to keep, you may remove or edit it.
19519#
19520# config.status only pays attention to the cache file if you give it
19521# the --recheck option to rerun configure.
19522#
19523# `ac_cv_env_foo' variables (set or unset) will be overridden when
19524# loading this file, other *unset* `ac_cv_foo' will be assigned the
19525# following values.
19526
19527_ACEOF
19528
19529# The following way of writing the cache mishandles newlines in values,
19530# but we know of no workaround that is simple, portable, and efficient.
19531# So, we kill variables containing newlines.
19532# Ultrix sh set writes to stderr and can't be redirected directly,
19533# and sets the high bit in the cache file unless we assign to the vars.
19534(
19535  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19536    eval ac_val=\$$ac_var
19537    case $ac_val in #(
19538    *${as_nl}*)
19539      case $ac_var in #(
19540      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19541$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19542      esac
19543      case $ac_var in #(
19544      _ | IFS | as_nl) ;; #(
19545      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19546      *) { eval $ac_var=; unset $ac_var;} ;;
19547      esac ;;
19548    esac
19549  done
19550
19551  (set) 2>&1 |
19552    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19553    *${as_nl}ac_space=\ *)
19554      # `set' does not quote correctly, so add quotes: double-quote
19555      # substitution turns \\\\ into \\, and sed turns \\ into \.
19556      sed -n \
19557	"s/'/'\\\\''/g;
19558	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19559      ;; #(
19560    *)
19561      # `set' quotes correctly as required by POSIX, so do not add quotes.
19562      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19563      ;;
19564    esac |
19565    sort
19566) |
19567  sed '
19568     /^ac_cv_env_/b end
19569     t clear
19570     :clear
19571     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19572     t end
19573     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19574     :end' >>confcache
19575if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19576  if test -w "$cache_file"; then
19577    if test "x$cache_file" != "x/dev/null"; then
19578      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19579$as_echo "$as_me: updating cache $cache_file" >&6;}
19580      if test ! -f "$cache_file" || test -h "$cache_file"; then
19581	cat confcache >"$cache_file"
19582      else
19583        case $cache_file in #(
19584        */* | ?:*)
19585	  mv -f confcache "$cache_file"$$ &&
19586	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19587        *)
19588	  mv -f confcache "$cache_file" ;;
19589	esac
19590      fi
19591    fi
19592  else
19593    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19594$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19595  fi
19596fi
19597rm -f confcache
19598
19599test "x$prefix" = xNONE && prefix=$ac_default_prefix
19600# Let make expand exec_prefix.
19601test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19602
19603# Transform confdefs.h into DEFS.
19604# Protect against shell expansion while executing Makefile rules.
19605# Protect against Makefile macro expansion.
19606#
19607# If the first sed substitution is executed (which looks for macros that
19608# take arguments), then branch to the quote section.  Otherwise,
19609# look for a macro that doesn't take arguments.
19610ac_script='
19611:mline
19612/\\$/{
19613 N
19614 s,\\\n,,
19615 b mline
19616}
19617t clear
19618:clear
19619s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
19620t quote
19621s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
19622t quote
19623b any
19624:quote
19625s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
19626s/\[/\\&/g
19627s/\]/\\&/g
19628s/\$/$$/g
19629H
19630:any
19631${
19632	g
19633	s/^\n//
19634	s/\n/ /g
19635	p
19636}
19637'
19638DEFS=`sed -n "$ac_script" confdefs.h`
19639
19640
19641ac_libobjs=
19642ac_ltlibobjs=
19643U=
19644for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19645  # 1. Remove the extension, and $U if already installed.
19646  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19647  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19648  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19649  #    will be set to the directory where LIBOBJS objects are built.
19650  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19651  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19652done
19653LIBOBJS=$ac_libobjs
19654
19655LTLIBOBJS=$ac_ltlibobjs
19656
19657
19658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19659$as_echo_n "checking that generated files are newer than configure... " >&6; }
19660   if test -n "$am_sleep_pid"; then
19661     # Hide warnings about reused PIDs.
19662     wait $am_sleep_pid 2>/dev/null
19663   fi
19664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19665$as_echo "done" >&6; }
19666 if test -n "$EXEEXT"; then
19667  am__EXEEXT_TRUE=
19668  am__EXEEXT_FALSE='#'
19669else
19670  am__EXEEXT_TRUE='#'
19671  am__EXEEXT_FALSE=
19672fi
19673
19674if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19675  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19676Usually this means the macro was only invoked conditionally." "$LINENO" 5
19677fi
19678if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19679  as_fn_error $? "conditional \"AMDEP\" was never defined.
19680Usually this means the macro was only invoked conditionally." "$LINENO" 5
19681fi
19682if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19683  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19684Usually this means the macro was only invoked conditionally." "$LINENO" 5
19685fi
19686if test -z "${MINIMAL_TRUE}" && test -z "${MINIMAL_FALSE}"; then
19687  as_fn_error $? "conditional \"MINIMAL\" was never defined.
19688Usually this means the macro was only invoked conditionally." "$LINENO" 5
19689fi
19690if test -z "${VALGRIND_ENABLED_TRUE}" && test -z "${VALGRIND_ENABLED_FALSE}"; then
19691  as_fn_error $? "conditional \"VALGRIND_ENABLED\" was never defined.
19692Usually this means the macro was only invoked conditionally." "$LINENO" 5
19693fi
19694if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
19695  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
19696Usually this means the macro was only invoked conditionally." "$LINENO" 5
19697fi
19698if test -z "${HAVE_AMD64_ASM_TRUE}" && test -z "${HAVE_AMD64_ASM_FALSE}"; then
19699  as_fn_error $? "conditional \"HAVE_AMD64_ASM\" was never defined.
19700Usually this means the macro was only invoked conditionally." "$LINENO" 5
19701fi
19702if test -z "${HAVE_AVX_ASM_TRUE}" && test -z "${HAVE_AVX_ASM_FALSE}"; then
19703  as_fn_error $? "conditional \"HAVE_AVX_ASM\" was never defined.
19704Usually this means the macro was only invoked conditionally." "$LINENO" 5
19705fi
19706if test -z "${HAVE_TI_MODE_TRUE}" && test -z "${HAVE_TI_MODE_FALSE}"; then
19707  as_fn_error $? "conditional \"HAVE_TI_MODE\" was never defined.
19708Usually this means the macro was only invoked conditionally." "$LINENO" 5
19709fi
19710if test -z "${EMSCRIPTEN_TRUE}" && test -z "${EMSCRIPTEN_FALSE}"; then
19711  as_fn_error $? "conditional \"EMSCRIPTEN\" was never defined.
19712Usually this means the macro was only invoked conditionally." "$LINENO" 5
19713fi
19714if test -z "${WASI_TRUE}" && test -z "${WASI_FALSE}"; then
19715  as_fn_error $? "conditional \"WASI\" was never defined.
19716Usually this means the macro was only invoked conditionally." "$LINENO" 5
19717fi
19718if test -z "${HAVE_LD_OUTPUT_DEF_TRUE}" && test -z "${HAVE_LD_OUTPUT_DEF_FALSE}"; then
19719  as_fn_error $? "conditional \"HAVE_LD_OUTPUT_DEF\" was never defined.
19720Usually this means the macro was only invoked conditionally." "$LINENO" 5
19721fi
19722
19723: "${CONFIG_STATUS=./config.status}"
19724ac_write_fail=0
19725ac_clean_files_save=$ac_clean_files
19726ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19727{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19728$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19729as_write_fail=0
19730cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19731#! $SHELL
19732# Generated by $as_me.
19733# Run this file to recreate the current configuration.
19734# Compiler output produced by configure, useful for debugging
19735# configure, is in config.log if it exists.
19736
19737debug=false
19738ac_cs_recheck=false
19739ac_cs_silent=false
19740
19741SHELL=\${CONFIG_SHELL-$SHELL}
19742export SHELL
19743_ASEOF
19744cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19745## -------------------- ##
19746## M4sh Initialization. ##
19747## -------------------- ##
19748
19749# Be more Bourne compatible
19750DUALCASE=1; export DUALCASE # for MKS sh
19751if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19752  emulate sh
19753  NULLCMD=:
19754  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19755  # is contrary to our usage.  Disable this feature.
19756  alias -g '${1+"$@"}'='"$@"'
19757  setopt NO_GLOB_SUBST
19758else
19759  case `(set -o) 2>/dev/null` in #(
19760  *posix*) :
19761    set -o posix ;; #(
19762  *) :
19763     ;;
19764esac
19765fi
19766
19767
19768as_nl='
19769'
19770export as_nl
19771# Printing a long string crashes Solaris 7 /usr/bin/printf.
19772as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19773as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19774as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19775# Prefer a ksh shell builtin over an external printf program on Solaris,
19776# but without wasting forks for bash or zsh.
19777if test -z "$BASH_VERSION$ZSH_VERSION" \
19778    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19779  as_echo='print -r --'
19780  as_echo_n='print -rn --'
19781elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19782  as_echo='printf %s\n'
19783  as_echo_n='printf %s'
19784else
19785  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19786    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19787    as_echo_n='/usr/ucb/echo -n'
19788  else
19789    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19790    as_echo_n_body='eval
19791      arg=$1;
19792      case $arg in #(
19793      *"$as_nl"*)
19794	expr "X$arg" : "X\\(.*\\)$as_nl";
19795	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19796      esac;
19797      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19798    '
19799    export as_echo_n_body
19800    as_echo_n='sh -c $as_echo_n_body as_echo'
19801  fi
19802  export as_echo_body
19803  as_echo='sh -c $as_echo_body as_echo'
19804fi
19805
19806# The user is always right.
19807if test "${PATH_SEPARATOR+set}" != set; then
19808  PATH_SEPARATOR=:
19809  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19810    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19811      PATH_SEPARATOR=';'
19812  }
19813fi
19814
19815
19816# IFS
19817# We need space, tab and new line, in precisely that order.  Quoting is
19818# there to prevent editors from complaining about space-tab.
19819# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19820# splitting by setting IFS to empty value.)
19821IFS=" ""	$as_nl"
19822
19823# Find who we are.  Look in the path if we contain no directory separator.
19824as_myself=
19825case $0 in #((
19826  *[\\/]* ) as_myself=$0 ;;
19827  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19828for as_dir in $PATH
19829do
19830  IFS=$as_save_IFS
19831  test -z "$as_dir" && as_dir=.
19832    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19833  done
19834IFS=$as_save_IFS
19835
19836     ;;
19837esac
19838# We did not find ourselves, most probably we were run as `sh COMMAND'
19839# in which case we are not to be found in the path.
19840if test "x$as_myself" = x; then
19841  as_myself=$0
19842fi
19843if test ! -f "$as_myself"; then
19844  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19845  exit 1
19846fi
19847
19848# Unset variables that we do not need and which cause bugs (e.g. in
19849# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19850# suppresses any "Segmentation fault" message there.  '((' could
19851# trigger a bug in pdksh 5.2.14.
19852for as_var in BASH_ENV ENV MAIL MAILPATH
19853do eval test x\${$as_var+set} = xset \
19854  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19855done
19856PS1='$ '
19857PS2='> '
19858PS4='+ '
19859
19860# NLS nuisances.
19861LC_ALL=C
19862export LC_ALL
19863LANGUAGE=C
19864export LANGUAGE
19865
19866# CDPATH.
19867(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19868
19869
19870# as_fn_error STATUS ERROR [LINENO LOG_FD]
19871# ----------------------------------------
19872# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19873# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19874# script with STATUS, using 1 if that was 0.
19875as_fn_error ()
19876{
19877  as_status=$1; test $as_status -eq 0 && as_status=1
19878  if test "$4"; then
19879    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19880    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19881  fi
19882  $as_echo "$as_me: error: $2" >&2
19883  as_fn_exit $as_status
19884} # as_fn_error
19885
19886
19887# as_fn_set_status STATUS
19888# -----------------------
19889# Set $? to STATUS, without forking.
19890as_fn_set_status ()
19891{
19892  return $1
19893} # as_fn_set_status
19894
19895# as_fn_exit STATUS
19896# -----------------
19897# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19898as_fn_exit ()
19899{
19900  set +e
19901  as_fn_set_status $1
19902  exit $1
19903} # as_fn_exit
19904
19905# as_fn_unset VAR
19906# ---------------
19907# Portably unset VAR.
19908as_fn_unset ()
19909{
19910  { eval $1=; unset $1;}
19911}
19912as_unset=as_fn_unset
19913# as_fn_append VAR VALUE
19914# ----------------------
19915# Append the text in VALUE to the end of the definition contained in VAR. Take
19916# advantage of any shell optimizations that allow amortized linear growth over
19917# repeated appends, instead of the typical quadratic growth present in naive
19918# implementations.
19919if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19920  eval 'as_fn_append ()
19921  {
19922    eval $1+=\$2
19923  }'
19924else
19925  as_fn_append ()
19926  {
19927    eval $1=\$$1\$2
19928  }
19929fi # as_fn_append
19930
19931# as_fn_arith ARG...
19932# ------------------
19933# Perform arithmetic evaluation on the ARGs, and store the result in the
19934# global $as_val. Take advantage of shells that can avoid forks. The arguments
19935# must be portable across $(()) and expr.
19936if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19937  eval 'as_fn_arith ()
19938  {
19939    as_val=$(( $* ))
19940  }'
19941else
19942  as_fn_arith ()
19943  {
19944    as_val=`expr "$@" || test $? -eq 1`
19945  }
19946fi # as_fn_arith
19947
19948
19949if expr a : '\(a\)' >/dev/null 2>&1 &&
19950   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19951  as_expr=expr
19952else
19953  as_expr=false
19954fi
19955
19956if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19957  as_basename=basename
19958else
19959  as_basename=false
19960fi
19961
19962if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19963  as_dirname=dirname
19964else
19965  as_dirname=false
19966fi
19967
19968as_me=`$as_basename -- "$0" ||
19969$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19970	 X"$0" : 'X\(//\)$' \| \
19971	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19972$as_echo X/"$0" |
19973    sed '/^.*\/\([^/][^/]*\)\/*$/{
19974	    s//\1/
19975	    q
19976	  }
19977	  /^X\/\(\/\/\)$/{
19978	    s//\1/
19979	    q
19980	  }
19981	  /^X\/\(\/\).*/{
19982	    s//\1/
19983	    q
19984	  }
19985	  s/.*/./; q'`
19986
19987# Avoid depending upon Character Ranges.
19988as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19989as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19990as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19991as_cr_digits='0123456789'
19992as_cr_alnum=$as_cr_Letters$as_cr_digits
19993
19994ECHO_C= ECHO_N= ECHO_T=
19995case `echo -n x` in #(((((
19996-n*)
19997  case `echo 'xy\c'` in
19998  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19999  xy)  ECHO_C='\c';;
20000  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20001       ECHO_T='	';;
20002  esac;;
20003*)
20004  ECHO_N='-n';;
20005esac
20006
20007rm -f conf$$ conf$$.exe conf$$.file
20008if test -d conf$$.dir; then
20009  rm -f conf$$.dir/conf$$.file
20010else
20011  rm -f conf$$.dir
20012  mkdir conf$$.dir 2>/dev/null
20013fi
20014if (echo >conf$$.file) 2>/dev/null; then
20015  if ln -s conf$$.file conf$$ 2>/dev/null; then
20016    as_ln_s='ln -s'
20017    # ... but there are two gotchas:
20018    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20019    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20020    # In both cases, we have to default to `cp -pR'.
20021    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20022      as_ln_s='cp -pR'
20023  elif ln conf$$.file conf$$ 2>/dev/null; then
20024    as_ln_s=ln
20025  else
20026    as_ln_s='cp -pR'
20027  fi
20028else
20029  as_ln_s='cp -pR'
20030fi
20031rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20032rmdir conf$$.dir 2>/dev/null
20033
20034
20035# as_fn_mkdir_p
20036# -------------
20037# Create "$as_dir" as a directory, including parents if necessary.
20038as_fn_mkdir_p ()
20039{
20040
20041  case $as_dir in #(
20042  -*) as_dir=./$as_dir;;
20043  esac
20044  test -d "$as_dir" || eval $as_mkdir_p || {
20045    as_dirs=
20046    while :; do
20047      case $as_dir in #(
20048      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20049      *) as_qdir=$as_dir;;
20050      esac
20051      as_dirs="'$as_qdir' $as_dirs"
20052      as_dir=`$as_dirname -- "$as_dir" ||
20053$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20054	 X"$as_dir" : 'X\(//\)[^/]' \| \
20055	 X"$as_dir" : 'X\(//\)$' \| \
20056	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20057$as_echo X"$as_dir" |
20058    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20059	    s//\1/
20060	    q
20061	  }
20062	  /^X\(\/\/\)[^/].*/{
20063	    s//\1/
20064	    q
20065	  }
20066	  /^X\(\/\/\)$/{
20067	    s//\1/
20068	    q
20069	  }
20070	  /^X\(\/\).*/{
20071	    s//\1/
20072	    q
20073	  }
20074	  s/.*/./; q'`
20075      test -d "$as_dir" && break
20076    done
20077    test -z "$as_dirs" || eval "mkdir $as_dirs"
20078  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20079
20080
20081} # as_fn_mkdir_p
20082if mkdir -p . 2>/dev/null; then
20083  as_mkdir_p='mkdir -p "$as_dir"'
20084else
20085  test -d ./-p && rmdir ./-p
20086  as_mkdir_p=false
20087fi
20088
20089
20090# as_fn_executable_p FILE
20091# -----------------------
20092# Test if FILE is an executable regular file.
20093as_fn_executable_p ()
20094{
20095  test -f "$1" && test -x "$1"
20096} # as_fn_executable_p
20097as_test_x='test -x'
20098as_executable_p=as_fn_executable_p
20099
20100# Sed expression to map a string onto a valid CPP name.
20101as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20102
20103# Sed expression to map a string onto a valid variable name.
20104as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20105
20106
20107exec 6>&1
20108## ----------------------------------- ##
20109## Main body of $CONFIG_STATUS script. ##
20110## ----------------------------------- ##
20111_ASEOF
20112test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20113
20114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20115# Save the log message, to keep $0 and so on meaningful, and to
20116# report actual input values of CONFIG_FILES etc. instead of their
20117# values after options handling.
20118ac_log="
20119This file was extended by libsodium $as_me 1.0.18, which was
20120generated by GNU Autoconf 2.69.  Invocation command line was
20121
20122  CONFIG_FILES    = $CONFIG_FILES
20123  CONFIG_HEADERS  = $CONFIG_HEADERS
20124  CONFIG_LINKS    = $CONFIG_LINKS
20125  CONFIG_COMMANDS = $CONFIG_COMMANDS
20126  $ $0 $@
20127
20128on `(hostname || uname -n) 2>/dev/null | sed 1q`
20129"
20130
20131_ACEOF
20132
20133case $ac_config_files in *"
20134"*) set x $ac_config_files; shift; ac_config_files=$*;;
20135esac
20136
20137
20138
20139cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20140# Files that config.status was made for.
20141config_files="$ac_config_files"
20142config_commands="$ac_config_commands"
20143
20144_ACEOF
20145
20146cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20147ac_cs_usage="\
20148\`$as_me' instantiates files and other configuration actions
20149from templates according to the current configuration.  Unless the files
20150and actions are specified as TAGs, all are instantiated by default.
20151
20152Usage: $0 [OPTION]... [TAG]...
20153
20154  -h, --help       print this help, then exit
20155  -V, --version    print version number and configuration settings, then exit
20156      --config     print configuration, then exit
20157  -q, --quiet, --silent
20158                   do not print progress messages
20159  -d, --debug      don't remove temporary files
20160      --recheck    update $as_me by reconfiguring in the same conditions
20161      --file=FILE[:TEMPLATE]
20162                   instantiate the configuration file FILE
20163
20164Configuration files:
20165$config_files
20166
20167Configuration commands:
20168$config_commands
20169
20170Report bugs to <https://github.com/jedisct1/libsodium/issues>.
20171libsodium home page: <https://github.com/jedisct1/libsodium>."
20172
20173_ACEOF
20174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20175ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20176ac_cs_version="\\
20177libsodium config.status 1.0.18
20178configured by $0, generated by GNU Autoconf 2.69,
20179  with options \\"\$ac_cs_config\\"
20180
20181Copyright (C) 2012 Free Software Foundation, Inc.
20182This config.status script is free software; the Free Software Foundation
20183gives unlimited permission to copy, distribute and modify it."
20184
20185ac_pwd='$ac_pwd'
20186srcdir='$srcdir'
20187INSTALL='$INSTALL'
20188MKDIR_P='$MKDIR_P'
20189AWK='$AWK'
20190test -n "\$AWK" || AWK=awk
20191_ACEOF
20192
20193cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20194# The default lists apply if the user does not specify any file.
20195ac_need_defaults=:
20196while test $# != 0
20197do
20198  case $1 in
20199  --*=?*)
20200    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20201    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20202    ac_shift=:
20203    ;;
20204  --*=)
20205    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20206    ac_optarg=
20207    ac_shift=:
20208    ;;
20209  *)
20210    ac_option=$1
20211    ac_optarg=$2
20212    ac_shift=shift
20213    ;;
20214  esac
20215
20216  case $ac_option in
20217  # Handling of the options.
20218  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20219    ac_cs_recheck=: ;;
20220  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20221    $as_echo "$ac_cs_version"; exit ;;
20222  --config | --confi | --conf | --con | --co | --c )
20223    $as_echo "$ac_cs_config"; exit ;;
20224  --debug | --debu | --deb | --de | --d | -d )
20225    debug=: ;;
20226  --file | --fil | --fi | --f )
20227    $ac_shift
20228    case $ac_optarg in
20229    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20230    '') as_fn_error $? "missing file argument" ;;
20231    esac
20232    as_fn_append CONFIG_FILES " '$ac_optarg'"
20233    ac_need_defaults=false;;
20234  --he | --h |  --help | --hel | -h )
20235    $as_echo "$ac_cs_usage"; exit ;;
20236  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20237  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20238    ac_cs_silent=: ;;
20239
20240  # This is an error.
20241  -*) as_fn_error $? "unrecognized option: \`$1'
20242Try \`$0 --help' for more information." ;;
20243
20244  *) as_fn_append ac_config_targets " $1"
20245     ac_need_defaults=false ;;
20246
20247  esac
20248  shift
20249done
20250
20251ac_configure_extra_args=
20252
20253if $ac_cs_silent; then
20254  exec 6>/dev/null
20255  ac_configure_extra_args="$ac_configure_extra_args --silent"
20256fi
20257
20258_ACEOF
20259cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20260if \$ac_cs_recheck; then
20261  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20262  shift
20263  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20264  CONFIG_SHELL='$SHELL'
20265  export CONFIG_SHELL
20266  exec "\$@"
20267fi
20268
20269_ACEOF
20270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20271exec 5>>config.log
20272{
20273  echo
20274  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20275## Running $as_me. ##
20276_ASBOX
20277  $as_echo "$ac_log"
20278} >&5
20279
20280_ACEOF
20281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20282#
20283# INIT-COMMANDS
20284#
20285AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20286
20287
20288# The HP-UX ksh and POSIX shell print the target directory to stdout
20289# if CDPATH is set.
20290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20291
20292sed_quote_subst='$sed_quote_subst'
20293double_quote_subst='$double_quote_subst'
20294delay_variable_subst='$delay_variable_subst'
20295macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20296macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20297enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20298enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20299pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20300enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20301shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20302SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20303ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20304PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20305host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20306host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20307host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20308build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20309build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20310build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20311SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20312Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20313GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20314EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20315FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20316LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20317NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20318LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20319max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20320ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20321exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20322lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20323lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20324lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20325lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20326lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20327reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20328reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20329OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20330deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20331file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20332file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20333want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20334DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20335sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20336AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20337AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20338archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20339STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20340RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20341old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20342old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20343old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20344lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20345CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20346CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20347compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20348GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20349lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20350lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20351lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20352lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20353lt_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"`'
20354lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20355nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20356lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20357lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20358objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20359MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20360lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20361lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20362lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20363lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20364lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20365need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20366MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20367DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20368NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20369LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20370OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20371OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20372libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20373shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20374extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20375archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20376enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20377export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20378whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20379compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20380old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20381old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20382archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20383archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20384module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20385module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20386with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20387allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20388no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20389hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20390hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20391hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20392hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20393hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20394hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20395hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20396inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20397link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20398always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20399export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20400exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20401include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20402prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20403postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20404file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20405variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20406need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20407need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20408version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20409runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20410shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20411shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20412libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20413library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20414soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20415install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20416postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20417postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20418finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20419finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20420hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20421sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20422configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20423configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20424hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20425enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20426enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20427enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20428old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20429striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20430AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20431
20432LTCC='$LTCC'
20433LTCFLAGS='$LTCFLAGS'
20434compiler='$compiler_DEFAULT'
20435
20436# A function that is used when there is no print builtin or printf.
20437func_fallback_echo ()
20438{
20439  eval 'cat <<_LTECHO_EOF
20440\$1
20441_LTECHO_EOF'
20442}
20443
20444# Quote evaled strings.
20445for var in SHELL \
20446ECHO \
20447PATH_SEPARATOR \
20448SED \
20449GREP \
20450EGREP \
20451FGREP \
20452LD \
20453NM \
20454LN_S \
20455lt_SP2NL \
20456lt_NL2SP \
20457reload_flag \
20458OBJDUMP \
20459deplibs_check_method \
20460file_magic_cmd \
20461file_magic_glob \
20462want_nocaseglob \
20463DLLTOOL \
20464sharedlib_from_linklib_cmd \
20465AR \
20466AR_FLAGS \
20467archiver_list_spec \
20468STRIP \
20469RANLIB \
20470CC \
20471CFLAGS \
20472compiler \
20473lt_cv_sys_global_symbol_pipe \
20474lt_cv_sys_global_symbol_to_cdecl \
20475lt_cv_sys_global_symbol_to_import \
20476lt_cv_sys_global_symbol_to_c_name_address \
20477lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20478lt_cv_nm_interface \
20479nm_file_list_spec \
20480lt_cv_truncate_bin \
20481lt_prog_compiler_no_builtin_flag \
20482lt_prog_compiler_pic \
20483lt_prog_compiler_wl \
20484lt_prog_compiler_static \
20485lt_cv_prog_compiler_c_o \
20486need_locks \
20487MANIFEST_TOOL \
20488DSYMUTIL \
20489NMEDIT \
20490LIPO \
20491OTOOL \
20492OTOOL64 \
20493shrext_cmds \
20494export_dynamic_flag_spec \
20495whole_archive_flag_spec \
20496compiler_needs_object \
20497with_gnu_ld \
20498allow_undefined_flag \
20499no_undefined_flag \
20500hardcode_libdir_flag_spec \
20501hardcode_libdir_separator \
20502exclude_expsyms \
20503include_expsyms \
20504file_list_spec \
20505variables_saved_for_relink \
20506libname_spec \
20507library_names_spec \
20508soname_spec \
20509install_override_mode \
20510finish_eval \
20511old_striplib \
20512striplib \
20513AS; do
20514    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20515    *[\\\\\\\`\\"\\\$]*)
20516      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20517      ;;
20518    *)
20519      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20520      ;;
20521    esac
20522done
20523
20524# Double-quote double-evaled strings.
20525for var in reload_cmds \
20526old_postinstall_cmds \
20527old_postuninstall_cmds \
20528old_archive_cmds \
20529extract_expsyms_cmds \
20530old_archive_from_new_cmds \
20531old_archive_from_expsyms_cmds \
20532archive_cmds \
20533archive_expsym_cmds \
20534module_cmds \
20535module_expsym_cmds \
20536export_symbols_cmds \
20537prelink_cmds \
20538postlink_cmds \
20539postinstall_cmds \
20540postuninstall_cmds \
20541finish_cmds \
20542sys_lib_search_path_spec \
20543configure_time_dlsearch_path \
20544configure_time_lt_sys_library_path; do
20545    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20546    *[\\\\\\\`\\"\\\$]*)
20547      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20548      ;;
20549    *)
20550      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20551      ;;
20552    esac
20553done
20554
20555ac_aux_dir='$ac_aux_dir'
20556
20557# See if we are running on zsh, and set the options that allow our
20558# commands through without removal of \ escapes INIT.
20559if test -n "\${ZSH_VERSION+set}"; then
20560   setopt NO_GLOB_SUBST
20561fi
20562
20563
20564    PACKAGE='$PACKAGE'
20565    VERSION='$VERSION'
20566    RM='$RM'
20567    ofile='$ofile'
20568
20569
20570
20571
20572_ACEOF
20573
20574cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20575
20576# Handling of arguments.
20577for ac_config_target in $ac_config_targets
20578do
20579  case $ac_config_target in
20580    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20581    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20582    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20583    "builds/Makefile") CONFIG_FILES="$CONFIG_FILES builds/Makefile" ;;
20584    "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
20585    "dist-build/Makefile") CONFIG_FILES="$CONFIG_FILES dist-build/Makefile" ;;
20586    "libsodium.pc") CONFIG_FILES="$CONFIG_FILES libsodium.pc" ;;
20587    "libsodium-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libsodium-uninstalled.pc" ;;
20588    "msvc-scripts/Makefile") CONFIG_FILES="$CONFIG_FILES msvc-scripts/Makefile" ;;
20589    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20590    "src/libsodium/Makefile") CONFIG_FILES="$CONFIG_FILES src/libsodium/Makefile" ;;
20591    "src/libsodium/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/libsodium/include/Makefile" ;;
20592    "src/libsodium/include/sodium/version.h") CONFIG_FILES="$CONFIG_FILES src/libsodium/include/sodium/version.h" ;;
20593    "test/default/Makefile") CONFIG_FILES="$CONFIG_FILES test/default/Makefile" ;;
20594    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
20595
20596  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20597  esac
20598done
20599
20600
20601# If the user did not use the arguments to specify the items to instantiate,
20602# then the envvar interface is used.  Set only those that are not.
20603# We use the long form for the default assignment because of an extremely
20604# bizarre bug on SunOS 4.1.3.
20605if $ac_need_defaults; then
20606  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20607  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20608fi
20609
20610# Have a temporary directory for convenience.  Make it in the build tree
20611# simply because there is no reason against having it here, and in addition,
20612# creating and moving files from /tmp can sometimes cause problems.
20613# Hook for its removal unless debugging.
20614# Note that there is a small window in which the directory will not be cleaned:
20615# after its creation but before its name has been assigned to `$tmp'.
20616$debug ||
20617{
20618  tmp= ac_tmp=
20619  trap 'exit_status=$?
20620  : "${ac_tmp:=$tmp}"
20621  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20622' 0
20623  trap 'as_fn_exit 1' 1 2 13 15
20624}
20625# Create a (secure) tmp directory for tmp files.
20626
20627{
20628  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20629  test -d "$tmp"
20630}  ||
20631{
20632  tmp=./conf$$-$RANDOM
20633  (umask 077 && mkdir "$tmp")
20634} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20635ac_tmp=$tmp
20636
20637# Set up the scripts for CONFIG_FILES section.
20638# No need to generate them if there are no CONFIG_FILES.
20639# This happens for instance with `./config.status config.h'.
20640if test -n "$CONFIG_FILES"; then
20641
20642
20643ac_cr=`echo X | tr X '\015'`
20644# On cygwin, bash can eat \r inside `` if the user requested igncr.
20645# But we know of no other shell where ac_cr would be empty at this
20646# point, so we can use a bashism as a fallback.
20647if test "x$ac_cr" = x; then
20648  eval ac_cr=\$\'\\r\'
20649fi
20650ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20651if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20652  ac_cs_awk_cr='\\r'
20653else
20654  ac_cs_awk_cr=$ac_cr
20655fi
20656
20657echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20658_ACEOF
20659
20660
20661{
20662  echo "cat >conf$$subs.awk <<_ACEOF" &&
20663  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20664  echo "_ACEOF"
20665} >conf$$subs.sh ||
20666  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20667ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20668ac_delim='%!_!# '
20669for ac_last_try in false false false false false :; do
20670  . ./conf$$subs.sh ||
20671    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20672
20673  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20674  if test $ac_delim_n = $ac_delim_num; then
20675    break
20676  elif $ac_last_try; then
20677    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20678  else
20679    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20680  fi
20681done
20682rm -f conf$$subs.sh
20683
20684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20685cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20686_ACEOF
20687sed -n '
20688h
20689s/^/S["/; s/!.*/"]=/
20690p
20691g
20692s/^[^!]*!//
20693:repl
20694t repl
20695s/'"$ac_delim"'$//
20696t delim
20697:nl
20698h
20699s/\(.\{148\}\)..*/\1/
20700t more1
20701s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20702p
20703n
20704b repl
20705:more1
20706s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20707p
20708g
20709s/.\{148\}//
20710t nl
20711:delim
20712h
20713s/\(.\{148\}\)..*/\1/
20714t more2
20715s/["\\]/\\&/g; s/^/"/; s/$/"/
20716p
20717b
20718:more2
20719s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20720p
20721g
20722s/.\{148\}//
20723t delim
20724' <conf$$subs.awk | sed '
20725/^[^""]/{
20726  N
20727  s/\n//
20728}
20729' >>$CONFIG_STATUS || ac_write_fail=1
20730rm -f conf$$subs.awk
20731cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20732_ACAWK
20733cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20734  for (key in S) S_is_set[key] = 1
20735  FS = ""
20736
20737}
20738{
20739  line = $ 0
20740  nfields = split(line, field, "@")
20741  substed = 0
20742  len = length(field[1])
20743  for (i = 2; i < nfields; i++) {
20744    key = field[i]
20745    keylen = length(key)
20746    if (S_is_set[key]) {
20747      value = S[key]
20748      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20749      len += length(value) + length(field[++i])
20750      substed = 1
20751    } else
20752      len += 1 + keylen
20753  }
20754
20755  print line
20756}
20757
20758_ACAWK
20759_ACEOF
20760cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20761if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20762  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20763else
20764  cat
20765fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20766  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20767_ACEOF
20768
20769# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20770# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20771# trailing colons and then remove the whole line if VPATH becomes empty
20772# (actually we leave an empty line to preserve line numbers).
20773if test "x$srcdir" = x.; then
20774  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20775h
20776s///
20777s/^/:/
20778s/[	 ]*$/:/
20779s/:\$(srcdir):/:/g
20780s/:\${srcdir}:/:/g
20781s/:@srcdir@:/:/g
20782s/^:*//
20783s/:*$//
20784x
20785s/\(=[	 ]*\).*/\1/
20786G
20787s/\n//
20788s/^[^=]*=[	 ]*$//
20789}'
20790fi
20791
20792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20793fi # test -n "$CONFIG_FILES"
20794
20795
20796eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
20797shift
20798for ac_tag
20799do
20800  case $ac_tag in
20801  :[FHLC]) ac_mode=$ac_tag; continue;;
20802  esac
20803  case $ac_mode$ac_tag in
20804  :[FHL]*:*);;
20805  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20806  :[FH]-) ac_tag=-:-;;
20807  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20808  esac
20809  ac_save_IFS=$IFS
20810  IFS=:
20811  set x $ac_tag
20812  IFS=$ac_save_IFS
20813  shift
20814  ac_file=$1
20815  shift
20816
20817  case $ac_mode in
20818  :L) ac_source=$1;;
20819  :[FH])
20820    ac_file_inputs=
20821    for ac_f
20822    do
20823      case $ac_f in
20824      -) ac_f="$ac_tmp/stdin";;
20825      *) # Look for the file first in the build tree, then in the source tree
20826	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20827	 # because $ac_f cannot contain `:'.
20828	 test -f "$ac_f" ||
20829	   case $ac_f in
20830	   [\\/$]*) false;;
20831	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20832	   esac ||
20833	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20834      esac
20835      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20836      as_fn_append ac_file_inputs " '$ac_f'"
20837    done
20838
20839    # Let's still pretend it is `configure' which instantiates (i.e., don't
20840    # use $as_me), people would be surprised to read:
20841    #    /* config.h.  Generated by config.status.  */
20842    configure_input='Generated from '`
20843	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20844	`' by configure.'
20845    if test x"$ac_file" != x-; then
20846      configure_input="$ac_file.  $configure_input"
20847      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20848$as_echo "$as_me: creating $ac_file" >&6;}
20849    fi
20850    # Neutralize special characters interpreted by sed in replacement strings.
20851    case $configure_input in #(
20852    *\&* | *\|* | *\\* )
20853       ac_sed_conf_input=`$as_echo "$configure_input" |
20854       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20855    *) ac_sed_conf_input=$configure_input;;
20856    esac
20857
20858    case $ac_tag in
20859    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20860      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20861    esac
20862    ;;
20863  esac
20864
20865  ac_dir=`$as_dirname -- "$ac_file" ||
20866$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20867	 X"$ac_file" : 'X\(//\)[^/]' \| \
20868	 X"$ac_file" : 'X\(//\)$' \| \
20869	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20870$as_echo X"$ac_file" |
20871    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20872	    s//\1/
20873	    q
20874	  }
20875	  /^X\(\/\/\)[^/].*/{
20876	    s//\1/
20877	    q
20878	  }
20879	  /^X\(\/\/\)$/{
20880	    s//\1/
20881	    q
20882	  }
20883	  /^X\(\/\).*/{
20884	    s//\1/
20885	    q
20886	  }
20887	  s/.*/./; q'`
20888  as_dir="$ac_dir"; as_fn_mkdir_p
20889  ac_builddir=.
20890
20891case "$ac_dir" in
20892.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20893*)
20894  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20895  # A ".." for each directory in $ac_dir_suffix.
20896  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20897  case $ac_top_builddir_sub in
20898  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20899  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20900  esac ;;
20901esac
20902ac_abs_top_builddir=$ac_pwd
20903ac_abs_builddir=$ac_pwd$ac_dir_suffix
20904# for backward compatibility:
20905ac_top_builddir=$ac_top_build_prefix
20906
20907case $srcdir in
20908  .)  # We are building in place.
20909    ac_srcdir=.
20910    ac_top_srcdir=$ac_top_builddir_sub
20911    ac_abs_top_srcdir=$ac_pwd ;;
20912  [\\/]* | ?:[\\/]* )  # Absolute name.
20913    ac_srcdir=$srcdir$ac_dir_suffix;
20914    ac_top_srcdir=$srcdir
20915    ac_abs_top_srcdir=$srcdir ;;
20916  *) # Relative name.
20917    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20918    ac_top_srcdir=$ac_top_build_prefix$srcdir
20919    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20920esac
20921ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20922
20923
20924  case $ac_mode in
20925  :F)
20926  #
20927  # CONFIG_FILE
20928  #
20929
20930  case $INSTALL in
20931  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20932  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20933  esac
20934  ac_MKDIR_P=$MKDIR_P
20935  case $MKDIR_P in
20936  [\\/$]* | ?:[\\/]* ) ;;
20937  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20938  esac
20939_ACEOF
20940
20941cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20942# If the template does not know about datarootdir, expand it.
20943# FIXME: This hack should be removed a few years after 2.60.
20944ac_datarootdir_hack=; ac_datarootdir_seen=
20945ac_sed_dataroot='
20946/datarootdir/ {
20947  p
20948  q
20949}
20950/@datadir@/p
20951/@docdir@/p
20952/@infodir@/p
20953/@localedir@/p
20954/@mandir@/p'
20955case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20956*datarootdir*) ac_datarootdir_seen=yes;;
20957*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20958  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20959$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20960_ACEOF
20961cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20962  ac_datarootdir_hack='
20963  s&@datadir@&$datadir&g
20964  s&@docdir@&$docdir&g
20965  s&@infodir@&$infodir&g
20966  s&@localedir@&$localedir&g
20967  s&@mandir@&$mandir&g
20968  s&\\\${datarootdir}&$datarootdir&g' ;;
20969esac
20970_ACEOF
20971
20972# Neutralize VPATH when `$srcdir' = `.'.
20973# Shell code in configure.ac might set extrasub.
20974# FIXME: do we really want to maintain this feature?
20975cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20976ac_sed_extra="$ac_vpsub
20977$extrasub
20978_ACEOF
20979cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20980:t
20981/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20982s|@configure_input@|$ac_sed_conf_input|;t t
20983s&@top_builddir@&$ac_top_builddir_sub&;t t
20984s&@top_build_prefix@&$ac_top_build_prefix&;t t
20985s&@srcdir@&$ac_srcdir&;t t
20986s&@abs_srcdir@&$ac_abs_srcdir&;t t
20987s&@top_srcdir@&$ac_top_srcdir&;t t
20988s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20989s&@builddir@&$ac_builddir&;t t
20990s&@abs_builddir@&$ac_abs_builddir&;t t
20991s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20992s&@INSTALL@&$ac_INSTALL&;t t
20993s&@MKDIR_P@&$ac_MKDIR_P&;t t
20994$ac_datarootdir_hack
20995"
20996eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20997  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20998
20999test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21000  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21001  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21002      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21003  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21004which seems to be undefined.  Please make sure it is defined" >&5
21005$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21006which seems to be undefined.  Please make sure it is defined" >&2;}
21007
21008  rm -f "$ac_tmp/stdin"
21009  case $ac_file in
21010  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21011  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21012  esac \
21013  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21014 ;;
21015
21016
21017  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21018$as_echo "$as_me: executing $ac_file commands" >&6;}
21019 ;;
21020  esac
21021
21022
21023  case $ac_file$ac_mode in
21024    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21025  # Older Autoconf quotes --file arguments for eval, but not when files
21026  # are listed without --file.  Let's play safe and only enable the eval
21027  # if we detect the quoting.
21028  # TODO: see whether this extra hack can be removed once we start
21029  # requiring Autoconf 2.70 or later.
21030  case $CONFIG_FILES in #(
21031  *\'*) :
21032    eval set x "$CONFIG_FILES" ;; #(
21033  *) :
21034    set x $CONFIG_FILES ;; #(
21035  *) :
21036     ;;
21037esac
21038  shift
21039  # Used to flag and report bootstrapping failures.
21040  am_rc=0
21041  for am_mf
21042  do
21043    # Strip MF so we end up with the name of the file.
21044    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
21045    # Check whether this is an Automake generated Makefile which includes
21046    # dependency-tracking related rules and includes.
21047    # Grep'ing the whole file directly is not great: AIX grep has a line
21048    # limit of 2048, but all sed's we know have understand at least 4000.
21049    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21050      || continue
21051    am_dirpart=`$as_dirname -- "$am_mf" ||
21052$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21053	 X"$am_mf" : 'X\(//\)[^/]' \| \
21054	 X"$am_mf" : 'X\(//\)$' \| \
21055	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21056$as_echo X"$am_mf" |
21057    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21058	    s//\1/
21059	    q
21060	  }
21061	  /^X\(\/\/\)[^/].*/{
21062	    s//\1/
21063	    q
21064	  }
21065	  /^X\(\/\/\)$/{
21066	    s//\1/
21067	    q
21068	  }
21069	  /^X\(\/\).*/{
21070	    s//\1/
21071	    q
21072	  }
21073	  s/.*/./; q'`
21074    am_filepart=`$as_basename -- "$am_mf" ||
21075$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21076	 X"$am_mf" : 'X\(//\)$' \| \
21077	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21078$as_echo X/"$am_mf" |
21079    sed '/^.*\/\([^/][^/]*\)\/*$/{
21080	    s//\1/
21081	    q
21082	  }
21083	  /^X\/\(\/\/\)$/{
21084	    s//\1/
21085	    q
21086	  }
21087	  /^X\/\(\/\).*/{
21088	    s//\1/
21089	    q
21090	  }
21091	  s/.*/./; q'`
21092    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21093      && sed -e '/# am--include-marker/d' "$am_filepart" \
21094        | $MAKE -f - am--depfiles" >&5
21095   (cd "$am_dirpart" \
21096      && sed -e '/# am--include-marker/d' "$am_filepart" \
21097        | $MAKE -f - am--depfiles) >&5 2>&5
21098   ac_status=$?
21099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100   (exit $ac_status); } || am_rc=$?
21101  done
21102  if test $am_rc -ne 0; then
21103    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21104$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21105as_fn_error $? "Something went wrong bootstrapping makefile fragments
21106    for automatic dependency tracking.  Try re-running configure with the
21107    '--disable-dependency-tracking' option to at least be able to build
21108    the package (albeit without support for automatic dependency tracking).
21109See \`config.log' for more details" "$LINENO" 5; }
21110  fi
21111  { am_dirpart=; unset am_dirpart;}
21112  { am_filepart=; unset am_filepart;}
21113  { am_mf=; unset am_mf;}
21114  { am_rc=; unset am_rc;}
21115  rm -f conftest-deps.mk
21116}
21117 ;;
21118    "libtool":C)
21119
21120    # See if we are running on zsh, and set the options that allow our
21121    # commands through without removal of \ escapes.
21122    if test -n "${ZSH_VERSION+set}"; then
21123      setopt NO_GLOB_SUBST
21124    fi
21125
21126    cfgfile=${ofile}T
21127    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21128    $RM "$cfgfile"
21129
21130    cat <<_LT_EOF >> "$cfgfile"
21131#! $SHELL
21132# Generated automatically by $as_me ($PACKAGE) $VERSION
21133# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21134# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21135
21136# Provide generalized library-building support services.
21137# Written by Gordon Matzigkeit, 1996
21138
21139# Copyright (C) 2014 Free Software Foundation, Inc.
21140# This is free software; see the source for copying conditions.  There is NO
21141# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21142
21143# GNU Libtool is free software; you can redistribute it and/or modify
21144# it under the terms of the GNU General Public License as published by
21145# the Free Software Foundation; either version 2 of of the License, or
21146# (at your option) any later version.
21147#
21148# As a special exception to the GNU General Public License, if you
21149# distribute this file as part of a program or library that is built
21150# using GNU Libtool, you may include this file under the  same
21151# distribution terms that you use for the rest of that program.
21152#
21153# GNU Libtool is distributed in the hope that it will be useful, but
21154# WITHOUT ANY WARRANTY; without even the implied warranty of
21155# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21156# GNU General Public License for more details.
21157#
21158# You should have received a copy of the GNU General Public License
21159# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21160
21161
21162# The names of the tagged configurations supported by this script.
21163available_tags=''
21164
21165# Configured defaults for sys_lib_dlsearch_path munging.
21166: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21167
21168# ### BEGIN LIBTOOL CONFIG
21169
21170# Which release of libtool.m4 was used?
21171macro_version=$macro_version
21172macro_revision=$macro_revision
21173
21174# Whether or not to build shared libraries.
21175build_libtool_libs=$enable_shared
21176
21177# Whether or not to build static libraries.
21178build_old_libs=$enable_static
21179
21180# What type of objects to build.
21181pic_mode=$pic_mode
21182
21183# Whether or not to optimize for fast installation.
21184fast_install=$enable_fast_install
21185
21186# Shared archive member basename,for filename based shared library versioning on AIX.
21187shared_archive_member_spec=$shared_archive_member_spec
21188
21189# Shell to use when invoking shell scripts.
21190SHELL=$lt_SHELL
21191
21192# An echo program that protects backslashes.
21193ECHO=$lt_ECHO
21194
21195# The PATH separator for the build system.
21196PATH_SEPARATOR=$lt_PATH_SEPARATOR
21197
21198# The host system.
21199host_alias=$host_alias
21200host=$host
21201host_os=$host_os
21202
21203# The build system.
21204build_alias=$build_alias
21205build=$build
21206build_os=$build_os
21207
21208# A sed program that does not truncate output.
21209SED=$lt_SED
21210
21211# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21212Xsed="\$SED -e 1s/^X//"
21213
21214# A grep program that handles long lines.
21215GREP=$lt_GREP
21216
21217# An ERE matcher.
21218EGREP=$lt_EGREP
21219
21220# A literal string matcher.
21221FGREP=$lt_FGREP
21222
21223# A BSD- or MS-compatible name lister.
21224NM=$lt_NM
21225
21226# Whether we need soft or hard links.
21227LN_S=$lt_LN_S
21228
21229# What is the maximum length of a command?
21230max_cmd_len=$max_cmd_len
21231
21232# Object file suffix (normally "o").
21233objext=$ac_objext
21234
21235# Executable file suffix (normally "").
21236exeext=$exeext
21237
21238# whether the shell understands "unset".
21239lt_unset=$lt_unset
21240
21241# turn spaces into newlines.
21242SP2NL=$lt_lt_SP2NL
21243
21244# turn newlines into spaces.
21245NL2SP=$lt_lt_NL2SP
21246
21247# convert \$build file names to \$host format.
21248to_host_file_cmd=$lt_cv_to_host_file_cmd
21249
21250# convert \$build files to toolchain format.
21251to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21252
21253# An object symbol dumper.
21254OBJDUMP=$lt_OBJDUMP
21255
21256# Method to check whether dependent libraries are shared objects.
21257deplibs_check_method=$lt_deplibs_check_method
21258
21259# Command to use when deplibs_check_method = "file_magic".
21260file_magic_cmd=$lt_file_magic_cmd
21261
21262# How to find potential files when deplibs_check_method = "file_magic".
21263file_magic_glob=$lt_file_magic_glob
21264
21265# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21266want_nocaseglob=$lt_want_nocaseglob
21267
21268# DLL creation program.
21269DLLTOOL=$lt_DLLTOOL
21270
21271# Command to associate shared and link libraries.
21272sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21273
21274# The archiver.
21275AR=$lt_AR
21276
21277# Flags to create an archive.
21278AR_FLAGS=$lt_AR_FLAGS
21279
21280# How to feed a file listing to the archiver.
21281archiver_list_spec=$lt_archiver_list_spec
21282
21283# A symbol stripping program.
21284STRIP=$lt_STRIP
21285
21286# Commands used to install an old-style archive.
21287RANLIB=$lt_RANLIB
21288old_postinstall_cmds=$lt_old_postinstall_cmds
21289old_postuninstall_cmds=$lt_old_postuninstall_cmds
21290
21291# Whether to use a lock for old archive extraction.
21292lock_old_archive_extraction=$lock_old_archive_extraction
21293
21294# A C compiler.
21295LTCC=$lt_CC
21296
21297# LTCC compiler flags.
21298LTCFLAGS=$lt_CFLAGS
21299
21300# Take the output of nm and produce a listing of raw symbols and C names.
21301global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21302
21303# Transform the output of nm in a proper C declaration.
21304global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21305
21306# Transform the output of nm into a list of symbols to manually relocate.
21307global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21308
21309# Transform the output of nm in a C name address pair.
21310global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21311
21312# Transform the output of nm in a C name address pair when lib prefix is needed.
21313global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21314
21315# The name lister interface.
21316nm_interface=$lt_lt_cv_nm_interface
21317
21318# Specify filename containing input files for \$NM.
21319nm_file_list_spec=$lt_nm_file_list_spec
21320
21321# The root where to search for dependent libraries,and where our libraries should be installed.
21322lt_sysroot=$lt_sysroot
21323
21324# Command to truncate a binary pipe.
21325lt_truncate_bin=$lt_lt_cv_truncate_bin
21326
21327# The name of the directory that contains temporary libtool files.
21328objdir=$objdir
21329
21330# Used to examine libraries when file_magic_cmd begins with "file".
21331MAGIC_CMD=$MAGIC_CMD
21332
21333# Must we lock files when doing compilation?
21334need_locks=$lt_need_locks
21335
21336# Manifest tool.
21337MANIFEST_TOOL=$lt_MANIFEST_TOOL
21338
21339# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21340DSYMUTIL=$lt_DSYMUTIL
21341
21342# Tool to change global to local symbols on Mac OS X.
21343NMEDIT=$lt_NMEDIT
21344
21345# Tool to manipulate fat objects and archives on Mac OS X.
21346LIPO=$lt_LIPO
21347
21348# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21349OTOOL=$lt_OTOOL
21350
21351# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21352OTOOL64=$lt_OTOOL64
21353
21354# Old archive suffix (normally "a").
21355libext=$libext
21356
21357# Shared library suffix (normally ".so").
21358shrext_cmds=$lt_shrext_cmds
21359
21360# The commands to extract the exported symbol list from a shared archive.
21361extract_expsyms_cmds=$lt_extract_expsyms_cmds
21362
21363# Variables whose values should be saved in libtool wrapper scripts and
21364# restored at link time.
21365variables_saved_for_relink=$lt_variables_saved_for_relink
21366
21367# Do we need the "lib" prefix for modules?
21368need_lib_prefix=$need_lib_prefix
21369
21370# Do we need a version for libraries?
21371need_version=$need_version
21372
21373# Library versioning type.
21374version_type=$version_type
21375
21376# Shared library runtime path variable.
21377runpath_var=$runpath_var
21378
21379# Shared library path variable.
21380shlibpath_var=$shlibpath_var
21381
21382# Is shlibpath searched before the hard-coded library search path?
21383shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21384
21385# Format of library name prefix.
21386libname_spec=$lt_libname_spec
21387
21388# List of archive names.  First name is the real one, the rest are links.
21389# The last name is the one that the linker finds with -lNAME
21390library_names_spec=$lt_library_names_spec
21391
21392# The coded name of the library, if different from the real name.
21393soname_spec=$lt_soname_spec
21394
21395# Permission mode override for installation of shared libraries.
21396install_override_mode=$lt_install_override_mode
21397
21398# Command to use after installation of a shared archive.
21399postinstall_cmds=$lt_postinstall_cmds
21400
21401# Command to use after uninstallation of a shared archive.
21402postuninstall_cmds=$lt_postuninstall_cmds
21403
21404# Commands used to finish a libtool library installation in a directory.
21405finish_cmds=$lt_finish_cmds
21406
21407# As "finish_cmds", except a single script fragment to be evaled but
21408# not shown.
21409finish_eval=$lt_finish_eval
21410
21411# Whether we should hardcode library paths into libraries.
21412hardcode_into_libs=$hardcode_into_libs
21413
21414# Compile-time system search path for libraries.
21415sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21416
21417# Detected run-time system search path for libraries.
21418sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21419
21420# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21421configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21422
21423# Whether dlopen is supported.
21424dlopen_support=$enable_dlopen
21425
21426# Whether dlopen of programs is supported.
21427dlopen_self=$enable_dlopen_self
21428
21429# Whether dlopen of statically linked programs is supported.
21430dlopen_self_static=$enable_dlopen_self_static
21431
21432# Commands to strip libraries.
21433old_striplib=$lt_old_striplib
21434striplib=$lt_striplib
21435
21436# Assembler program.
21437AS=$lt_AS
21438
21439
21440# The linker used to build libraries.
21441LD=$lt_LD
21442
21443# How to create reloadable object files.
21444reload_flag=$lt_reload_flag
21445reload_cmds=$lt_reload_cmds
21446
21447# Commands used to build an old-style archive.
21448old_archive_cmds=$lt_old_archive_cmds
21449
21450# A language specific compiler.
21451CC=$lt_compiler
21452
21453# Is the compiler the GNU compiler?
21454with_gcc=$GCC
21455
21456# Compiler flag to turn off builtin functions.
21457no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21458
21459# Additional compiler flags for building library objects.
21460pic_flag=$lt_lt_prog_compiler_pic
21461
21462# How to pass a linker flag through the compiler.
21463wl=$lt_lt_prog_compiler_wl
21464
21465# Compiler flag to prevent dynamic linking.
21466link_static_flag=$lt_lt_prog_compiler_static
21467
21468# Does compiler simultaneously support -c and -o options?
21469compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21470
21471# Whether or not to add -lc for building shared libraries.
21472build_libtool_need_lc=$archive_cmds_need_lc
21473
21474# Whether or not to disallow shared libs when runtime libs are static.
21475allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21476
21477# Compiler flag to allow reflexive dlopens.
21478export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21479
21480# Compiler flag to generate shared objects directly from archives.
21481whole_archive_flag_spec=$lt_whole_archive_flag_spec
21482
21483# Whether the compiler copes with passing no objects directly.
21484compiler_needs_object=$lt_compiler_needs_object
21485
21486# Create an old-style archive from a shared archive.
21487old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21488
21489# Create a temporary old-style archive to link instead of a shared archive.
21490old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21491
21492# Commands used to build a shared archive.
21493archive_cmds=$lt_archive_cmds
21494archive_expsym_cmds=$lt_archive_expsym_cmds
21495
21496# Commands used to build a loadable module if different from building
21497# a shared archive.
21498module_cmds=$lt_module_cmds
21499module_expsym_cmds=$lt_module_expsym_cmds
21500
21501# Whether we are building with GNU ld or not.
21502with_gnu_ld=$lt_with_gnu_ld
21503
21504# Flag that allows shared libraries with undefined symbols to be built.
21505allow_undefined_flag=$lt_allow_undefined_flag
21506
21507# Flag that enforces no undefined symbols.
21508no_undefined_flag=$lt_no_undefined_flag
21509
21510# Flag to hardcode \$libdir into a binary during linking.
21511# This must work even if \$libdir does not exist
21512hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21513
21514# Whether we need a single "-rpath" flag with a separated argument.
21515hardcode_libdir_separator=$lt_hardcode_libdir_separator
21516
21517# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21518# DIR into the resulting binary.
21519hardcode_direct=$hardcode_direct
21520
21521# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21522# DIR into the resulting binary and the resulting library dependency is
21523# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21524# library is relocated.
21525hardcode_direct_absolute=$hardcode_direct_absolute
21526
21527# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21528# into the resulting binary.
21529hardcode_minus_L=$hardcode_minus_L
21530
21531# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21532# into the resulting binary.
21533hardcode_shlibpath_var=$hardcode_shlibpath_var
21534
21535# Set to "yes" if building a shared library automatically hardcodes DIR
21536# into the library and all subsequent libraries and executables linked
21537# against it.
21538hardcode_automatic=$hardcode_automatic
21539
21540# Set to yes if linker adds runtime paths of dependent libraries
21541# to runtime path list.
21542inherit_rpath=$inherit_rpath
21543
21544# Whether libtool must link a program against all its dependency libraries.
21545link_all_deplibs=$link_all_deplibs
21546
21547# Set to "yes" if exported symbols are required.
21548always_export_symbols=$always_export_symbols
21549
21550# The commands to list exported symbols.
21551export_symbols_cmds=$lt_export_symbols_cmds
21552
21553# Symbols that should not be listed in the preloaded symbols.
21554exclude_expsyms=$lt_exclude_expsyms
21555
21556# Symbols that must always be exported.
21557include_expsyms=$lt_include_expsyms
21558
21559# Commands necessary for linking programs (against libraries) with templates.
21560prelink_cmds=$lt_prelink_cmds
21561
21562# Commands necessary for finishing linking programs.
21563postlink_cmds=$lt_postlink_cmds
21564
21565# Specify filename containing input files.
21566file_list_spec=$lt_file_list_spec
21567
21568# How to hardcode a shared library path into an executable.
21569hardcode_action=$hardcode_action
21570
21571# ### END LIBTOOL CONFIG
21572
21573_LT_EOF
21574
21575    cat <<'_LT_EOF' >> "$cfgfile"
21576
21577# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21578
21579# func_munge_path_list VARIABLE PATH
21580# -----------------------------------
21581# VARIABLE is name of variable containing _space_ separated list of
21582# directories to be munged by the contents of PATH, which is string
21583# having a format:
21584# "DIR[:DIR]:"
21585#       string "DIR[ DIR]" will be prepended to VARIABLE
21586# ":DIR[:DIR]"
21587#       string "DIR[ DIR]" will be appended to VARIABLE
21588# "DIRP[:DIRP]::[DIRA:]DIRA"
21589#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21590#       "DIRA[ DIRA]" will be appended to VARIABLE
21591# "DIR[:DIR]"
21592#       VARIABLE will be replaced by "DIR[ DIR]"
21593func_munge_path_list ()
21594{
21595    case x$2 in
21596    x)
21597        ;;
21598    *:)
21599        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21600        ;;
21601    x:*)
21602        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21603        ;;
21604    *::*)
21605        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21606        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21607        ;;
21608    *)
21609        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21610        ;;
21611    esac
21612}
21613
21614
21615# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21616func_cc_basename ()
21617{
21618    for cc_temp in $*""; do
21619      case $cc_temp in
21620        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21621        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21622        \-*) ;;
21623        *) break;;
21624      esac
21625    done
21626    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21627}
21628
21629
21630# ### END FUNCTIONS SHARED WITH CONFIGURE
21631
21632_LT_EOF
21633
21634  case $host_os in
21635  aix3*)
21636    cat <<\_LT_EOF >> "$cfgfile"
21637# AIX sometimes has problems with the GCC collect2 program.  For some
21638# reason, if we set the COLLECT_NAMES environment variable, the problems
21639# vanish in a puff of smoke.
21640if test set != "${COLLECT_NAMES+set}"; then
21641  COLLECT_NAMES=
21642  export COLLECT_NAMES
21643fi
21644_LT_EOF
21645    ;;
21646  esac
21647
21648
21649ltmain=$ac_aux_dir/ltmain.sh
21650
21651
21652  # We use sed instead of cat because bash on DJGPP gets confused if
21653  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21654  # text mode, it properly converts lines to CR/LF.  This bash problem
21655  # is reportedly fixed, but why not run on old versions too?
21656  sed '$q' "$ltmain" >> "$cfgfile" \
21657     || (rm -f "$cfgfile"; exit 1)
21658
21659   mv -f "$cfgfile" "$ofile" ||
21660    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21661  chmod +x "$ofile"
21662
21663 ;;
21664
21665  esac
21666done # for ac_tag
21667
21668
21669as_fn_exit 0
21670_ACEOF
21671ac_clean_files=$ac_clean_files_save
21672
21673test $ac_write_fail = 0 ||
21674  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21675
21676
21677# configure is writing to config.log, and then calls config.status.
21678# config.status does its own redirection, appending to config.log.
21679# Unfortunately, on DOS this fails, as config.log is still kept open
21680# by configure, so config.status won't be able to write to it; its
21681# output is simply discarded.  So we exec the FD to /dev/null,
21682# effectively closing config.log, so it can be properly (re)opened and
21683# appended to by config.status.  When coming back to configure, we
21684# need to make the FD available again.
21685if test "$no_create" != yes; then
21686  ac_cs_success=:
21687  ac_config_status_args=
21688  test "$silent" = yes &&
21689    ac_config_status_args="$ac_config_status_args --quiet"
21690  exec 5>/dev/null
21691  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21692  exec 5>>config.log
21693  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21694  # would make configure fail if this is the last instruction.
21695  $ac_cs_success || as_fn_exit 1
21696fi
21697if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21698  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21699$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21700fi
21701
21702