Makefile.in: Drop dist target
[secnet] / configure
CommitLineData
94759fd3
IJ
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
6b668323 4# Generated by GNU Autoconf 2.69 for secnet 0.1.18+.
94759fd3
IJ
5#
6# Report bugs to <secnet@chiark.greenend.org.uk>.
7#
8#
6b668323 9# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
94759fd3
IJ
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.
6b668323 93as_myself=
94759fd3
IJ
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
6b668323
IJ
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;}
94759fd3
IJ
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
6b668323
IJ
196test x\$exitcode = x0 || exit 1
197test -x / || exit 1"
94759fd3
IJ
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 if (eval "$as_required") 2>/dev/null; then :
204 as_have_required=yes
205else
206 as_have_required=no
207fi
208 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209
210else
211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212as_found=false
213for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214do
215 IFS=$as_save_IFS
216 test -z "$as_dir" && as_dir=.
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir/$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 CONFIG_SHELL=$as_shell as_have_required=yes
226 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
227 break 2
228fi
229fi
230 done;;
231 esac
232 as_found=false
233done
234$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
235 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237fi; }
238IFS=$as_save_IFS
239
240
241 if test "x$CONFIG_SHELL" != x; then :
6b668323
IJ
242 export CONFIG_SHELL
243 # We cannot yet assume a decent shell, so we have to provide a
244# neutralization value for shells without unset; and this also
245# works around shells that cannot unset nonexistent variables.
246# Preserve -v and -x to the replacement shell.
247BASH_ENV=/dev/null
248ENV=/dev/null
249(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250case $- in # ((((
251 *v*x* | *x*v* ) as_opts=-vx ;;
252 *v* ) as_opts=-v ;;
253 *x* ) as_opts=-x ;;
254 * ) as_opts= ;;
255esac
256exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257# Admittedly, this is quite paranoid, since all the known shells bail
258# out after a failed `exec'.
259$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260exit 255
94759fd3
IJ
261fi
262
263 if test x$as_have_required = xno; then :
264 $as_echo "$0: This script requires a shell more modern than all"
265 $as_echo "$0: the shells that I found on your system."
266 if test x${ZSH_VERSION+set} = xset ; then
267 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 $as_echo "$0: Please tell bug-autoconf@gnu.org and
271$0: secnet@chiark.greenend.org.uk about your system,
272$0: including any error possibly output before this
273$0: message. Then install a modern shell, or manually run
274$0: the script under such a shell if you do have one."
275 fi
276 exit 1
277fi
278fi
279fi
280SHELL=${CONFIG_SHELL-/bin/sh}
281export SHELL
282# Unset more variables known to interfere with behavior of common tools.
283CLICOLOR_FORCE= GREP_OPTIONS=
284unset CLICOLOR_FORCE GREP_OPTIONS
285
286## --------------------- ##
287## M4sh Shell Functions. ##
288## --------------------- ##
289# as_fn_unset VAR
290# ---------------
291# Portably unset VAR.
292as_fn_unset ()
293{
294 { eval $1=; unset $1;}
295}
296as_unset=as_fn_unset
297
298# as_fn_set_status STATUS
299# -----------------------
300# Set $? to STATUS, without forking.
301as_fn_set_status ()
302{
303 return $1
304} # as_fn_set_status
305
306# as_fn_exit STATUS
307# -----------------
308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309as_fn_exit ()
310{
311 set +e
312 as_fn_set_status $1
313 exit $1
314} # as_fn_exit
315
316# as_fn_mkdir_p
317# -------------
318# Create "$as_dir" as a directory, including parents if necessary.
319as_fn_mkdir_p ()
320{
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338$as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362} # as_fn_mkdir_p
6b668323
IJ
363
364# as_fn_executable_p FILE
365# -----------------------
366# Test if FILE is an executable regular file.
367as_fn_executable_p ()
368{
369 test -f "$1" && test -x "$1"
370} # as_fn_executable_p
94759fd3
IJ
371# as_fn_append VAR VALUE
372# ----------------------
373# Append the text in VALUE to the end of the definition contained in VAR. Take
374# advantage of any shell optimizations that allow amortized linear growth over
375# repeated appends, instead of the typical quadratic growth present in naive
376# implementations.
377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387fi # as_fn_append
388
389# as_fn_arith ARG...
390# ------------------
391# Perform arithmetic evaluation on the ARGs, and store the result in the
392# global $as_val. Take advantage of shells that can avoid forks. The arguments
393# must be portable across $(()) and expr.
394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404fi # as_fn_arith
405
406
407# as_fn_error STATUS ERROR [LINENO LOG_FD]
408# ----------------------------------------
409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411# script with STATUS, using 1 if that was 0.
412as_fn_error ()
413{
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421} # as_fn_error
422
423if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426else
427 as_expr=false
428fi
429
430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432else
433 as_basename=false
434fi
435
436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438else
439 as_dirname=false
440fi
441
442as_me=`$as_basename -- "$0" ||
443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446$as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461# Avoid depending upon Character Ranges.
462as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465as_cr_digits='0123456789'
466as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
6b668323
IJ
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
94759fd3
IJ
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502}
503
504ECHO_C= ECHO_N= ECHO_T=
505case `echo -n x` in #(((((
506-n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513*)
514 ECHO_N='-n';;
515esac
516
517rm -f conf$$ conf$$.exe conf$$.file
518if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523fi
524if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6b668323 530 # In both cases, we have to default to `cp -pR'.
94759fd3 531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6b668323 532 as_ln_s='cp -pR'
94759fd3
IJ
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
6b668323 536 as_ln_s='cp -pR'
94759fd3
IJ
537 fi
538else
6b668323 539 as_ln_s='cp -pR'
94759fd3
IJ
540fi
541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542rmdir conf$$.dir 2>/dev/null
543
544if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549fi
550
6b668323
IJ
551as_test_x='test -x'
552as_executable_p=as_fn_executable_p
94759fd3
IJ
553
554# Sed expression to map a string onto a valid CPP name.
555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557# Sed expression to map a string onto a valid variable name.
558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561test -n "$DJDIR" || exec 7<&0 </dev/null
562exec 6>&1
563
564# Name of the host.
565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566# so uname gets run too.
567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569#
570# Initializations.
571#
572ac_default_prefix=/usr/local
573ac_clean_files=
574ac_config_libobj_dir=.
575LIBOBJS=
576cross_compiling=no
577subdirs=
578MFLAGS=
579MAKEFLAGS=
580
581# Identity of this package.
582PACKAGE_NAME='secnet'
583PACKAGE_TARNAME='secnet'
00152558
RK
584PACKAGE_VERSION='0.1.18+'
585PACKAGE_STRING='secnet 0.1.18+'
94759fd3
IJ
586PACKAGE_BUGREPORT='secnet@chiark.greenend.org.uk'
587PACKAGE_URL=''
588
589ac_unique_file="secnet.c"
590# Factoring default headers for most tests.
591ac_includes_default="\
592#include <stdio.h>
593#ifdef HAVE_SYS_TYPES_H
594# include <sys/types.h>
595#endif
596#ifdef HAVE_SYS_STAT_H
597# include <sys/stat.h>
598#endif
599#ifdef STDC_HEADERS
600# include <stdlib.h>
601# include <stddef.h>
602#else
603# ifdef HAVE_STDLIB_H
604# include <stdlib.h>
605# endif
606#endif
607#ifdef HAVE_STRING_H
608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609# include <memory.h>
610# endif
611# include <string.h>
612#endif
613#ifdef HAVE_STRINGS_H
614# include <strings.h>
615#endif
616#ifdef HAVE_INTTYPES_H
617# include <inttypes.h>
618#endif
619#ifdef HAVE_STDINT_H
620# include <stdint.h>
621#endif
622#ifdef HAVE_UNISTD_H
623# include <unistd.h>
624#endif"
625
626ac_subst_vars='LTLIBOBJS
627LIBOBJS
628WRITESTRINGS
629EGREP
630GREP
631CPP
632RM
633INSTALL_DATA
634INSTALL_SCRIPT
635INSTALL_PROGRAM
636OBJEXT
637EXEEXT
638ac_ct_CC
639CPPFLAGS
640LDFLAGS
641CFLAGS
642CC
643SET_MAKE
44bdf5ac 644FINK
94759fd3
IJ
645target_alias
646host_alias
647build_alias
648LIBS
649ECHO_T
650ECHO_N
651ECHO_C
652DEFS
653mandir
654localedir
655libdir
656psdir
657pdfdir
658dvidir
659htmldir
660infodir
661docdir
662oldincludedir
663includedir
37acaef1 664runstatedir
94759fd3
IJ
665localstatedir
666sharedstatedir
667sysconfdir
668datadir
669datarootdir
670libexecdir
671sbindir
672bindir
673program_transform_name
674prefix
675exec_prefix
676PACKAGE_URL
677PACKAGE_BUGREPORT
678PACKAGE_STRING
679PACKAGE_VERSION
680PACKAGE_TARNAME
681PACKAGE_NAME
682PATH_SEPARATOR
683SHELL'
684ac_subst_files=''
685ac_user_opts='
686enable_option_checking
e1b81bd6 687enable_hacky_parallel
94759fd3
IJ
688'
689 ac_precious_vars='build_alias
690host_alias
691target_alias
692CC
693CFLAGS
694LDFLAGS
695LIBS
696CPPFLAGS
697CPP'
698
699
700# Initialize some variables set by options.
701ac_init_help=
702ac_init_version=false
703ac_unrecognized_opts=
704ac_unrecognized_sep=
705# The variables have the same names as the options, with
706# dashes changed to underlines.
707cache_file=/dev/null
708exec_prefix=NONE
709no_create=
710no_recursion=
711prefix=NONE
712program_prefix=NONE
713program_suffix=NONE
714program_transform_name=s,x,x,
715silent=
716site=
717srcdir=
718verbose=
719x_includes=NONE
720x_libraries=NONE
721
722# Installation directory options.
723# These are left unexpanded so users can "make install exec_prefix=/foo"
724# and all the variables that are supposed to be based on exec_prefix
725# by default will actually change.
726# Use braces instead of parens because sh, perl, etc. also accept them.
727# (The list follows the same order as the GNU Coding Standards.)
728bindir='${exec_prefix}/bin'
729sbindir='${exec_prefix}/sbin'
730libexecdir='${exec_prefix}/libexec'
731datarootdir='${prefix}/share'
732datadir='${datarootdir}'
733sysconfdir='${prefix}/etc'
734sharedstatedir='${prefix}/com'
735localstatedir='${prefix}/var'
37acaef1 736runstatedir='${localstatedir}/run'
94759fd3
IJ
737includedir='${prefix}/include'
738oldincludedir='/usr/include'
739docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
740infodir='${datarootdir}/info'
741htmldir='${docdir}'
742dvidir='${docdir}'
743pdfdir='${docdir}'
744psdir='${docdir}'
745libdir='${exec_prefix}/lib'
746localedir='${datarootdir}/locale'
747mandir='${datarootdir}/man'
748
749ac_prev=
750ac_dashdash=
751for ac_option
752do
753 # If the previous option needs an argument, assign it.
754 if test -n "$ac_prev"; then
755 eval $ac_prev=\$ac_option
756 ac_prev=
757 continue
758 fi
759
760 case $ac_option in
761 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
762 *=) ac_optarg= ;;
763 *) ac_optarg=yes ;;
764 esac
765
766 # Accept the important Cygnus configure options, so we can diagnose typos.
767
768 case $ac_dashdash$ac_option in
769 --)
770 ac_dashdash=yes ;;
771
772 -bindir | --bindir | --bindi | --bind | --bin | --bi)
773 ac_prev=bindir ;;
774 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
775 bindir=$ac_optarg ;;
776
777 -build | --build | --buil | --bui | --bu)
778 ac_prev=build_alias ;;
779 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
780 build_alias=$ac_optarg ;;
781
782 -cache-file | --cache-file | --cache-fil | --cache-fi \
783 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
784 ac_prev=cache_file ;;
785 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
786 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
787 cache_file=$ac_optarg ;;
788
789 --config-cache | -C)
790 cache_file=config.cache ;;
791
792 -datadir | --datadir | --datadi | --datad)
793 ac_prev=datadir ;;
794 -datadir=* | --datadir=* | --datadi=* | --datad=*)
795 datadir=$ac_optarg ;;
796
797 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
798 | --dataroo | --dataro | --datar)
799 ac_prev=datarootdir ;;
800 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
801 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
802 datarootdir=$ac_optarg ;;
803
804 -disable-* | --disable-*)
805 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
806 # Reject names that are not valid shell variable names.
807 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
808 as_fn_error $? "invalid feature name: $ac_useropt"
809 ac_useropt_orig=$ac_useropt
810 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
811 case $ac_user_opts in
812 *"
813"enable_$ac_useropt"
814"*) ;;
815 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
816 ac_unrecognized_sep=', ';;
817 esac
818 eval enable_$ac_useropt=no ;;
819
820 -docdir | --docdir | --docdi | --doc | --do)
821 ac_prev=docdir ;;
822 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
823 docdir=$ac_optarg ;;
824
825 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
826 ac_prev=dvidir ;;
827 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
828 dvidir=$ac_optarg ;;
829
830 -enable-* | --enable-*)
831 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
832 # Reject names that are not valid shell variable names.
833 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
834 as_fn_error $? "invalid feature name: $ac_useropt"
835 ac_useropt_orig=$ac_useropt
836 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
837 case $ac_user_opts in
838 *"
839"enable_$ac_useropt"
840"*) ;;
841 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
842 ac_unrecognized_sep=', ';;
843 esac
844 eval enable_$ac_useropt=\$ac_optarg ;;
845
846 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
847 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
848 | --exec | --exe | --ex)
849 ac_prev=exec_prefix ;;
850 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
851 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
852 | --exec=* | --exe=* | --ex=*)
853 exec_prefix=$ac_optarg ;;
854
855 -gas | --gas | --ga | --g)
856 # Obsolete; use --with-gas.
857 with_gas=yes ;;
858
859 -help | --help | --hel | --he | -h)
860 ac_init_help=long ;;
861 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
862 ac_init_help=recursive ;;
863 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
864 ac_init_help=short ;;
865
866 -host | --host | --hos | --ho)
867 ac_prev=host_alias ;;
868 -host=* | --host=* | --hos=* | --ho=*)
869 host_alias=$ac_optarg ;;
870
871 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
872 ac_prev=htmldir ;;
873 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
874 | --ht=*)
875 htmldir=$ac_optarg ;;
876
877 -includedir | --includedir | --includedi | --included | --include \
878 | --includ | --inclu | --incl | --inc)
879 ac_prev=includedir ;;
880 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
881 | --includ=* | --inclu=* | --incl=* | --inc=*)
882 includedir=$ac_optarg ;;
883
884 -infodir | --infodir | --infodi | --infod | --info | --inf)
885 ac_prev=infodir ;;
886 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
887 infodir=$ac_optarg ;;
888
889 -libdir | --libdir | --libdi | --libd)
890 ac_prev=libdir ;;
891 -libdir=* | --libdir=* | --libdi=* | --libd=*)
892 libdir=$ac_optarg ;;
893
894 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
895 | --libexe | --libex | --libe)
896 ac_prev=libexecdir ;;
897 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
898 | --libexe=* | --libex=* | --libe=*)
899 libexecdir=$ac_optarg ;;
900
901 -localedir | --localedir | --localedi | --localed | --locale)
902 ac_prev=localedir ;;
903 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
904 localedir=$ac_optarg ;;
905
906 -localstatedir | --localstatedir | --localstatedi | --localstated \
907 | --localstate | --localstat | --localsta | --localst | --locals)
908 ac_prev=localstatedir ;;
909 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
910 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
911 localstatedir=$ac_optarg ;;
912
913 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
914 ac_prev=mandir ;;
915 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
916 mandir=$ac_optarg ;;
917
918 -nfp | --nfp | --nf)
919 # Obsolete; use --without-fp.
920 with_fp=no ;;
921
922 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
923 | --no-cr | --no-c | -n)
924 no_create=yes ;;
925
926 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
927 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
928 no_recursion=yes ;;
929
930 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
931 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
932 | --oldin | --oldi | --old | --ol | --o)
933 ac_prev=oldincludedir ;;
934 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
935 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
936 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
937 oldincludedir=$ac_optarg ;;
938
939 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
940 ac_prev=prefix ;;
941 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
942 prefix=$ac_optarg ;;
943
944 -program-prefix | --program-prefix | --program-prefi | --program-pref \
945 | --program-pre | --program-pr | --program-p)
946 ac_prev=program_prefix ;;
947 -program-prefix=* | --program-prefix=* | --program-prefi=* \
948 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
949 program_prefix=$ac_optarg ;;
950
951 -program-suffix | --program-suffix | --program-suffi | --program-suff \
952 | --program-suf | --program-su | --program-s)
953 ac_prev=program_suffix ;;
954 -program-suffix=* | --program-suffix=* | --program-suffi=* \
955 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
956 program_suffix=$ac_optarg ;;
957
958 -program-transform-name | --program-transform-name \
959 | --program-transform-nam | --program-transform-na \
960 | --program-transform-n | --program-transform- \
961 | --program-transform | --program-transfor \
962 | --program-transfo | --program-transf \
963 | --program-trans | --program-tran \
964 | --progr-tra | --program-tr | --program-t)
965 ac_prev=program_transform_name ;;
966 -program-transform-name=* | --program-transform-name=* \
967 | --program-transform-nam=* | --program-transform-na=* \
968 | --program-transform-n=* | --program-transform-=* \
969 | --program-transform=* | --program-transfor=* \
970 | --program-transfo=* | --program-transf=* \
971 | --program-trans=* | --program-tran=* \
972 | --progr-tra=* | --program-tr=* | --program-t=*)
973 program_transform_name=$ac_optarg ;;
974
975 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
976 ac_prev=pdfdir ;;
977 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
978 pdfdir=$ac_optarg ;;
979
980 -psdir | --psdir | --psdi | --psd | --ps)
981 ac_prev=psdir ;;
982 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
983 psdir=$ac_optarg ;;
984
985 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
986 | -silent | --silent | --silen | --sile | --sil)
987 silent=yes ;;
988
37acaef1
IJ
989 -runstatedir | --runstatedir | --runstatedi | --runstated \
990 | --runstate | --runstat | --runsta | --runst | --runs \
991 | --run | --ru | --r)
992 ac_prev=runstatedir ;;
993 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
994 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
995 | --run=* | --ru=* | --r=*)
996 runstatedir=$ac_optarg ;;
997
94759fd3
IJ
998 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
999 ac_prev=sbindir ;;
1000 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1001 | --sbi=* | --sb=*)
1002 sbindir=$ac_optarg ;;
1003
1004 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1005 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1006 | --sharedst | --shareds | --shared | --share | --shar \
1007 | --sha | --sh)
1008 ac_prev=sharedstatedir ;;
1009 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1010 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1011 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1012 | --sha=* | --sh=*)
1013 sharedstatedir=$ac_optarg ;;
1014
1015 -site | --site | --sit)
1016 ac_prev=site ;;
1017 -site=* | --site=* | --sit=*)
1018 site=$ac_optarg ;;
1019
1020 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1021 ac_prev=srcdir ;;
1022 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1023 srcdir=$ac_optarg ;;
1024
1025 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1026 | --syscon | --sysco | --sysc | --sys | --sy)
1027 ac_prev=sysconfdir ;;
1028 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1029 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1030 sysconfdir=$ac_optarg ;;
1031
1032 -target | --target | --targe | --targ | --tar | --ta | --t)
1033 ac_prev=target_alias ;;
1034 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1035 target_alias=$ac_optarg ;;
1036
1037 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1038 verbose=yes ;;
1039
1040 -version | --version | --versio | --versi | --vers | -V)
1041 ac_init_version=: ;;
1042
1043 -with-* | --with-*)
1044 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047 as_fn_error $? "invalid package name: $ac_useropt"
1048 ac_useropt_orig=$ac_useropt
1049 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1051 *"
1052"with_$ac_useropt"
1053"*) ;;
1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1055 ac_unrecognized_sep=', ';;
1056 esac
1057 eval with_$ac_useropt=\$ac_optarg ;;
1058
1059 -without-* | --without-*)
1060 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063 as_fn_error $? "invalid package name: $ac_useropt"
1064 ac_useropt_orig=$ac_useropt
1065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066 case $ac_user_opts in
1067 *"
1068"with_$ac_useropt"
1069"*) ;;
1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1071 ac_unrecognized_sep=', ';;
1072 esac
1073 eval with_$ac_useropt=no ;;
1074
1075 --x)
1076 # Obsolete; use --with-x.
1077 with_x=yes ;;
1078
1079 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1080 | --x-incl | --x-inc | --x-in | --x-i)
1081 ac_prev=x_includes ;;
1082 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1083 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1084 x_includes=$ac_optarg ;;
1085
1086 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1087 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1088 ac_prev=x_libraries ;;
1089 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1090 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1091 x_libraries=$ac_optarg ;;
1092
1093 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1094Try \`$0 --help' for more information"
1095 ;;
1096
1097 *=*)
1098 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1099 # Reject names that are not valid shell variable names.
1100 case $ac_envvar in #(
1101 '' | [0-9]* | *[!_$as_cr_alnum]* )
1102 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1103 esac
1104 eval $ac_envvar=\$ac_optarg
1105 export $ac_envvar ;;
1106
1107 *)
1108 # FIXME: should be removed in autoconf 3.0.
1109 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1110 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1111 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
6b668323 1112 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
94759fd3
IJ
1113 ;;
1114
1115 esac
1116done
1117
1118if test -n "$ac_prev"; then
1119 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1120 as_fn_error $? "missing argument to $ac_option"
1121fi
1122
1123if test -n "$ac_unrecognized_opts"; then
1124 case $enable_option_checking in
1125 no) ;;
1126 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1127 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1128 esac
1129fi
1130
1131# Check all directory arguments for consistency.
1132for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1133 datadir sysconfdir sharedstatedir localstatedir includedir \
1134 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
37acaef1 1135 libdir localedir mandir runstatedir
94759fd3
IJ
1136do
1137 eval ac_val=\$$ac_var
1138 # Remove trailing slashes.
1139 case $ac_val in
1140 */ )
1141 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1142 eval $ac_var=\$ac_val;;
1143 esac
1144 # Be sure to have absolute directory names.
1145 case $ac_val in
1146 [\\/$]* | ?:[\\/]* ) continue;;
1147 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1148 esac
1149 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1150done
1151
1152# There might be people who depend on the old broken behavior: `$host'
1153# used to hold the argument of --host etc.
1154# FIXME: To remove some day.
1155build=$build_alias
1156host=$host_alias
1157target=$target_alias
1158
1159# FIXME: To remove some day.
1160if test "x$host_alias" != x; then
1161 if test "x$build_alias" = x; then
1162 cross_compiling=maybe
94759fd3
IJ
1163 elif test "x$build_alias" != "x$host_alias"; then
1164 cross_compiling=yes
1165 fi
1166fi
1167
1168ac_tool_prefix=
1169test -n "$host_alias" && ac_tool_prefix=$host_alias-
1170
1171test "$silent" = yes && exec 6>/dev/null
1172
1173
1174ac_pwd=`pwd` && test -n "$ac_pwd" &&
1175ac_ls_di=`ls -di .` &&
1176ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1177 as_fn_error $? "working directory cannot be determined"
1178test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 as_fn_error $? "pwd does not report name of working directory"
1180
1181
1182# Find the source files, if location was not specified.
1183if test -z "$srcdir"; then
1184 ac_srcdir_defaulted=yes
1185 # Try the directory containing this script, then the parent directory.
1186 ac_confdir=`$as_dirname -- "$as_myself" ||
1187$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1188 X"$as_myself" : 'X\(//\)[^/]' \| \
1189 X"$as_myself" : 'X\(//\)$' \| \
1190 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1191$as_echo X"$as_myself" |
1192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1193 s//\1/
1194 q
1195 }
1196 /^X\(\/\/\)[^/].*/{
1197 s//\1/
1198 q
1199 }
1200 /^X\(\/\/\)$/{
1201 s//\1/
1202 q
1203 }
1204 /^X\(\/\).*/{
1205 s//\1/
1206 q
1207 }
1208 s/.*/./; q'`
1209 srcdir=$ac_confdir
1210 if test ! -r "$srcdir/$ac_unique_file"; then
1211 srcdir=..
1212 fi
1213else
1214 ac_srcdir_defaulted=no
1215fi
1216if test ! -r "$srcdir/$ac_unique_file"; then
1217 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1218 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1219fi
1220ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1221ac_abs_confdir=`(
1222 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1223 pwd)`
1224# When building in place, set srcdir=.
1225if test "$ac_abs_confdir" = "$ac_pwd"; then
1226 srcdir=.
1227fi
1228# Remove unnecessary trailing slashes from srcdir.
1229# Double slashes in file names in object file debugging info
1230# mess up M-x gdb in Emacs.
1231case $srcdir in
1232*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1233esac
1234for ac_var in $ac_precious_vars; do
1235 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1236 eval ac_env_${ac_var}_value=\$${ac_var}
1237 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1238 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1239done
1240
1241#
1242# Report the --help message.
1243#
1244if test "$ac_init_help" = "long"; then
1245 # Omit some internal or obsolete options to make the list less imposing.
1246 # This message is too long to be a string in the A/UX 3.1 sh.
1247 cat <<_ACEOF
00152558 1248\`configure' configures secnet 0.1.18+ to adapt to many kinds of systems.
94759fd3
IJ
1249
1250Usage: $0 [OPTION]... [VAR=VALUE]...
1251
1252To assign environment variables (e.g., CC, CFLAGS...), specify them as
1253VAR=VALUE. See below for descriptions of some of the useful variables.
1254
1255Defaults for the options are specified in brackets.
1256
1257Configuration:
1258 -h, --help display this help and exit
1259 --help=short display options specific to this package
1260 --help=recursive display the short help of all the included packages
1261 -V, --version display version information and exit
1262 -q, --quiet, --silent do not print \`checking ...' messages
1263 --cache-file=FILE cache test results in FILE [disabled]
1264 -C, --config-cache alias for \`--cache-file=config.cache'
1265 -n, --no-create do not create output files
1266 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1267
1268Installation directories:
1269 --prefix=PREFIX install architecture-independent files in PREFIX
1270 [$ac_default_prefix]
1271 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1272 [PREFIX]
1273
1274By default, \`make install' will install all the files in
1275\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1276an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1277for instance \`--prefix=\$HOME'.
1278
1279For better control, use the options below.
1280
1281Fine tuning of the installation directories:
1282 --bindir=DIR user executables [EPREFIX/bin]
1283 --sbindir=DIR system admin executables [EPREFIX/sbin]
1284 --libexecdir=DIR program executables [EPREFIX/libexec]
1285 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1286 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1287 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
37acaef1 1288 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
94759fd3
IJ
1289 --libdir=DIR object code libraries [EPREFIX/lib]
1290 --includedir=DIR C header files [PREFIX/include]
1291 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1292 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1293 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1294 --infodir=DIR info documentation [DATAROOTDIR/info]
1295 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1296 --mandir=DIR man documentation [DATAROOTDIR/man]
1297 --docdir=DIR documentation root [DATAROOTDIR/doc/secnet]
1298 --htmldir=DIR html documentation [DOCDIR]
1299 --dvidir=DIR dvi documentation [DOCDIR]
1300 --pdfdir=DIR pdf documentation [DOCDIR]
1301 --psdir=DIR ps documentation [DOCDIR]
1302_ACEOF
1303
1304 cat <<\_ACEOF
1305_ACEOF
1306fi
1307
1308if test -n "$ac_init_help"; then
1309 case $ac_init_help in
00152558 1310 short | recursive ) echo "Configuration of secnet 0.1.18+:";;
94759fd3
IJ
1311 esac
1312 cat <<\_ACEOF
1313
e1b81bd6
IJ
1314Optional Features:
1315 --disable-option-checking ignore unrecognized --enable/--with options
1316 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1317 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1318 --enable-hacky-parallel parallelise slow cryptography (default is no)
1319
94759fd3
IJ
1320Some influential environment variables:
1321 CC C compiler command
1322 CFLAGS C compiler flags
1323 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1324 nonstandard directory <lib dir>
1325 LIBS libraries to pass to the linker, e.g. -l<library>
1326 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1327 you have headers in a nonstandard directory <include dir>
1328 CPP C preprocessor
1329
1330Use these variables to override the choices made by `configure' or to help
1331it to find libraries and programs with nonstandard names/locations.
1332
1333Report bugs to <secnet@chiark.greenend.org.uk>.
1334_ACEOF
1335ac_status=$?
1336fi
1337
1338if test "$ac_init_help" = "recursive"; then
1339 # If there are subdirs, report their specific --help.
1340 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1341 test -d "$ac_dir" ||
1342 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1343 continue
1344 ac_builddir=.
1345
1346case "$ac_dir" in
1347.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1348*)
1349 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1350 # A ".." for each directory in $ac_dir_suffix.
1351 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1352 case $ac_top_builddir_sub in
1353 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1354 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1355 esac ;;
1356esac
1357ac_abs_top_builddir=$ac_pwd
1358ac_abs_builddir=$ac_pwd$ac_dir_suffix
1359# for backward compatibility:
1360ac_top_builddir=$ac_top_build_prefix
1361
1362case $srcdir in
1363 .) # We are building in place.
1364 ac_srcdir=.
1365 ac_top_srcdir=$ac_top_builddir_sub
1366 ac_abs_top_srcdir=$ac_pwd ;;
1367 [\\/]* | ?:[\\/]* ) # Absolute name.
1368 ac_srcdir=$srcdir$ac_dir_suffix;
1369 ac_top_srcdir=$srcdir
1370 ac_abs_top_srcdir=$srcdir ;;
1371 *) # Relative name.
1372 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1373 ac_top_srcdir=$ac_top_build_prefix$srcdir
1374 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1375esac
1376ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1377
1378 cd "$ac_dir" || { ac_status=$?; continue; }
1379 # Check for guested configure.
1380 if test -f "$ac_srcdir/configure.gnu"; then
1381 echo &&
1382 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1383 elif test -f "$ac_srcdir/configure"; then
1384 echo &&
1385 $SHELL "$ac_srcdir/configure" --help=recursive
1386 else
1387 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1388 fi || ac_status=$?
1389 cd "$ac_pwd" || { ac_status=$?; break; }
1390 done
1391fi
1392
1393test -n "$ac_init_help" && exit $ac_status
1394if $ac_init_version; then
1395 cat <<\_ACEOF
00152558 1396secnet configure 0.1.18+
6b668323 1397generated by GNU Autoconf 2.69
94759fd3 1398
6b668323 1399Copyright (C) 2012 Free Software Foundation, Inc.
94759fd3
IJ
1400This configure script is free software; the Free Software Foundation
1401gives unlimited permission to copy, distribute and modify it.
1402_ACEOF
1403 exit
1404fi
1405
1406## ------------------------ ##
1407## Autoconf initialization. ##
1408## ------------------------ ##
1409
1410# ac_fn_c_try_compile LINENO
1411# --------------------------
1412# Try to compile conftest.$ac_ext, and return whether this succeeded.
1413ac_fn_c_try_compile ()
1414{
1415 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1416 rm -f conftest.$ac_objext
1417 if { { ac_try="$ac_compile"
1418case "(($ac_try" in
1419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1420 *) ac_try_echo=$ac_try;;
1421esac
1422eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1423$as_echo "$ac_try_echo"; } >&5
1424 (eval "$ac_compile") 2>conftest.err
1425 ac_status=$?
1426 if test -s conftest.err; then
1427 grep -v '^ *+' conftest.err >conftest.er1
1428 cat conftest.er1 >&5
1429 mv -f conftest.er1 conftest.err
1430 fi
1431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1432 test $ac_status = 0; } && {
1433 test -z "$ac_c_werror_flag" ||
1434 test ! -s conftest.err
1435 } && test -s conftest.$ac_objext; then :
1436 ac_retval=0
1437else
1438 $as_echo "$as_me: failed program was:" >&5
1439sed 's/^/| /' conftest.$ac_ext >&5
1440
1441 ac_retval=1
1442fi
6b668323 1443 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
94759fd3
IJ
1444 as_fn_set_status $ac_retval
1445
1446} # ac_fn_c_try_compile
1447
1448# ac_fn_c_try_cpp LINENO
1449# ----------------------
1450# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1451ac_fn_c_try_cpp ()
1452{
1453 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1454 if { { ac_try="$ac_cpp conftest.$ac_ext"
1455case "(($ac_try" in
1456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1457 *) ac_try_echo=$ac_try;;
1458esac
1459eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1460$as_echo "$ac_try_echo"; } >&5
1461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1462 ac_status=$?
1463 if test -s conftest.err; then
1464 grep -v '^ *+' conftest.err >conftest.er1
1465 cat conftest.er1 >&5
1466 mv -f conftest.er1 conftest.err
1467 fi
1468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1469 test $ac_status = 0; } > conftest.i && {
1470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1471 test ! -s conftest.err
1472 }; then :
1473 ac_retval=0
1474else
1475 $as_echo "$as_me: failed program was:" >&5
1476sed 's/^/| /' conftest.$ac_ext >&5
1477
1478 ac_retval=1
1479fi
6b668323 1480 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
94759fd3
IJ
1481 as_fn_set_status $ac_retval
1482
1483} # ac_fn_c_try_cpp
1484
1485# ac_fn_c_try_run LINENO
1486# ----------------------
1487# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1488# that executables *can* be run.
1489ac_fn_c_try_run ()
1490{
1491 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1492 if { { ac_try="$ac_link"
1493case "(($ac_try" in
1494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1495 *) ac_try_echo=$ac_try;;
1496esac
1497eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1498$as_echo "$ac_try_echo"; } >&5
1499 (eval "$ac_link") 2>&5
1500 ac_status=$?
1501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1502 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1503 { { case "(($ac_try" in
1504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1505 *) ac_try_echo=$ac_try;;
1506esac
1507eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1508$as_echo "$ac_try_echo"; } >&5
1509 (eval "$ac_try") 2>&5
1510 ac_status=$?
1511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1512 test $ac_status = 0; }; }; then :
1513 ac_retval=0
1514else
1515 $as_echo "$as_me: program exited with status $ac_status" >&5
1516 $as_echo "$as_me: failed program was:" >&5
1517sed 's/^/| /' conftest.$ac_ext >&5
1518
1519 ac_retval=$ac_status
1520fi
1521 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
6b668323 1522 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
94759fd3
IJ
1523 as_fn_set_status $ac_retval
1524
1525} # ac_fn_c_try_run
1526
1527# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1528# -------------------------------------------------------
1529# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1530# the include files in INCLUDES and setting the cache variable VAR
1531# accordingly.
1532ac_fn_c_check_header_mongrel ()
1533{
1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6b668323 1535 if eval \${$3+:} false; then :
94759fd3
IJ
1536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1537$as_echo_n "checking for $2... " >&6; }
6b668323 1538if eval \${$3+:} false; then :
94759fd3
IJ
1539 $as_echo_n "(cached) " >&6
1540fi
1541eval ac_res=\$$3
1542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1543$as_echo "$ac_res" >&6; }
1544else
1545 # Is the header compilable?
1546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1547$as_echo_n "checking $2 usability... " >&6; }
1548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1549/* end confdefs.h. */
1550$4
1551#include <$2>
1552_ACEOF
1553if ac_fn_c_try_compile "$LINENO"; then :
1554 ac_header_compiler=yes
1555else
1556 ac_header_compiler=no
1557fi
1558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1560$as_echo "$ac_header_compiler" >&6; }
1561
1562# Is the header present?
1563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1564$as_echo_n "checking $2 presence... " >&6; }
1565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1566/* end confdefs.h. */
1567#include <$2>
1568_ACEOF
1569if ac_fn_c_try_cpp "$LINENO"; then :
1570 ac_header_preproc=yes
1571else
1572 ac_header_preproc=no
1573fi
1574rm -f conftest.err conftest.i conftest.$ac_ext
1575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1576$as_echo "$ac_header_preproc" >&6; }
1577
1578# So? What about this header?
1579case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1580 yes:no: )
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1582$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1584$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1585 ;;
1586 no:yes:* )
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1588$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1590$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1592$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1594$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1596$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1597( $as_echo "## -------------------------------------------- ##
1598## Report this to secnet@chiark.greenend.org.uk ##
1599## -------------------------------------------- ##"
1600 ) | sed "s/^/$as_me: WARNING: /" >&2
1601 ;;
1602esac
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1604$as_echo_n "checking for $2... " >&6; }
6b668323 1605if eval \${$3+:} false; then :
94759fd3
IJ
1606 $as_echo_n "(cached) " >&6
1607else
1608 eval "$3=\$ac_header_compiler"
1609fi
1610eval ac_res=\$$3
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1612$as_echo "$ac_res" >&6; }
1613fi
6b668323 1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
94759fd3
IJ
1615
1616} # ac_fn_c_check_header_mongrel
1617
1618# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1619# -------------------------------------------------------
1620# Tests whether HEADER exists and can be compiled using the include files in
1621# INCLUDES, setting the cache variable VAR accordingly.
1622ac_fn_c_check_header_compile ()
1623{
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626$as_echo_n "checking for $2... " >&6; }
6b668323 1627if eval \${$3+:} false; then :
94759fd3
IJ
1628 $as_echo_n "(cached) " >&6
1629else
1630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1631/* end confdefs.h. */
1632$4
1633#include <$2>
1634_ACEOF
1635if ac_fn_c_try_compile "$LINENO"; then :
1636 eval "$3=yes"
1637else
1638 eval "$3=no"
1639fi
1640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1641fi
1642eval ac_res=\$$3
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644$as_echo "$ac_res" >&6; }
6b668323 1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
94759fd3
IJ
1646
1647} # ac_fn_c_check_header_compile
1648
1649# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1650# --------------------------------------------
1651# Tries to find the compile-time value of EXPR in a program that includes
1652# INCLUDES, setting VAR accordingly. Returns whether the value could be
1653# computed
1654ac_fn_c_compute_int ()
1655{
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 if test "$cross_compiling" = yes; then
1658 # Depending upon the size, compute the lo and hi bounds.
1659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1660/* end confdefs.h. */
1661$4
1662int
1663main ()
1664{
1665static int test_array [1 - 2 * !(($2) >= 0)];
6b668323
IJ
1666test_array [0] = 0;
1667return test_array [0];
94759fd3
IJ
1668
1669 ;
1670 return 0;
1671}
1672_ACEOF
1673if ac_fn_c_try_compile "$LINENO"; then :
1674 ac_lo=0 ac_mid=0
1675 while :; do
1676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677/* end confdefs.h. */
1678$4
1679int
1680main ()
1681{
1682static int test_array [1 - 2 * !(($2) <= $ac_mid)];
6b668323
IJ
1683test_array [0] = 0;
1684return test_array [0];
94759fd3
IJ
1685
1686 ;
1687 return 0;
1688}
1689_ACEOF
1690if ac_fn_c_try_compile "$LINENO"; then :
1691 ac_hi=$ac_mid; break
1692else
1693 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1694 if test $ac_lo -le $ac_mid; then
1695 ac_lo= ac_hi=
1696 break
1697 fi
1698 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1699fi
1700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1701 done
1702else
1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704/* end confdefs.h. */
1705$4
1706int
1707main ()
1708{
1709static int test_array [1 - 2 * !(($2) < 0)];
6b668323
IJ
1710test_array [0] = 0;
1711return test_array [0];
94759fd3
IJ
1712
1713 ;
1714 return 0;
1715}
1716_ACEOF
1717if ac_fn_c_try_compile "$LINENO"; then :
1718 ac_hi=-1 ac_mid=-1
1719 while :; do
1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721/* end confdefs.h. */
1722$4
1723int
1724main ()
1725{
1726static int test_array [1 - 2 * !(($2) >= $ac_mid)];
6b668323
IJ
1727test_array [0] = 0;
1728return test_array [0];
94759fd3
IJ
1729
1730 ;
1731 return 0;
1732}
1733_ACEOF
1734if ac_fn_c_try_compile "$LINENO"; then :
1735 ac_lo=$ac_mid; break
1736else
1737 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1738 if test $ac_mid -le $ac_hi; then
1739 ac_lo= ac_hi=
1740 break
1741 fi
1742 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1743fi
1744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1745 done
1746else
1747 ac_lo= ac_hi=
1748fi
1749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1750fi
1751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752# Binary search between lo and hi bounds.
1753while test "x$ac_lo" != "x$ac_hi"; do
1754 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756/* end confdefs.h. */
1757$4
1758int
1759main ()
1760{
1761static int test_array [1 - 2 * !(($2) <= $ac_mid)];
6b668323
IJ
1762test_array [0] = 0;
1763return test_array [0];
94759fd3
IJ
1764
1765 ;
1766 return 0;
1767}
1768_ACEOF
1769if ac_fn_c_try_compile "$LINENO"; then :
1770 ac_hi=$ac_mid
1771else
1772 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1773fi
1774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1775done
1776case $ac_lo in #((
1777?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1778'') ac_retval=1 ;;
1779esac
1780 else
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782/* end confdefs.h. */
1783$4
1784static long int longval () { return $2; }
1785static unsigned long int ulongval () { return $2; }
1786#include <stdio.h>
1787#include <stdlib.h>
1788int
1789main ()
1790{
1791
1792 FILE *f = fopen ("conftest.val", "w");
1793 if (! f)
1794 return 1;
1795 if (($2) < 0)
1796 {
1797 long int i = longval ();
1798 if (i != ($2))
1799 return 1;
1800 fprintf (f, "%ld", i);
1801 }
1802 else
1803 {
1804 unsigned long int i = ulongval ();
1805 if (i != ($2))
1806 return 1;
1807 fprintf (f, "%lu", i);
1808 }
1809 /* Do not output a trailing newline, as this causes \r\n confusion
1810 on some platforms. */
1811 return ferror (f) || fclose (f) != 0;
1812
1813 ;
1814 return 0;
1815}
1816_ACEOF
1817if ac_fn_c_try_run "$LINENO"; then :
1818 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1819else
1820 ac_retval=1
1821fi
1822rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1823 conftest.$ac_objext conftest.beam conftest.$ac_ext
1824rm -f conftest.val
1825
1826 fi
6b668323 1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
94759fd3
IJ
1828 as_fn_set_status $ac_retval
1829
1830} # ac_fn_c_compute_int
1831
1832# ac_fn_c_try_link LINENO
1833# -----------------------
1834# Try to link conftest.$ac_ext, and return whether this succeeded.
1835ac_fn_c_try_link ()
1836{
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 rm -f conftest.$ac_objext conftest$ac_exeext
1839 if { { ac_try="$ac_link"
1840case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843esac
1844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845$as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_link") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1852 fi
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest$ac_exeext && {
1858 test "$cross_compiling" = yes ||
6b668323 1859 test -x conftest$ac_exeext
94759fd3
IJ
1860 }; then :
1861 ac_retval=0
1862else
1863 $as_echo "$as_me: failed program was:" >&5
1864sed 's/^/| /' conftest.$ac_ext >&5
1865
1866 ac_retval=1
1867fi
1868 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1869 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1870 # interfere with the next link command; also delete a directory that is
1871 # left behind by Apple's compiler. We do this before executing the actions.
1872 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
6b668323 1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
94759fd3
IJ
1874 as_fn_set_status $ac_retval
1875
1876} # ac_fn_c_try_link
2b8aa340 1877
2b8aa340
IJ
1878# ac_fn_c_check_func LINENO FUNC VAR
1879# ----------------------------------
1880# Tests whether FUNC exists, setting the cache variable VAR accordingly
1881ac_fn_c_check_func ()
1882{
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885$as_echo_n "checking for $2... " >&6; }
1886if eval \${$3+:} false; then :
1887 $as_echo_n "(cached) " >&6
1888else
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890/* end confdefs.h. */
1891/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1893#define $2 innocuous_$2
1894
1895/* System header to define __stub macros and hopefully few prototypes,
1896 which can conflict with char $2 (); below.
1897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1898 <limits.h> exists even on freestanding compilers. */
1899
1900#ifdef __STDC__
1901# include <limits.h>
1902#else
1903# include <assert.h>
1904#endif
1905
1906#undef $2
1907
1908/* Override any GCC internal prototype to avoid an error.
1909 Use char because int might match the return type of a GCC
1910 builtin and then its argument prototype would still apply. */
1911#ifdef __cplusplus
1912extern "C"
1913#endif
1914char $2 ();
1915/* The GNU C library defines this for functions which it implements
1916 to always fail with ENOSYS. Some functions are actually named
1917 something starting with __ and the normal name is an alias. */
1918#if defined __stub_$2 || defined __stub___$2
1919choke me
1920#endif
1921
1922int
1923main ()
1924{
1925return $2 ();
1926 ;
1927 return 0;
1928}
1929_ACEOF
1930if ac_fn_c_try_link "$LINENO"; then :
1931 eval "$3=yes"
1932else
1933 eval "$3=no"
1934fi
1935rm -f core conftest.err conftest.$ac_objext \
1936 conftest$ac_exeext conftest.$ac_ext
1937fi
1938eval ac_res=\$$3
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940$as_echo "$ac_res" >&6; }
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942
1943} # ac_fn_c_check_func
695904f2
IJ
1944
1945# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1946# ---------------------------------------------
1947# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1948# accordingly.
1949ac_fn_c_check_decl ()
1950{
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 as_decl_name=`echo $2|sed 's/ *(.*//'`
1953 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1955$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1956if eval \${$3+:} false; then :
1957 $as_echo_n "(cached) " >&6
1958else
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960/* end confdefs.h. */
1961$4
1962int
1963main ()
1964{
1965#ifndef $as_decl_name
1966#ifdef __cplusplus
1967 (void) $as_decl_use;
1968#else
1969 (void) $as_decl_name;
1970#endif
1971#endif
1972
1973 ;
1974 return 0;
1975}
1976_ACEOF
1977if ac_fn_c_try_compile "$LINENO"; then :
1978 eval "$3=yes"
1979else
1980 eval "$3=no"
1981fi
1982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1983fi
1984eval ac_res=\$$3
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986$as_echo "$ac_res" >&6; }
1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988
1989} # ac_fn_c_check_decl
94759fd3
IJ
1990cat >config.log <<_ACEOF
1991This file contains any messages produced by compilers while
1992running configure, to aid debugging if configure makes a mistake.
1993
00152558 1994It was created by secnet $as_me 0.1.18+, which was
6b668323 1995generated by GNU Autoconf 2.69. Invocation command line was
94759fd3
IJ
1996
1997 $ $0 $@
1998
1999_ACEOF
2000exec 5>>config.log
2001{
2002cat <<_ASUNAME
2003## --------- ##
2004## Platform. ##
2005## --------- ##
2006
2007hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2008uname -m = `(uname -m) 2>/dev/null || echo unknown`
2009uname -r = `(uname -r) 2>/dev/null || echo unknown`
2010uname -s = `(uname -s) 2>/dev/null || echo unknown`
2011uname -v = `(uname -v) 2>/dev/null || echo unknown`
2012
2013/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2014/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2015
2016/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2017/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2018/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2019/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2020/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2021/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2022/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2023
2024_ASUNAME
2025
2026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027for as_dir in $PATH
2028do
2029 IFS=$as_save_IFS
2030 test -z "$as_dir" && as_dir=.
2031 $as_echo "PATH: $as_dir"
2032 done
2033IFS=$as_save_IFS
2034
2035} >&5
2036
2037cat >&5 <<_ACEOF
2038
2039
2040## ----------- ##
2041## Core tests. ##
2042## ----------- ##
2043
2044_ACEOF
2045
2046
2047# Keep a trace of the command line.
2048# Strip out --no-create and --no-recursion so they do not pile up.
2049# Strip out --silent because we don't want to record it for future runs.
2050# Also quote any args containing shell meta-characters.
2051# Make two passes to allow for proper duplicate-argument suppression.
2052ac_configure_args=
2053ac_configure_args0=
2054ac_configure_args1=
2055ac_must_keep_next=false
2056for ac_pass in 1 2
2057do
2058 for ac_arg
2059 do
2060 case $ac_arg in
2061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2063 | -silent | --silent | --silen | --sile | --sil)
2064 continue ;;
2065 *\'*)
2066 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2067 esac
2068 case $ac_pass in
2069 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2070 2)
2071 as_fn_append ac_configure_args1 " '$ac_arg'"
2072 if test $ac_must_keep_next = true; then
2073 ac_must_keep_next=false # Got value, back to normal.
2074 else
2075 case $ac_arg in
2076 *=* | --config-cache | -C | -disable-* | --disable-* \
2077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2079 | -with-* | --with-* | -without-* | --without-* | --x)
2080 case "$ac_configure_args0 " in
2081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2082 esac
2083 ;;
2084 -* ) ac_must_keep_next=true ;;
2085 esac
2086 fi
2087 as_fn_append ac_configure_args " '$ac_arg'"
2088 ;;
2089 esac
2090 done
2091done
2092{ ac_configure_args0=; unset ac_configure_args0;}
2093{ ac_configure_args1=; unset ac_configure_args1;}
2094
2095# When interrupted or exit'd, cleanup temporary files, and complete
2096# config.log. We remove comments because anyway the quotes in there
2097# would cause problems or look ugly.
2098# WARNING: Use '\'' to represent an apostrophe within the trap.
2099# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2100trap 'exit_status=$?
2101 # Save into config.log some information that might help in debugging.
2102 {
2103 echo
2104
2105 $as_echo "## ---------------- ##
2106## Cache variables. ##
2107## ---------------- ##"
2108 echo
2109 # The following way of writing the cache mishandles newlines in values,
2110(
2111 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2112 eval ac_val=\$$ac_var
2113 case $ac_val in #(
2114 *${as_nl}*)
2115 case $ac_var in #(
2116 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2117$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2118 esac
2119 case $ac_var in #(
2120 _ | IFS | as_nl) ;; #(
2121 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2122 *) { eval $ac_var=; unset $ac_var;} ;;
2123 esac ;;
2124 esac
2125 done
2126 (set) 2>&1 |
2127 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2128 *${as_nl}ac_space=\ *)
2129 sed -n \
2130 "s/'\''/'\''\\\\'\'''\''/g;
2131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2132 ;; #(
2133 *)
2134 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2135 ;;
2136 esac |
2137 sort
2138)
2139 echo
2140
2141 $as_echo "## ----------------- ##
2142## Output variables. ##
2143## ----------------- ##"
2144 echo
2145 for ac_var in $ac_subst_vars
2146 do
2147 eval ac_val=\$$ac_var
2148 case $ac_val in
2149 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2150 esac
2151 $as_echo "$ac_var='\''$ac_val'\''"
2152 done | sort
2153 echo
2154
2155 if test -n "$ac_subst_files"; then
2156 $as_echo "## ------------------- ##
2157## File substitutions. ##
2158## ------------------- ##"
2159 echo
2160 for ac_var in $ac_subst_files
2161 do
2162 eval ac_val=\$$ac_var
2163 case $ac_val in
2164 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2165 esac
2166 $as_echo "$ac_var='\''$ac_val'\''"
2167 done | sort
2168 echo
2169 fi
2170
2171 if test -s confdefs.h; then
2172 $as_echo "## ----------- ##
2173## confdefs.h. ##
2174## ----------- ##"
2175 echo
2176 cat confdefs.h
2177 echo
2178 fi
2179 test "$ac_signal" != 0 &&
2180 $as_echo "$as_me: caught signal $ac_signal"
2181 $as_echo "$as_me: exit $exit_status"
2182 } >&5
2183 rm -f core *.core core.conftest.* &&
2184 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2185 exit $exit_status
2186' 0
2187for ac_signal in 1 2 13 15; do
2188 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2189done
2190ac_signal=0
2191
2192# confdefs.h avoids OS command line length limits that DEFS can exceed.
2193rm -f -r conftest* confdefs.h
2194
2195$as_echo "/* confdefs.h */" > confdefs.h
2196
2197# Predefined preprocessor variables.
2198
2199cat >>confdefs.h <<_ACEOF
2200#define PACKAGE_NAME "$PACKAGE_NAME"
2201_ACEOF
2202
2203cat >>confdefs.h <<_ACEOF
2204#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2205_ACEOF
2206
2207cat >>confdefs.h <<_ACEOF
2208#define PACKAGE_VERSION "$PACKAGE_VERSION"
2209_ACEOF
2210
2211cat >>confdefs.h <<_ACEOF
2212#define PACKAGE_STRING "$PACKAGE_STRING"
2213_ACEOF
2214
2215cat >>confdefs.h <<_ACEOF
2216#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2217_ACEOF
2218
2219cat >>confdefs.h <<_ACEOF
2220#define PACKAGE_URL "$PACKAGE_URL"
2221_ACEOF
2222
2223
2224# Let the site file select an alternate cache file if it wants to.
2225# Prefer an explicitly selected file to automatically selected ones.
2226ac_site_file1=NONE
2227ac_site_file2=NONE
2228if test -n "$CONFIG_SITE"; then
2229 # We do not want a PATH search for config.site.
2230 case $CONFIG_SITE in #((
2231 -*) ac_site_file1=./$CONFIG_SITE;;
2232 */*) ac_site_file1=$CONFIG_SITE;;
2233 *) ac_site_file1=./$CONFIG_SITE;;
2234 esac
2235elif test "x$prefix" != xNONE; then
2236 ac_site_file1=$prefix/share/config.site
2237 ac_site_file2=$prefix/etc/config.site
2238else
2239 ac_site_file1=$ac_default_prefix/share/config.site
2240 ac_site_file2=$ac_default_prefix/etc/config.site
2241fi
2242for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2243do
2244 test "x$ac_site_file" = xNONE && continue
2245 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2247$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2248 sed 's/^/| /' "$ac_site_file" >&5
2249 . "$ac_site_file" \
2250 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2251$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2252as_fn_error $? "failed to load site script $ac_site_file
6b668323 2253See \`config.log' for more details" "$LINENO" 5; }
94759fd3
IJ
2254 fi
2255done
2256
2257if test -r "$cache_file"; then
2258 # Some versions of bash will fail to source /dev/null (special files
2259 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2260 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2262$as_echo "$as_me: loading cache $cache_file" >&6;}
2263 case $cache_file in
2264 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2265 *) . "./$cache_file";;
2266 esac
2267 fi
2268else
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2270$as_echo "$as_me: creating cache $cache_file" >&6;}
2271 >$cache_file
2272fi
2273
2274# Check that the precious variables saved in the cache have kept the same
2275# value.
2276ac_cache_corrupted=false
2277for ac_var in $ac_precious_vars; do
2278 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2279 eval ac_new_set=\$ac_env_${ac_var}_set
2280 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2281 eval ac_new_val=\$ac_env_${ac_var}_value
2282 case $ac_old_set,$ac_new_set in
2283 set,)
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2285$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2286 ac_cache_corrupted=: ;;
2287 ,set)
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2289$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2290 ac_cache_corrupted=: ;;
2291 ,);;
2292 *)
2293 if test "x$ac_old_val" != "x$ac_new_val"; then
2294 # differences in whitespace do not lead to failure.
2295 ac_old_val_w=`echo x $ac_old_val`
2296 ac_new_val_w=`echo x $ac_new_val`
2297 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2299$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2300 ac_cache_corrupted=:
2301 else
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2303$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2304 eval $ac_var=\$ac_old_val
2305 fi
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2307$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2309$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2310 fi;;
2311 esac
2312 # Pass precious variables to config.status.
2313 if test "$ac_new_set" = set; then
2314 case $ac_new_val in
2315 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2316 *) ac_arg=$ac_var=$ac_new_val ;;
2317 esac
2318 case " $ac_configure_args " in
2319 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2320 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2321 esac
2322 fi
2323done
2324if $ac_cache_corrupted; then
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2326$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2328$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2329 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2330fi
2331## -------------------- ##
2332## Main body of script. ##
2333## -------------------- ##
2334
2335ac_ext=c
2336ac_cpp='$CPP $CPPFLAGS'
2337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2339ac_compiler_gnu=$ac_cv_c_compiler_gnu
2340
2341
2342
2343ac_config_headers="$ac_config_headers config.h"
2344
2345
2346
2347
2348
2349ac_ext=c
2350ac_cpp='$CPP $CPPFLAGS'
2351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2353ac_compiler_gnu=$ac_cv_c_compiler_gnu
2354
2355
44bdf5ac
RK
2356# If fink is on the path then it is assumed we should use it.
2357# Extract the first word of "fink", so it can be a program name with args.
2358set dummy fink; ac_word=$2
2359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2360$as_echo_n "checking for $ac_word... " >&6; }
6b668323 2361if ${ac_cv_path_FINK+:} false; then :
44bdf5ac
RK
2362 $as_echo_n "(cached) " >&6
2363else
2364 case $FINK in
2365 [\\/]* | ?:[\\/]*)
2366 ac_cv_path_FINK="$FINK" # Let the user override the test with a path.
2367 ;;
2368 *)
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370for as_dir in $PATH
2371do
2372 IFS=$as_save_IFS
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
6b668323 2375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44bdf5ac
RK
2376 ac_cv_path_FINK="$as_dir/$ac_word$ac_exec_ext"
2377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2378 break 2
2379 fi
2380done
2381 done
2382IFS=$as_save_IFS
2383
2384 ;;
2385esac
2386fi
2387FINK=$ac_cv_path_FINK
2388if test -n "$FINK"; then
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FINK" >&5
2390$as_echo "$FINK" >&6; }
2391else
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2393$as_echo "no" >&6; }
2394fi
2395
2396
2397if test "x$FINK" != x; then
2398 finkdir=`echo $FINK|sed 's,/[^/]*/[^/]*$,,'`
2399 CPPFLAGS="-I$finkdir/include ${CPPFLAGS}"
2400 LDFLAGS="-L$finkdir/lib ${LDFLAGS}"
2401fi
2402
94759fd3
IJ
2403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2404$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2405set x ${MAKE-make}
2406ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6b668323 2407if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
94759fd3
IJ
2408 $as_echo_n "(cached) " >&6
2409else
2410 cat >conftest.make <<\_ACEOF
2411SHELL = /bin/sh
2412all:
2413 @echo '@@@%%%=$(MAKE)=@@@%%%'
2414_ACEOF
2415# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2416case `${MAKE-make} -f conftest.make 2>/dev/null` in
2417 *@@@%%%=?*=@@@%%%*)
2418 eval ac_cv_prog_make_${ac_make}_set=yes;;
2419 *)
2420 eval ac_cv_prog_make_${ac_make}_set=no;;
2421esac
2422rm -f conftest.make
2423fi
2424if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2426$as_echo "yes" >&6; }
2427 SET_MAKE=
2428else
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2430$as_echo "no" >&6; }
2431 SET_MAKE="MAKE=${MAKE-make}"
2432fi
2433
2434ac_ext=c
2435ac_cpp='$CPP $CPPFLAGS'
2436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438ac_compiler_gnu=$ac_cv_c_compiler_gnu
2439if test -n "$ac_tool_prefix"; then
2440 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2441set dummy ${ac_tool_prefix}gcc; ac_word=$2
2442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2443$as_echo_n "checking for $ac_word... " >&6; }
6b668323 2444if ${ac_cv_prog_CC+:} false; then :
94759fd3
IJ
2445 $as_echo_n "(cached) " >&6
2446else
2447 if test -n "$CC"; then
2448 ac_cv_prog_CC="$CC" # Let the user override the test.
2449else
2450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451for as_dir in $PATH
2452do
2453 IFS=$as_save_IFS
2454 test -z "$as_dir" && as_dir=.
2455 for ac_exec_ext in '' $ac_executable_extensions; do
6b668323 2456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
94759fd3
IJ
2457 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2459 break 2
2460 fi
2461done
2462 done
2463IFS=$as_save_IFS
2464
2465fi
2466fi
2467CC=$ac_cv_prog_CC
2468if test -n "$CC"; then
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2470$as_echo "$CC" >&6; }
2471else
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2473$as_echo "no" >&6; }
2474fi
2475
2476
2477fi
2478if test -z "$ac_cv_prog_CC"; then
2479 ac_ct_CC=$CC
2480 # Extract the first word of "gcc", so it can be a program name with args.
2481set dummy gcc; ac_word=$2
2482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2483$as_echo_n "checking for $ac_word... " >&6; }
6b668323 2484if ${ac_cv_prog_ac_ct_CC+:} false; then :
94759fd3
IJ
2485 $as_echo_n "(cached) " >&6
2486else
2487 if test -n "$ac_ct_CC"; then
2488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2489else
2490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491for as_dir in $PATH
2492do
2493 IFS=$as_save_IFS
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
6b668323 2496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
94759fd3
IJ
2497 ac_cv_prog_ac_ct_CC="gcc"
2498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 break 2
2500 fi
2501done
2502 done
2503IFS=$as_save_IFS
2504
2505fi
2506fi
2507ac_ct_CC=$ac_cv_prog_ac_ct_CC
2508if test -n "$ac_ct_CC"; then
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2510$as_echo "$ac_ct_CC" >&6; }
2511else
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2513$as_echo "no" >&6; }
2514fi
2515
2516 if test "x$ac_ct_CC" = x; then
2517 CC=""
2518 else
2519 case $cross_compiling:$ac_tool_warned in
2520yes:)
2521{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2522$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2523ac_tool_warned=yes ;;
2524esac
2525 CC=$ac_ct_CC
2526 fi
2527else
2528 CC="$ac_cv_prog_CC"
2529fi
2530
2531if test -z "$CC"; then
2532 if test -n "$ac_tool_prefix"; then
2533 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2534set dummy ${ac_tool_prefix}cc; ac_word=$2
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2536$as_echo_n "checking for $ac_word... " >&6; }
6b668323 2537if ${ac_cv_prog_CC+:} false; then :
94759fd3
IJ
2538 $as_echo_n "(cached) " >&6
2539else
2540 if test -n "$CC"; then
2541 ac_cv_prog_CC="$CC" # Let the user override the test.
2542else
2543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544for as_dir in $PATH
2545do
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
6b668323 2549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
94759fd3
IJ
2550 ac_cv_prog_CC="${ac_tool_prefix}cc"
2551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2552 break 2
2553 fi
2554done
2555 done
2556IFS=$as_save_IFS
2557
2558fi
2559fi
2560CC=$ac_cv_prog_CC
2561if test -n "$CC"; then
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2563$as_echo "$CC" >&6; }
2564else
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2566$as_echo "no" >&6; }
2567fi
2568
2569
2570 fi
2571fi
2572if test -z "$CC"; then
2573 # Extract the first word of "cc", so it can be a program name with args.
2574set dummy cc; ac_word=$2
2575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576$as_echo_n "checking for $ac_word... " >&6; }
6b668323 2577if ${ac_cv_prog_CC+:} false; then :
94759fd3
IJ
2578 $as_echo_n "(cached) " >&6
2579else
2580 if test -n "$CC"; then
2581 ac_cv_prog_CC="$CC" # Let the user override the test.
2582else
2583 ac_prog_rejected=no
2584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585for as_dir in $PATH
2586do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
6b668323 2590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
94759fd3
IJ
2591 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2592 ac_prog_rejected=yes
2593 continue
2594 fi
2595 ac_cv_prog_CC="cc"
2596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 break 2
2598 fi
2599done
2600 done
2601IFS=$as_save_IFS
2602
2603if test $ac_prog_rejected = yes; then
2604 # We found a bogon in the path, so make sure we never use it.
2605 set dummy $ac_cv_prog_CC
2606 shift
2607 if test $# != 0; then
2608 # We chose a different compiler from the bogus one.
2609 # However, it has the same basename, so the bogon will be chosen
2610 # first if we set CC to just the basename; use the full file name.
2611 shift
2612 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2613 fi
2614fi
2615fi
2616fi
2617CC=$ac_cv_prog_CC
2618if test -n "$CC"; then
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2620$as_echo "$CC" >&6; }
2621else
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2623$as_echo "no" >&6; }
2624fi
2625
2626
2627fi
2628if test -z "$CC"; then
2629 if test -n "$ac_tool_prefix"; then
2630 for ac_prog in cl.exe
2631 do
2632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2633set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635$as_echo_n "checking for $ac_word... " >&6; }
6b668323 2636if ${ac_cv_prog_CC+:} false; then :
94759fd3
IJ
2637 $as_echo_n "(cached) " >&6
2638else
2639 if test -n "$CC"; then
2640 ac_cv_prog_CC="$CC" # Let the user override the test.
2641else
2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643for as_dir in $PATH
2644do
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
6b668323 2648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
94759fd3
IJ
2649 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 break 2
2652 fi
2653done
2654 done
2655IFS=$as_save_IFS
2656
2657fi
2658fi
2659CC=$ac_cv_prog_CC
2660if test -n "$CC"; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2662$as_echo "$CC" >&6; }
2663else
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665$as_echo "no" >&6; }
2666fi
2667
2668
2669 test -n "$CC" && break
2670 done
2671fi
2672if test -z "$CC"; then
2673 ac_ct_CC=$CC
2674 for ac_prog in cl.exe
2675do
2676 # Extract the first word of "$ac_prog", so it can be a program name with args.
2677set dummy $ac_prog; ac_word=$2
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2679$as_echo_n "checking for $ac_word... " >&6; }
6b668323 2680if ${ac_cv_prog_ac_ct_CC+:} false; then :
94759fd3
IJ
2681 $as_echo_n "(cached) " >&6
2682else
2683 if test -n "$ac_ct_CC"; then
2684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2685else
2686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687for as_dir in $PATH
2688do
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
6b668323 2692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
94759fd3
IJ
2693 ac_cv_prog_ac_ct_CC="$ac_prog"
2694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2696 fi
2697done
2698 done
2699IFS=$as_save_IFS
2700
2701fi
2702fi
2703ac_ct_CC=$ac_cv_prog_ac_ct_CC
2704if test -n "$ac_ct_CC"; then
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2706$as_echo "$ac_ct_CC" >&6; }
2707else
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2709$as_echo "no" >&6; }
2710fi
2711
2712
2713 test -n "$ac_ct_CC" && break
2714done
2715
2716 if test "x$ac_ct_CC" = x; then
2717 CC=""
2718 else
2719 case $cross_compiling:$ac_tool_warned in
2720yes:)
2721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2723ac_tool_warned=yes ;;
2724esac
2725 CC=$ac_ct_CC
2726 fi
2727fi
2728
2729fi
2730
2731
2732test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2733$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2734as_fn_error $? "no acceptable C compiler found in \$PATH
6b668323 2735See \`config.log' for more details" "$LINENO" 5; }
94759fd3
IJ
2736
2737# Provide some information about the compiler.
2738$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2739set X $ac_compile
2740ac_compiler=$2
2741for ac_option in --version -v -V -qversion; do
2742 { { ac_try="$ac_compiler $ac_option >&5"
2743case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2746esac
2747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2748$as_echo "$ac_try_echo"; } >&5
2749 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2750 ac_status=$?
2751 if test -s conftest.err; then
2752 sed '10a\
2753... rest of stderr output deleted ...
2754 10q' conftest.err >conftest.er1
2755 cat conftest.er1 >&5
2756 fi
2757 rm -f conftest.er1 conftest.err
2758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2759 test $ac_status = 0; }
2760done
2761
2762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2763/* end confdefs.h. */
2764
2765int
2766main ()
2767{
2768
2769 ;
2770 return 0;
2771}
2772_ACEOF
2773ac_clean_files_save=$ac_clean_files
2774ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2775# Try to create an executable without -o first, disregard a.out.
2776# It will help us diagnose broken compilers, and finding out an intuition
2777# of exeext.
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2779$as_echo_n "checking whether the C compiler works... " >&6; }
2780ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2781
2782# The possible output files:
2783ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2784
2785ac_rmfiles=
2786for ac_file in $ac_files
2787do
2788 case $ac_file in
2789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2790 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2791 esac
2792done
2793rm -f $ac_rmfiles
2794
2795if { { ac_try="$ac_link_default"
2796case "(($ac_try" in
2797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798 *) ac_try_echo=$ac_try;;
2799esac
2800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2801$as_echo "$ac_try_echo"; } >&5
2802 (eval "$ac_link_default") 2>&5
2803 ac_status=$?
2804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2805 test $ac_status = 0; }; then :
2806 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2807# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2808# in a Makefile. We should not override ac_cv_exeext if it was cached,
2809# so that the user can short-circuit this test for compilers unknown to
2810# Autoconf.
2811for ac_file in $ac_files ''
2812do
2813 test -f "$ac_file" || continue
2814 case $ac_file in
2815 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2816 ;;
2817 [ab].out )
2818 # We found the default executable, but exeext='' is most
2819 # certainly right.
2820 break;;
2821 *.* )
2822 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2823 then :; else
2824 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2825 fi
2826 # We set ac_cv_exeext here because the later test for it is not
2827 # safe: cross compilers may not add the suffix if given an `-o'
2828 # argument, so we may need to know it at that point already.
2829 # Even if this section looks crufty: it has the advantage of
2830 # actually working.
2831 break;;
2832 * )
2833 break;;
2834 esac
2835done
2836test "$ac_cv_exeext" = no && ac_cv_exeext=
2837
2838else
2839 ac_file=''
2840fi
2841if test -z "$ac_file"; then :
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843$as_echo "no" >&6; }
2844$as_echo "$as_me: failed program was:" >&5
2845sed 's/^/| /' conftest.$ac_ext >&5
2846
2847{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2848$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2849as_fn_error 77 "C compiler cannot create executables
6b668323 2850See \`config.log' for more details" "$LINENO" 5; }
94759fd3
IJ
2851else
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2853$as_echo "yes" >&6; }
2854fi
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2856$as_echo_n "checking for C compiler default output file name... " >&6; }
2857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2858$as_echo "$ac_file" >&6; }
2859ac_exeext=$ac_cv_exeext
2860
2861rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2862ac_clean_files=$ac_clean_files_save
2863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2864$as_echo_n "checking for suffix of executables... " >&6; }
2865if { { ac_try="$ac_link"
2866case "(($ac_try" in
2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868 *) ac_try_echo=$ac_try;;
2869esac
2870eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2871$as_echo "$ac_try_echo"; } >&5
2872 (eval "$ac_link") 2>&5
2873 ac_status=$?
2874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2875 test $ac_status = 0; }; then :
2876 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2877# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2878# work properly (i.e., refer to `conftest.exe'), while it won't with
2879# `rm'.
2880for ac_file in conftest.exe conftest conftest.*; do
2881 test -f "$ac_file" || continue
2882 case $ac_file in
2883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2884 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2885 break;;
2886 * ) break;;
2887 esac
2888done
2889else
2890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2891$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2892as_fn_error $? "cannot compute suffix of executables: cannot compile and link
6b668323 2893See \`config.log' for more details" "$LINENO" 5; }
94759fd3
IJ
2894fi
2895rm -f conftest conftest$ac_cv_exeext
2896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2897$as_echo "$ac_cv_exeext" >&6; }
2898
2899rm -f conftest.$ac_ext
2900EXEEXT=$ac_cv_exeext
2901ac_exeext=$EXEEXT
2902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2903/* end confdefs.h. */
2904#include <stdio.h>
2905int
2906main ()
2907{
2908FILE *f = fopen ("conftest.out", "w");
2909 return ferror (f) || fclose (f) != 0;
2910
2911 ;
2912 return 0;
2913}
2914_ACEOF
2915ac_clean_files="$ac_clean_files conftest.out"
2916# Check that the compiler produces executables we can run. If not, either
2917# the compiler is broken, or we cross compile.
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2919$as_echo_n "checking whether we are cross compiling... " >&6; }
2920if test "$cross_compiling" != yes; then
2921 { { ac_try="$ac_link"
2922case "(($ac_try" in
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2925esac
2926eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2927$as_echo "$ac_try_echo"; } >&5
2928 (eval "$ac_link") 2>&5
2929 ac_status=$?
2930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2931 test $ac_status = 0; }
2932 if { ac_try='./conftest$ac_cv_exeext'
2933 { { case "(($ac_try" in
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2936esac
2937eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2938$as_echo "$ac_try_echo"; } >&5
2939 (eval "$ac_try") 2>&5
2940 ac_status=$?
2941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2942 test $ac_status = 0; }; }; then
2943 cross_compiling=no
2944 else
2945 if test "$cross_compiling" = maybe; then
2946 cross_compiling=yes
2947 else
2948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2949$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2950as_fn_error $? "cannot run C compiled programs.
2951If you meant to cross compile, use \`--host'.
6b668323 2952See \`config.log' for more details" "$LINENO" 5; }
94759fd3
IJ
2953 fi
2954 fi
2955fi
2956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2957$as_echo "$cross_compiling" >&6; }
2958
2959rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2960ac_clean_files=$ac_clean_files_save
2961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2962$as_echo_n "checking for suffix of object files... " >&6; }
6b668323 2963if ${ac_cv_objext+:} false; then :
94759fd3
IJ
2964 $as_echo_n "(cached) " >&6
2965else
2966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2967/* end confdefs.h. */
2968
2969int
2970main ()
2971{
2972
2973 ;
2974 return 0;
2975}
2976_ACEOF
2977rm -f conftest.o conftest.obj
2978if { { ac_try="$ac_compile"
2979case "(($ac_try" in
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2982esac
2983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2984$as_echo "$ac_try_echo"; } >&5
2985 (eval "$ac_compile") 2>&5
2986 ac_status=$?
2987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2988 test $ac_status = 0; }; then :
2989 for ac_file in conftest.o conftest.obj conftest.*; do
2990 test -f "$ac_file" || continue;
2991 case $ac_file in
2992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2993 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2994 break;;
2995 esac
2996done
2997else
2998 $as_echo "$as_me: failed program was:" >&5
2999sed 's/^/| /' conftest.$ac_ext >&5
3000
3001{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3002$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3003as_fn_error $? "cannot compute suffix of object files: cannot compile
6b668323 3004See \`config.log' for more details" "$LINENO" 5; }
94759fd3
IJ
3005fi
3006rm -f conftest.$ac_cv_objext conftest.$ac_ext
3007fi
3008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3009$as_echo "$ac_cv_objext" >&6; }
3010OBJEXT=$ac_cv_objext
3011ac_objext=$OBJEXT
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3013$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6b668323 3014if ${ac_cv_c_compiler_gnu+:} false; then :
94759fd3
IJ
3015 $as_echo_n "(cached) " >&6
3016else
3017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3018/* end confdefs.h. */
3019
3020int
3021main ()
3022{
3023#ifndef __GNUC__
3024 choke me
3025#endif
3026
3027 ;
3028 return 0;
3029}
3030_ACEOF
3031if ac_fn_c_try_compile "$LINENO"; then :
3032 ac_compiler_gnu=yes
3033else
3034 ac_compiler_gnu=no
3035fi
3036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3037ac_cv_c_compiler_gnu=$ac_compiler_gnu
3038
3039fi
3040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3041$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3042if test $ac_compiler_gnu = yes; then
3043 GCC=yes
3044else
3045 GCC=
3046fi
3047ac_test_CFLAGS=${CFLAGS+set}
3048ac_save_CFLAGS=$CFLAGS
3049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3050$as_echo_n "checking whether $CC accepts -g... " >&6; }
6b668323 3051if ${ac_cv_prog_cc_g+:} false; then :
94759fd3
IJ
3052 $as_echo_n "(cached) " >&6
3053else
3054 ac_save_c_werror_flag=$ac_c_werror_flag
3055 ac_c_werror_flag=yes
3056 ac_cv_prog_cc_g=no
3057 CFLAGS="-g"
3058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3059/* end confdefs.h. */
3060
3061int
3062main ()
3063{
3064
3065 ;
3066 return 0;
3067}
3068_ACEOF
3069if ac_fn_c_try_compile "$LINENO"; then :
3070 ac_cv_prog_cc_g=yes
3071else
3072 CFLAGS=""
3073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3074/* end confdefs.h. */
3075
3076int
3077main ()
3078{
3079
3080 ;
3081 return 0;
3082}
3083_ACEOF
3084if ac_fn_c_try_compile "$LINENO"; then :
3085
3086else
3087 ac_c_werror_flag=$ac_save_c_werror_flag
3088 CFLAGS="-g"
3089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3090/* end confdefs.h. */
3091
3092int
3093main ()
3094{
3095
3096 ;
3097 return 0;
3098}
3099_ACEOF
3100if ac_fn_c_try_compile "$LINENO"; then :
3101 ac_cv_prog_cc_g=yes
3102fi
3103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3104fi
3105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3106fi
3107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3108 ac_c_werror_flag=$ac_save_c_werror_flag
3109fi
3110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3111$as_echo "$ac_cv_prog_cc_g" >&6; }
3112if test "$ac_test_CFLAGS" = set; then
3113 CFLAGS=$ac_save_CFLAGS
3114elif test $ac_cv_prog_cc_g = yes; then
3115 if test "$GCC" = yes; then
3116 CFLAGS="-g -O2"
3117 else
3118 CFLAGS="-g"
3119 fi
3120else
3121 if test "$GCC" = yes; then
3122 CFLAGS="-O2"
3123 else
3124 CFLAGS=
3125 fi
3126fi
3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3128$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6b668323 3129if ${ac_cv_prog_cc_c89+:} false; then :
94759fd3
IJ
3130 $as_echo_n "(cached) " >&6
3131else
3132 ac_cv_prog_cc_c89=no
3133ac_save_CC=$CC
3134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3135/* end confdefs.h. */
3136#include <stdarg.h>
3137#include <stdio.h>
6b668323 3138struct stat;
94759fd3
IJ
3139/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3140struct buf { int x; };
3141FILE * (*rcsopen) (struct buf *, struct stat *, int);
3142static char *e (p, i)
3143 char **p;
3144 int i;
3145{
3146 return p[i];
3147}
3148static char *f (char * (*g) (char **, int), char **p, ...)
3149{
3150 char *s;
3151 va_list v;
3152 va_start (v,p);
3153 s = g (p, va_arg (v,int));
3154 va_end (v);
3155 return s;
3156}
3157
3158/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3159 function prototypes and stuff, but not '\xHH' hex character constants.
3160 These don't provoke an error unfortunately, instead are silently treated
3161 as 'x'. The following induces an error, until -std is added to get
3162 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3163 array size at least. It's necessary to write '\x00'==0 to get something
3164 that's true only with -std. */
3165int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3166
3167/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3168 inside strings and character constants. */
3169#define FOO(x) 'x'
3170int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3171
3172int test (int i, double x);
3173struct s1 {int (*f) (int a);};
3174struct s2 {int (*f) (double a);};
3175int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3176int argc;
3177char **argv;
3178int
3179main ()
3180{
3181return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3182 ;
3183 return 0;
3184}
3185_ACEOF
3186for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3187 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3188do
3189 CC="$ac_save_CC $ac_arg"
3190 if ac_fn_c_try_compile "$LINENO"; then :
3191 ac_cv_prog_cc_c89=$ac_arg
3192fi
3193rm -f core conftest.err conftest.$ac_objext
3194 test "x$ac_cv_prog_cc_c89" != "xno" && break
3195done
3196rm -f conftest.$ac_ext
3197CC=$ac_save_CC
3198
3199fi
3200# AC_CACHE_VAL
3201case "x$ac_cv_prog_cc_c89" in
3202 x)
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3204$as_echo "none needed" >&6; } ;;
3205 xno)
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3207$as_echo "unsupported" >&6; } ;;
3208 *)
3209 CC="$CC $ac_cv_prog_cc_c89"
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3211$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3212esac
3213if test "x$ac_cv_prog_cc_c89" != xno; then :
3214
3215fi
3216
3217ac_ext=c
3218ac_cpp='$CPP $CPPFLAGS'
3219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221ac_compiler_gnu=$ac_cv_c_compiler_gnu
3222
3223ac_aux_dir=
3224for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3225 if test -f "$ac_dir/install-sh"; then
3226 ac_aux_dir=$ac_dir
3227 ac_install_sh="$ac_aux_dir/install-sh -c"
3228 break
3229 elif test -f "$ac_dir/install.sh"; then
3230 ac_aux_dir=$ac_dir
3231 ac_install_sh="$ac_aux_dir/install.sh -c"
3232 break
3233 elif test -f "$ac_dir/shtool"; then
3234 ac_aux_dir=$ac_dir
3235 ac_install_sh="$ac_aux_dir/shtool install -c"
3236 break
3237 fi
3238done
3239if test -z "$ac_aux_dir"; then
3240 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3241fi
3242
3243# These three variables are undocumented and unsupported,
3244# and are intended to be withdrawn in a future Autoconf release.
3245# They can cause serious problems if a builder's source tree is in a directory
3246# whose full name contains unusual characters.
3247ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3248ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3249ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3250
3251
3252# Find a good install program. We prefer a C program (faster),
3253# so one script is as good as another. But avoid the broken or
3254# incompatible versions:
3255# SysV /etc/install, /usr/sbin/install
3256# SunOS /usr/etc/install
3257# IRIX /sbin/install
3258# AIX /bin/install
3259# AmigaOS /C/install, which installs bootblocks on floppy discs
3260# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3261# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3262# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3263# OS/2's system install, which has a completely different semantic
3264# ./install, which can be erroneously created by make from ./install.sh.
3265# Reject install programs that cannot install multiple files.
3266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3267$as_echo_n "checking for a BSD-compatible install... " >&6; }
3268if test -z "$INSTALL"; then
6b668323 3269if ${ac_cv_path_install+:} false; then :
94759fd3
IJ
3270 $as_echo_n "(cached) " >&6
3271else
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273for as_dir in $PATH
3274do
3275 IFS=$as_save_IFS
3276 test -z "$as_dir" && as_dir=.
3277 # Account for people who put trailing slashes in PATH elements.
3278case $as_dir/ in #((
3279 ./ | .// | /[cC]/* | \
3280 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3281 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3282 /usr/ucb/* ) ;;
3283 *)
3284 # OSF1 and SCO ODT 3.0 have their own names for install.
3285 # Don't use installbsd from OSF since it installs stuff as root
3286 # by default.
3287 for ac_prog in ginstall scoinst install; do
3288 for ac_exec_ext in '' $ac_executable_extensions; do
6b668323 3289 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
94759fd3
IJ
3290 if test $ac_prog = install &&
3291 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3292 # AIX install. It has an incompatible calling convention.
3293 :
3294 elif test $ac_prog = install &&
3295 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3296 # program-specific install script used by HP pwplus--don't use.
3297 :
3298 else
3299 rm -rf conftest.one conftest.two conftest.dir
3300 echo one > conftest.one
3301 echo two > conftest.two
3302 mkdir conftest.dir
3303 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3304 test -s conftest.one && test -s conftest.two &&
3305 test -s conftest.dir/conftest.one &&
3306 test -s conftest.dir/conftest.two
3307 then
3308 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3309 break 3
3310 fi
3311 fi
3312 fi
3313 done
3314 done
3315 ;;
3316esac
3317
3318 done
3319IFS=$as_save_IFS
3320
3321rm -rf conftest.one conftest.two conftest.dir
3322
3323fi
3324 if test "${ac_cv_path_install+set}" = set; then
3325 INSTALL=$ac_cv_path_install
3326 else
3327 # As a last resort, use the slow shell script. Don't cache a
3328 # value for INSTALL within a source directory, because that will
3329 # break other packages using the cache if that directory is
3330 # removed, or if the value is a relative name.
3331 INSTALL=$ac_install_sh
3332 fi
3333fi
3334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3335$as_echo "$INSTALL" >&6; }
3336
3337# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3338# It thinks the first close brace ends the variable substitution.
3339test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3340
3341test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3342
3343test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3344
3345# Extract the first word of "rm", so it can be a program name with args.
3346set dummy rm; ac_word=$2
3347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348$as_echo_n "checking for $ac_word... " >&6; }
6b668323 3349if ${ac_cv_path_RM+:} false; then :
94759fd3
IJ
3350 $as_echo_n "(cached) " >&6
3351else
3352 case $RM in
3353 [\\/]* | ?:[\\/]*)
3354 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3355 ;;
3356 *)
3357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358for as_dir in $PATH
3359do
3360 IFS=$as_save_IFS
3361 test -z "$as_dir" && as_dir=.
3362 for ac_exec_ext in '' $ac_executable_extensions; do
6b668323 3363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
94759fd3
IJ
3364 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3366 break 2
3367 fi
3368done
3369 done
3370IFS=$as_save_IFS
3371
3372 ;;
3373esac
3374fi
3375RM=$ac_cv_path_RM
3376if test -n "$RM"; then
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
3378$as_echo "$RM" >&6; }
3379else
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381$as_echo "no" >&6; }
3382fi
3383
3384
3385
3386ac_ext=c
3387ac_cpp='$CPP $CPPFLAGS'
3388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3392$as_echo_n "checking how to run the C preprocessor... " >&6; }
3393# On Suns, sometimes $CPP names a directory.
3394if test -n "$CPP" && test -d "$CPP"; then
3395 CPP=
3396fi
3397if test -z "$CPP"; then
6b668323 3398 if ${ac_cv_prog_CPP+:} false; then :
94759fd3
IJ
3399 $as_echo_n "(cached) " >&6
3400else
3401 # Double quotes because CPP needs to be expanded
3402 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3403 do
3404 ac_preproc_ok=false
3405for ac_c_preproc_warn_flag in '' yes
3406do
3407 # Use a header file that comes with gcc, so configuring glibc
3408 # with a fresh cross-compiler works.
3409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3410 # <limits.h> exists even on freestanding compilers.
3411 # On the NeXT, cc -E runs the code through the compiler's parser,
3412 # not just through cpp. "Syntax error" is here to catch this case.
3413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414/* end confdefs.h. */
3415#ifdef __STDC__
3416# include <limits.h>
3417#else
3418# include <assert.h>
3419#endif
3420 Syntax error
3421_ACEOF
3422if ac_fn_c_try_cpp "$LINENO"; then :
3423
3424else
3425 # Broken: fails on valid input.
3426continue
3427fi
3428rm -f conftest.err conftest.i conftest.$ac_ext
3429
3430 # OK, works on sane cases. Now check whether nonexistent headers
3431 # can be detected and how.
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433/* end confdefs.h. */
3434#include <ac_nonexistent.h>
3435_ACEOF
3436if ac_fn_c_try_cpp "$LINENO"; then :
3437 # Broken: success on invalid input.
3438continue
3439else
3440 # Passes both tests.
3441ac_preproc_ok=:
3442break
3443fi
3444rm -f conftest.err conftest.i conftest.$ac_ext
3445
3446done
3447# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3448rm -f conftest.i conftest.err conftest.$ac_ext
3449if $ac_preproc_ok; then :
3450 break
3451fi
3452
3453 done
3454 ac_cv_prog_CPP=$CPP
3455
3456fi
3457 CPP=$ac_cv_prog_CPP
3458else
3459 ac_cv_prog_CPP=$CPP
3460fi
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3462$as_echo "$CPP" >&6; }
3463ac_preproc_ok=false
3464for ac_c_preproc_warn_flag in '' yes
3465do
3466 # Use a header file that comes with gcc, so configuring glibc
3467 # with a fresh cross-compiler works.
3468 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3469 # <limits.h> exists even on freestanding compilers.
3470 # On the NeXT, cc -E runs the code through the compiler's parser,
3471 # not just through cpp. "Syntax error" is here to catch this case.
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473/* end confdefs.h. */
3474#ifdef __STDC__
3475# include <limits.h>
3476#else
3477# include <assert.h>
3478#endif
3479 Syntax error
3480_ACEOF
3481if ac_fn_c_try_cpp "$LINENO"; then :
3482
3483else
3484 # Broken: fails on valid input.
3485continue
3486fi
3487rm -f conftest.err conftest.i conftest.$ac_ext
3488
3489 # OK, works on sane cases. Now check whether nonexistent headers
3490 # can be detected and how.
3491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492/* end confdefs.h. */
3493#include <ac_nonexistent.h>
3494_ACEOF
3495if ac_fn_c_try_cpp "$LINENO"; then :
3496 # Broken: success on invalid input.
3497continue
3498else
3499 # Passes both tests.
3500ac_preproc_ok=:
3501break
3502fi
3503rm -f conftest.err conftest.i conftest.$ac_ext
3504
3505done
3506# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3507rm -f conftest.i conftest.err conftest.$ac_ext
3508if $ac_preproc_ok; then :
3509
3510else
3511 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3512$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3513as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6b668323 3514See \`config.log' for more details" "$LINENO" 5; }
94759fd3
IJ
3515fi
3516
3517ac_ext=c
3518ac_cpp='$CPP $CPPFLAGS'
3519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521ac_compiler_gnu=$ac_cv_c_compiler_gnu
3522
3523
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3525$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6b668323 3526if ${ac_cv_path_GREP+:} false; then :
94759fd3
IJ
3527 $as_echo_n "(cached) " >&6
3528else
3529 if test -z "$GREP"; then
3530 ac_path_GREP_found=false
3531 # Loop through the user's path and test for each of PROGNAME-LIST
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3534do
3535 IFS=$as_save_IFS
3536 test -z "$as_dir" && as_dir=.
3537 for ac_prog in grep ggrep; do
3538 for ac_exec_ext in '' $ac_executable_extensions; do
3539 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6b668323 3540 as_fn_executable_p "$ac_path_GREP" || continue
94759fd3
IJ
3541# Check for GNU ac_path_GREP and select it if it is found.
3542 # Check for GNU $ac_path_GREP
3543case `"$ac_path_GREP" --version 2>&1` in
3544*GNU*)
3545 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3546*)
3547 ac_count=0
3548 $as_echo_n 0123456789 >"conftest.in"
3549 while :
3550 do
3551 cat "conftest.in" "conftest.in" >"conftest.tmp"
3552 mv "conftest.tmp" "conftest.in"
3553 cp "conftest.in" "conftest.nl"
3554 $as_echo 'GREP' >> "conftest.nl"
3555 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3556 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3557 as_fn_arith $ac_count + 1 && ac_count=$as_val
3558 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3559 # Best one so far, save it but keep looking for a better one
3560 ac_cv_path_GREP="$ac_path_GREP"
3561 ac_path_GREP_max=$ac_count
3562 fi
3563 # 10*(2^10) chars as input seems more than enough
3564 test $ac_count -gt 10 && break
3565 done
3566 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3567esac
3568
3569 $ac_path_GREP_found && break 3
3570 done
3571 done
3572 done
3573IFS=$as_save_IFS
3574 if test -z "$ac_cv_path_GREP"; then
3575 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3576 fi
3577else
3578 ac_cv_path_GREP=$GREP
3579fi
3580
3581fi
3582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3583$as_echo "$ac_cv_path_GREP" >&6; }
3584 GREP="$ac_cv_path_GREP"
3585
3586
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3588$as_echo_n "checking for egrep... " >&6; }
6b668323 3589if ${ac_cv_path_EGREP+:} false; then :
94759fd3
IJ
3590 $as_echo_n "(cached) " >&6
3591else
3592 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3593 then ac_cv_path_EGREP="$GREP -E"
3594 else
3595 if test -z "$EGREP"; then
3596 ac_path_EGREP_found=false
3597 # Loop through the user's path and test for each of PROGNAME-LIST
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3600do
3601 IFS=$as_save_IFS
3602 test -z "$as_dir" && as_dir=.
3603 for ac_prog in egrep; do
3604 for ac_exec_ext in '' $ac_executable_extensions; do
3605 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6b668323 3606 as_fn_executable_p "$ac_path_EGREP" || continue
94759fd3
IJ
3607# Check for GNU ac_path_EGREP and select it if it is found.
3608 # Check for GNU $ac_path_EGREP
3609case `"$ac_path_EGREP" --version 2>&1` in
3610*GNU*)
3611 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3612*)
3613 ac_count=0
3614 $as_echo_n 0123456789 >"conftest.in"
3615 while :
3616 do
3617 cat "conftest.in" "conftest.in" >"conftest.tmp"
3618 mv "conftest.tmp" "conftest.in"
3619 cp "conftest.in" "conftest.nl"
3620 $as_echo 'EGREP' >> "conftest.nl"
3621 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3622 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3623 as_fn_arith $ac_count + 1 && ac_count=$as_val
3624 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3625 # Best one so far, save it but keep looking for a better one
3626 ac_cv_path_EGREP="$ac_path_EGREP"
3627 ac_path_EGREP_max=$ac_count
3628 fi
3629 # 10*(2^10) chars as input seems more than enough
3630 test $ac_count -gt 10 && break
3631 done
3632 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3633esac
3634
3635 $ac_path_EGREP_found && break 3
3636 done
3637 done
3638 done
3639IFS=$as_save_IFS
3640 if test -z "$ac_cv_path_EGREP"; then
3641 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3642 fi
3643else
3644 ac_cv_path_EGREP=$EGREP
3645fi
3646
3647 fi
3648fi
3649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3650$as_echo "$ac_cv_path_EGREP" >&6; }
3651 EGREP="$ac_cv_path_EGREP"
3652
3653
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3655$as_echo_n "checking for ANSI C header files... " >&6; }
6b668323 3656if ${ac_cv_header_stdc+:} false; then :
94759fd3
IJ
3657 $as_echo_n "(cached) " >&6
3658else
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660/* end confdefs.h. */
3661#include <stdlib.h>
3662#include <stdarg.h>
3663#include <string.h>
3664#include <float.h>
3665
3666int
3667main ()
3668{
3669
3670 ;
3671 return 0;
3672}
3673_ACEOF
3674if ac_fn_c_try_compile "$LINENO"; then :
3675 ac_cv_header_stdc=yes
3676else
3677 ac_cv_header_stdc=no
3678fi
3679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3680
3681if test $ac_cv_header_stdc = yes; then
3682 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684/* end confdefs.h. */
3685#include <string.h>
3686
3687_ACEOF
3688if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3689 $EGREP "memchr" >/dev/null 2>&1; then :
3690
3691else
3692 ac_cv_header_stdc=no
3693fi
3694rm -f conftest*
3695
3696fi
3697
3698if test $ac_cv_header_stdc = yes; then
3699 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701/* end confdefs.h. */
3702#include <stdlib.h>
3703
3704_ACEOF
3705if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3706 $EGREP "free" >/dev/null 2>&1; then :
3707
3708else
3709 ac_cv_header_stdc=no
3710fi
3711rm -f conftest*
3712
3713fi
3714
3715if test $ac_cv_header_stdc = yes; then
3716 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3717 if test "$cross_compiling" = yes; then :
3718 :
3719else
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721/* end confdefs.h. */
3722#include <ctype.h>
3723#include <stdlib.h>
3724#if ((' ' & 0x0FF) == 0x020)
3725# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3726# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3727#else
3728# define ISLOWER(c) \
3729 (('a' <= (c) && (c) <= 'i') \
3730 || ('j' <= (c) && (c) <= 'r') \
3731 || ('s' <= (c) && (c) <= 'z'))
3732# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3733#endif
3734
3735#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3736int
3737main ()
3738{
3739 int i;
3740 for (i = 0; i < 256; i++)
3741 if (XOR (islower (i), ISLOWER (i))
3742 || toupper (i) != TOUPPER (i))
3743 return 2;
3744 return 0;
3745}
3746_ACEOF
3747if ac_fn_c_try_run "$LINENO"; then :
3748
3749else
3750 ac_cv_header_stdc=no
3751fi
3752rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3753 conftest.$ac_objext conftest.beam conftest.$ac_ext
3754fi
3755
3756fi
3757fi
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3759$as_echo "$ac_cv_header_stdc" >&6; }
3760if test $ac_cv_header_stdc = yes; then
3761
3762$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3763
3764fi
3765
3766# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3767for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3768 inttypes.h stdint.h unistd.h
3769do :
3770 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3771ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3772"
3773if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3774 cat >>confdefs.h <<_ACEOF
3775#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3776_ACEOF
3777
3778fi
3779
3780done
3781
3782
3783for ac_header in stdint.h inttypes.h
3784do :
3785 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3786ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3787if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3788 cat >>confdefs.h <<_ACEOF
3789#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3790_ACEOF
3791
3792fi
3793
3794done
3795
3796for ac_header in net/if.h net/route.h
3797do :
3798 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3799ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3800if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3801 cat >>confdefs.h <<_ACEOF
3802#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3803_ACEOF
3804
3805fi
3806
3807done
3808
3809for ac_header in sys/socket.h
3810do :
3811 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6b668323 3812if test "x$ac_cv_header_sys_socket_h" = xyes; then :
94759fd3
IJ
3813 cat >>confdefs.h <<_ACEOF
3814#define HAVE_SYS_SOCKET_H 1
3815_ACEOF
3816
3817fi
3818
3819done
3820
94ca562b 3821for ac_header in linux/if_tun.h
94759fd3 3822do :
94ca562b 3823 ac_fn_c_check_header_compile "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "#if HAVE_SYS_SOCKET_H
94759fd3
IJ
3824# include <sys/socket.h>
3825#endif
3826
3827"
94ca562b 3828if test "x$ac_cv_header_linux_if_tun_h" = xyes; then :
94759fd3 3829 cat >>confdefs.h <<_ACEOF
94ca562b 3830#define HAVE_LINUX_IF_TUN_H 1
94759fd3
IJ
3831_ACEOF
3832
3833fi
3834
3835done
3836
3837for ac_header in stropts.h sys/sockio.h net/if_tun.h
3838do :
3839 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3840ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3841if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3842 cat >>confdefs.h <<_ACEOF
3843#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3844_ACEOF
3845
3846fi
3847
3848done
3849
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3851$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6b668323 3852if ${ac_cv_c_bigendian+:} false; then :
94759fd3
IJ
3853 $as_echo_n "(cached) " >&6
3854else
3855 ac_cv_c_bigendian=unknown
3856 # See if we're dealing with a universal compiler.
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858/* end confdefs.h. */
3859#ifndef __APPLE_CC__
3860 not a universal capable compiler
3861 #endif
3862 typedef int dummy;
3863
3864_ACEOF
3865if ac_fn_c_try_compile "$LINENO"; then :
3866
3867 # Check for potential -arch flags. It is not universal unless
3868 # there are at least two -arch flags with different values.
3869 ac_arch=
3870 ac_prev=
3871 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3872 if test -n "$ac_prev"; then
3873 case $ac_word in
3874 i?86 | x86_64 | ppc | ppc64)
3875 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3876 ac_arch=$ac_word
3877 else
3878 ac_cv_c_bigendian=universal
3879 break
3880 fi
3881 ;;
3882 esac
3883 ac_prev=
3884 elif test "x$ac_word" = "x-arch"; then
3885 ac_prev=arch
3886 fi
3887 done
3888fi
3889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890 if test $ac_cv_c_bigendian = unknown; then
3891 # See if sys/param.h defines the BYTE_ORDER macro.
3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893/* end confdefs.h. */
3894#include <sys/types.h>
3895 #include <sys/param.h>
3896
3897int
3898main ()
3899{
3900#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3901 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3902 && LITTLE_ENDIAN)
3903 bogus endian macros
3904 #endif
3905
3906 ;
3907 return 0;
3908}
3909_ACEOF
3910if ac_fn_c_try_compile "$LINENO"; then :
3911 # It does; now see whether it defined to BIG_ENDIAN or not.
3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913/* end confdefs.h. */
3914#include <sys/types.h>
3915 #include <sys/param.h>
3916
3917int
3918main ()
3919{
3920#if BYTE_ORDER != BIG_ENDIAN
3921 not big endian
3922 #endif
3923
3924 ;
3925 return 0;
3926}
3927_ACEOF
3928if ac_fn_c_try_compile "$LINENO"; then :
3929 ac_cv_c_bigendian=yes
3930else
3931 ac_cv_c_bigendian=no
3932fi
3933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3934fi
3935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3936 fi
3937 if test $ac_cv_c_bigendian = unknown; then
3938 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940/* end confdefs.h. */
3941#include <limits.h>
3942
3943int
3944main ()
3945{
3946#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3947 bogus endian macros
3948 #endif
3949
3950 ;
3951 return 0;
3952}
3953_ACEOF
3954if ac_fn_c_try_compile "$LINENO"; then :
3955 # It does; now see whether it defined to _BIG_ENDIAN or not.
3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957/* end confdefs.h. */
3958#include <limits.h>
3959
3960int
3961main ()
3962{
3963#ifndef _BIG_ENDIAN
3964 not big endian
3965 #endif
3966
3967 ;
3968 return 0;
3969}
3970_ACEOF
3971if ac_fn_c_try_compile "$LINENO"; then :
3972 ac_cv_c_bigendian=yes
3973else
3974 ac_cv_c_bigendian=no
3975fi
3976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3977fi
3978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3979 fi
3980 if test $ac_cv_c_bigendian = unknown; then
3981 # Compile a test program.
3982 if test "$cross_compiling" = yes; then :
3983 # Try to guess by grepping values from an object file.
3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985/* end confdefs.h. */
3986short int ascii_mm[] =
3987 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3988 short int ascii_ii[] =
3989 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3990 int use_ascii (int i) {
3991 return ascii_mm[i] + ascii_ii[i];
3992 }
3993 short int ebcdic_ii[] =
3994 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3995 short int ebcdic_mm[] =
3996 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3997 int use_ebcdic (int i) {
3998 return ebcdic_mm[i] + ebcdic_ii[i];
3999 }
4000 extern int foo;
4001
4002int
4003main ()
4004{
4005return use_ascii (foo) == use_ebcdic (foo);
4006 ;
4007 return 0;
4008}
4009_ACEOF
4010if ac_fn_c_try_compile "$LINENO"; then :
4011 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4012 ac_cv_c_bigendian=yes
4013 fi
4014 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4015 if test "$ac_cv_c_bigendian" = unknown; then
4016 ac_cv_c_bigendian=no
4017 else
4018 # finding both strings is unlikely to happen, but who knows?
4019 ac_cv_c_bigendian=unknown
4020 fi
4021 fi
4022fi
4023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024else
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026/* end confdefs.h. */
4027$ac_includes_default
4028int
4029main ()
4030{
4031
4032 /* Are we little or big endian? From Harbison&Steele. */
4033 union
4034 {
4035 long int l;
4036 char c[sizeof (long int)];
4037 } u;
4038 u.l = 1;
4039 return u.c[sizeof (long int) - 1] == 1;
4040
4041 ;
4042 return 0;
4043}
4044_ACEOF
4045if ac_fn_c_try_run "$LINENO"; then :
4046 ac_cv_c_bigendian=no
4047else
4048 ac_cv_c_bigendian=yes
4049fi
4050rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4051 conftest.$ac_objext conftest.beam conftest.$ac_ext
4052fi
4053
4054 fi
4055fi
4056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4057$as_echo "$ac_cv_c_bigendian" >&6; }
4058 case $ac_cv_c_bigendian in #(
4059 yes)
4060 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4061;; #(
4062 no)
4063 ;; #(
4064 universal)
4065
4066$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4067
4068 ;; #(
4069 *)
4070 as_fn_error $? "unknown endianness
6b668323 4071 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
94759fd3
IJ
4072 esac
4073
4074# The cast to long int works around a bug in the HP C Compiler
4075# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4076# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4077# This bug is HP SR number 8606223364.
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
4079$as_echo_n "checking size of unsigned long long... " >&6; }
6b668323 4080if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
94759fd3
IJ
4081 $as_echo_n "(cached) " >&6
4082else
4083 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
4084
4085else
4086 if test "$ac_cv_type_unsigned_long_long" = yes; then
4087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4089as_fn_error 77 "cannot compute sizeof (unsigned long long)
6b668323 4090See \`config.log' for more details" "$LINENO" 5; }
94759fd3
IJ
4091 else
4092 ac_cv_sizeof_unsigned_long_long=0
4093 fi
4094fi
4095
4096fi
4097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
4098$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
4099
4100
4101
4102cat >>confdefs.h <<_ACEOF
4103#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
4104_ACEOF
4105
4106
4107# The cast to long int works around a bug in the HP C Compiler
4108# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4109# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4110# This bug is HP SR number 8606223364.
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
4112$as_echo_n "checking size of unsigned long... " >&6; }
6b668323 4113if ${ac_cv_sizeof_unsigned_long+:} false; then :
94759fd3
IJ
4114 $as_echo_n "(cached) " >&6
4115else
4116 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
4117
4118else
4119 if test "$ac_cv_type_unsigned_long" = yes; then
4120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4122as_fn_error 77 "cannot compute sizeof (unsigned long)
6b668323 4123See \`config.log' for more details" "$LINENO" 5; }
94759fd3
IJ
4124 else
4125 ac_cv_sizeof_unsigned_long=0
4126 fi
4127fi
4128
4129fi
4130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
4131$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
4132
4133
4134
4135cat >>confdefs.h <<_ACEOF
4136#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
4137_ACEOF
4138
4139
4140# The cast to long int works around a bug in the HP C Compiler
4141# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4142# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4143# This bug is HP SR number 8606223364.
4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
4145$as_echo_n "checking size of unsigned int... " >&6; }
6b668323 4146if ${ac_cv_sizeof_unsigned_int+:} false; then :
94759fd3
IJ
4147 $as_echo_n "(cached) " >&6
4148else
4149 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
4150
4151else
4152 if test "$ac_cv_type_unsigned_int" = yes; then
4153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4155as_fn_error 77 "cannot compute sizeof (unsigned int)
6b668323 4156See \`config.log' for more details" "$LINENO" 5; }
94759fd3
IJ
4157 else
4158 ac_cv_sizeof_unsigned_int=0
4159 fi
4160fi
4161
4162fi
4163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
4164$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
4165
4166
4167
4168cat >>confdefs.h <<_ACEOF
4169#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
4170_ACEOF
4171
4172
4173# The cast to long int works around a bug in the HP C Compiler
4174# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4175# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4176# This bug is HP SR number 8606223364.
4177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
4178$as_echo_n "checking size of unsigned short... " >&6; }
6b668323 4179if ${ac_cv_sizeof_unsigned_short+:} false; then :
94759fd3
IJ
4180 $as_echo_n "(cached) " >&6
4181else
4182 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
4183
4184else
4185 if test "$ac_cv_type_unsigned_short" = yes; then
4186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4187$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4188as_fn_error 77 "cannot compute sizeof (unsigned short)
6b668323 4189See \`config.log' for more details" "$LINENO" 5; }
94759fd3
IJ
4190 else
4191 ac_cv_sizeof_unsigned_short=0
4192 fi
4193fi
4194
4195fi
4196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
4197$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
4198
4199
4200
4201cat >>confdefs.h <<_ACEOF
4202#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
4203_ACEOF
4204
4205
4206# The cast to long int works around a bug in the HP C Compiler
4207# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4208# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4209# This bug is HP SR number 8606223364.
4210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char" >&5
4211$as_echo_n "checking size of unsigned char... " >&6; }
6b668323 4212if ${ac_cv_sizeof_unsigned_char+:} false; then :
94759fd3
IJ
4213 $as_echo_n "(cached) " >&6
4214else
4215 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char))" "ac_cv_sizeof_unsigned_char" "$ac_includes_default"; then :
4216
4217else
4218 if test "$ac_cv_type_unsigned_char" = yes; then
4219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4221as_fn_error 77 "cannot compute sizeof (unsigned char)
6b668323 4222See \`config.log' for more details" "$LINENO" 5; }
94759fd3
IJ
4223 else
4224 ac_cv_sizeof_unsigned_char=0
4225 fi
4226fi
4227
4228fi
4229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char" >&5
4230$as_echo "$ac_cv_sizeof_unsigned_char" >&6; }
4231
4232
4233
4234cat >>confdefs.h <<_ACEOF
4235#define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
4236_ACEOF
4237
4238
4239
4240 hard=
4241 if test -z "$hard"; then
4242 msg="C to warn about writing to stringliterals"
4243 else
4244 msg="C to prohibit any write to stringliterals"
4245 fi
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5
4247$as_echo_n "checking $msg... " >&6; }
6b668323 4248if ${ac_cv_prog_cc_no_writeable_strings+:} false; then :
94759fd3
IJ
4249 $as_echo_n "(cached) " >&6
4250else
4251
4252 cat > conftest.c <<EOF
4253#include <string.h>
4254int main (void)
4255{
4256 char test[16];
4257 if (strcpy (test, "test")) return 0;
4258 return 1;
4259}
4260EOF
4261 if test "$GCC" = "yes";
4262 then
4263 if test -z "$hard"; then
4264 ac_cv_prog_cc_no_writeable_strings="-Wwrite-strings"
4265 else
4266 ac_cv_prog_cc_no_writeable_strings="-fno-writable-strings -Wwrite-strings"
4267 fi
4268
4269 if test -n "`${CC-cc} -c $ac_cv_prog_cc_no_writeable_strings conftest.c 2>&1`" ; then
4270 ac_cv_prog_cc_no_writeable_strings="suppressed: string.h"
4271 fi
4272
4273 elif $CC -flags 2>&1 | grep "Xc.*strict ANSI C" > /dev/null 2>&1 &&
4274 $CC -c -xstrconst conftest.c > /dev/null 2>&1 &&
4275 test -f conftest.o
4276 then
4277 # strings go into readonly segment
4278 ac_cv_prog_cc_no_writeable_strings="-xstrconst"
4279
4280 rm conftest.o
4281 if test -n "`${CC-cc} -c $ac_cv_prog_cc_no_writeable_strings conftest.c 2>&1`" ; then
4282 ac_cv_prog_cc_no_writeable_strings="suppressed: string.h"
4283 fi
4284
4285 elif $CC > /dev/null 2>&1 &&
4286 $CC -c +ESlit conftest.c > /dev/null 2>&1 &&
4287 test -f conftest.o
4288 then
4289 # strings go into readonly segment
4290 ac_cv_prog_cc_no_writeable_strings="+ESlit"
4291
4292 rm conftest.o
4293 if test -n "`${CC-cc} -c $ac_cv_prog_cc_no_writeable_strings conftest.c 2>&1`" ; then
4294 ac_cv_prog_cc_no_writeable_strings="suppressed: string.h"
4295 fi
4296
4297 elif ! $CC > /dev/null 2>&1 &&
4298 $CC -c -readonly_strings conftest.c > /dev/null 2>&1 &&
4299 test -f conftest.o
4300 then
4301 # strings go into readonly segment
4302 ac_cv_prog_cc_no_writeable_strings="-readonly_strings"
4303
4304 rm conftest.o
4305 if test -n "`${CC-cc} -c $ac_cv_prog_cc_no_writeable_strings conftest.c 2>&1`" ; then
4306 ac_cv_prog_cc_no_writeable_strings="suppressed: string.h"
4307 fi
4308
4309
4310 # -use_readonly_const is the default for IRIX C,
4311 # puts them into .rodata, but they are copied later.
4312 # need to be "-G0 -rdatashared" for strictmode but
4313 # I am not sure what effect that has really.
4314
4315 fi
4316 rm -f conftest.*
4317
4318fi
4319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_no_writeable_strings" >&5
4320$as_echo "$ac_cv_prog_cc_no_writeable_strings" >&6; }
4321 if test -z "$WRITESTRINGS" ; then
4322 if test -n "$ac_cv_prog_cc_no_writeable_strings" ; then
4323 case "$ac_cv_prog_cc_no_writeable_strings" in
4324 suppressed*) WRITESTRINGS="" ;; # known but suppressed
4325 *) WRITESTRINGS="$ac_cv_prog_cc_no_writeable_strings" ;;
4326 esac
4327 fi
4328 fi
4329
4330
4331
e1b81bd6
IJ
4332# Check whether --enable-hacky-parallel was given.
4333if test "${enable_hacky_parallel+set}" = set; then :
4334 enableval=$enable_hacky_parallel;
4335 case "$enableval" in
4336 n|0|no) ;;
4337 y|1|yes) CFLAGS="$CFLAGS -DHACKY_PARALLEL" ;;
4338 *) ;;
4339 esac
4340
4341fi
4342
4343
94759fd3
IJ
4344
4345
4346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpz_init_set_str in -lgmp" >&5
4347$as_echo_n "checking for mpz_init_set_str in -lgmp... " >&6; }
6b668323 4348if ${ac_cv_lib_gmp_mpz_init_set_str+:} false; then :
94759fd3
IJ
4349 $as_echo_n "(cached) " >&6
4350else
4351 ac_check_lib_save_LIBS=$LIBS
4352LIBS="-lgmp $LIBS"
4353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354/* end confdefs.h. */
4355
4356/* Override any GCC internal prototype to avoid an error.
4357 Use char because int might match the return type of a GCC
4358 builtin and then its argument prototype would still apply. */
4359#ifdef __cplusplus
4360extern "C"
4361#endif
4362char mpz_init_set_str ();
4363int
4364main ()
4365{
4366return mpz_init_set_str ();
4367 ;
4368 return 0;
4369}
4370_ACEOF
4371if ac_fn_c_try_link "$LINENO"; then :
4372 ac_cv_lib_gmp_mpz_init_set_str=yes
4373else
4374 ac_cv_lib_gmp_mpz_init_set_str=no
4375fi
4376rm -f core conftest.err conftest.$ac_objext \
4377 conftest$ac_exeext conftest.$ac_ext
4378LIBS=$ac_check_lib_save_LIBS
4379fi
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp_mpz_init_set_str" >&5
4381$as_echo "$ac_cv_lib_gmp_mpz_init_set_str" >&6; }
6b668323 4382if test "x$ac_cv_lib_gmp_mpz_init_set_str" = xyes; then :
94759fd3
IJ
4383 cat >>confdefs.h <<_ACEOF
4384#define HAVE_LIBGMP 1
4385_ACEOF
4386
4387 LIBS="-lgmp $LIBS"
4388
4389fi
4390
4391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpz_init_set_str in -lgmp2" >&5
4392$as_echo_n "checking for mpz_init_set_str in -lgmp2... " >&6; }
6b668323 4393if ${ac_cv_lib_gmp2_mpz_init_set_str+:} false; then :
94759fd3
IJ
4394 $as_echo_n "(cached) " >&6
4395else
4396 ac_check_lib_save_LIBS=$LIBS
4397LIBS="-lgmp2 $LIBS"
4398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399/* end confdefs.h. */
4400
4401/* Override any GCC internal prototype to avoid an error.
4402 Use char because int might match the return type of a GCC
4403 builtin and then its argument prototype would still apply. */
4404#ifdef __cplusplus
4405extern "C"
4406#endif
4407char mpz_init_set_str ();
4408int
4409main ()
4410{
4411return mpz_init_set_str ();
4412 ;
4413 return 0;
4414}
4415_ACEOF
4416if ac_fn_c_try_link "$LINENO"; then :
4417 ac_cv_lib_gmp2_mpz_init_set_str=yes
4418else
4419 ac_cv_lib_gmp2_mpz_init_set_str=no
4420fi
4421rm -f core conftest.err conftest.$ac_objext \
4422 conftest$ac_exeext conftest.$ac_ext
4423LIBS=$ac_check_lib_save_LIBS
4424fi
4425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp2_mpz_init_set_str" >&5
4426$as_echo "$ac_cv_lib_gmp2_mpz_init_set_str" >&6; }
6b668323 4427if test "x$ac_cv_lib_gmp2_mpz_init_set_str" = xyes; then :
94759fd3
IJ
4428 cat >>confdefs.h <<_ACEOF
4429#define HAVE_LIBGMP2 1
4430_ACEOF
4431
4432 LIBS="-lgmp2 $LIBS"
4433
4434fi
4435
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init_set_str in -lgmp" >&5
4437$as_echo_n "checking for __gmpz_init_set_str in -lgmp... " >&6; }
6b668323 4438if ${ac_cv_lib_gmp___gmpz_init_set_str+:} false; then :
94759fd3
IJ
4439 $as_echo_n "(cached) " >&6
4440else
4441 ac_check_lib_save_LIBS=$LIBS
4442LIBS="-lgmp $LIBS"
4443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444/* end confdefs.h. */
4445
4446/* Override any GCC internal prototype to avoid an error.
4447 Use char because int might match the return type of a GCC
4448 builtin and then its argument prototype would still apply. */
4449#ifdef __cplusplus
4450extern "C"
4451#endif
4452char __gmpz_init_set_str ();
4453int
4454main ()
4455{
4456return __gmpz_init_set_str ();
4457 ;
4458 return 0;
4459}
4460_ACEOF
4461if ac_fn_c_try_link "$LINENO"; then :
4462 ac_cv_lib_gmp___gmpz_init_set_str=yes
4463else
4464 ac_cv_lib_gmp___gmpz_init_set_str=no
4465fi
4466rm -f core conftest.err conftest.$ac_objext \
4467 conftest$ac_exeext conftest.$ac_ext
4468LIBS=$ac_check_lib_save_LIBS
4469fi
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init_set_str" >&5
4471$as_echo "$ac_cv_lib_gmp___gmpz_init_set_str" >&6; }
6b668323 4472if test "x$ac_cv_lib_gmp___gmpz_init_set_str" = xyes; then :
94759fd3
IJ
4473 cat >>confdefs.h <<_ACEOF
4474#define HAVE_LIBGMP 1
4475_ACEOF
4476
4477 LIBS="-lgmp $LIBS"
4478
4479fi
4480
4481ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
6b668323 4482if test "x$ac_cv_header_gmp_h" = xyes; then :
94759fd3
IJ
4483
4484else
4485 as_fn_error $? "gmp.h not found" "$LINENO" 5
4486fi
4487
4488
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for yywrap in -lfl" >&5
4490$as_echo_n "checking for yywrap in -lfl... " >&6; }
6b668323 4491if ${ac_cv_lib_fl_yywrap+:} false; then :
94759fd3
IJ
4492 $as_echo_n "(cached) " >&6
4493else
4494 ac_check_lib_save_LIBS=$LIBS
4495LIBS="-lfl $LIBS"
4496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497/* end confdefs.h. */
4498
4499/* Override any GCC internal prototype to avoid an error.
4500 Use char because int might match the return type of a GCC
4501 builtin and then its argument prototype would still apply. */
4502#ifdef __cplusplus
4503extern "C"
4504#endif
4505char yywrap ();
4506int
4507main ()
4508{
4509return yywrap ();
4510 ;
4511 return 0;
4512}
4513_ACEOF
4514if ac_fn_c_try_link "$LINENO"; then :
4515 ac_cv_lib_fl_yywrap=yes
4516else
4517 ac_cv_lib_fl_yywrap=no
4518fi
4519rm -f core conftest.err conftest.$ac_objext \
4520 conftest$ac_exeext conftest.$ac_ext
4521LIBS=$ac_check_lib_save_LIBS
4522fi
4523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fl_yywrap" >&5
4524$as_echo "$ac_cv_lib_fl_yywrap" >&6; }
6b668323 4525if test "x$ac_cv_lib_fl_yywrap" = xyes; then :
94759fd3
IJ
4526 cat >>confdefs.h <<_ACEOF
4527#define HAVE_LIBFL 1
4528_ACEOF
4529
4530 LIBS="-lfl $LIBS"
4531
4532fi
4533
4534if test "$ac_cv_lib_fl_yywrap" != yes; then
4535 as_fn_error $? "A compatible libfl is required" "$LINENO" 5
4536fi
ee2536e4
IJ
4537
4538
4539 ac_fn_c_check_func "$LINENO" "inet_ntoa" "ac_cv_func_inet_ntoa"
4540if test "x$ac_cv_func_inet_ntoa" = xyes; then :
4541
4542else
4543
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
94759fd3 4545$as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
6b668323 4546if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
94759fd3
IJ
4547 $as_echo_n "(cached) " >&6
4548else
4549 ac_check_lib_save_LIBS=$LIBS
4550LIBS="-lnsl $LIBS"
4551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552/* end confdefs.h. */
4553
4554/* Override any GCC internal prototype to avoid an error.
4555 Use char because int might match the return type of a GCC
4556 builtin and then its argument prototype would still apply. */
4557#ifdef __cplusplus
4558extern "C"
4559#endif
4560char inet_ntoa ();
4561int
4562main ()
4563{
4564return inet_ntoa ();
4565 ;
4566 return 0;
4567}
4568_ACEOF
4569if ac_fn_c_try_link "$LINENO"; then :
4570 ac_cv_lib_nsl_inet_ntoa=yes
4571else
4572 ac_cv_lib_nsl_inet_ntoa=no
4573fi
4574rm -f core conftest.err conftest.$ac_objext \
4575 conftest$ac_exeext conftest.$ac_ext
4576LIBS=$ac_check_lib_save_LIBS
4577fi
4578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
4579$as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
6b668323 4580if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
94759fd3 4581
ee2536e4
IJ
4582 LIBS="-lnsl $LIBS";
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: inet_ntoa is in libnsl, urgh. Must use -lnsl." >&5
4584$as_echo "$as_me: WARNING: inet_ntoa is in libnsl, urgh. Must use -lnsl." >&2;}
4585
4586else
4587
4588 as_fn_error $? "cannot find library function inet_ntoa" "$LINENO" 5
94759fd3
IJ
4589
4590fi
4591
ee2536e4
IJ
4592
4593fi
4594
4595
4596
94759fd3
IJ
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4598$as_echo_n "checking for socket in -lsocket... " >&6; }
6b668323 4599if ${ac_cv_lib_socket_socket+:} false; then :
94759fd3
IJ
4600 $as_echo_n "(cached) " >&6
4601else
4602 ac_check_lib_save_LIBS=$LIBS
4603LIBS="-lsocket $LIBS"
4604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605/* end confdefs.h. */
4606
4607/* Override any GCC internal prototype to avoid an error.
4608 Use char because int might match the return type of a GCC
4609 builtin and then its argument prototype would still apply. */
4610#ifdef __cplusplus
4611extern "C"
4612#endif
4613char socket ();
4614int
4615main ()
4616{
4617return socket ();
4618 ;
4619 return 0;
4620}
4621_ACEOF
4622if ac_fn_c_try_link "$LINENO"; then :
4623 ac_cv_lib_socket_socket=yes
4624else
4625 ac_cv_lib_socket_socket=no
4626fi
4627rm -f core conftest.err conftest.$ac_objext \
4628 conftest$ac_exeext conftest.$ac_ext
4629LIBS=$ac_check_lib_save_LIBS
4630fi
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4632$as_echo "$ac_cv_lib_socket_socket" >&6; }
6b668323 4633if test "x$ac_cv_lib_socket_socket" = xyes; then :
94759fd3
IJ
4634 cat >>confdefs.h <<_ACEOF
4635#define HAVE_LIBSOCKET 1
4636_ACEOF
4637
4638 LIBS="-lsocket $LIBS"
4639
4640fi
4641
695904f2 4642
c143276b 4643
695904f2
IJ
4644 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
4645if test "x$ac_cv_func_inet_aton" = xyes; then :
4646
4647else
4648
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
94759fd3 4650$as_echo_n "checking for inet_aton in -lresolv... " >&6; }
6b668323 4651if ${ac_cv_lib_resolv_inet_aton+:} false; then :
94759fd3
IJ
4652 $as_echo_n "(cached) " >&6
4653else
4654 ac_check_lib_save_LIBS=$LIBS
4655LIBS="-lresolv $LIBS"
4656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657/* end confdefs.h. */
4658
4659/* Override any GCC internal prototype to avoid an error.
4660 Use char because int might match the return type of a GCC
4661 builtin and then its argument prototype would still apply. */
4662#ifdef __cplusplus
4663extern "C"
4664#endif
4665char inet_aton ();
4666int
4667main ()
4668{
4669return inet_aton ();
4670 ;
4671 return 0;
4672}
4673_ACEOF
4674if ac_fn_c_try_link "$LINENO"; then :
4675 ac_cv_lib_resolv_inet_aton=yes
4676else
4677 ac_cv_lib_resolv_inet_aton=no
4678fi
4679rm -f core conftest.err conftest.$ac_objext \
4680 conftest$ac_exeext conftest.$ac_ext
4681LIBS=$ac_check_lib_save_LIBS
4682fi
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
4684$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
6b668323 4685if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
94759fd3 4686
c143276b
IJ
4687 LIBS="-lresolv $LIBS";
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: inet_aton is in libresolv, urgh. Must use -lresolv." >&5
695904f2
IJ
4689$as_echo "$as_me: WARNING: inet_aton is in libresolv, urgh. Must use -lresolv." >&2;}
4690
4691else
4692
4693 as_fn_error $? "cannot find library function inet_aton" "$LINENO" 5
4694
4695fi
4696
94759fd3
IJ
4697
4698fi
4699
695904f2 4700
c143276b 4701
94759fd3
IJ
4702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for adns_init in -ladns" >&5
4703$as_echo_n "checking for adns_init in -ladns... " >&6; }
6b668323 4704if ${ac_cv_lib_adns_adns_init+:} false; then :
94759fd3
IJ
4705 $as_echo_n "(cached) " >&6
4706else
4707 ac_check_lib_save_LIBS=$LIBS
4708LIBS="-ladns $LIBS"
4709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710/* end confdefs.h. */
4711
4712/* Override any GCC internal prototype to avoid an error.
4713 Use char because int might match the return type of a GCC
4714 builtin and then its argument prototype would still apply. */
4715#ifdef __cplusplus
4716extern "C"
4717#endif
4718char adns_init ();
4719int
4720main ()
4721{
4722return adns_init ();
4723 ;
4724 return 0;
4725}
4726_ACEOF
4727if ac_fn_c_try_link "$LINENO"; then :
4728 ac_cv_lib_adns_adns_init=yes
4729else
4730 ac_cv_lib_adns_adns_init=no
4731fi
4732rm -f core conftest.err conftest.$ac_objext \
4733 conftest$ac_exeext conftest.$ac_ext
4734LIBS=$ac_check_lib_save_LIBS
4735fi
4736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_adns_adns_init" >&5
4737$as_echo "$ac_cv_lib_adns_adns_init" >&6; }
6b668323 4738if test "x$ac_cv_lib_adns_adns_init" = xyes; then :
94759fd3
IJ
4739 cat >>confdefs.h <<_ACEOF
4740#define HAVE_LIBADNS 1
4741_ACEOF
4742
4743 LIBS="-ladns $LIBS"
4744
4745fi
4746
4747ac_fn_c_check_header_mongrel "$LINENO" "adns.h" "ac_cv_header_adns_h" "$ac_includes_default"
6b668323 4748if test "x$ac_cv_header_adns_h" = xyes; then :
94759fd3
IJ
4749
4750else
4751 as_fn_error $? "adns.h not found" "$LINENO" 5
4752fi
4753
4754
4755
2b8aa340
IJ
4756{ $as_echo "$as_me:${as_lineno-$LINENO}: Checking requirements for IPv6 support..." >&5
4757$as_echo "$as_me: Checking requirements for IPv6 support..." >&6;}
4758enable_ipv6=true
4759
4760ac_fn_c_check_decl "$LINENO" "AF_INET6" "ac_cv_have_decl_AF_INET6" "#include <netinet/in.h>
4761"
4762if test "x$ac_cv_have_decl_AF_INET6" = xyes; then :
4763
4764else
4765 enable_ipv6=false
4766fi
4767
4768ac_fn_c_check_func "$LINENO" "adns_addr2text" "ac_cv_func_adns_addr2text"
4769if test "x$ac_cv_func_adns_addr2text" = xyes; then :
4770
4771else
4772 enable_ipv6=false
4773fi
4774
4775if $enable_ipv6; then
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling IPv6 support" >&5
4777$as_echo "$as_me: Enabling IPv6 support" >&6;}
4778
4779$as_echo "#define CONFIG_IPV6 1" >>confdefs.h
4780
4781else
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling IPv6 support" >&5
4783$as_echo "$as_me: WARNING: Disabling IPv6 support" >&2;}
4784fi
4785
94759fd3
IJ
4786ac_config_files="$ac_config_files Makefile"
4787
4788ac_config_commands="$ac_config_commands default"
4789
4790cat >confcache <<\_ACEOF
4791# This file is a shell script that caches the results of configure
4792# tests run on this system so they can be shared between configure
4793# scripts and configure runs, see configure's option --config-cache.
4794# It is not useful on other systems. If it contains results you don't
4795# want to keep, you may remove or edit it.
4796#
4797# config.status only pays attention to the cache file if you give it
4798# the --recheck option to rerun configure.
4799#
4800# `ac_cv_env_foo' variables (set or unset) will be overridden when
4801# loading this file, other *unset* `ac_cv_foo' will be assigned the
4802# following values.
4803
4804_ACEOF
4805
4806# The following way of writing the cache mishandles newlines in values,
4807# but we know of no workaround that is simple, portable, and efficient.
4808# So, we kill variables containing newlines.
4809# Ultrix sh set writes to stderr and can't be redirected directly,
4810# and sets the high bit in the cache file unless we assign to the vars.
4811(
4812 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4813 eval ac_val=\$$ac_var
4814 case $ac_val in #(
4815 *${as_nl}*)
4816 case $ac_var in #(
4817 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4818$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4819 esac
4820 case $ac_var in #(
4821 _ | IFS | as_nl) ;; #(
4822 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4823 *) { eval $ac_var=; unset $ac_var;} ;;
4824 esac ;;
4825 esac
4826 done
4827
4828 (set) 2>&1 |
4829 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4830 *${as_nl}ac_space=\ *)
4831 # `set' does not quote correctly, so add quotes: double-quote
4832 # substitution turns \\\\ into \\, and sed turns \\ into \.
4833 sed -n \
4834 "s/'/'\\\\''/g;
4835 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4836 ;; #(
4837 *)
4838 # `set' quotes correctly as required by POSIX, so do not add quotes.
4839 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4840 ;;
4841 esac |
4842 sort
4843) |
4844 sed '
4845 /^ac_cv_env_/b end
4846 t clear
4847 :clear
4848 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4849 t end
4850 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4851 :end' >>confcache
4852if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4853 if test -w "$cache_file"; then
6b668323 4854 if test "x$cache_file" != "x/dev/null"; then
94759fd3
IJ
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4856$as_echo "$as_me: updating cache $cache_file" >&6;}
6b668323
IJ
4857 if test ! -f "$cache_file" || test -h "$cache_file"; then
4858 cat confcache >"$cache_file"
4859 else
4860 case $cache_file in #(
4861 */* | ?:*)
4862 mv -f confcache "$cache_file"$$ &&
4863 mv -f "$cache_file"$$ "$cache_file" ;; #(
4864 *)
4865 mv -f confcache "$cache_file" ;;
4866 esac
4867 fi
4868 fi
94759fd3
IJ
4869 else
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4871$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4872 fi
4873fi
4874rm -f confcache
4875
4876test "x$prefix" = xNONE && prefix=$ac_default_prefix
4877# Let make expand exec_prefix.
4878test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4879
4880DEFS=-DHAVE_CONFIG_H
4881
4882ac_libobjs=
4883ac_ltlibobjs=
4884U=
4885for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4886 # 1. Remove the extension, and $U if already installed.
4887 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4888 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4889 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4890 # will be set to the directory where LIBOBJS objects are built.
4891 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4892 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4893done
4894LIBOBJS=$ac_libobjs
4895
4896LTLIBOBJS=$ac_ltlibobjs
4897
4898
4899
4900
6b668323 4901: "${CONFIG_STATUS=./config.status}"
94759fd3
IJ
4902ac_write_fail=0
4903ac_clean_files_save=$ac_clean_files
4904ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4905{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4906$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4907as_write_fail=0
4908cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4909#! $SHELL
4910# Generated by $as_me.
4911# Run this file to recreate the current configuration.
4912# Compiler output produced by configure, useful for debugging
4913# configure, is in config.log if it exists.
4914
4915debug=false
4916ac_cs_recheck=false
4917ac_cs_silent=false
4918
4919SHELL=\${CONFIG_SHELL-$SHELL}
4920export SHELL
4921_ASEOF
4922cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4923## -------------------- ##
4924## M4sh Initialization. ##
4925## -------------------- ##
4926
4927# Be more Bourne compatible
4928DUALCASE=1; export DUALCASE # for MKS sh
4929if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4930 emulate sh
4931 NULLCMD=:
4932 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4933 # is contrary to our usage. Disable this feature.
4934 alias -g '${1+"$@"}'='"$@"'
4935 setopt NO_GLOB_SUBST
4936else
4937 case `(set -o) 2>/dev/null` in #(
4938 *posix*) :
4939 set -o posix ;; #(
4940 *) :
4941 ;;
4942esac
4943fi
4944
4945
4946as_nl='
4947'
4948export as_nl
4949# Printing a long string crashes Solaris 7 /usr/bin/printf.
4950as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4951as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4952as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4953# Prefer a ksh shell builtin over an external printf program on Solaris,
4954# but without wasting forks for bash or zsh.
4955if test -z "$BASH_VERSION$ZSH_VERSION" \
4956 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4957 as_echo='print -r --'
4958 as_echo_n='print -rn --'
4959elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4960 as_echo='printf %s\n'
4961 as_echo_n='printf %s'
4962else
4963 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4964 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4965 as_echo_n='/usr/ucb/echo -n'
4966 else
4967 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4968 as_echo_n_body='eval
4969 arg=$1;
4970 case $arg in #(
4971 *"$as_nl"*)
4972 expr "X$arg" : "X\\(.*\\)$as_nl";
4973 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4974 esac;
4975 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4976 '
4977 export as_echo_n_body
4978 as_echo_n='sh -c $as_echo_n_body as_echo'
4979 fi
4980 export as_echo_body
4981 as_echo='sh -c $as_echo_body as_echo'
4982fi
4983
4984# The user is always right.
4985if test "${PATH_SEPARATOR+set}" != set; then
4986 PATH_SEPARATOR=:
4987 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4988 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4989 PATH_SEPARATOR=';'
4990 }
4991fi
4992
4993
4994# IFS
4995# We need space, tab and new line, in precisely that order. Quoting is
4996# there to prevent editors from complaining about space-tab.
4997# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4998# splitting by setting IFS to empty value.)
4999IFS=" "" $as_nl"
5000
5001# Find who we are. Look in the path if we contain no directory separator.
6b668323 5002as_myself=
94759fd3
IJ
5003case $0 in #((
5004 *[\\/]* ) as_myself=$0 ;;
5005 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006for as_dir in $PATH
5007do
5008 IFS=$as_save_IFS
5009 test -z "$as_dir" && as_dir=.
5010 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5011 done
5012IFS=$as_save_IFS
5013
5014 ;;
5015esac
5016# We did not find ourselves, most probably we were run as `sh COMMAND'
5017# in which case we are not to be found in the path.
5018if test "x$as_myself" = x; then
5019 as_myself=$0
5020fi
5021if test ! -f "$as_myself"; then
5022 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5023 exit 1
5024fi
5025
5026# Unset variables that we do not need and which cause bugs (e.g. in
5027# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5028# suppresses any "Segmentation fault" message there. '((' could
5029# trigger a bug in pdksh 5.2.14.
5030for as_var in BASH_ENV ENV MAIL MAILPATH
5031do eval test x\${$as_var+set} = xset \
5032 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5033done
5034PS1='$ '
5035PS2='> '
5036PS4='+ '
5037
5038# NLS nuisances.
5039LC_ALL=C
5040export LC_ALL
5041LANGUAGE=C
5042export LANGUAGE
5043
5044# CDPATH.
5045(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5046
5047
5048# as_fn_error STATUS ERROR [LINENO LOG_FD]
5049# ----------------------------------------
5050# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5051# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5052# script with STATUS, using 1 if that was 0.
5053as_fn_error ()
5054{
5055 as_status=$1; test $as_status -eq 0 && as_status=1
5056 if test "$4"; then
5057 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5058 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5059 fi
5060 $as_echo "$as_me: error: $2" >&2
5061 as_fn_exit $as_status
5062} # as_fn_error
5063
5064
5065# as_fn_set_status STATUS
5066# -----------------------
5067# Set $? to STATUS, without forking.
5068as_fn_set_status ()
5069{
5070 return $1
5071} # as_fn_set_status
5072
5073# as_fn_exit STATUS
5074# -----------------
5075# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5076as_fn_exit ()
5077{
5078 set +e
5079 as_fn_set_status $1
5080 exit $1
5081} # as_fn_exit
5082
5083# as_fn_unset VAR
5084# ---------------
5085# Portably unset VAR.
5086as_fn_unset ()
5087{
5088 { eval $1=; unset $1;}
5089}
5090as_unset=as_fn_unset
5091# as_fn_append VAR VALUE
5092# ----------------------
5093# Append the text in VALUE to the end of the definition contained in VAR. Take
5094# advantage of any shell optimizations that allow amortized linear growth over
5095# repeated appends, instead of the typical quadratic growth present in naive
5096# implementations.
5097if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5098 eval 'as_fn_append ()
5099 {
5100 eval $1+=\$2
5101 }'
5102else
5103 as_fn_append ()
5104 {
5105 eval $1=\$$1\$2
5106 }
5107fi # as_fn_append
5108
5109# as_fn_arith ARG...
5110# ------------------
5111# Perform arithmetic evaluation on the ARGs, and store the result in the
5112# global $as_val. Take advantage of shells that can avoid forks. The arguments
5113# must be portable across $(()) and expr.
5114if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5115 eval 'as_fn_arith ()
5116 {
5117 as_val=$(( $* ))
5118 }'
5119else
5120 as_fn_arith ()
5121 {
5122 as_val=`expr "$@" || test $? -eq 1`
5123 }
5124fi # as_fn_arith
5125
5126
5127if expr a : '\(a\)' >/dev/null 2>&1 &&
5128 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5129 as_expr=expr
5130else
5131 as_expr=false
5132fi
5133
5134if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5135 as_basename=basename
5136else
5137 as_basename=false
5138fi
5139
5140if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5141 as_dirname=dirname
5142else
5143 as_dirname=false
5144fi
5145
5146as_me=`$as_basename -- "$0" ||
5147$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5148 X"$0" : 'X\(//\)$' \| \
5149 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5150$as_echo X/"$0" |
5151 sed '/^.*\/\([^/][^/]*\)\/*$/{
5152 s//\1/
5153 q
5154 }
5155 /^X\/\(\/\/\)$/{
5156 s//\1/
5157 q
5158 }
5159 /^X\/\(\/\).*/{
5160 s//\1/
5161 q
5162 }
5163 s/.*/./; q'`
5164
5165# Avoid depending upon Character Ranges.
5166as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5167as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5168as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5169as_cr_digits='0123456789'
5170as_cr_alnum=$as_cr_Letters$as_cr_digits
5171
5172ECHO_C= ECHO_N= ECHO_T=
5173case `echo -n x` in #(((((
5174-n*)
5175 case `echo 'xy\c'` in
5176 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5177 xy) ECHO_C='\c';;
5178 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5179 ECHO_T=' ';;
5180 esac;;
5181*)
5182 ECHO_N='-n';;
5183esac
5184
5185rm -f conf$$ conf$$.exe conf$$.file
5186if test -d conf$$.dir; then
5187 rm -f conf$$.dir/conf$$.file
5188else
5189 rm -f conf$$.dir
5190 mkdir conf$$.dir 2>/dev/null
5191fi
5192if (echo >conf$$.file) 2>/dev/null; then
5193 if ln -s conf$$.file conf$$ 2>/dev/null; then
5194 as_ln_s='ln -s'
5195 # ... but there are two gotchas:
5196 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5197 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6b668323 5198 # In both cases, we have to default to `cp -pR'.
94759fd3 5199 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6b668323 5200 as_ln_s='cp -pR'
94759fd3
IJ
5201 elif ln conf$$.file conf$$ 2>/dev/null; then
5202 as_ln_s=ln
5203 else
6b668323 5204 as_ln_s='cp -pR'
94759fd3
IJ
5205 fi
5206else
6b668323 5207 as_ln_s='cp -pR'
94759fd3
IJ
5208fi
5209rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5210rmdir conf$$.dir 2>/dev/null
5211
5212
5213# as_fn_mkdir_p
5214# -------------
5215# Create "$as_dir" as a directory, including parents if necessary.
5216as_fn_mkdir_p ()
5217{
5218
5219 case $as_dir in #(
5220 -*) as_dir=./$as_dir;;
5221 esac
5222 test -d "$as_dir" || eval $as_mkdir_p || {
5223 as_dirs=
5224 while :; do
5225 case $as_dir in #(
5226 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5227 *) as_qdir=$as_dir;;
5228 esac
5229 as_dirs="'$as_qdir' $as_dirs"
5230 as_dir=`$as_dirname -- "$as_dir" ||
5231$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5232 X"$as_dir" : 'X\(//\)[^/]' \| \
5233 X"$as_dir" : 'X\(//\)$' \| \
5234 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5235$as_echo X"$as_dir" |
5236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5237 s//\1/
5238 q
5239 }
5240 /^X\(\/\/\)[^/].*/{
5241 s//\1/
5242 q
5243 }
5244 /^X\(\/\/\)$/{
5245 s//\1/
5246 q
5247 }
5248 /^X\(\/\).*/{
5249 s//\1/
5250 q
5251 }
5252 s/.*/./; q'`
5253 test -d "$as_dir" && break
5254 done
5255 test -z "$as_dirs" || eval "mkdir $as_dirs"
5256 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5257
5258
5259} # as_fn_mkdir_p
5260if mkdir -p . 2>/dev/null; then
5261 as_mkdir_p='mkdir -p "$as_dir"'
5262else
5263 test -d ./-p && rmdir ./-p
5264 as_mkdir_p=false
5265fi
5266
6b668323
IJ
5267
5268# as_fn_executable_p FILE
5269# -----------------------
5270# Test if FILE is an executable regular file.
5271as_fn_executable_p ()
5272{
5273 test -f "$1" && test -x "$1"
5274} # as_fn_executable_p
5275as_test_x='test -x'
5276as_executable_p=as_fn_executable_p
94759fd3
IJ
5277
5278# Sed expression to map a string onto a valid CPP name.
5279as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5280
5281# Sed expression to map a string onto a valid variable name.
5282as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5283
5284
5285exec 6>&1
5286## ----------------------------------- ##
5287## Main body of $CONFIG_STATUS script. ##
5288## ----------------------------------- ##
5289_ASEOF
5290test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5291
5292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5293# Save the log message, to keep $0 and so on meaningful, and to
5294# report actual input values of CONFIG_FILES etc. instead of their
5295# values after options handling.
5296ac_log="
00152558 5297This file was extended by secnet $as_me 0.1.18+, which was
6b668323 5298generated by GNU Autoconf 2.69. Invocation command line was
94759fd3
IJ
5299
5300 CONFIG_FILES = $CONFIG_FILES
5301 CONFIG_HEADERS = $CONFIG_HEADERS
5302 CONFIG_LINKS = $CONFIG_LINKS
5303 CONFIG_COMMANDS = $CONFIG_COMMANDS
5304 $ $0 $@
5305
5306on `(hostname || uname -n) 2>/dev/null | sed 1q`
5307"
5308
5309_ACEOF
5310
5311case $ac_config_files in *"
5312"*) set x $ac_config_files; shift; ac_config_files=$*;;
5313esac
5314
5315case $ac_config_headers in *"
5316"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5317esac
5318
5319
5320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5321# Files that config.status was made for.
5322config_files="$ac_config_files"
5323config_headers="$ac_config_headers"
5324config_commands="$ac_config_commands"
5325
5326_ACEOF
5327
5328cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5329ac_cs_usage="\
5330\`$as_me' instantiates files and other configuration actions
5331from templates according to the current configuration. Unless the files
5332and actions are specified as TAGs, all are instantiated by default.
5333
5334Usage: $0 [OPTION]... [TAG]...
5335
5336 -h, --help print this help, then exit
5337 -V, --version print version number and configuration settings, then exit
5338 --config print configuration, then exit
5339 -q, --quiet, --silent
5340 do not print progress messages
5341 -d, --debug don't remove temporary files
5342 --recheck update $as_me by reconfiguring in the same conditions
5343 --file=FILE[:TEMPLATE]
5344 instantiate the configuration file FILE
5345 --header=FILE[:TEMPLATE]
5346 instantiate the configuration header FILE
5347
5348Configuration files:
5349$config_files
5350
5351Configuration headers:
5352$config_headers
5353
5354Configuration commands:
5355$config_commands
5356
5357Report bugs to <secnet@chiark.greenend.org.uk>."
5358
5359_ACEOF
5360cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5361ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5362ac_cs_version="\\
00152558 5363secnet config.status 0.1.18+
6b668323 5364configured by $0, generated by GNU Autoconf 2.69,
94759fd3
IJ
5365 with options \\"\$ac_cs_config\\"
5366
6b668323 5367Copyright (C) 2012 Free Software Foundation, Inc.
94759fd3
IJ
5368This config.status script is free software; the Free Software Foundation
5369gives unlimited permission to copy, distribute and modify it."
5370
5371ac_pwd='$ac_pwd'
5372srcdir='$srcdir'
5373INSTALL='$INSTALL'
5374test -n "\$AWK" || AWK=awk
5375_ACEOF
5376
5377cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5378# The default lists apply if the user does not specify any file.
5379ac_need_defaults=:
5380while test $# != 0
5381do
5382 case $1 in
5383 --*=?*)
5384 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5385 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5386 ac_shift=:
5387 ;;
5388 --*=)
5389 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5390 ac_optarg=
5391 ac_shift=:
5392 ;;
5393 *)
5394 ac_option=$1
5395 ac_optarg=$2
5396 ac_shift=shift
5397 ;;
5398 esac
5399
5400 case $ac_option in
5401 # Handling of the options.
5402 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5403 ac_cs_recheck=: ;;
5404 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5405 $as_echo "$ac_cs_version"; exit ;;
5406 --config | --confi | --conf | --con | --co | --c )
5407 $as_echo "$ac_cs_config"; exit ;;
5408 --debug | --debu | --deb | --de | --d | -d )
5409 debug=: ;;
5410 --file | --fil | --fi | --f )
5411 $ac_shift
5412 case $ac_optarg in
5413 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5414 '') as_fn_error $? "missing file argument" ;;
5415 esac
5416 as_fn_append CONFIG_FILES " '$ac_optarg'"
5417 ac_need_defaults=false;;
5418 --header | --heade | --head | --hea )
5419 $ac_shift
5420 case $ac_optarg in
5421 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5422 esac
5423 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5424 ac_need_defaults=false;;
5425 --he | --h)
5426 # Conflict between --help and --header
5427 as_fn_error $? "ambiguous option: \`$1'
5428Try \`$0 --help' for more information.";;
5429 --help | --hel | -h )
5430 $as_echo "$ac_cs_usage"; exit ;;
5431 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5432 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5433 ac_cs_silent=: ;;
5434
5435 # This is an error.
5436 -*) as_fn_error $? "unrecognized option: \`$1'
5437Try \`$0 --help' for more information." ;;
5438
5439 *) as_fn_append ac_config_targets " $1"
5440 ac_need_defaults=false ;;
5441
5442 esac
5443 shift
5444done
5445
5446ac_configure_extra_args=
5447
5448if $ac_cs_silent; then
5449 exec 6>/dev/null
5450 ac_configure_extra_args="$ac_configure_extra_args --silent"
5451fi
5452
5453_ACEOF
5454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5455if \$ac_cs_recheck; then
6b668323 5456 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
94759fd3
IJ
5457 shift
5458 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5459 CONFIG_SHELL='$SHELL'
5460 export CONFIG_SHELL
5461 exec "\$@"
5462fi
5463
5464_ACEOF
5465cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5466exec 5>>config.log
5467{
5468 echo
5469 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5470## Running $as_me. ##
5471_ASBOX
5472 $as_echo "$ac_log"
5473} >&5
5474
5475_ACEOF
5476cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5477_ACEOF
5478
5479cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5480
5481# Handling of arguments.
5482for ac_config_target in $ac_config_targets
5483do
5484 case $ac_config_target in
5485 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5486 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5487 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5488
6b668323 5489 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
94759fd3
IJ
5490 esac
5491done
5492
5493
5494# If the user did not use the arguments to specify the items to instantiate,
5495# then the envvar interface is used. Set only those that are not.
5496# We use the long form for the default assignment because of an extremely
5497# bizarre bug on SunOS 4.1.3.
5498if $ac_need_defaults; then
5499 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5500 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5501 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5502fi
5503
5504# Have a temporary directory for convenience. Make it in the build tree
5505# simply because there is no reason against having it here, and in addition,
5506# creating and moving files from /tmp can sometimes cause problems.
5507# Hook for its removal unless debugging.
5508# Note that there is a small window in which the directory will not be cleaned:
5509# after its creation but before its name has been assigned to `$tmp'.
5510$debug ||
5511{
6b668323 5512 tmp= ac_tmp=
94759fd3 5513 trap 'exit_status=$?
6b668323
IJ
5514 : "${ac_tmp:=$tmp}"
5515 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
94759fd3
IJ
5516' 0
5517 trap 'as_fn_exit 1' 1 2 13 15
5518}
5519# Create a (secure) tmp directory for tmp files.
5520
5521{
5522 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6b668323 5523 test -d "$tmp"
94759fd3
IJ
5524} ||
5525{
5526 tmp=./conf$$-$RANDOM
5527 (umask 077 && mkdir "$tmp")
5528} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6b668323 5529ac_tmp=$tmp
94759fd3
IJ
5530
5531# Set up the scripts for CONFIG_FILES section.
5532# No need to generate them if there are no CONFIG_FILES.
5533# This happens for instance with `./config.status config.h'.
5534if test -n "$CONFIG_FILES"; then
5535
5536
5537ac_cr=`echo X | tr X '\015'`
5538# On cygwin, bash can eat \r inside `` if the user requested igncr.
5539# But we know of no other shell where ac_cr would be empty at this
5540# point, so we can use a bashism as a fallback.
5541if test "x$ac_cr" = x; then
5542 eval ac_cr=\$\'\\r\'
5543fi
5544ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5545if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5546 ac_cs_awk_cr='\\r'
5547else
5548 ac_cs_awk_cr=$ac_cr
5549fi
5550
6b668323 5551echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
94759fd3
IJ
5552_ACEOF
5553
5554
5555{
5556 echo "cat >conf$$subs.awk <<_ACEOF" &&
5557 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5558 echo "_ACEOF"
5559} >conf$$subs.sh ||
5560 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5561ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5562ac_delim='%!_!# '
5563for ac_last_try in false false false false false :; do
5564 . ./conf$$subs.sh ||
5565 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5566
5567 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5568 if test $ac_delim_n = $ac_delim_num; then
5569 break
5570 elif $ac_last_try; then
5571 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5572 else
5573 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5574 fi
5575done
5576rm -f conf$$subs.sh
5577
5578cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6b668323 5579cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
94759fd3
IJ
5580_ACEOF
5581sed -n '
5582h
5583s/^/S["/; s/!.*/"]=/
5584p
5585g
5586s/^[^!]*!//
5587:repl
5588t repl
5589s/'"$ac_delim"'$//
5590t delim
5591:nl
5592h
5593s/\(.\{148\}\)..*/\1/
5594t more1
5595s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5596p
5597n
5598b repl
5599:more1
5600s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5601p
5602g
5603s/.\{148\}//
5604t nl
5605:delim
5606h
5607s/\(.\{148\}\)..*/\1/
5608t more2
5609s/["\\]/\\&/g; s/^/"/; s/$/"/
5610p
5611b
5612:more2
5613s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5614p
5615g
5616s/.\{148\}//
5617t delim
5618' <conf$$subs.awk | sed '
5619/^[^""]/{
5620 N
5621 s/\n//
5622}
5623' >>$CONFIG_STATUS || ac_write_fail=1
5624rm -f conf$$subs.awk
5625cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5626_ACAWK
6b668323 5627cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
94759fd3
IJ
5628 for (key in S) S_is_set[key] = 1
5629 FS = "\a"
5630
5631}
5632{
5633 line = $ 0
5634 nfields = split(line, field, "@")
5635 substed = 0
5636 len = length(field[1])
5637 for (i = 2; i < nfields; i++) {
5638 key = field[i]
5639 keylen = length(key)
5640 if (S_is_set[key]) {
5641 value = S[key]
5642 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5643 len += length(value) + length(field[++i])
5644 substed = 1
5645 } else
5646 len += 1 + keylen
5647 }
5648
5649 print line
5650}
5651
5652_ACAWK
5653_ACEOF
5654cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5655if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5656 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5657else
5658 cat
6b668323 5659fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
94759fd3
IJ
5660 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5661_ACEOF
5662
5663# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5664# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5665# trailing colons and then remove the whole line if VPATH becomes empty
5666# (actually we leave an empty line to preserve line numbers).
5667if test "x$srcdir" = x.; then
5668 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5669h
5670s///
5671s/^/:/
5672s/[ ]*$/:/
5673s/:\$(srcdir):/:/g
5674s/:\${srcdir}:/:/g
5675s/:@srcdir@:/:/g
5676s/^:*//
5677s/:*$//
5678x
5679s/\(=[ ]*\).*/\1/
5680G
5681s/\n//
5682s/^[^=]*=[ ]*$//
5683}'
5684fi
5685
5686cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5687fi # test -n "$CONFIG_FILES"
5688
5689# Set up the scripts for CONFIG_HEADERS section.
5690# No need to generate them if there are no CONFIG_HEADERS.
5691# This happens for instance with `./config.status Makefile'.
5692if test -n "$CONFIG_HEADERS"; then
6b668323 5693cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
94759fd3
IJ
5694BEGIN {
5695_ACEOF
5696
5697# Transform confdefs.h into an awk script `defines.awk', embedded as
5698# here-document in config.status, that substitutes the proper values into
5699# config.h.in to produce config.h.
5700
5701# Create a delimiter string that does not exist in confdefs.h, to ease
5702# handling of long lines.
5703ac_delim='%!_!# '
5704for ac_last_try in false false :; do
6b668323
IJ
5705 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5706 if test -z "$ac_tt"; then
94759fd3
IJ
5707 break
5708 elif $ac_last_try; then
5709 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5710 else
5711 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5712 fi
5713done
5714
5715# For the awk script, D is an array of macro values keyed by name,
5716# likewise P contains macro parameters if any. Preserve backslash
5717# newline sequences.
5718
5719ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5720sed -n '
5721s/.\{148\}/&'"$ac_delim"'/g
5722t rset
5723:rset
5724s/^[ ]*#[ ]*define[ ][ ]*/ /
5725t def
5726d
5727:def
5728s/\\$//
5729t bsnl
5730s/["\\]/\\&/g
5731s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5732D["\1"]=" \3"/p
5733s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5734d
5735:bsnl
5736s/["\\]/\\&/g
5737s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5738D["\1"]=" \3\\\\\\n"\\/p
5739t cont
5740s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5741t cont
5742d
5743:cont
5744n
5745s/.\{148\}/&'"$ac_delim"'/g
5746t clear
5747:clear
5748s/\\$//
5749t bsnlc
5750s/["\\]/\\&/g; s/^/"/; s/$/"/p
5751d
5752:bsnlc
5753s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5754b cont
5755' <confdefs.h | sed '
5756s/'"$ac_delim"'/"\\\
5757"/g' >>$CONFIG_STATUS || ac_write_fail=1
5758
5759cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5760 for (key in D) D_is_set[key] = 1
5761 FS = "\a"
5762}
5763/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5764 line = \$ 0
5765 split(line, arg, " ")
5766 if (arg[1] == "#") {
5767 defundef = arg[2]
5768 mac1 = arg[3]
5769 } else {
5770 defundef = substr(arg[1], 2)
5771 mac1 = arg[2]
5772 }
5773 split(mac1, mac2, "(") #)
5774 macro = mac2[1]
5775 prefix = substr(line, 1, index(line, defundef) - 1)
5776 if (D_is_set[macro]) {
5777 # Preserve the white space surrounding the "#".
5778 print prefix "define", macro P[macro] D[macro]
5779 next
5780 } else {
5781 # Replace #undef with comments. This is necessary, for example,
5782 # in the case of _POSIX_SOURCE, which is predefined and required
5783 # on some systems where configure will not decide to define it.
5784 if (defundef == "undef") {
5785 print "/*", prefix defundef, macro, "*/"
5786 next
5787 }
5788 }
5789}
5790{ print }
5791_ACAWK
5792_ACEOF
5793cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5794 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5795fi # test -n "$CONFIG_HEADERS"
5796
5797
5798eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
5799shift
5800for ac_tag
5801do
5802 case $ac_tag in
5803 :[FHLC]) ac_mode=$ac_tag; continue;;
5804 esac
5805 case $ac_mode$ac_tag in
5806 :[FHL]*:*);;
6b668323 5807 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
94759fd3
IJ
5808 :[FH]-) ac_tag=-:-;;
5809 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5810 esac
5811 ac_save_IFS=$IFS
5812 IFS=:
5813 set x $ac_tag
5814 IFS=$ac_save_IFS
5815 shift
5816 ac_file=$1
5817 shift
5818
5819 case $ac_mode in
5820 :L) ac_source=$1;;
5821 :[FH])
5822 ac_file_inputs=
5823 for ac_f
5824 do
5825 case $ac_f in
6b668323 5826 -) ac_f="$ac_tmp/stdin";;
94759fd3
IJ
5827 *) # Look for the file first in the build tree, then in the source tree
5828 # (if the path is not absolute). The absolute path cannot be DOS-style,
5829 # because $ac_f cannot contain `:'.
5830 test -f "$ac_f" ||
5831 case $ac_f in
5832 [\\/$]*) false;;
5833 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5834 esac ||
6b668323 5835 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
94759fd3
IJ
5836 esac
5837 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5838 as_fn_append ac_file_inputs " '$ac_f'"
5839 done
5840
5841 # Let's still pretend it is `configure' which instantiates (i.e., don't
5842 # use $as_me), people would be surprised to read:
5843 # /* config.h. Generated by config.status. */
5844 configure_input='Generated from '`
5845 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5846 `' by configure.'
5847 if test x"$ac_file" != x-; then
5848 configure_input="$ac_file. $configure_input"
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5850$as_echo "$as_me: creating $ac_file" >&6;}
5851 fi
5852 # Neutralize special characters interpreted by sed in replacement strings.
5853 case $configure_input in #(
5854 *\&* | *\|* | *\\* )
5855 ac_sed_conf_input=`$as_echo "$configure_input" |
5856 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5857 *) ac_sed_conf_input=$configure_input;;
5858 esac
5859
5860 case $ac_tag in
6b668323
IJ
5861 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5862 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
94759fd3
IJ
5863 esac
5864 ;;
5865 esac
5866
5867 ac_dir=`$as_dirname -- "$ac_file" ||
5868$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5869 X"$ac_file" : 'X\(//\)[^/]' \| \
5870 X"$ac_file" : 'X\(//\)$' \| \
5871 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5872$as_echo X"$ac_file" |
5873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5874 s//\1/
5875 q
5876 }
5877 /^X\(\/\/\)[^/].*/{
5878 s//\1/
5879 q
5880 }
5881 /^X\(\/\/\)$/{
5882 s//\1/
5883 q
5884 }
5885 /^X\(\/\).*/{
5886 s//\1/
5887 q
5888 }
5889 s/.*/./; q'`
5890 as_dir="$ac_dir"; as_fn_mkdir_p
5891 ac_builddir=.
5892
5893case "$ac_dir" in
5894.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5895*)
5896 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5897 # A ".." for each directory in $ac_dir_suffix.
5898 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5899 case $ac_top_builddir_sub in
5900 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5901 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5902 esac ;;
5903esac
5904ac_abs_top_builddir=$ac_pwd
5905ac_abs_builddir=$ac_pwd$ac_dir_suffix
5906# for backward compatibility:
5907ac_top_builddir=$ac_top_build_prefix
5908
5909case $srcdir in
5910 .) # We are building in place.
5911 ac_srcdir=.
5912 ac_top_srcdir=$ac_top_builddir_sub
5913 ac_abs_top_srcdir=$ac_pwd ;;
5914 [\\/]* | ?:[\\/]* ) # Absolute name.
5915 ac_srcdir=$srcdir$ac_dir_suffix;
5916 ac_top_srcdir=$srcdir
5917 ac_abs_top_srcdir=$srcdir ;;
5918 *) # Relative name.
5919 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5920 ac_top_srcdir=$ac_top_build_prefix$srcdir
5921 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5922esac
5923ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5924
5925
5926 case $ac_mode in
5927 :F)
5928 #
5929 # CONFIG_FILE
5930 #
5931
5932 case $INSTALL in
5933 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5934 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5935 esac
5936_ACEOF
5937
5938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5939# If the template does not know about datarootdir, expand it.
5940# FIXME: This hack should be removed a few years after 2.60.
5941ac_datarootdir_hack=; ac_datarootdir_seen=
5942ac_sed_dataroot='
5943/datarootdir/ {
5944 p
5945 q
5946}
5947/@datadir@/p
5948/@docdir@/p
5949/@infodir@/p
5950/@localedir@/p
5951/@mandir@/p'
5952case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5953*datarootdir*) ac_datarootdir_seen=yes;;
5954*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5956$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5957_ACEOF
5958cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5959 ac_datarootdir_hack='
5960 s&@datadir@&$datadir&g
5961 s&@docdir@&$docdir&g
5962 s&@infodir@&$infodir&g
5963 s&@localedir@&$localedir&g
5964 s&@mandir@&$mandir&g
5965 s&\\\${datarootdir}&$datarootdir&g' ;;
5966esac
5967_ACEOF
5968
5969# Neutralize VPATH when `$srcdir' = `.'.
5970# Shell code in configure.ac might set extrasub.
5971# FIXME: do we really want to maintain this feature?
5972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5973ac_sed_extra="$ac_vpsub
5974$extrasub
5975_ACEOF
5976cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5977:t
5978/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5979s|@configure_input@|$ac_sed_conf_input|;t t
5980s&@top_builddir@&$ac_top_builddir_sub&;t t
5981s&@top_build_prefix@&$ac_top_build_prefix&;t t
5982s&@srcdir@&$ac_srcdir&;t t
5983s&@abs_srcdir@&$ac_abs_srcdir&;t t
5984s&@top_srcdir@&$ac_top_srcdir&;t t
5985s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5986s&@builddir@&$ac_builddir&;t t
5987s&@abs_builddir@&$ac_abs_builddir&;t t
5988s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5989s&@INSTALL@&$ac_INSTALL&;t t
5990$ac_datarootdir_hack
5991"
6b668323
IJ
5992eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5993 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
94759fd3
IJ
5994
5995test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6b668323
IJ
5996 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5997 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5998 "$ac_tmp/out"`; test -z "$ac_out"; } &&
94759fd3
IJ
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6000which seems to be undefined. Please make sure it is defined" >&5
6001$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6002which seems to be undefined. Please make sure it is defined" >&2;}
6003
6b668323 6004 rm -f "$ac_tmp/stdin"
94759fd3 6005 case $ac_file in
6b668323
IJ
6006 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6007 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
94759fd3
IJ
6008 esac \
6009 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6010 ;;
6011 :H)
6012 #
6013 # CONFIG_HEADER
6014 #
6015 if test x"$ac_file" != x-; then
6016 {
6017 $as_echo "/* $configure_input */" \
6b668323
IJ
6018 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6019 } >"$ac_tmp/config.h" \
94759fd3 6020 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6b668323 6021 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
94759fd3
IJ
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6023$as_echo "$as_me: $ac_file is unchanged" >&6;}
6024 else
6025 rm -f "$ac_file"
6b668323 6026 mv "$ac_tmp/config.h" "$ac_file" \
94759fd3
IJ
6027 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6028 fi
6029 else
6030 $as_echo "/* $configure_input */" \
6b668323 6031 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
94759fd3
IJ
6032 || as_fn_error $? "could not create -" "$LINENO" 5
6033 fi
6034 ;;
6035
6036 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6037$as_echo "$as_me: executing $ac_file commands" >&6;}
6038 ;;
6039 esac
6040
6041
6042 case $ac_file$ac_mode in
6043 "default":C) echo timestamp >stamp-h ;;
6044
6045 esac
6046done # for ac_tag
6047
6048
6049as_fn_exit 0
6050_ACEOF
6051ac_clean_files=$ac_clean_files_save
6052
6053test $ac_write_fail = 0 ||
6054 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6055
6056
6057# configure is writing to config.log, and then calls config.status.
6058# config.status does its own redirection, appending to config.log.
6059# Unfortunately, on DOS this fails, as config.log is still kept open
6060# by configure, so config.status won't be able to write to it; its
6061# output is simply discarded. So we exec the FD to /dev/null,
6062# effectively closing config.log, so it can be properly (re)opened and
6063# appended to by config.status. When coming back to configure, we
6064# need to make the FD available again.
6065if test "$no_create" != yes; then
6066 ac_cs_success=:
6067 ac_config_status_args=
6068 test "$silent" = yes &&
6069 ac_config_status_args="$ac_config_status_args --quiet"
6070 exec 5>/dev/null
6071 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6072 exec 5>>config.log
6073 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6074 # would make configure fail if this is the last instruction.
6075 $ac_cs_success || as_fn_exit 1
6076fi
6077if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6079$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6080fi
6081
6082
6083
6084
6085