1#! /bin/sh
2# From configure.ac OpenPAM: configure.ac 947 2019-02-24 20:18:17Z des .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.69 for OpenPAM 20190224.
5#
6# Report bugs to <des@des.no>.
7#
8#
9# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21  emulate sh
22  NULLCMD=:
23  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24  # is contrary to our usage.  Disable this feature.
25  alias -g '${1+"$@"}'='"$@"'
26  setopt NO_GLOB_SUBST
27else
28  case `(set -o) 2>/dev/null` in #(
29  *posix*) :
30    set -o posix ;; #(
31  *) :
32     ;;
33esac
34fi
35
36
37as_nl='
38'
39export as_nl
40# Printing a long string crashes Solaris 7 /usr/bin/printf.
41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44# Prefer a ksh shell builtin over an external printf program on Solaris,
45# but without wasting forks for bash or zsh.
46if test -z "$BASH_VERSION$ZSH_VERSION" \
47    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='print -r --'
49  as_echo_n='print -rn --'
50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51  as_echo='printf %s\n'
52  as_echo_n='printf %s'
53else
54  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56    as_echo_n='/usr/ucb/echo -n'
57  else
58    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59    as_echo_n_body='eval
60      arg=$1;
61      case $arg in #(
62      *"$as_nl"*)
63	expr "X$arg" : "X\\(.*\\)$as_nl";
64	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65      esac;
66      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67    '
68    export as_echo_n_body
69    as_echo_n='sh -c $as_echo_n_body as_echo'
70  fi
71  export as_echo_body
72  as_echo='sh -c $as_echo_body as_echo'
73fi
74
75# The user is always right.
76if test "${PATH_SEPARATOR+set}" != set; then
77  PATH_SEPARATOR=:
78  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80      PATH_SEPARATOR=';'
81  }
82fi
83
84
85# IFS
86# We need space, tab and new line, in precisely that order.  Quoting is
87# there to prevent editors from complaining about space-tab.
88# (If _AS_PATH_WALK were called with IFS unset, it would disable word
89# splitting by setting IFS to empty value.)
90IFS=" ""	$as_nl"
91
92# Find who we are.  Look in the path if we contain no directory separator.
93as_myself=
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138# Use a proper internal environment variable to ensure we don't fall
139  # into an infinite loop, continuously re-executing ourselves.
140  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141    _as_can_reexec=no; export _as_can_reexec;
142    # We cannot yet assume a decent shell, so we have to provide a
143# neutralization value for shells without unset; and this also
144# works around shells that cannot unset nonexistent variables.
145# Preserve -v and -x to the replacement shell.
146BASH_ENV=/dev/null
147ENV=/dev/null
148(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149case $- in # ((((
150  *v*x* | *x*v* ) as_opts=-vx ;;
151  *v* ) as_opts=-v ;;
152  *x* ) as_opts=-x ;;
153  * ) as_opts= ;;
154esac
155exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156# Admittedly, this is quite paranoid, since all the known shells bail
157# out after a failed `exec'.
158$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159as_fn_exit 255
160  fi
161  # We don't want this to propagate to other subprocesses.
162          { _as_can_reexec=; unset _as_can_reexec;}
163if test "x$CONFIG_SHELL" = x; then
164  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165  emulate sh
166  NULLCMD=:
167  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168  # is contrary to our usage.  Disable this feature.
169  alias -g '\${1+\"\$@\"}'='\"\$@\"'
170  setopt NO_GLOB_SUBST
171else
172  case \`(set -o) 2>/dev/null\` in #(
173  *posix*) :
174    set -o posix ;; #(
175  *) :
176     ;;
177esac
178fi
179"
180  as_required="as_fn_return () { (exit \$1); }
181as_fn_success () { as_fn_return 0; }
182as_fn_failure () { as_fn_return 1; }
183as_fn_ret_success () { return 0; }
184as_fn_ret_failure () { return 1; }
185
186exitcode=0
187as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193else
194  exitcode=1; echo positional parameters were not saved.
195fi
196test x\$exitcode = x0 || exit 1
197test -x / || exit 1"
198  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202test \$(( 1 + 1 )) = 2 || exit 1
203
204  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208    PATH=/empty FPATH=/empty; export PATH FPATH
209    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
211  if (eval "$as_required") 2>/dev/null; then :
212  as_have_required=yes
213else
214  as_have_required=no
215fi
216  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217
218else
219  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220as_found=false
221for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222do
223  IFS=$as_save_IFS
224  test -z "$as_dir" && as_dir=.
225  as_found=:
226  case $as_dir in #(
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     # Try only shells that exist, to save several forks.
230	     as_shell=$as_dir/$as_base
231	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233  CONFIG_SHELL=$as_shell as_have_required=yes
234		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235  break 2
236fi
237fi
238	   done;;
239       esac
240  as_found=false
241done
242$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244  CONFIG_SHELL=$SHELL as_have_required=yes
245fi; }
246IFS=$as_save_IFS
247
248
249      if test "x$CONFIG_SHELL" != x; then :
250  export CONFIG_SHELL
251             # We cannot yet assume a decent shell, so we have to provide a
252# neutralization value for shells without unset; and this also
253# works around shells that cannot unset nonexistent variables.
254# Preserve -v and -x to the replacement shell.
255BASH_ENV=/dev/null
256ENV=/dev/null
257(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258case $- in # ((((
259  *v*x* | *x*v* ) as_opts=-vx ;;
260  *v* ) as_opts=-v ;;
261  *x* ) as_opts=-x ;;
262  * ) as_opts= ;;
263esac
264exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265# Admittedly, this is quite paranoid, since all the known shells bail
266# out after a failed `exec'.
267$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268exit 255
269fi
270
271    if test x$as_have_required = xno; then :
272  $as_echo "$0: This script requires a shell more modern than all"
273  $as_echo "$0: the shells that I found on your system."
274  if test x${ZSH_VERSION+set} = xset ; then
275    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    $as_echo "$0: Please tell bug-autoconf@gnu.org and des@des.no about
279$0: your system, including any error possibly output before
280$0: this message. Then install a modern shell, or manually
281$0: run 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='OpenPAM'
592PACKAGE_TARNAME='openpam'
593PACKAGE_VERSION='20190224'
594PACKAGE_STRING='OpenPAM 20190224'
595PACKAGE_BUGREPORT='des@des.no'
596PACKAGE_URL='http://www.openpam.org/'
597
598ac_unique_file="lib/libpam/pam_start.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
639WITH_TEST_FALSE
640WITH_TEST_TRUE
641HAVE_CRYB_TEST_FALSE
642HAVE_CRYB_TEST_TRUE
643CRYB_TEST_VERSION
644CRYB_TEST_LIBS
645CRYB_TEST_CFLAGS
646SYSTEM_LIBPAM
647DL_LIBS
648WITH_SYSTEM_LIBPAM_FALSE
649WITH_SYSTEM_LIBPAM_TRUE
650WITH_SU_FALSE
651WITH_SU_TRUE
652WITH_PAMTEST_FALSE
653WITH_PAMTEST_TRUE
654WITH_PAM_UNIX_FALSE
655WITH_PAM_UNIX_TRUE
656WITH_DOC_FALSE
657WITH_DOC_TRUE
658CUSTOM_MODULES_DIR_FALSE
659CUSTOM_MODULES_DIR_TRUE
660OPENPAM_MODULES_DIR
661LIB_MAJ
662pkgconfigdir
663PKG_CONFIG_LIBDIR
664PKG_CONFIG_PATH
665PKG_CONFIG
666LT_SYS_LIBRARY_PATH
667OTOOL64
668OTOOL
669LIPO
670NMEDIT
671DSYMUTIL
672MANIFEST_TOOL
673RANLIB
674ac_ct_AR
675AR
676DLLTOOL
677OBJDUMP
678LN_S
679NM
680ac_ct_DUMPBIN
681DUMPBIN
682LD
683FGREP
684SED
685host_os
686host_vendor
687host_cpu
688host
689build_os
690build_vendor
691build_cpu
692build
693LIBTOOL
694EGREP
695GREP
696CPP
697am__fastdepCC_FALSE
698am__fastdepCC_TRUE
699CCDEPMODE
700am__nodep
701AMDEPBACKSLASH
702AMDEP_FALSE
703AMDEP_TRUE
704am__include
705DEPDIR
706OBJEXT
707EXEEXT
708ac_ct_CC
709CPPFLAGS
710LDFLAGS
711CFLAGS
712CC
713AM_BACKSLASH
714AM_DEFAULT_VERBOSITY
715AM_DEFAULT_V
716AM_V
717am__untar
718am__tar
719AMTAR
720am__leading_dot
721SET_MAKE
722AWK
723mkdir_p
724MKDIR_P
725INSTALL_STRIP_PROGRAM
726STRIP
727install_sh
728MAKEINFO
729AUTOHEADER
730AUTOMAKE
731AUTOCONF
732ACLOCAL
733VERSION
734PACKAGE
735CYGPATH_W
736am__isrc
737INSTALL_DATA
738INSTALL_SCRIPT
739INSTALL_PROGRAM
740target_alias
741host_alias
742build_alias
743LIBS
744ECHO_T
745ECHO_N
746ECHO_C
747DEFS
748mandir
749localedir
750libdir
751psdir
752pdfdir
753dvidir
754htmldir
755infodir
756docdir
757oldincludedir
758includedir
759localstatedir
760sharedstatedir
761sysconfdir
762datadir
763datarootdir
764libexecdir
765sbindir
766bindir
767program_transform_name
768prefix
769exec_prefix
770PACKAGE_URL
771PACKAGE_BUGREPORT
772PACKAGE_STRING
773PACKAGE_VERSION
774PACKAGE_TARNAME
775PACKAGE_NAME
776PATH_SEPARATOR
777SHELL
778am__quote'
779ac_subst_files=''
780ac_user_opts='
781enable_option_checking
782enable_silent_rules
783enable_dependency_tracking
784enable_static
785enable_shared
786with_pic
787enable_fast_install
788with_aix_soname
789with_gnu_ld
790with_sysroot
791enable_libtool_lock
792with_pkgconfigdir
793enable_debug
794enable_unversioned_modules
795with_modules_dir
796with_doc
797with_pam_unix
798with_pamtest
799with_su
800with_system_libpam
801enable_developer_warnings
802enable_debugging_symbols
803enable_werror
804'
805      ac_precious_vars='build_alias
806host_alias
807target_alias
808CC
809CFLAGS
810LDFLAGS
811LIBS
812CPPFLAGS
813CPP
814LT_SYS_LIBRARY_PATH
815PKG_CONFIG
816PKG_CONFIG_PATH
817PKG_CONFIG_LIBDIR
818CRYB_TEST_CFLAGS
819CRYB_TEST_LIBS'
820
821
822# Initialize some variables set by options.
823ac_init_help=
824ac_init_version=false
825ac_unrecognized_opts=
826ac_unrecognized_sep=
827# The variables have the same names as the options, with
828# dashes changed to underlines.
829cache_file=/dev/null
830exec_prefix=NONE
831no_create=
832no_recursion=
833prefix=NONE
834program_prefix=NONE
835program_suffix=NONE
836program_transform_name=s,x,x,
837silent=
838site=
839srcdir=
840verbose=
841x_includes=NONE
842x_libraries=NONE
843
844# Installation directory options.
845# These are left unexpanded so users can "make install exec_prefix=/foo"
846# and all the variables that are supposed to be based on exec_prefix
847# by default will actually change.
848# Use braces instead of parens because sh, perl, etc. also accept them.
849# (The list follows the same order as the GNU Coding Standards.)
850bindir='${exec_prefix}/bin'
851sbindir='${exec_prefix}/sbin'
852libexecdir='${exec_prefix}/libexec'
853datarootdir='${prefix}/share'
854datadir='${datarootdir}'
855sysconfdir='${prefix}/etc'
856sharedstatedir='${prefix}/com'
857localstatedir='${prefix}/var'
858includedir='${prefix}/include'
859oldincludedir='/usr/include'
860docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861infodir='${datarootdir}/info'
862htmldir='${docdir}'
863dvidir='${docdir}'
864pdfdir='${docdir}'
865psdir='${docdir}'
866libdir='${exec_prefix}/lib'
867localedir='${datarootdir}/locale'
868mandir='${datarootdir}/man'
869
870ac_prev=
871ac_dashdash=
872for ac_option
873do
874  # If the previous option needs an argument, assign it.
875  if test -n "$ac_prev"; then
876    eval $ac_prev=\$ac_option
877    ac_prev=
878    continue
879  fi
880
881  case $ac_option in
882  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883  *=)   ac_optarg= ;;
884  *)    ac_optarg=yes ;;
885  esac
886
887  # Accept the important Cygnus configure options, so we can diagnose typos.
888
889  case $ac_dashdash$ac_option in
890  --)
891    ac_dashdash=yes ;;
892
893  -bindir | --bindir | --bindi | --bind | --bin | --bi)
894    ac_prev=bindir ;;
895  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896    bindir=$ac_optarg ;;
897
898  -build | --build | --buil | --bui | --bu)
899    ac_prev=build_alias ;;
900  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901    build_alias=$ac_optarg ;;
902
903  -cache-file | --cache-file | --cache-fil | --cache-fi \
904  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905    ac_prev=cache_file ;;
906  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908    cache_file=$ac_optarg ;;
909
910  --config-cache | -C)
911    cache_file=config.cache ;;
912
913  -datadir | --datadir | --datadi | --datad)
914    ac_prev=datadir ;;
915  -datadir=* | --datadir=* | --datadi=* | --datad=*)
916    datadir=$ac_optarg ;;
917
918  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919  | --dataroo | --dataro | --datar)
920    ac_prev=datarootdir ;;
921  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923    datarootdir=$ac_optarg ;;
924
925  -disable-* | --disable-*)
926    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927    # Reject names that are not valid shell variable names.
928    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929      as_fn_error $? "invalid feature name: $ac_useropt"
930    ac_useropt_orig=$ac_useropt
931    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932    case $ac_user_opts in
933      *"
934"enable_$ac_useropt"
935"*) ;;
936      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937	 ac_unrecognized_sep=', ';;
938    esac
939    eval enable_$ac_useropt=no ;;
940
941  -docdir | --docdir | --docdi | --doc | --do)
942    ac_prev=docdir ;;
943  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944    docdir=$ac_optarg ;;
945
946  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947    ac_prev=dvidir ;;
948  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949    dvidir=$ac_optarg ;;
950
951  -enable-* | --enable-*)
952    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953    # Reject names that are not valid shell variable names.
954    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955      as_fn_error $? "invalid feature name: $ac_useropt"
956    ac_useropt_orig=$ac_useropt
957    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958    case $ac_user_opts in
959      *"
960"enable_$ac_useropt"
961"*) ;;
962      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963	 ac_unrecognized_sep=', ';;
964    esac
965    eval enable_$ac_useropt=\$ac_optarg ;;
966
967  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969  | --exec | --exe | --ex)
970    ac_prev=exec_prefix ;;
971  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973  | --exec=* | --exe=* | --ex=*)
974    exec_prefix=$ac_optarg ;;
975
976  -gas | --gas | --ga | --g)
977    # Obsolete; use --with-gas.
978    with_gas=yes ;;
979
980  -help | --help | --hel | --he | -h)
981    ac_init_help=long ;;
982  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983    ac_init_help=recursive ;;
984  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985    ac_init_help=short ;;
986
987  -host | --host | --hos | --ho)
988    ac_prev=host_alias ;;
989  -host=* | --host=* | --hos=* | --ho=*)
990    host_alias=$ac_optarg ;;
991
992  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
993    ac_prev=htmldir ;;
994  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
995  | --ht=*)
996    htmldir=$ac_optarg ;;
997
998  -includedir | --includedir | --includedi | --included | --include \
999  | --includ | --inclu | --incl | --inc)
1000    ac_prev=includedir ;;
1001  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002  | --includ=* | --inclu=* | --incl=* | --inc=*)
1003    includedir=$ac_optarg ;;
1004
1005  -infodir | --infodir | --infodi | --infod | --info | --inf)
1006    ac_prev=infodir ;;
1007  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008    infodir=$ac_optarg ;;
1009
1010  -libdir | --libdir | --libdi | --libd)
1011    ac_prev=libdir ;;
1012  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013    libdir=$ac_optarg ;;
1014
1015  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016  | --libexe | --libex | --libe)
1017    ac_prev=libexecdir ;;
1018  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019  | --libexe=* | --libex=* | --libe=*)
1020    libexecdir=$ac_optarg ;;
1021
1022  -localedir | --localedir | --localedi | --localed | --locale)
1023    ac_prev=localedir ;;
1024  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025    localedir=$ac_optarg ;;
1026
1027  -localstatedir | --localstatedir | --localstatedi | --localstated \
1028  | --localstate | --localstat | --localsta | --localst | --locals)
1029    ac_prev=localstatedir ;;
1030  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032    localstatedir=$ac_optarg ;;
1033
1034  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1035    ac_prev=mandir ;;
1036  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037    mandir=$ac_optarg ;;
1038
1039  -nfp | --nfp | --nf)
1040    # Obsolete; use --without-fp.
1041    with_fp=no ;;
1042
1043  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044  | --no-cr | --no-c | -n)
1045    no_create=yes ;;
1046
1047  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049    no_recursion=yes ;;
1050
1051  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053  | --oldin | --oldi | --old | --ol | --o)
1054    ac_prev=oldincludedir ;;
1055  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058    oldincludedir=$ac_optarg ;;
1059
1060  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1061    ac_prev=prefix ;;
1062  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063    prefix=$ac_optarg ;;
1064
1065  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066  | --program-pre | --program-pr | --program-p)
1067    ac_prev=program_prefix ;;
1068  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070    program_prefix=$ac_optarg ;;
1071
1072  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073  | --program-suf | --program-su | --program-s)
1074    ac_prev=program_suffix ;;
1075  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077    program_suffix=$ac_optarg ;;
1078
1079  -program-transform-name | --program-transform-name \
1080  | --program-transform-nam | --program-transform-na \
1081  | --program-transform-n | --program-transform- \
1082  | --program-transform | --program-transfor \
1083  | --program-transfo | --program-transf \
1084  | --program-trans | --program-tran \
1085  | --progr-tra | --program-tr | --program-t)
1086    ac_prev=program_transform_name ;;
1087  -program-transform-name=* | --program-transform-name=* \
1088  | --program-transform-nam=* | --program-transform-na=* \
1089  | --program-transform-n=* | --program-transform-=* \
1090  | --program-transform=* | --program-transfor=* \
1091  | --program-transfo=* | --program-transf=* \
1092  | --program-trans=* | --program-tran=* \
1093  | --progr-tra=* | --program-tr=* | --program-t=*)
1094    program_transform_name=$ac_optarg ;;
1095
1096  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1097    ac_prev=pdfdir ;;
1098  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099    pdfdir=$ac_optarg ;;
1100
1101  -psdir | --psdir | --psdi | --psd | --ps)
1102    ac_prev=psdir ;;
1103  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104    psdir=$ac_optarg ;;
1105
1106  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107  | -silent | --silent | --silen | --sile | --sil)
1108    silent=yes ;;
1109
1110  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111    ac_prev=sbindir ;;
1112  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113  | --sbi=* | --sb=*)
1114    sbindir=$ac_optarg ;;
1115
1116  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118  | --sharedst | --shareds | --shared | --share | --shar \
1119  | --sha | --sh)
1120    ac_prev=sharedstatedir ;;
1121  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124  | --sha=* | --sh=*)
1125    sharedstatedir=$ac_optarg ;;
1126
1127  -site | --site | --sit)
1128    ac_prev=site ;;
1129  -site=* | --site=* | --sit=*)
1130    site=$ac_optarg ;;
1131
1132  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133    ac_prev=srcdir ;;
1134  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135    srcdir=$ac_optarg ;;
1136
1137  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138  | --syscon | --sysco | --sysc | --sys | --sy)
1139    ac_prev=sysconfdir ;;
1140  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142    sysconfdir=$ac_optarg ;;
1143
1144  -target | --target | --targe | --targ | --tar | --ta | --t)
1145    ac_prev=target_alias ;;
1146  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147    target_alias=$ac_optarg ;;
1148
1149  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150    verbose=yes ;;
1151
1152  -version | --version | --versio | --versi | --vers | -V)
1153    ac_init_version=: ;;
1154
1155  -with-* | --with-*)
1156    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157    # Reject names that are not valid shell variable names.
1158    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159      as_fn_error $? "invalid package name: $ac_useropt"
1160    ac_useropt_orig=$ac_useropt
1161    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162    case $ac_user_opts in
1163      *"
1164"with_$ac_useropt"
1165"*) ;;
1166      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167	 ac_unrecognized_sep=', ';;
1168    esac
1169    eval with_$ac_useropt=\$ac_optarg ;;
1170
1171  -without-* | --without-*)
1172    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173    # Reject names that are not valid shell variable names.
1174    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175      as_fn_error $? "invalid package name: $ac_useropt"
1176    ac_useropt_orig=$ac_useropt
1177    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178    case $ac_user_opts in
1179      *"
1180"with_$ac_useropt"
1181"*) ;;
1182      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183	 ac_unrecognized_sep=', ';;
1184    esac
1185    eval with_$ac_useropt=no ;;
1186
1187  --x)
1188    # Obsolete; use --with-x.
1189    with_x=yes ;;
1190
1191  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192  | --x-incl | --x-inc | --x-in | --x-i)
1193    ac_prev=x_includes ;;
1194  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196    x_includes=$ac_optarg ;;
1197
1198  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200    ac_prev=x_libraries ;;
1201  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203    x_libraries=$ac_optarg ;;
1204
1205  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1206Try \`$0 --help' for more information"
1207    ;;
1208
1209  *=*)
1210    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211    # Reject names that are not valid shell variable names.
1212    case $ac_envvar in #(
1213      '' | [0-9]* | *[!_$as_cr_alnum]* )
1214      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1215    esac
1216    eval $ac_envvar=\$ac_optarg
1217    export $ac_envvar ;;
1218
1219  *)
1220    # FIXME: should be removed in autoconf 3.0.
1221    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1225    ;;
1226
1227  esac
1228done
1229
1230if test -n "$ac_prev"; then
1231  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232  as_fn_error $? "missing argument to $ac_option"
1233fi
1234
1235if test -n "$ac_unrecognized_opts"; then
1236  case $enable_option_checking in
1237    no) ;;
1238    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1239    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240  esac
1241fi
1242
1243# Check all directory arguments for consistency.
1244for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245		datadir sysconfdir sharedstatedir localstatedir includedir \
1246		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247		libdir localedir mandir
1248do
1249  eval ac_val=\$$ac_var
1250  # Remove trailing slashes.
1251  case $ac_val in
1252    */ )
1253      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254      eval $ac_var=\$ac_val;;
1255  esac
1256  # Be sure to have absolute directory names.
1257  case $ac_val in
1258    [\\/$]* | ?:[\\/]* )  continue;;
1259    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1260  esac
1261  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1262done
1263
1264# There might be people who depend on the old broken behavior: `$host'
1265# used to hold the argument of --host etc.
1266# FIXME: To remove some day.
1267build=$build_alias
1268host=$host_alias
1269target=$target_alias
1270
1271# FIXME: To remove some day.
1272if test "x$host_alias" != x; then
1273  if test "x$build_alias" = x; then
1274    cross_compiling=maybe
1275  elif test "x$build_alias" != "x$host_alias"; then
1276    cross_compiling=yes
1277  fi
1278fi
1279
1280ac_tool_prefix=
1281test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282
1283test "$silent" = yes && exec 6>/dev/null
1284
1285
1286ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287ac_ls_di=`ls -di .` &&
1288ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289  as_fn_error $? "working directory cannot be determined"
1290test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291  as_fn_error $? "pwd does not report name of working directory"
1292
1293
1294# Find the source files, if location was not specified.
1295if test -z "$srcdir"; then
1296  ac_srcdir_defaulted=yes
1297  # Try the directory containing this script, then the parent directory.
1298  ac_confdir=`$as_dirname -- "$as_myself" ||
1299$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300	 X"$as_myself" : 'X\(//\)[^/]' \| \
1301	 X"$as_myself" : 'X\(//\)$' \| \
1302	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303$as_echo X"$as_myself" |
1304    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305	    s//\1/
1306	    q
1307	  }
1308	  /^X\(\/\/\)[^/].*/{
1309	    s//\1/
1310	    q
1311	  }
1312	  /^X\(\/\/\)$/{
1313	    s//\1/
1314	    q
1315	  }
1316	  /^X\(\/\).*/{
1317	    s//\1/
1318	    q
1319	  }
1320	  s/.*/./; q'`
1321  srcdir=$ac_confdir
1322  if test ! -r "$srcdir/$ac_unique_file"; then
1323    srcdir=..
1324  fi
1325else
1326  ac_srcdir_defaulted=no
1327fi
1328if test ! -r "$srcdir/$ac_unique_file"; then
1329  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1331fi
1332ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333ac_abs_confdir=`(
1334	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335	pwd)`
1336# When building in place, set srcdir=.
1337if test "$ac_abs_confdir" = "$ac_pwd"; then
1338  srcdir=.
1339fi
1340# Remove unnecessary trailing slashes from srcdir.
1341# Double slashes in file names in object file debugging info
1342# mess up M-x gdb in Emacs.
1343case $srcdir in
1344*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345esac
1346for ac_var in $ac_precious_vars; do
1347  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348  eval ac_env_${ac_var}_value=\$${ac_var}
1349  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351done
1352
1353#
1354# Report the --help message.
1355#
1356if test "$ac_init_help" = "long"; then
1357  # Omit some internal or obsolete options to make the list less imposing.
1358  # This message is too long to be a string in the A/UX 3.1 sh.
1359  cat <<_ACEOF
1360\`configure' configures OpenPAM 20190224 to adapt to many kinds of systems.
1361
1362Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365VAR=VALUE.  See below for descriptions of some of the useful variables.
1366
1367Defaults for the options are specified in brackets.
1368
1369Configuration:
1370  -h, --help              display this help and exit
1371      --help=short        display options specific to this package
1372      --help=recursive    display the short help of all the included packages
1373  -V, --version           display version information and exit
1374  -q, --quiet, --silent   do not print \`checking ...' messages
1375      --cache-file=FILE   cache test results in FILE [disabled]
1376  -C, --config-cache      alias for \`--cache-file=config.cache'
1377  -n, --no-create         do not create output files
1378      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1379
1380Installation directories:
1381  --prefix=PREFIX         install architecture-independent files in PREFIX
1382                          [$ac_default_prefix]
1383  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1384                          [PREFIX]
1385
1386By default, \`make install' will install all the files in
1387\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1388an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389for instance \`--prefix=\$HOME'.
1390
1391For better control, use the options below.
1392
1393Fine tuning of the installation directories:
1394  --bindir=DIR            user executables [EPREFIX/bin]
1395  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1396  --libexecdir=DIR        program executables [EPREFIX/libexec]
1397  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1398  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1399  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1400  --libdir=DIR            object code libraries [EPREFIX/lib]
1401  --includedir=DIR        C header files [PREFIX/include]
1402  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1403  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1404  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1405  --infodir=DIR           info documentation [DATAROOTDIR/info]
1406  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1407  --mandir=DIR            man documentation [DATAROOTDIR/man]
1408  --docdir=DIR            documentation root [DATAROOTDIR/doc/openpam]
1409  --htmldir=DIR           html documentation [DOCDIR]
1410  --dvidir=DIR            dvi documentation [DOCDIR]
1411  --pdfdir=DIR            pdf documentation [DOCDIR]
1412  --psdir=DIR             ps documentation [DOCDIR]
1413_ACEOF
1414
1415  cat <<\_ACEOF
1416
1417Program names:
1418  --program-prefix=PREFIX            prepend PREFIX to installed program names
1419  --program-suffix=SUFFIX            append SUFFIX to installed program names
1420  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1421
1422System types:
1423  --build=BUILD     configure for building on BUILD [guessed]
1424  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1425_ACEOF
1426fi
1427
1428if test -n "$ac_init_help"; then
1429  case $ac_init_help in
1430     short | recursive ) echo "Configuration of OpenPAM 20190224:";;
1431   esac
1432  cat <<\_ACEOF
1433
1434Optional Features:
1435  --disable-option-checking  ignore unrecognized --enable/--with options
1436  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1437  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1438  --enable-silent-rules   less verbose build output (undo: "make V=1")
1439  --disable-silent-rules  verbose build output (undo: "make V=0")
1440  --enable-dependency-tracking
1441                          do not reject slow dependency extractors
1442  --disable-dependency-tracking
1443                          speeds up one-time build
1444  --enable-static[=PKGS]  build static libraries [default=no]
1445  --enable-shared[=PKGS]  build shared libraries [default=yes]
1446  --enable-fast-install[=PKGS]
1447                          optimize for fast installation [default=yes]
1448  --disable-libtool-lock  avoid locking (might break parallel builds)
1449  --enable-debug          turn debugging macros on
1450  --disable-unversioned-modules
1451                          support loading of unversioned modules
1452  --enable-developer-warnings
1453                          enable strict warnings (default is NO)
1454  --enable-debugging-symbols
1455                          enable debugging symbols (default is NO)
1456  --enable-werror         use -Werror (default is NO)
1457
1458Optional Packages:
1459  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1460  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1461  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1462                          both]
1463  --with-aix-soname=aix|svr4|both
1464                          shared library versioning (aka "SONAME") variant to
1465                          provide on AIX, [default=aix].
1466  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1467  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1468                          compiler's sysroot if not specified).
1469  --with-pkgconfigdir     installation directory for .pc files
1470                          [LIBDIR/pkgconfig]
1471  --with-modules-dir=DIR  OpenPAM modules directory
1472  --without-doc           do not build documentation
1473  --with-pam-unix         build sample pam_unix(8) module
1474  --with-pamtest          build test application
1475  --with-su               build sample su(1) implementation
1476  --with-system-libpam    use system libpam
1477
1478Some influential environment variables:
1479  CC          C compiler command
1480  CFLAGS      C compiler flags
1481  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1482              nonstandard directory <lib dir>
1483  LIBS        libraries to pass to the linker, e.g. -l<library>
1484  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1485              you have headers in a nonstandard directory <include dir>
1486  CPP         C preprocessor
1487  LT_SYS_LIBRARY_PATH
1488              User-defined run-time library search path.
1489  PKG_CONFIG  path to pkg-config binary
1490  PKG_CONFIG_PATH
1491              list of directories to prepend to default search path
1492  PKG_CONFIG_LIBDIR
1493              list of directories to search instead of default search path
1494  CRYB_TEST_CFLAGS
1495              C compiler flags for cryb-test
1496  CRYB_TEST_LIBS
1497              linker flags for cryb-test
1498
1499Use these variables to override the choices made by `configure' or to help
1500it to find libraries and programs with nonstandard names/locations.
1501
1502Report bugs to <des@des.no>.
1503OpenPAM home page: <http://www.openpam.org/>.
1504_ACEOF
1505ac_status=$?
1506fi
1507
1508if test "$ac_init_help" = "recursive"; then
1509  # If there are subdirs, report their specific --help.
1510  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511    test -d "$ac_dir" ||
1512      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1513      continue
1514    ac_builddir=.
1515
1516case "$ac_dir" in
1517.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518*)
1519  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1520  # A ".." for each directory in $ac_dir_suffix.
1521  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1522  case $ac_top_builddir_sub in
1523  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525  esac ;;
1526esac
1527ac_abs_top_builddir=$ac_pwd
1528ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529# for backward compatibility:
1530ac_top_builddir=$ac_top_build_prefix
1531
1532case $srcdir in
1533  .)  # We are building in place.
1534    ac_srcdir=.
1535    ac_top_srcdir=$ac_top_builddir_sub
1536    ac_abs_top_srcdir=$ac_pwd ;;
1537  [\\/]* | ?:[\\/]* )  # Absolute name.
1538    ac_srcdir=$srcdir$ac_dir_suffix;
1539    ac_top_srcdir=$srcdir
1540    ac_abs_top_srcdir=$srcdir ;;
1541  *) # Relative name.
1542    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543    ac_top_srcdir=$ac_top_build_prefix$srcdir
1544    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1545esac
1546ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1547
1548    cd "$ac_dir" || { ac_status=$?; continue; }
1549    # Check for guested configure.
1550    if test -f "$ac_srcdir/configure.gnu"; then
1551      echo &&
1552      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1553    elif test -f "$ac_srcdir/configure"; then
1554      echo &&
1555      $SHELL "$ac_srcdir/configure" --help=recursive
1556    else
1557      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1558    fi || ac_status=$?
1559    cd "$ac_pwd" || { ac_status=$?; break; }
1560  done
1561fi
1562
1563test -n "$ac_init_help" && exit $ac_status
1564if $ac_init_version; then
1565  cat <<\_ACEOF
1566OpenPAM configure 20190224
1567generated by GNU Autoconf 2.69
1568
1569Copyright (C) 2012 Free Software Foundation, Inc.
1570This configure script is free software; the Free Software Foundation
1571gives unlimited permission to copy, distribute and modify it.
1572_ACEOF
1573  exit
1574fi
1575
1576## ------------------------ ##
1577## Autoconf initialization. ##
1578## ------------------------ ##
1579
1580# ac_fn_c_try_compile LINENO
1581# --------------------------
1582# Try to compile conftest.$ac_ext, and return whether this succeeded.
1583ac_fn_c_try_compile ()
1584{
1585  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586  rm -f conftest.$ac_objext
1587  if { { ac_try="$ac_compile"
1588case "(($ac_try" in
1589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590  *) ac_try_echo=$ac_try;;
1591esac
1592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593$as_echo "$ac_try_echo"; } >&5
1594  (eval "$ac_compile") 2>conftest.err
1595  ac_status=$?
1596  if test -s conftest.err; then
1597    grep -v '^ *+' conftest.err >conftest.er1
1598    cat conftest.er1 >&5
1599    mv -f conftest.er1 conftest.err
1600  fi
1601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602  test $ac_status = 0; } && {
1603	 test -z "$ac_c_werror_flag" ||
1604	 test ! -s conftest.err
1605       } && test -s conftest.$ac_objext; then :
1606  ac_retval=0
1607else
1608  $as_echo "$as_me: failed program was:" >&5
1609sed 's/^/| /' conftest.$ac_ext >&5
1610
1611	ac_retval=1
1612fi
1613  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614  as_fn_set_status $ac_retval
1615
1616} # ac_fn_c_try_compile
1617
1618# ac_fn_c_try_cpp LINENO
1619# ----------------------
1620# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1621ac_fn_c_try_cpp ()
1622{
1623  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624  if { { ac_try="$ac_cpp conftest.$ac_ext"
1625case "(($ac_try" in
1626  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627  *) ac_try_echo=$ac_try;;
1628esac
1629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630$as_echo "$ac_try_echo"; } >&5
1631  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1632  ac_status=$?
1633  if test -s conftest.err; then
1634    grep -v '^ *+' conftest.err >conftest.er1
1635    cat conftest.er1 >&5
1636    mv -f conftest.er1 conftest.err
1637  fi
1638  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639  test $ac_status = 0; } > conftest.i && {
1640	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1641	 test ! -s conftest.err
1642       }; then :
1643  ac_retval=0
1644else
1645  $as_echo "$as_me: failed program was:" >&5
1646sed 's/^/| /' conftest.$ac_ext >&5
1647
1648    ac_retval=1
1649fi
1650  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651  as_fn_set_status $ac_retval
1652
1653} # ac_fn_c_try_cpp
1654
1655# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1656# -------------------------------------------------------
1657# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1658# the include files in INCLUDES and setting the cache variable VAR
1659# accordingly.
1660ac_fn_c_check_header_mongrel ()
1661{
1662  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663  if eval \${$3+:} false; then :
1664  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665$as_echo_n "checking for $2... " >&6; }
1666if eval \${$3+:} false; then :
1667  $as_echo_n "(cached) " >&6
1668fi
1669eval ac_res=\$$3
1670	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1671$as_echo "$ac_res" >&6; }
1672else
1673  # Is the header compilable?
1674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1675$as_echo_n "checking $2 usability... " >&6; }
1676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677/* end confdefs.h.  */
1678$4
1679#include <$2>
1680_ACEOF
1681if ac_fn_c_try_compile "$LINENO"; then :
1682  ac_header_compiler=yes
1683else
1684  ac_header_compiler=no
1685fi
1686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1688$as_echo "$ac_header_compiler" >&6; }
1689
1690# Is the header present?
1691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1692$as_echo_n "checking $2 presence... " >&6; }
1693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1694/* end confdefs.h.  */
1695#include <$2>
1696_ACEOF
1697if ac_fn_c_try_cpp "$LINENO"; then :
1698  ac_header_preproc=yes
1699else
1700  ac_header_preproc=no
1701fi
1702rm -f conftest.err conftest.i conftest.$ac_ext
1703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1704$as_echo "$ac_header_preproc" >&6; }
1705
1706# So?  What about this header?
1707case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1708  yes:no: )
1709    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1710$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1711    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1712$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1713    ;;
1714  no:yes:* )
1715    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1716$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1717    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1718$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1719    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1720$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1721    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1722$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1723    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1724$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1725( $as_echo "## ------------------------- ##
1726## Report this to des@des.no ##
1727## ------------------------- ##"
1728     ) | sed "s/^/$as_me: WARNING:     /" >&2
1729    ;;
1730esac
1731  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732$as_echo_n "checking for $2... " >&6; }
1733if eval \${$3+:} false; then :
1734  $as_echo_n "(cached) " >&6
1735else
1736  eval "$3=\$ac_header_compiler"
1737fi
1738eval ac_res=\$$3
1739	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740$as_echo "$ac_res" >&6; }
1741fi
1742  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743
1744} # ac_fn_c_check_header_mongrel
1745
1746# ac_fn_c_try_run LINENO
1747# ----------------------
1748# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1749# that executables *can* be run.
1750ac_fn_c_try_run ()
1751{
1752  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753  if { { ac_try="$ac_link"
1754case "(($ac_try" in
1755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756  *) ac_try_echo=$ac_try;;
1757esac
1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759$as_echo "$ac_try_echo"; } >&5
1760  (eval "$ac_link") 2>&5
1761  ac_status=$?
1762  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1764  { { case "(($ac_try" in
1765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766  *) ac_try_echo=$ac_try;;
1767esac
1768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769$as_echo "$ac_try_echo"; } >&5
1770  (eval "$ac_try") 2>&5
1771  ac_status=$?
1772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773  test $ac_status = 0; }; }; then :
1774  ac_retval=0
1775else
1776  $as_echo "$as_me: program exited with status $ac_status" >&5
1777       $as_echo "$as_me: failed program was:" >&5
1778sed 's/^/| /' conftest.$ac_ext >&5
1779
1780       ac_retval=$ac_status
1781fi
1782  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1783  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784  as_fn_set_status $ac_retval
1785
1786} # ac_fn_c_try_run
1787
1788# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1789# -------------------------------------------------------
1790# Tests whether HEADER exists and can be compiled using the include files in
1791# INCLUDES, setting the cache variable VAR accordingly.
1792ac_fn_c_check_header_compile ()
1793{
1794  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796$as_echo_n "checking for $2... " >&6; }
1797if eval \${$3+:} false; then :
1798  $as_echo_n "(cached) " >&6
1799else
1800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801/* end confdefs.h.  */
1802$4
1803#include <$2>
1804_ACEOF
1805if ac_fn_c_try_compile "$LINENO"; then :
1806  eval "$3=yes"
1807else
1808  eval "$3=no"
1809fi
1810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811fi
1812eval ac_res=\$$3
1813	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814$as_echo "$ac_res" >&6; }
1815  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816
1817} # ac_fn_c_check_header_compile
1818
1819# ac_fn_c_try_link LINENO
1820# -----------------------
1821# Try to link conftest.$ac_ext, and return whether this succeeded.
1822ac_fn_c_try_link ()
1823{
1824  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825  rm -f conftest.$ac_objext conftest$ac_exeext
1826  if { { ac_try="$ac_link"
1827case "(($ac_try" in
1828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829  *) ac_try_echo=$ac_try;;
1830esac
1831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832$as_echo "$ac_try_echo"; } >&5
1833  (eval "$ac_link") 2>conftest.err
1834  ac_status=$?
1835  if test -s conftest.err; then
1836    grep -v '^ *+' conftest.err >conftest.er1
1837    cat conftest.er1 >&5
1838    mv -f conftest.er1 conftest.err
1839  fi
1840  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841  test $ac_status = 0; } && {
1842	 test -z "$ac_c_werror_flag" ||
1843	 test ! -s conftest.err
1844       } && test -s conftest$ac_exeext && {
1845	 test "$cross_compiling" = yes ||
1846	 test -x conftest$ac_exeext
1847       }; then :
1848  ac_retval=0
1849else
1850  $as_echo "$as_me: failed program was:" >&5
1851sed 's/^/| /' conftest.$ac_ext >&5
1852
1853	ac_retval=1
1854fi
1855  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1856  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1857  # interfere with the next link command; also delete a directory that is
1858  # left behind by Apple's compiler.  We do this before executing the actions.
1859  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1860  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861  as_fn_set_status $ac_retval
1862
1863} # ac_fn_c_try_link
1864
1865# ac_fn_c_check_func LINENO FUNC VAR
1866# ----------------------------------
1867# Tests whether FUNC exists, setting the cache variable VAR accordingly
1868ac_fn_c_check_func ()
1869{
1870  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872$as_echo_n "checking for $2... " >&6; }
1873if eval \${$3+:} false; then :
1874  $as_echo_n "(cached) " >&6
1875else
1876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877/* end confdefs.h.  */
1878/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1879   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1880#define $2 innocuous_$2
1881
1882/* System header to define __stub macros and hopefully few prototypes,
1883    which can conflict with char $2 (); below.
1884    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1885    <limits.h> exists even on freestanding compilers.  */
1886
1887#ifdef __STDC__
1888# include <limits.h>
1889#else
1890# include <assert.h>
1891#endif
1892
1893#undef $2
1894
1895/* Override any GCC internal prototype to avoid an error.
1896   Use char because int might match the return type of a GCC
1897   builtin and then its argument prototype would still apply.  */
1898#ifdef __cplusplus
1899extern "C"
1900#endif
1901char $2 ();
1902/* The GNU C library defines this for functions which it implements
1903    to always fail with ENOSYS.  Some functions are actually named
1904    something starting with __ and the normal name is an alias.  */
1905#if defined __stub_$2 || defined __stub___$2
1906choke me
1907#endif
1908
1909int
1910main ()
1911{
1912return $2 ();
1913  ;
1914  return 0;
1915}
1916_ACEOF
1917if ac_fn_c_try_link "$LINENO"; then :
1918  eval "$3=yes"
1919else
1920  eval "$3=no"
1921fi
1922rm -f core conftest.err conftest.$ac_objext \
1923    conftest$ac_exeext conftest.$ac_ext
1924fi
1925eval ac_res=\$$3
1926	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927$as_echo "$ac_res" >&6; }
1928  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929
1930} # ac_fn_c_check_func
1931cat >config.log <<_ACEOF
1932This file contains any messages produced by compilers while
1933running configure, to aid debugging if configure makes a mistake.
1934
1935It was created by OpenPAM $as_me 20190224, which was
1936generated by GNU Autoconf 2.69.  Invocation command line was
1937
1938  $ $0 $@
1939
1940_ACEOF
1941exec 5>>config.log
1942{
1943cat <<_ASUNAME
1944## --------- ##
1945## Platform. ##
1946## --------- ##
1947
1948hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1949uname -m = `(uname -m) 2>/dev/null || echo unknown`
1950uname -r = `(uname -r) 2>/dev/null || echo unknown`
1951uname -s = `(uname -s) 2>/dev/null || echo unknown`
1952uname -v = `(uname -v) 2>/dev/null || echo unknown`
1953
1954/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1955/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1956
1957/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1958/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1959/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1960/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1961/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1962/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1963/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1964
1965_ASUNAME
1966
1967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968for as_dir in $PATH
1969do
1970  IFS=$as_save_IFS
1971  test -z "$as_dir" && as_dir=.
1972    $as_echo "PATH: $as_dir"
1973  done
1974IFS=$as_save_IFS
1975
1976} >&5
1977
1978cat >&5 <<_ACEOF
1979
1980
1981## ----------- ##
1982## Core tests. ##
1983## ----------- ##
1984
1985_ACEOF
1986
1987
1988# Keep a trace of the command line.
1989# Strip out --no-create and --no-recursion so they do not pile up.
1990# Strip out --silent because we don't want to record it for future runs.
1991# Also quote any args containing shell meta-characters.
1992# Make two passes to allow for proper duplicate-argument suppression.
1993ac_configure_args=
1994ac_configure_args0=
1995ac_configure_args1=
1996ac_must_keep_next=false
1997for ac_pass in 1 2
1998do
1999  for ac_arg
2000  do
2001    case $ac_arg in
2002    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2003    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2004    | -silent | --silent | --silen | --sile | --sil)
2005      continue ;;
2006    *\'*)
2007      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2008    esac
2009    case $ac_pass in
2010    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2011    2)
2012      as_fn_append ac_configure_args1 " '$ac_arg'"
2013      if test $ac_must_keep_next = true; then
2014	ac_must_keep_next=false # Got value, back to normal.
2015      else
2016	case $ac_arg in
2017	  *=* | --config-cache | -C | -disable-* | --disable-* \
2018	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2019	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2020	  | -with-* | --with-* | -without-* | --without-* | --x)
2021	    case "$ac_configure_args0 " in
2022	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2023	    esac
2024	    ;;
2025	  -* ) ac_must_keep_next=true ;;
2026	esac
2027      fi
2028      as_fn_append ac_configure_args " '$ac_arg'"
2029      ;;
2030    esac
2031  done
2032done
2033{ ac_configure_args0=; unset ac_configure_args0;}
2034{ ac_configure_args1=; unset ac_configure_args1;}
2035
2036# When interrupted or exit'd, cleanup temporary files, and complete
2037# config.log.  We remove comments because anyway the quotes in there
2038# would cause problems or look ugly.
2039# WARNING: Use '\'' to represent an apostrophe within the trap.
2040# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2041trap 'exit_status=$?
2042  # Save into config.log some information that might help in debugging.
2043  {
2044    echo
2045
2046    $as_echo "## ---------------- ##
2047## Cache variables. ##
2048## ---------------- ##"
2049    echo
2050    # The following way of writing the cache mishandles newlines in values,
2051(
2052  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2053    eval ac_val=\$$ac_var
2054    case $ac_val in #(
2055    *${as_nl}*)
2056      case $ac_var in #(
2057      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2058$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2059      esac
2060      case $ac_var in #(
2061      _ | IFS | as_nl) ;; #(
2062      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2063      *) { eval $ac_var=; unset $ac_var;} ;;
2064      esac ;;
2065    esac
2066  done
2067  (set) 2>&1 |
2068    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2069    *${as_nl}ac_space=\ *)
2070      sed -n \
2071	"s/'\''/'\''\\\\'\'''\''/g;
2072	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2073      ;; #(
2074    *)
2075      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2076      ;;
2077    esac |
2078    sort
2079)
2080    echo
2081
2082    $as_echo "## ----------------- ##
2083## Output variables. ##
2084## ----------------- ##"
2085    echo
2086    for ac_var in $ac_subst_vars
2087    do
2088      eval ac_val=\$$ac_var
2089      case $ac_val in
2090      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2091      esac
2092      $as_echo "$ac_var='\''$ac_val'\''"
2093    done | sort
2094    echo
2095
2096    if test -n "$ac_subst_files"; then
2097      $as_echo "## ------------------- ##
2098## File substitutions. ##
2099## ------------------- ##"
2100      echo
2101      for ac_var in $ac_subst_files
2102      do
2103	eval ac_val=\$$ac_var
2104	case $ac_val in
2105	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2106	esac
2107	$as_echo "$ac_var='\''$ac_val'\''"
2108      done | sort
2109      echo
2110    fi
2111
2112    if test -s confdefs.h; then
2113      $as_echo "## ----------- ##
2114## confdefs.h. ##
2115## ----------- ##"
2116      echo
2117      cat confdefs.h
2118      echo
2119    fi
2120    test "$ac_signal" != 0 &&
2121      $as_echo "$as_me: caught signal $ac_signal"
2122    $as_echo "$as_me: exit $exit_status"
2123  } >&5
2124  rm -f core *.core core.conftest.* &&
2125    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2126    exit $exit_status
2127' 0
2128for ac_signal in 1 2 13 15; do
2129  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2130done
2131ac_signal=0
2132
2133# confdefs.h avoids OS command line length limits that DEFS can exceed.
2134rm -f -r conftest* confdefs.h
2135
2136$as_echo "/* confdefs.h */" > confdefs.h
2137
2138# Predefined preprocessor variables.
2139
2140cat >>confdefs.h <<_ACEOF
2141#define PACKAGE_NAME "$PACKAGE_NAME"
2142_ACEOF
2143
2144cat >>confdefs.h <<_ACEOF
2145#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2146_ACEOF
2147
2148cat >>confdefs.h <<_ACEOF
2149#define PACKAGE_VERSION "$PACKAGE_VERSION"
2150_ACEOF
2151
2152cat >>confdefs.h <<_ACEOF
2153#define PACKAGE_STRING "$PACKAGE_STRING"
2154_ACEOF
2155
2156cat >>confdefs.h <<_ACEOF
2157#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2158_ACEOF
2159
2160cat >>confdefs.h <<_ACEOF
2161#define PACKAGE_URL "$PACKAGE_URL"
2162_ACEOF
2163
2164
2165# Let the site file select an alternate cache file if it wants to.
2166# Prefer an explicitly selected file to automatically selected ones.
2167ac_site_file1=NONE
2168ac_site_file2=NONE
2169if test -n "$CONFIG_SITE"; then
2170  # We do not want a PATH search for config.site.
2171  case $CONFIG_SITE in #((
2172    -*)  ac_site_file1=./$CONFIG_SITE;;
2173    */*) ac_site_file1=$CONFIG_SITE;;
2174    *)   ac_site_file1=./$CONFIG_SITE;;
2175  esac
2176elif test "x$prefix" != xNONE; then
2177  ac_site_file1=$prefix/share/config.site
2178  ac_site_file2=$prefix/etc/config.site
2179else
2180  ac_site_file1=$ac_default_prefix/share/config.site
2181  ac_site_file2=$ac_default_prefix/etc/config.site
2182fi
2183for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2184do
2185  test "x$ac_site_file" = xNONE && continue
2186  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2187    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2188$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2189    sed 's/^/| /' "$ac_site_file" >&5
2190    . "$ac_site_file" \
2191      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2193as_fn_error $? "failed to load site script $ac_site_file
2194See \`config.log' for more details" "$LINENO" 5; }
2195  fi
2196done
2197
2198if test -r "$cache_file"; then
2199  # Some versions of bash will fail to source /dev/null (special files
2200  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2201  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2202    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2203$as_echo "$as_me: loading cache $cache_file" >&6;}
2204    case $cache_file in
2205      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2206      *)                      . "./$cache_file";;
2207    esac
2208  fi
2209else
2210  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2211$as_echo "$as_me: creating cache $cache_file" >&6;}
2212  >$cache_file
2213fi
2214
2215# Check that the precious variables saved in the cache have kept the same
2216# value.
2217ac_cache_corrupted=false
2218for ac_var in $ac_precious_vars; do
2219  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2220  eval ac_new_set=\$ac_env_${ac_var}_set
2221  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2222  eval ac_new_val=\$ac_env_${ac_var}_value
2223  case $ac_old_set,$ac_new_set in
2224    set,)
2225      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2226$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2227      ac_cache_corrupted=: ;;
2228    ,set)
2229      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2230$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2231      ac_cache_corrupted=: ;;
2232    ,);;
2233    *)
2234      if test "x$ac_old_val" != "x$ac_new_val"; then
2235	# differences in whitespace do not lead to failure.
2236	ac_old_val_w=`echo x $ac_old_val`
2237	ac_new_val_w=`echo x $ac_new_val`
2238	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2239	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2240$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2241	  ac_cache_corrupted=:
2242	else
2243	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2244$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2245	  eval $ac_var=\$ac_old_val
2246	fi
2247	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2248$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2249	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2250$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2251      fi;;
2252  esac
2253  # Pass precious variables to config.status.
2254  if test "$ac_new_set" = set; then
2255    case $ac_new_val in
2256    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2257    *) ac_arg=$ac_var=$ac_new_val ;;
2258    esac
2259    case " $ac_configure_args " in
2260      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2261      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2262    esac
2263  fi
2264done
2265if $ac_cache_corrupted; then
2266  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2268  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2269$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2270  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2271fi
2272## -------------------- ##
2273## Main body of script. ##
2274## -------------------- ##
2275
2276ac_ext=c
2277ac_cpp='$CPP $CPPFLAGS'
2278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2280ac_compiler_gnu=$ac_cv_c_compiler_gnu
2281
2282
2283
2284
2285am__api_version='1.16'
2286
2287ac_aux_dir=
2288for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2289  if test -f "$ac_dir/install-sh"; then
2290    ac_aux_dir=$ac_dir
2291    ac_install_sh="$ac_aux_dir/install-sh -c"
2292    break
2293  elif test -f "$ac_dir/install.sh"; then
2294    ac_aux_dir=$ac_dir
2295    ac_install_sh="$ac_aux_dir/install.sh -c"
2296    break
2297  elif test -f "$ac_dir/shtool"; then
2298    ac_aux_dir=$ac_dir
2299    ac_install_sh="$ac_aux_dir/shtool install -c"
2300    break
2301  fi
2302done
2303if test -z "$ac_aux_dir"; then
2304  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2305fi
2306
2307# These three variables are undocumented and unsupported,
2308# and are intended to be withdrawn in a future Autoconf release.
2309# They can cause serious problems if a builder's source tree is in a directory
2310# whose full name contains unusual characters.
2311ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2312ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2313ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2314
2315
2316# Find a good install program.  We prefer a C program (faster),
2317# so one script is as good as another.  But avoid the broken or
2318# incompatible versions:
2319# SysV /etc/install, /usr/sbin/install
2320# SunOS /usr/etc/install
2321# IRIX /sbin/install
2322# AIX /bin/install
2323# AmigaOS /C/install, which installs bootblocks on floppy discs
2324# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2325# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2326# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2327# OS/2's system install, which has a completely different semantic
2328# ./install, which can be erroneously created by make from ./install.sh.
2329# Reject install programs that cannot install multiple files.
2330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2331$as_echo_n "checking for a BSD-compatible install... " >&6; }
2332if test -z "$INSTALL"; then
2333if ${ac_cv_path_install+:} false; then :
2334  $as_echo_n "(cached) " >&6
2335else
2336  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337for as_dir in $PATH
2338do
2339  IFS=$as_save_IFS
2340  test -z "$as_dir" && as_dir=.
2341    # Account for people who put trailing slashes in PATH elements.
2342case $as_dir/ in #((
2343  ./ | .// | /[cC]/* | \
2344  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2345  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2346  /usr/ucb/* ) ;;
2347  *)
2348    # OSF1 and SCO ODT 3.0 have their own names for install.
2349    # Don't use installbsd from OSF since it installs stuff as root
2350    # by default.
2351    for ac_prog in ginstall scoinst install; do
2352      for ac_exec_ext in '' $ac_executable_extensions; do
2353	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2354	  if test $ac_prog = install &&
2355	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2356	    # AIX install.  It has an incompatible calling convention.
2357	    :
2358	  elif test $ac_prog = install &&
2359	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2360	    # program-specific install script used by HP pwplus--don't use.
2361	    :
2362	  else
2363	    rm -rf conftest.one conftest.two conftest.dir
2364	    echo one > conftest.one
2365	    echo two > conftest.two
2366	    mkdir conftest.dir
2367	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2368	      test -s conftest.one && test -s conftest.two &&
2369	      test -s conftest.dir/conftest.one &&
2370	      test -s conftest.dir/conftest.two
2371	    then
2372	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2373	      break 3
2374	    fi
2375	  fi
2376	fi
2377      done
2378    done
2379    ;;
2380esac
2381
2382  done
2383IFS=$as_save_IFS
2384
2385rm -rf conftest.one conftest.two conftest.dir
2386
2387fi
2388  if test "${ac_cv_path_install+set}" = set; then
2389    INSTALL=$ac_cv_path_install
2390  else
2391    # As a last resort, use the slow shell script.  Don't cache a
2392    # value for INSTALL within a source directory, because that will
2393    # break other packages using the cache if that directory is
2394    # removed, or if the value is a relative name.
2395    INSTALL=$ac_install_sh
2396  fi
2397fi
2398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2399$as_echo "$INSTALL" >&6; }
2400
2401# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2402# It thinks the first close brace ends the variable substitution.
2403test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2404
2405test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2406
2407test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2408
2409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2410$as_echo_n "checking whether build environment is sane... " >&6; }
2411# Reject unsafe characters in $srcdir or the absolute working directory
2412# name.  Accept space and tab only in the latter.
2413am_lf='
2414'
2415case `pwd` in
2416  *[\\\"\#\$\&\'\`$am_lf]*)
2417    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2418esac
2419case $srcdir in
2420  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2421    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2422esac
2423
2424# Do 'set' in a subshell so we don't clobber the current shell's
2425# arguments.  Must try -L first in case configure is actually a
2426# symlink; some systems play weird games with the mod time of symlinks
2427# (eg FreeBSD returns the mod time of the symlink's containing
2428# directory).
2429if (
2430   am_has_slept=no
2431   for am_try in 1 2; do
2432     echo "timestamp, slept: $am_has_slept" > conftest.file
2433     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2434     if test "$*" = "X"; then
2435	# -L didn't work.
2436	set X `ls -t "$srcdir/configure" conftest.file`
2437     fi
2438     if test "$*" != "X $srcdir/configure conftest.file" \
2439	&& test "$*" != "X conftest.file $srcdir/configure"; then
2440
2441	# If neither matched, then we have a broken ls.  This can happen
2442	# if, for instance, CONFIG_SHELL is bash and it inherits a
2443	# broken ls alias from the environment.  This has actually
2444	# happened.  Such a system could not be considered "sane".
2445	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2446  alias in your environment" "$LINENO" 5
2447     fi
2448     if test "$2" = conftest.file || test $am_try -eq 2; then
2449       break
2450     fi
2451     # Just in case.
2452     sleep 1
2453     am_has_slept=yes
2454   done
2455   test "$2" = conftest.file
2456   )
2457then
2458   # Ok.
2459   :
2460else
2461   as_fn_error $? "newly created file is older than distributed files!
2462Check your system clock" "$LINENO" 5
2463fi
2464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2465$as_echo "yes" >&6; }
2466# If we didn't sleep, we still need to ensure time stamps of config.status and
2467# generated files are strictly newer.
2468am_sleep_pid=
2469if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2470  ( sleep 1 ) &
2471  am_sleep_pid=$!
2472fi
2473
2474rm -f conftest.file
2475
2476test "$program_prefix" != NONE &&
2477  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2478# Use a double $ so make ignores it.
2479test "$program_suffix" != NONE &&
2480  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2481# Double any \ or $.
2482# By default was `s,x,x', remove it if useless.
2483ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2484program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2485
2486# Expand $ac_aux_dir to an absolute path.
2487am_aux_dir=`cd "$ac_aux_dir" && pwd`
2488
2489if test x"${MISSING+set}" != xset; then
2490  case $am_aux_dir in
2491  *\ * | *\	*)
2492    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2493  *)
2494    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2495  esac
2496fi
2497# Use eval to expand $SHELL
2498if eval "$MISSING --is-lightweight"; then
2499  am_missing_run="$MISSING "
2500else
2501  am_missing_run=
2502  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2503$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2504fi
2505
2506if test x"${install_sh+set}" != xset; then
2507  case $am_aux_dir in
2508  *\ * | *\	*)
2509    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2510  *)
2511    install_sh="\${SHELL} $am_aux_dir/install-sh"
2512  esac
2513fi
2514
2515# Installed binaries are usually stripped using 'strip' when the user
2516# run "make install-strip".  However 'strip' might not be the right
2517# tool to use in cross-compilation environments, therefore Automake
2518# will honor the 'STRIP' environment variable to overrule this program.
2519if test "$cross_compiling" != no; then
2520  if test -n "$ac_tool_prefix"; then
2521  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2522set dummy ${ac_tool_prefix}strip; ac_word=$2
2523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2524$as_echo_n "checking for $ac_word... " >&6; }
2525if ${ac_cv_prog_STRIP+:} false; then :
2526  $as_echo_n "(cached) " >&6
2527else
2528  if test -n "$STRIP"; then
2529  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2530else
2531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532for as_dir in $PATH
2533do
2534  IFS=$as_save_IFS
2535  test -z "$as_dir" && as_dir=.
2536    for ac_exec_ext in '' $ac_executable_extensions; do
2537  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2538    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2539    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2540    break 2
2541  fi
2542done
2543  done
2544IFS=$as_save_IFS
2545
2546fi
2547fi
2548STRIP=$ac_cv_prog_STRIP
2549if test -n "$STRIP"; then
2550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2551$as_echo "$STRIP" >&6; }
2552else
2553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2554$as_echo "no" >&6; }
2555fi
2556
2557
2558fi
2559if test -z "$ac_cv_prog_STRIP"; then
2560  ac_ct_STRIP=$STRIP
2561  # Extract the first word of "strip", so it can be a program name with args.
2562set dummy strip; ac_word=$2
2563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2564$as_echo_n "checking for $ac_word... " >&6; }
2565if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2566  $as_echo_n "(cached) " >&6
2567else
2568  if test -n "$ac_ct_STRIP"; then
2569  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2570else
2571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572for as_dir in $PATH
2573do
2574  IFS=$as_save_IFS
2575  test -z "$as_dir" && as_dir=.
2576    for ac_exec_ext in '' $ac_executable_extensions; do
2577  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2578    ac_cv_prog_ac_ct_STRIP="strip"
2579    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2580    break 2
2581  fi
2582done
2583  done
2584IFS=$as_save_IFS
2585
2586fi
2587fi
2588ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2589if test -n "$ac_ct_STRIP"; then
2590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2591$as_echo "$ac_ct_STRIP" >&6; }
2592else
2593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2594$as_echo "no" >&6; }
2595fi
2596
2597  if test "x$ac_ct_STRIP" = x; then
2598    STRIP=":"
2599  else
2600    case $cross_compiling:$ac_tool_warned in
2601yes:)
2602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2604ac_tool_warned=yes ;;
2605esac
2606    STRIP=$ac_ct_STRIP
2607  fi
2608else
2609  STRIP="$ac_cv_prog_STRIP"
2610fi
2611
2612fi
2613INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2614
2615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2616$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2617if test -z "$MKDIR_P"; then
2618  if ${ac_cv_path_mkdir+:} false; then :
2619  $as_echo_n "(cached) " >&6
2620else
2621  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2623do
2624  IFS=$as_save_IFS
2625  test -z "$as_dir" && as_dir=.
2626    for ac_prog in mkdir gmkdir; do
2627	 for ac_exec_ext in '' $ac_executable_extensions; do
2628	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2629	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2630	     'mkdir (GNU coreutils) '* | \
2631	     'mkdir (coreutils) '* | \
2632	     'mkdir (fileutils) '4.1*)
2633	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2634	       break 3;;
2635	   esac
2636	 done
2637       done
2638  done
2639IFS=$as_save_IFS
2640
2641fi
2642
2643  test -d ./--version && rmdir ./--version
2644  if test "${ac_cv_path_mkdir+set}" = set; then
2645    MKDIR_P="$ac_cv_path_mkdir -p"
2646  else
2647    # As a last resort, use the slow shell script.  Don't cache a
2648    # value for MKDIR_P within a source directory, because that will
2649    # break other packages using the cache if that directory is
2650    # removed, or if the value is a relative name.
2651    MKDIR_P="$ac_install_sh -d"
2652  fi
2653fi
2654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2655$as_echo "$MKDIR_P" >&6; }
2656
2657for ac_prog in gawk mawk nawk awk
2658do
2659  # Extract the first word of "$ac_prog", so it can be a program name with args.
2660set dummy $ac_prog; ac_word=$2
2661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662$as_echo_n "checking for $ac_word... " >&6; }
2663if ${ac_cv_prog_AWK+:} false; then :
2664  $as_echo_n "(cached) " >&6
2665else
2666  if test -n "$AWK"; then
2667  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2668else
2669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670for as_dir in $PATH
2671do
2672  IFS=$as_save_IFS
2673  test -z "$as_dir" && as_dir=.
2674    for ac_exec_ext in '' $ac_executable_extensions; do
2675  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2676    ac_cv_prog_AWK="$ac_prog"
2677    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2678    break 2
2679  fi
2680done
2681  done
2682IFS=$as_save_IFS
2683
2684fi
2685fi
2686AWK=$ac_cv_prog_AWK
2687if test -n "$AWK"; then
2688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2689$as_echo "$AWK" >&6; }
2690else
2691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692$as_echo "no" >&6; }
2693fi
2694
2695
2696  test -n "$AWK" && break
2697done
2698
2699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2700$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2701set x ${MAKE-make}
2702ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2703if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2704  $as_echo_n "(cached) " >&6
2705else
2706  cat >conftest.make <<\_ACEOF
2707SHELL = /bin/sh
2708all:
2709	@echo '@@@%%%=$(MAKE)=@@@%%%'
2710_ACEOF
2711# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2712case `${MAKE-make} -f conftest.make 2>/dev/null` in
2713  *@@@%%%=?*=@@@%%%*)
2714    eval ac_cv_prog_make_${ac_make}_set=yes;;
2715  *)
2716    eval ac_cv_prog_make_${ac_make}_set=no;;
2717esac
2718rm -f conftest.make
2719fi
2720if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2722$as_echo "yes" >&6; }
2723  SET_MAKE=
2724else
2725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726$as_echo "no" >&6; }
2727  SET_MAKE="MAKE=${MAKE-make}"
2728fi
2729
2730rm -rf .tst 2>/dev/null
2731mkdir .tst 2>/dev/null
2732if test -d .tst; then
2733  am__leading_dot=.
2734else
2735  am__leading_dot=_
2736fi
2737rmdir .tst 2>/dev/null
2738
2739# Check whether --enable-silent-rules was given.
2740if test "${enable_silent_rules+set}" = set; then :
2741  enableval=$enable_silent_rules;
2742fi
2743
2744case $enable_silent_rules in # (((
2745  yes) AM_DEFAULT_VERBOSITY=0;;
2746   no) AM_DEFAULT_VERBOSITY=1;;
2747    *) AM_DEFAULT_VERBOSITY=1;;
2748esac
2749am_make=${MAKE-make}
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2751$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2752if ${am_cv_make_support_nested_variables+:} false; then :
2753  $as_echo_n "(cached) " >&6
2754else
2755  if $as_echo 'TRUE=$(BAR$(V))
2756BAR0=false
2757BAR1=true
2758V=1
2759am__doit:
2760	@$(TRUE)
2761.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2762  am_cv_make_support_nested_variables=yes
2763else
2764  am_cv_make_support_nested_variables=no
2765fi
2766fi
2767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2768$as_echo "$am_cv_make_support_nested_variables" >&6; }
2769if test $am_cv_make_support_nested_variables = yes; then
2770    AM_V='$(V)'
2771  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2772else
2773  AM_V=$AM_DEFAULT_VERBOSITY
2774  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2775fi
2776AM_BACKSLASH='\'
2777
2778if test "`cd $srcdir && pwd`" != "`pwd`"; then
2779  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2780  # is not polluted with repeated "-I."
2781  am__isrc=' -I$(srcdir)'
2782  # test to see if srcdir already configured
2783  if test -f $srcdir/config.status; then
2784    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2785  fi
2786fi
2787
2788# test whether we have cygpath
2789if test -z "$CYGPATH_W"; then
2790  if (cygpath --version) >/dev/null 2>/dev/null; then
2791    CYGPATH_W='cygpath -w'
2792  else
2793    CYGPATH_W=echo
2794  fi
2795fi
2796
2797
2798# Define the identity of the package.
2799 PACKAGE='openpam'
2800 VERSION='20190224'
2801
2802
2803cat >>confdefs.h <<_ACEOF
2804#define PACKAGE "$PACKAGE"
2805_ACEOF
2806
2807
2808cat >>confdefs.h <<_ACEOF
2809#define VERSION "$VERSION"
2810_ACEOF
2811
2812# Some tools Automake needs.
2813
2814ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2815
2816
2817AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2818
2819
2820AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2821
2822
2823AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2824
2825
2826MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2827
2828# For better backward compatibility.  To be removed once Automake 1.9.x
2829# dies out for good.  For more background, see:
2830# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2831# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2832mkdir_p='$(MKDIR_P)'
2833
2834# We need awk for the "check" target (and possibly the TAP driver).  The
2835# system "awk" is bad on some platforms.
2836# Always define AMTAR for backward compatibility.  Yes, it's still used
2837# in the wild :-(  We should find a proper way to deprecate it ...
2838AMTAR='$${TAR-tar}'
2839
2840
2841# We'll loop over all known methods to create a tar archive until one works.
2842_am_tools='gnutar  pax cpio none'
2843
2844am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2845
2846
2847
2848
2849
2850
2851# POSIX will say in a future version that running "rm -f" with no argument
2852# is OK; and we want to be able to make that assumption in our Makefile
2853# recipes.  So use an aggressive probe to check that the usage we want is
2854# actually supported "in the wild" to an acceptable degree.
2855# See automake bug#10828.
2856# To make any issue more visible, cause the running configure to be aborted
2857# by default if the 'rm' program in use doesn't match our expectations; the
2858# user can still override this though.
2859if rm -f && rm -fr && rm -rf; then : OK; else
2860  cat >&2 <<'END'
2861Oops!
2862
2863Your 'rm' program seems unable to run without file operands specified
2864on the command line, even when the '-f' option is present.  This is contrary
2865to the behaviour of most rm programs out there, and not conforming with
2866the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2867
2868Please tell bug-automake@gnu.org about your system, including the value
2869of your $PATH and any error possibly output before this message.  This
2870can help us improve future automake versions.
2871
2872END
2873  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2874    echo 'Configuration will proceed anyway, since you have set the' >&2
2875    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2876    echo >&2
2877  else
2878    cat >&2 <<'END'
2879Aborting the configuration process, to ensure you take notice of the issue.
2880
2881You can download and install GNU coreutils to get an 'rm' implementation
2882that behaves properly: <https://www.gnu.org/software/coreutils/>.
2883
2884If you want to complete the configuration process using your problematic
2885'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2886to "yes", and re-run configure.
2887
2888END
2889    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2890  fi
2891fi
2892
2893ac_config_headers="$ac_config_headers config.h"
2894
2895
2896# C compiler and features
2897ac_ext=c
2898ac_cpp='$CPP $CPPFLAGS'
2899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2901ac_compiler_gnu=$ac_cv_c_compiler_gnu
2902
2903ac_ext=c
2904ac_cpp='$CPP $CPPFLAGS'
2905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907ac_compiler_gnu=$ac_cv_c_compiler_gnu
2908if test -n "$ac_tool_prefix"; then
2909  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2910set dummy ${ac_tool_prefix}gcc; ac_word=$2
2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912$as_echo_n "checking for $ac_word... " >&6; }
2913if ${ac_cv_prog_CC+:} false; then :
2914  $as_echo_n "(cached) " >&6
2915else
2916  if test -n "$CC"; then
2917  ac_cv_prog_CC="$CC" # Let the user override the test.
2918else
2919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920for as_dir in $PATH
2921do
2922  IFS=$as_save_IFS
2923  test -z "$as_dir" && as_dir=.
2924    for ac_exec_ext in '' $ac_executable_extensions; do
2925  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2927    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928    break 2
2929  fi
2930done
2931  done
2932IFS=$as_save_IFS
2933
2934fi
2935fi
2936CC=$ac_cv_prog_CC
2937if test -n "$CC"; then
2938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2939$as_echo "$CC" >&6; }
2940else
2941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942$as_echo "no" >&6; }
2943fi
2944
2945
2946fi
2947if test -z "$ac_cv_prog_CC"; then
2948  ac_ct_CC=$CC
2949  # Extract the first word of "gcc", so it can be a program name with args.
2950set dummy gcc; ac_word=$2
2951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952$as_echo_n "checking for $ac_word... " >&6; }
2953if ${ac_cv_prog_ac_ct_CC+:} false; then :
2954  $as_echo_n "(cached) " >&6
2955else
2956  if test -n "$ac_ct_CC"; then
2957  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2958else
2959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960for as_dir in $PATH
2961do
2962  IFS=$as_save_IFS
2963  test -z "$as_dir" && as_dir=.
2964    for ac_exec_ext in '' $ac_executable_extensions; do
2965  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2966    ac_cv_prog_ac_ct_CC="gcc"
2967    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968    break 2
2969  fi
2970done
2971  done
2972IFS=$as_save_IFS
2973
2974fi
2975fi
2976ac_ct_CC=$ac_cv_prog_ac_ct_CC
2977if test -n "$ac_ct_CC"; then
2978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2979$as_echo "$ac_ct_CC" >&6; }
2980else
2981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982$as_echo "no" >&6; }
2983fi
2984
2985  if test "x$ac_ct_CC" = x; then
2986    CC=""
2987  else
2988    case $cross_compiling:$ac_tool_warned in
2989yes:)
2990{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2992ac_tool_warned=yes ;;
2993esac
2994    CC=$ac_ct_CC
2995  fi
2996else
2997  CC="$ac_cv_prog_CC"
2998fi
2999
3000if test -z "$CC"; then
3001          if test -n "$ac_tool_prefix"; then
3002    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3003set dummy ${ac_tool_prefix}cc; ac_word=$2
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005$as_echo_n "checking for $ac_word... " >&6; }
3006if ${ac_cv_prog_CC+:} false; then :
3007  $as_echo_n "(cached) " >&6
3008else
3009  if test -n "$CC"; then
3010  ac_cv_prog_CC="$CC" # Let the user override the test.
3011else
3012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013for as_dir in $PATH
3014do
3015  IFS=$as_save_IFS
3016  test -z "$as_dir" && as_dir=.
3017    for ac_exec_ext in '' $ac_executable_extensions; do
3018  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3019    ac_cv_prog_CC="${ac_tool_prefix}cc"
3020    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021    break 2
3022  fi
3023done
3024  done
3025IFS=$as_save_IFS
3026
3027fi
3028fi
3029CC=$ac_cv_prog_CC
3030if test -n "$CC"; then
3031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3032$as_echo "$CC" >&6; }
3033else
3034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035$as_echo "no" >&6; }
3036fi
3037
3038
3039  fi
3040fi
3041if test -z "$CC"; then
3042  # Extract the first word of "cc", so it can be a program name with args.
3043set dummy cc; ac_word=$2
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045$as_echo_n "checking for $ac_word... " >&6; }
3046if ${ac_cv_prog_CC+:} false; then :
3047  $as_echo_n "(cached) " >&6
3048else
3049  if test -n "$CC"; then
3050  ac_cv_prog_CC="$CC" # Let the user override the test.
3051else
3052  ac_prog_rejected=no
3053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054for as_dir in $PATH
3055do
3056  IFS=$as_save_IFS
3057  test -z "$as_dir" && as_dir=.
3058    for ac_exec_ext in '' $ac_executable_extensions; do
3059  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3060    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3061       ac_prog_rejected=yes
3062       continue
3063     fi
3064    ac_cv_prog_CC="cc"
3065    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066    break 2
3067  fi
3068done
3069  done
3070IFS=$as_save_IFS
3071
3072if test $ac_prog_rejected = yes; then
3073  # We found a bogon in the path, so make sure we never use it.
3074  set dummy $ac_cv_prog_CC
3075  shift
3076  if test $# != 0; then
3077    # We chose a different compiler from the bogus one.
3078    # However, it has the same basename, so the bogon will be chosen
3079    # first if we set CC to just the basename; use the full file name.
3080    shift
3081    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3082  fi
3083fi
3084fi
3085fi
3086CC=$ac_cv_prog_CC
3087if test -n "$CC"; then
3088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3089$as_echo "$CC" >&6; }
3090else
3091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092$as_echo "no" >&6; }
3093fi
3094
3095
3096fi
3097if test -z "$CC"; then
3098  if test -n "$ac_tool_prefix"; then
3099  for ac_prog in cl.exe
3100  do
3101    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3102set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104$as_echo_n "checking for $ac_word... " >&6; }
3105if ${ac_cv_prog_CC+:} false; then :
3106  $as_echo_n "(cached) " >&6
3107else
3108  if test -n "$CC"; then
3109  ac_cv_prog_CC="$CC" # Let the user override the test.
3110else
3111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112for as_dir in $PATH
3113do
3114  IFS=$as_save_IFS
3115  test -z "$as_dir" && as_dir=.
3116    for ac_exec_ext in '' $ac_executable_extensions; do
3117  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3118    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3119    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3120    break 2
3121  fi
3122done
3123  done
3124IFS=$as_save_IFS
3125
3126fi
3127fi
3128CC=$ac_cv_prog_CC
3129if test -n "$CC"; then
3130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3131$as_echo "$CC" >&6; }
3132else
3133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134$as_echo "no" >&6; }
3135fi
3136
3137
3138    test -n "$CC" && break
3139  done
3140fi
3141if test -z "$CC"; then
3142  ac_ct_CC=$CC
3143  for ac_prog in cl.exe
3144do
3145  # Extract the first word of "$ac_prog", so it can be a program name with args.
3146set dummy $ac_prog; ac_word=$2
3147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3148$as_echo_n "checking for $ac_word... " >&6; }
3149if ${ac_cv_prog_ac_ct_CC+:} false; then :
3150  $as_echo_n "(cached) " >&6
3151else
3152  if test -n "$ac_ct_CC"; then
3153  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3154else
3155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156for as_dir in $PATH
3157do
3158  IFS=$as_save_IFS
3159  test -z "$as_dir" && as_dir=.
3160    for ac_exec_ext in '' $ac_executable_extensions; do
3161  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3162    ac_cv_prog_ac_ct_CC="$ac_prog"
3163    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3164    break 2
3165  fi
3166done
3167  done
3168IFS=$as_save_IFS
3169
3170fi
3171fi
3172ac_ct_CC=$ac_cv_prog_ac_ct_CC
3173if test -n "$ac_ct_CC"; then
3174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3175$as_echo "$ac_ct_CC" >&6; }
3176else
3177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178$as_echo "no" >&6; }
3179fi
3180
3181
3182  test -n "$ac_ct_CC" && break
3183done
3184
3185  if test "x$ac_ct_CC" = x; then
3186    CC=""
3187  else
3188    case $cross_compiling:$ac_tool_warned in
3189yes:)
3190{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3191$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3192ac_tool_warned=yes ;;
3193esac
3194    CC=$ac_ct_CC
3195  fi
3196fi
3197
3198fi
3199
3200
3201test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203as_fn_error $? "no acceptable C compiler found in \$PATH
3204See \`config.log' for more details" "$LINENO" 5; }
3205
3206# Provide some information about the compiler.
3207$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3208set X $ac_compile
3209ac_compiler=$2
3210for ac_option in --version -v -V -qversion; do
3211  { { ac_try="$ac_compiler $ac_option >&5"
3212case "(($ac_try" in
3213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214  *) ac_try_echo=$ac_try;;
3215esac
3216eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3217$as_echo "$ac_try_echo"; } >&5
3218  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3219  ac_status=$?
3220  if test -s conftest.err; then
3221    sed '10a\
3222... rest of stderr output deleted ...
3223         10q' conftest.err >conftest.er1
3224    cat conftest.er1 >&5
3225  fi
3226  rm -f conftest.er1 conftest.err
3227  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228  test $ac_status = 0; }
3229done
3230
3231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232/* end confdefs.h.  */
3233
3234int
3235main ()
3236{
3237
3238  ;
3239  return 0;
3240}
3241_ACEOF
3242ac_clean_files_save=$ac_clean_files
3243ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3244# Try to create an executable without -o first, disregard a.out.
3245# It will help us diagnose broken compilers, and finding out an intuition
3246# of exeext.
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3248$as_echo_n "checking whether the C compiler works... " >&6; }
3249ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3250
3251# The possible output files:
3252ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3253
3254ac_rmfiles=
3255for ac_file in $ac_files
3256do
3257  case $ac_file in
3258    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3259    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3260  esac
3261done
3262rm -f $ac_rmfiles
3263
3264if { { ac_try="$ac_link_default"
3265case "(($ac_try" in
3266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267  *) ac_try_echo=$ac_try;;
3268esac
3269eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270$as_echo "$ac_try_echo"; } >&5
3271  (eval "$ac_link_default") 2>&5
3272  ac_status=$?
3273  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274  test $ac_status = 0; }; then :
3275  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3276# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3277# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3278# so that the user can short-circuit this test for compilers unknown to
3279# Autoconf.
3280for ac_file in $ac_files ''
3281do
3282  test -f "$ac_file" || continue
3283  case $ac_file in
3284    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3285	;;
3286    [ab].out )
3287	# We found the default executable, but exeext='' is most
3288	# certainly right.
3289	break;;
3290    *.* )
3291	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3292	then :; else
3293	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3294	fi
3295	# We set ac_cv_exeext here because the later test for it is not
3296	# safe: cross compilers may not add the suffix if given an `-o'
3297	# argument, so we may need to know it at that point already.
3298	# Even if this section looks crufty: it has the advantage of
3299	# actually working.
3300	break;;
3301    * )
3302	break;;
3303  esac
3304done
3305test "$ac_cv_exeext" = no && ac_cv_exeext=
3306
3307else
3308  ac_file=''
3309fi
3310if test -z "$ac_file"; then :
3311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312$as_echo "no" >&6; }
3313$as_echo "$as_me: failed program was:" >&5
3314sed 's/^/| /' conftest.$ac_ext >&5
3315
3316{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3318as_fn_error 77 "C compiler cannot create executables
3319See \`config.log' for more details" "$LINENO" 5; }
3320else
3321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3322$as_echo "yes" >&6; }
3323fi
3324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3325$as_echo_n "checking for C compiler default output file name... " >&6; }
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3327$as_echo "$ac_file" >&6; }
3328ac_exeext=$ac_cv_exeext
3329
3330rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3331ac_clean_files=$ac_clean_files_save
3332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3333$as_echo_n "checking for suffix of executables... " >&6; }
3334if { { ac_try="$ac_link"
3335case "(($ac_try" in
3336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337  *) ac_try_echo=$ac_try;;
3338esac
3339eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3340$as_echo "$ac_try_echo"; } >&5
3341  (eval "$ac_link") 2>&5
3342  ac_status=$?
3343  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344  test $ac_status = 0; }; then :
3345  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3346# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3347# work properly (i.e., refer to `conftest.exe'), while it won't with
3348# `rm'.
3349for ac_file in conftest.exe conftest conftest.*; do
3350  test -f "$ac_file" || continue
3351  case $ac_file in
3352    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3353    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3354	  break;;
3355    * ) break;;
3356  esac
3357done
3358else
3359  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3361as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3362See \`config.log' for more details" "$LINENO" 5; }
3363fi
3364rm -f conftest conftest$ac_cv_exeext
3365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3366$as_echo "$ac_cv_exeext" >&6; }
3367
3368rm -f conftest.$ac_ext
3369EXEEXT=$ac_cv_exeext
3370ac_exeext=$EXEEXT
3371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372/* end confdefs.h.  */
3373#include <stdio.h>
3374int
3375main ()
3376{
3377FILE *f = fopen ("conftest.out", "w");
3378 return ferror (f) || fclose (f) != 0;
3379
3380  ;
3381  return 0;
3382}
3383_ACEOF
3384ac_clean_files="$ac_clean_files conftest.out"
3385# Check that the compiler produces executables we can run.  If not, either
3386# the compiler is broken, or we cross compile.
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3388$as_echo_n "checking whether we are cross compiling... " >&6; }
3389if test "$cross_compiling" != yes; then
3390  { { ac_try="$ac_link"
3391case "(($ac_try" in
3392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393  *) ac_try_echo=$ac_try;;
3394esac
3395eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3396$as_echo "$ac_try_echo"; } >&5
3397  (eval "$ac_link") 2>&5
3398  ac_status=$?
3399  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400  test $ac_status = 0; }
3401  if { ac_try='./conftest$ac_cv_exeext'
3402  { { case "(($ac_try" in
3403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404  *) ac_try_echo=$ac_try;;
3405esac
3406eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3407$as_echo "$ac_try_echo"; } >&5
3408  (eval "$ac_try") 2>&5
3409  ac_status=$?
3410  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3411  test $ac_status = 0; }; }; then
3412    cross_compiling=no
3413  else
3414    if test "$cross_compiling" = maybe; then
3415	cross_compiling=yes
3416    else
3417	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3418$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3419as_fn_error $? "cannot run C compiled programs.
3420If you meant to cross compile, use \`--host'.
3421See \`config.log' for more details" "$LINENO" 5; }
3422    fi
3423  fi
3424fi
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3426$as_echo "$cross_compiling" >&6; }
3427
3428rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3429ac_clean_files=$ac_clean_files_save
3430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3431$as_echo_n "checking for suffix of object files... " >&6; }
3432if ${ac_cv_objext+:} false; then :
3433  $as_echo_n "(cached) " >&6
3434else
3435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436/* end confdefs.h.  */
3437
3438int
3439main ()
3440{
3441
3442  ;
3443  return 0;
3444}
3445_ACEOF
3446rm -f conftest.o conftest.obj
3447if { { ac_try="$ac_compile"
3448case "(($ac_try" in
3449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450  *) ac_try_echo=$ac_try;;
3451esac
3452eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3453$as_echo "$ac_try_echo"; } >&5
3454  (eval "$ac_compile") 2>&5
3455  ac_status=$?
3456  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457  test $ac_status = 0; }; then :
3458  for ac_file in conftest.o conftest.obj conftest.*; do
3459  test -f "$ac_file" || continue;
3460  case $ac_file in
3461    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3462    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3463       break;;
3464  esac
3465done
3466else
3467  $as_echo "$as_me: failed program was:" >&5
3468sed 's/^/| /' conftest.$ac_ext >&5
3469
3470{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472as_fn_error $? "cannot compute suffix of object files: cannot compile
3473See \`config.log' for more details" "$LINENO" 5; }
3474fi
3475rm -f conftest.$ac_cv_objext conftest.$ac_ext
3476fi
3477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3478$as_echo "$ac_cv_objext" >&6; }
3479OBJEXT=$ac_cv_objext
3480ac_objext=$OBJEXT
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3482$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3483if ${ac_cv_c_compiler_gnu+:} false; then :
3484  $as_echo_n "(cached) " >&6
3485else
3486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487/* end confdefs.h.  */
3488
3489int
3490main ()
3491{
3492#ifndef __GNUC__
3493       choke me
3494#endif
3495
3496  ;
3497  return 0;
3498}
3499_ACEOF
3500if ac_fn_c_try_compile "$LINENO"; then :
3501  ac_compiler_gnu=yes
3502else
3503  ac_compiler_gnu=no
3504fi
3505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506ac_cv_c_compiler_gnu=$ac_compiler_gnu
3507
3508fi
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3510$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3511if test $ac_compiler_gnu = yes; then
3512  GCC=yes
3513else
3514  GCC=
3515fi
3516ac_test_CFLAGS=${CFLAGS+set}
3517ac_save_CFLAGS=$CFLAGS
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3519$as_echo_n "checking whether $CC accepts -g... " >&6; }
3520if ${ac_cv_prog_cc_g+:} false; then :
3521  $as_echo_n "(cached) " >&6
3522else
3523  ac_save_c_werror_flag=$ac_c_werror_flag
3524   ac_c_werror_flag=yes
3525   ac_cv_prog_cc_g=no
3526   CFLAGS="-g"
3527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528/* end confdefs.h.  */
3529
3530int
3531main ()
3532{
3533
3534  ;
3535  return 0;
3536}
3537_ACEOF
3538if ac_fn_c_try_compile "$LINENO"; then :
3539  ac_cv_prog_cc_g=yes
3540else
3541  CFLAGS=""
3542      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543/* end confdefs.h.  */
3544
3545int
3546main ()
3547{
3548
3549  ;
3550  return 0;
3551}
3552_ACEOF
3553if ac_fn_c_try_compile "$LINENO"; then :
3554
3555else
3556  ac_c_werror_flag=$ac_save_c_werror_flag
3557	 CFLAGS="-g"
3558	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559/* end confdefs.h.  */
3560
3561int
3562main ()
3563{
3564
3565  ;
3566  return 0;
3567}
3568_ACEOF
3569if ac_fn_c_try_compile "$LINENO"; then :
3570  ac_cv_prog_cc_g=yes
3571fi
3572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573fi
3574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575fi
3576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577   ac_c_werror_flag=$ac_save_c_werror_flag
3578fi
3579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3580$as_echo "$ac_cv_prog_cc_g" >&6; }
3581if test "$ac_test_CFLAGS" = set; then
3582  CFLAGS=$ac_save_CFLAGS
3583elif test $ac_cv_prog_cc_g = yes; then
3584  if test "$GCC" = yes; then
3585    CFLAGS="-g -O2"
3586  else
3587    CFLAGS="-g"
3588  fi
3589else
3590  if test "$GCC" = yes; then
3591    CFLAGS="-O2"
3592  else
3593    CFLAGS=
3594  fi
3595fi
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3597$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3598if ${ac_cv_prog_cc_c89+:} false; then :
3599  $as_echo_n "(cached) " >&6
3600else
3601  ac_cv_prog_cc_c89=no
3602ac_save_CC=$CC
3603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604/* end confdefs.h.  */
3605#include <stdarg.h>
3606#include <stdio.h>
3607struct stat;
3608/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3609struct buf { int x; };
3610FILE * (*rcsopen) (struct buf *, struct stat *, int);
3611static char *e (p, i)
3612     char **p;
3613     int i;
3614{
3615  return p[i];
3616}
3617static char *f (char * (*g) (char **, int), char **p, ...)
3618{
3619  char *s;
3620  va_list v;
3621  va_start (v,p);
3622  s = g (p, va_arg (v,int));
3623  va_end (v);
3624  return s;
3625}
3626
3627/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3628   function prototypes and stuff, but not '\xHH' hex character constants.
3629   These don't provoke an error unfortunately, instead are silently treated
3630   as 'x'.  The following induces an error, until -std is added to get
3631   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3632   array size at least.  It's necessary to write '\x00'==0 to get something
3633   that's true only with -std.  */
3634int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3635
3636/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3637   inside strings and character constants.  */
3638#define FOO(x) 'x'
3639int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3640
3641int test (int i, double x);
3642struct s1 {int (*f) (int a);};
3643struct s2 {int (*f) (double a);};
3644int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3645int argc;
3646char **argv;
3647int
3648main ()
3649{
3650return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3651  ;
3652  return 0;
3653}
3654_ACEOF
3655for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3656	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3657do
3658  CC="$ac_save_CC $ac_arg"
3659  if ac_fn_c_try_compile "$LINENO"; then :
3660  ac_cv_prog_cc_c89=$ac_arg
3661fi
3662rm -f core conftest.err conftest.$ac_objext
3663  test "x$ac_cv_prog_cc_c89" != "xno" && break
3664done
3665rm -f conftest.$ac_ext
3666CC=$ac_save_CC
3667
3668fi
3669# AC_CACHE_VAL
3670case "x$ac_cv_prog_cc_c89" in
3671  x)
3672    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3673$as_echo "none needed" >&6; } ;;
3674  xno)
3675    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3676$as_echo "unsupported" >&6; } ;;
3677  *)
3678    CC="$CC $ac_cv_prog_cc_c89"
3679    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3680$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3681esac
3682if test "x$ac_cv_prog_cc_c89" != xno; then :
3683
3684fi
3685
3686ac_ext=c
3687ac_cpp='$CPP $CPPFLAGS'
3688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3690ac_compiler_gnu=$ac_cv_c_compiler_gnu
3691
3692ac_ext=c
3693ac_cpp='$CPP $CPPFLAGS'
3694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3696ac_compiler_gnu=$ac_cv_c_compiler_gnu
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3698$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3699if ${am_cv_prog_cc_c_o+:} false; then :
3700  $as_echo_n "(cached) " >&6
3701else
3702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703/* end confdefs.h.  */
3704
3705int
3706main ()
3707{
3708
3709  ;
3710  return 0;
3711}
3712_ACEOF
3713  # Make sure it works both with $CC and with simple cc.
3714  # Following AC_PROG_CC_C_O, we do the test twice because some
3715  # compilers refuse to overwrite an existing .o file with -o,
3716  # though they will create one.
3717  am_cv_prog_cc_c_o=yes
3718  for am_i in 1 2; do
3719    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3720   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3721   ac_status=$?
3722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723   (exit $ac_status); } \
3724         && test -f conftest2.$ac_objext; then
3725      : OK
3726    else
3727      am_cv_prog_cc_c_o=no
3728      break
3729    fi
3730  done
3731  rm -f core conftest*
3732  unset am_i
3733fi
3734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3735$as_echo "$am_cv_prog_cc_c_o" >&6; }
3736if test "$am_cv_prog_cc_c_o" != yes; then
3737   # Losing compiler, so override with the script.
3738   # FIXME: It is wrong to rewrite CC.
3739   # But if we don't then we get into trouble of one sort or another.
3740   # A longer-term fix would be to have automake use am__CC in this case,
3741   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3742   CC="$am_aux_dir/compile $CC"
3743fi
3744ac_ext=c
3745ac_cpp='$CPP $CPPFLAGS'
3746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748ac_compiler_gnu=$ac_cv_c_compiler_gnu
3749
3750DEPDIR="${am__leading_dot}deps"
3751
3752ac_config_commands="$ac_config_commands depfiles"
3753
3754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3755$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3756cat > confinc.mk << 'END'
3757am__doit:
3758	@echo this is the am__doit target >confinc.out
3759.PHONY: am__doit
3760END
3761am__include="#"
3762am__quote=
3763# BSD make does it like this.
3764echo '.include "confinc.mk" # ignored' > confmf.BSD
3765# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3766echo 'include confinc.mk # ignored' > confmf.GNU
3767_am_result=no
3768for s in GNU BSD; do
3769  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3770   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3771   ac_status=$?
3772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773   (exit $ac_status); }
3774  case $?:`cat confinc.out 2>/dev/null` in #(
3775  '0:this is the am__doit target') :
3776    case $s in #(
3777  BSD) :
3778    am__include='.include' am__quote='"' ;; #(
3779  *) :
3780    am__include='include' am__quote='' ;;
3781esac ;; #(
3782  *) :
3783     ;;
3784esac
3785  if test "$am__include" != "#"; then
3786    _am_result="yes ($s style)"
3787    break
3788  fi
3789done
3790rm -f confinc.* confmf.*
3791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3792$as_echo "${_am_result}" >&6; }
3793
3794# Check whether --enable-dependency-tracking was given.
3795if test "${enable_dependency_tracking+set}" = set; then :
3796  enableval=$enable_dependency_tracking;
3797fi
3798
3799if test "x$enable_dependency_tracking" != xno; then
3800  am_depcomp="$ac_aux_dir/depcomp"
3801  AMDEPBACKSLASH='\'
3802  am__nodep='_no'
3803fi
3804 if test "x$enable_dependency_tracking" != xno; then
3805  AMDEP_TRUE=
3806  AMDEP_FALSE='#'
3807else
3808  AMDEP_TRUE='#'
3809  AMDEP_FALSE=
3810fi
3811
3812
3813
3814depcc="$CC"   am_compiler_list=
3815
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3817$as_echo_n "checking dependency style of $depcc... " >&6; }
3818if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3819  $as_echo_n "(cached) " >&6
3820else
3821  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3822  # We make a subdir and do the tests there.  Otherwise we can end up
3823  # making bogus files that we don't know about and never remove.  For
3824  # instance it was reported that on HP-UX the gcc test will end up
3825  # making a dummy file named 'D' -- because '-MD' means "put the output
3826  # in D".
3827  rm -rf conftest.dir
3828  mkdir conftest.dir
3829  # Copy depcomp to subdir because otherwise we won't find it if we're
3830  # using a relative directory.
3831  cp "$am_depcomp" conftest.dir
3832  cd conftest.dir
3833  # We will build objects and dependencies in a subdirectory because
3834  # it helps to detect inapplicable dependency modes.  For instance
3835  # both Tru64's cc and ICC support -MD to output dependencies as a
3836  # side effect of compilation, but ICC will put the dependencies in
3837  # the current directory while Tru64 will put them in the object
3838  # directory.
3839  mkdir sub
3840
3841  am_cv_CC_dependencies_compiler_type=none
3842  if test "$am_compiler_list" = ""; then
3843     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3844  fi
3845  am__universal=false
3846  case " $depcc " in #(
3847     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3848     esac
3849
3850  for depmode in $am_compiler_list; do
3851    # Setup a source with many dependencies, because some compilers
3852    # like to wrap large dependency lists on column 80 (with \), and
3853    # we should not choose a depcomp mode which is confused by this.
3854    #
3855    # We need to recreate these files for each test, as the compiler may
3856    # overwrite some of them when testing with obscure command lines.
3857    # This happens at least with the AIX C compiler.
3858    : > sub/conftest.c
3859    for i in 1 2 3 4 5 6; do
3860      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3861      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3862      # Solaris 10 /bin/sh.
3863      echo '/* dummy */' > sub/conftst$i.h
3864    done
3865    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3866
3867    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3868    # mode.  It turns out that the SunPro C++ compiler does not properly
3869    # handle '-M -o', and we need to detect this.  Also, some Intel
3870    # versions had trouble with output in subdirs.
3871    am__obj=sub/conftest.${OBJEXT-o}
3872    am__minus_obj="-o $am__obj"
3873    case $depmode in
3874    gcc)
3875      # This depmode causes a compiler race in universal mode.
3876      test "$am__universal" = false || continue
3877      ;;
3878    nosideeffect)
3879      # After this tag, mechanisms are not by side-effect, so they'll
3880      # only be used when explicitly requested.
3881      if test "x$enable_dependency_tracking" = xyes; then
3882	continue
3883      else
3884	break
3885      fi
3886      ;;
3887    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3888      # This compiler won't grok '-c -o', but also, the minuso test has
3889      # not run yet.  These depmodes are late enough in the game, and
3890      # so weak that their functioning should not be impacted.
3891      am__obj=conftest.${OBJEXT-o}
3892      am__minus_obj=
3893      ;;
3894    none) break ;;
3895    esac
3896    if depmode=$depmode \
3897       source=sub/conftest.c object=$am__obj \
3898       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3899       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3900         >/dev/null 2>conftest.err &&
3901       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3902       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3903       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3904       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3905      # icc doesn't choke on unknown options, it will just issue warnings
3906      # or remarks (even with -Werror).  So we grep stderr for any message
3907      # that says an option was ignored or not supported.
3908      # When given -MP, icc 7.0 and 7.1 complain thusly:
3909      #   icc: Command line warning: ignoring option '-M'; no argument required
3910      # The diagnosis changed in icc 8.0:
3911      #   icc: Command line remark: option '-MP' not supported
3912      if (grep 'ignoring option' conftest.err ||
3913          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3914        am_cv_CC_dependencies_compiler_type=$depmode
3915        break
3916      fi
3917    fi
3918  done
3919
3920  cd ..
3921  rm -rf conftest.dir
3922else
3923  am_cv_CC_dependencies_compiler_type=none
3924fi
3925
3926fi
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3928$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3929CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3930
3931 if
3932  test "x$enable_dependency_tracking" != xno \
3933  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3934  am__fastdepCC_TRUE=
3935  am__fastdepCC_FALSE='#'
3936else
3937  am__fastdepCC_TRUE='#'
3938  am__fastdepCC_FALSE=
3939fi
3940
3941
3942   case $ac_cv_prog_cc_stdc in #(
3943  no) :
3944    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3945  *) :
3946    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3947$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3948if ${ac_cv_prog_cc_c99+:} false; then :
3949  $as_echo_n "(cached) " >&6
3950else
3951  ac_cv_prog_cc_c99=no
3952ac_save_CC=$CC
3953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954/* end confdefs.h.  */
3955#include <stdarg.h>
3956#include <stdbool.h>
3957#include <stdlib.h>
3958#include <wchar.h>
3959#include <stdio.h>
3960
3961// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3962#define debug(...) fprintf (stderr, __VA_ARGS__)
3963#define showlist(...) puts (#__VA_ARGS__)
3964#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3965static void
3966test_varargs_macros (void)
3967{
3968  int x = 1234;
3969  int y = 5678;
3970  debug ("Flag");
3971  debug ("X = %d\n", x);
3972  showlist (The first, second, and third items.);
3973  report (x>y, "x is %d but y is %d", x, y);
3974}
3975
3976// Check long long types.
3977#define BIG64 18446744073709551615ull
3978#define BIG32 4294967295ul
3979#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3980#if !BIG_OK
3981  your preprocessor is broken;
3982#endif
3983#if BIG_OK
3984#else
3985  your preprocessor is broken;
3986#endif
3987static long long int bignum = -9223372036854775807LL;
3988static unsigned long long int ubignum = BIG64;
3989
3990struct incomplete_array
3991{
3992  int datasize;
3993  double data[];
3994};
3995
3996struct named_init {
3997  int number;
3998  const wchar_t *name;
3999  double average;
4000};
4001
4002typedef const char *ccp;
4003
4004static inline int
4005test_restrict (ccp restrict text)
4006{
4007  // See if C++-style comments work.
4008  // Iterate through items via the restricted pointer.
4009  // Also check for declarations in for loops.
4010  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4011    continue;
4012  return 0;
4013}
4014
4015// Check varargs and va_copy.
4016static void
4017test_varargs (const char *format, ...)
4018{
4019  va_list args;
4020  va_start (args, format);
4021  va_list args_copy;
4022  va_copy (args_copy, args);
4023
4024  const char *str;
4025  int number;
4026  float fnumber;
4027
4028  while (*format)
4029    {
4030      switch (*format++)
4031	{
4032	case 's': // string
4033	  str = va_arg (args_copy, const char *);
4034	  break;
4035	case 'd': // int
4036	  number = va_arg (args_copy, int);
4037	  break;
4038	case 'f': // float
4039	  fnumber = va_arg (args_copy, double);
4040	  break;
4041	default:
4042	  break;
4043	}
4044    }
4045  va_end (args_copy);
4046  va_end (args);
4047}
4048
4049int
4050main ()
4051{
4052
4053  // Check bool.
4054  _Bool success = false;
4055
4056  // Check restrict.
4057  if (test_restrict ("String literal") == 0)
4058    success = true;
4059  char *restrict newvar = "Another string";
4060
4061  // Check varargs.
4062  test_varargs ("s, d' f .", "string", 65, 34.234);
4063  test_varargs_macros ();
4064
4065  // Check flexible array members.
4066  struct incomplete_array *ia =
4067    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4068  ia->datasize = 10;
4069  for (int i = 0; i < ia->datasize; ++i)
4070    ia->data[i] = i * 1.234;
4071
4072  // Check named initializers.
4073  struct named_init ni = {
4074    .number = 34,
4075    .name = L"Test wide string",
4076    .average = 543.34343,
4077  };
4078
4079  ni.number = 58;
4080
4081  int dynamic_array[ni.number];
4082  dynamic_array[ni.number - 1] = 543;
4083
4084  // work around unused variable warnings
4085  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4086	  || dynamic_array[ni.number - 1] != 543);
4087
4088  ;
4089  return 0;
4090}
4091_ACEOF
4092for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4093do
4094  CC="$ac_save_CC $ac_arg"
4095  if ac_fn_c_try_compile "$LINENO"; then :
4096  ac_cv_prog_cc_c99=$ac_arg
4097fi
4098rm -f core conftest.err conftest.$ac_objext
4099  test "x$ac_cv_prog_cc_c99" != "xno" && break
4100done
4101rm -f conftest.$ac_ext
4102CC=$ac_save_CC
4103
4104fi
4105# AC_CACHE_VAL
4106case "x$ac_cv_prog_cc_c99" in
4107  x)
4108    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4109$as_echo "none needed" >&6; } ;;
4110  xno)
4111    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4112$as_echo "unsupported" >&6; } ;;
4113  *)
4114    CC="$CC $ac_cv_prog_cc_c99"
4115    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4116$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4117esac
4118if test "x$ac_cv_prog_cc_c99" != xno; then :
4119  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4120else
4121  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4122$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4123if ${ac_cv_prog_cc_c89+:} false; then :
4124  $as_echo_n "(cached) " >&6
4125else
4126  ac_cv_prog_cc_c89=no
4127ac_save_CC=$CC
4128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129/* end confdefs.h.  */
4130#include <stdarg.h>
4131#include <stdio.h>
4132struct stat;
4133/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4134struct buf { int x; };
4135FILE * (*rcsopen) (struct buf *, struct stat *, int);
4136static char *e (p, i)
4137     char **p;
4138     int i;
4139{
4140  return p[i];
4141}
4142static char *f (char * (*g) (char **, int), char **p, ...)
4143{
4144  char *s;
4145  va_list v;
4146  va_start (v,p);
4147  s = g (p, va_arg (v,int));
4148  va_end (v);
4149  return s;
4150}
4151
4152/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4153   function prototypes and stuff, but not '\xHH' hex character constants.
4154   These don't provoke an error unfortunately, instead are silently treated
4155   as 'x'.  The following induces an error, until -std is added to get
4156   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4157   array size at least.  It's necessary to write '\x00'==0 to get something
4158   that's true only with -std.  */
4159int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4160
4161/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4162   inside strings and character constants.  */
4163#define FOO(x) 'x'
4164int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4165
4166int test (int i, double x);
4167struct s1 {int (*f) (int a);};
4168struct s2 {int (*f) (double a);};
4169int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4170int argc;
4171char **argv;
4172int
4173main ()
4174{
4175return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4176  ;
4177  return 0;
4178}
4179_ACEOF
4180for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4181	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4182do
4183  CC="$ac_save_CC $ac_arg"
4184  if ac_fn_c_try_compile "$LINENO"; then :
4185  ac_cv_prog_cc_c89=$ac_arg
4186fi
4187rm -f core conftest.err conftest.$ac_objext
4188  test "x$ac_cv_prog_cc_c89" != "xno" && break
4189done
4190rm -f conftest.$ac_ext
4191CC=$ac_save_CC
4192
4193fi
4194# AC_CACHE_VAL
4195case "x$ac_cv_prog_cc_c89" in
4196  x)
4197    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4198$as_echo "none needed" >&6; } ;;
4199  xno)
4200    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4201$as_echo "unsupported" >&6; } ;;
4202  *)
4203    CC="$CC $ac_cv_prog_cc_c89"
4204    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4205$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4206esac
4207if test "x$ac_cv_prog_cc_c89" != xno; then :
4208  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4209else
4210  ac_cv_prog_cc_stdc=no
4211fi
4212
4213fi
4214 ;;
4215esac
4216  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4217$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4218  if ${ac_cv_prog_cc_stdc+:} false; then :
4219  $as_echo_n "(cached) " >&6
4220fi
4221
4222  case $ac_cv_prog_cc_stdc in #(
4223  no) :
4224    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4225$as_echo "unsupported" >&6; } ;; #(
4226  '') :
4227    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4228$as_echo "none needed" >&6; } ;; #(
4229  *) :
4230    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4231$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4232esac
4233
4234ac_ext=c
4235ac_cpp='$CPP $CPPFLAGS'
4236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4240$as_echo_n "checking how to run the C preprocessor... " >&6; }
4241# On Suns, sometimes $CPP names a directory.
4242if test -n "$CPP" && test -d "$CPP"; then
4243  CPP=
4244fi
4245if test -z "$CPP"; then
4246  if ${ac_cv_prog_CPP+:} false; then :
4247  $as_echo_n "(cached) " >&6
4248else
4249      # Double quotes because CPP needs to be expanded
4250    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4251    do
4252      ac_preproc_ok=false
4253for ac_c_preproc_warn_flag in '' yes
4254do
4255  # Use a header file that comes with gcc, so configuring glibc
4256  # with a fresh cross-compiler works.
4257  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4258  # <limits.h> exists even on freestanding compilers.
4259  # On the NeXT, cc -E runs the code through the compiler's parser,
4260  # not just through cpp. "Syntax error" is here to catch this case.
4261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262/* end confdefs.h.  */
4263#ifdef __STDC__
4264# include <limits.h>
4265#else
4266# include <assert.h>
4267#endif
4268		     Syntax error
4269_ACEOF
4270if ac_fn_c_try_cpp "$LINENO"; then :
4271
4272else
4273  # Broken: fails on valid input.
4274continue
4275fi
4276rm -f conftest.err conftest.i conftest.$ac_ext
4277
4278  # OK, works on sane cases.  Now check whether nonexistent headers
4279  # can be detected and how.
4280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281/* end confdefs.h.  */
4282#include <ac_nonexistent.h>
4283_ACEOF
4284if ac_fn_c_try_cpp "$LINENO"; then :
4285  # Broken: success on invalid input.
4286continue
4287else
4288  # Passes both tests.
4289ac_preproc_ok=:
4290break
4291fi
4292rm -f conftest.err conftest.i conftest.$ac_ext
4293
4294done
4295# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4296rm -f conftest.i conftest.err conftest.$ac_ext
4297if $ac_preproc_ok; then :
4298  break
4299fi
4300
4301    done
4302    ac_cv_prog_CPP=$CPP
4303
4304fi
4305  CPP=$ac_cv_prog_CPP
4306else
4307  ac_cv_prog_CPP=$CPP
4308fi
4309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4310$as_echo "$CPP" >&6; }
4311ac_preproc_ok=false
4312for ac_c_preproc_warn_flag in '' yes
4313do
4314  # Use a header file that comes with gcc, so configuring glibc
4315  # with a fresh cross-compiler works.
4316  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4317  # <limits.h> exists even on freestanding compilers.
4318  # On the NeXT, cc -E runs the code through the compiler's parser,
4319  # not just through cpp. "Syntax error" is here to catch this case.
4320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321/* end confdefs.h.  */
4322#ifdef __STDC__
4323# include <limits.h>
4324#else
4325# include <assert.h>
4326#endif
4327		     Syntax error
4328_ACEOF
4329if ac_fn_c_try_cpp "$LINENO"; then :
4330
4331else
4332  # Broken: fails on valid input.
4333continue
4334fi
4335rm -f conftest.err conftest.i conftest.$ac_ext
4336
4337  # OK, works on sane cases.  Now check whether nonexistent headers
4338  # can be detected and how.
4339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340/* end confdefs.h.  */
4341#include <ac_nonexistent.h>
4342_ACEOF
4343if ac_fn_c_try_cpp "$LINENO"; then :
4344  # Broken: success on invalid input.
4345continue
4346else
4347  # Passes both tests.
4348ac_preproc_ok=:
4349break
4350fi
4351rm -f conftest.err conftest.i conftest.$ac_ext
4352
4353done
4354# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4355rm -f conftest.i conftest.err conftest.$ac_ext
4356if $ac_preproc_ok; then :
4357
4358else
4359  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4361as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4362See \`config.log' for more details" "$LINENO" 5; }
4363fi
4364
4365ac_ext=c
4366ac_cpp='$CPP $CPPFLAGS'
4367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4369ac_compiler_gnu=$ac_cv_c_compiler_gnu
4370
4371
4372
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4374$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4375if ${ac_cv_path_GREP+:} false; then :
4376  $as_echo_n "(cached) " >&6
4377else
4378  if test -z "$GREP"; then
4379  ac_path_GREP_found=false
4380  # Loop through the user's path and test for each of PROGNAME-LIST
4381  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4383do
4384  IFS=$as_save_IFS
4385  test -z "$as_dir" && as_dir=.
4386    for ac_prog in grep ggrep; do
4387    for ac_exec_ext in '' $ac_executable_extensions; do
4388      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4389      as_fn_executable_p "$ac_path_GREP" || continue
4390# Check for GNU ac_path_GREP and select it if it is found.
4391  # Check for GNU $ac_path_GREP
4392case `"$ac_path_GREP" --version 2>&1` in
4393*GNU*)
4394  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4395*)
4396  ac_count=0
4397  $as_echo_n 0123456789 >"conftest.in"
4398  while :
4399  do
4400    cat "conftest.in" "conftest.in" >"conftest.tmp"
4401    mv "conftest.tmp" "conftest.in"
4402    cp "conftest.in" "conftest.nl"
4403    $as_echo 'GREP' >> "conftest.nl"
4404    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4405    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4406    as_fn_arith $ac_count + 1 && ac_count=$as_val
4407    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4408      # Best one so far, save it but keep looking for a better one
4409      ac_cv_path_GREP="$ac_path_GREP"
4410      ac_path_GREP_max=$ac_count
4411    fi
4412    # 10*(2^10) chars as input seems more than enough
4413    test $ac_count -gt 10 && break
4414  done
4415  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4416esac
4417
4418      $ac_path_GREP_found && break 3
4419    done
4420  done
4421  done
4422IFS=$as_save_IFS
4423  if test -z "$ac_cv_path_GREP"; then
4424    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4425  fi
4426else
4427  ac_cv_path_GREP=$GREP
4428fi
4429
4430fi
4431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4432$as_echo "$ac_cv_path_GREP" >&6; }
4433 GREP="$ac_cv_path_GREP"
4434
4435
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4437$as_echo_n "checking for egrep... " >&6; }
4438if ${ac_cv_path_EGREP+:} false; then :
4439  $as_echo_n "(cached) " >&6
4440else
4441  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4442   then ac_cv_path_EGREP="$GREP -E"
4443   else
4444     if test -z "$EGREP"; then
4445  ac_path_EGREP_found=false
4446  # Loop through the user's path and test for each of PROGNAME-LIST
4447  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4449do
4450  IFS=$as_save_IFS
4451  test -z "$as_dir" && as_dir=.
4452    for ac_prog in egrep; do
4453    for ac_exec_ext in '' $ac_executable_extensions; do
4454      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4455      as_fn_executable_p "$ac_path_EGREP" || continue
4456# Check for GNU ac_path_EGREP and select it if it is found.
4457  # Check for GNU $ac_path_EGREP
4458case `"$ac_path_EGREP" --version 2>&1` in
4459*GNU*)
4460  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4461*)
4462  ac_count=0
4463  $as_echo_n 0123456789 >"conftest.in"
4464  while :
4465  do
4466    cat "conftest.in" "conftest.in" >"conftest.tmp"
4467    mv "conftest.tmp" "conftest.in"
4468    cp "conftest.in" "conftest.nl"
4469    $as_echo 'EGREP' >> "conftest.nl"
4470    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4471    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4472    as_fn_arith $ac_count + 1 && ac_count=$as_val
4473    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4474      # Best one so far, save it but keep looking for a better one
4475      ac_cv_path_EGREP="$ac_path_EGREP"
4476      ac_path_EGREP_max=$ac_count
4477    fi
4478    # 10*(2^10) chars as input seems more than enough
4479    test $ac_count -gt 10 && break
4480  done
4481  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4482esac
4483
4484      $ac_path_EGREP_found && break 3
4485    done
4486  done
4487  done
4488IFS=$as_save_IFS
4489  if test -z "$ac_cv_path_EGREP"; then
4490    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4491  fi
4492else
4493  ac_cv_path_EGREP=$EGREP
4494fi
4495
4496   fi
4497fi
4498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4499$as_echo "$ac_cv_path_EGREP" >&6; }
4500 EGREP="$ac_cv_path_EGREP"
4501
4502
4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4504$as_echo_n "checking for ANSI C header files... " >&6; }
4505if ${ac_cv_header_stdc+:} false; then :
4506  $as_echo_n "(cached) " >&6
4507else
4508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509/* end confdefs.h.  */
4510#include <stdlib.h>
4511#include <stdarg.h>
4512#include <string.h>
4513#include <float.h>
4514
4515int
4516main ()
4517{
4518
4519  ;
4520  return 0;
4521}
4522_ACEOF
4523if ac_fn_c_try_compile "$LINENO"; then :
4524  ac_cv_header_stdc=yes
4525else
4526  ac_cv_header_stdc=no
4527fi
4528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529
4530if test $ac_cv_header_stdc = yes; then
4531  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533/* end confdefs.h.  */
4534#include <string.h>
4535
4536_ACEOF
4537if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4538  $EGREP "memchr" >/dev/null 2>&1; then :
4539
4540else
4541  ac_cv_header_stdc=no
4542fi
4543rm -f conftest*
4544
4545fi
4546
4547if test $ac_cv_header_stdc = yes; then
4548  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550/* end confdefs.h.  */
4551#include <stdlib.h>
4552
4553_ACEOF
4554if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4555  $EGREP "free" >/dev/null 2>&1; then :
4556
4557else
4558  ac_cv_header_stdc=no
4559fi
4560rm -f conftest*
4561
4562fi
4563
4564if test $ac_cv_header_stdc = yes; then
4565  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4566  if test "$cross_compiling" = yes; then :
4567  :
4568else
4569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570/* end confdefs.h.  */
4571#include <ctype.h>
4572#include <stdlib.h>
4573#if ((' ' & 0x0FF) == 0x020)
4574# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4575# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4576#else
4577# define ISLOWER(c) \
4578		   (('a' <= (c) && (c) <= 'i') \
4579		     || ('j' <= (c) && (c) <= 'r') \
4580		     || ('s' <= (c) && (c) <= 'z'))
4581# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4582#endif
4583
4584#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4585int
4586main ()
4587{
4588  int i;
4589  for (i = 0; i < 256; i++)
4590    if (XOR (islower (i), ISLOWER (i))
4591	|| toupper (i) != TOUPPER (i))
4592      return 2;
4593  return 0;
4594}
4595_ACEOF
4596if ac_fn_c_try_run "$LINENO"; then :
4597
4598else
4599  ac_cv_header_stdc=no
4600fi
4601rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4602  conftest.$ac_objext conftest.beam conftest.$ac_ext
4603fi
4604
4605fi
4606fi
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4608$as_echo "$ac_cv_header_stdc" >&6; }
4609if test $ac_cv_header_stdc = yes; then
4610
4611$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4612
4613fi
4614
4615# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4616for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4617		  inttypes.h stdint.h unistd.h
4618do :
4619  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4620ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4621"
4622if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4623  cat >>confdefs.h <<_ACEOF
4624#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4625_ACEOF
4626
4627fi
4628
4629done
4630
4631
4632
4633  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4634if test "x$ac_cv_header_minix_config_h" = xyes; then :
4635  MINIX=yes
4636else
4637  MINIX=
4638fi
4639
4640
4641  if test "$MINIX" = yes; then
4642
4643$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4644
4645
4646$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4647
4648
4649$as_echo "#define _MINIX 1" >>confdefs.h
4650
4651  fi
4652
4653
4654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4655$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4656if ${ac_cv_safe_to_define___extensions__+:} false; then :
4657  $as_echo_n "(cached) " >&6
4658else
4659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660/* end confdefs.h.  */
4661
4662#         define __EXTENSIONS__ 1
4663          $ac_includes_default
4664int
4665main ()
4666{
4667
4668  ;
4669  return 0;
4670}
4671_ACEOF
4672if ac_fn_c_try_compile "$LINENO"; then :
4673  ac_cv_safe_to_define___extensions__=yes
4674else
4675  ac_cv_safe_to_define___extensions__=no
4676fi
4677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4678fi
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4680$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4681  test $ac_cv_safe_to_define___extensions__ = yes &&
4682    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4683
4684  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4685
4686  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4687
4688  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4689
4690  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4691
4692
4693
4694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4695$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4696if ${ac_cv_c_const+:} false; then :
4697  $as_echo_n "(cached) " >&6
4698else
4699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700/* end confdefs.h.  */
4701
4702int
4703main ()
4704{
4705
4706#ifndef __cplusplus
4707  /* Ultrix mips cc rejects this sort of thing.  */
4708  typedef int charset[2];
4709  const charset cs = { 0, 0 };
4710  /* SunOS 4.1.1 cc rejects this.  */
4711  char const *const *pcpcc;
4712  char **ppc;
4713  /* NEC SVR4.0.2 mips cc rejects this.  */
4714  struct point {int x, y;};
4715  static struct point const zero = {0,0};
4716  /* AIX XL C 1.02.0.0 rejects this.
4717     It does not let you subtract one const X* pointer from another in
4718     an arm of an if-expression whose if-part is not a constant
4719     expression */
4720  const char *g = "string";
4721  pcpcc = &g + (g ? g-g : 0);
4722  /* HPUX 7.0 cc rejects these. */
4723  ++pcpcc;
4724  ppc = (char**) pcpcc;
4725  pcpcc = (char const *const *) ppc;
4726  { /* SCO 3.2v4 cc rejects this sort of thing.  */
4727    char tx;
4728    char *t = &tx;
4729    char const *s = 0 ? (char *) 0 : (char const *) 0;
4730
4731    *t++ = 0;
4732    if (s) return 0;
4733  }
4734  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4735    int x[] = {25, 17};
4736    const int *foo = &x[0];
4737    ++foo;
4738  }
4739  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4740    typedef const int *iptr;
4741    iptr p = 0;
4742    ++p;
4743  }
4744  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4745       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4746    struct s { int j; const int *ap[3]; } bx;
4747    struct s *b = &bx; b->j = 5;
4748  }
4749  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4750    const int foo = 10;
4751    if (!foo) return 0;
4752  }
4753  return !cs[0] && !zero.x;
4754#endif
4755
4756  ;
4757  return 0;
4758}
4759_ACEOF
4760if ac_fn_c_try_compile "$LINENO"; then :
4761  ac_cv_c_const=yes
4762else
4763  ac_cv_c_const=no
4764fi
4765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766fi
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4768$as_echo "$ac_cv_c_const" >&6; }
4769if test $ac_cv_c_const = no; then
4770
4771$as_echo "#define const /**/" >>confdefs.h
4772
4773fi
4774
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
4776$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
4777if ${ac_cv_c_restrict+:} false; then :
4778  $as_echo_n "(cached) " >&6
4779else
4780  ac_cv_c_restrict=no
4781   # The order here caters to the fact that C++ does not require restrict.
4782   for ac_kw in __restrict __restrict__ _Restrict restrict; do
4783     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784/* end confdefs.h.  */
4785typedef int * int_ptr;
4786	int foo (int_ptr $ac_kw ip) {
4787	return ip[0];
4788       }
4789int
4790main ()
4791{
4792int s[1];
4793	int * $ac_kw t = s;
4794	t[0] = 0;
4795	return foo(t)
4796  ;
4797  return 0;
4798}
4799_ACEOF
4800if ac_fn_c_try_compile "$LINENO"; then :
4801  ac_cv_c_restrict=$ac_kw
4802fi
4803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804     test "$ac_cv_c_restrict" != no && break
4805   done
4806
4807fi
4808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
4809$as_echo "$ac_cv_c_restrict" >&6; }
4810
4811 case $ac_cv_c_restrict in
4812   restrict) ;;
4813   no) $as_echo "#define restrict /**/" >>confdefs.h
4814 ;;
4815   *)  cat >>confdefs.h <<_ACEOF
4816#define restrict $ac_cv_c_restrict
4817_ACEOF
4818 ;;
4819 esac
4820
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
4822$as_echo_n "checking for working volatile... " >&6; }
4823if ${ac_cv_c_volatile+:} false; then :
4824  $as_echo_n "(cached) " >&6
4825else
4826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827/* end confdefs.h.  */
4828
4829int
4830main ()
4831{
4832
4833volatile int x;
4834int * volatile y = (int *) 0;
4835return !x && !y;
4836  ;
4837  return 0;
4838}
4839_ACEOF
4840if ac_fn_c_try_compile "$LINENO"; then :
4841  ac_cv_c_volatile=yes
4842else
4843  ac_cv_c_volatile=no
4844fi
4845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4846fi
4847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
4848$as_echo "$ac_cv_c_volatile" >&6; }
4849if test $ac_cv_c_volatile = no; then
4850
4851$as_echo "#define volatile /**/" >>confdefs.h
4852
4853fi
4854
4855
4856# libtool
4857
4858case `pwd` in
4859  *\ * | *\	*)
4860    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4861$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4862esac
4863
4864
4865
4866macro_version='2.4.6'
4867macro_revision='2.4.6'
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881ltmain=$ac_aux_dir/ltmain.sh
4882
4883# Make sure we can run config.sub.
4884$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4885  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4886
4887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4888$as_echo_n "checking build system type... " >&6; }
4889if ${ac_cv_build+:} false; then :
4890  $as_echo_n "(cached) " >&6
4891else
4892  ac_build_alias=$build_alias
4893test "x$ac_build_alias" = x &&
4894  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4895test "x$ac_build_alias" = x &&
4896  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4897ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4898  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4899
4900fi
4901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4902$as_echo "$ac_cv_build" >&6; }
4903case $ac_cv_build in
4904*-*-*) ;;
4905*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4906esac
4907build=$ac_cv_build
4908ac_save_IFS=$IFS; IFS='-'
4909set x $ac_cv_build
4910shift
4911build_cpu=$1
4912build_vendor=$2
4913shift; shift
4914# Remember, the first character of IFS is used to create $*,
4915# except with old shells:
4916build_os=$*
4917IFS=$ac_save_IFS
4918case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4919
4920
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4922$as_echo_n "checking host system type... " >&6; }
4923if ${ac_cv_host+:} false; then :
4924  $as_echo_n "(cached) " >&6
4925else
4926  if test "x$host_alias" = x; then
4927  ac_cv_host=$ac_cv_build
4928else
4929  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4930    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4931fi
4932
4933fi
4934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4935$as_echo "$ac_cv_host" >&6; }
4936case $ac_cv_host in
4937*-*-*) ;;
4938*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4939esac
4940host=$ac_cv_host
4941ac_save_IFS=$IFS; IFS='-'
4942set x $ac_cv_host
4943shift
4944host_cpu=$1
4945host_vendor=$2
4946shift; shift
4947# Remember, the first character of IFS is used to create $*,
4948# except with old shells:
4949host_os=$*
4950IFS=$ac_save_IFS
4951case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4952
4953
4954# Backslashify metacharacters that are still active within
4955# double-quoted strings.
4956sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4957
4958# Same as above, but do not quote variable references.
4959double_quote_subst='s/\(["`\\]\)/\\\1/g'
4960
4961# Sed substitution to delay expansion of an escaped shell variable in a
4962# double_quote_subst'ed string.
4963delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4964
4965# Sed substitution to delay expansion of an escaped single quote.
4966delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4967
4968# Sed substitution to avoid accidental globbing in evaled expressions
4969no_glob_subst='s/\*/\\\*/g'
4970
4971ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4972ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4973ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4974
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4976$as_echo_n "checking how to print strings... " >&6; }
4977# Test print first, because it will be a builtin if present.
4978if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4979   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4980  ECHO='print -r --'
4981elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4982  ECHO='printf %s\n'
4983else
4984  # Use this function as a fallback that always works.
4985  func_fallback_echo ()
4986  {
4987    eval 'cat <<_LTECHO_EOF
4988$1
4989_LTECHO_EOF'
4990  }
4991  ECHO='func_fallback_echo'
4992fi
4993
4994# func_echo_all arg...
4995# Invoke $ECHO with all args, space-separated.
4996func_echo_all ()
4997{
4998    $ECHO ""
4999}
5000
5001case $ECHO in
5002  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5003$as_echo "printf" >&6; } ;;
5004  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5005$as_echo "print -r" >&6; } ;;
5006  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5007$as_echo "cat" >&6; } ;;
5008esac
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5024$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5025if ${ac_cv_path_SED+:} false; then :
5026  $as_echo_n "(cached) " >&6
5027else
5028            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5029     for ac_i in 1 2 3 4 5 6 7; do
5030       ac_script="$ac_script$as_nl$ac_script"
5031     done
5032     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5033     { ac_script=; unset ac_script;}
5034     if test -z "$SED"; then
5035  ac_path_SED_found=false
5036  # Loop through the user's path and test for each of PROGNAME-LIST
5037  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038for as_dir in $PATH
5039do
5040  IFS=$as_save_IFS
5041  test -z "$as_dir" && as_dir=.
5042    for ac_prog in sed gsed; do
5043    for ac_exec_ext in '' $ac_executable_extensions; do
5044      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5045      as_fn_executable_p "$ac_path_SED" || continue
5046# Check for GNU ac_path_SED and select it if it is found.
5047  # Check for GNU $ac_path_SED
5048case `"$ac_path_SED" --version 2>&1` in
5049*GNU*)
5050  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5051*)
5052  ac_count=0
5053  $as_echo_n 0123456789 >"conftest.in"
5054  while :
5055  do
5056    cat "conftest.in" "conftest.in" >"conftest.tmp"
5057    mv "conftest.tmp" "conftest.in"
5058    cp "conftest.in" "conftest.nl"
5059    $as_echo '' >> "conftest.nl"
5060    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5061    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5062    as_fn_arith $ac_count + 1 && ac_count=$as_val
5063    if test $ac_count -gt ${ac_path_SED_max-0}; then
5064      # Best one so far, save it but keep looking for a better one
5065      ac_cv_path_SED="$ac_path_SED"
5066      ac_path_SED_max=$ac_count
5067    fi
5068    # 10*(2^10) chars as input seems more than enough
5069    test $ac_count -gt 10 && break
5070  done
5071  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5072esac
5073
5074      $ac_path_SED_found && break 3
5075    done
5076  done
5077  done
5078IFS=$as_save_IFS
5079  if test -z "$ac_cv_path_SED"; then
5080    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5081  fi
5082else
5083  ac_cv_path_SED=$SED
5084fi
5085
5086fi
5087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5088$as_echo "$ac_cv_path_SED" >&6; }
5089 SED="$ac_cv_path_SED"
5090  rm -f conftest.sed
5091
5092test -z "$SED" && SED=sed
5093Xsed="$SED -e 1s/^X//"
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5106$as_echo_n "checking for fgrep... " >&6; }
5107if ${ac_cv_path_FGREP+:} false; then :
5108  $as_echo_n "(cached) " >&6
5109else
5110  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5111   then ac_cv_path_FGREP="$GREP -F"
5112   else
5113     if test -z "$FGREP"; then
5114  ac_path_FGREP_found=false
5115  # Loop through the user's path and test for each of PROGNAME-LIST
5116  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5118do
5119  IFS=$as_save_IFS
5120  test -z "$as_dir" && as_dir=.
5121    for ac_prog in fgrep; do
5122    for ac_exec_ext in '' $ac_executable_extensions; do
5123      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5124      as_fn_executable_p "$ac_path_FGREP" || continue
5125# Check for GNU ac_path_FGREP and select it if it is found.
5126  # Check for GNU $ac_path_FGREP
5127case `"$ac_path_FGREP" --version 2>&1` in
5128*GNU*)
5129  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5130*)
5131  ac_count=0
5132  $as_echo_n 0123456789 >"conftest.in"
5133  while :
5134  do
5135    cat "conftest.in" "conftest.in" >"conftest.tmp"
5136    mv "conftest.tmp" "conftest.in"
5137    cp "conftest.in" "conftest.nl"
5138    $as_echo 'FGREP' >> "conftest.nl"
5139    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5140    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5141    as_fn_arith $ac_count + 1 && ac_count=$as_val
5142    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5143      # Best one so far, save it but keep looking for a better one
5144      ac_cv_path_FGREP="$ac_path_FGREP"
5145      ac_path_FGREP_max=$ac_count
5146    fi
5147    # 10*(2^10) chars as input seems more than enough
5148    test $ac_count -gt 10 && break
5149  done
5150  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5151esac
5152
5153      $ac_path_FGREP_found && break 3
5154    done
5155  done
5156  done
5157IFS=$as_save_IFS
5158  if test -z "$ac_cv_path_FGREP"; then
5159    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5160  fi
5161else
5162  ac_cv_path_FGREP=$FGREP
5163fi
5164
5165   fi
5166fi
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5168$as_echo "$ac_cv_path_FGREP" >&6; }
5169 FGREP="$ac_cv_path_FGREP"
5170
5171
5172test -z "$GREP" && GREP=grep
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192# Check whether --with-gnu-ld was given.
5193if test "${with_gnu_ld+set}" = set; then :
5194  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5195else
5196  with_gnu_ld=no
5197fi
5198
5199ac_prog=ld
5200if test yes = "$GCC"; then
5201  # Check if gcc -print-prog-name=ld gives a path.
5202  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5203$as_echo_n "checking for ld used by $CC... " >&6; }
5204  case $host in
5205  *-*-mingw*)
5206    # gcc leaves a trailing carriage return, which upsets mingw
5207    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5208  *)
5209    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5210  esac
5211  case $ac_prog in
5212    # Accept absolute paths.
5213    [\\/]* | ?:[\\/]*)
5214      re_direlt='/[^/][^/]*/\.\./'
5215      # Canonicalize the pathname of ld
5216      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5217      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5218	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5219      done
5220      test -z "$LD" && LD=$ac_prog
5221      ;;
5222  "")
5223    # If it fails, then pretend we aren't using GCC.
5224    ac_prog=ld
5225    ;;
5226  *)
5227    # If it is relative, then search for the first ld in PATH.
5228    with_gnu_ld=unknown
5229    ;;
5230  esac
5231elif test yes = "$with_gnu_ld"; then
5232  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5233$as_echo_n "checking for GNU ld... " >&6; }
5234else
5235  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5236$as_echo_n "checking for non-GNU ld... " >&6; }
5237fi
5238if ${lt_cv_path_LD+:} false; then :
5239  $as_echo_n "(cached) " >&6
5240else
5241  if test -z "$LD"; then
5242  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5243  for ac_dir in $PATH; do
5244    IFS=$lt_save_ifs
5245    test -z "$ac_dir" && ac_dir=.
5246    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5247      lt_cv_path_LD=$ac_dir/$ac_prog
5248      # Check to see if the program is GNU ld.  I'd rather use --version,
5249      # but apparently some variants of GNU ld only accept -v.
5250      # Break only if it was the GNU/non-GNU ld that we prefer.
5251      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5252      *GNU* | *'with BFD'*)
5253	test no != "$with_gnu_ld" && break
5254	;;
5255      *)
5256	test yes != "$with_gnu_ld" && break
5257	;;
5258      esac
5259    fi
5260  done
5261  IFS=$lt_save_ifs
5262else
5263  lt_cv_path_LD=$LD # Let the user override the test with a path.
5264fi
5265fi
5266
5267LD=$lt_cv_path_LD
5268if test -n "$LD"; then
5269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5270$as_echo "$LD" >&6; }
5271else
5272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273$as_echo "no" >&6; }
5274fi
5275test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5277$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5278if ${lt_cv_prog_gnu_ld+:} false; then :
5279  $as_echo_n "(cached) " >&6
5280else
5281  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5282case `$LD -v 2>&1 </dev/null` in
5283*GNU* | *'with BFD'*)
5284  lt_cv_prog_gnu_ld=yes
5285  ;;
5286*)
5287  lt_cv_prog_gnu_ld=no
5288  ;;
5289esac
5290fi
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5292$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5293with_gnu_ld=$lt_cv_prog_gnu_ld
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5304$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5305if ${lt_cv_path_NM+:} false; then :
5306  $as_echo_n "(cached) " >&6
5307else
5308  if test -n "$NM"; then
5309  # Let the user override the test.
5310  lt_cv_path_NM=$NM
5311else
5312  lt_nm_to_check=${ac_tool_prefix}nm
5313  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5314    lt_nm_to_check="$lt_nm_to_check nm"
5315  fi
5316  for lt_tmp_nm in $lt_nm_to_check; do
5317    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5318    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5319      IFS=$lt_save_ifs
5320      test -z "$ac_dir" && ac_dir=.
5321      tmp_nm=$ac_dir/$lt_tmp_nm
5322      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5323	# Check to see if the nm accepts a BSD-compat flag.
5324	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5325	#   nm: unknown option "B" ignored
5326	# Tru64's nm complains that /dev/null is an invalid object file
5327	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5328	case $build_os in
5329	mingw*) lt_bad_file=conftest.nm/nofile ;;
5330	*) lt_bad_file=/dev/null ;;
5331	esac
5332	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5333	*$lt_bad_file* | *'Invalid file or object type'*)
5334	  lt_cv_path_NM="$tmp_nm -B"
5335	  break 2
5336	  ;;
5337	*)
5338	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5339	  */dev/null*)
5340	    lt_cv_path_NM="$tmp_nm -p"
5341	    break 2
5342	    ;;
5343	  *)
5344	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5345	    continue # so that we can try to find one that supports BSD flags
5346	    ;;
5347	  esac
5348	  ;;
5349	esac
5350      fi
5351    done
5352    IFS=$lt_save_ifs
5353  done
5354  : ${lt_cv_path_NM=no}
5355fi
5356fi
5357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5358$as_echo "$lt_cv_path_NM" >&6; }
5359if test no != "$lt_cv_path_NM"; then
5360  NM=$lt_cv_path_NM
5361else
5362  # Didn't find any BSD compatible name lister, look for dumpbin.
5363  if test -n "$DUMPBIN"; then :
5364    # Let the user override the test.
5365  else
5366    if test -n "$ac_tool_prefix"; then
5367  for ac_prog in dumpbin "link -dump"
5368  do
5369    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5370set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5372$as_echo_n "checking for $ac_word... " >&6; }
5373if ${ac_cv_prog_DUMPBIN+:} false; then :
5374  $as_echo_n "(cached) " >&6
5375else
5376  if test -n "$DUMPBIN"; then
5377  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5378else
5379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380for as_dir in $PATH
5381do
5382  IFS=$as_save_IFS
5383  test -z "$as_dir" && as_dir=.
5384    for ac_exec_ext in '' $ac_executable_extensions; do
5385  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5386    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5387    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5388    break 2
5389  fi
5390done
5391  done
5392IFS=$as_save_IFS
5393
5394fi
5395fi
5396DUMPBIN=$ac_cv_prog_DUMPBIN
5397if test -n "$DUMPBIN"; then
5398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5399$as_echo "$DUMPBIN" >&6; }
5400else
5401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5402$as_echo "no" >&6; }
5403fi
5404
5405
5406    test -n "$DUMPBIN" && break
5407  done
5408fi
5409if test -z "$DUMPBIN"; then
5410  ac_ct_DUMPBIN=$DUMPBIN
5411  for ac_prog in dumpbin "link -dump"
5412do
5413  # Extract the first word of "$ac_prog", so it can be a program name with args.
5414set dummy $ac_prog; ac_word=$2
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5416$as_echo_n "checking for $ac_word... " >&6; }
5417if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5418  $as_echo_n "(cached) " >&6
5419else
5420  if test -n "$ac_ct_DUMPBIN"; then
5421  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5422else
5423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424for as_dir in $PATH
5425do
5426  IFS=$as_save_IFS
5427  test -z "$as_dir" && as_dir=.
5428    for ac_exec_ext in '' $ac_executable_extensions; do
5429  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5430    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5431    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5432    break 2
5433  fi
5434done
5435  done
5436IFS=$as_save_IFS
5437
5438fi
5439fi
5440ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5441if test -n "$ac_ct_DUMPBIN"; then
5442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5443$as_echo "$ac_ct_DUMPBIN" >&6; }
5444else
5445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446$as_echo "no" >&6; }
5447fi
5448
5449
5450  test -n "$ac_ct_DUMPBIN" && break
5451done
5452
5453  if test "x$ac_ct_DUMPBIN" = x; then
5454    DUMPBIN=":"
5455  else
5456    case $cross_compiling:$ac_tool_warned in
5457yes:)
5458{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5459$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5460ac_tool_warned=yes ;;
5461esac
5462    DUMPBIN=$ac_ct_DUMPBIN
5463  fi
5464fi
5465
5466    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5467    *COFF*)
5468      DUMPBIN="$DUMPBIN -symbols -headers"
5469      ;;
5470    *)
5471      DUMPBIN=:
5472      ;;
5473    esac
5474  fi
5475
5476  if test : != "$DUMPBIN"; then
5477    NM=$DUMPBIN
5478  fi
5479fi
5480test -z "$NM" && NM=nm
5481
5482
5483
5484
5485
5486
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5488$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5489if ${lt_cv_nm_interface+:} false; then :
5490  $as_echo_n "(cached) " >&6
5491else
5492  lt_cv_nm_interface="BSD nm"
5493  echo "int some_variable = 0;" > conftest.$ac_ext
5494  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5495  (eval "$ac_compile" 2>conftest.err)
5496  cat conftest.err >&5
5497  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5498  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5499  cat conftest.err >&5
5500  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5501  cat conftest.out >&5
5502  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5503    lt_cv_nm_interface="MS dumpbin"
5504  fi
5505  rm -f conftest*
5506fi
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5508$as_echo "$lt_cv_nm_interface" >&6; }
5509
5510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5511$as_echo_n "checking whether ln -s works... " >&6; }
5512LN_S=$as_ln_s
5513if test "$LN_S" = "ln -s"; then
5514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5515$as_echo "yes" >&6; }
5516else
5517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5518$as_echo "no, using $LN_S" >&6; }
5519fi
5520
5521# find the maximum length of command line arguments
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5523$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5524if ${lt_cv_sys_max_cmd_len+:} false; then :
5525  $as_echo_n "(cached) " >&6
5526else
5527    i=0
5528  teststring=ABCD
5529
5530  case $build_os in
5531  msdosdjgpp*)
5532    # On DJGPP, this test can blow up pretty badly due to problems in libc
5533    # (any single argument exceeding 2000 bytes causes a buffer overrun
5534    # during glob expansion).  Even if it were fixed, the result of this
5535    # check would be larger than it should be.
5536    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5537    ;;
5538
5539  gnu*)
5540    # Under GNU Hurd, this test is not required because there is
5541    # no limit to the length of command line arguments.
5542    # Libtool will interpret -1 as no limit whatsoever
5543    lt_cv_sys_max_cmd_len=-1;
5544    ;;
5545
5546  cygwin* | mingw* | cegcc*)
5547    # On Win9x/ME, this test blows up -- it succeeds, but takes
5548    # about 5 minutes as the teststring grows exponentially.
5549    # Worse, since 9x/ME are not pre-emptively multitasking,
5550    # you end up with a "frozen" computer, even though with patience
5551    # the test eventually succeeds (with a max line length of 256k).
5552    # Instead, let's just punt: use the minimum linelength reported by
5553    # all of the supported platforms: 8192 (on NT/2K/XP).
5554    lt_cv_sys_max_cmd_len=8192;
5555    ;;
5556
5557  mint*)
5558    # On MiNT this can take a long time and run out of memory.
5559    lt_cv_sys_max_cmd_len=8192;
5560    ;;
5561
5562  amigaos*)
5563    # On AmigaOS with pdksh, this test takes hours, literally.
5564    # So we just punt and use a minimum line length of 8192.
5565    lt_cv_sys_max_cmd_len=8192;
5566    ;;
5567
5568  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5569    # This has been around since 386BSD, at least.  Likely further.
5570    if test -x /sbin/sysctl; then
5571      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5572    elif test -x /usr/sbin/sysctl; then
5573      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5574    else
5575      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5576    fi
5577    # And add a safety zone
5578    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5579    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5580    ;;
5581
5582  interix*)
5583    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5584    lt_cv_sys_max_cmd_len=196608
5585    ;;
5586
5587  os2*)
5588    # The test takes a long time on OS/2.
5589    lt_cv_sys_max_cmd_len=8192
5590    ;;
5591
5592  osf*)
5593    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5594    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5595    # nice to cause kernel panics so lets avoid the loop below.
5596    # First set a reasonable default.
5597    lt_cv_sys_max_cmd_len=16384
5598    #
5599    if test -x /sbin/sysconfig; then
5600      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5601        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5602      esac
5603    fi
5604    ;;
5605  sco3.2v5*)
5606    lt_cv_sys_max_cmd_len=102400
5607    ;;
5608  sysv5* | sco5v6* | sysv4.2uw2*)
5609    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5610    if test -n "$kargmax"; then
5611      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5612    else
5613      lt_cv_sys_max_cmd_len=32768
5614    fi
5615    ;;
5616  *)
5617    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5618    if test -n "$lt_cv_sys_max_cmd_len" && \
5619       test undefined != "$lt_cv_sys_max_cmd_len"; then
5620      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5621      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5622    else
5623      # Make teststring a little bigger before we do anything with it.
5624      # a 1K string should be a reasonable start.
5625      for i in 1 2 3 4 5 6 7 8; do
5626        teststring=$teststring$teststring
5627      done
5628      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5629      # If test is not a shell built-in, we'll probably end up computing a
5630      # maximum length that is only half of the actual maximum length, but
5631      # we can't tell.
5632      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5633	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5634	      test 17 != "$i" # 1/2 MB should be enough
5635      do
5636        i=`expr $i + 1`
5637        teststring=$teststring$teststring
5638      done
5639      # Only check the string length outside the loop.
5640      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5641      teststring=
5642      # Add a significant safety factor because C++ compilers can tack on
5643      # massive amounts of additional arguments before passing them to the
5644      # linker.  It appears as though 1/2 is a usable value.
5645      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5646    fi
5647    ;;
5648  esac
5649
5650fi
5651
5652if test -n "$lt_cv_sys_max_cmd_len"; then
5653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5654$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5655else
5656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5657$as_echo "none" >&6; }
5658fi
5659max_cmd_len=$lt_cv_sys_max_cmd_len
5660
5661
5662
5663
5664
5665
5666: ${CP="cp -f"}
5667: ${MV="mv -f"}
5668: ${RM="rm -f"}
5669
5670if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5671  lt_unset=unset
5672else
5673  lt_unset=false
5674fi
5675
5676
5677
5678
5679
5680# test EBCDIC or ASCII
5681case `echo X|tr X '\101'` in
5682 A) # ASCII based system
5683    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5684  lt_SP2NL='tr \040 \012'
5685  lt_NL2SP='tr \015\012 \040\040'
5686  ;;
5687 *) # EBCDIC based system
5688  lt_SP2NL='tr \100 \n'
5689  lt_NL2SP='tr \r\n \100\100'
5690  ;;
5691esac
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5702$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5703if ${lt_cv_to_host_file_cmd+:} false; then :
5704  $as_echo_n "(cached) " >&6
5705else
5706  case $host in
5707  *-*-mingw* )
5708    case $build in
5709      *-*-mingw* ) # actually msys
5710        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5711        ;;
5712      *-*-cygwin* )
5713        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5714        ;;
5715      * ) # otherwise, assume *nix
5716        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5717        ;;
5718    esac
5719    ;;
5720  *-*-cygwin* )
5721    case $build in
5722      *-*-mingw* ) # actually msys
5723        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5724        ;;
5725      *-*-cygwin* )
5726        lt_cv_to_host_file_cmd=func_convert_file_noop
5727        ;;
5728      * ) # otherwise, assume *nix
5729        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5730        ;;
5731    esac
5732    ;;
5733  * ) # unhandled hosts (and "normal" native builds)
5734    lt_cv_to_host_file_cmd=func_convert_file_noop
5735    ;;
5736esac
5737
5738fi
5739
5740to_host_file_cmd=$lt_cv_to_host_file_cmd
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5742$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5743
5744
5745
5746
5747
5748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5749$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5750if ${lt_cv_to_tool_file_cmd+:} false; then :
5751  $as_echo_n "(cached) " >&6
5752else
5753  #assume ordinary cross tools, or native build.
5754lt_cv_to_tool_file_cmd=func_convert_file_noop
5755case $host in
5756  *-*-mingw* )
5757    case $build in
5758      *-*-mingw* ) # actually msys
5759        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5760        ;;
5761    esac
5762    ;;
5763esac
5764
5765fi
5766
5767to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5769$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5770
5771
5772
5773
5774
5775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5776$as_echo_n "checking for $LD option to reload object files... " >&6; }
5777if ${lt_cv_ld_reload_flag+:} false; then :
5778  $as_echo_n "(cached) " >&6
5779else
5780  lt_cv_ld_reload_flag='-r'
5781fi
5782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5783$as_echo "$lt_cv_ld_reload_flag" >&6; }
5784reload_flag=$lt_cv_ld_reload_flag
5785case $reload_flag in
5786"" | " "*) ;;
5787*) reload_flag=" $reload_flag" ;;
5788esac
5789reload_cmds='$LD$reload_flag -o $output$reload_objs'
5790case $host_os in
5791  cygwin* | mingw* | pw32* | cegcc*)
5792    if test yes != "$GCC"; then
5793      reload_cmds=false
5794    fi
5795    ;;
5796  darwin*)
5797    if test yes = "$GCC"; then
5798      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5799    else
5800      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5801    fi
5802    ;;
5803esac
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813if test -n "$ac_tool_prefix"; then
5814  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5815set dummy ${ac_tool_prefix}objdump; ac_word=$2
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817$as_echo_n "checking for $ac_word... " >&6; }
5818if ${ac_cv_prog_OBJDUMP+:} false; then :
5819  $as_echo_n "(cached) " >&6
5820else
5821  if test -n "$OBJDUMP"; then
5822  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5823else
5824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825for as_dir in $PATH
5826do
5827  IFS=$as_save_IFS
5828  test -z "$as_dir" && as_dir=.
5829    for ac_exec_ext in '' $ac_executable_extensions; do
5830  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5831    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5833    break 2
5834  fi
5835done
5836  done
5837IFS=$as_save_IFS
5838
5839fi
5840fi
5841OBJDUMP=$ac_cv_prog_OBJDUMP
5842if test -n "$OBJDUMP"; then
5843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5844$as_echo "$OBJDUMP" >&6; }
5845else
5846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847$as_echo "no" >&6; }
5848fi
5849
5850
5851fi
5852if test -z "$ac_cv_prog_OBJDUMP"; then
5853  ac_ct_OBJDUMP=$OBJDUMP
5854  # Extract the first word of "objdump", so it can be a program name with args.
5855set dummy objdump; ac_word=$2
5856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5857$as_echo_n "checking for $ac_word... " >&6; }
5858if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5859  $as_echo_n "(cached) " >&6
5860else
5861  if test -n "$ac_ct_OBJDUMP"; then
5862  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5863else
5864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865for as_dir in $PATH
5866do
5867  IFS=$as_save_IFS
5868  test -z "$as_dir" && as_dir=.
5869    for ac_exec_ext in '' $ac_executable_extensions; do
5870  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5871    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5872    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5873    break 2
5874  fi
5875done
5876  done
5877IFS=$as_save_IFS
5878
5879fi
5880fi
5881ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5882if test -n "$ac_ct_OBJDUMP"; then
5883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5884$as_echo "$ac_ct_OBJDUMP" >&6; }
5885else
5886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5887$as_echo "no" >&6; }
5888fi
5889
5890  if test "x$ac_ct_OBJDUMP" = x; then
5891    OBJDUMP="false"
5892  else
5893    case $cross_compiling:$ac_tool_warned in
5894yes:)
5895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5897ac_tool_warned=yes ;;
5898esac
5899    OBJDUMP=$ac_ct_OBJDUMP
5900  fi
5901else
5902  OBJDUMP="$ac_cv_prog_OBJDUMP"
5903fi
5904
5905test -z "$OBJDUMP" && OBJDUMP=objdump
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5916$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5917if ${lt_cv_deplibs_check_method+:} false; then :
5918  $as_echo_n "(cached) " >&6
5919else
5920  lt_cv_file_magic_cmd='$MAGIC_CMD'
5921lt_cv_file_magic_test_file=
5922lt_cv_deplibs_check_method='unknown'
5923# Need to set the preceding variable on all platforms that support
5924# interlibrary dependencies.
5925# 'none' -- dependencies not supported.
5926# 'unknown' -- same as none, but documents that we really don't know.
5927# 'pass_all' -- all dependencies passed with no checks.
5928# 'test_compile' -- check by making test program.
5929# 'file_magic [[regex]]' -- check by looking for files in library path
5930# that responds to the $file_magic_cmd with a given extended regex.
5931# If you have 'file' or equivalent on your system and you're not sure
5932# whether 'pass_all' will *always* work, you probably want this one.
5933
5934case $host_os in
5935aix[4-9]*)
5936  lt_cv_deplibs_check_method=pass_all
5937  ;;
5938
5939beos*)
5940  lt_cv_deplibs_check_method=pass_all
5941  ;;
5942
5943bsdi[45]*)
5944  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5945  lt_cv_file_magic_cmd='/usr/bin/file -L'
5946  lt_cv_file_magic_test_file=/shlib/libc.so
5947  ;;
5948
5949cygwin*)
5950  # func_win32_libid is a shell function defined in ltmain.sh
5951  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5952  lt_cv_file_magic_cmd='func_win32_libid'
5953  ;;
5954
5955mingw* | pw32*)
5956  # Base MSYS/MinGW do not provide the 'file' command needed by
5957  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5958  # unless we find 'file', for example because we are cross-compiling.
5959  if ( file / ) >/dev/null 2>&1; then
5960    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5961    lt_cv_file_magic_cmd='func_win32_libid'
5962  else
5963    # Keep this pattern in sync with the one in func_win32_libid.
5964    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5965    lt_cv_file_magic_cmd='$OBJDUMP -f'
5966  fi
5967  ;;
5968
5969cegcc*)
5970  # use the weaker test based on 'objdump'. See mingw*.
5971  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5972  lt_cv_file_magic_cmd='$OBJDUMP -f'
5973  ;;
5974
5975darwin* | rhapsody*)
5976  lt_cv_deplibs_check_method=pass_all
5977  ;;
5978
5979freebsd* | dragonfly*)
5980  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5981    case $host_cpu in
5982    i*86 )
5983      # Not sure whether the presence of OpenBSD here was a mistake.
5984      # Let's accept both of them until this is cleared up.
5985      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5986      lt_cv_file_magic_cmd=/usr/bin/file
5987      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5988      ;;
5989    esac
5990  else
5991    lt_cv_deplibs_check_method=pass_all
5992  fi
5993  ;;
5994
5995haiku*)
5996  lt_cv_deplibs_check_method=pass_all
5997  ;;
5998
5999hpux10.20* | hpux11*)
6000  lt_cv_file_magic_cmd=/usr/bin/file
6001  case $host_cpu in
6002  ia64*)
6003    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6004    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6005    ;;
6006  hppa*64*)
6007    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]'
6008    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6009    ;;
6010  *)
6011    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6012    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6013    ;;
6014  esac
6015  ;;
6016
6017interix[3-9]*)
6018  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6019  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6020  ;;
6021
6022irix5* | irix6* | nonstopux*)
6023  case $LD in
6024  *-32|*"-32 ") libmagic=32-bit;;
6025  *-n32|*"-n32 ") libmagic=N32;;
6026  *-64|*"-64 ") libmagic=64-bit;;
6027  *) libmagic=never-match;;
6028  esac
6029  lt_cv_deplibs_check_method=pass_all
6030  ;;
6031
6032# This must be glibc/ELF.
6033linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6034  lt_cv_deplibs_check_method=pass_all
6035  ;;
6036
6037netbsd*)
6038  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6039    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6040  else
6041    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6042  fi
6043  ;;
6044
6045newos6*)
6046  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6047  lt_cv_file_magic_cmd=/usr/bin/file
6048  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6049  ;;
6050
6051*nto* | *qnx*)
6052  lt_cv_deplibs_check_method=pass_all
6053  ;;
6054
6055openbsd* | bitrig*)
6056  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6057    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6058  else
6059    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6060  fi
6061  ;;
6062
6063osf3* | osf4* | osf5*)
6064  lt_cv_deplibs_check_method=pass_all
6065  ;;
6066
6067rdos*)
6068  lt_cv_deplibs_check_method=pass_all
6069  ;;
6070
6071solaris*)
6072  lt_cv_deplibs_check_method=pass_all
6073  ;;
6074
6075sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6076  lt_cv_deplibs_check_method=pass_all
6077  ;;
6078
6079sysv4 | sysv4.3*)
6080  case $host_vendor in
6081  motorola)
6082    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]'
6083    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6084    ;;
6085  ncr)
6086    lt_cv_deplibs_check_method=pass_all
6087    ;;
6088  sequent)
6089    lt_cv_file_magic_cmd='/bin/file'
6090    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6091    ;;
6092  sni)
6093    lt_cv_file_magic_cmd='/bin/file'
6094    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6095    lt_cv_file_magic_test_file=/lib/libc.so
6096    ;;
6097  siemens)
6098    lt_cv_deplibs_check_method=pass_all
6099    ;;
6100  pc)
6101    lt_cv_deplibs_check_method=pass_all
6102    ;;
6103  esac
6104  ;;
6105
6106tpf*)
6107  lt_cv_deplibs_check_method=pass_all
6108  ;;
6109os2*)
6110  lt_cv_deplibs_check_method=pass_all
6111  ;;
6112esac
6113
6114fi
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6116$as_echo "$lt_cv_deplibs_check_method" >&6; }
6117
6118file_magic_glob=
6119want_nocaseglob=no
6120if test "$build" = "$host"; then
6121  case $host_os in
6122  mingw* | pw32*)
6123    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6124      want_nocaseglob=yes
6125    else
6126      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6127    fi
6128    ;;
6129  esac
6130fi
6131
6132file_magic_cmd=$lt_cv_file_magic_cmd
6133deplibs_check_method=$lt_cv_deplibs_check_method
6134test -z "$deplibs_check_method" && deplibs_check_method=unknown
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157if test -n "$ac_tool_prefix"; then
6158  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6159set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6161$as_echo_n "checking for $ac_word... " >&6; }
6162if ${ac_cv_prog_DLLTOOL+:} false; then :
6163  $as_echo_n "(cached) " >&6
6164else
6165  if test -n "$DLLTOOL"; then
6166  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6167else
6168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169for as_dir in $PATH
6170do
6171  IFS=$as_save_IFS
6172  test -z "$as_dir" && as_dir=.
6173    for ac_exec_ext in '' $ac_executable_extensions; do
6174  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6175    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6176    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6177    break 2
6178  fi
6179done
6180  done
6181IFS=$as_save_IFS
6182
6183fi
6184fi
6185DLLTOOL=$ac_cv_prog_DLLTOOL
6186if test -n "$DLLTOOL"; then
6187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6188$as_echo "$DLLTOOL" >&6; }
6189else
6190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6191$as_echo "no" >&6; }
6192fi
6193
6194
6195fi
6196if test -z "$ac_cv_prog_DLLTOOL"; then
6197  ac_ct_DLLTOOL=$DLLTOOL
6198  # Extract the first word of "dlltool", so it can be a program name with args.
6199set dummy dlltool; ac_word=$2
6200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6201$as_echo_n "checking for $ac_word... " >&6; }
6202if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6203  $as_echo_n "(cached) " >&6
6204else
6205  if test -n "$ac_ct_DLLTOOL"; then
6206  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6207else
6208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209for as_dir in $PATH
6210do
6211  IFS=$as_save_IFS
6212  test -z "$as_dir" && as_dir=.
6213    for ac_exec_ext in '' $ac_executable_extensions; do
6214  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6215    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6216    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6217    break 2
6218  fi
6219done
6220  done
6221IFS=$as_save_IFS
6222
6223fi
6224fi
6225ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6226if test -n "$ac_ct_DLLTOOL"; then
6227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6228$as_echo "$ac_ct_DLLTOOL" >&6; }
6229else
6230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6231$as_echo "no" >&6; }
6232fi
6233
6234  if test "x$ac_ct_DLLTOOL" = x; then
6235    DLLTOOL="false"
6236  else
6237    case $cross_compiling:$ac_tool_warned in
6238yes:)
6239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6241ac_tool_warned=yes ;;
6242esac
6243    DLLTOOL=$ac_ct_DLLTOOL
6244  fi
6245else
6246  DLLTOOL="$ac_cv_prog_DLLTOOL"
6247fi
6248
6249test -z "$DLLTOOL" && DLLTOOL=dlltool
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6261$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6262if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6263  $as_echo_n "(cached) " >&6
6264else
6265  lt_cv_sharedlib_from_linklib_cmd='unknown'
6266
6267case $host_os in
6268cygwin* | mingw* | pw32* | cegcc*)
6269  # two different shell functions defined in ltmain.sh;
6270  # decide which one to use based on capabilities of $DLLTOOL
6271  case `$DLLTOOL --help 2>&1` in
6272  *--identify-strict*)
6273    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6274    ;;
6275  *)
6276    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6277    ;;
6278  esac
6279  ;;
6280*)
6281  # fallback: assume linklib IS sharedlib
6282  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6283  ;;
6284esac
6285
6286fi
6287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6288$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6289sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6290test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6291
6292
6293
6294
6295
6296
6297
6298if test -n "$ac_tool_prefix"; then
6299  for ac_prog in ar
6300  do
6301    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6302set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6304$as_echo_n "checking for $ac_word... " >&6; }
6305if ${ac_cv_prog_AR+:} false; then :
6306  $as_echo_n "(cached) " >&6
6307else
6308  if test -n "$AR"; then
6309  ac_cv_prog_AR="$AR" # Let the user override the test.
6310else
6311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312for as_dir in $PATH
6313do
6314  IFS=$as_save_IFS
6315  test -z "$as_dir" && as_dir=.
6316    for ac_exec_ext in '' $ac_executable_extensions; do
6317  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6318    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6319    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6320    break 2
6321  fi
6322done
6323  done
6324IFS=$as_save_IFS
6325
6326fi
6327fi
6328AR=$ac_cv_prog_AR
6329if test -n "$AR"; then
6330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6331$as_echo "$AR" >&6; }
6332else
6333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334$as_echo "no" >&6; }
6335fi
6336
6337
6338    test -n "$AR" && break
6339  done
6340fi
6341if test -z "$AR"; then
6342  ac_ct_AR=$AR
6343  for ac_prog in ar
6344do
6345  # Extract the first word of "$ac_prog", so it can be a program name with args.
6346set dummy $ac_prog; ac_word=$2
6347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348$as_echo_n "checking for $ac_word... " >&6; }
6349if ${ac_cv_prog_ac_ct_AR+:} false; then :
6350  $as_echo_n "(cached) " >&6
6351else
6352  if test -n "$ac_ct_AR"; then
6353  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6354else
6355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356for as_dir in $PATH
6357do
6358  IFS=$as_save_IFS
6359  test -z "$as_dir" && as_dir=.
6360    for ac_exec_ext in '' $ac_executable_extensions; do
6361  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6362    ac_cv_prog_ac_ct_AR="$ac_prog"
6363    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364    break 2
6365  fi
6366done
6367  done
6368IFS=$as_save_IFS
6369
6370fi
6371fi
6372ac_ct_AR=$ac_cv_prog_ac_ct_AR
6373if test -n "$ac_ct_AR"; then
6374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6375$as_echo "$ac_ct_AR" >&6; }
6376else
6377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378$as_echo "no" >&6; }
6379fi
6380
6381
6382  test -n "$ac_ct_AR" && break
6383done
6384
6385  if test "x$ac_ct_AR" = x; then
6386    AR="false"
6387  else
6388    case $cross_compiling:$ac_tool_warned in
6389yes:)
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6392ac_tool_warned=yes ;;
6393esac
6394    AR=$ac_ct_AR
6395  fi
6396fi
6397
6398: ${AR=ar}
6399: ${AR_FLAGS=cru}
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6412$as_echo_n "checking for archiver @FILE support... " >&6; }
6413if ${lt_cv_ar_at_file+:} false; then :
6414  $as_echo_n "(cached) " >&6
6415else
6416  lt_cv_ar_at_file=no
6417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6418/* end confdefs.h.  */
6419
6420int
6421main ()
6422{
6423
6424  ;
6425  return 0;
6426}
6427_ACEOF
6428if ac_fn_c_try_compile "$LINENO"; then :
6429  echo conftest.$ac_objext > conftest.lst
6430      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6431      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6432  (eval $lt_ar_try) 2>&5
6433  ac_status=$?
6434  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6435  test $ac_status = 0; }
6436      if test 0 -eq "$ac_status"; then
6437	# Ensure the archiver fails upon bogus file names.
6438	rm -f conftest.$ac_objext libconftest.a
6439	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6440  (eval $lt_ar_try) 2>&5
6441  ac_status=$?
6442  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6443  test $ac_status = 0; }
6444	if test 0 -ne "$ac_status"; then
6445          lt_cv_ar_at_file=@
6446        fi
6447      fi
6448      rm -f conftest.* libconftest.a
6449
6450fi
6451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6452
6453fi
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6455$as_echo "$lt_cv_ar_at_file" >&6; }
6456
6457if test no = "$lt_cv_ar_at_file"; then
6458  archiver_list_spec=
6459else
6460  archiver_list_spec=$lt_cv_ar_at_file
6461fi
6462
6463
6464
6465
6466
6467
6468
6469if test -n "$ac_tool_prefix"; then
6470  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6471set dummy ${ac_tool_prefix}strip; ac_word=$2
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473$as_echo_n "checking for $ac_word... " >&6; }
6474if ${ac_cv_prog_STRIP+:} false; then :
6475  $as_echo_n "(cached) " >&6
6476else
6477  if test -n "$STRIP"; then
6478  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6479else
6480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481for as_dir in $PATH
6482do
6483  IFS=$as_save_IFS
6484  test -z "$as_dir" && as_dir=.
6485    for ac_exec_ext in '' $ac_executable_extensions; do
6486  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6487    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489    break 2
6490  fi
6491done
6492  done
6493IFS=$as_save_IFS
6494
6495fi
6496fi
6497STRIP=$ac_cv_prog_STRIP
6498if test -n "$STRIP"; then
6499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6500$as_echo "$STRIP" >&6; }
6501else
6502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503$as_echo "no" >&6; }
6504fi
6505
6506
6507fi
6508if test -z "$ac_cv_prog_STRIP"; then
6509  ac_ct_STRIP=$STRIP
6510  # Extract the first word of "strip", so it can be a program name with args.
6511set dummy strip; ac_word=$2
6512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513$as_echo_n "checking for $ac_word... " >&6; }
6514if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6515  $as_echo_n "(cached) " >&6
6516else
6517  if test -n "$ac_ct_STRIP"; then
6518  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6519else
6520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521for as_dir in $PATH
6522do
6523  IFS=$as_save_IFS
6524  test -z "$as_dir" && as_dir=.
6525    for ac_exec_ext in '' $ac_executable_extensions; do
6526  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6527    ac_cv_prog_ac_ct_STRIP="strip"
6528    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529    break 2
6530  fi
6531done
6532  done
6533IFS=$as_save_IFS
6534
6535fi
6536fi
6537ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6538if test -n "$ac_ct_STRIP"; then
6539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6540$as_echo "$ac_ct_STRIP" >&6; }
6541else
6542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543$as_echo "no" >&6; }
6544fi
6545
6546  if test "x$ac_ct_STRIP" = x; then
6547    STRIP=":"
6548  else
6549    case $cross_compiling:$ac_tool_warned in
6550yes:)
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6553ac_tool_warned=yes ;;
6554esac
6555    STRIP=$ac_ct_STRIP
6556  fi
6557else
6558  STRIP="$ac_cv_prog_STRIP"
6559fi
6560
6561test -z "$STRIP" && STRIP=:
6562
6563
6564
6565
6566
6567
6568if test -n "$ac_tool_prefix"; then
6569  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6570set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6572$as_echo_n "checking for $ac_word... " >&6; }
6573if ${ac_cv_prog_RANLIB+:} false; then :
6574  $as_echo_n "(cached) " >&6
6575else
6576  if test -n "$RANLIB"; then
6577  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6578else
6579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580for as_dir in $PATH
6581do
6582  IFS=$as_save_IFS
6583  test -z "$as_dir" && as_dir=.
6584    for ac_exec_ext in '' $ac_executable_extensions; do
6585  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6586    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6587    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6588    break 2
6589  fi
6590done
6591  done
6592IFS=$as_save_IFS
6593
6594fi
6595fi
6596RANLIB=$ac_cv_prog_RANLIB
6597if test -n "$RANLIB"; then
6598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6599$as_echo "$RANLIB" >&6; }
6600else
6601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602$as_echo "no" >&6; }
6603fi
6604
6605
6606fi
6607if test -z "$ac_cv_prog_RANLIB"; then
6608  ac_ct_RANLIB=$RANLIB
6609  # Extract the first word of "ranlib", so it can be a program name with args.
6610set dummy ranlib; ac_word=$2
6611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612$as_echo_n "checking for $ac_word... " >&6; }
6613if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6614  $as_echo_n "(cached) " >&6
6615else
6616  if test -n "$ac_ct_RANLIB"; then
6617  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6618else
6619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620for as_dir in $PATH
6621do
6622  IFS=$as_save_IFS
6623  test -z "$as_dir" && as_dir=.
6624    for ac_exec_ext in '' $ac_executable_extensions; do
6625  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6626    ac_cv_prog_ac_ct_RANLIB="ranlib"
6627    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628    break 2
6629  fi
6630done
6631  done
6632IFS=$as_save_IFS
6633
6634fi
6635fi
6636ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6637if test -n "$ac_ct_RANLIB"; then
6638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6639$as_echo "$ac_ct_RANLIB" >&6; }
6640else
6641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642$as_echo "no" >&6; }
6643fi
6644
6645  if test "x$ac_ct_RANLIB" = x; then
6646    RANLIB=":"
6647  else
6648    case $cross_compiling:$ac_tool_warned in
6649yes:)
6650{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6651$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6652ac_tool_warned=yes ;;
6653esac
6654    RANLIB=$ac_ct_RANLIB
6655  fi
6656else
6657  RANLIB="$ac_cv_prog_RANLIB"
6658fi
6659
6660test -z "$RANLIB" && RANLIB=:
6661
6662
6663
6664
6665
6666
6667# Determine commands to create old-style static archives.
6668old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6669old_postinstall_cmds='chmod 644 $oldlib'
6670old_postuninstall_cmds=
6671
6672if test -n "$RANLIB"; then
6673  case $host_os in
6674  bitrig* | openbsd*)
6675    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6676    ;;
6677  *)
6678    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6679    ;;
6680  esac
6681  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6682fi
6683
6684case $host_os in
6685  darwin*)
6686    lock_old_archive_extraction=yes ;;
6687  *)
6688    lock_old_archive_extraction=no ;;
6689esac
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729# If no C compiler was specified, use CC.
6730LTCC=${LTCC-"$CC"}
6731
6732# If no C compiler flags were specified, use CFLAGS.
6733LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6734
6735# Allow CC to be a program name with arguments.
6736compiler=$CC
6737
6738
6739# Check for command to grab the raw symbol name followed by C symbol from nm.
6740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6741$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6742if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6743  $as_echo_n "(cached) " >&6
6744else
6745
6746# These are sane defaults that work on at least a few old systems.
6747# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6748
6749# Character class describing NM global symbol codes.
6750symcode='[BCDEGRST]'
6751
6752# Regexp to match symbols that can be accessed directly from C.
6753sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6754
6755# Define system-specific variables.
6756case $host_os in
6757aix*)
6758  symcode='[BCDT]'
6759  ;;
6760cygwin* | mingw* | pw32* | cegcc*)
6761  symcode='[ABCDGISTW]'
6762  ;;
6763hpux*)
6764  if test ia64 = "$host_cpu"; then
6765    symcode='[ABCDEGRST]'
6766  fi
6767  ;;
6768irix* | nonstopux*)
6769  symcode='[BCDEGRST]'
6770  ;;
6771osf*)
6772  symcode='[BCDEGQRST]'
6773  ;;
6774solaris*)
6775  symcode='[BDRT]'
6776  ;;
6777sco3.2v5*)
6778  symcode='[DT]'
6779  ;;
6780sysv4.2uw2*)
6781  symcode='[DT]'
6782  ;;
6783sysv5* | sco5v6* | unixware* | OpenUNIX*)
6784  symcode='[ABDT]'
6785  ;;
6786sysv4)
6787  symcode='[DFNSTU]'
6788  ;;
6789esac
6790
6791# If we're using GNU nm, then use its standard symbol codes.
6792case `$NM -V 2>&1` in
6793*GNU* | *'with BFD'*)
6794  symcode='[ABCDGIRSTW]' ;;
6795esac
6796
6797if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6798  # Gets list of data symbols to import.
6799  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6800  # Adjust the below global symbol transforms to fixup imported variables.
6801  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6802  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6803  lt_c_name_lib_hook="\
6804  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6805  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6806else
6807  # Disable hooks by default.
6808  lt_cv_sys_global_symbol_to_import=
6809  lt_cdecl_hook=
6810  lt_c_name_hook=
6811  lt_c_name_lib_hook=
6812fi
6813
6814# Transform an extracted symbol line into a proper C declaration.
6815# Some systems (esp. on ia64) link data and code symbols differently,
6816# so use this general approach.
6817lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6818$lt_cdecl_hook\
6819" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6820" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6821
6822# Transform an extracted symbol line into symbol name and symbol address
6823lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6824$lt_c_name_hook\
6825" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6826" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6827
6828# Transform an extracted symbol line into symbol name with lib prefix and
6829# symbol address.
6830lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6831$lt_c_name_lib_hook\
6832" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6833" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6834" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6835
6836# Handle CRLF in mingw tool chain
6837opt_cr=
6838case $build_os in
6839mingw*)
6840  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6841  ;;
6842esac
6843
6844# Try without a prefix underscore, then with it.
6845for ac_symprfx in "" "_"; do
6846
6847  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6848  symxfrm="\\1 $ac_symprfx\\2 \\2"
6849
6850  # Write the raw and C identifiers.
6851  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6852    # Fake it for dumpbin and say T for any non-static function,
6853    # D for any global variable and I for any imported variable.
6854    # Also find C++ and __fastcall symbols from MSVC++,
6855    # which start with @ or ?.
6856    lt_cv_sys_global_symbol_pipe="$AWK '"\
6857"     {last_section=section; section=\$ 3};"\
6858"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6859"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6860"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6861"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6862"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6863"     \$ 0!~/External *\|/{next};"\
6864"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6865"     {if(hide[section]) next};"\
6866"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6867"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6868"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6869"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6870"     ' prfx=^$ac_symprfx"
6871  else
6872    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6873  fi
6874  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6875
6876  # Check to see that the pipe works correctly.
6877  pipe_works=no
6878
6879  rm -f conftest*
6880  cat > conftest.$ac_ext <<_LT_EOF
6881#ifdef __cplusplus
6882extern "C" {
6883#endif
6884char nm_test_var;
6885void nm_test_func(void);
6886void nm_test_func(void){}
6887#ifdef __cplusplus
6888}
6889#endif
6890int main(){nm_test_var='a';nm_test_func();return(0);}
6891_LT_EOF
6892
6893  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6894  (eval $ac_compile) 2>&5
6895  ac_status=$?
6896  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6897  test $ac_status = 0; }; then
6898    # Now try to grab the symbols.
6899    nlist=conftest.nm
6900    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6901  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6902  ac_status=$?
6903  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6904  test $ac_status = 0; } && test -s "$nlist"; then
6905      # Try sorting and uniquifying the output.
6906      if sort "$nlist" | uniq > "$nlist"T; then
6907	mv -f "$nlist"T "$nlist"
6908      else
6909	rm -f "$nlist"T
6910      fi
6911
6912      # Make sure that we snagged all the symbols we need.
6913      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6914	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6915	  cat <<_LT_EOF > conftest.$ac_ext
6916/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6917#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6918/* DATA imports from DLLs on WIN32 can't be const, because runtime
6919   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6920# define LT_DLSYM_CONST
6921#elif defined __osf__
6922/* This system does not cope well with relocations in const data.  */
6923# define LT_DLSYM_CONST
6924#else
6925# define LT_DLSYM_CONST const
6926#endif
6927
6928#ifdef __cplusplus
6929extern "C" {
6930#endif
6931
6932_LT_EOF
6933	  # Now generate the symbol file.
6934	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6935
6936	  cat <<_LT_EOF >> conftest.$ac_ext
6937
6938/* The mapping between symbol names and symbols.  */
6939LT_DLSYM_CONST struct {
6940  const char *name;
6941  void       *address;
6942}
6943lt__PROGRAM__LTX_preloaded_symbols[] =
6944{
6945  { "@PROGRAM@", (void *) 0 },
6946_LT_EOF
6947	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6948	  cat <<\_LT_EOF >> conftest.$ac_ext
6949  {0, (void *) 0}
6950};
6951
6952/* This works around a problem in FreeBSD linker */
6953#ifdef FREEBSD_WORKAROUND
6954static const void *lt_preloaded_setup() {
6955  return lt__PROGRAM__LTX_preloaded_symbols;
6956}
6957#endif
6958
6959#ifdef __cplusplus
6960}
6961#endif
6962_LT_EOF
6963	  # Now try linking the two files.
6964	  mv conftest.$ac_objext conftstm.$ac_objext
6965	  lt_globsym_save_LIBS=$LIBS
6966	  lt_globsym_save_CFLAGS=$CFLAGS
6967	  LIBS=conftstm.$ac_objext
6968	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6969	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6970  (eval $ac_link) 2>&5
6971  ac_status=$?
6972  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6973  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6974	    pipe_works=yes
6975	  fi
6976	  LIBS=$lt_globsym_save_LIBS
6977	  CFLAGS=$lt_globsym_save_CFLAGS
6978	else
6979	  echo "cannot find nm_test_func in $nlist" >&5
6980	fi
6981      else
6982	echo "cannot find nm_test_var in $nlist" >&5
6983      fi
6984    else
6985      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6986    fi
6987  else
6988    echo "$progname: failed program was:" >&5
6989    cat conftest.$ac_ext >&5
6990  fi
6991  rm -rf conftest* conftst*
6992
6993  # Do not use the global_symbol_pipe unless it works.
6994  if test yes = "$pipe_works"; then
6995    break
6996  else
6997    lt_cv_sys_global_symbol_pipe=
6998  fi
6999done
7000
7001fi
7002
7003if test -z "$lt_cv_sys_global_symbol_pipe"; then
7004  lt_cv_sys_global_symbol_to_cdecl=
7005fi
7006if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7008$as_echo "failed" >&6; }
7009else
7010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7011$as_echo "ok" >&6; }
7012fi
7013
7014# Response file support.
7015if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7016  nm_file_list_spec='@'
7017elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7018  nm_file_list_spec='@'
7019fi
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7058$as_echo_n "checking for sysroot... " >&6; }
7059
7060# Check whether --with-sysroot was given.
7061if test "${with_sysroot+set}" = set; then :
7062  withval=$with_sysroot;
7063else
7064  with_sysroot=no
7065fi
7066
7067
7068lt_sysroot=
7069case $with_sysroot in #(
7070 yes)
7071   if test yes = "$GCC"; then
7072     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7073   fi
7074   ;; #(
7075 /*)
7076   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7077   ;; #(
7078 no|'')
7079   ;; #(
7080 *)
7081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7082$as_echo "$with_sysroot" >&6; }
7083   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7084   ;;
7085esac
7086
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7088$as_echo "${lt_sysroot:-no}" >&6; }
7089
7090
7091
7092
7093
7094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7095$as_echo_n "checking for a working dd... " >&6; }
7096if ${ac_cv_path_lt_DD+:} false; then :
7097  $as_echo_n "(cached) " >&6
7098else
7099  printf 0123456789abcdef0123456789abcdef >conftest.i
7100cat conftest.i conftest.i >conftest2.i
7101: ${lt_DD:=$DD}
7102if test -z "$lt_DD"; then
7103  ac_path_lt_DD_found=false
7104  # Loop through the user's path and test for each of PROGNAME-LIST
7105  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106for as_dir in $PATH
7107do
7108  IFS=$as_save_IFS
7109  test -z "$as_dir" && as_dir=.
7110    for ac_prog in dd; do
7111    for ac_exec_ext in '' $ac_executable_extensions; do
7112      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7113      as_fn_executable_p "$ac_path_lt_DD" || continue
7114if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7115  cmp -s conftest.i conftest.out \
7116  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7117fi
7118      $ac_path_lt_DD_found && break 3
7119    done
7120  done
7121  done
7122IFS=$as_save_IFS
7123  if test -z "$ac_cv_path_lt_DD"; then
7124    :
7125  fi
7126else
7127  ac_cv_path_lt_DD=$lt_DD
7128fi
7129
7130rm -f conftest.i conftest2.i conftest.out
7131fi
7132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7133$as_echo "$ac_cv_path_lt_DD" >&6; }
7134
7135
7136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7137$as_echo_n "checking how to truncate binary pipes... " >&6; }
7138if ${lt_cv_truncate_bin+:} false; then :
7139  $as_echo_n "(cached) " >&6
7140else
7141  printf 0123456789abcdef0123456789abcdef >conftest.i
7142cat conftest.i conftest.i >conftest2.i
7143lt_cv_truncate_bin=
7144if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7145  cmp -s conftest.i conftest.out \
7146  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7147fi
7148rm -f conftest.i conftest2.i conftest.out
7149test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7150fi
7151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7152$as_echo "$lt_cv_truncate_bin" >&6; }
7153
7154
7155
7156
7157
7158
7159
7160# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7161func_cc_basename ()
7162{
7163    for cc_temp in $*""; do
7164      case $cc_temp in
7165        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7166        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7167        \-*) ;;
7168        *) break;;
7169      esac
7170    done
7171    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7172}
7173
7174# Check whether --enable-libtool-lock was given.
7175if test "${enable_libtool_lock+set}" = set; then :
7176  enableval=$enable_libtool_lock;
7177fi
7178
7179test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7180
7181# Some flags need to be propagated to the compiler or linker for good
7182# libtool support.
7183case $host in
7184ia64-*-hpux*)
7185  # Find out what ABI is being produced by ac_compile, and set mode
7186  # options accordingly.
7187  echo 'int i;' > conftest.$ac_ext
7188  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7189  (eval $ac_compile) 2>&5
7190  ac_status=$?
7191  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7192  test $ac_status = 0; }; then
7193    case `/usr/bin/file conftest.$ac_objext` in
7194      *ELF-32*)
7195	HPUX_IA64_MODE=32
7196	;;
7197      *ELF-64*)
7198	HPUX_IA64_MODE=64
7199	;;
7200    esac
7201  fi
7202  rm -rf conftest*
7203  ;;
7204*-*-irix6*)
7205  # Find out what ABI is being produced by ac_compile, and set linker
7206  # options accordingly.
7207  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7208  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7209  (eval $ac_compile) 2>&5
7210  ac_status=$?
7211  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7212  test $ac_status = 0; }; then
7213    if test yes = "$lt_cv_prog_gnu_ld"; then
7214      case `/usr/bin/file conftest.$ac_objext` in
7215	*32-bit*)
7216	  LD="${LD-ld} -melf32bsmip"
7217	  ;;
7218	*N32*)
7219	  LD="${LD-ld} -melf32bmipn32"
7220	  ;;
7221	*64-bit*)
7222	  LD="${LD-ld} -melf64bmip"
7223	;;
7224      esac
7225    else
7226      case `/usr/bin/file conftest.$ac_objext` in
7227	*32-bit*)
7228	  LD="${LD-ld} -32"
7229	  ;;
7230	*N32*)
7231	  LD="${LD-ld} -n32"
7232	  ;;
7233	*64-bit*)
7234	  LD="${LD-ld} -64"
7235	  ;;
7236      esac
7237    fi
7238  fi
7239  rm -rf conftest*
7240  ;;
7241
7242mips64*-*linux*)
7243  # Find out what ABI is being produced by ac_compile, and set linker
7244  # options accordingly.
7245  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7246  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7247  (eval $ac_compile) 2>&5
7248  ac_status=$?
7249  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7250  test $ac_status = 0; }; then
7251    emul=elf
7252    case `/usr/bin/file conftest.$ac_objext` in
7253      *32-bit*)
7254	emul="${emul}32"
7255	;;
7256      *64-bit*)
7257	emul="${emul}64"
7258	;;
7259    esac
7260    case `/usr/bin/file conftest.$ac_objext` in
7261      *MSB*)
7262	emul="${emul}btsmip"
7263	;;
7264      *LSB*)
7265	emul="${emul}ltsmip"
7266	;;
7267    esac
7268    case `/usr/bin/file conftest.$ac_objext` in
7269      *N32*)
7270	emul="${emul}n32"
7271	;;
7272    esac
7273    LD="${LD-ld} -m $emul"
7274  fi
7275  rm -rf conftest*
7276  ;;
7277
7278x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7279s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7280  # Find out what ABI is being produced by ac_compile, and set linker
7281  # options accordingly.  Note that the listed cases only cover the
7282  # situations where additional linker options are needed (such as when
7283  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7284  # vice versa); the common cases where no linker options are needed do
7285  # not appear in the list.
7286  echo 'int i;' > conftest.$ac_ext
7287  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7288  (eval $ac_compile) 2>&5
7289  ac_status=$?
7290  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7291  test $ac_status = 0; }; then
7292    case `/usr/bin/file conftest.o` in
7293      *32-bit*)
7294	case $host in
7295	  x86_64-*kfreebsd*-gnu)
7296	    LD="${LD-ld} -m elf_i386_fbsd"
7297	    ;;
7298	  x86_64-*linux*)
7299	    case `/usr/bin/file conftest.o` in
7300	      *x86-64*)
7301		LD="${LD-ld} -m elf32_x86_64"
7302		;;
7303	      *)
7304		LD="${LD-ld} -m elf_i386"
7305		;;
7306	    esac
7307	    ;;
7308	  powerpc64le-*linux*)
7309	    LD="${LD-ld} -m elf32lppclinux"
7310	    ;;
7311	  powerpc64-*linux*)
7312	    LD="${LD-ld} -m elf32ppclinux"
7313	    ;;
7314	  s390x-*linux*)
7315	    LD="${LD-ld} -m elf_s390"
7316	    ;;
7317	  sparc64-*linux*)
7318	    LD="${LD-ld} -m elf32_sparc"
7319	    ;;
7320	esac
7321	;;
7322      *64-bit*)
7323	case $host in
7324	  x86_64-*kfreebsd*-gnu)
7325	    LD="${LD-ld} -m elf_x86_64_fbsd"
7326	    ;;
7327	  x86_64-*linux*)
7328	    LD="${LD-ld} -m elf_x86_64"
7329	    ;;
7330	  powerpcle-*linux*)
7331	    LD="${LD-ld} -m elf64lppc"
7332	    ;;
7333	  powerpc-*linux*)
7334	    LD="${LD-ld} -m elf64ppc"
7335	    ;;
7336	  s390*-*linux*|s390*-*tpf*)
7337	    LD="${LD-ld} -m elf64_s390"
7338	    ;;
7339	  sparc*-*linux*)
7340	    LD="${LD-ld} -m elf64_sparc"
7341	    ;;
7342	esac
7343	;;
7344    esac
7345  fi
7346  rm -rf conftest*
7347  ;;
7348
7349*-*-sco3.2v5*)
7350  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7351  SAVE_CFLAGS=$CFLAGS
7352  CFLAGS="$CFLAGS -belf"
7353  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7354$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7355if ${lt_cv_cc_needs_belf+:} false; then :
7356  $as_echo_n "(cached) " >&6
7357else
7358  ac_ext=c
7359ac_cpp='$CPP $CPPFLAGS'
7360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7362ac_compiler_gnu=$ac_cv_c_compiler_gnu
7363
7364     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365/* end confdefs.h.  */
7366
7367int
7368main ()
7369{
7370
7371  ;
7372  return 0;
7373}
7374_ACEOF
7375if ac_fn_c_try_link "$LINENO"; then :
7376  lt_cv_cc_needs_belf=yes
7377else
7378  lt_cv_cc_needs_belf=no
7379fi
7380rm -f core conftest.err conftest.$ac_objext \
7381    conftest$ac_exeext conftest.$ac_ext
7382     ac_ext=c
7383ac_cpp='$CPP $CPPFLAGS'
7384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7386ac_compiler_gnu=$ac_cv_c_compiler_gnu
7387
7388fi
7389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7390$as_echo "$lt_cv_cc_needs_belf" >&6; }
7391  if test yes != "$lt_cv_cc_needs_belf"; then
7392    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7393    CFLAGS=$SAVE_CFLAGS
7394  fi
7395  ;;
7396*-*solaris*)
7397  # Find out what ABI is being produced by ac_compile, and set linker
7398  # options accordingly.
7399  echo 'int i;' > conftest.$ac_ext
7400  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7401  (eval $ac_compile) 2>&5
7402  ac_status=$?
7403  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7404  test $ac_status = 0; }; then
7405    case `/usr/bin/file conftest.o` in
7406    *64-bit*)
7407      case $lt_cv_prog_gnu_ld in
7408      yes*)
7409        case $host in
7410        i?86-*-solaris*|x86_64-*-solaris*)
7411          LD="${LD-ld} -m elf_x86_64"
7412          ;;
7413        sparc*-*-solaris*)
7414          LD="${LD-ld} -m elf64_sparc"
7415          ;;
7416        esac
7417        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7418        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7419          LD=${LD-ld}_sol2
7420        fi
7421        ;;
7422      *)
7423	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7424	  LD="${LD-ld} -64"
7425	fi
7426	;;
7427      esac
7428      ;;
7429    esac
7430  fi
7431  rm -rf conftest*
7432  ;;
7433esac
7434
7435need_locks=$enable_libtool_lock
7436
7437if test -n "$ac_tool_prefix"; then
7438  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7439set dummy ${ac_tool_prefix}mt; ac_word=$2
7440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7441$as_echo_n "checking for $ac_word... " >&6; }
7442if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7443  $as_echo_n "(cached) " >&6
7444else
7445  if test -n "$MANIFEST_TOOL"; then
7446  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7447else
7448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449for as_dir in $PATH
7450do
7451  IFS=$as_save_IFS
7452  test -z "$as_dir" && as_dir=.
7453    for ac_exec_ext in '' $ac_executable_extensions; do
7454  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7455    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7456    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7457    break 2
7458  fi
7459done
7460  done
7461IFS=$as_save_IFS
7462
7463fi
7464fi
7465MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7466if test -n "$MANIFEST_TOOL"; then
7467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7468$as_echo "$MANIFEST_TOOL" >&6; }
7469else
7470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7471$as_echo "no" >&6; }
7472fi
7473
7474
7475fi
7476if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7477  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7478  # Extract the first word of "mt", so it can be a program name with args.
7479set dummy mt; ac_word=$2
7480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7481$as_echo_n "checking for $ac_word... " >&6; }
7482if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7483  $as_echo_n "(cached) " >&6
7484else
7485  if test -n "$ac_ct_MANIFEST_TOOL"; then
7486  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7487else
7488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489for as_dir in $PATH
7490do
7491  IFS=$as_save_IFS
7492  test -z "$as_dir" && as_dir=.
7493    for ac_exec_ext in '' $ac_executable_extensions; do
7494  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7495    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7496    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7497    break 2
7498  fi
7499done
7500  done
7501IFS=$as_save_IFS
7502
7503fi
7504fi
7505ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7506if test -n "$ac_ct_MANIFEST_TOOL"; then
7507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7508$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7509else
7510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7511$as_echo "no" >&6; }
7512fi
7513
7514  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7515    MANIFEST_TOOL=":"
7516  else
7517    case $cross_compiling:$ac_tool_warned in
7518yes:)
7519{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7520$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7521ac_tool_warned=yes ;;
7522esac
7523    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7524  fi
7525else
7526  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7527fi
7528
7529test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7531$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7532if ${lt_cv_path_mainfest_tool+:} false; then :
7533  $as_echo_n "(cached) " >&6
7534else
7535  lt_cv_path_mainfest_tool=no
7536  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7537  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7538  cat conftest.err >&5
7539  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7540    lt_cv_path_mainfest_tool=yes
7541  fi
7542  rm -f conftest*
7543fi
7544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7545$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7546if test yes != "$lt_cv_path_mainfest_tool"; then
7547  MANIFEST_TOOL=:
7548fi
7549
7550
7551
7552
7553
7554
7555  case $host_os in
7556    rhapsody* | darwin*)
7557    if test -n "$ac_tool_prefix"; then
7558  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7559set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561$as_echo_n "checking for $ac_word... " >&6; }
7562if ${ac_cv_prog_DSYMUTIL+:} false; then :
7563  $as_echo_n "(cached) " >&6
7564else
7565  if test -n "$DSYMUTIL"; then
7566  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7567else
7568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569for as_dir in $PATH
7570do
7571  IFS=$as_save_IFS
7572  test -z "$as_dir" && as_dir=.
7573    for ac_exec_ext in '' $ac_executable_extensions; do
7574  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7575    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7576    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7577    break 2
7578  fi
7579done
7580  done
7581IFS=$as_save_IFS
7582
7583fi
7584fi
7585DSYMUTIL=$ac_cv_prog_DSYMUTIL
7586if test -n "$DSYMUTIL"; then
7587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7588$as_echo "$DSYMUTIL" >&6; }
7589else
7590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591$as_echo "no" >&6; }
7592fi
7593
7594
7595fi
7596if test -z "$ac_cv_prog_DSYMUTIL"; then
7597  ac_ct_DSYMUTIL=$DSYMUTIL
7598  # Extract the first word of "dsymutil", so it can be a program name with args.
7599set dummy dsymutil; ac_word=$2
7600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7601$as_echo_n "checking for $ac_word... " >&6; }
7602if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7603  $as_echo_n "(cached) " >&6
7604else
7605  if test -n "$ac_ct_DSYMUTIL"; then
7606  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7607else
7608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609for as_dir in $PATH
7610do
7611  IFS=$as_save_IFS
7612  test -z "$as_dir" && as_dir=.
7613    for ac_exec_ext in '' $ac_executable_extensions; do
7614  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7615    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7616    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7617    break 2
7618  fi
7619done
7620  done
7621IFS=$as_save_IFS
7622
7623fi
7624fi
7625ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7626if test -n "$ac_ct_DSYMUTIL"; then
7627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7628$as_echo "$ac_ct_DSYMUTIL" >&6; }
7629else
7630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631$as_echo "no" >&6; }
7632fi
7633
7634  if test "x$ac_ct_DSYMUTIL" = x; then
7635    DSYMUTIL=":"
7636  else
7637    case $cross_compiling:$ac_tool_warned in
7638yes:)
7639{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7641ac_tool_warned=yes ;;
7642esac
7643    DSYMUTIL=$ac_ct_DSYMUTIL
7644  fi
7645else
7646  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7647fi
7648
7649    if test -n "$ac_tool_prefix"; then
7650  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7651set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7653$as_echo_n "checking for $ac_word... " >&6; }
7654if ${ac_cv_prog_NMEDIT+:} false; then :
7655  $as_echo_n "(cached) " >&6
7656else
7657  if test -n "$NMEDIT"; then
7658  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7659else
7660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661for as_dir in $PATH
7662do
7663  IFS=$as_save_IFS
7664  test -z "$as_dir" && as_dir=.
7665    for ac_exec_ext in '' $ac_executable_extensions; do
7666  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7667    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7668    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7669    break 2
7670  fi
7671done
7672  done
7673IFS=$as_save_IFS
7674
7675fi
7676fi
7677NMEDIT=$ac_cv_prog_NMEDIT
7678if test -n "$NMEDIT"; then
7679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7680$as_echo "$NMEDIT" >&6; }
7681else
7682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683$as_echo "no" >&6; }
7684fi
7685
7686
7687fi
7688if test -z "$ac_cv_prog_NMEDIT"; then
7689  ac_ct_NMEDIT=$NMEDIT
7690  # Extract the first word of "nmedit", so it can be a program name with args.
7691set dummy nmedit; ac_word=$2
7692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7693$as_echo_n "checking for $ac_word... " >&6; }
7694if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7695  $as_echo_n "(cached) " >&6
7696else
7697  if test -n "$ac_ct_NMEDIT"; then
7698  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7699else
7700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701for as_dir in $PATH
7702do
7703  IFS=$as_save_IFS
7704  test -z "$as_dir" && as_dir=.
7705    for ac_exec_ext in '' $ac_executable_extensions; do
7706  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7707    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7708    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7709    break 2
7710  fi
7711done
7712  done
7713IFS=$as_save_IFS
7714
7715fi
7716fi
7717ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7718if test -n "$ac_ct_NMEDIT"; then
7719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7720$as_echo "$ac_ct_NMEDIT" >&6; }
7721else
7722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723$as_echo "no" >&6; }
7724fi
7725
7726  if test "x$ac_ct_NMEDIT" = x; then
7727    NMEDIT=":"
7728  else
7729    case $cross_compiling:$ac_tool_warned in
7730yes:)
7731{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7732$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7733ac_tool_warned=yes ;;
7734esac
7735    NMEDIT=$ac_ct_NMEDIT
7736  fi
7737else
7738  NMEDIT="$ac_cv_prog_NMEDIT"
7739fi
7740
7741    if test -n "$ac_tool_prefix"; then
7742  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7743set dummy ${ac_tool_prefix}lipo; ac_word=$2
7744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7745$as_echo_n "checking for $ac_word... " >&6; }
7746if ${ac_cv_prog_LIPO+:} false; then :
7747  $as_echo_n "(cached) " >&6
7748else
7749  if test -n "$LIPO"; then
7750  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7751else
7752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7753for as_dir in $PATH
7754do
7755  IFS=$as_save_IFS
7756  test -z "$as_dir" && as_dir=.
7757    for ac_exec_ext in '' $ac_executable_extensions; do
7758  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7759    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7760    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7761    break 2
7762  fi
7763done
7764  done
7765IFS=$as_save_IFS
7766
7767fi
7768fi
7769LIPO=$ac_cv_prog_LIPO
7770if test -n "$LIPO"; then
7771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7772$as_echo "$LIPO" >&6; }
7773else
7774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775$as_echo "no" >&6; }
7776fi
7777
7778
7779fi
7780if test -z "$ac_cv_prog_LIPO"; then
7781  ac_ct_LIPO=$LIPO
7782  # Extract the first word of "lipo", so it can be a program name with args.
7783set dummy lipo; ac_word=$2
7784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785$as_echo_n "checking for $ac_word... " >&6; }
7786if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7787  $as_echo_n "(cached) " >&6
7788else
7789  if test -n "$ac_ct_LIPO"; then
7790  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7791else
7792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793for as_dir in $PATH
7794do
7795  IFS=$as_save_IFS
7796  test -z "$as_dir" && as_dir=.
7797    for ac_exec_ext in '' $ac_executable_extensions; do
7798  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7799    ac_cv_prog_ac_ct_LIPO="lipo"
7800    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7801    break 2
7802  fi
7803done
7804  done
7805IFS=$as_save_IFS
7806
7807fi
7808fi
7809ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7810if test -n "$ac_ct_LIPO"; then
7811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7812$as_echo "$ac_ct_LIPO" >&6; }
7813else
7814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815$as_echo "no" >&6; }
7816fi
7817
7818  if test "x$ac_ct_LIPO" = x; then
7819    LIPO=":"
7820  else
7821    case $cross_compiling:$ac_tool_warned in
7822yes:)
7823{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7825ac_tool_warned=yes ;;
7826esac
7827    LIPO=$ac_ct_LIPO
7828  fi
7829else
7830  LIPO="$ac_cv_prog_LIPO"
7831fi
7832
7833    if test -n "$ac_tool_prefix"; then
7834  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7835set dummy ${ac_tool_prefix}otool; ac_word=$2
7836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7837$as_echo_n "checking for $ac_word... " >&6; }
7838if ${ac_cv_prog_OTOOL+:} false; then :
7839  $as_echo_n "(cached) " >&6
7840else
7841  if test -n "$OTOOL"; then
7842  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7843else
7844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845for as_dir in $PATH
7846do
7847  IFS=$as_save_IFS
7848  test -z "$as_dir" && as_dir=.
7849    for ac_exec_ext in '' $ac_executable_extensions; do
7850  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7851    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7852    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7853    break 2
7854  fi
7855done
7856  done
7857IFS=$as_save_IFS
7858
7859fi
7860fi
7861OTOOL=$ac_cv_prog_OTOOL
7862if test -n "$OTOOL"; then
7863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7864$as_echo "$OTOOL" >&6; }
7865else
7866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867$as_echo "no" >&6; }
7868fi
7869
7870
7871fi
7872if test -z "$ac_cv_prog_OTOOL"; then
7873  ac_ct_OTOOL=$OTOOL
7874  # Extract the first word of "otool", so it can be a program name with args.
7875set dummy otool; ac_word=$2
7876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877$as_echo_n "checking for $ac_word... " >&6; }
7878if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7879  $as_echo_n "(cached) " >&6
7880else
7881  if test -n "$ac_ct_OTOOL"; then
7882  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7883else
7884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885for as_dir in $PATH
7886do
7887  IFS=$as_save_IFS
7888  test -z "$as_dir" && as_dir=.
7889    for ac_exec_ext in '' $ac_executable_extensions; do
7890  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7891    ac_cv_prog_ac_ct_OTOOL="otool"
7892    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7893    break 2
7894  fi
7895done
7896  done
7897IFS=$as_save_IFS
7898
7899fi
7900fi
7901ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7902if test -n "$ac_ct_OTOOL"; then
7903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7904$as_echo "$ac_ct_OTOOL" >&6; }
7905else
7906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907$as_echo "no" >&6; }
7908fi
7909
7910  if test "x$ac_ct_OTOOL" = x; then
7911    OTOOL=":"
7912  else
7913    case $cross_compiling:$ac_tool_warned in
7914yes:)
7915{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7917ac_tool_warned=yes ;;
7918esac
7919    OTOOL=$ac_ct_OTOOL
7920  fi
7921else
7922  OTOOL="$ac_cv_prog_OTOOL"
7923fi
7924
7925    if test -n "$ac_tool_prefix"; then
7926  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7927set dummy ${ac_tool_prefix}otool64; ac_word=$2
7928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7929$as_echo_n "checking for $ac_word... " >&6; }
7930if ${ac_cv_prog_OTOOL64+:} false; then :
7931  $as_echo_n "(cached) " >&6
7932else
7933  if test -n "$OTOOL64"; then
7934  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7935else
7936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7937for as_dir in $PATH
7938do
7939  IFS=$as_save_IFS
7940  test -z "$as_dir" && as_dir=.
7941    for ac_exec_ext in '' $ac_executable_extensions; do
7942  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7943    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7944    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7945    break 2
7946  fi
7947done
7948  done
7949IFS=$as_save_IFS
7950
7951fi
7952fi
7953OTOOL64=$ac_cv_prog_OTOOL64
7954if test -n "$OTOOL64"; then
7955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7956$as_echo "$OTOOL64" >&6; }
7957else
7958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959$as_echo "no" >&6; }
7960fi
7961
7962
7963fi
7964if test -z "$ac_cv_prog_OTOOL64"; then
7965  ac_ct_OTOOL64=$OTOOL64
7966  # Extract the first word of "otool64", so it can be a program name with args.
7967set dummy otool64; ac_word=$2
7968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7969$as_echo_n "checking for $ac_word... " >&6; }
7970if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7971  $as_echo_n "(cached) " >&6
7972else
7973  if test -n "$ac_ct_OTOOL64"; then
7974  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7975else
7976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977for as_dir in $PATH
7978do
7979  IFS=$as_save_IFS
7980  test -z "$as_dir" && as_dir=.
7981    for ac_exec_ext in '' $ac_executable_extensions; do
7982  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7983    ac_cv_prog_ac_ct_OTOOL64="otool64"
7984    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7985    break 2
7986  fi
7987done
7988  done
7989IFS=$as_save_IFS
7990
7991fi
7992fi
7993ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7994if test -n "$ac_ct_OTOOL64"; then
7995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7996$as_echo "$ac_ct_OTOOL64" >&6; }
7997else
7998  { $as_echo "$as_me: