]> jfr.im git - irc/evilnet/x3.git/blame - configure
Added support for user modes +D, +R, +W, +H, +L and +q
[irc/evilnet/x3.git] / configure
CommitLineData
b3076f16 1#! /bin/sh
db946ede 2# From configure.in Id.
b3076f16 3# Guess values for system-dependent variables and create Makefiles.
db946ede 4# Generated by GNU Autoconf 2.64 for X3 1.8.
b3076f16 5#
63c95a47 6# Report bugs to <evilnet-devel@lists.sourceforge.net>.
b3076f16 7#
a8b2ad8d 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
db946ede 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
10# Foundation, Inc.
11#
b3076f16 12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
db946ede 14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
b3076f16 17
0bd0bef6 18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
db946ede 20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b3076f16 21 emulate sh
22 NULLCMD=:
db946ede 23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b3076f16 24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
a8b2ad8d 26 setopt NO_GLOB_SUBST
27else
db946ede 28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
0bd0bef6 33esac
b3076f16 34fi
0bd0bef6 35
36
db946ede 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'
a8b2ad8d 57 else
db946ede 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'
a8b2ad8d 70 fi
db946ede 71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
a8b2ad8d 73fi
74
db946ede 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 }
b3076f16 82fi
83
84
a8b2ad8d 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.)
a8b2ad8d 90IFS=" "" $as_nl"
91
92# Find who we are. Look in the path if we contain no directory separator.
db946ede 93case $0 in #((
a8b2ad8d 94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
db946ede 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
a8b2ad8d 102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
db946ede 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
a8b2ad8d 114fi
115
db946ede 116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
a8b2ad8d 123done
b3076f16 124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
db946ede 129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151esac
152fi
153"
154 as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168 exitcode=1; echo positional parameters were not saved.
169fi
170test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178else
179 as_have_required=no
180fi
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185as_found=false
186for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
b3076f16 187do
db946ede 188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
192 /*)
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
201fi
202fi
203 done;;
204 esac
205 as_found=false
206done
207$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210fi; }
211IFS=$as_save_IFS
212
213
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 BASH_ENV=/dev/null
219 ENV=/dev/null
220 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 export CONFIG_SHELL
222 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
223fi
224
225 if test x$as_have_required = xno; then :
226 $as_echo "$0: This script requires a shell more modern than all"
227 $as_echo "$0: the shells that I found on your system."
228 if test x${ZSH_VERSION+set} = xset ; then
229 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
230 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
b3076f16 231 else
db946ede 232 $as_echo "$0: Please tell bug-autoconf@gnu.org and
233$0: evilnet-devel@lists.sourceforge.net about your system,
234$0: including any error possibly output before this
235$0: message. Then install a modern shell, or manually run
236$0: the script under such a shell if you do have one."
b3076f16 237 fi
db946ede 238 exit 1
239fi
240fi
241fi
242SHELL=${CONFIG_SHELL-/bin/sh}
243export SHELL
244# Unset more variables known to interfere with behavior of common tools.
245CLICOLOR_FORCE= GREP_OPTIONS=
246unset CLICOLOR_FORCE GREP_OPTIONS
247
248## --------------------- ##
249## M4sh Shell Functions. ##
250## --------------------- ##
251# as_fn_unset VAR
252# ---------------
253# Portably unset VAR.
254as_fn_unset ()
255{
256 { eval $1=; unset $1;}
257}
258as_unset=as_fn_unset
259
260# as_fn_set_status STATUS
261# -----------------------
262# Set $? to STATUS, without forking.
263as_fn_set_status ()
264{
265 return $1
266} # as_fn_set_status
267
268# as_fn_exit STATUS
269# -----------------
270# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
271as_fn_exit ()
272{
273 set +e
274 as_fn_set_status $1
275 exit $1
276} # as_fn_exit
277
278# as_fn_mkdir_p
279# -------------
280# Create "$as_dir" as a directory, including parents if necessary.
281as_fn_mkdir_p ()
282{
283
284 case $as_dir in #(
285 -*) as_dir=./$as_dir;;
286 esac
287 test -d "$as_dir" || eval $as_mkdir_p || {
288 as_dirs=
289 while :; do
290 case $as_dir in #(
291 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 *) as_qdir=$as_dir;;
293 esac
294 as_dirs="'$as_qdir' $as_dirs"
295 as_dir=`$as_dirname -- "$as_dir" ||
296$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
297 X"$as_dir" : 'X\(//\)[^/]' \| \
298 X"$as_dir" : 'X\(//\)$' \| \
299 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
300$as_echo X"$as_dir" |
301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)[^/].*/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)$/{
310 s//\1/
311 q
312 }
313 /^X\(\/\).*/{
314 s//\1/
315 q
316 }
317 s/.*/./; q'`
318 test -d "$as_dir" && break
319 done
320 test -z "$as_dirs" || eval "mkdir $as_dirs"
321 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322
323
324} # as_fn_mkdir_p
325# as_fn_append VAR VALUE
326# ----------------------
327# Append the text in VALUE to the end of the definition contained in VAR. Take
328# advantage of any shell optimizations that allow amortized linear growth over
329# repeated appends, instead of the typical quadratic growth present in naive
330# implementations.
331if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
332 eval 'as_fn_append ()
333 {
334 eval $1+=\$2
335 }'
336else
337 as_fn_append ()
338 {
339 eval $1=\$$1\$2
340 }
341fi # as_fn_append
342
343# as_fn_arith ARG...
344# ------------------
345# Perform arithmetic evaluation on the ARGs, and store the result in the
346# global $as_val. Take advantage of shells that can avoid forks. The arguments
347# must be portable across $(()) and expr.
348if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
349 eval 'as_fn_arith ()
350 {
351 as_val=$(( $* ))
352 }'
353else
354 as_fn_arith ()
355 {
356 as_val=`expr "$@" || test $? -eq 1`
357 }
358fi # as_fn_arith
359
360
361# as_fn_error ERROR [LINENO LOG_FD]
362# ---------------------------------
363# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
364# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
365# script with status $?, using 1 if that was 0.
366as_fn_error ()
367{
368 as_status=$?; test $as_status -eq 0 && as_status=1
369 if test "$3"; then
370 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
371 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 fi
373 $as_echo "$as_me: error: $1" >&2
374 as_fn_exit $as_status
375} # as_fn_error
b3076f16 376
a8b2ad8d 377if expr a : '\(a\)' >/dev/null 2>&1 &&
378 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b3076f16 379 as_expr=expr
380else
381 as_expr=false
382fi
383
a8b2ad8d 384if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b3076f16 385 as_basename=basename
386else
387 as_basename=false
388fi
389
db946ede 390if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
391 as_dirname=dirname
392else
393 as_dirname=false
394fi
b3076f16 395
a8b2ad8d 396as_me=`$as_basename -- "$0" ||
b3076f16 397$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
398 X"$0" : 'X\(//\)$' \| \
a8b2ad8d 399 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
db946ede 400$as_echo X/"$0" |
a8b2ad8d 401 sed '/^.*\/\([^/][^/]*\)\/*$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\/\)$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\).*/{
410 s//\1/
411 q
412 }
413 s/.*/./; q'`
b3076f16 414
db946ede 415# Avoid depending upon Character Ranges.
416as_cr_letters='abcdefghijklmnopqrstuvwxyz'
417as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
418as_cr_Letters=$as_cr_letters$as_cr_LETTERS
419as_cr_digits='0123456789'
420as_cr_alnum=$as_cr_Letters$as_cr_digits
b3076f16 421
b3076f16 422
db946ede 423 as_lineno_1=$LINENO as_lineno_1a=$LINENO
424 as_lineno_2=$LINENO as_lineno_2a=$LINENO
425 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
426 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
427 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
428 sed -n '
429 p
430 /[$]LINENO/=
431 ' <$as_myself |
432 sed '
433 s/[$]LINENO.*/&-/
434 t lineno
435 b
436 :lineno
437 N
438 :loop
439 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
440 t loop
441 s/-\n.*//
442 ' >$as_me.lineno &&
443 chmod +x "$as_me.lineno" ||
444 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
b3076f16 445
db946ede 446 # Don't try to exec as it changes $[0], causing all sort of problems
447 # (the dirname of $[0] is not the place where we might find the
448 # original and so on. Autoconf is especially sensitive to this).
449 . "./$as_me.lineno"
450 # Exit status is that of the last command.
451 exit
a8b2ad8d 452}
b3076f16 453
db946ede 454ECHO_C= ECHO_N= ECHO_T=
455case `echo -n x` in #(((((
456-n*)
457 case `echo 'xy\c'` in
458 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
459 xy) ECHO_C='\c';;
460 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
461 ECHO_T=' ';;
462 esac;;
463*)
464 ECHO_N='-n';;
465esac
a8b2ad8d 466
db946ede 467rm -f conf$$ conf$$.exe conf$$.file
468if test -d conf$$.dir; then
469 rm -f conf$$.dir/conf$$.file
470else
471 rm -f conf$$.dir
472 mkdir conf$$.dir 2>/dev/null
473fi
474if (echo >conf$$.file) 2>/dev/null; then
475 if ln -s conf$$.file conf$$ 2>/dev/null; then
476 as_ln_s='ln -s'
477 # ... but there are two gotchas:
478 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
479 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
480 # In both cases, we have to default to `cp -p'.
481 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
482 as_ln_s='cp -p'
483 elif ln conf$$.file conf$$ 2>/dev/null; then
484 as_ln_s=ln
485 else
486 as_ln_s='cp -p'
487 fi
a8b2ad8d 488else
db946ede 489 as_ln_s='cp -p'
a8b2ad8d 490fi
db946ede 491rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
492rmdir conf$$.dir 2>/dev/null
a8b2ad8d 493
db946ede 494if mkdir -p . 2>/dev/null; then
495 as_mkdir_p='mkdir -p "$as_dir"'
496else
497 test -d ./-p && rmdir ./-p
498 as_mkdir_p=false
a8b2ad8d 499fi
500
db946ede 501if test -x / >/dev/null 2>&1; then
502 as_test_x='test -x'
a8b2ad8d 503else
db946ede 504 if ls -dL / >/dev/null 2>&1; then
505 as_ls_L_option=L
506 else
507 as_ls_L_option=
508 fi
509 as_test_x='
510 eval sh -c '\''
511 if test -d "$1"; then
512 test -d "$1/.";
513 else
514 case $1 in #(
515 -*)set "./$1";;
516 esac;
517 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
518 ???[sx]*):;;*)false;;esac;fi
519 '\'' sh
520 '
a8b2ad8d 521fi
db946ede 522as_executable_p=$as_test_x
a8b2ad8d 523
db946ede 524# Sed expression to map a string onto a valid CPP name.
525as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a8b2ad8d 526
db946ede 527# Sed expression to map a string onto a valid variable name.
528as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a8b2ad8d 529
530
db946ede 531exec 7<&0 </dev/null 6>&1
0bd0bef6 532
db946ede 533# Name of the host.
534# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
535# so uname gets run too.
536ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
0bd0bef6 537
db946ede 538#
539# Initializations.
540#
541ac_default_prefix=/usr/local
542ac_clean_files=
543ac_config_libobj_dir=.
544LIBOBJS=
545cross_compiling=no
546subdirs=
547MFLAGS=
548MAKEFLAGS=
b3076f16 549
b3076f16 550# Identity of this package.
ceafd592 551PACKAGE_NAME='X3'
552PACKAGE_TARNAME='x3'
db946ede 553PACKAGE_VERSION='1.8'
554PACKAGE_STRING='X3 1.8'
63c95a47 555PACKAGE_BUGREPORT='evilnet-devel@lists.sourceforge.net'
db946ede 556PACKAGE_URL=''
b3076f16 557
558ac_unique_file="src/opserv.c"
559# Factoring default headers for most tests.
560ac_includes_default="\
561#include <stdio.h>
0bd0bef6 562#ifdef HAVE_SYS_TYPES_H
b3076f16 563# include <sys/types.h>
564#endif
0bd0bef6 565#ifdef HAVE_SYS_STAT_H
b3076f16 566# include <sys/stat.h>
567#endif
0bd0bef6 568#ifdef STDC_HEADERS
b3076f16 569# include <stdlib.h>
570# include <stddef.h>
571#else
0bd0bef6 572# ifdef HAVE_STDLIB_H
b3076f16 573# include <stdlib.h>
574# endif
575#endif
0bd0bef6 576#ifdef HAVE_STRING_H
577# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
b3076f16 578# include <memory.h>
579# endif
580# include <string.h>
581#endif
0bd0bef6 582#ifdef HAVE_STRINGS_H
b3076f16 583# include <strings.h>
584#endif
0bd0bef6 585#ifdef HAVE_INTTYPES_H
b3076f16 586# include <inttypes.h>
a8b2ad8d 587#endif
0bd0bef6 588#ifdef HAVE_STDINT_H
a8b2ad8d 589# include <stdint.h>
b3076f16 590#endif
0bd0bef6 591#ifdef HAVE_UNISTD_H
b3076f16 592# include <unistd.h>
593#endif"
594
db946ede 595ac_subst_vars='am__EXEEXT_FALSE
596am__EXEEXT_TRUE
597LTLIBOBJS
a8b2ad8d 598LIBOBJS
db946ede 599PY_LIBS
600PY_CFLAGS
601TRACK
602RX_LIBS
603RX_INCLUDES
604MY_SUBDIRS
605MODULE_OBJS
606DO_PYTHON_FALSE
607DO_PYTHON_TRUE
608pythonpath
609ALLOCA
610MAKER
611EGREP
612GREP
613CPP
614LN_S
615RANLIB
616CP
617am__fastdepCC_FALSE
618am__fastdepCC_TRUE
619CCDEPMODE
620AMDEPBACKSLASH
621AMDEP_FALSE
622AMDEP_TRUE
623am__quote
624am__include
625DEPDIR
626OBJEXT
627EXEEXT
628ac_ct_CC
629CPPFLAGS
630LDFLAGS
631CFLAGS
632CC
633MAINT
634MAINTAINER_MODE_FALSE
635MAINTAINER_MODE_TRUE
636am__untar
637am__tar
638AMTAR
639am__leading_dot
640SET_MAKE
641AWK
642mkdir_p
643MKDIR_P
644INSTALL_STRIP_PROGRAM
645STRIP
646install_sh
647MAKEINFO
648AUTOHEADER
649AUTOMAKE
650AUTOCONF
651ACLOCAL
652VERSION
653PACKAGE
654CYGPATH_W
655am__isrc
656INSTALL_DATA
657INSTALL_SCRIPT
658INSTALL_PROGRAM
659target_os
660target_vendor
661target_cpu
662target
663host_os
664host_vendor
665host_cpu
666host
667build_os
668build_vendor
669build_cpu
670build
671target_alias
672host_alias
673build_alias
674LIBS
675ECHO_T
676ECHO_N
677ECHO_C
678DEFS
679mandir
680localedir
681libdir
682psdir
683pdfdir
684dvidir
685htmldir
686infodir
687docdir
688oldincludedir
689includedir
690localstatedir
691sharedstatedir
692sysconfdir
693datadir
694datarootdir
695libexecdir
696sbindir
697bindir
698program_transform_name
699prefix
700exec_prefix
701PACKAGE_URL
702PACKAGE_BUGREPORT
703PACKAGE_STRING
704PACKAGE_VERSION
705PACKAGE_TARNAME
706PACKAGE_NAME
707PATH_SEPARATOR
708SHELL'
b3076f16 709ac_subst_files=''
db946ede 710ac_user_opts='
711enable_option_checking
712enable_maintainer_mode
713enable_dependency_tracking
714with_malloc
715with_protocol
716with_mail
717with_epoll
718with_kevent
719with_getopt
720enable_tokens
721enable_debug
722enable_modules
723enable_python
724with_tre
725with_coredumper
726with_ssl
727with_ldap
728'
a8b2ad8d 729 ac_precious_vars='build_alias
730host_alias
731target_alias
732CC
733CFLAGS
734LDFLAGS
0bd0bef6 735LIBS
a8b2ad8d 736CPPFLAGS
0f6fe38c 737CPP'
a8b2ad8d 738
b3076f16 739
740# Initialize some variables set by options.
741ac_init_help=
742ac_init_version=false
db946ede 743ac_unrecognized_opts=
744ac_unrecognized_sep=
b3076f16 745# The variables have the same names as the options, with
746# dashes changed to underlines.
747cache_file=/dev/null
748exec_prefix=NONE
749no_create=
750no_recursion=
751prefix=NONE
752program_prefix=NONE
753program_suffix=NONE
754program_transform_name=s,x,x,
755silent=
756site=
757srcdir=
758verbose=
759x_includes=NONE
760x_libraries=NONE
761
762# Installation directory options.
763# These are left unexpanded so users can "make install exec_prefix=/foo"
764# and all the variables that are supposed to be based on exec_prefix
765# by default will actually change.
766# Use braces instead of parens because sh, perl, etc. also accept them.
a8b2ad8d 767# (The list follows the same order as the GNU Coding Standards.)
b3076f16 768bindir='${exec_prefix}/bin'
769sbindir='${exec_prefix}/sbin'
770libexecdir='${exec_prefix}/libexec'
a8b2ad8d 771datarootdir='${prefix}/share'
772datadir='${datarootdir}'
b3076f16 773sysconfdir='${prefix}/etc'
774sharedstatedir='${prefix}/com'
775localstatedir='${prefix}/var'
b3076f16 776includedir='${prefix}/include'
777oldincludedir='/usr/include'
a8b2ad8d 778docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
779infodir='${datarootdir}/info'
780htmldir='${docdir}'
781dvidir='${docdir}'
782pdfdir='${docdir}'
783psdir='${docdir}'
784libdir='${exec_prefix}/lib'
785localedir='${datarootdir}/locale'
786mandir='${datarootdir}/man'
b3076f16 787
788ac_prev=
a8b2ad8d 789ac_dashdash=
b3076f16 790for ac_option
791do
792 # If the previous option needs an argument, assign it.
793 if test -n "$ac_prev"; then
a8b2ad8d 794 eval $ac_prev=\$ac_option
b3076f16 795 ac_prev=
796 continue
797 fi
798
a8b2ad8d 799 case $ac_option in
800 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
801 *) ac_optarg=yes ;;
802 esac
b3076f16 803
804 # Accept the important Cygnus configure options, so we can diagnose typos.
805
a8b2ad8d 806 case $ac_dashdash$ac_option in
807 --)
808 ac_dashdash=yes ;;
b3076f16 809
810 -bindir | --bindir | --bindi | --bind | --bin | --bi)
811 ac_prev=bindir ;;
812 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
813 bindir=$ac_optarg ;;
814
815 -build | --build | --buil | --bui | --bu)
816 ac_prev=build_alias ;;
817 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
818 build_alias=$ac_optarg ;;
819
820 -cache-file | --cache-file | --cache-fil | --cache-fi \
821 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
822 ac_prev=cache_file ;;
823 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
824 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
825 cache_file=$ac_optarg ;;
826
827 --config-cache | -C)
828 cache_file=config.cache ;;
829
a8b2ad8d 830 -datadir | --datadir | --datadi | --datad)
b3076f16 831 ac_prev=datadir ;;
a8b2ad8d 832 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b3076f16 833 datadir=$ac_optarg ;;
834
a8b2ad8d 835 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
836 | --dataroo | --dataro | --datar)
837 ac_prev=datarootdir ;;
838 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
839 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
840 datarootdir=$ac_optarg ;;
841
b3076f16 842 -disable-* | --disable-*)
db946ede 843 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
b3076f16 844 # Reject names that are not valid shell variable names.
db946ede 845 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
846 as_fn_error "invalid feature name: $ac_useropt"
847 ac_useropt_orig=$ac_useropt
848 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
849 case $ac_user_opts in
850 *"
851"enable_$ac_useropt"
852"*) ;;
853 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
854 ac_unrecognized_sep=', ';;
855 esac
856 eval enable_$ac_useropt=no ;;
a8b2ad8d 857
858 -docdir | --docdir | --docdi | --doc | --do)
859 ac_prev=docdir ;;
860 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
861 docdir=$ac_optarg ;;
862
863 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
864 ac_prev=dvidir ;;
865 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
866 dvidir=$ac_optarg ;;
b3076f16 867
868 -enable-* | --enable-*)
db946ede 869 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
b3076f16 870 # Reject names that are not valid shell variable names.
db946ede 871 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
872 as_fn_error "invalid feature name: $ac_useropt"
873 ac_useropt_orig=$ac_useropt
874 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
875 case $ac_user_opts in
876 *"
877"enable_$ac_useropt"
878"*) ;;
879 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
880 ac_unrecognized_sep=', ';;
881 esac
882 eval enable_$ac_useropt=\$ac_optarg ;;
b3076f16 883
884 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
885 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
886 | --exec | --exe | --ex)
887 ac_prev=exec_prefix ;;
888 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
889 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
890 | --exec=* | --exe=* | --ex=*)
891 exec_prefix=$ac_optarg ;;
892
893 -gas | --gas | --ga | --g)
894 # Obsolete; use --with-gas.
895 with_gas=yes ;;
896
897 -help | --help | --hel | --he | -h)
898 ac_init_help=long ;;
899 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
900 ac_init_help=recursive ;;
901 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
902 ac_init_help=short ;;
903
904 -host | --host | --hos | --ho)
905 ac_prev=host_alias ;;
906 -host=* | --host=* | --hos=* | --ho=*)
907 host_alias=$ac_optarg ;;
908
a8b2ad8d 909 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
910 ac_prev=htmldir ;;
911 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
912 | --ht=*)
913 htmldir=$ac_optarg ;;
914
b3076f16 915 -includedir | --includedir | --includedi | --included | --include \
916 | --includ | --inclu | --incl | --inc)
917 ac_prev=includedir ;;
918 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
919 | --includ=* | --inclu=* | --incl=* | --inc=*)
920 includedir=$ac_optarg ;;
921
922 -infodir | --infodir | --infodi | --infod | --info | --inf)
923 ac_prev=infodir ;;
924 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
925 infodir=$ac_optarg ;;
926
927 -libdir | --libdir | --libdi | --libd)
928 ac_prev=libdir ;;
929 -libdir=* | --libdir=* | --libdi=* | --libd=*)
930 libdir=$ac_optarg ;;
931
932 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
933 | --libexe | --libex | --libe)
934 ac_prev=libexecdir ;;
935 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
936 | --libexe=* | --libex=* | --libe=*)
937 libexecdir=$ac_optarg ;;
938
a8b2ad8d 939 -localedir | --localedir | --localedi | --localed | --locale)
940 ac_prev=localedir ;;
941 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
942 localedir=$ac_optarg ;;
943
b3076f16 944 -localstatedir | --localstatedir | --localstatedi | --localstated \
a8b2ad8d 945 | --localstate | --localstat | --localsta | --localst | --locals)
b3076f16 946 ac_prev=localstatedir ;;
947 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
a8b2ad8d 948 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b3076f16 949 localstatedir=$ac_optarg ;;
950
951 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
952 ac_prev=mandir ;;
953 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
954 mandir=$ac_optarg ;;
955
956 -nfp | --nfp | --nf)
957 # Obsolete; use --without-fp.
958 with_fp=no ;;
959
960 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
961 | --no-cr | --no-c | -n)
962 no_create=yes ;;
963
964 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
965 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
966 no_recursion=yes ;;
967
968 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
969 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
970 | --oldin | --oldi | --old | --ol | --o)
971 ac_prev=oldincludedir ;;
972 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
973 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
974 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
975 oldincludedir=$ac_optarg ;;
976
977 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
978 ac_prev=prefix ;;
979 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
980 prefix=$ac_optarg ;;
981
982 -program-prefix | --program-prefix | --program-prefi | --program-pref \
983 | --program-pre | --program-pr | --program-p)
984 ac_prev=program_prefix ;;
985 -program-prefix=* | --program-prefix=* | --program-prefi=* \
986 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
987 program_prefix=$ac_optarg ;;
988
989 -program-suffix | --program-suffix | --program-suffi | --program-suff \
990 | --program-suf | --program-su | --program-s)
991 ac_prev=program_suffix ;;
992 -program-suffix=* | --program-suffix=* | --program-suffi=* \
993 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
994 program_suffix=$ac_optarg ;;
995
996 -program-transform-name | --program-transform-name \
997 | --program-transform-nam | --program-transform-na \
998 | --program-transform-n | --program-transform- \
999 | --program-transform | --program-transfor \
1000 | --program-transfo | --program-transf \
1001 | --program-trans | --program-tran \
1002 | --progr-tra | --program-tr | --program-t)
1003 ac_prev=program_transform_name ;;
1004 -program-transform-name=* | --program-transform-name=* \
1005 | --program-transform-nam=* | --program-transform-na=* \
1006 | --program-transform-n=* | --program-transform-=* \
1007 | --program-transform=* | --program-transfor=* \
1008 | --program-transfo=* | --program-transf=* \
1009 | --program-trans=* | --program-tran=* \
1010 | --progr-tra=* | --program-tr=* | --program-t=*)
1011 program_transform_name=$ac_optarg ;;
1012
a8b2ad8d 1013 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1014 ac_prev=pdfdir ;;
1015 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1016 pdfdir=$ac_optarg ;;
1017
1018 -psdir | --psdir | --psdi | --psd | --ps)
1019 ac_prev=psdir ;;
1020 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1021 psdir=$ac_optarg ;;
1022
b3076f16 1023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1024 | -silent | --silent | --silen | --sile | --sil)
1025 silent=yes ;;
1026
1027 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1028 ac_prev=sbindir ;;
1029 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1030 | --sbi=* | --sb=*)
1031 sbindir=$ac_optarg ;;
1032
1033 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1034 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1035 | --sharedst | --shareds | --shared | --share | --shar \
1036 | --sha | --sh)
1037 ac_prev=sharedstatedir ;;
1038 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1039 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1040 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1041 | --sha=* | --sh=*)
1042 sharedstatedir=$ac_optarg ;;
1043
1044 -site | --site | --sit)
1045 ac_prev=site ;;
1046 -site=* | --site=* | --sit=*)
1047 site=$ac_optarg ;;
1048
1049 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1050 ac_prev=srcdir ;;
1051 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1052 srcdir=$ac_optarg ;;
1053
1054 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1055 | --syscon | --sysco | --sysc | --sys | --sy)
1056 ac_prev=sysconfdir ;;
1057 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1058 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1059 sysconfdir=$ac_optarg ;;
1060
1061 -target | --target | --targe | --targ | --tar | --ta | --t)
1062 ac_prev=target_alias ;;
1063 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1064 target_alias=$ac_optarg ;;
1065
1066 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1067 verbose=yes ;;
1068
1069 -version | --version | --versio | --versi | --vers | -V)
1070 ac_init_version=: ;;
1071
1072 -with-* | --with-*)
db946ede 1073 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
b3076f16 1074 # Reject names that are not valid shell variable names.
db946ede 1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076 as_fn_error "invalid package name: $ac_useropt"
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1080 *"
1081"with_$ac_useropt"
1082"*) ;;
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
1085 esac
1086 eval with_$ac_useropt=\$ac_optarg ;;
b3076f16 1087
1088 -without-* | --without-*)
db946ede 1089 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
b3076f16 1090 # Reject names that are not valid shell variable names.
db946ede 1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 as_fn_error "invalid package name: $ac_useropt"
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1096 *"
1097"with_$ac_useropt"
1098"*) ;;
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1101 esac
1102 eval with_$ac_useropt=no ;;
b3076f16 1103
1104 --x)
1105 # Obsolete; use --with-x.
1106 with_x=yes ;;
1107
1108 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1109 | --x-incl | --x-inc | --x-in | --x-i)
1110 ac_prev=x_includes ;;
1111 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1112 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1113 x_includes=$ac_optarg ;;
1114
1115 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1116 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1117 ac_prev=x_libraries ;;
1118 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1119 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1120 x_libraries=$ac_optarg ;;
1121
db946ede 1122 -*) as_fn_error "unrecognized option: \`$ac_option'
1123Try \`$0 --help' for more information."
b3076f16 1124 ;;
1125
1126 *=*)
1127 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1128 # Reject names that are not valid shell variable names.
db946ede 1129 case $ac_envvar in #(
1130 '' | [0-9]* | *[!_$as_cr_alnum]* )
1131 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1132 esac
a8b2ad8d 1133 eval $ac_envvar=\$ac_optarg
b3076f16 1134 export $ac_envvar ;;
1135
1136 *)
1137 # FIXME: should be removed in autoconf 3.0.
db946ede 1138 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b3076f16 1139 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
db946ede 1140 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b3076f16 1141 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1142 ;;
1143
1144 esac
1145done
1146
1147if test -n "$ac_prev"; then
1148 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
db946ede 1149 as_fn_error "missing argument to $ac_option"
1150fi
1151
1152if test -n "$ac_unrecognized_opts"; then
1153 case $enable_option_checking in
1154 no) ;;
1155 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1156 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1157 esac
b3076f16 1158fi
1159
db946ede 1160# Check all directory arguments for consistency.
a8b2ad8d 1161for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1162 datadir sysconfdir sharedstatedir localstatedir includedir \
1163 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1164 libdir localedir mandir
b3076f16 1165do
a8b2ad8d 1166 eval ac_val=\$$ac_var
db946ede 1167 # Remove trailing slashes.
1168 case $ac_val in
1169 */ )
1170 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1171 eval $ac_var=\$ac_val;;
1172 esac
1173 # Be sure to have absolute directory names.
b3076f16 1174 case $ac_val in
a8b2ad8d 1175 [\\/$]* | ?:[\\/]* ) continue;;
1176 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
b3076f16 1177 esac
db946ede 1178 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
b3076f16 1179done
1180
1181# There might be people who depend on the old broken behavior: `$host'
1182# used to hold the argument of --host etc.
1183# FIXME: To remove some day.
1184build=$build_alias
1185host=$host_alias
1186target=$target_alias
1187
1188# FIXME: To remove some day.
1189if test "x$host_alias" != x; then
1190 if test "x$build_alias" = x; then
1191 cross_compiling=maybe
db946ede 1192 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
b3076f16 1193 If a cross compiler is detected then cross compile mode will be used." >&2
1194 elif test "x$build_alias" != "x$host_alias"; then
1195 cross_compiling=yes
1196 fi
1197fi
1198
1199ac_tool_prefix=
1200test -n "$host_alias" && ac_tool_prefix=$host_alias-
1201
1202test "$silent" = yes && exec 6>/dev/null
1203
1204
a8b2ad8d 1205ac_pwd=`pwd` && test -n "$ac_pwd" &&
1206ac_ls_di=`ls -di .` &&
1207ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
db946ede 1208 as_fn_error "working directory cannot be determined"
a8b2ad8d 1209test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
db946ede 1210 as_fn_error "pwd does not report name of working directory"
a8b2ad8d 1211
1212
b3076f16 1213# Find the source files, if location was not specified.
1214if test -z "$srcdir"; then
1215 ac_srcdir_defaulted=yes
a8b2ad8d 1216 # Try the directory containing this script, then the parent directory.
db946ede 1217 ac_confdir=`$as_dirname -- "$as_myself" ||
1218$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1219 X"$as_myself" : 'X\(//\)[^/]' \| \
1220 X"$as_myself" : 'X\(//\)$' \| \
1221 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1222$as_echo X"$as_myself" |
a8b2ad8d 1223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1224 s//\1/
1225 q
1226 }
1227 /^X\(\/\/\)[^/].*/{
1228 s//\1/
1229 q
1230 }
1231 /^X\(\/\/\)$/{
1232 s//\1/
1233 q
1234 }
1235 /^X\(\/\).*/{
1236 s//\1/
1237 q
1238 }
1239 s/.*/./; q'`
b3076f16 1240 srcdir=$ac_confdir
a8b2ad8d 1241 if test ! -r "$srcdir/$ac_unique_file"; then
b3076f16 1242 srcdir=..
1243 fi
1244else
1245 ac_srcdir_defaulted=no
1246fi
a8b2ad8d 1247if test ! -r "$srcdir/$ac_unique_file"; then
1248 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
db946ede 1249 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
b3076f16 1250fi
a8b2ad8d 1251ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1252ac_abs_confdir=`(
db946ede 1253 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
a8b2ad8d 1254 pwd)`
1255# When building in place, set srcdir=.
1256if test "$ac_abs_confdir" = "$ac_pwd"; then
1257 srcdir=.
1258fi
1259# Remove unnecessary trailing slashes from srcdir.
1260# Double slashes in file names in object file debugging info
1261# mess up M-x gdb in Emacs.
1262case $srcdir in
1263*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1264esac
1265for ac_var in $ac_precious_vars; do
1266 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1267 eval ac_env_${ac_var}_value=\$${ac_var}
1268 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1269 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1270done
b3076f16 1271
1272#
1273# Report the --help message.
1274#
1275if test "$ac_init_help" = "long"; then
1276 # Omit some internal or obsolete options to make the list less imposing.
1277 # This message is too long to be a string in the A/UX 3.1 sh.
1278 cat <<_ACEOF
db946ede 1279\`configure' configures X3 1.8 to adapt to many kinds of systems.
b3076f16 1280
1281Usage: $0 [OPTION]... [VAR=VALUE]...
1282
1283To assign environment variables (e.g., CC, CFLAGS...), specify them as
1284VAR=VALUE. See below for descriptions of some of the useful variables.
1285
1286Defaults for the options are specified in brackets.
1287
1288Configuration:
1289 -h, --help display this help and exit
1290 --help=short display options specific to this package
1291 --help=recursive display the short help of all the included packages
1292 -V, --version display version information and exit
1293 -q, --quiet, --silent do not print \`checking...' messages
1294 --cache-file=FILE cache test results in FILE [disabled]
1295 -C, --config-cache alias for \`--cache-file=config.cache'
1296 -n, --no-create do not create output files
1297 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1298
b3076f16 1299Installation directories:
1300 --prefix=PREFIX install architecture-independent files in PREFIX
db946ede 1301 [$ac_default_prefix]
b3076f16 1302 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
db946ede 1303 [PREFIX]
b3076f16 1304
1305By default, \`make install' will install all the files in
1306\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1307an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1308for instance \`--prefix=\$HOME'.
1309
1310For better control, use the options below.
1311
1312Fine tuning of the installation directories:
db946ede 1313 --bindir=DIR user executables [EPREFIX/bin]
1314 --sbindir=DIR system admin executables [EPREFIX/sbin]
1315 --libexecdir=DIR program executables [EPREFIX/libexec]
1316 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1317 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1318 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1319 --libdir=DIR object code libraries [EPREFIX/lib]
1320 --includedir=DIR C header files [PREFIX/include]
1321 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1322 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1323 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1324 --infodir=DIR info documentation [DATAROOTDIR/info]
1325 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1326 --mandir=DIR man documentation [DATAROOTDIR/man]
1327 --docdir=DIR documentation root [DATAROOTDIR/doc/x3]
1328 --htmldir=DIR html documentation [DOCDIR]
1329 --dvidir=DIR dvi documentation [DOCDIR]
1330 --pdfdir=DIR pdf documentation [DOCDIR]
1331 --psdir=DIR ps documentation [DOCDIR]
b3076f16 1332_ACEOF
1333
1334 cat <<\_ACEOF
1335
1336Program names:
1337 --program-prefix=PREFIX prepend PREFIX to installed program names
1338 --program-suffix=SUFFIX append SUFFIX to installed program names
1339 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1340
1341System types:
1342 --build=BUILD configure for building on BUILD [guessed]
1343 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1344 --target=TARGET configure for building compilers for TARGET [HOST]
1345_ACEOF
1346fi
1347
1348if test -n "$ac_init_help"; then
1349 case $ac_init_help in
db946ede 1350 short | recursive ) echo "Configuration of X3 1.8:";;
b3076f16 1351 esac
1352 cat <<\_ACEOF
1353
1354Optional Features:
db946ede 1355 --disable-option-checking ignore unrecognized --enable/--with options
b3076f16 1356 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1357 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ec1a68c8 1358 --enable-maintainer-mode enable make rules and dependencies not useful
1359 (and sometimes confusing) to the casual installer
1360 --disable-dependency-tracking speeds up one-time build
1361 --enable-dependency-tracking do not reject slow dependency extractors
b3076f16 1362 --disable-tokens Disables tokenization of P10 protocol output
1363 (tokens required if linking to ircu 2.10.11)
1364 --enable-debug Enables debugging behaviors
1365 --enable-modules=list,of,modules Enable extra modules
2f65da8f 1366 --disable-python don't build the python plugin
b3076f16 1367
1368Optional Packages:
1369 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1370 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1371 --with-malloc=type Enables use of a special malloc library; one of:
b8cb2a14 1372 system (the default), boehm-gc, dmalloc, mpatrol, x3, slab
b3076f16 1373 --with-protocol=name Choose IRC dialect to support; one of:
7827220c 1374 p10 (the default)
1136f709 1375 --with-mail=name How to send mail; one of:
1376 sendmail (the default), smtp
1377 --without-epoll Disables the epoll_*() I/O backend
1378 --without-kevent Disables the kevent() I/O backend
b3076f16 1379 --without-getopt Disables building of the GNU getopt library
a8b2ad8d 1380 --with-tre=PATH Base path to where libtre is installed, such that
1381 PATH/lib/libtre.so and PATH/include/tre/regex.h exist.
1382 --with-coredumper=PATH Base path to where core dumper is installed, such
1383 that PATH/lib/libcoredumper.so and
1384 PATH/include/google/coredumper.h exist.
73d4cc91 1385 --with-ssl=PATH Base path to where openssl is installed
8da89711 1386 --with-ldap=PATH Base path to where the ldap library and headers are installed,
1387 such that PATH/include/ldap.h and PATH/lib/libldap.so exist.
b3076f16 1388
1389Some influential environment variables:
1390 CC C compiler command
1391 CFLAGS C compiler flags
1392 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1393 nonstandard directory <lib dir>
0bd0bef6 1394 LIBS libraries to pass to the linker, e.g. -l<library>
a8b2ad8d 1395 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1396 you have headers in a nonstandard directory <include dir>
b3076f16 1397 CPP C preprocessor
1398
1399Use these variables to override the choices made by `configure' or to help
1400it to find libraries and programs with nonstandard names/locations.
1401
63c95a47 1402Report bugs to <evilnet-devel@lists.sourceforge.net>.
b3076f16 1403_ACEOF
a8b2ad8d 1404ac_status=$?
b3076f16 1405fi
1406
1407if test "$ac_init_help" = "recursive"; then
1408 # If there are subdirs, report their specific --help.
b3076f16 1409 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
db946ede 1410 test -d "$ac_dir" ||
1411 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1412 continue
b3076f16 1413 ac_builddir=.
1414
a8b2ad8d 1415case "$ac_dir" in
1416.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1417*)
db946ede 1418 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
a8b2ad8d 1419 # A ".." for each directory in $ac_dir_suffix.
db946ede 1420 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
a8b2ad8d 1421 case $ac_top_builddir_sub in
1422 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1424 esac ;;
1425esac
1426ac_abs_top_builddir=$ac_pwd
1427ac_abs_builddir=$ac_pwd$ac_dir_suffix
1428# for backward compatibility:
1429ac_top_builddir=$ac_top_build_prefix
b3076f16 1430
1431case $srcdir in
a8b2ad8d 1432 .) # We are building in place.
b3076f16 1433 ac_srcdir=.
a8b2ad8d 1434 ac_top_srcdir=$ac_top_builddir_sub
1435 ac_abs_top_srcdir=$ac_pwd ;;
1436 [\\/]* | ?:[\\/]* ) # Absolute name.
b3076f16 1437 ac_srcdir=$srcdir$ac_dir_suffix;
a8b2ad8d 1438 ac_top_srcdir=$srcdir
1439 ac_abs_top_srcdir=$srcdir ;;
1440 *) # Relative name.
1441 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1442 ac_top_srcdir=$ac_top_build_prefix$srcdir
1443 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b3076f16 1444esac
a8b2ad8d 1445ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1446
1447 cd "$ac_dir" || { ac_status=$?; continue; }
1448 # Check for guested configure.
1449 if test -f "$ac_srcdir/configure.gnu"; then
1450 echo &&
1451 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1452 elif test -f "$ac_srcdir/configure"; then
1453 echo &&
1454 $SHELL "$ac_srcdir/configure" --help=recursive
b3076f16 1455 else
db946ede 1456 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
a8b2ad8d 1457 fi || ac_status=$?
1458 cd "$ac_pwd" || { ac_status=$?; break; }
b3076f16 1459 done
1460fi
1461
a8b2ad8d 1462test -n "$ac_init_help" && exit $ac_status
b3076f16 1463if $ac_init_version; then
1464 cat <<\_ACEOF
db946ede 1465X3 configure 1.8
1466generated by GNU Autoconf 2.64
b3076f16 1467
db946ede 1468Copyright (C) 2009 Free Software Foundation, Inc.
b3076f16 1469This configure script is free software; the Free Software Foundation
1470gives unlimited permission to copy, distribute and modify it.
1471_ACEOF
a8b2ad8d 1472 exit
b3076f16 1473fi
b3076f16 1474
db946ede 1475## ------------------------ ##
1476## Autoconf initialization. ##
1477## ------------------------ ##
b3076f16 1478
db946ede 1479# ac_fn_c_try_compile LINENO
1480# --------------------------
1481# Try to compile conftest.$ac_ext, and return whether this succeeded.
1482ac_fn_c_try_compile ()
1483{
1484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1485 rm -f conftest.$ac_objext
1486 if { { ac_try="$ac_compile"
1487case "(($ac_try" in
1488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1489 *) ac_try_echo=$ac_try;;
1490esac
1491eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1492$as_echo "$ac_try_echo"; } >&5
1493 (eval "$ac_compile") 2>conftest.err
1494 ac_status=$?
1495 if test -s conftest.err; then
1496 grep -v '^ *+' conftest.err >conftest.er1
1497 cat conftest.er1 >&5
1498 mv -f conftest.er1 conftest.err
1499 fi
1500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1501 test $ac_status = 0; } && {
1502 test -z "$ac_c_werror_flag" ||
1503 test ! -s conftest.err
1504 } && test -s conftest.$ac_objext; then :
1505 ac_retval=0
1506else
1507 $as_echo "$as_me: failed program was:" >&5
1508sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 1509
db946ede 1510 ac_retval=1
1511fi
1512 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1513 return $ac_retval
1514
1515} # ac_fn_c_try_compile
1516
1517# ac_fn_c_try_cpp LINENO
1518# ----------------------
1519# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1520ac_fn_c_try_cpp ()
b3076f16 1521{
db946ede 1522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1523 if { { ac_try="$ac_cpp conftest.$ac_ext"
1524case "(($ac_try" in
1525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1526 *) ac_try_echo=$ac_try;;
1527esac
1528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1529$as_echo "$ac_try_echo"; } >&5
1530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1531 ac_status=$?
1532 if test -s conftest.err; then
1533 grep -v '^ *+' conftest.err >conftest.er1
1534 cat conftest.er1 >&5
1535 mv -f conftest.er1 conftest.err
1536 fi
1537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1538 test $ac_status = 0; } >/dev/null && {
1539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1540 test ! -s conftest.err
1541 }; then :
1542 ac_retval=0
1543else
1544 $as_echo "$as_me: failed program was:" >&5
1545sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 1546
db946ede 1547 ac_retval=1
1548fi
1549 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1550 return $ac_retval
b3076f16 1551
db946ede 1552} # ac_fn_c_try_cpp
b3076f16 1553
db946ede 1554# ac_fn_c_try_link LINENO
1555# -----------------------
1556# Try to link conftest.$ac_ext, and return whether this succeeded.
1557ac_fn_c_try_link ()
1558{
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 rm -f conftest.$ac_objext conftest$ac_exeext
1561 if { { ac_try="$ac_link"
1562case "(($ac_try" in
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1565esac
1566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567$as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_link") 2>conftest.err
1569 ac_status=$?
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1574 fi
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } && {
1577 test -z "$ac_c_werror_flag" ||
1578 test ! -s conftest.err
1579 } && test -s conftest$ac_exeext && {
1580 test "$cross_compiling" = yes ||
1581 $as_test_x conftest$ac_exeext
1582 }; then :
1583 ac_retval=0
1584else
1585 $as_echo "$as_me: failed program was:" >&5
1586sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 1587
db946ede 1588 ac_retval=1
1589fi
1590 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1591 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1592 # interfere with the next link command; also delete a directory that is
1593 # left behind by Apple's compiler. We do this before executing the actions.
1594 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1595 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1596 return $ac_retval
b3076f16 1597
db946ede 1598} # ac_fn_c_try_link
b3076f16 1599
db946ede 1600# ac_fn_c_try_run LINENO
1601# ----------------------
1602# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1603# that executables *can* be run.
1604ac_fn_c_try_run ()
1605{
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 if { { ac_try="$ac_link"
1608case "(($ac_try" in
1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610 *) ac_try_echo=$ac_try;;
1611esac
1612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613$as_echo "$ac_try_echo"; } >&5
1614 (eval "$ac_link") 2>&5
1615 ac_status=$?
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1618 { { case "(($ac_try" in
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1621esac
1622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623$as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_try") 2>&5
1625 ac_status=$?
1626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627 test $ac_status = 0; }; }; then :
1628 ac_retval=0
1629else
1630 $as_echo "$as_me: program exited with status $ac_status" >&5
1631 $as_echo "$as_me: failed program was:" >&5
1632sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 1633
db946ede 1634 ac_retval=$ac_status
1635fi
1636 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1637 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1638 return $ac_retval
1639
1640} # ac_fn_c_try_run
1641
1642# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1643# -------------------------------------------------------
1644# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1645# the include files in INCLUDES and setting the cache variable VAR
1646# accordingly.
1647ac_fn_c_check_header_mongrel ()
1648{
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652$as_echo_n "checking for $2... " >&6; }
1653if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1654 $as_echo_n "(cached) " >&6
1655fi
1656eval ac_res=\$$3
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1658$as_echo "$ac_res" >&6; }
1659else
1660 # Is the header compilable?
1661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1662$as_echo_n "checking $2 usability... " >&6; }
1663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1664/* end confdefs.h. */
1665$4
1666#include <$2>
1667_ACEOF
1668if ac_fn_c_try_compile "$LINENO"; then :
1669 ac_header_compiler=yes
1670else
1671 ac_header_compiler=no
1672fi
1673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1675$as_echo "$ac_header_compiler" >&6; }
1676
1677# Is the header present?
1678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1679$as_echo_n "checking $2 presence... " >&6; }
1680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681/* end confdefs.h. */
1682#include <$2>
1683_ACEOF
1684if ac_fn_c_try_cpp "$LINENO"; then :
1685 ac_header_preproc=yes
1686else
1687 ac_header_preproc=no
1688fi
1689rm -f conftest.err conftest.$ac_ext
1690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1691$as_echo "$ac_header_preproc" >&6; }
1692
1693# So? What about this header?
1694case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1695 yes:no: )
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1697$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1699$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1700 ;;
1701 no:yes:* )
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1703$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1705$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1707$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1709$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1711$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1712( cat <<\_ASBOX
1713## -------------------------------------------------- ##
1714## Report this to evilnet-devel@lists.sourceforge.net ##
1715## -------------------------------------------------- ##
1716_ASBOX
1717 ) | sed "s/^/$as_me: WARNING: /" >&2
1718 ;;
1719esac
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721$as_echo_n "checking for $2... " >&6; }
1722if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1723 $as_echo_n "(cached) " >&6
1724else
1725 eval "$3=\$ac_header_compiler"
1726fi
1727eval ac_res=\$$3
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729$as_echo "$ac_res" >&6; }
1730fi
1731 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1732
1733} # ac_fn_c_check_header_mongrel
1734
1735# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1736# -------------------------------------------------------
1737# Tests whether HEADER exists and can be compiled using the include files in
1738# INCLUDES, setting the cache variable VAR accordingly.
1739ac_fn_c_check_header_compile ()
1740{
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743$as_echo_n "checking for $2... " >&6; }
1744if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1745 $as_echo_n "(cached) " >&6
1746else
1747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748/* end confdefs.h. */
1749$4
1750#include <$2>
1751_ACEOF
1752if ac_fn_c_try_compile "$LINENO"; then :
1753 eval "$3=yes"
1754else
1755 eval "$3=no"
1756fi
1757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1758fi
1759eval ac_res=\$$3
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761$as_echo "$ac_res" >&6; }
1762 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1763
1764} # ac_fn_c_check_header_compile
1765
1766# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1767# ----------------------------------------------------
1768# Tries to find if the field MEMBER exists in type AGGR, after including
1769# INCLUDES, setting cache variable VAR accordingly.
1770ac_fn_c_check_member ()
1771{
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1774$as_echo_n "checking for $2.$3... " >&6; }
1775if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1776 $as_echo_n "(cached) " >&6
1777else
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779/* end confdefs.h. */
1780$5
1781int
1782main ()
1783{
1784static $2 ac_aggr;
1785if (ac_aggr.$3)
1786return 0;
1787 ;
1788 return 0;
1789}
1790_ACEOF
1791if ac_fn_c_try_compile "$LINENO"; then :
1792 eval "$4=yes"
1793else
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795/* end confdefs.h. */
1796$5
1797int
1798main ()
1799{
1800static $2 ac_aggr;
1801if (sizeof ac_aggr.$3)
1802return 0;
1803 ;
1804 return 0;
1805}
1806_ACEOF
1807if ac_fn_c_try_compile "$LINENO"; then :
1808 eval "$4=yes"
1809else
1810 eval "$4=no"
1811fi
1812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813fi
1814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1815fi
1816eval ac_res=\$$4
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818$as_echo "$ac_res" >&6; }
1819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1820
1821} # ac_fn_c_check_member
1822
1823# ac_fn_c_check_func LINENO FUNC VAR
1824# ----------------------------------
1825# Tests whether FUNC exists, setting the cache variable VAR accordingly
1826ac_fn_c_check_func ()
1827{
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830$as_echo_n "checking for $2... " >&6; }
1831if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1832 $as_echo_n "(cached) " >&6
1833else
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835/* end confdefs.h. */
1836/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1838#define $2 innocuous_$2
1839
1840/* System header to define __stub macros and hopefully few prototypes,
1841 which can conflict with char $2 (); below.
1842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1843 <limits.h> exists even on freestanding compilers. */
1844
1845#ifdef __STDC__
1846# include <limits.h>
1847#else
1848# include <assert.h>
1849#endif
1850
1851#undef $2
1852
1853/* Override any GCC internal prototype to avoid an error.
1854 Use char because int might match the return type of a GCC
1855 builtin and then its argument prototype would still apply. */
1856#ifdef __cplusplus
1857extern "C"
1858#endif
1859char $2 ();
1860/* The GNU C library defines this for functions which it implements
1861 to always fail with ENOSYS. Some functions are actually named
1862 something starting with __ and the normal name is an alias. */
1863#if defined __stub_$2 || defined __stub___$2
1864choke me
1865#endif
1866
1867int
1868main ()
1869{
1870return $2 ();
1871 ;
1872 return 0;
1873}
1874_ACEOF
1875if ac_fn_c_try_link "$LINENO"; then :
1876 eval "$3=yes"
1877else
1878 eval "$3=no"
1879fi
1880rm -f core conftest.err conftest.$ac_objext \
1881 conftest$ac_exeext conftest.$ac_ext
1882fi
1883eval ac_res=\$$3
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885$as_echo "$ac_res" >&6; }
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887
1888} # ac_fn_c_check_func
1889
1890# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1891# -------------------------------------------
1892# Tests whether TYPE exists after having included INCLUDES, setting cache
1893# variable VAR accordingly.
1894ac_fn_c_check_type ()
1895{
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898$as_echo_n "checking for $2... " >&6; }
1899if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1900 $as_echo_n "(cached) " >&6
1901else
1902 eval "$3=no"
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904/* end confdefs.h. */
1905$4
1906int
1907main ()
1908{
1909if (sizeof ($2))
1910 return 0;
1911 ;
1912 return 0;
1913}
1914_ACEOF
1915if ac_fn_c_try_compile "$LINENO"; then :
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917/* end confdefs.h. */
1918$4
1919int
1920main ()
1921{
1922if (sizeof (($2)))
1923 return 0;
1924 ;
1925 return 0;
1926}
1927_ACEOF
1928if ac_fn_c_try_compile "$LINENO"; then :
1929
1930else
1931 eval "$3=yes"
1932fi
1933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934fi
1935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936fi
1937eval ac_res=\$$3
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939$as_echo "$ac_res" >&6; }
1940 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1941
1942} # ac_fn_c_check_type
1943cat >config.log <<_ACEOF
1944This file contains any messages produced by compilers while
1945running configure, to aid debugging if configure makes a mistake.
1946
1947It was created by X3 $as_me 1.8, which was
1948generated by GNU Autoconf 2.64. Invocation command line was
1949
1950 $ $0 $@
1951
1952_ACEOF
1953exec 5>>config.log
1954{
1955cat <<_ASUNAME
1956## --------- ##
1957## Platform. ##
1958## --------- ##
1959
1960hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1961uname -m = `(uname -m) 2>/dev/null || echo unknown`
1962uname -r = `(uname -r) 2>/dev/null || echo unknown`
1963uname -s = `(uname -s) 2>/dev/null || echo unknown`
1964uname -v = `(uname -v) 2>/dev/null || echo unknown`
1965
1966/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1967/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1968
1969/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1970/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1971/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1972/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1973/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1974/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1975/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1976
1977_ASUNAME
1978
1979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980for as_dir in $PATH
1981do
1982 IFS=$as_save_IFS
1983 test -z "$as_dir" && as_dir=.
1984 $as_echo "PATH: $as_dir"
1985 done
1986IFS=$as_save_IFS
1987
1988} >&5
1989
1990cat >&5 <<_ACEOF
b3076f16 1991
1992
1993## ----------- ##
1994## Core tests. ##
1995## ----------- ##
1996
1997_ACEOF
1998
1999
2000# Keep a trace of the command line.
2001# Strip out --no-create and --no-recursion so they do not pile up.
2002# Strip out --silent because we don't want to record it for future runs.
2003# Also quote any args containing shell meta-characters.
2004# Make two passes to allow for proper duplicate-argument suppression.
2005ac_configure_args=
2006ac_configure_args0=
2007ac_configure_args1=
b3076f16 2008ac_must_keep_next=false
2009for ac_pass in 1 2
2010do
2011 for ac_arg
2012 do
2013 case $ac_arg in
2014 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2016 | -silent | --silent | --silen | --sile | --sil)
2017 continue ;;
a8b2ad8d 2018 *\'*)
db946ede 2019 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b3076f16 2020 esac
2021 case $ac_pass in
db946ede 2022 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b3076f16 2023 2)
db946ede 2024 as_fn_append ac_configure_args1 " '$ac_arg'"
b3076f16 2025 if test $ac_must_keep_next = true; then
2026 ac_must_keep_next=false # Got value, back to normal.
2027 else
2028 case $ac_arg in
2029 *=* | --config-cache | -C | -disable-* | --disable-* \
2030 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2031 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2032 | -with-* | --with-* | -without-* | --without-* | --x)
2033 case "$ac_configure_args0 " in
2034 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2035 esac
2036 ;;
2037 -* ) ac_must_keep_next=true ;;
2038 esac
2039 fi
db946ede 2040 as_fn_append ac_configure_args " '$ac_arg'"
b3076f16 2041 ;;
2042 esac
2043 done
2044done
db946ede 2045{ ac_configure_args0=; unset ac_configure_args0;}
2046{ ac_configure_args1=; unset ac_configure_args1;}
b3076f16 2047
2048# When interrupted or exit'd, cleanup temporary files, and complete
2049# config.log. We remove comments because anyway the quotes in there
2050# would cause problems or look ugly.
a8b2ad8d 2051# WARNING: Use '\'' to represent an apostrophe within the trap.
2052# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b3076f16 2053trap 'exit_status=$?
2054 # Save into config.log some information that might help in debugging.
2055 {
2056 echo
2057
2058 cat <<\_ASBOX
2059## ---------------- ##
2060## Cache variables. ##
2061## ---------------- ##
2062_ASBOX
2063 echo
2064 # The following way of writing the cache mishandles newlines in values,
a8b2ad8d 2065(
2066 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2067 eval ac_val=\$$ac_var
2068 case $ac_val in #(
2069 *${as_nl}*)
2070 case $ac_var in #(
db946ede 2071 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2072$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
a8b2ad8d 2073 esac
2074 case $ac_var in #(
2075 _ | IFS | as_nl) ;; #(
db946ede 2076 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2077 *) { eval $ac_var=; unset $ac_var;} ;;
a8b2ad8d 2078 esac ;;
2079 esac
2080 done
b3076f16 2081 (set) 2>&1 |
a8b2ad8d 2082 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2083 *${as_nl}ac_space=\ *)
b3076f16 2084 sed -n \
a8b2ad8d 2085 "s/'\''/'\''\\\\'\'''\''/g;
2086 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2087 ;; #(
b3076f16 2088 *)
a8b2ad8d 2089 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b3076f16 2090 ;;
a8b2ad8d 2091 esac |
2092 sort
2093)
b3076f16 2094 echo
2095
2096 cat <<\_ASBOX
2097## ----------------- ##
2098## Output variables. ##
2099## ----------------- ##
2100_ASBOX
2101 echo
2102 for ac_var in $ac_subst_vars
2103 do
a8b2ad8d 2104 eval ac_val=\$$ac_var
2105 case $ac_val in
db946ede 2106 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
a8b2ad8d 2107 esac
db946ede 2108 $as_echo "$ac_var='\''$ac_val'\''"
b3076f16 2109 done | sort
2110 echo
2111
2112 if test -n "$ac_subst_files"; then
2113 cat <<\_ASBOX
a8b2ad8d 2114## ------------------- ##
2115## File substitutions. ##
2116## ------------------- ##
b3076f16 2117_ASBOX
2118 echo
2119 for ac_var in $ac_subst_files
2120 do
a8b2ad8d 2121 eval ac_val=\$$ac_var
2122 case $ac_val in
db946ede 2123 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
a8b2ad8d 2124 esac
db946ede 2125 $as_echo "$ac_var='\''$ac_val'\''"
b3076f16 2126 done | sort
2127 echo
2128 fi
2129
2130 if test -s confdefs.h; then
2131 cat <<\_ASBOX
2132## ----------- ##
2133## confdefs.h. ##
2134## ----------- ##
2135_ASBOX
2136 echo
a8b2ad8d 2137 cat confdefs.h
b3076f16 2138 echo
2139 fi
2140 test "$ac_signal" != 0 &&
db946ede 2141 $as_echo "$as_me: caught signal $ac_signal"
2142 $as_echo "$as_me: exit $exit_status"
b3076f16 2143 } >&5
a8b2ad8d 2144 rm -f core *.core core.conftest.* &&
2145 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b3076f16 2146 exit $exit_status
a8b2ad8d 2147' 0
b3076f16 2148for ac_signal in 1 2 13 15; do
db946ede 2149 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b3076f16 2150done
2151ac_signal=0
2152
2153# confdefs.h avoids OS command line length limits that DEFS can exceed.
a8b2ad8d 2154rm -f -r conftest* confdefs.h
b3076f16 2155
db946ede 2156$as_echo "/* confdefs.h */" > confdefs.h
2157
b3076f16 2158# Predefined preprocessor variables.
2159
2160cat >>confdefs.h <<_ACEOF
2161#define PACKAGE_NAME "$PACKAGE_NAME"
2162_ACEOF
2163
b3076f16 2164cat >>confdefs.h <<_ACEOF
2165#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2166_ACEOF
2167
b3076f16 2168cat >>confdefs.h <<_ACEOF
2169#define PACKAGE_VERSION "$PACKAGE_VERSION"
2170_ACEOF
2171
b3076f16 2172cat >>confdefs.h <<_ACEOF
2173#define PACKAGE_STRING "$PACKAGE_STRING"
2174_ACEOF
2175
b3076f16 2176cat >>confdefs.h <<_ACEOF
2177#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2178_ACEOF
2179
db946ede 2180cat >>confdefs.h <<_ACEOF
2181#define PACKAGE_URL "$PACKAGE_URL"
2182_ACEOF
2183
b3076f16 2184
2185# Let the site file select an alternate cache file if it wants to.
db946ede 2186# Prefer an explicitly selected file to automatically selected ones.
2187ac_site_file1=NONE
2188ac_site_file2=NONE
a8b2ad8d 2189if test -n "$CONFIG_SITE"; then
db946ede 2190 ac_site_file1=$CONFIG_SITE
a8b2ad8d 2191elif test "x$prefix" != xNONE; then
db946ede 2192 ac_site_file1=$prefix/share/config.site
2193 ac_site_file2=$prefix/etc/config.site
a8b2ad8d 2194else
db946ede 2195 ac_site_file1=$ac_default_prefix/share/config.site
2196 ac_site_file2=$ac_default_prefix/etc/config.site
b3076f16 2197fi
db946ede 2198for ac_site_file in "$ac_site_file1" "$ac_site_file2"
a8b2ad8d 2199do
db946ede 2200 test "x$ac_site_file" = xNONE && continue
b3076f16 2201 if test -r "$ac_site_file"; then
db946ede 2202 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2203$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b3076f16 2204 sed 's/^/| /' "$ac_site_file" >&5
2205 . "$ac_site_file"
2206 fi
2207done
2208
2209if test -r "$cache_file"; then
2210 # Some versions of bash will fail to source /dev/null (special
2211 # files actually), so we avoid doing that.
2212 if test -f "$cache_file"; then
db946ede 2213 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2214$as_echo "$as_me: loading cache $cache_file" >&6;}
b3076f16 2215 case $cache_file in
a8b2ad8d 2216 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2217 *) . "./$cache_file";;
b3076f16 2218 esac
2219 fi
2220else
db946ede 2221 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2222$as_echo "$as_me: creating cache $cache_file" >&6;}
b3076f16 2223 >$cache_file
2224fi
2225
2226# Check that the precious variables saved in the cache have kept the same
2227# value.
2228ac_cache_corrupted=false
a8b2ad8d 2229for ac_var in $ac_precious_vars; do
b3076f16 2230 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2231 eval ac_new_set=\$ac_env_${ac_var}_set
a8b2ad8d 2232 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2233 eval ac_new_val=\$ac_env_${ac_var}_value
b3076f16 2234 case $ac_old_set,$ac_new_set in
2235 set,)
db946ede 2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2237$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b3076f16 2238 ac_cache_corrupted=: ;;
2239 ,set)
db946ede 2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2241$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b3076f16 2242 ac_cache_corrupted=: ;;
2243 ,);;
2244 *)
2245 if test "x$ac_old_val" != "x$ac_new_val"; then
db946ede 2246 # differences in whitespace do not lead to failure.
2247 ac_old_val_w=`echo x $ac_old_val`
2248 ac_new_val_w=`echo x $ac_new_val`
2249 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2251$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2252 ac_cache_corrupted=:
2253 else
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2255$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2256 eval $ac_var=\$ac_old_val
2257 fi
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2259$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2261$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b3076f16 2262 fi;;
2263 esac
2264 # Pass precious variables to config.status.
2265 if test "$ac_new_set" = set; then
2266 case $ac_new_val in
db946ede 2267 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b3076f16 2268 *) ac_arg=$ac_var=$ac_new_val ;;
2269 esac
2270 case " $ac_configure_args " in
2271 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
db946ede 2272 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b3076f16 2273 esac
2274 fi
2275done
2276if $ac_cache_corrupted; then
db946ede 2277 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2280$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2281 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
b3076f16 2282fi
db946ede 2283## -------------------- ##
2284## Main body of script. ##
2285## -------------------- ##
b3076f16 2286
a8b2ad8d 2287ac_ext=c
2288ac_cpp='$CPP $CPPFLAGS'
2289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2291ac_compiler_gnu=$ac_cv_c_compiler_gnu
b3076f16 2292
2293
ceafd592 2294CODENAME=X3
a8b2ad8d 2295ac_config_headers="$ac_config_headers src/config.h"
b3076f16 2296
2297
2298ac_aux_dir=
a8b2ad8d 2299for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
db946ede 2300 for ac_t in install-sh install.sh shtool; do
2301 if test -f "$ac_dir/$ac_t"; then
2302 ac_aux_dir=$ac_dir
2303 ac_install_sh="$ac_aux_dir/$ac_t -c"
2304 break 2
2305 fi
2306 done
b3076f16 2307done
2308if test -z "$ac_aux_dir"; then
db946ede 2309 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
b3076f16 2310fi
a8b2ad8d 2311
2312# These three variables are undocumented and unsupported,
2313# and are intended to be withdrawn in a future Autoconf release.
2314# They can cause serious problems if a builder's source tree is in a directory
2315# whose full name contains unusual characters.
2316ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2317ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2318ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2319
b3076f16 2320
2321# Make sure we can run config.sub.
a8b2ad8d 2322$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
db946ede 2323 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
b3076f16 2324
db946ede 2325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2326$as_echo_n "checking build system type... " >&6; }
2327if test "${ac_cv_build+set}" = set; then :
2328 $as_echo_n "(cached) " >&6
b3076f16 2329else
a8b2ad8d 2330 ac_build_alias=$build_alias
2331test "x$ac_build_alias" = x &&
2332 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2333test "x$ac_build_alias" = x &&
db946ede 2334 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
a8b2ad8d 2335ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
db946ede 2336 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
b3076f16 2337
2338fi
db946ede 2339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2340$as_echo "$ac_cv_build" >&6; }
a8b2ad8d 2341case $ac_cv_build in
2342*-*-*) ;;
db946ede 2343*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
a8b2ad8d 2344esac
b3076f16 2345build=$ac_cv_build
a8b2ad8d 2346ac_save_IFS=$IFS; IFS='-'
2347set x $ac_cv_build
2348shift
2349build_cpu=$1
2350build_vendor=$2
2351shift; shift
2352# Remember, the first character of IFS is used to create $*,
2353# except with old shells:
2354build_os=$*
2355IFS=$ac_save_IFS
2356case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2357
2358
db946ede 2359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2360$as_echo_n "checking host system type... " >&6; }
2361if test "${ac_cv_host+set}" = set; then :
2362 $as_echo_n "(cached) " >&6
b3076f16 2363else
a8b2ad8d 2364 if test "x$host_alias" = x; then
2365 ac_cv_host=$ac_cv_build
2366else
2367 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
db946ede 2368 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
a8b2ad8d 2369fi
b3076f16 2370
2371fi
db946ede 2372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2373$as_echo "$ac_cv_host" >&6; }
a8b2ad8d 2374case $ac_cv_host in
2375*-*-*) ;;
db946ede 2376*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
a8b2ad8d 2377esac
b3076f16 2378host=$ac_cv_host
a8b2ad8d 2379ac_save_IFS=$IFS; IFS='-'
2380set x $ac_cv_host
2381shift
2382host_cpu=$1
2383host_vendor=$2
2384shift; shift
2385# Remember, the first character of IFS is used to create $*,
2386# except with old shells:
2387host_os=$*
2388IFS=$ac_save_IFS
2389case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2390
2391
db946ede 2392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2393$as_echo_n "checking target system type... " >&6; }
2394if test "${ac_cv_target+set}" = set; then :
2395 $as_echo_n "(cached) " >&6
b3076f16 2396else
a8b2ad8d 2397 if test "x$target_alias" = x; then
2398 ac_cv_target=$ac_cv_host
2399else
2400 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
db946ede 2401 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
a8b2ad8d 2402fi
b3076f16 2403
2404fi
db946ede 2405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2406$as_echo "$ac_cv_target" >&6; }
a8b2ad8d 2407case $ac_cv_target in
2408*-*-*) ;;
db946ede 2409*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
a8b2ad8d 2410esac
b3076f16 2411target=$ac_cv_target
a8b2ad8d 2412ac_save_IFS=$IFS; IFS='-'
2413set x $ac_cv_target
2414shift
2415target_cpu=$1
2416target_vendor=$2
2417shift; shift
2418# Remember, the first character of IFS is used to create $*,
2419# except with old shells:
2420target_os=$*
2421IFS=$ac_save_IFS
2422case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
b3076f16 2423
2424
2425# The aliases save the names the user supplied, while $host etc.
2426# will get canonicalized.
2427test -n "$target_alias" &&
2428 test "$program_prefix$program_suffix$program_transform_name" = \
2429 NONENONEs,x,x, &&
2430 program_prefix=${target_alias}-
db946ede 2431am__api_version='1.11'
2f65da8f 2432
b3076f16 2433# Find a good install program. We prefer a C program (faster),
2434# so one script is as good as another. But avoid the broken or
2435# incompatible versions:
2436# SysV /etc/install, /usr/sbin/install
2437# SunOS /usr/etc/install
2438# IRIX /sbin/install
2439# AIX /bin/install
2440# AmigaOS /C/install, which installs bootblocks on floppy discs
2441# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2442# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2443# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2444# OS/2's system install, which has a completely different semantic
2445# ./install, which can be erroneously created by make from ./install.sh.
db946ede 2446# Reject install programs that cannot install multiple files.
2447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2448$as_echo_n "checking for a BSD-compatible install... " >&6; }
b3076f16 2449if test -z "$INSTALL"; then
db946ede 2450if test "${ac_cv_path_install+set}" = set; then :
2451 $as_echo_n "(cached) " >&6
b3076f16 2452else
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454for as_dir in $PATH
2455do
2456 IFS=$as_save_IFS
2457 test -z "$as_dir" && as_dir=.
db946ede 2458 # Account for people who put trailing slashes in PATH elements.
2459case $as_dir/ in #((
2460 ./ | .// | /[cC]/* | \
b3076f16 2461 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
db946ede 2462 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
b3076f16 2463 /usr/ucb/* ) ;;
2464 *)
2465 # OSF1 and SCO ODT 3.0 have their own names for install.
2466 # Don't use installbsd from OSF since it installs stuff as root
2467 # by default.
2468 for ac_prog in ginstall scoinst install; do
2469 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 2470 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
b3076f16 2471 if test $ac_prog = install &&
2472 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2473 # AIX install. It has an incompatible calling convention.
2474 :
2475 elif test $ac_prog = install &&
2476 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2477 # program-specific install script used by HP pwplus--don't use.
2478 :
2479 else
db946ede 2480 rm -rf conftest.one conftest.two conftest.dir
2481 echo one > conftest.one
2482 echo two > conftest.two
2483 mkdir conftest.dir
2484 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2485 test -s conftest.one && test -s conftest.two &&
2486 test -s conftest.dir/conftest.one &&
2487 test -s conftest.dir/conftest.two
2488 then
2489 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2490 break 3
2491 fi
b3076f16 2492 fi
2493 fi
2494 done
2495 done
2496 ;;
2497esac
db946ede 2498
2499 done
a8b2ad8d 2500IFS=$as_save_IFS
b3076f16 2501
db946ede 2502rm -rf conftest.one conftest.two conftest.dir
b3076f16 2503
2504fi
2505 if test "${ac_cv_path_install+set}" = set; then
2506 INSTALL=$ac_cv_path_install
2507 else
a8b2ad8d 2508 # As a last resort, use the slow shell script. Don't cache a
2509 # value for INSTALL within a source directory, because that will
b3076f16 2510 # break other packages using the cache if that directory is
a8b2ad8d 2511 # removed, or if the value is a relative name.
b3076f16 2512 INSTALL=$ac_install_sh
2513 fi
2514fi
db946ede 2515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2516$as_echo "$INSTALL" >&6; }
b3076f16 2517
2518# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2519# It thinks the first close brace ends the variable substitution.
2520test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2521
2522test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2523
2524test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2525
db946ede 2526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2527$as_echo_n "checking whether build environment is sane... " >&6; }
b3076f16 2528# Just in case
2529sleep 1
ec1a68c8 2530echo timestamp > conftest.file
db946ede 2531# Reject unsafe characters in $srcdir or the absolute working directory
2532# name. Accept space and tab only in the latter.
2533am_lf='
2534'
2535case `pwd` in
2536 *[\\\"\#\$\&\'\`$am_lf]*)
2537 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2538esac
2539case $srcdir in
2540 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2541 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2542esac
2543
b3076f16 2544# Do `set' in a subshell so we don't clobber the current shell's
2545# arguments. Must try -L first in case configure is actually a
2546# symlink; some systems play weird games with the mod time of symlinks
2547# (eg FreeBSD returns the mod time of the symlink's containing
2548# directory).
2549if (
db946ede 2550 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
b3076f16 2551 if test "$*" = "X"; then
2552 # -L didn't work.
db946ede 2553 set X `ls -t "$srcdir/configure" conftest.file`
b3076f16 2554 fi
ec1a68c8 2555 rm -f conftest.file
2556 if test "$*" != "X $srcdir/configure conftest.file" \
2557 && test "$*" != "X conftest.file $srcdir/configure"; then
b3076f16 2558
2559 # If neither matched, then we have a broken ls. This can happen
2560 # if, for instance, CONFIG_SHELL is bash and it inherits a
2561 # broken ls alias from the environment. This has actually
2562 # happened. Such a system could not be considered "sane".
db946ede 2563 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2564alias in your environment" "$LINENO" 5
b3076f16 2565 fi
2566
ec1a68c8 2567 test "$2" = conftest.file
b3076f16 2568 )
2569then
2570 # Ok.
2571 :
2572else
db946ede 2573 as_fn_error "newly created file is older than distributed files!
2574Check your system clock" "$LINENO" 5
b3076f16 2575fi
db946ede 2576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2577$as_echo "yes" >&6; }
b3076f16 2578test "$program_prefix" != NONE &&
a8b2ad8d 2579 program_transform_name="s&^&$program_prefix&;$program_transform_name"
b3076f16 2580# Use a double $ so make ignores it.
2581test "$program_suffix" != NONE &&
a8b2ad8d 2582 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
db946ede 2583# Double any \ or $.
b3076f16 2584# By default was `s,x,x', remove it if useless.
db946ede 2585ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2586program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
b3076f16 2587
ec1a68c8 2588# expand $ac_aux_dir to an absolute path
2589am_aux_dir=`cd $ac_aux_dir && pwd`
2590
db946ede 2591if test x"${MISSING+set}" != xset; then
2592 case $am_aux_dir in
2593 *\ * | *\ *)
2594 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2595 *)
2596 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2597 esac
2598fi
ec1a68c8 2599# Use eval to expand $SHELL
2600if eval "$MISSING --run true"; then
2601 am_missing_run="$MISSING --run "
2602else
2603 am_missing_run=
db946ede 2604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2605$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
ec1a68c8 2606fi
2607
db946ede 2608if test x"${install_sh}" != xset; then
2609 case $am_aux_dir in
2610 *\ * | *\ *)
2611 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2612 *)
2613 install_sh="\${SHELL} $am_aux_dir/install-sh"
2614 esac
2615fi
2616
2617# Installed binaries are usually stripped using `strip' when the user
2618# run `make install-strip'. However `strip' might not be the right
2619# tool to use in cross-compilation environments, therefore Automake
2620# will honor the `STRIP' environment variable to overrule this program.
2621if test "$cross_compiling" != no; then
2622 if test -n "$ac_tool_prefix"; then
2623 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2624set dummy ${ac_tool_prefix}strip; ac_word=$2
2625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2626$as_echo_n "checking for $ac_word... " >&6; }
2627if test "${ac_cv_prog_STRIP+set}" = set; then :
2628 $as_echo_n "(cached) " >&6
2f65da8f 2629else
db946ede 2630 if test -n "$STRIP"; then
2631 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2632else
2633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634for as_dir in $PATH
2635do
2636 IFS=$as_save_IFS
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2642 break 2
2643 fi
2644done
2645 done
2646IFS=$as_save_IFS
2647
2648fi
2649fi
2650STRIP=$ac_cv_prog_STRIP
2651if test -n "$STRIP"; then
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2653$as_echo "$STRIP" >&6; }
2654else
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656$as_echo "no" >&6; }
2657fi
2658
2659
2660fi
2661if test -z "$ac_cv_prog_STRIP"; then
2662 ac_ct_STRIP=$STRIP
2663 # Extract the first word of "strip", so it can be a program name with args.
2664set dummy strip; ac_word=$2
2665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2666$as_echo_n "checking for $ac_word... " >&6; }
2667if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2668 $as_echo_n "(cached) " >&6
2669else
2670 if test -n "$ac_ct_STRIP"; then
2671 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2672else
2673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674for as_dir in $PATH
2675do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2680 ac_cv_prog_ac_ct_STRIP="strip"
2681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 break 2
2683 fi
2684done
2685 done
2686IFS=$as_save_IFS
2687
2688fi
2689fi
2690ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2691if test -n "$ac_ct_STRIP"; then
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2693$as_echo "$ac_ct_STRIP" >&6; }
2694else
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2696$as_echo "no" >&6; }
2697fi
2698
2699 if test "x$ac_ct_STRIP" = x; then
2700 STRIP=":"
2701 else
2702 case $cross_compiling:$ac_tool_warned in
2703yes:)
2704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2706ac_tool_warned=yes ;;
2707esac
2708 STRIP=$ac_ct_STRIP
2709 fi
2710else
2711 STRIP="$ac_cv_prog_STRIP"
2712fi
2713
2714fi
2715INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2716
2717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2718$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2719if test -z "$MKDIR_P"; then
2720 if test "${ac_cv_path_mkdir+set}" = set; then :
2721 $as_echo_n "(cached) " >&6
2722else
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2725do
2f65da8f 2726 IFS=$as_save_IFS
2727 test -z "$as_dir" && as_dir=.
db946ede 2728 for ac_prog in mkdir gmkdir; do
2f65da8f 2729 for ac_exec_ext in '' $ac_executable_extensions; do
2730 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2731 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2732 'mkdir (GNU coreutils) '* | \
2733 'mkdir (coreutils) '* | \
2734 'mkdir (fileutils) '4.1*)
2735 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2736 break 3;;
2737 esac
2738 done
2739 done
db946ede 2740 done
2f65da8f 2741IFS=$as_save_IFS
2742
2743fi
2744
2745 if test "${ac_cv_path_mkdir+set}" = set; then
2746 MKDIR_P="$ac_cv_path_mkdir -p"
ec1a68c8 2747 else
2f65da8f 2748 # As a last resort, use the slow shell script. Don't cache a
2749 # value for MKDIR_P within a source directory, because that will
2750 # break other packages using the cache if that directory is
2751 # removed, or if the value is a relative name.
2752 test -d ./--version && rmdir ./--version
2753 MKDIR_P="$ac_install_sh -d"
ec1a68c8 2754 fi
2755fi
db946ede 2756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2757$as_echo "$MKDIR_P" >&6; }
2f65da8f 2758
2759mkdir_p="$MKDIR_P"
2760case $mkdir_p in
2761 [\\/$]* | ?:[\\/]*) ;;
2762 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2763esac
ec1a68c8 2764
2765for ac_prog in gawk mawk nawk awk
2766do
2767 # Extract the first word of "$ac_prog", so it can be a program name with args.
2768set dummy $ac_prog; ac_word=$2
db946ede 2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770$as_echo_n "checking for $ac_word... " >&6; }
2771if test "${ac_cv_prog_AWK+set}" = set; then :
2772 $as_echo_n "(cached) " >&6
ec1a68c8 2773else
2774 if test -n "$AWK"; then
2775 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2776else
2777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778for as_dir in $PATH
2779do
2780 IFS=$as_save_IFS
2781 test -z "$as_dir" && as_dir=.
db946ede 2782 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 2783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ec1a68c8 2784 ac_cv_prog_AWK="$ac_prog"
db946ede 2785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ec1a68c8 2786 break 2
2787 fi
2788done
db946ede 2789 done
a8b2ad8d 2790IFS=$as_save_IFS
ec1a68c8 2791
2792fi
2793fi
2794AWK=$ac_cv_prog_AWK
2795if test -n "$AWK"; then
db946ede 2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2797$as_echo "$AWK" >&6; }
ec1a68c8 2798else
db946ede 2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800$as_echo "no" >&6; }
ec1a68c8 2801fi
2802
a8b2ad8d 2803
ec1a68c8 2804 test -n "$AWK" && break
2805done
2806
db946ede 2807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2808$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2809set x ${MAKE-make}
2810ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2811if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2812 $as_echo_n "(cached) " >&6
b3076f16 2813else
2814 cat >conftest.make <<\_ACEOF
a8b2ad8d 2815SHELL = /bin/sh
b3076f16 2816all:
a8b2ad8d 2817 @echo '@@@%%%=$(MAKE)=@@@%%%'
b3076f16 2818_ACEOF
2819# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a8b2ad8d 2820case `${MAKE-make} -f conftest.make 2>/dev/null` in
2821 *@@@%%%=?*=@@@%%%*)
2822 eval ac_cv_prog_make_${ac_make}_set=yes;;
2823 *)
2824 eval ac_cv_prog_make_${ac_make}_set=no;;
2825esac
b3076f16 2826rm -f conftest.make
2827fi
a8b2ad8d 2828if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
db946ede 2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2830$as_echo "yes" >&6; }
b3076f16 2831 SET_MAKE=
2832else
db946ede 2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834$as_echo "no" >&6; }
b3076f16 2835 SET_MAKE="MAKE=${MAKE-make}"
2836fi
2837
ec1a68c8 2838rm -rf .tst 2>/dev/null
2839mkdir .tst 2>/dev/null
2840if test -d .tst; then
2841 am__leading_dot=.
2842else
2843 am__leading_dot=_
2844fi
2845rmdir .tst 2>/dev/null
b3076f16 2846
2f65da8f 2847if test "`cd $srcdir && pwd`" != "`pwd`"; then
2848 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2849 # is not polluted with repeated "-I."
2850 am__isrc=' -I$(srcdir)'
2851 # test to see if srcdir already configured
2852 if test -f $srcdir/config.status; then
db946ede 2853 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2f65da8f 2854 fi
b3076f16 2855fi
2856
ec1a68c8 2857# test whether we have cygpath
2858if test -z "$CYGPATH_W"; then
2859 if (cygpath --version) >/dev/null 2>/dev/null; then
2860 CYGPATH_W='cygpath -w'
2861 else
2862 CYGPATH_W=echo
2863 fi
2864fi
2865
2866
2867# Define the identity of the package.
ceafd592 2868 PACKAGE='x3'
db946ede 2869 VERSION='1.8'
ec1a68c8 2870
2871
b3076f16 2872cat >>confdefs.h <<_ACEOF
2873#define PACKAGE "$PACKAGE"
2874_ACEOF
2875
2876
2877cat >>confdefs.h <<_ACEOF
2878#define VERSION "$VERSION"
2879_ACEOF
2880
ec1a68c8 2881# Some tools Automake needs.
b3076f16 2882
ec1a68c8 2883ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
b3076f16 2884
ec1a68c8 2885
2886AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2887
2888
2889AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2890
2891
2892AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2893
2894
2895MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2896
ec1a68c8 2897# We need awk for the "check" target. The system "awk" is bad on
2898# some platforms.
2899# Always define AMTAR for backward compatibility.
2900
2901AMTAR=${AMTAR-"${am_missing_run}tar"}
2902
2903am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2904
2905
2906
2907
b3076f16 2908
db946ede 2909
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2911$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
a8b2ad8d 2912 # Check whether --enable-maintainer-mode was given.
db946ede 2913if test "${enable_maintainer_mode+set}" = set; then :
a8b2ad8d 2914 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
b3076f16 2915else
2916 USE_MAINTAINER_MODE=no
a8b2ad8d 2917fi
2918
db946ede 2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2920$as_echo "$USE_MAINTAINER_MODE" >&6; }
2f65da8f 2921 if test $USE_MAINTAINER_MODE = yes; then
b3076f16 2922 MAINTAINER_MODE_TRUE=
2923 MAINTAINER_MODE_FALSE='#'
2924else
2925 MAINTAINER_MODE_TRUE='#'
2926 MAINTAINER_MODE_FALSE=
2927fi
ec1a68c8 2928
b3076f16 2929 MAINT=$MAINTAINER_MODE_TRUE
2930
2931
2932
ec1a68c8 2933DEPDIR="${am__leading_dot}deps"
2934
a8b2ad8d 2935ac_config_commands="$ac_config_commands depfiles"
ec1a68c8 2936
2937
2938am_make=${MAKE-make}
2939cat > confinc << 'END'
2940am__doit:
db946ede 2941 @echo this is the am__doit target
ec1a68c8 2942.PHONY: am__doit
2943END
2944# If we don't find an include directive, just comment out the code.
db946ede 2945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2946$as_echo_n "checking for style of include used by $am_make... " >&6; }
ec1a68c8 2947am__include="#"
2948am__quote=
2949_am_result=none
2950# First try GNU make style include.
2951echo "include confinc" > confmf
db946ede 2952# Ignore all kinds of additional output from `make'.
2953case `$am_make -s -f confmf 2> /dev/null` in #(
2954*the\ am__doit\ target*)
2955 am__include=include
2956 am__quote=
2957 _am_result=GNU
2958 ;;
2959esac
ec1a68c8 2960# Now try BSD make style include.
2961if test "$am__include" = "#"; then
2962 echo '.include "confinc"' > confmf
db946ede 2963 case `$am_make -s -f confmf 2> /dev/null` in #(
2964 *the\ am__doit\ target*)
2965 am__include=.include
2966 am__quote="\""
2967 _am_result=BSD
2968 ;;
2969 esac
ec1a68c8 2970fi
2971
2972
db946ede 2973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2974$as_echo "$_am_result" >&6; }
ec1a68c8 2975rm -f confinc confmf
2976
a8b2ad8d 2977# Check whether --enable-dependency-tracking was given.
db946ede 2978if test "${enable_dependency_tracking+set}" = set; then :
a8b2ad8d 2979 enableval=$enable_dependency_tracking;
2980fi
ec1a68c8 2981
ec1a68c8 2982if test "x$enable_dependency_tracking" != xno; then
2983 am_depcomp="$ac_aux_dir/depcomp"
2984 AMDEPBACKSLASH='\'
2985fi
2f65da8f 2986 if test "x$enable_dependency_tracking" != xno; then
ec1a68c8 2987 AMDEP_TRUE=
2988 AMDEP_FALSE='#'
2989else
2990 AMDEP_TRUE='#'
2991 AMDEP_FALSE=
2992fi
2993
2994
b3076f16 2995ac_ext=c
2996ac_cpp='$CPP $CPPFLAGS'
2997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2999ac_compiler_gnu=$ac_cv_c_compiler_gnu
3000if test -n "$ac_tool_prefix"; then
3001 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3002set dummy ${ac_tool_prefix}gcc; ac_word=$2
db946ede 3003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004$as_echo_n "checking for $ac_word... " >&6; }
3005if test "${ac_cv_prog_CC+set}" = set; then :
3006 $as_echo_n "(cached) " >&6
b3076f16 3007else
3008 if test -n "$CC"; then
3009 ac_cv_prog_CC="$CC" # Let the user override the test.
3010else
3011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012for as_dir in $PATH
3013do
3014 IFS=$as_save_IFS
3015 test -z "$as_dir" && as_dir=.
db946ede 3016 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 3017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3018 ac_cv_prog_CC="${ac_tool_prefix}gcc"
db946ede 3019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b3076f16 3020 break 2
3021 fi
3022done
db946ede 3023 done
a8b2ad8d 3024IFS=$as_save_IFS
b3076f16 3025
3026fi
3027fi
3028CC=$ac_cv_prog_CC
3029if test -n "$CC"; then
db946ede 3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3031$as_echo "$CC" >&6; }
b3076f16 3032else
db946ede 3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034$as_echo "no" >&6; }
b3076f16 3035fi
3036
a8b2ad8d 3037
b3076f16 3038fi
3039if test -z "$ac_cv_prog_CC"; then
3040 ac_ct_CC=$CC
3041 # Extract the first word of "gcc", so it can be a program name with args.
3042set dummy gcc; ac_word=$2
db946ede 3043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044$as_echo_n "checking for $ac_word... " >&6; }
3045if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3046 $as_echo_n "(cached) " >&6
b3076f16 3047else
3048 if test -n "$ac_ct_CC"; then
3049 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3050else
3051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052for as_dir in $PATH
3053do
3054 IFS=$as_save_IFS
3055 test -z "$as_dir" && as_dir=.
db946ede 3056 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 3057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3058 ac_cv_prog_ac_ct_CC="gcc"
db946ede 3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b3076f16 3060 break 2
3061 fi
3062done
db946ede 3063 done
a8b2ad8d 3064IFS=$as_save_IFS
b3076f16 3065
3066fi
3067fi
3068ac_ct_CC=$ac_cv_prog_ac_ct_CC
3069if test -n "$ac_ct_CC"; then
db946ede 3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3071$as_echo "$ac_ct_CC" >&6; }
b3076f16 3072else
db946ede 3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074$as_echo "no" >&6; }
b3076f16 3075fi
3076
a8b2ad8d 3077 if test "x$ac_ct_CC" = x; then
3078 CC=""
3079 else
3080 case $cross_compiling:$ac_tool_warned in
3081yes:)
db946ede 3082{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
a8b2ad8d 3084ac_tool_warned=yes ;;
3085esac
3086 CC=$ac_ct_CC
3087 fi
b3076f16 3088else
3089 CC="$ac_cv_prog_CC"
3090fi
3091
3092if test -z "$CC"; then
a8b2ad8d 3093 if test -n "$ac_tool_prefix"; then
3094 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b3076f16 3095set dummy ${ac_tool_prefix}cc; ac_word=$2
db946ede 3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097$as_echo_n "checking for $ac_word... " >&6; }
3098if test "${ac_cv_prog_CC+set}" = set; then :
3099 $as_echo_n "(cached) " >&6
b3076f16 3100else
3101 if test -n "$CC"; then
3102 ac_cv_prog_CC="$CC" # Let the user override the test.
3103else
3104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105for as_dir in $PATH
3106do
3107 IFS=$as_save_IFS
3108 test -z "$as_dir" && as_dir=.
db946ede 3109 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 3110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3111 ac_cv_prog_CC="${ac_tool_prefix}cc"
db946ede 3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b3076f16 3113 break 2
3114 fi
3115done
db946ede 3116 done
a8b2ad8d 3117IFS=$as_save_IFS
b3076f16 3118
3119fi
3120fi
3121CC=$ac_cv_prog_CC
3122if test -n "$CC"; then
db946ede 3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3124$as_echo "$CC" >&6; }
b3076f16 3125else
db946ede 3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127$as_echo "no" >&6; }
b3076f16 3128fi
3129
b3076f16 3130
a8b2ad8d 3131 fi
b3076f16 3132fi
3133if test -z "$CC"; then
3134 # Extract the first word of "cc", so it can be a program name with args.
3135set dummy cc; ac_word=$2
db946ede 3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137$as_echo_n "checking for $ac_word... " >&6; }
3138if test "${ac_cv_prog_CC+set}" = set; then :
3139 $as_echo_n "(cached) " >&6
b3076f16 3140else
3141 if test -n "$CC"; then
3142 ac_cv_prog_CC="$CC" # Let the user override the test.
3143else
3144 ac_prog_rejected=no
3145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146for as_dir in $PATH
3147do
3148 IFS=$as_save_IFS
3149 test -z "$as_dir" && as_dir=.
db946ede 3150 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 3151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3152 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3153 ac_prog_rejected=yes
3154 continue
3155 fi
3156 ac_cv_prog_CC="cc"
db946ede 3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b3076f16 3158 break 2
3159 fi
3160done
db946ede 3161 done
a8b2ad8d 3162IFS=$as_save_IFS
b3076f16 3163
3164if test $ac_prog_rejected = yes; then
3165 # We found a bogon in the path, so make sure we never use it.
3166 set dummy $ac_cv_prog_CC
3167 shift
3168 if test $# != 0; then
3169 # We chose a different compiler from the bogus one.
3170 # However, it has the same basename, so the bogon will be chosen
3171 # first if we set CC to just the basename; use the full file name.
3172 shift
3173 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3174 fi
3175fi
3176fi
3177fi
3178CC=$ac_cv_prog_CC
3179if test -n "$CC"; then
db946ede 3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3181$as_echo "$CC" >&6; }
b3076f16 3182else
db946ede 3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184$as_echo "no" >&6; }
b3076f16 3185fi
3186
a8b2ad8d 3187
b3076f16 3188fi
3189if test -z "$CC"; then
3190 if test -n "$ac_tool_prefix"; then
a8b2ad8d 3191 for ac_prog in cl.exe
b3076f16 3192 do
3193 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3194set dummy $ac_tool_prefix$ac_prog; ac_word=$2
db946ede 3195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3196$as_echo_n "checking for $ac_word... " >&6; }
3197if test "${ac_cv_prog_CC+set}" = set; then :
3198 $as_echo_n "(cached) " >&6
b3076f16 3199else
3200 if test -n "$CC"; then
3201 ac_cv_prog_CC="$CC" # Let the user override the test.
3202else
3203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204for as_dir in $PATH
3205do
3206 IFS=$as_save_IFS
3207 test -z "$as_dir" && as_dir=.
db946ede 3208 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 3209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3210 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
db946ede 3211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b3076f16 3212 break 2
3213 fi
3214done
db946ede 3215 done
a8b2ad8d 3216IFS=$as_save_IFS
b3076f16 3217
3218fi
3219fi
3220CC=$ac_cv_prog_CC
3221if test -n "$CC"; then
db946ede 3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3223$as_echo "$CC" >&6; }
b3076f16 3224else
db946ede 3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226$as_echo "no" >&6; }
b3076f16 3227fi
3228
a8b2ad8d 3229
b3076f16 3230 test -n "$CC" && break
3231 done
3232fi
3233if test -z "$CC"; then
3234 ac_ct_CC=$CC
a8b2ad8d 3235 for ac_prog in cl.exe
b3076f16 3236do
3237 # Extract the first word of "$ac_prog", so it can be a program name with args.
3238set dummy $ac_prog; ac_word=$2
db946ede 3239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240$as_echo_n "checking for $ac_word... " >&6; }
3241if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3242 $as_echo_n "(cached) " >&6
b3076f16 3243else
3244 if test -n "$ac_ct_CC"; then
3245 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3246else
3247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248for as_dir in $PATH
3249do
3250 IFS=$as_save_IFS
3251 test -z "$as_dir" && as_dir=.
db946ede 3252 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 3253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3254 ac_cv_prog_ac_ct_CC="$ac_prog"
db946ede 3255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b3076f16 3256 break 2
3257 fi
3258done
db946ede 3259 done
a8b2ad8d 3260IFS=$as_save_IFS
b3076f16 3261
3262fi
3263fi
3264ac_ct_CC=$ac_cv_prog_ac_ct_CC
3265if test -n "$ac_ct_CC"; then
db946ede 3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3267$as_echo "$ac_ct_CC" >&6; }
b3076f16 3268else
db946ede 3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270$as_echo "no" >&6; }
b3076f16 3271fi
3272
a8b2ad8d 3273
b3076f16 3274 test -n "$ac_ct_CC" && break
3275done
3276
a8b2ad8d 3277 if test "x$ac_ct_CC" = x; then
3278 CC=""
3279 else
3280 case $cross_compiling:$ac_tool_warned in
3281yes:)
db946ede 3282{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3283$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
a8b2ad8d 3284ac_tool_warned=yes ;;
3285esac
3286 CC=$ac_ct_CC
3287 fi
b3076f16 3288fi
3289
3290fi
3291
3292
db946ede 3293test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295as_fn_error "no acceptable C compiler found in \$PATH
3296See \`config.log' for more details." "$LINENO" 5; }
b3076f16 3297
3298# Provide some information about the compiler.
db946ede 3299$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3300set X $ac_compile
3301ac_compiler=$2
3302for ac_option in --version -v -V -qversion; do
3303 { { ac_try="$ac_compiler $ac_option >&5"
a8b2ad8d 3304case "(($ac_try" in
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3307esac
db946ede 3308eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3309$as_echo "$ac_try_echo"; } >&5
3310 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b3076f16 3311 ac_status=$?
db946ede 3312 if test -s conftest.err; then
3313 sed '10a\
3314... rest of stderr output deleted ...
3315 10q' conftest.err >conftest.er1
3316 cat conftest.er1 >&5
3317 rm -f conftest.er1 conftest.err
3318 fi
3319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3320 test $ac_status = 0; }
3321done
b3076f16 3322
db946ede 3323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 3324/* end confdefs.h. */
db946ede 3325#include <stdio.h>
b3076f16 3326int
3327main ()
3328{
db946ede 3329FILE *f = fopen ("conftest.out", "w");
3330 return ferror (f) || fclose (f) != 0;
b3076f16 3331
3332 ;
3333 return 0;
3334}
3335_ACEOF
3336ac_clean_files_save=$ac_clean_files
db946ede 3337ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
b3076f16 3338# Try to create an executable without -o first, disregard a.out.
3339# It will help us diagnose broken compilers, and finding out an intuition
3340# of exeext.
db946ede 3341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3342$as_echo_n "checking for C compiler default output file name... " >&6; }
3343ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3344
3345# The possible output files:
3346ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3347
a8b2ad8d 3348ac_rmfiles=
3349for ac_file in $ac_files
3350do
3351 case $ac_file in
db946ede 3352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
a8b2ad8d 3353 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3354 esac
3355done
3356rm -f $ac_rmfiles
3357
db946ede 3358if { { ac_try="$ac_link_default"
a8b2ad8d 3359case "(($ac_try" in
3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361 *) ac_try_echo=$ac_try;;
3362esac
db946ede 3363eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3364$as_echo "$ac_try_echo"; } >&5
a8b2ad8d 3365 (eval "$ac_link_default") 2>&5
b3076f16 3366 ac_status=$?
db946ede 3367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3368 test $ac_status = 0; }; then :
a8b2ad8d 3369 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3370# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3371# in a Makefile. We should not override ac_cv_exeext if it was cached,
3372# so that the user can short-circuit this test for compilers unknown to
3373# Autoconf.
0bd0bef6 3374for ac_file in $ac_files ''
b3076f16 3375do
3376 test -f "$ac_file" || continue
3377 case $ac_file in
db946ede 3378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b3076f16 3379 ;;
3380 [ab].out )
3381 # We found the default executable, but exeext='' is most
3382 # certainly right.
3383 break;;
3384 *.* )
db946ede 3385 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
a8b2ad8d 3386 then :; else
3387 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3388 fi
3389 # We set ac_cv_exeext here because the later test for it is not
3390 # safe: cross compilers may not add the suffix if given an `-o'
3391 # argument, so we may need to know it at that point already.
3392 # Even if this section looks crufty: it has the advantage of
3393 # actually working.
b3076f16 3394 break;;
3395 * )
3396 break;;
3397 esac
3398done
a8b2ad8d 3399test "$ac_cv_exeext" = no && ac_cv_exeext=
3400
b3076f16 3401else
0bd0bef6 3402 ac_file=''
3403fi
db946ede 3404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3405$as_echo "$ac_file" >&6; }
3406if test -z "$ac_file"; then :
3407 $as_echo "$as_me: failed program was:" >&5
b3076f16 3408sed 's/^/| /' conftest.$ac_ext >&5
3409
db946ede 3410{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3412{ as_fn_set_status 77
3413as_fn_error "C compiler cannot create executables
3414See \`config.log' for more details." "$LINENO" 5; }; }
b3076f16 3415fi
b3076f16 3416ac_exeext=$ac_cv_exeext
b3076f16 3417
a8b2ad8d 3418# Check that the compiler produces executables we can run. If not, either
b3076f16 3419# the compiler is broken, or we cross compile.
db946ede 3420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3421$as_echo_n "checking whether the C compiler works... " >&6; }
b3076f16 3422# If not cross compiling, check that we can run a simple program.
3423if test "$cross_compiling" != yes; then
3424 if { ac_try='./$ac_file'
db946ede 3425 { { case "(($ac_try" in
a8b2ad8d 3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3428esac
db946ede 3429eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3430$as_echo "$ac_try_echo"; } >&5
a8b2ad8d 3431 (eval "$ac_try") 2>&5
b3076f16 3432 ac_status=$?
db946ede 3433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3434 test $ac_status = 0; }; }; then
b3076f16 3435 cross_compiling=no
3436 else
3437 if test "$cross_compiling" = maybe; then
3438 cross_compiling=yes
3439 else
db946ede 3440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442as_fn_error "cannot run C compiled programs.
b3076f16 3443If you meant to cross compile, use \`--host'.
db946ede 3444See \`config.log' for more details." "$LINENO" 5; }
b3076f16 3445 fi
3446 fi
3447fi
db946ede 3448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3449$as_echo "yes" >&6; }
b3076f16 3450
db946ede 3451rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
b3076f16 3452ac_clean_files=$ac_clean_files_save
a8b2ad8d 3453# Check that the compiler produces executables we can run. If not, either
b3076f16 3454# the compiler is broken, or we cross compile.
db946ede 3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3456$as_echo_n "checking whether we are cross compiling... " >&6; }
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3458$as_echo "$cross_compiling" >&6; }
3459
3460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3461$as_echo_n "checking for suffix of executables... " >&6; }
3462if { { ac_try="$ac_link"
a8b2ad8d 3463case "(($ac_try" in
3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465 *) ac_try_echo=$ac_try;;
3466esac
db946ede 3467eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3468$as_echo "$ac_try_echo"; } >&5
a8b2ad8d 3469 (eval "$ac_link") 2>&5
b3076f16 3470 ac_status=$?
db946ede 3471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3472 test $ac_status = 0; }; then :
b3076f16 3473 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3474# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3475# work properly (i.e., refer to `conftest.exe'), while it won't with
3476# `rm'.
3477for ac_file in conftest.exe conftest conftest.*; do
3478 test -f "$ac_file" || continue
3479 case $ac_file in
db946ede 3480 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b3076f16 3481 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b3076f16 3482 break;;
3483 * ) break;;
3484 esac
3485done
3486else
db946ede 3487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489as_fn_error "cannot compute suffix of executables: cannot compile and link
3490See \`config.log' for more details." "$LINENO" 5; }
b3076f16 3491fi
b3076f16 3492rm -f conftest$ac_cv_exeext
db946ede 3493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3494$as_echo "$ac_cv_exeext" >&6; }
b3076f16 3495
3496rm -f conftest.$ac_ext
3497EXEEXT=$ac_cv_exeext
3498ac_exeext=$EXEEXT
db946ede 3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3500$as_echo_n "checking for suffix of object files... " >&6; }
3501if test "${ac_cv_objext+set}" = set; then :
3502 $as_echo_n "(cached) " >&6
b3076f16 3503else
db946ede 3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 3505/* end confdefs.h. */
3506
3507int
3508main ()
3509{
3510
3511 ;
3512 return 0;
3513}
3514_ACEOF
3515rm -f conftest.o conftest.obj
db946ede 3516if { { ac_try="$ac_compile"
a8b2ad8d 3517case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520esac
db946ede 3521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3522$as_echo "$ac_try_echo"; } >&5
a8b2ad8d 3523 (eval "$ac_compile") 2>&5
b3076f16 3524 ac_status=$?
db946ede 3525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3526 test $ac_status = 0; }; then :
a8b2ad8d 3527 for ac_file in conftest.o conftest.obj conftest.*; do
3528 test -f "$ac_file" || continue;
b3076f16 3529 case $ac_file in
db946ede 3530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b3076f16 3531 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3532 break;;
3533 esac
3534done
3535else
db946ede 3536 $as_echo "$as_me: failed program was:" >&5
b3076f16 3537sed 's/^/| /' conftest.$ac_ext >&5
3538
db946ede 3539{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3541as_fn_error "cannot compute suffix of object files: cannot compile
3542See \`config.log' for more details." "$LINENO" 5; }
b3076f16 3543fi
b3076f16 3544rm -f conftest.$ac_cv_objext conftest.$ac_ext
3545fi
db946ede 3546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3547$as_echo "$ac_cv_objext" >&6; }
b3076f16 3548OBJEXT=$ac_cv_objext
3549ac_objext=$OBJEXT
db946ede 3550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3551$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3552if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3553 $as_echo_n "(cached) " >&6
b3076f16 3554else
db946ede 3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 3556/* end confdefs.h. */
3557
3558int
3559main ()
3560{
3561#ifndef __GNUC__
3562 choke me
3563#endif
3564
3565 ;
3566 return 0;
3567}
3568_ACEOF
db946ede 3569if ac_fn_c_try_compile "$LINENO"; then :
b3076f16 3570 ac_compiler_gnu=yes
3571else
db946ede 3572 ac_compiler_gnu=no
b3076f16 3573fi
a8b2ad8d 3574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3575ac_cv_c_compiler_gnu=$ac_compiler_gnu
3576
3577fi
db946ede 3578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3579$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3580if test $ac_compiler_gnu = yes; then
3581 GCC=yes
3582else
3583 GCC=
3584fi
b3076f16 3585ac_test_CFLAGS=${CFLAGS+set}
3586ac_save_CFLAGS=$CFLAGS
db946ede 3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3588$as_echo_n "checking whether $CC accepts -g... " >&6; }
3589if test "${ac_cv_prog_cc_g+set}" = set; then :
3590 $as_echo_n "(cached) " >&6
b3076f16 3591else
a8b2ad8d 3592 ac_save_c_werror_flag=$ac_c_werror_flag
3593 ac_c_werror_flag=yes
3594 ac_cv_prog_cc_g=no
3595 CFLAGS="-g"
db946ede 3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8b2ad8d 3597/* end confdefs.h. */
3598
3599int
3600main ()
3601{
3602
3603 ;
3604 return 0;
3605}
3606_ACEOF
db946ede 3607if ac_fn_c_try_compile "$LINENO"; then :
a8b2ad8d 3608 ac_cv_prog_cc_g=yes
3609else
db946ede 3610 CFLAGS=""
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8b2ad8d 3612/* end confdefs.h. */
3613
3614int
3615main ()
3616{
3617
3618 ;
3619 return 0;
3620}
3621_ACEOF
db946ede 3622if ac_fn_c_try_compile "$LINENO"; then :
a8b2ad8d 3623
db946ede 3624else
3625 ac_c_werror_flag=$ac_save_c_werror_flag
a8b2ad8d 3626 CFLAGS="-g"
db946ede 3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 3628/* end confdefs.h. */
3629
3630int
3631main ()
3632{
3633
3634 ;
3635 return 0;
3636}
3637_ACEOF
db946ede 3638if ac_fn_c_try_compile "$LINENO"; then :
b3076f16 3639 ac_cv_prog_cc_g=yes
a8b2ad8d 3640fi
a8b2ad8d 3641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3642fi
a8b2ad8d 3643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3644fi
a8b2ad8d 3645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3646 ac_c_werror_flag=$ac_save_c_werror_flag
b3076f16 3647fi
db946ede 3648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3649$as_echo "$ac_cv_prog_cc_g" >&6; }
b3076f16 3650if test "$ac_test_CFLAGS" = set; then
3651 CFLAGS=$ac_save_CFLAGS
3652elif test $ac_cv_prog_cc_g = yes; then
3653 if test "$GCC" = yes; then
3654 CFLAGS="-g -O2"
3655 else
3656 CFLAGS="-g"
3657 fi
3658else
3659 if test "$GCC" = yes; then
3660 CFLAGS="-O2"
3661 else
3662 CFLAGS=
3663 fi
3664fi
db946ede 3665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3666$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3667if test "${ac_cv_prog_cc_c89+set}" = set; then :
3668 $as_echo_n "(cached) " >&6
b3076f16 3669else
a8b2ad8d 3670 ac_cv_prog_cc_c89=no
b3076f16 3671ac_save_CC=$CC
db946ede 3672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 3673/* end confdefs.h. */
3674#include <stdarg.h>
3675#include <stdio.h>
3676#include <sys/types.h>
3677#include <sys/stat.h>
3678/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3679struct buf { int x; };
3680FILE * (*rcsopen) (struct buf *, struct stat *, int);
3681static char *e (p, i)
3682 char **p;
3683 int i;
3684{
3685 return p[i];
3686}
3687static char *f (char * (*g) (char **, int), char **p, ...)
3688{
3689 char *s;
3690 va_list v;
3691 va_start (v,p);
3692 s = g (p, va_arg (v,int));
3693 va_end (v);
3694 return s;
3695}
3696
3697/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3698 function prototypes and stuff, but not '\xHH' hex character constants.
3699 These don't provoke an error unfortunately, instead are silently treated
a8b2ad8d 3700 as 'x'. The following induces an error, until -std is added to get
b3076f16 3701 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3702 array size at least. It's necessary to write '\x00'==0 to get something
a8b2ad8d 3703 that's true only with -std. */
b3076f16 3704int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3705
a8b2ad8d 3706/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3707 inside strings and character constants. */
3708#define FOO(x) 'x'
3709int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3710
b3076f16 3711int test (int i, double x);
3712struct s1 {int (*f) (int a);};
3713struct s2 {int (*f) (double a);};
3714int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3715int argc;
3716char **argv;
3717int
3718main ()
3719{
3720return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3721 ;
3722 return 0;
3723}
3724_ACEOF
a8b2ad8d 3725for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3726 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b3076f16 3727do
3728 CC="$ac_save_CC $ac_arg"
db946ede 3729 if ac_fn_c_try_compile "$LINENO"; then :
a8b2ad8d 3730 ac_cv_prog_cc_c89=$ac_arg
b3076f16 3731fi
a8b2ad8d 3732rm -f core conftest.err conftest.$ac_objext
3733 test "x$ac_cv_prog_cc_c89" != "xno" && break
b3076f16 3734done
a8b2ad8d 3735rm -f conftest.$ac_ext
b3076f16 3736CC=$ac_save_CC
3737
3738fi
a8b2ad8d 3739# AC_CACHE_VAL
3740case "x$ac_cv_prog_cc_c89" in
3741 x)
db946ede 3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3743$as_echo "none needed" >&6; } ;;
a8b2ad8d 3744 xno)
db946ede 3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3746$as_echo "unsupported" >&6; } ;;
b3076f16 3747 *)
a8b2ad8d 3748 CC="$CC $ac_cv_prog_cc_c89"
db946ede 3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3750$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b3076f16 3751esac
db946ede 3752if test "x$ac_cv_prog_cc_c89" != xno; then :
b3076f16 3753
db946ede 3754fi
b3076f16 3755
b3076f16 3756ac_ext=c
3757ac_cpp='$CPP $CPPFLAGS'
3758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760ac_compiler_gnu=$ac_cv_c_compiler_gnu
3761
ec1a68c8 3762depcc="$CC" am_compiler_list=
3763
db946ede 3764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3765$as_echo_n "checking dependency style of $depcc... " >&6; }
3766if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3767 $as_echo_n "(cached) " >&6
ec1a68c8 3768else
3769 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3770 # We make a subdir and do the tests there. Otherwise we can end up
3771 # making bogus files that we don't know about and never remove. For
3772 # instance it was reported that on HP-UX the gcc test will end up
3773 # making a dummy file named `D' -- because `-MD' means `put the output
3774 # in D'.
3775 mkdir conftest.dir
3776 # Copy depcomp to subdir because otherwise we won't find it if we're
3777 # using a relative directory.
3778 cp "$am_depcomp" conftest.dir
3779 cd conftest.dir
3780 # We will build objects and dependencies in a subdirectory because
3781 # it helps to detect inapplicable dependency modes. For instance
3782 # both Tru64's cc and ICC support -MD to output dependencies as a
3783 # side effect of compilation, but ICC will put the dependencies in
3784 # the current directory while Tru64 will put them in the object
3785 # directory.
3786 mkdir sub
3787
3788 am_cv_CC_dependencies_compiler_type=none
3789 if test "$am_compiler_list" = ""; then
3790 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3791 fi
db946ede 3792 am__universal=false
3793 case " $depcc " in #(
3794 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3795 esac
3796
ec1a68c8 3797 for depmode in $am_compiler_list; do
3798 # Setup a source with many dependencies, because some compilers
3799 # like to wrap large dependency lists on column 80 (with \), and
3800 # we should not choose a depcomp mode which is confused by this.
3801 #
3802 # We need to recreate these files for each test, as the compiler may
3803 # overwrite some of them when testing with obscure command lines.
3804 # This happens at least with the AIX C compiler.
3805 : > sub/conftest.c
3806 for i in 1 2 3 4 5 6; do
3807 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3808 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3809 # Solaris 8's {/usr,}/bin/sh.
3810 touch sub/conftst$i.h
3811 done
3812 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3813
db946ede 3814 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3815 # mode. It turns out that the SunPro C++ compiler does not properly
3816 # handle `-M -o', and we need to detect this. Also, some Intel
3817 # versions had trouble with output in subdirs
3818 am__obj=sub/conftest.${OBJEXT-o}
3819 am__minus_obj="-o $am__obj"
ec1a68c8 3820 case $depmode in
db946ede 3821 gcc)
3822 # This depmode causes a compiler race in universal mode.
3823 test "$am__universal" = false || continue
3824 ;;
ec1a68c8 3825 nosideeffect)
3826 # after this tag, mechanisms are not by side-effect, so they'll
3827 # only be used when explicitly requested
3828 if test "x$enable_dependency_tracking" = xyes; then
3829 continue
3830 else
3831 break
3832 fi
3833 ;;
db946ede 3834 msvisualcpp | msvcmsys)
3835 # This compiler won't grok `-c -o', but also, the minuso test has
3836 # not run yet. These depmodes are late enough in the game, and
3837 # so weak that their functioning should not be impacted.
3838 am__obj=conftest.${OBJEXT-o}
3839 am__minus_obj=
3840 ;;
ec1a68c8 3841 none) break ;;
3842 esac
ec1a68c8 3843 if depmode=$depmode \
db946ede 3844 source=sub/conftest.c object=$am__obj \
ec1a68c8 3845 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
db946ede 3846 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
ec1a68c8 3847 >/dev/null 2>conftest.err &&
2f65da8f 3848 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
ec1a68c8 3849 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
db946ede 3850 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
ec1a68c8 3851 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3852 # icc doesn't choke on unknown options, it will just issue warnings
3853 # or remarks (even with -Werror). So we grep stderr for any message
3854 # that says an option was ignored or not supported.
3855 # When given -MP, icc 7.0 and 7.1 complain thusly:
3856 # icc: Command line warning: ignoring option '-M'; no argument required
3857 # The diagnosis changed in icc 8.0:
3858 # icc: Command line remark: option '-MP' not supported
3859 if (grep 'ignoring option' conftest.err ||
3860 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3861 am_cv_CC_dependencies_compiler_type=$depmode
3862 break
3863 fi
3864 fi
3865 done
3866
3867 cd ..
3868 rm -rf conftest.dir
3869else
3870 am_cv_CC_dependencies_compiler_type=none
3871fi
3872
3873fi
db946ede 3874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3875$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
ec1a68c8 3876CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3877
2f65da8f 3878 if
ec1a68c8 3879 test "x$enable_dependency_tracking" != xno \
3880 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3881 am__fastdepCC_TRUE=
3882 am__fastdepCC_FALSE='#'
3883else
3884 am__fastdepCC_TRUE='#'
3885 am__fastdepCC_FALSE=
3886fi
3887
3888
b3076f16 3889
db946ede 3890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
3891$as_echo_n "checking return type of signal handlers... " >&6; }
3892if test "${ac_cv_type_signal+set}" = set; then :
3893 $as_echo_n "(cached) " >&6
b3076f16 3894else
db946ede 3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 3896/* end confdefs.h. */
3897#include <sys/types.h>
3898#include <signal.h>
b3076f16 3899
3900int
3901main ()
3902{
a8b2ad8d 3903return *(signal (0, 0)) (0) == 1;
b3076f16 3904 ;
3905 return 0;
3906}
3907_ACEOF
db946ede 3908if ac_fn_c_try_compile "$LINENO"; then :
a8b2ad8d 3909 ac_cv_type_signal=int
b3076f16 3910else
db946ede 3911 ac_cv_type_signal=void
b3076f16 3912fi
a8b2ad8d 3913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3914fi
db946ede 3915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
3916$as_echo "$ac_cv_type_signal" >&6; }
b3076f16 3917
3918cat >>confdefs.h <<_ACEOF
3919#define RETSIGTYPE $ac_cv_type_signal
3920_ACEOF
3921
3922
db946ede 3923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3924$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3925if test "${ac_cv_c_const+set}" = set; then :
3926 $as_echo_n "(cached) " >&6
b3076f16 3927else
db946ede 3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 3929/* end confdefs.h. */
3930
3931int
3932main ()
3933{
3934/* FIXME: Include the comments suggested by Paul. */
3935#ifndef __cplusplus
3936 /* Ultrix mips cc rejects this. */
3937 typedef int charset[2];
0bd0bef6 3938 const charset cs;
b3076f16 3939 /* SunOS 4.1.1 cc rejects this. */
0bd0bef6 3940 char const *const *pcpcc;
3941 char **ppc;
b3076f16 3942 /* NEC SVR4.0.2 mips cc rejects this. */
3943 struct point {int x, y;};
3944 static struct point const zero = {0,0};
3945 /* AIX XL C 1.02.0.0 rejects this.
3946 It does not let you subtract one const X* pointer from another in
3947 an arm of an if-expression whose if-part is not a constant
3948 expression */
3949 const char *g = "string";
0bd0bef6 3950 pcpcc = &g + (g ? g-g : 0);
b3076f16 3951 /* HPUX 7.0 cc rejects these. */
0bd0bef6 3952 ++pcpcc;
3953 ppc = (char**) pcpcc;
3954 pcpcc = (char const *const *) ppc;
b3076f16 3955 { /* SCO 3.2v4 cc rejects this. */
3956 char *t;
3957 char const *s = 0 ? (char *) 0 : (char const *) 0;
3958
3959 *t++ = 0;
a8b2ad8d 3960 if (s) return 0;
b3076f16 3961 }
3962 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3963 int x[] = {25, 17};
3964 const int *foo = &x[0];
3965 ++foo;
3966 }
3967 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3968 typedef const int *iptr;
3969 iptr p = 0;
3970 ++p;
3971 }
3972 { /* AIX XL C 1.02.0.0 rejects this saying
3973 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3974 struct s { int j; const int *ap[3]; };
3975 struct s *b; b->j = 5;
3976 }
3977 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3978 const int foo = 10;
a8b2ad8d 3979 if (!foo) return 0;
b3076f16 3980 }
0bd0bef6 3981 return !cs[0] && !zero.x;
b3076f16 3982#endif
3983
3984 ;
3985 return 0;
3986}
3987_ACEOF
db946ede 3988if ac_fn_c_try_compile "$LINENO"; then :
b3076f16 3989 ac_cv_c_const=yes
3990else
db946ede 3991 ac_cv_c_const=no
b3076f16 3992fi
a8b2ad8d 3993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3994fi
db946ede 3995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
3996$as_echo "$ac_cv_c_const" >&6; }
b3076f16 3997if test $ac_cv_c_const = no; then
3998
db946ede 3999$as_echo "#define const /**/" >>confdefs.h
b3076f16 4000
4001fi
4002
0f6fe38c 4003
4004for ac_prog in gawk mawk nawk awk
4005do
4006 # Extract the first word of "$ac_prog", so it can be a program name with args.
4007set dummy $ac_prog; ac_word=$2
db946ede 4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4009$as_echo_n "checking for $ac_word... " >&6; }
4010if test "${ac_cv_prog_AWK+set}" = set; then :
4011 $as_echo_n "(cached) " >&6
0f6fe38c 4012else
4013 if test -n "$AWK"; then
4014 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4015else
4016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017for as_dir in $PATH
4018do
4019 IFS=$as_save_IFS
4020 test -z "$as_dir" && as_dir=.
db946ede 4021 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 4022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0f6fe38c 4023 ac_cv_prog_AWK="$ac_prog"
db946ede 4024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0f6fe38c 4025 break 2
4026 fi
4027done
db946ede 4028 done
0f6fe38c 4029IFS=$as_save_IFS
4030
4031fi
4032fi
4033AWK=$ac_cv_prog_AWK
4034if test -n "$AWK"; then
db946ede 4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4036$as_echo "$AWK" >&6; }
0f6fe38c 4037else
db946ede 4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4039$as_echo "no" >&6; }
0f6fe38c 4040fi
b3076f16 4041
a8b2ad8d 4042
b3076f16 4043 test -n "$AWK" && break
4044done
4045
4046ac_ext=c
4047ac_cpp='$CPP $CPPFLAGS'
4048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051if test -n "$ac_tool_prefix"; then
4052 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4053set dummy ${ac_tool_prefix}gcc; ac_word=$2
db946ede 4054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4055$as_echo_n "checking for $ac_word... " >&6; }
4056if test "${ac_cv_prog_CC+set}" = set; then :
4057 $as_echo_n "(cached) " >&6
b3076f16 4058else
4059 if test -n "$CC"; then
4060 ac_cv_prog_CC="$CC" # Let the user override the test.
4061else
4062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063for as_dir in $PATH
4064do
4065 IFS=$as_save_IFS
4066 test -z "$as_dir" && as_dir=.
db946ede 4067 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 4068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 4069 ac_cv_prog_CC="${ac_tool_prefix}gcc"
db946ede 4070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b3076f16 4071 break 2
4072 fi
4073done
db946ede 4074 done
a8b2ad8d 4075IFS=$as_save_IFS
b3076f16 4076
4077fi
4078fi
4079CC=$ac_cv_prog_CC
4080if test -n "$CC"; then
db946ede 4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4082$as_echo "$CC" >&6; }
b3076f16 4083else
db946ede 4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4085$as_echo "no" >&6; }
b3076f16 4086fi
4087
a8b2ad8d 4088
b3076f16 4089fi
4090if test -z "$ac_cv_prog_CC"; then
4091 ac_ct_CC=$CC
4092 # Extract the first word of "gcc", so it can be a program name with args.
4093set dummy gcc; ac_word=$2
db946ede 4094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4095$as_echo_n "checking for $ac_word... " >&6; }
4096if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4097 $as_echo_n "(cached) " >&6
b3076f16 4098else
4099 if test -n "$ac_ct_CC"; then
4100 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4101else
4102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103for as_dir in $PATH
4104do
4105 IFS=$as_save_IFS
4106 test -z "$as_dir" && as_dir=.
db946ede 4107 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 4108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 4109 ac_cv_prog_ac_ct_CC="gcc"
db946ede 4110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b3076f16 4111 break 2
4112 fi
4113done
db946ede 4114 done
a8b2ad8d 4115IFS=$as_save_IFS
b3076f16 4116
4117fi
4118fi
4119ac_ct_CC=$ac_cv_prog_ac_ct_CC
4120if test -n "$ac_ct_CC"; then
db946ede 4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4122$as_echo "$ac_ct_CC" >&6; }
b3076f16 4123else
db946ede 4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4125$as_echo "no" >&6; }
b3076f16 4126fi
4127
a8b2ad8d 4128 if test "x$ac_ct_CC" = x; then
4129 CC=""
4130 else
4131 case $cross_compiling:$ac_tool_warned in
4132yes:)
db946ede 4133{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
a8b2ad8d 4135ac_tool_warned=yes ;;
4136esac
4137 CC=$ac_ct_CC
4138 fi
b3076f16 4139else
4140 CC="$ac_cv_prog_CC"
4141fi
4142
4143if test -z "$CC"; then
a8b2ad8d 4144 if test -n "$ac_tool_prefix"; then
4145 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b3076f16 4146set dummy ${ac_tool_prefix}cc; ac_word=$2
db946ede 4147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4148$as_echo_n "checking for $ac_word... " >&6; }
4149if test "${ac_cv_prog_CC+set}" = set; then :
4150 $as_echo_n "(cached) " >&6
b3076f16 4151else
4152 if test -n "$CC"; then
4153 ac_cv_prog_CC="$CC" # Let the user override the test.
4154else
4155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156for as_dir in $PATH
4157do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
db946ede 4160 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 4161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 4162 ac_cv_prog_CC="${ac_tool_prefix}cc"
db946ede 4163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b3076f16 4164 break 2
4165 fi
4166done
db946ede 4167 done
a8b2ad8d 4168IFS=$as_save_IFS
b3076f16 4169
4170fi
4171fi
4172CC=$ac_cv_prog_CC
4173if test -n "$CC"; then
db946ede 4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4175$as_echo "$CC" >&6; }
b3076f16 4176else
db946ede 4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4178$as_echo "no" >&6; }
b3076f16 4179fi
4180
b3076f16 4181
a8b2ad8d 4182 fi
b3076f16 4183fi
4184if test -z "$CC"; then
4185 # Extract the first word of "cc", so it can be a program name with args.
4186set dummy cc; ac_word=$2
db946ede 4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4188$as_echo_n "checking for $ac_word... " >&6; }
4189if test "${ac_cv_prog_CC+set}" = set; then :
4190 $as_echo_n "(cached) " >&6
b3076f16 4191else
4192 if test -n "$CC"; then
4193 ac_cv_prog_CC="$CC" # Let the user override the test.
4194else
4195 ac_prog_rejected=no
4196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197for as_dir in $PATH
4198do
4199 IFS=$as_save_IFS
4200 test -z "$as_dir" && as_dir=.
db946ede 4201 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 4202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 4203 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4204 ac_prog_rejected=yes
4205 continue
4206 fi
4207 ac_cv_prog_CC="cc"
db946ede 4208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b3076f16 4209 break 2
4210 fi
4211done
db946ede 4212 done
a8b2ad8d 4213IFS=$as_save_IFS
b3076f16 4214
4215if test $ac_prog_rejected = yes; then
4216 # We found a bogon in the path, so make sure we never use it.
4217 set dummy $ac_cv_prog_CC
4218 shift
4219 if test $# != 0; then
4220 # We chose a different compiler from the bogus one.
4221 # However, it has the same basename, so the bogon will be chosen
4222 # first if we set CC to just the basename; use the full file name.
4223 shift
4224 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4225 fi
4226fi
4227fi
4228fi
4229CC=$ac_cv_prog_CC
4230if test -n "$CC"; then
db946ede 4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4232$as_echo "$CC" >&6; }
b3076f16 4233else
db946ede 4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235$as_echo "no" >&6; }
b3076f16 4236fi
4237
a8b2ad8d 4238
b3076f16 4239fi
4240if test -z "$CC"; then
4241 if test -n "$ac_tool_prefix"; then
a8b2ad8d 4242 for ac_prog in cl.exe
b3076f16 4243 do
4244 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4245set dummy $ac_tool_prefix$ac_prog; ac_word=$2
db946ede 4246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4247$as_echo_n "checking for $ac_word... " >&6; }
4248if test "${ac_cv_prog_CC+set}" = set; then :
4249 $as_echo_n "(cached) " >&6
b3076f16 4250else
4251 if test -n "$CC"; then
4252 ac_cv_prog_CC="$CC" # Let the user override the test.
4253else
4254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255for as_dir in $PATH
4256do
4257 IFS=$as_save_IFS
4258 test -z "$as_dir" && as_dir=.
db946ede 4259 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 4260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 4261 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
db946ede 4262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b3076f16 4263 break 2
4264 fi
4265done
db946ede 4266 done
a8b2ad8d 4267IFS=$as_save_IFS
b3076f16 4268
4269fi
4270fi
4271CC=$ac_cv_prog_CC
4272if test -n "$CC"; then
db946ede 4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4274$as_echo "$CC" >&6; }
b3076f16 4275else
db946ede 4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4277$as_echo "no" >&6; }
b3076f16 4278fi
4279
a8b2ad8d 4280
b3076f16 4281 test -n "$CC" && break
4282 done
4283fi
4284if test -z "$CC"; then
4285 ac_ct_CC=$CC
a8b2ad8d 4286 for ac_prog in cl.exe
b3076f16 4287do
4288 # Extract the first word of "$ac_prog", so it can be a program name with args.
4289set dummy $ac_prog; ac_word=$2
db946ede 4290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4291$as_echo_n "checking for $ac_word... " >&6; }
4292if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4293 $as_echo_n "(cached) " >&6
b3076f16 4294else
4295 if test -n "$ac_ct_CC"; then
4296 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4297else
4298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299for as_dir in $PATH
4300do
4301 IFS=$as_save_IFS
4302 test -z "$as_dir" && as_dir=.
db946ede 4303 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 4304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 4305 ac_cv_prog_ac_ct_CC="$ac_prog"
db946ede 4306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b3076f16 4307 break 2
4308 fi
4309done
db946ede 4310 done
a8b2ad8d 4311IFS=$as_save_IFS
b3076f16 4312
4313fi
4314fi
4315ac_ct_CC=$ac_cv_prog_ac_ct_CC
4316if test -n "$ac_ct_CC"; then
db946ede 4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4318$as_echo "$ac_ct_CC" >&6; }
b3076f16 4319else
db946ede 4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321$as_echo "no" >&6; }
b3076f16 4322fi
4323
a8b2ad8d 4324
b3076f16 4325 test -n "$ac_ct_CC" && break
4326done
4327
a8b2ad8d 4328 if test "x$ac_ct_CC" = x; then
4329 CC=""
4330 else
4331 case $cross_compiling:$ac_tool_warned in
4332yes:)
db946ede 4333{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4334$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
a8b2ad8d 4335ac_tool_warned=yes ;;
4336esac
4337 CC=$ac_ct_CC
4338 fi
b3076f16 4339fi
4340
4341fi
4342
4343
db946ede 4344test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4346as_fn_error "no acceptable C compiler found in \$PATH
4347See \`config.log' for more details." "$LINENO" 5; }
b3076f16 4348
4349# Provide some information about the compiler.
db946ede 4350$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4351set X $ac_compile
4352ac_compiler=$2
4353for ac_option in --version -v -V -qversion; do
4354 { { ac_try="$ac_compiler $ac_option >&5"
a8b2ad8d 4355case "(($ac_try" in
4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4358esac
db946ede 4359eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4360$as_echo "$ac_try_echo"; } >&5
4361 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b3076f16 4362 ac_status=$?
db946ede 4363 if test -s conftest.err; then
4364 sed '10a\
4365... rest of stderr output deleted ...
4366 10q' conftest.err >conftest.er1
4367 cat conftest.er1 >&5
4368 rm -f conftest.er1 conftest.err
4369 fi
4370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4371 test $ac_status = 0; }
4372done
b3076f16 4373
db946ede 4374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4375$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4376if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4377 $as_echo_n "(cached) " >&6
b3076f16 4378else
db946ede 4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 4380/* end confdefs.h. */
4381
4382int
4383main ()
4384{
4385#ifndef __GNUC__
4386 choke me
4387#endif
4388
4389 ;
4390 return 0;
4391}
4392_ACEOF
db946ede 4393if ac_fn_c_try_compile "$LINENO"; then :
b3076f16 4394 ac_compiler_gnu=yes
4395else
db946ede 4396 ac_compiler_gnu=no
b3076f16 4397fi
a8b2ad8d 4398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 4399ac_cv_c_compiler_gnu=$ac_compiler_gnu
4400
4401fi
db946ede 4402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4403$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4404if test $ac_compiler_gnu = yes; then
4405 GCC=yes
4406else
4407 GCC=
4408fi
b3076f16 4409ac_test_CFLAGS=${CFLAGS+set}
4410ac_save_CFLAGS=$CFLAGS
db946ede 4411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4412$as_echo_n "checking whether $CC accepts -g... " >&6; }
4413if test "${ac_cv_prog_cc_g+set}" = set; then :
4414 $as_echo_n "(cached) " >&6
b3076f16 4415else
a8b2ad8d 4416 ac_save_c_werror_flag=$ac_c_werror_flag
4417 ac_c_werror_flag=yes
4418 ac_cv_prog_cc_g=no
4419 CFLAGS="-g"
db946ede 4420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8b2ad8d 4421/* end confdefs.h. */
4422
4423int
4424main ()
4425{
4426
4427 ;
4428 return 0;
4429}
4430_ACEOF
db946ede 4431if ac_fn_c_try_compile "$LINENO"; then :
a8b2ad8d 4432 ac_cv_prog_cc_g=yes
4433else
db946ede 4434 CFLAGS=""
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8b2ad8d 4436/* end confdefs.h. */
4437
4438int
4439main ()
4440{
4441
4442 ;
4443 return 0;
4444}
4445_ACEOF
db946ede 4446if ac_fn_c_try_compile "$LINENO"; then :
a8b2ad8d 4447
db946ede 4448else
4449 ac_c_werror_flag=$ac_save_c_werror_flag
a8b2ad8d 4450 CFLAGS="-g"
db946ede 4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 4452/* end confdefs.h. */
4453
4454int
4455main ()
4456{
4457
4458 ;
4459 return 0;
4460}
4461_ACEOF
db946ede 4462if ac_fn_c_try_compile "$LINENO"; then :
b3076f16 4463 ac_cv_prog_cc_g=yes
a8b2ad8d 4464fi
a8b2ad8d 4465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4466fi
a8b2ad8d 4467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 4468fi
a8b2ad8d 4469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4470 ac_c_werror_flag=$ac_save_c_werror_flag
b3076f16 4471fi
db946ede 4472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4473$as_echo "$ac_cv_prog_cc_g" >&6; }
b3076f16 4474if test "$ac_test_CFLAGS" = set; then
4475 CFLAGS=$ac_save_CFLAGS
4476elif test $ac_cv_prog_cc_g = yes; then
4477 if test "$GCC" = yes; then
4478 CFLAGS="-g -O2"
4479 else
4480 CFLAGS="-g"
4481 fi
4482else
4483 if test "$GCC" = yes; then
4484 CFLAGS="-O2"
4485 else
4486 CFLAGS=
4487 fi
4488fi
db946ede 4489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4490$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4491if test "${ac_cv_prog_cc_c89+set}" = set; then :
4492 $as_echo_n "(cached) " >&6
b3076f16 4493else
a8b2ad8d 4494 ac_cv_prog_cc_c89=no
b3076f16 4495ac_save_CC=$CC
db946ede 4496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 4497/* end confdefs.h. */
4498#include <stdarg.h>
4499#include <stdio.h>
4500#include <sys/types.h>
4501#include <sys/stat.h>
4502/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4503struct buf { int x; };
4504FILE * (*rcsopen) (struct buf *, struct stat *, int);
4505static char *e (p, i)
4506 char **p;
4507 int i;
4508{
4509 return p[i];
4510}
4511static char *f (char * (*g) (char **, int), char **p, ...)
4512{
4513 char *s;
4514 va_list v;
4515 va_start (v,p);
4516 s = g (p, va_arg (v,int));
4517 va_end (v);
4518 return s;
4519}
4520
4521/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4522 function prototypes and stuff, but not '\xHH' hex character constants.
4523 These don't provoke an error unfortunately, instead are silently treated
a8b2ad8d 4524 as 'x'. The following induces an error, until -std is added to get
b3076f16 4525 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4526 array size at least. It's necessary to write '\x00'==0 to get something
a8b2ad8d 4527 that's true only with -std. */
b3076f16 4528int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4529
a8b2ad8d 4530/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4531 inside strings and character constants. */
4532#define FOO(x) 'x'
4533int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4534
b3076f16 4535int test (int i, double x);
4536struct s1 {int (*f) (int a);};
4537struct s2 {int (*f) (double a);};
4538int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4539int argc;
4540char **argv;
4541int
4542main ()
4543{
4544return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4545 ;
4546 return 0;
4547}
4548_ACEOF
a8b2ad8d 4549for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4550 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b3076f16 4551do
4552 CC="$ac_save_CC $ac_arg"
db946ede 4553 if ac_fn_c_try_compile "$LINENO"; then :
a8b2ad8d 4554 ac_cv_prog_cc_c89=$ac_arg
b3076f16 4555fi
a8b2ad8d 4556rm -f core conftest.err conftest.$ac_objext
4557 test "x$ac_cv_prog_cc_c89" != "xno" && break
b3076f16 4558done
a8b2ad8d 4559rm -f conftest.$ac_ext
b3076f16 4560CC=$ac_save_CC
4561
4562fi
a8b2ad8d 4563# AC_CACHE_VAL
4564case "x$ac_cv_prog_cc_c89" in
4565 x)
db946ede 4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4567$as_echo "none needed" >&6; } ;;
a8b2ad8d 4568 xno)
db946ede 4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4570$as_echo "unsupported" >&6; } ;;
b3076f16 4571 *)
a8b2ad8d 4572 CC="$CC $ac_cv_prog_cc_c89"
db946ede 4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4574$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b3076f16 4575esac
db946ede 4576if test "x$ac_cv_prog_cc_c89" != xno; then :
b3076f16 4577
db946ede 4578fi
b3076f16 4579
b3076f16 4580ac_ext=c
4581ac_cpp='$CPP $CPPFLAGS'
4582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4584ac_compiler_gnu=$ac_cv_c_compiler_gnu
4585
ec1a68c8 4586depcc="$CC" am_compiler_list=
4587
db946ede 4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4589$as_echo_n "checking dependency style of $depcc... " >&6; }
4590if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4591 $as_echo_n "(cached) " >&6
ec1a68c8 4592else
4593 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4594 # We make a subdir and do the tests there. Otherwise we can end up
4595 # making bogus files that we don't know about and never remove. For
4596 # instance it was reported that on HP-UX the gcc test will end up
4597 # making a dummy file named `D' -- because `-MD' means `put the output
4598 # in D'.
4599 mkdir conftest.dir
4600 # Copy depcomp to subdir because otherwise we won't find it if we're
4601 # using a relative directory.
4602 cp "$am_depcomp" conftest.dir
4603 cd conftest.dir
4604 # We will build objects and dependencies in a subdirectory because
4605 # it helps to detect inapplicable dependency modes. For instance
4606 # both Tru64's cc and ICC support -MD to output dependencies as a
4607 # side effect of compilation, but ICC will put the dependencies in
4608 # the current directory while Tru64 will put them in the object
4609 # directory.
4610 mkdir sub
4611
4612 am_cv_CC_dependencies_compiler_type=none
4613 if test "$am_compiler_list" = ""; then
4614 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4615 fi
db946ede 4616 am__universal=false
4617 case " $depcc " in #(
4618 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4619 esac
4620
ec1a68c8 4621 for depmode in $am_compiler_list; do
4622 # Setup a source with many dependencies, because some compilers
4623 # like to wrap large dependency lists on column 80 (with \), and
4624 # we should not choose a depcomp mode which is confused by this.
4625 #
4626 # We need to recreate these files for each test, as the compiler may
4627 # overwrite some of them when testing with obscure command lines.
4628 # This happens at least with the AIX C compiler.
4629 : > sub/conftest.c
4630 for i in 1 2 3 4 5 6; do
4631 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4632 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4633 # Solaris 8's {/usr,}/bin/sh.
4634 touch sub/conftst$i.h
4635 done
4636 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4637
db946ede 4638 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4639 # mode. It turns out that the SunPro C++ compiler does not properly
4640 # handle `-M -o', and we need to detect this. Also, some Intel
4641 # versions had trouble with output in subdirs
4642 am__obj=sub/conftest.${OBJEXT-o}
4643 am__minus_obj="-o $am__obj"
ec1a68c8 4644 case $depmode in
db946ede 4645 gcc)
4646 # This depmode causes a compiler race in universal mode.
4647 test "$am__universal" = false || continue
4648 ;;
ec1a68c8 4649 nosideeffect)
4650 # after this tag, mechanisms are not by side-effect, so they'll
4651 # only be used when explicitly requested
4652 if test "x$enable_dependency_tracking" = xyes; then
4653 continue
4654 else
4655 break
4656 fi
4657 ;;
db946ede 4658 msvisualcpp | msvcmsys)
4659 # This compiler won't grok `-c -o', but also, the minuso test has
4660 # not run yet. These depmodes are late enough in the game, and
4661 # so weak that their functioning should not be impacted.
4662 am__obj=conftest.${OBJEXT-o}
4663 am__minus_obj=
4664 ;;
ec1a68c8 4665 none) break ;;
4666 esac
ec1a68c8 4667 if depmode=$depmode \
db946ede 4668 source=sub/conftest.c object=$am__obj \
ec1a68c8 4669 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
db946ede 4670 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
ec1a68c8 4671 >/dev/null 2>conftest.err &&
2f65da8f 4672 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
ec1a68c8 4673 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
db946ede 4674 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
ec1a68c8 4675 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4676 # icc doesn't choke on unknown options, it will just issue warnings
4677 # or remarks (even with -Werror). So we grep stderr for any message
4678 # that says an option was ignored or not supported.
4679 # When given -MP, icc 7.0 and 7.1 complain thusly:
4680 # icc: Command line warning: ignoring option '-M'; no argument required
4681 # The diagnosis changed in icc 8.0:
4682 # icc: Command line remark: option '-MP' not supported
4683 if (grep 'ignoring option' conftest.err ||
4684 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4685 am_cv_CC_dependencies_compiler_type=$depmode
4686 break
4687 fi
4688 fi
4689 done
4690
4691 cd ..
4692 rm -rf conftest.dir
4693else
4694 am_cv_CC_dependencies_compiler_type=none
4695fi
4696
4697fi
db946ede 4698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4699$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
ec1a68c8 4700CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4701
2f65da8f 4702 if
ec1a68c8 4703 test "x$enable_dependency_tracking" != xno \
4704 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4705 am__fastdepCC_TRUE=
4706 am__fastdepCC_FALSE='#'
4707else
4708 am__fastdepCC_TRUE='#'
4709 am__fastdepCC_FALSE=
4710fi
4711
4712
b3076f16 4713
0f6fe38c 4714
07559983 4715# Extract the first word of "cp", so it can be a program name with args.
4716set dummy cp; ac_word=$2
db946ede 4717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4718$as_echo_n "checking for $ac_word... " >&6; }
4719if test "${ac_cv_path_CP+set}" = set; then :
4720 $as_echo_n "(cached) " >&6
07559983 4721else
4722 case $CP in
4723 [\\/]* | ?:[\\/]*)
4724 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4725 ;;
4726 *)
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728for as_dir in $PATH
4729do
4730 IFS=$as_save_IFS
4731 test -z "$as_dir" && as_dir=.
db946ede 4732 for ac_exec_ext in '' $ac_executable_extensions; do
07559983 4733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4734 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
db946ede 4735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
07559983 4736 break 2
4737 fi
4738done
db946ede 4739 done
07559983 4740IFS=$as_save_IFS
4741
4742 ;;
4743esac
4744fi
4745CP=$ac_cv_path_CP
4746if test -n "$CP"; then
db946ede 4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4748$as_echo "$CP" >&6; }
07559983 4749else
db946ede 4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751$as_echo "no" >&6; }
07559983 4752fi
4753
4754
4755
35305a49 4756if test -n "$ac_tool_prefix"; then
4757 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4758set dummy ${ac_tool_prefix}ranlib; ac_word=$2
db946ede 4759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4760$as_echo_n "checking for $ac_word... " >&6; }
4761if test "${ac_cv_prog_RANLIB+set}" = set; then :
4762 $as_echo_n "(cached) " >&6
2f61d1d7 4763else
35305a49 4764 if test -n "$RANLIB"; then
4765 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4766else
2f61d1d7 4767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768for as_dir in $PATH
4769do
4770 IFS=$as_save_IFS
4771 test -z "$as_dir" && as_dir=.
db946ede 4772 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 4773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35305a49 4774 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
db946ede 4775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35305a49 4776 break 2
2f61d1d7 4777 fi
35305a49 4778done
db946ede 4779 done
a8b2ad8d 4780IFS=$as_save_IFS
2f61d1d7 4781
b3076f16 4782fi
35305a49 4783fi
4784RANLIB=$ac_cv_prog_RANLIB
4785if test -n "$RANLIB"; then
db946ede 4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4787$as_echo "$RANLIB" >&6; }
b3076f16 4788else
db946ede 4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4790$as_echo "no" >&6; }
2f61d1d7 4791fi
2f61d1d7 4792
a8b2ad8d 4793
b3076f16 4794fi
35305a49 4795if test -z "$ac_cv_prog_RANLIB"; then
4796 ac_ct_RANLIB=$RANLIB
4797 # Extract the first word of "ranlib", so it can be a program name with args.
4798set dummy ranlib; ac_word=$2
db946ede 4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800$as_echo_n "checking for $ac_word... " >&6; }
4801if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4802 $as_echo_n "(cached) " >&6
2f61d1d7 4803else
35305a49 4804 if test -n "$ac_ct_RANLIB"; then
4805 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2f61d1d7 4806else
35305a49 4807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808for as_dir in $PATH
4809do
4810 IFS=$as_save_IFS
4811 test -z "$as_dir" && as_dir=.
db946ede 4812 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 4813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35305a49 4814 ac_cv_prog_ac_ct_RANLIB="ranlib"
db946ede 4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35305a49 4816 break 2
4817 fi
4818done
db946ede 4819 done
a8b2ad8d 4820IFS=$as_save_IFS
35305a49 4821
b3076f16 4822fi
2f61d1d7 4823fi
db946ede 4824ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4825if test -n "$ac_ct_RANLIB"; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4827$as_echo "$ac_ct_RANLIB" >&6; }
4828else
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830$as_echo "no" >&6; }
b3076f16 4831fi
b3076f16 4832
db946ede 4833 if test "x$ac_ct_RANLIB" = x; then
4834 RANLIB=":"
4835 else
4836 case $cross_compiling:$ac_tool_warned in
4837yes:)
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4840ac_tool_warned=yes ;;
4841esac
4842 RANLIB=$ac_ct_RANLIB
4843 fi
4844else
4845 RANLIB="$ac_cv_prog_RANLIB"
b3076f16 4846fi
4847
4848
db946ede 4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4850$as_echo_n "checking whether ln -s works... " >&6; }
4851LN_S=$as_ln_s
4852if test "$LN_S" = "ln -s"; then
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4854$as_echo "yes" >&6; }
b3076f16 4855else
db946ede 4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4857$as_echo "no, using $LN_S" >&6; }
4858fi
b3076f16 4859
db946ede 4860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4861$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4862set x ${MAKE-make}
4863ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4864if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4865 $as_echo_n "(cached) " >&6
4866else
4867 cat >conftest.make <<\_ACEOF
4868SHELL = /bin/sh
4869all:
4870 @echo '@@@%%%=$(MAKE)=@@@%%%'
b3076f16 4871_ACEOF
db946ede 4872# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4873case `${MAKE-make} -f conftest.make 2>/dev/null` in
4874 *@@@%%%=?*=@@@%%%*)
4875 eval ac_cv_prog_make_${ac_make}_set=yes;;
4876 *)
4877 eval ac_cv_prog_make_${ac_make}_set=no;;
a8b2ad8d 4878esac
db946ede 4879rm -f conftest.make
4880fi
4881if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4883$as_echo "yes" >&6; }
4884 SET_MAKE=
b3076f16 4885else
db946ede 4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887$as_echo "no" >&6; }
4888 SET_MAKE="MAKE=${MAKE-make}"
b3076f16 4889fi
a8b2ad8d 4890
db946ede 4891ac_ext=c
4892ac_cpp='$CPP $CPPFLAGS'
4893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4895ac_compiler_gnu=$ac_cv_c_compiler_gnu
4896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4897$as_echo_n "checking how to run the C preprocessor... " >&6; }
4898# On Suns, sometimes $CPP names a directory.
4899if test -n "$CPP" && test -d "$CPP"; then
4900 CPP=
b3076f16 4901fi
db946ede 4902if test -z "$CPP"; then
4903 if test "${ac_cv_prog_CPP+set}" = set; then :
4904 $as_echo_n "(cached) " >&6
4905else
4906 # Double quotes because CPP needs to be expanded
4907 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4908 do
4909 ac_preproc_ok=false
4910for ac_c_preproc_warn_flag in '' yes
4911do
4912 # Use a header file that comes with gcc, so configuring glibc
4913 # with a fresh cross-compiler works.
4914 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4915 # <limits.h> exists even on freestanding compilers.
4916 # On the NeXT, cc -E runs the code through the compiler's parser,
4917 # not just through cpp. "Syntax error" is here to catch this case.
4918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4919/* end confdefs.h. */
4920#ifdef __STDC__
4921# include <limits.h>
4922#else
4923# include <assert.h>
4924#endif
4925 Syntax error
b3076f16 4926_ACEOF
db946ede 4927if ac_fn_c_try_cpp "$LINENO"; then :
b3076f16 4928
db946ede 4929else
4930 # Broken: fails on valid input.
4931continue
b3076f16 4932fi
db946ede 4933rm -f conftest.err conftest.$ac_ext
b3076f16 4934
db946ede 4935 # OK, works on sane cases. Now check whether nonexistent headers
4936 # can be detected and how.
4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 4938/* end confdefs.h. */
db946ede 4939#include <ac_nonexistent.h>
ff3b058a 4940_ACEOF
db946ede 4941if ac_fn_c_try_cpp "$LINENO"; then :
4942 # Broken: success on invalid input.
4943continue
0f6fe38c 4944else
db946ede 4945 # Passes both tests.
4946ac_preproc_ok=:
4947break
0f6fe38c 4948fi
db946ede 4949rm -f conftest.err conftest.$ac_ext
0f6fe38c 4950
db946ede 4951done
4952# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4953rm -f conftest.err conftest.$ac_ext
4954if $ac_preproc_ok; then :
4955 break
0f6fe38c 4956fi
0f6fe38c 4957
db946ede 4958 done
4959 ac_cv_prog_CPP=$CPP
0f6fe38c 4960
4961fi
db946ede 4962 CPP=$ac_cv_prog_CPP
4963else
4964 ac_cv_prog_CPP=$CPP
4965fi
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4967$as_echo "$CPP" >&6; }
4968ac_preproc_ok=false
4969for ac_c_preproc_warn_flag in '' yes
0f6fe38c 4970do
db946ede 4971 # Use a header file that comes with gcc, so configuring glibc
4972 # with a fresh cross-compiler works.
4973 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4974 # <limits.h> exists even on freestanding compilers.
4975 # On the NeXT, cc -E runs the code through the compiler's parser,
4976 # not just through cpp. "Syntax error" is here to catch this case.
4977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0f6fe38c 4978/* end confdefs.h. */
db946ede 4979#ifdef __STDC__
4980# include <limits.h>
4981#else
4982# include <assert.h>
4983#endif
4984 Syntax error
0f6fe38c 4985_ACEOF
db946ede 4986if ac_fn_c_try_cpp "$LINENO"; then :
35305a49 4987
db946ede 4988else
4989 # Broken: fails on valid input.
4990continue
35305a49 4991fi
db946ede 4992rm -f conftest.err conftest.$ac_ext
a8b2ad8d 4993
db946ede 4994 # OK, works on sane cases. Now check whether nonexistent headers
4995 # can be detected and how.
4996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997/* end confdefs.h. */
4998#include <ac_nonexistent.h>
35305a49 4999_ACEOF
db946ede 5000if ac_fn_c_try_cpp "$LINENO"; then :
5001 # Broken: success on invalid input.
5002continue
5003else
5004 # Passes both tests.
5005ac_preproc_ok=:
5006break
35305a49 5007fi
db946ede 5008rm -f conftest.err conftest.$ac_ext
35305a49 5009
0f6fe38c 5010done
db946ede 5011# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5012rm -f conftest.err conftest.$ac_ext
5013if $ac_preproc_ok; then :
35305a49 5014
db946ede 5015else
5016 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5017$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5018as_fn_error "C preprocessor \"$CPP\" fails sanity check
5019See \`config.log' for more details." "$LINENO" 5; }
5020fi
35305a49 5021
db946ede 5022ac_ext=c
5023ac_cpp='$CPP $CPPFLAGS'
5024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5026ac_compiler_gnu=$ac_cv_c_compiler_gnu
b3076f16 5027
5028
db946ede 5029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5030$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5031if test "${ac_cv_path_GREP+set}" = set; then :
5032 $as_echo_n "(cached) " >&6
5033else
5034 if test -z "$GREP"; then
5035 ac_path_GREP_found=false
5036 # Loop through the user's path and test for each of PROGNAME-LIST
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5039do
5040 IFS=$as_save_IFS
5041 test -z "$as_dir" && as_dir=.
5042 for ac_prog in grep ggrep; do
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5045 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5046# Check for GNU ac_path_GREP and select it if it is found.
5047 # Check for GNU $ac_path_GREP
5048case `"$ac_path_GREP" --version 2>&1` in
5049*GNU*)
5050 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5051*)
5052 ac_count=0
5053 $as_echo_n 0123456789 >"conftest.in"
5054 while :
5055 do
5056 cat "conftest.in" "conftest.in" >"conftest.tmp"
5057 mv "conftest.tmp" "conftest.in"
5058 cp "conftest.in" "conftest.nl"
5059 $as_echo 'GREP' >> "conftest.nl"
5060 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5061 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5062 as_fn_arith $ac_count + 1 && ac_count=$as_val
5063 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5064 # Best one so far, save it but keep looking for a better one
5065 ac_cv_path_GREP="$ac_path_GREP"
5066 ac_path_GREP_max=$ac_count
5067 fi
5068 # 10*(2^10) chars as input seems more than enough
5069 test $ac_count -gt 10 && break
5070 done
5071 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5072esac
b3076f16 5073
db946ede 5074 $ac_path_GREP_found && break 3
5075 done
5076 done
5077 done
5078IFS=$as_save_IFS
5079 if test -z "$ac_cv_path_GREP"; then
5080 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5081 fi
5082else
5083 ac_cv_path_GREP=$GREP
5084fi
b3076f16 5085
db946ede 5086fi
5087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5088$as_echo "$ac_cv_path_GREP" >&6; }
5089 GREP="$ac_cv_path_GREP"
b3076f16 5090
5091
db946ede 5092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5093$as_echo_n "checking for egrep... " >&6; }
5094if test "${ac_cv_path_EGREP+set}" = set; then :
5095 $as_echo_n "(cached) " >&6
5096else
5097 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5098 then ac_cv_path_EGREP="$GREP -E"
5099 else
5100 if test -z "$EGREP"; then
5101 ac_path_EGREP_found=false
5102 # Loop through the user's path and test for each of PROGNAME-LIST
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5105do
5106 IFS=$as_save_IFS
5107 test -z "$as_dir" && as_dir=.
5108 for ac_prog in egrep; do
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5111 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5112# Check for GNU ac_path_EGREP and select it if it is found.
5113 # Check for GNU $ac_path_EGREP
5114case `"$ac_path_EGREP" --version 2>&1` in
5115*GNU*)
5116 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5117*)
5118 ac_count=0
5119 $as_echo_n 0123456789 >"conftest.in"
5120 while :
5121 do
5122 cat "conftest.in" "conftest.in" >"conftest.tmp"
5123 mv "conftest.tmp" "conftest.in"
5124 cp "conftest.in" "conftest.nl"
5125 $as_echo 'EGREP' >> "conftest.nl"
5126 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5128 as_fn_arith $ac_count + 1 && ac_count=$as_val
5129 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5130 # Best one so far, save it but keep looking for a better one
5131 ac_cv_path_EGREP="$ac_path_EGREP"
5132 ac_path_EGREP_max=$ac_count
5133 fi
5134 # 10*(2^10) chars as input seems more than enough
5135 test $ac_count -gt 10 && break
5136 done
5137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5138esac
b3076f16 5139
db946ede 5140 $ac_path_EGREP_found && break 3
5141 done
5142 done
5143 done
5144IFS=$as_save_IFS
5145 if test -z "$ac_cv_path_EGREP"; then
5146 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5147 fi
5148else
5149 ac_cv_path_EGREP=$EGREP
5150fi
b3076f16 5151
db946ede 5152 fi
5153fi
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5155$as_echo "$ac_cv_path_EGREP" >&6; }
5156 EGREP="$ac_cv_path_EGREP"
b3076f16 5157
5158
db946ede 5159if test $ac_cv_c_compiler_gnu = yes; then
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5161$as_echo_n "checking whether $CC needs -traditional... " >&6; }
5162if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
5163 $as_echo_n "(cached) " >&6
b3076f16 5164else
db946ede 5165 ac_pattern="Autoconf.*'x'"
5166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 5167/* end confdefs.h. */
db946ede 5168#include <sgtty.h>
5169Autoconf TIOCGETP
b3076f16 5170_ACEOF
db946ede 5171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5172 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5173 ac_cv_prog_gcc_traditional=yes
b3076f16 5174else
db946ede 5175 ac_cv_prog_gcc_traditional=no
b3076f16 5176fi
db946ede 5177rm -f conftest*
a8b2ad8d 5178
b3076f16 5179
db946ede 5180 if test $ac_cv_prog_gcc_traditional = no; then
5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 5182/* end confdefs.h. */
db946ede 5183#include <termio.h>
5184Autoconf TCGETA
b3076f16 5185_ACEOF
db946ede 5186if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5187 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5188 ac_cv_prog_gcc_traditional=yes
5189fi
5190rm -f conftest*
5191
5192 fi
5193fi
5194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5195$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5196 if test $ac_cv_prog_gcc_traditional = yes; then
5197 CC="$CC -traditional"
5198 fi
5199fi
5200
5201# Extract the first word of "gmake", so it can be a program name with args.
5202set dummy gmake; ac_word=$2
5203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5204$as_echo_n "checking for $ac_word... " >&6; }
5205if test "${ac_cv_prog_MAKER+set}" = set; then :
5206 $as_echo_n "(cached) " >&6
b3076f16 5207else
db946ede 5208 if test -n "$MAKER"; then
5209 ac_cv_prog_MAKER="$MAKER" # Let the user override the test.
5210else
5211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212for as_dir in $PATH
5213do
5214 IFS=$as_save_IFS
5215 test -z "$as_dir" && as_dir=.
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5218 ac_cv_prog_MAKER="gmake"
5219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 break 2
5221 fi
5222done
5223 done
5224IFS=$as_save_IFS
b3076f16 5225
db946ede 5226 test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make"
5227fi
5228fi
5229MAKER=$ac_cv_prog_MAKER
5230if test -n "$MAKER"; then
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKER" >&5
5232$as_echo "$MAKER" >&6; }
5233else
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5235$as_echo "no" >&6; }
b3076f16 5236fi
a8b2ad8d 5237
b3076f16 5238
db946ede 5239
5240case $target in
5241 *-freebsd2* | *-freebsdelf2* | *-freebsd*out3*)
5242 ANSI_SRC=""
b3076f16 5243 ;;
db946ede 5244 *-freebsd3* | *-freebsdelf3* | *-freebsd*out3*)
5245 ANSI_SRC=""
5246 ;;
5247 *-solaris*)
5248 EXTRA_DEFINE="-D__SOLARIS__"
5249 ANSI_SRC="-fno-builtin"
5250 ;;
5251 *-cygwin)
5252 ANSI_SRC="-fno-builtin"
5253 ;;
5254 *-linux*)
5255 EXTRA_DEFINE="-D_GNU_SOURCE"
5256 ANSI_SRC=""
5257 ;;
5258 *)
5259 ANSI_SRC=""
b3076f16 5260 ;;
5261esac
db946ede 5262CFLAGS="$CFLAGS $EXTRA_DEFINE"
5263
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
5265$as_echo_n "checking for socket in -lsocket... " >&6; }
5266if test "${ac_cv_lib_socket_socket+set}" = set; then :
5267 $as_echo_n "(cached) " >&6
b3076f16 5268else
db946ede 5269 ac_check_lib_save_LIBS=$LIBS
5270LIBS="-lsocket $LIBS"
5271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272/* end confdefs.h. */
b3076f16 5273
db946ede 5274/* Override any GCC internal prototype to avoid an error.
5275 Use char because int might match the return type of a GCC
5276 builtin and then its argument prototype would still apply. */
5277#ifdef __cplusplus
5278extern "C"
5279#endif
5280char socket ();
5281int
5282main ()
5283{
5284return socket ();
5285 ;
5286 return 0;
5287}
5288_ACEOF
5289if ac_fn_c_try_link "$LINENO"; then :
5290 ac_cv_lib_socket_socket=yes
5291else
5292 ac_cv_lib_socket_socket=no
5293fi
5294rm -f core conftest.err conftest.$ac_objext \
5295 conftest$ac_exeext conftest.$ac_ext
5296LIBS=$ac_check_lib_save_LIBS
b3076f16 5297fi
db946ede 5298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
5299$as_echo "$ac_cv_lib_socket_socket" >&6; }
5300if test "x$ac_cv_lib_socket_socket" = x""yes; then :
b3076f16 5301 cat >>confdefs.h <<_ACEOF
db946ede 5302#define HAVE_LIBSOCKET 1
b3076f16 5303_ACEOF
5304
db946ede 5305 LIBS="-lsocket $LIBS"
b3076f16 5306
db946ede 5307fi
b3076f16 5308
db946ede 5309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5310$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5311if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
5312 $as_echo_n "(cached) " >&6
b3076f16 5313else
db946ede 5314 ac_check_lib_save_LIBS=$LIBS
5315LIBS="-lnsl $LIBS"
5316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 5317/* end confdefs.h. */
b3076f16 5318
db946ede 5319/* Override any GCC internal prototype to avoid an error.
5320 Use char because int might match the return type of a GCC
5321 builtin and then its argument prototype would still apply. */
5322#ifdef __cplusplus
5323extern "C"
5324#endif
5325char gethostbyname ();
b3076f16 5326int
5327main ()
5328{
db946ede 5329return gethostbyname ();
b3076f16 5330 ;
5331 return 0;
5332}
5333_ACEOF
db946ede 5334if ac_fn_c_try_link "$LINENO"; then :
5335 ac_cv_lib_nsl_gethostbyname=yes
b3076f16 5336else
db946ede 5337 ac_cv_lib_nsl_gethostbyname=no
5338fi
5339rm -f core conftest.err conftest.$ac_objext \
5340 conftest$ac_exeext conftest.$ac_ext
5341LIBS=$ac_check_lib_save_LIBS
5342fi
5343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5344$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5345if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
5346 cat >>confdefs.h <<_ACEOF
5347#define HAVE_LIBNSL 1
b3076f16 5348_ACEOF
db946ede 5349
5350 LIBS="-lnsl $LIBS"
5351
5352fi
5353
5354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
5355$as_echo_n "checking for main in -lm... " >&6; }
5356if test "${ac_cv_lib_m_main+set}" = set; then :
5357 $as_echo_n "(cached) " >&6
5358else
5359 ac_check_lib_save_LIBS=$LIBS
5360LIBS="-lm $LIBS"
5361cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 5362/* end confdefs.h. */
db946ede 5363
b3076f16 5364
5365int
5366main ()
5367{
db946ede 5368return main ();
b3076f16 5369 ;
5370 return 0;
5371}
5372_ACEOF
db946ede 5373if ac_fn_c_try_link "$LINENO"; then :
5374 ac_cv_lib_m_main=yes
b3076f16 5375else
db946ede 5376 ac_cv_lib_m_main=no
b3076f16 5377fi
db946ede 5378rm -f core conftest.err conftest.$ac_objext \
5379 conftest$ac_exeext conftest.$ac_ext
5380LIBS=$ac_check_lib_save_LIBS
b3076f16 5381fi
db946ede 5382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
5383$as_echo "$ac_cv_lib_m_main" >&6; }
5384if test "x$ac_cv_lib_m_main" = x""yes; then :
5385 cat >>confdefs.h <<_ACEOF
5386#define HAVE_LIBM 1
2f61d1d7 5387_ACEOF
5388
db946ede 5389 LIBS="-lm $LIBS"
5390
2f61d1d7 5391fi
5392
db946ede 5393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_open in -lGeoIP" >&5
5394$as_echo_n "checking for GeoIP_open in -lGeoIP... " >&6; }
5395if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then :
5396 $as_echo_n "(cached) " >&6
2f61d1d7 5397else
db946ede 5398 ac_check_lib_save_LIBS=$LIBS
5399LIBS="-lGeoIP $LIBS"
5400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401/* end confdefs.h. */
2f61d1d7 5402
db946ede 5403/* Override any GCC internal prototype to avoid an error.
5404 Use char because int might match the return type of a GCC
5405 builtin and then its argument prototype would still apply. */
5406#ifdef __cplusplus
5407extern "C"
5408#endif
5409char GeoIP_open ();
2f61d1d7 5410int
5411main ()
5412{
db946ede 5413return GeoIP_open ();
2f61d1d7 5414 ;
5415 return 0;
5416}
5417_ACEOF
db946ede 5418if ac_fn_c_try_link "$LINENO"; then :
5419 ac_cv_lib_GeoIP_GeoIP_open=yes
2f61d1d7 5420else
db946ede 5421 ac_cv_lib_GeoIP_GeoIP_open=no
5422fi
5423rm -f core conftest.err conftest.$ac_objext \
5424 conftest$ac_exeext conftest.$ac_ext
5425LIBS=$ac_check_lib_save_LIBS
5426fi
5427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
5428$as_echo "$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
5429if test "x$ac_cv_lib_GeoIP_GeoIP_open" = x""yes; then :
5430 cat >>confdefs.h <<_ACEOF
5431#define HAVE_LIBGEOIP 1
2f61d1d7 5432_ACEOF
db946ede 5433
5434 LIBS="-lGeoIP $LIBS"
5435
5436fi
5437
5438
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5440$as_echo_n "checking for ANSI C header files... " >&6; }
5441if test "${ac_cv_header_stdc+set}" = set; then :
5442 $as_echo_n "(cached) " >&6
5443else
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2f61d1d7 5445/* end confdefs.h. */
db946ede 5446#include <stdlib.h>
5447#include <stdarg.h>
5448#include <string.h>
5449#include <float.h>
2f61d1d7 5450
5451int
5452main ()
5453{
db946ede 5454
2f61d1d7 5455 ;
5456 return 0;
5457}
b3076f16 5458_ACEOF
db946ede 5459if ac_fn_c_try_compile "$LINENO"; then :
5460 ac_cv_header_stdc=yes
2f61d1d7 5461else
db946ede 5462 ac_cv_header_stdc=no
2f61d1d7 5463fi
a8b2ad8d 5464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a8b2ad8d 5465
db946ede 5466if test $ac_cv_header_stdc = yes; then
5467 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469/* end confdefs.h. */
5470#include <string.h>
2f61d1d7 5471
2f61d1d7 5472_ACEOF
db946ede 5473if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5474 $EGREP "memchr" >/dev/null 2>&1; then :
b3076f16 5475
db946ede 5476else
5477 ac_cv_header_stdc=no
2f61d1d7 5478fi
db946ede 5479rm -f conftest*
b3076f16 5480
db946ede 5481fi
b3076f16 5482
db946ede 5483if test $ac_cv_header_stdc = yes; then
5484 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486/* end confdefs.h. */
5487#include <stdlib.h>
21f6caee 5488
db946ede 5489_ACEOF
5490if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5491 $EGREP "free" >/dev/null 2>&1; then :
b3076f16 5492
db946ede 5493else
5494 ac_cv_header_stdc=no
5495fi
5496rm -f conftest*
b3076f16 5497
db946ede 5498fi
b3076f16 5499
db946ede 5500if test $ac_cv_header_stdc = yes; then
5501 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5502 if test "$cross_compiling" = yes; then :
5503 :
5504else
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 5506/* end confdefs.h. */
db946ede 5507#include <ctype.h>
5508#include <stdlib.h>
5509#if ((' ' & 0x0FF) == 0x020)
5510# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5511# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
b3076f16 5512#else
db946ede 5513# define ISLOWER(c) \
5514 (('a' <= (c) && (c) <= 'i') \
5515 || ('j' <= (c) && (c) <= 'r') \
5516 || ('s' <= (c) && (c) <= 'z'))
5517# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
b3076f16 5518#endif
5519
db946ede 5520#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
b3076f16 5521int
5522main ()
5523{
db946ede 5524 int i;
5525 for (i = 0; i < 256; i++)
5526 if (XOR (islower (i), ISLOWER (i))
5527 || toupper (i) != TOUPPER (i))
5528 return 2;
b3076f16 5529 return 0;
ff3b058a 5530}
5531_ACEOF
db946ede 5532if ac_fn_c_try_run "$LINENO"; then :
b3076f16 5533
db946ede 5534else
5535 ac_cv_header_stdc=no
b3076f16 5536fi
db946ede 5537rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5538 conftest.$ac_objext conftest.beam conftest.$ac_ext
b3076f16 5539fi
b3076f16 5540
b3076f16 5541fi
db946ede 5542fi
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5544$as_echo "$ac_cv_header_stdc" >&6; }
5545if test $ac_cv_header_stdc = yes; then
b3076f16 5546
db946ede 5547$as_echo "#define STDC_HEADERS 1" >>confdefs.h
0f6fe38c 5548
db946ede 5549fi
0f6fe38c 5550
5551
db946ede 5552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5553$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5554if test "${ac_cv_header_time+set}" = set; then :
5555 $as_echo_n "(cached) " >&6
5556else
5557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 5558/* end confdefs.h. */
db946ede 5559#include <sys/types.h>
5560#include <sys/time.h>
5561#include <time.h>
b3076f16 5562
db946ede 5563int
5564main ()
5565{
5566if ((struct tm *) 0)
5567return 0;
5568 ;
5569 return 0;
5570}
5571_ACEOF
5572if ac_fn_c_try_compile "$LINENO"; then :
5573 ac_cv_header_time=yes
5574else
5575 ac_cv_header_time=no
5576fi
5577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578fi
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5580$as_echo "$ac_cv_header_time" >&6; }
5581if test $ac_cv_header_time = yes; then
b3076f16 5582
db946ede 5583$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
b3076f16 5584
db946ede 5585fi
b3076f16 5586
db946ede 5587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5588$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5589if test "${ac_cv_struct_tm+set}" = set; then :
5590 $as_echo_n "(cached) " >&6
5591else
5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593/* end confdefs.h. */
5594#include <sys/types.h>
5595#include <time.h>
b3076f16 5596
5597int
5598main ()
5599{
db946ede 5600struct tm tm;
5601 int *p = &tm.tm_sec;
5602 return !p;
b3076f16 5603 ;
5604 return 0;
5605}
5606_ACEOF
db946ede 5607if ac_fn_c_try_compile "$LINENO"; then :
5608 ac_cv_struct_tm=time.h
b3076f16 5609else
db946ede 5610 ac_cv_struct_tm=sys/time.h
5611fi
5612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 5613fi
db946ede 5614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5615$as_echo "$ac_cv_struct_tm" >&6; }
5616if test $ac_cv_struct_tm = sys/time.h; then
5617
5618$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
a8b2ad8d 5619
b3076f16 5620fi
db946ede 5621
5622
5623# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5624for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5625 inttypes.h stdint.h unistd.h
5626do :
5627 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5628ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5629"
5630eval as_val=\$$as_ac_Header
5631 if test "x$as_val" = x""yes; then :
b3076f16 5632 cat >>confdefs.h <<_ACEOF
db946ede 5633#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b3076f16 5634_ACEOF
5635
5636fi
db946ede 5637
b3076f16 5638done
5639
db946ede 5640
5641for ac_header in GeoIP.h GeoIPCity.h arpa/inet.h fcntl.h math.h tgmath.h malloc.h netdb.h netinet/in.h sys/resource.h sys/timeb.h sys/times.h sys/param.h sys/socket.h sys/time.h sys/types.h sys/wait.h unistd.h getopt.h memory.h arpa/inet.h sys/mman.h sys/stat.h dirent.h sys/epoll.h sys/event.h
5642do :
5643 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5644ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5645eval as_val=\$$as_ac_Header
5646 if test "x$as_val" = x""yes; then :
5647 cat >>confdefs.h <<_ACEOF
5648#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5649_ACEOF
5650
1136f709 5651fi
b3076f16 5652
db946ede 5653done
5654
b3076f16 5655
db946ede 5656ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
5657#include <sys/socket.h>
5658"
5659if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
b3076f16 5660
db946ede 5661$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
b3076f16 5662
db946ede 5663fi
b3076f16 5664
db946ede 5665ac_fn_c_check_member "$LINENO" "struct addrinfo" "ai_flags" "ac_cv_member_struct_addrinfo_ai_flags" "#include <sys/types.h>
5666#include <sys/socket.h>
5667#include <netdb.h>
5668"
5669if test "x$ac_cv_member_struct_addrinfo_ai_flags" = x""yes; then :
b3076f16 5670
db946ede 5671$as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
b3076f16 5672
db946ede 5673fi
b3076f16 5674
b3076f16 5675
db946ede 5676for ac_func in freeaddrinfo getaddrinfo gai_strerror getnameinfo getpagesize memcpy memset strdup strerror strsignal localtime_r setrlimit getopt getopt_long regcomp regexec regfree sysconf inet_aton epoll_create kqueue kevent select gettimeofday times GetProcessTimes mprotect
5677do :
5678 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5679ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5680eval as_val=\$$as_ac_var
5681 if test "x$as_val" = x""yes; then :
5682 cat >>confdefs.h <<_ACEOF
5683#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5684_ACEOF
b3076f16 5685
db946ede 5686fi
5687done
b3076f16 5688
db946ede 5689
5690
5691if test $ac_cv_func_gettimeofday = no; then
5692 for ac_func in ftime
5693do :
5694 ac_fn_c_check_func "$LINENO" "ftime" "ac_cv_func_ftime"
5695if test "x$ac_cv_func_ftime" = x""yes; then :
5696 cat >>confdefs.h <<_ACEOF
5697#define HAVE_FTIME 1
b3076f16 5698_ACEOF
b3076f16 5699
db946ede 5700else
5701 as_fn_error "ftime or gettimeofday required. X3 build will fail." "$LINENO" 5
b3076f16 5702fi
db946ede 5703done
a8b2ad8d 5704
b3076f16 5705fi
db946ede 5706
5707for ac_func in socket strcspn strspn strtod strtoul
5708do :
5709 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5710ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5711eval as_val=\$$as_ac_var
5712 if test "x$as_val" = x""yes; then :
b3076f16 5713 cat >>confdefs.h <<_ACEOF
db946ede 5714#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b3076f16 5715_ACEOF
5716
5717else
db946ede 5718 as_fn_error "a required function was not found. X3 build will fail." "$LINENO" 5
b3076f16 5719fi
5720done
5721
5722
5723# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5724# for constant arguments. Useless!
db946ede 5725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5726$as_echo_n "checking for working alloca.h... " >&6; }
5727if test "${ac_cv_working_alloca_h+set}" = set; then :
5728 $as_echo_n "(cached) " >&6
b3076f16 5729else
db946ede 5730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 5731/* end confdefs.h. */
5732#include <alloca.h>
5733int
5734main ()
5735{
5736char *p = (char *) alloca (2 * sizeof (int));
a8b2ad8d 5737 if (p) return 0;
b3076f16 5738 ;
5739 return 0;
5740}
5741_ACEOF
db946ede 5742if ac_fn_c_try_link "$LINENO"; then :
b3076f16 5743 ac_cv_working_alloca_h=yes
5744else
db946ede 5745 ac_cv_working_alloca_h=no
b3076f16 5746fi
db946ede 5747rm -f core conftest.err conftest.$ac_objext \
5748 conftest$ac_exeext conftest.$ac_ext
b3076f16 5749fi
db946ede 5750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5751$as_echo "$ac_cv_working_alloca_h" >&6; }
b3076f16 5752if test $ac_cv_working_alloca_h = yes; then
5753
db946ede 5754$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
b3076f16 5755
5756fi
5757
db946ede 5758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5759$as_echo_n "checking for alloca... " >&6; }
5760if test "${ac_cv_func_alloca_works+set}" = set; then :
5761 $as_echo_n "(cached) " >&6
b3076f16 5762else
db946ede 5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 5764/* end confdefs.h. */
5765#ifdef __GNUC__
5766# define alloca __builtin_alloca
5767#else
5768# ifdef _MSC_VER
5769# include <malloc.h>
5770# define alloca _alloca
5771# else
0bd0bef6 5772# ifdef HAVE_ALLOCA_H
b3076f16 5773# include <alloca.h>
5774# else
5775# ifdef _AIX
5776 #pragma alloca
5777# else
5778# ifndef alloca /* predefined by HP cc +Olibcalls */
5779char *alloca ();
5780# endif
5781# endif
5782# endif
5783# endif
5784#endif
5785
5786int
5787main ()
5788{
5789char *p = (char *) alloca (1);
a8b2ad8d 5790 if (p) return 0;
b3076f16 5791 ;
5792 return 0;
5793}
5794_ACEOF
db946ede 5795if ac_fn_c_try_link "$LINENO"; then :
b3076f16 5796 ac_cv_func_alloca_works=yes
5797else
db946ede 5798 ac_cv_func_alloca_works=no
b3076f16 5799fi
db946ede 5800rm -f core conftest.err conftest.$ac_objext \
5801 conftest$ac_exeext conftest.$ac_ext
b3076f16 5802fi
db946ede 5803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5804$as_echo "$ac_cv_func_alloca_works" >&6; }
b3076f16 5805
5806if test $ac_cv_func_alloca_works = yes; then
5807
db946ede 5808$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
b3076f16 5809
5810else
5811 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5812# that cause trouble. Some versions do not even contain alloca or
5813# contain a buggy version. If you still want to use their alloca,
5814# use ar to extract alloca.o from them instead of compiling alloca.c.
5815
a8b2ad8d 5816ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
b3076f16 5817
db946ede 5818$as_echo "#define C_ALLOCA 1" >>confdefs.h
b3076f16 5819
5820
db946ede 5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5822$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5823if test "${ac_cv_os_cray+set}" = set; then :
5824 $as_echo_n "(cached) " >&6
b3076f16 5825else
db946ede 5826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 5827/* end confdefs.h. */
a8b2ad8d 5828#if defined CRAY && ! defined CRAY2
b3076f16 5829webecray
5830#else
5831wenotbecray
5832#endif
5833
5834_ACEOF
5835if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
db946ede 5836 $EGREP "webecray" >/dev/null 2>&1; then :
b3076f16 5837 ac_cv_os_cray=yes
5838else
5839 ac_cv_os_cray=no
5840fi
5841rm -f conftest*
5842
5843fi
db946ede 5844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5845$as_echo "$ac_cv_os_cray" >&6; }
b3076f16 5846if test $ac_cv_os_cray = yes; then
5847 for ac_func in _getb67 GETB67 getb67; do
db946ede 5848 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5849ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5850eval as_val=\$$as_ac_var
5851 if test "x$as_val" = x""yes; then :
b3076f16 5852
5853cat >>confdefs.h <<_ACEOF
5854#define CRAY_STACKSEG_END $ac_func
5855_ACEOF
5856
5857 break
5858fi
5859
5860 done
5861fi
5862
db946ede 5863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5864$as_echo_n "checking stack direction for C alloca... " >&6; }
5865if test "${ac_cv_c_stack_direction+set}" = set; then :
5866 $as_echo_n "(cached) " >&6
b3076f16 5867else
db946ede 5868 if test "$cross_compiling" = yes; then :
b3076f16 5869 ac_cv_c_stack_direction=0
5870else
db946ede 5871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 5872/* end confdefs.h. */
a8b2ad8d 5873$ac_includes_default
b3076f16 5874int
5875find_stack_direction ()
5876{
5877 static char *addr = 0;
5878 auto char dummy;
5879 if (addr == 0)
5880 {
5881 addr = &dummy;
5882 return find_stack_direction ();
5883 }
5884 else
5885 return (&dummy > addr) ? 1 : -1;
5886}
5887
5888int
5889main ()
5890{
a8b2ad8d 5891 return find_stack_direction () < 0;
b3076f16 5892}
5893_ACEOF
db946ede 5894if ac_fn_c_try_run "$LINENO"; then :
b3076f16 5895 ac_cv_c_stack_direction=1
5896else
db946ede 5897 ac_cv_c_stack_direction=-1
b3076f16 5898fi
db946ede 5899rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5900 conftest.$ac_objext conftest.beam conftest.$ac_ext
b3076f16 5901fi
a8b2ad8d 5902
b3076f16 5903fi
db946ede 5904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5905$as_echo "$ac_cv_c_stack_direction" >&6; }
b3076f16 5906cat >>confdefs.h <<_ACEOF
5907#define STACK_DIRECTION $ac_cv_c_stack_direction
5908_ACEOF
5909
5910
5911fi
5912
b3076f16 5913for ac_header in stdlib.h unistd.h
db946ede 5914do :
5915 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5916ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5917eval as_val=\$$as_ac_Header
5918 if test "x$as_val" = x""yes; then :
b3076f16 5919 cat >>confdefs.h <<_ACEOF
db946ede 5920#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b3076f16 5921_ACEOF
5922
5923fi
5924
5925done
5926
b3076f16 5927for ac_func in getpagesize
db946ede 5928do :
5929 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
5930if test "x$ac_cv_func_getpagesize" = x""yes; then :
b3076f16 5931 cat >>confdefs.h <<_ACEOF
db946ede 5932#define HAVE_GETPAGESIZE 1
b3076f16 5933_ACEOF
5934
5935fi
5936done
5937
db946ede 5938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
5939$as_echo_n "checking for working mmap... " >&6; }
5940if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
5941 $as_echo_n "(cached) " >&6
b3076f16 5942else
db946ede 5943 if test "$cross_compiling" = yes; then :
b3076f16 5944 ac_cv_func_mmap_fixed_mapped=no
5945else
db946ede 5946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 5947/* end confdefs.h. */
5948$ac_includes_default
5949/* malloc might have been renamed as rpl_malloc. */
5950#undef malloc
5951
5952/* Thanks to Mike Haertel and Jim Avera for this test.
5953 Here is a matrix of mmap possibilities:
5954 mmap private not fixed
5955 mmap private fixed at somewhere currently unmapped
5956 mmap private fixed at somewhere already mapped
5957 mmap shared not fixed
5958 mmap shared fixed at somewhere currently unmapped
5959 mmap shared fixed at somewhere already mapped
5960 For private mappings, we should verify that changes cannot be read()
5961 back from the file, nor mmap's back from the file at a different
5962 address. (There have been systems where private was not correctly
5963 implemented like the infamous i386 svr4.0, and systems where the
5964 VM page cache was not coherent with the file system buffer cache
5965 like early versions of FreeBSD and possibly contemporary NetBSD.)
5966 For shared mappings, we should conversely verify that changes get
5967 propagated back to all the places they're supposed to be.
5968
5969 Grep wants private fixed already mapped.
5970 The main things grep needs to know about mmap are:
5971 * does it exist and is it safe to write into the mmap'd area
5972 * how to use it (BSD variants) */
5973
5974#include <fcntl.h>
5975#include <sys/mman.h>
5976
0bd0bef6 5977#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
b3076f16 5978char *malloc ();
5979#endif
5980
5981/* This mess was copied from the GNU getpagesize.h. */
0bd0bef6 5982#ifndef HAVE_GETPAGESIZE
b3076f16 5983/* Assume that all systems that can run configure have sys/param.h. */
0bd0bef6 5984# ifndef HAVE_SYS_PARAM_H
b3076f16 5985# define HAVE_SYS_PARAM_H 1
5986# endif
5987
5988# ifdef _SC_PAGESIZE
5989# define getpagesize() sysconf(_SC_PAGESIZE)
5990# else /* no _SC_PAGESIZE */
0bd0bef6 5991# ifdef HAVE_SYS_PARAM_H
b3076f16 5992# include <sys/param.h>
5993# ifdef EXEC_PAGESIZE
5994# define getpagesize() EXEC_PAGESIZE
5995# else /* no EXEC_PAGESIZE */
5996# ifdef NBPG
5997# define getpagesize() NBPG * CLSIZE
5998# ifndef CLSIZE
5999# define CLSIZE 1
6000# endif /* no CLSIZE */
6001# else /* no NBPG */
6002# ifdef NBPC
6003# define getpagesize() NBPC
6004# else /* no NBPC */
6005# ifdef PAGESIZE
6006# define getpagesize() PAGESIZE
6007# endif /* PAGESIZE */
6008# endif /* no NBPC */
6009# endif /* no NBPG */
6010# endif /* no EXEC_PAGESIZE */
6011# else /* no HAVE_SYS_PARAM_H */
6012# define getpagesize() 8192 /* punt totally */
6013# endif /* no HAVE_SYS_PARAM_H */
6014# endif /* no _SC_PAGESIZE */
6015
6016#endif /* no HAVE_GETPAGESIZE */
6017
6018int
6019main ()
6020{
6021 char *data, *data2, *data3;
6022 int i, pagesize;
6023 int fd;
6024
6025 pagesize = getpagesize ();
6026
6027 /* First, make a file with some known garbage in it. */
6028 data = (char *) malloc (pagesize);
6029 if (!data)
a8b2ad8d 6030 return 1;
b3076f16 6031 for (i = 0; i < pagesize; ++i)
6032 *(data + i) = rand ();
6033 umask (0);
6034 fd = creat ("conftest.mmap", 0600);
6035 if (fd < 0)
a8b2ad8d 6036 return 1;
b3076f16 6037 if (write (fd, data, pagesize) != pagesize)
a8b2ad8d 6038 return 1;
b3076f16 6039 close (fd);
6040
6041 /* Next, try to mmap the file at a fixed address which already has
6042 something else allocated at it. If we can, also make sure that
6043 we see the same garbage. */
6044 fd = open ("conftest.mmap", O_RDWR);
6045 if (fd < 0)
a8b2ad8d 6046 return 1;
b3076f16 6047 data2 = (char *) malloc (2 * pagesize);
6048 if (!data2)
a8b2ad8d 6049 return 1;
6050 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
b3076f16 6051 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6052 MAP_PRIVATE | MAP_FIXED, fd, 0L))
a8b2ad8d 6053 return 1;
b3076f16 6054 for (i = 0; i < pagesize; ++i)
6055 if (*(data + i) != *(data2 + i))
a8b2ad8d 6056 return 1;
b3076f16 6057
6058 /* Finally, make sure that changes to the mapped area do not
6059 percolate back to the file as seen by read(). (This is a bug on
6060 some variants of i386 svr4.0.) */
6061 for (i = 0; i < pagesize; ++i)
6062 *(data2 + i) = *(data2 + i) + 1;
6063 data3 = (char *) malloc (pagesize);
6064 if (!data3)
a8b2ad8d 6065 return 1;
b3076f16 6066 if (read (fd, data3, pagesize) != pagesize)
a8b2ad8d 6067 return 1;
b3076f16 6068 for (i = 0; i < pagesize; ++i)
6069 if (*(data + i) != *(data3 + i))
a8b2ad8d 6070 return 1;
b3076f16 6071 close (fd);
a8b2ad8d 6072 return 0;
db946ede 6073}
6074_ACEOF
6075if ac_fn_c_try_run "$LINENO"; then :
b3076f16 6076 ac_cv_func_mmap_fixed_mapped=yes
6077else
db946ede 6078 ac_cv_func_mmap_fixed_mapped=no
b3076f16 6079fi
db946ede 6080rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6081 conftest.$ac_objext conftest.beam conftest.$ac_ext
b3076f16 6082fi
a8b2ad8d 6083
b3076f16 6084fi
db946ede 6085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6086$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
b3076f16 6087if test $ac_cv_func_mmap_fixed_mapped = yes; then
6088
db946ede 6089$as_echo "#define HAVE_MMAP 1" >>confdefs.h
b3076f16 6090
6091fi
6092rm -f conftest.mmap
6093
6094
db946ede 6095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin_len" >&5
6096$as_echo_n "checking for sin_len... " >&6; }
6097if test "${ac_cv_sin_len+set}" = set; then :
6098 $as_echo_n "(cached) " >&6
b3076f16 6099else
db946ede 6100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 6101/* end confdefs.h. */
6102#include <sys/types.h>
6103#include <netinet/in.h>
6104int
6105main ()
6106{
6107struct sockaddr_in *sin; sin->sin_len = 0;
6108 ;
6109 return 0;
6110}
6111_ACEOF
db946ede 6112if ac_fn_c_try_compile "$LINENO"; then :
b3076f16 6113 ac_cv_sin_len="yes"
6114else
db946ede 6115 ac_cv_sin_len="no"
b3076f16 6116fi
a8b2ad8d 6117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6118fi
db946ede 6119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sin_len" >&5
6120$as_echo "$ac_cv_sin_len" >&6; }
b3076f16 6121if test $ac_cv_sin_len = yes ; then
6122
db946ede 6123$as_echo "#define HAVE_SIN_LEN 1" >>confdefs.h
b3076f16 6124
6125fi
6126
db946ede 6127ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
79886419 6128#include<sys/socket.h>
db946ede 6129"
6130if test "x$ac_cv_type_socklen_t" = x""yes; then :
79886419 6131
0f6fe38c 6132else
ff3b058a 6133
db946ede 6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
6135$as_echo_n "checking for socklen_t equivalent... " >&6; }
6136 if test "${curl_cv_socklen_t_equiv+set}" = set; then :
6137 $as_echo_n "(cached) " >&6
ff3b058a 6138else
0f6fe38c 6139
6140 curl_cv_socklen_t_equiv=
6141 for arg2 in "struct sockaddr" void ; do
6142 for t in int size_t unsigned long "unsigned long" ; do
db946ede 6143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ff3b058a 6144/* end confdefs.h. */
0f6fe38c 6145#include <sys/types.h>
6146#include <sys/socket.h>
6147int getpeername (int $arg2 *, $t *);
6148int
6149main ()
6150{
6151$t len;
6152 getpeername(0, 0, &len);
6153 ;
6154 return 0;
6155}
79886419 6156_ACEOF
db946ede 6157if ac_fn_c_try_compile "$LINENO"; then :
0f6fe38c 6158 curl_cv_socklen_t_equiv="$t"
6159 break
79886419 6160fi
a8b2ad8d 6161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0f6fe38c 6162 done
6163 done
79886419 6164
6165fi
6166
db946ede 6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
6168$as_echo "$curl_cv_socklen_t_equiv" >&6; }
79886419 6169
0f6fe38c 6170cat >>confdefs.h <<_ACEOF
6171#define socklen_t $curl_cv_socklen_t_equiv
79886419 6172_ACEOF
6173
0f6fe38c 6174fi
6175
6176
6177OLD_CFLAGS=$CFLAGS
6178CFLAGS="$CFLAGS -W -Wall -Werror"
b3076f16 6179
1136f709 6180if test "z$USE_MAINTAINER_MODE" = zyes ; then
6181 CFLAGS="$CFLAGS -ansi"
6182fi
6183
db946ede 6184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6185$as_echo_n "checking for inline... " >&6; }
6186if test "${ac_cv_c_inline+set}" = set; then :
6187 $as_echo_n "(cached) " >&6
1136f709 6188else
6189 ac_cv_c_inline=no
6190for ac_kw in inline __inline__ __inline; do
db946ede 6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1136f709 6192/* end confdefs.h. */
6193#ifndef __cplusplus
6194typedef int foo_t;
6195static $ac_kw foo_t static_foo () {return 0; }
6196$ac_kw foo_t foo () {return 0; }
6197#endif
6198
6199_ACEOF
db946ede 6200if ac_fn_c_try_compile "$LINENO"; then :
1136f709 6201 ac_cv_c_inline=$ac_kw
1136f709 6202fi
1136f709 6203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6204 test "$ac_cv_c_inline" != no && break
6205done
6206
6207fi
db946ede 6208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6209$as_echo "$ac_cv_c_inline" >&6; }
1136f709 6210
6211case $ac_cv_c_inline in
6212 inline | yes) ;;
6213 *)
6214 case $ac_cv_c_inline in
6215 no) ac_val=;;
6216 *) ac_val=$ac_cv_c_inline;;
6217 esac
6218 cat >>confdefs.h <<_ACEOF
6219#ifndef __cplusplus
6220#define inline $ac_val
6221#endif
6222_ACEOF
6223 ;;
6224esac
6225
6226
db946ede 6227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t format" >&5
6228$as_echo_n "checking for time_t format... " >&6; }
6229if test "${ac_cv_fmt_time_t+set}" = set; then :
6230 $as_echo_n "(cached) " >&6
b3076f16 6231else
6232
6233ac_cv_fmt_time_t=no
db946ede 6234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235/* end confdefs.h. */
b3076f16 6236#include <sys/types.h>
6237#include <stdio.h>
6238void myfunc(void) {
6239 time_t test=0;
6240 printf("%li", test);
6241}
6242_ACEOF
db946ede 6243if ac_fn_c_try_compile "$LINENO"; then :
b3076f16 6244 ac_cv_fmt_time_t="\"%li\""
b3076f16 6245fi
a8b2ad8d 6246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6247if test $ac_cv_fmt_time_t = no; then
db946ede 6248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249/* end confdefs.h. */
b3076f16 6250#include <sys/types.h>
6251#include <stdio.h>
6252void myfunc(void) {
6253 time_t test=0;
6254 printf("%i", test);
6255}
6256_ACEOF
db946ede 6257if ac_fn_c_try_compile "$LINENO"; then :
b3076f16 6258 ac_cv_fmt_time_t="\"%i\""
b3076f16 6259fi
a8b2ad8d 6260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6261fi
6262if test $ac_cv_fmt_time_t = no; then
db946ede 6263as_fn_error "Cannot detect format string for time_t
6264Please check sys/types.h for the typedef of time_t and submit to a developer" "$LINENO" 5
b3076f16 6265fi
6266
6267fi
6268
6269
6270cat >>confdefs.h <<_ACEOF
6271#define FMT_TIME_T $ac_cv_fmt_time_t
6272_ACEOF
6273
db946ede 6274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fmt_time_t" >&5
6275$as_echo "$ac_cv_fmt_time_t" >&6; }
b3076f16 6276
db946ede 6277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
6278$as_echo_n "checking for va_copy... " >&6; }
6279if test "${ac_cv_c_va_copy+set}" = set; then :
6280 $as_echo_n "(cached) " >&6
b3076f16 6281else
db946ede 6282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 6283/* end confdefs.h. */
6284#include <stdarg.h>
6285int
6286main ()
6287{
6288va_list ap1, ap2; va_copy(ap1, ap2);
6289 ;
6290 return 0;
6291}
6292_ACEOF
db946ede 6293if ac_fn_c_try_link "$LINENO"; then :
b3076f16 6294 ac_cv_c_va_copy="yes"
6295else
db946ede 6296 ac_cv_c_va_copy="no"
b3076f16 6297
6298fi
db946ede 6299rm -f core conftest.err conftest.$ac_objext \
6300 conftest$ac_exeext conftest.$ac_ext
b3076f16 6301fi
db946ede 6302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_va_copy" >&5
6303$as_echo "$ac_cv_c_va_copy" >&6; }
b3076f16 6304if test "$ac_cv_c_va_copy" = "yes" ; then
6305
db946ede 6306$as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
b3076f16 6307
6308fi
6309
db946ede 6310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
6311$as_echo_n "checking for __va_copy... " >&6; }
6312if test "${ac_cv_c___va_copy+set}" = set; then :
6313 $as_echo_n "(cached) " >&6
b3076f16 6314else
db946ede 6315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 6316/* end confdefs.h. */
6317#include <stdarg.h>
6318int
6319main ()
6320{
6321va_list ap1, ap2; __va_copy(ap1, ap2);
6322 ;
6323 return 0;
6324}
6325_ACEOF
db946ede 6326if ac_fn_c_try_link "$LINENO"; then :
b3076f16 6327 ac_cv_c___va_copy="yes"
6328else
db946ede 6329 ac_cv_c___va_copy="no"
b3076f16 6330
6331fi
db946ede 6332rm -f core conftest.err conftest.$ac_objext \
6333 conftest$ac_exeext conftest.$ac_ext
b3076f16 6334fi
db946ede 6335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c___va_copy" >&5
6336$as_echo "$ac_cv_c___va_copy" >&6; }
b3076f16 6337if test "$ac_cv_c___va_copy" = "yes" ; then
6338
db946ede 6339$as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
b3076f16 6340
6341fi
6342
6343CFLAGS=$OLD_CFLAGS
6344
db946ede 6345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which malloc to use" >&5
6346$as_echo_n "checking which malloc to use... " >&6; }
b3076f16 6347
a8b2ad8d 6348# Check whether --with-malloc was given.
db946ede 6349if test "${with_malloc+set}" = set; then :
a8b2ad8d 6350 withval=$with_malloc;
b3076f16 6351else
6352 withval="system"
a8b2ad8d 6353fi
6354
b3076f16 6355if test "x$withval" = "xsystem" ; then
db946ede 6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5
6357$as_echo "system" >&6; }
b3076f16 6358
db946ede 6359$as_echo "#define WITH_MALLOC_SYSTEM 1" >>confdefs.h
b3076f16 6360
5b1166fd 6361 x3_malloc="System"
b3076f16 6362elif test "x$withval" = "xdmalloc" ; then
db946ede 6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dmalloc" >&5
6364$as_echo "dmalloc" >&6; }
6365 for ac_header in dmalloc.h
6366do :
6367 ac_fn_c_check_header_mongrel "$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default"
6368if test "x$ac_cv_header_dmalloc_h" = x""yes; then :
b3076f16 6369 cat >>confdefs.h <<_ACEOF
db946ede 6370#define HAVE_DMALLOC_H 1
b3076f16 6371_ACEOF
6372
6373else
db946ede 6374 as_fn_error "dmalloc header file missing. dmalloc build will fail." "$LINENO" 5
b3076f16 6375fi
6376
6377done
6378
db946ede 6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -ldmalloc" >&5
6380$as_echo_n "checking for malloc in -ldmalloc... " >&6; }
6381if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then :
6382 $as_echo_n "(cached) " >&6
b3076f16 6383else
6384 ac_check_lib_save_LIBS=$LIBS
6385LIBS="-ldmalloc $LIBS"
db946ede 6386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 6387/* end confdefs.h. */
6388
a8b2ad8d 6389/* Override any GCC internal prototype to avoid an error.
6390 Use char because int might match the return type of a GCC
6391 builtin and then its argument prototype would still apply. */
b3076f16 6392#ifdef __cplusplus
6393extern "C"
6394#endif
b3076f16 6395char malloc ();
6396int
6397main ()
6398{
a8b2ad8d 6399return malloc ();
db946ede 6400 ;
6401 return 0;
6402}
6403_ACEOF
6404if ac_fn_c_try_link "$LINENO"; then :
6405 ac_cv_lib_dmalloc_malloc=yes
b3076f16 6406else
db946ede 6407 ac_cv_lib_dmalloc_malloc=no
b3076f16 6408fi
db946ede 6409rm -f core conftest.err conftest.$ac_objext \
6410 conftest$ac_exeext conftest.$ac_ext
6411LIBS=$ac_check_lib_save_LIBS
6412fi
6413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_malloc" >&5
6414$as_echo "$ac_cv_lib_dmalloc_malloc" >&6; }
6415if test "x$ac_cv_lib_dmalloc_malloc" = x""yes; then :
6416 cat >>confdefs.h <<_ACEOF
6417#define HAVE_LIBDMALLOC 1
6418_ACEOF
a8b2ad8d 6419
db946ede 6420 LIBS="-ldmalloc $LIBS"
b3076f16 6421
b3076f16 6422else
db946ede 6423 as_fn_error "dmalloc library is missing. dmalloc build will fail." "$LINENO" 5
b3076f16 6424fi
b3076f16 6425
db946ede 6426
6427$as_echo "#define WITH_MALLOC_DMALLOC 1" >>confdefs.h
6428
6429 x3_malloc="DMalloc"
6430elif test "x$withval" = "xmpatrol" ; then
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mpatrol" >&5
6432$as_echo "mpatrol" >&6; }
6433 for ac_header in mpatrol.h
6434do :
6435 ac_fn_c_check_header_mongrel "$LINENO" "mpatrol.h" "ac_cv_header_mpatrol_h" "$ac_includes_default"
6436if test "x$ac_cv_header_mpatrol_h" = x""yes; then :
b3076f16 6437 cat >>confdefs.h <<_ACEOF
db946ede 6438#define HAVE_MPATROL_H 1
b3076f16 6439_ACEOF
6440
6441else
db946ede 6442 as_fn_error "mpatrol header file missing. mpatrol build will fail." "$LINENO" 5
b3076f16 6443fi
6444
6445done
6446
db946ede 6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
6448$as_echo_n "checking for elf_begin in -lelf... " >&6; }
6449if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
6450 $as_echo_n "(cached) " >&6
b3076f16 6451else
6452 ac_check_lib_save_LIBS=$LIBS
6453LIBS="-lelf $LIBS"
db946ede 6454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 6455/* end confdefs.h. */
6456
a8b2ad8d 6457/* Override any GCC internal prototype to avoid an error.
6458 Use char because int might match the return type of a GCC
6459 builtin and then its argument prototype would still apply. */
b3076f16 6460#ifdef __cplusplus
6461extern "C"
6462#endif
b3076f16 6463char elf_begin ();
6464int
6465main ()
6466{
a8b2ad8d 6467return elf_begin ();
b3076f16 6468 ;
6469 return 0;
6470}
6471_ACEOF
db946ede 6472if ac_fn_c_try_link "$LINENO"; then :
b3076f16 6473 ac_cv_lib_elf_elf_begin=yes
6474else
db946ede 6475 ac_cv_lib_elf_elf_begin=no
b3076f16 6476fi
db946ede 6477rm -f core conftest.err conftest.$ac_objext \
6478 conftest$ac_exeext conftest.$ac_ext
b3076f16 6479LIBS=$ac_check_lib_save_LIBS
6480fi
db946ede 6481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
6482$as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
6483if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
b3076f16 6484 cat >>confdefs.h <<_ACEOF
6485#define HAVE_LIBELF 1
6486_ACEOF
6487
6488 LIBS="-lelf $LIBS"
6489
6490fi
6491
db946ede 6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __mp_atexit in -lmpatrol" >&5
6493$as_echo_n "checking for __mp_atexit in -lmpatrol... " >&6; }
6494if test "${ac_cv_lib_mpatrol___mp_atexit+set}" = set; then :
6495 $as_echo_n "(cached) " >&6
b3076f16 6496else
6497 ac_check_lib_save_LIBS=$LIBS
6498LIBS="-lmpatrol $LIBS"
db946ede 6499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 6500/* end confdefs.h. */
6501
a8b2ad8d 6502/* Override any GCC internal prototype to avoid an error.
6503 Use char because int might match the return type of a GCC
6504 builtin and then its argument prototype would still apply. */
b3076f16 6505#ifdef __cplusplus
6506extern "C"
6507#endif
b3076f16 6508char __mp_atexit ();
6509int
6510main ()
6511{
a8b2ad8d 6512return __mp_atexit ();
b3076f16 6513 ;
6514 return 0;
6515}
6516_ACEOF
db946ede 6517if ac_fn_c_try_link "$LINENO"; then :
b3076f16 6518 ac_cv_lib_mpatrol___mp_atexit=yes
6519else
db946ede 6520 ac_cv_lib_mpatrol___mp_atexit=no
b3076f16 6521fi
db946ede 6522rm -f core conftest.err conftest.$ac_objext \
6523 conftest$ac_exeext conftest.$ac_ext
b3076f16 6524LIBS=$ac_check_lib_save_LIBS
6525fi
db946ede 6526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpatrol___mp_atexit" >&5
6527$as_echo "$ac_cv_lib_mpatrol___mp_atexit" >&6; }
6528if test "x$ac_cv_lib_mpatrol___mp_atexit" = x""yes; then :
b3076f16 6529 cat >>confdefs.h <<_ACEOF
6530#define HAVE_LIBMPATROL 1
6531_ACEOF
6532
6533 LIBS="-lmpatrol $LIBS"
6534
6535else
db946ede 6536 as_fn_error "mpatrol library is missing completely. mpatrol build will fail." "$LINENO" 5
b3076f16 6537fi
6538
6539
db946ede 6540$as_echo "#define WITH_MALLOC_MPATROL 1" >>confdefs.h
b3076f16 6541
5b1166fd 6542 x3_malloc="MPatrol"
b3076f16 6543elif test "x$withval" = "xboehm-gc" ; then
db946ede 6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm-gc" >&5
6545$as_echo "boehm-gc" >&6; }
6546 for ac_header in gc/gc.h
6547do :
6548 ac_fn_c_check_header_mongrel "$LINENO" "gc/gc.h" "ac_cv_header_gc_gc_h" "$ac_includes_default"
6549if test "x$ac_cv_header_gc_gc_h" = x""yes; then :
b3076f16 6550 cat >>confdefs.h <<_ACEOF
db946ede 6551#define HAVE_GC_GC_H 1
b3076f16 6552_ACEOF
6553
6554else
db946ede 6555 as_fn_error "Boehm GC header file missing. boehm-gc build will fail." "$LINENO" 5
b3076f16 6556fi
6557
6558done
6559
db946ede 6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6561$as_echo_n "checking for dlopen in -ldl... " >&6; }
6562if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
6563 $as_echo_n "(cached) " >&6
b3076f16 6564else
6565 ac_check_lib_save_LIBS=$LIBS
6566LIBS="-ldl $LIBS"
db946ede 6567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 6568/* end confdefs.h. */
6569
a8b2ad8d 6570/* Override any GCC internal prototype to avoid an error.
6571 Use char because int might match the return type of a GCC
6572 builtin and then its argument prototype would still apply. */
b3076f16 6573#ifdef __cplusplus
6574extern "C"
6575#endif
b3076f16 6576char dlopen ();
6577int
6578main ()
6579{
a8b2ad8d 6580return dlopen ();
b3076f16 6581 ;
6582 return 0;
6583}
6584_ACEOF
db946ede 6585if ac_fn_c_try_link "$LINENO"; then :
b3076f16 6586 ac_cv_lib_dl_dlopen=yes
6587else
db946ede 6588 ac_cv_lib_dl_dlopen=no
b3076f16 6589fi
db946ede 6590rm -f core conftest.err conftest.$ac_objext \
6591 conftest$ac_exeext conftest.$ac_ext
b3076f16 6592LIBS=$ac_check_lib_save_LIBS
6593fi
db946ede 6594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6595$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6596if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
b3076f16 6597 cat >>confdefs.h <<_ACEOF
6598#define HAVE_LIBDL 1
6599_ACEOF
6600
6601 LIBS="-ldl $LIBS"
6602
6603else
db946ede 6604 as_fn_error "libdl library is missing. boehm-gc build will fail." "$LINENO" 5
b3076f16 6605fi
6606
db946ede 6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GC_gcollect in -lgc" >&5
6608$as_echo_n "checking for GC_gcollect in -lgc... " >&6; }
6609if test "${ac_cv_lib_gc_GC_gcollect+set}" = set; then :
6610 $as_echo_n "(cached) " >&6
b3076f16 6611else
6612 ac_check_lib_save_LIBS=$LIBS
6613LIBS="-lgc $LIBS"
db946ede 6614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3076f16 6615/* end confdefs.h. */
6616
a8b2ad8d 6617/* Override any GCC internal prototype to avoid an error.
6618 Use char because int might match the return type of a GCC
6619 builtin and then its argument prototype would still apply. */
b3076f16 6620#ifdef __cplusplus
6621extern "C"
6622#endif
b3076f16 6623char GC_gcollect ();
6624int
6625main ()
6626{
a8b2ad8d 6627return GC_gcollect ();
b3076f16 6628 ;
6629 return 0;
6630}
6631_ACEOF
db946ede 6632if ac_fn_c_try_link "$LINENO"; then :
b3076f16 6633 ac_cv_lib_gc_GC_gcollect=yes
6634else
db946ede 6635 ac_cv_lib_gc_GC_gcollect=no
b3076f16 6636fi
db946ede 6637rm -f core conftest.err conftest.$ac_objext \
6638 conftest$ac_exeext conftest.$ac_ext
b3076f16 6639LIBS=$ac_check_lib_save_LIBS
6640fi
db946ede 6641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gc_GC_gcollect" >&5
6642$as_echo "$ac_cv_lib_gc_GC_gcollect" >&6; }
6643if test "x$ac_cv_lib_gc_GC_gcollect" = x""yes; then :
b3076f16 6644 cat >>confdefs.h <<_ACEOF
6645#define HAVE_LIBGC 1
6646_ACEOF
6647
6648 LIBS="-lgc $LIBS"
6649
6650else
db946ede 6651 as_fn_error "Boehm GC library is missing. boehm-gc build will fail." "$LINENO" 5
b3076f16 6652fi
6653
6654
db946ede 6655$as_echo "#define WITH_MALLOC_BOEHM_GC 1" >>confdefs.h
b3076f16 6656
5b1166fd 6657 x3_malloc="Boehm"
b8cb2a14 6658elif test "x$withval" = "xx3" ; then
db946ede 6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: x3" >&5
6660$as_echo "x3" >&6; }
ec1a68c8 6661
db946ede 6662$as_echo "#define WITH_MALLOC_X3 1" >>confdefs.h
ec1a68c8 6663
b8cb2a14 6664 MODULE_OBJS="$MODULE_OBJS alloc-x3.\$(OBJEXT)"
5b1166fd 6665 x3_malloc="X3"
ceafd592 6666elif test "x$withval" = "xslab" ; then
db946ede 6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: slab" >&5
6668$as_echo "slab" >&6; }
ceafd592 6669
db946ede 6670$as_echo "#define WITH_MALLOC_SLAB 1" >>confdefs.h
ceafd592 6671
6672 MODULE_OBJS="$MODULE_OBJS alloc-slab.\$(OBJEXT)"
5b1166fd 6673 x3_malloc="Slab"
b3076f16 6674else
db946ede 6675 as_fn_error "Unknown malloc type $withval" "$LINENO" 5
b3076f16 6676fi
6677
db946ede 6678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which protocol to use" >&5
6679$as_echo_n "checking which protocol to use... " >&6; }
b3076f16 6680
a8b2ad8d 6681# Check whether --with-protocol was given.
db946ede 6682if test "${with_protocol+set}" = set; then :
a8b2ad8d 6683 withval=$with_protocol;
b3076f16 6684else
6685 withval="p10"
a8b2ad8d 6686fi
6687
b3076f16 6688if test "x$withval" = "xp10" ; then
db946ede 6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: P10" >&5
6690$as_echo "P10" >&6; }
b3076f16 6691
db946ede 6692$as_echo "#define WITH_PROTOCOL_P10 1" >>confdefs.h
b3076f16 6693
2f61d1d7 6694 MODULE_OBJS="$MODULE_OBJS proto-p10.\$(OBJEXT)"
0f6fe38c 6695 PROTO_FILES=proto-p10.c
5b1166fd 6696 x3_ircd="P10"
b3076f16 6697else
db946ede 6698 as_fn_error "Unknown IRC dialect $withval" "$LINENO" 5
b3076f16 6699fi
6700
db946ede 6701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to send mail" >&5
6702$as_echo_n "checking how to send mail... " >&6; }
1136f709 6703
6704# Check whether --with-mail was given.
db946ede 6705if test "${with_mail+set}" = set; then :
1136f709 6706 withval=$with_mail;
6707else
6708 withval="sendmail"
6709fi
6710
6711if test -r "${srcdir}/src/mail-${withval}.c" ; then
db946ede 6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
6713$as_echo "$withval" >&6; }
1136f709 6714 MODULE_OBJS="$MODULE_OBJS mail-${withval}.\$(OBJEXT)"
6715else
db946ede 6716 as_fn_error "Unknown mail method $withval" "$LINENO" 5
1136f709 6717fi
6718
db946ede 6719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking I/O multiplexing backends" >&5
6720$as_echo_n "checking I/O multiplexing backends... " >&6; }
1136f709 6721IOMUXES=""
6722
6723if test "x$ac_cv_func_select" = xyes ; then
6724
db946ede 6725$as_echo "#define WITH_IOSET_SELECT 1" >>confdefs.h
1136f709 6726
6727 MODULE_OBJS="$MODULE_OBJS ioset-select.\$(OBJEXT)"
6728 IOMUXES="$IOMUXES select"
6729fi
6730
6731
6732# Check whether --with-epoll was given.
db946ede 6733if test "${with_epoll+set}" = set; then :
1136f709 6734 withval=$with_epoll;
6735else
6736 withval="$ac_cv_func_epoll_create"
6737fi
6738
6739if test "x$withval" = xyes ; then
6740
db946ede 6741$as_echo "#define WITH_IOSET_EPOLL 1" >>confdefs.h
1136f709 6742
6743 MODULE_OBJS="$MODULE_OBJS ioset-epoll.\$(OBJEXT)"
6744 IOMUXES="$IOMUXES epoll"
6745fi
6746
6747
6748# Check whether --with-kevent was given.
db946ede 6749if test "${with_kevent+set}" = set; then :
1136f709 6750 withval=$with_kevent;
6751else
6752 withval="$ac_cv_func_kevent"
6753fi
6754
6755if test "x$withval" = xyes ; then
6756
db946ede 6757$as_echo "#define WITH_IOSET_KEVENT 1" >>confdefs.h
1136f709 6758
6759 MODULE_OBJS="$MODULE_OBJS ioset-kevent.\$(OBJEXT)"
6760 IOMUXES="$IOMUXES kevent"
6761fi
6762
6763IOMUXES=`echo $IOMUXES | sed 's/^ +//'`
db946ede 6764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $IOMUXES" >&5
6765$as_echo "$IOMUXES" >&6; }
1136f709 6766if test "x$IOMUXES" = "x" ; then
db946ede 6767 as_fn_error "No supported I/O multiplexing backend found" "$LINENO" 5
1136f709 6768else
db946ede 6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IOMUXES" >&5
6770$as_echo "$IOMUXES" >&6; }
1136f709 6771fi
6772
8da89711 6773
6774# Check whether --with-getopt was given.
db946ede 6775if test "${with_getopt+set}" = set; then :
8da89711 6776 withval=$with_getopt; if test "$withval" = no; then
6777
db946ede 6778$as_echo "#define IGNORE_GETOPT 1" >>confdefs.h
8da89711 6779
6780fi
6781fi
6782
6783
db946ede 6784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable tokenization" >&5
6785$as_echo_n "checking whether to enable tokenization... " >&6; }
8da89711 6786# Check whether --enable-tokens was given.
db946ede 6787if test "${enable_tokens+set}" = set; then :
8da89711 6788 enableval=$enable_tokens;
6789else
6790 enableval=yes
6791fi
6792
6793if test "z$enableval" = zno ; then
db946ede 6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795$as_echo "no" >&6; }
8da89711 6796else
6797
db946ede 6798$as_echo "#define ENABLE_TOKENS 1" >>confdefs.h
8da89711 6799
db946ede 6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6801$as_echo "yes" >&6; }
8da89711 6802fi
6803
db946ede 6804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug behaviors" >&5
6805$as_echo_n "checking whether to enable debug behaviors... " >&6; }
8da89711 6806# Check whether --enable-debug was given.
db946ede 6807if test "${enable_debug+set}" = set; then :
8da89711 6808 enableval=$enable_debug;
6809 CPPFLAGS="$CPPFLAGS"
db946ede 6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6811$as_echo "yes" >&6; }
8da89711 6812 x3_debug="Enabled"
e166c31b 6813
6814else
6815
8da89711 6816 CPPFLAGS="$CPPFLAGS -DNDEBUG"
db946ede 6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6818$as_echo "no" >&6; }
8da89711 6819 x3_debug="Disabled"
e166c31b 6820
6821fi
6822
6823
8da89711 6824if test -e src ; then
6825 if test ! -d src ; then
db946ede 6826 as_fn_error "src exists but is not a directory; please move it out of the way." "$LINENO" 5
8da89711 6827 fi
6828else
6829 mkdir src
6830fi
db946ede 6831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra module files" >&5
6832$as_echo_n "checking for extra module files... " >&6; }
8da89711 6833MODULE_DEFINES="src/modules-list.h"
6834echo > $MODULE_DEFINES
6835touch $MODULE_DEFINES
6836# Check whether --enable-modules was given.
db946ede 6837if test "${enable_modules+set}" = set; then :
8da89711 6838 enableval=$enable_modules;
6839 OIFS="$IFS"
6840 IFS=','
6841 EXTRA_MODULE_OBJS=""
6842 module_list=""
6843 for module in $enableval ; do
6844 module=`echo $module | sed -e s/^mod-// -e s/\.c\$//`
6845 EXTRA_MODULE_OBJS="$EXTRA_MODULE_OBJS mod-$module.\$(OBJEXT)"
6846 module_list="$module_list $module"
6847 echo "WITH_MODULE($module)" >> $MODULE_DEFINES
6848 if test "x$module" = "xtrack" ; then
6849 TRACK="-D HAVE_TRACK"
e166c31b 6850
db946ede 6851$as_echo "#define HAVE_TRACK 1" >>confdefs.h
e166c31b 6852
8da89711 6853 fi
6854 if test "x$module" = "xhelpserv" ; then
6855 TRACK="-D HAVE_HELPSERV"
e166c31b 6856
db946ede 6857$as_echo "#define HAVE_HELPSERV 1" >>confdefs.h
e166c31b 6858
8da89711 6859 fi
6860 done
6861 IFS="$OIFS"
6862 MODULE_OBJS="$MODULE_OBJS $EXTRA_MODULE_OBJS"
db946ede 6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $module_list" >&5
6864$as_echo "$module_list" >&6; }
8da89711 6865
e166c31b 6866else
e166c31b 6867
db946ede 6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6869$as_echo "none" >&6; }
e166c31b 6870
e166c31b 6871fi
e166c31b 6872
e166c31b 6873
2f65da8f 6874# Check whether --enable-python was given.
db946ede 6875if test "${enable_python+set}" = set; then :
2f65da8f 6876 enableval=$enable_python; python=$enableval
6877else
6878 python=yes
6879fi
6880
6881
6882
8da89711 6883MY_SUBDIRS=""
6884RX_INCLUDES=""
6885RX_LIBS=""
6886if test "${BROKEN_REGEX}" = yes -o "${ac_cv_func_regcomp}" = no; then
6887 MY_SUBDIRS="rx $MY_SUBDIRS"
6888 RX_INCLUDES="-I../rx"
6889 RX_LIBS="../rx/librx.a"
6890fi
6891MY_SUBDIRS="$MY_SUBDIRS src"
6892CFLAGS="$CFLAGS $ANSI_SRC -W -Wall"
6893if test "z$USE_MAINTAINER_MODE" = zyes ; then
0f6fe38c 6894 CFLAGS="$CFLAGS -Werror"
e166c31b 6895fi
6896
6897
8da89711 6898tre_version="0.7.5"
6899withval=''
6900
6901# Check whether --with-tre was given.
db946ede 6902if test "${with_tre+set}" = set; then :
8da89711 6903 withval=$with_tre;
6904fi
6905
6906if test "x$withval" != "x"; then
db946ede 6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using include dir $withval to find libtre" >&5
6908$as_echo "Using include dir $withval to find libtre" >&6; }
39edf54a 6909 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
8da89711 6910 LIBS="$LIBS -L$withval/lib"
6911else
db946ede 6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Looking for tre in system and home dirs (${HOME})..." >&5
6913$as_echo "Looking for tre in system and home dirs (${HOME})..." >&6; }
39edf54a 6914 CPPFLAGS="$CPPFLAGS -I${HOME}/include -L${HOME}/lib"
8da89711 6915 LIBS="$LIBS -L${HOME}/lib"
6916fi
db946ede 6917ac_fn_c_check_header_mongrel "$LINENO" "tre/regex.h" "ac_cv_header_tre_regex_h" "$ac_includes_default"
6918if test "x$ac_cv_header_tre_regex_h" = x""yes; then :
e166c31b 6919
e166c31b 6920else
db946ede 6921 as_fn_error "tre/regex.h, the TRE regex headers, were not found. Install tre or use --with-tre=PATH to tell me how to find it, where PATH/include/tre/regex.h exists. For convenience, just type 'tools/tre_install.sh' now, to install tre in your home directory." "$LINENO" 5
e166c31b 6922fi
6923
e166c31b 6924
db946ede 6925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -ltre" >&5
6926$as_echo_n "checking for regexec in -ltre... " >&6; }
6927if test "${ac_cv_lib_tre_regexec+set}" = set; then :
6928 $as_echo_n "(cached) " >&6
b3076f16 6929else
8da89711 6930 ac_check_lib_save_LIBS=$LIBS
6931LIBS="-ltre $LIBS"
db946ede 6932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8da89711 6933/* end confdefs.h. */
b3076f16 6934
8da89711 6935/* Override any GCC internal prototype to avoid an error.
6936 Use char because int might match the return type of a GCC
6937 builtin and then its argument prototype would still apply. */
6938#ifdef __cplusplus
6939extern "C"
6940#endif
6941char regexec ();
6942int
6943main ()
6944{
6945return regexec ();
6946 ;
6947 return 0;
6948}
6949_ACEOF
db946ede 6950if ac_fn_c_try_link "$LINENO"; then :
8da89711 6951 ac_cv_lib_tre_regexec=yes
b3076f16 6952else
db946ede 6953 ac_cv_lib_tre_regexec=no
a8b2ad8d 6954fi
db946ede 6955rm -f core conftest.err conftest.$ac_objext \
6956 conftest$ac_exeext conftest.$ac_ext
8da89711 6957LIBS=$ac_check_lib_save_LIBS
b3076f16 6958fi
db946ede 6959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tre_regexec" >&5
6960$as_echo "$ac_cv_lib_tre_regexec" >&6; }
6961if test "x$ac_cv_lib_tre_regexec" = x""yes; then :
8da89711 6962 cat >>confdefs.h <<_ACEOF
6963#define HAVE_LIBTRE 1
8de34abd 6964_ACEOF
6965
db946ede 6966 LIBS="-ltre $LIBS"
35305a49 6967
db946ede 6968else
6969 as_fn_error "TRE regex library not found. Install tre, or use --with-tre=PATH to tell me how to find it, where PATH/lib/libtre.so exists. For convenience, just type 'tools/tre_install.sh' now, to install tre in your home directory." "$LINENO" 5
35305a49 6970fi
a8b2ad8d 6971
35305a49 6972
db946ede 6973core_version="1.1"
6974withval=''
35305a49 6975
db946ede 6976# Check whether --with-coredumper was given.
6977if test "${with_coredumper+set}" = set; then :
6978 withval=$with_coredumper;
35305a49 6979fi
a8b2ad8d 6980
db946ede 6981if test "x$withval" != "x"; then
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using include dir $withval to find coredumper" >&5
6983$as_echo "Using include dir $withval to find coredumper" >&6; }
6984 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
6985 LIBS="$LIBS -L$withval/lib"
35305a49 6986else
db946ede 6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Looking for coredumper in system and home dirs (${HOME})..." >&5
6988$as_echo "Looking for coredumper in system and home dirs (${HOME})..." >&6; }
6989 CPPFLAGS="$CPPFLAGS -I${HOME}/include -L${HOME}/lib"
6990 LIBS="$LIBS -Wl,--rpath -Wl,${HOME}/lib"
8da89711 6991fi
db946ede 6992ac_fn_c_check_header_mongrel "$LINENO" "google/coredumper.h" "ac_cv_header_google_coredumper_h" "$ac_includes_default"
6993if test "x$ac_cv_header_google_coredumper_h" = x""yes; then :
8da89711 6994
8da89711 6995else
db946ede 6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: google/coredumper.h, the coredumper headers, were not found. Install coredumper or use --with-coredumper=PATH to tell me how to find it, where PATH/include/google/coredumper.h exists. For convenience, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&5
6997$as_echo "google/coredumper.h, the coredumper headers, were not found. Install coredumper or use --with-coredumper=PATH to tell me how to find it, where PATH/include/google/coredumper.h exists. For convenience, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&6; }
8da89711 6998fi
6999
7000
db946ede 7001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WriteCoreDump in -lcoredumper" >&5
7002$as_echo_n "checking for WriteCoreDump in -lcoredumper... " >&6; }
7003if test "${ac_cv_lib_coredumper_WriteCoreDump+set}" = set; then :
7004 $as_echo_n "(cached) " >&6
8da89711 7005else
7006 ac_check_lib_save_LIBS=$LIBS
7007LIBS="-lcoredumper $LIBS"
db946ede 7008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8da89711 7009/* end confdefs.h. */
7010
7011/* Override any GCC internal prototype to avoid an error.
7012 Use char because int might match the return type of a GCC
7013 builtin and then its argument prototype would still apply. */
7014#ifdef __cplusplus
7015extern "C"
7016#endif
7017char WriteCoreDump ();
7018int
7019main ()
7020{
7021return WriteCoreDump ();
7022 ;
7023 return 0;
7024}
7025_ACEOF
db946ede 7026if ac_fn_c_try_link "$LINENO"; then :
8da89711 7027 ac_cv_lib_coredumper_WriteCoreDump=yes
7028else
db946ede 7029 ac_cv_lib_coredumper_WriteCoreDump=no
35305a49 7030fi
db946ede 7031rm -f core conftest.err conftest.$ac_objext \
7032 conftest$ac_exeext conftest.$ac_ext
8da89711 7033LIBS=$ac_check_lib_save_LIBS
35305a49 7034fi
db946ede 7035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_coredumper_WriteCoreDump" >&5
7036$as_echo "$ac_cv_lib_coredumper_WriteCoreDump" >&6; }
7037if test "x$ac_cv_lib_coredumper_WriteCoreDump" = x""yes; then :
8da89711 7038 cat >>confdefs.h <<_ACEOF
7039#define HAVE_LIBCOREDUMPER 1
7040_ACEOF
7041
7042 LIBS="-lcoredumper $LIBS"
7043
35305a49 7044else
db946ede 7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Coredumper library not found. Install coredumper, or use --with-coredumper=PATH to tell me how to find it, where PATH/lib/libcoredumper.so exists. For convenience, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&5
7046$as_echo "Coredumper library not found. Install coredumper, or use --with-coredumper=PATH to tell me how to find it, where PATH/lib/libcoredumper.so exists. For convenience, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&6; }
35305a49 7047fi
7048
7049
73d4cc91 7050withval=''
7051
7052# Check whether --with-ssl was given.
db946ede 7053if test "${with_ssl+set}" = set; then :
73d4cc91 7054 withval=$with_ssl;
7055fi
7056
7057if test "x$withval" != "x"; then
db946ede 7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using include dir $withval to find openssl" >&5
7059$as_echo "Using include dir $withval to find openssl" >&6; }
73d4cc91 7060 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
7061 LIBS="$LIBS -L$withval/lib"
7062else
db946ede 7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Looking for openssl in system " >&5
7064$as_echo "Looking for openssl in system " >&6; }
73d4cc91 7065fi
7066
db946ede 7067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIO_new in -lssl" >&5
7068$as_echo_n "checking for BIO_new in -lssl... " >&6; }
7069if test "${ac_cv_lib_ssl_BIO_new+set}" = set; then :
7070 $as_echo_n "(cached) " >&6
73d4cc91 7071else
7072 ac_check_lib_save_LIBS=$LIBS
7073LIBS="-lssl $LIBS"
db946ede 7074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73d4cc91 7075/* end confdefs.h. */
7076
7077/* Override any GCC internal prototype to avoid an error.
7078 Use char because int might match the return type of a GCC
7079 builtin and then its argument prototype would still apply. */
7080#ifdef __cplusplus
7081extern "C"
7082#endif
7083char BIO_new ();
7084int
7085main ()
7086{
7087return BIO_new ();
7088 ;
7089 return 0;
7090}
7091_ACEOF
db946ede 7092if ac_fn_c_try_link "$LINENO"; then :
73d4cc91 7093 ac_cv_lib_ssl_BIO_new=yes
7094else
db946ede 7095 ac_cv_lib_ssl_BIO_new=no
73d4cc91 7096fi
db946ede 7097rm -f core conftest.err conftest.$ac_objext \
7098 conftest$ac_exeext conftest.$ac_ext
73d4cc91 7099LIBS=$ac_check_lib_save_LIBS
7100fi
db946ede 7101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_BIO_new" >&5
7102$as_echo "$ac_cv_lib_ssl_BIO_new" >&6; }
7103if test "x$ac_cv_lib_ssl_BIO_new" = x""yes; then :
73d4cc91 7104
7105LIBS="-lssl $LIBS"
73d4cc91 7106for ac_header in openssl/bio.h
db946ede 7107do :
7108 ac_fn_c_check_header_mongrel "$LINENO" "openssl/bio.h" "ac_cv_header_openssl_bio_h" "$ac_includes_default"
7109if test "x$ac_cv_header_openssl_bio_h" = x""yes; then :
73d4cc91 7110 cat >>confdefs.h <<_ACEOF
db946ede 7111#define HAVE_OPENSSL_BIO_H 1
73d4cc91 7112_ACEOF
7113
7114
db946ede 7115$as_echo "#define WITH_SSL 1" >>confdefs.h
73d4cc91 7116
7117ssl_message="LDAP library: enabled"
7118
7119else
7120
7121if test "x$withval" != "x"; then
db946ede 7122 as_fn_error "ssl headers not found" "$LINENO" 5
73d4cc91 7123fi
7124
7125fi
7126
7127done
7128
7129
7130else
7131
7132if test "x$withval" != "x"; then
db946ede 7133 as_fn_error "libldap not found or not valid" "$LINENO" 5
73d4cc91 7134fi
7135
7136
7137fi
7138
db946ede 7139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
7140$as_echo "$LIBS" >&6; }
73d4cc91 7141
7142
8da89711 7143withval=''
35305a49 7144
8da89711 7145# Check whether --with-ldap was given.
db946ede 7146if test "${with_ldap+set}" = set; then :
8da89711 7147 withval=$with_ldap;
7148fi
7149
7150if test "x$withval" != "x"; then
db946ede 7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using include dir $withval to find libldap" >&5
7152$as_echo "Using include dir $withval to find libldap" >&6; }
8da89711 7153 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
7154 LIBS="$LIBS -L$withval/lib"
7155else
db946ede 7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Looking for ldap in system " >&5
7157$as_echo "Looking for ldap in system " >&6; }
8da89711 7158fi
7159
db946ede 7160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_simple_bind_s in -lldap" >&5
7161$as_echo_n "checking for ldap_simple_bind_s in -lldap... " >&6; }
7162if test "${ac_cv_lib_ldap_ldap_simple_bind_s+set}" = set; then :
7163 $as_echo_n "(cached) " >&6
35305a49 7164else
7165 ac_check_lib_save_LIBS=$LIBS
8da89711 7166LIBS="-lldap $LIBS"
db946ede 7167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35305a49 7168/* end confdefs.h. */
7169
a8b2ad8d 7170/* Override any GCC internal prototype to avoid an error.
7171 Use char because int might match the return type of a GCC
7172 builtin and then its argument prototype would still apply. */
35305a49 7173#ifdef __cplusplus
7174extern "C"
7175#endif
39edf54a 7176char ldap_simple_bind_s ();
35305a49 7177int
7178main ()
7179{
39edf54a 7180return ldap_simple_bind_s ();
35305a49 7181 ;
7182 return 0;
7183}
7184_ACEOF
db946ede 7185if ac_fn_c_try_link "$LINENO"; then :
39edf54a 7186 ac_cv_lib_ldap_ldap_simple_bind_s=yes
5b1166fd 7187else
db946ede 7188 ac_cv_lib_ldap_ldap_simple_bind_s=no
35305a49 7189fi
db946ede 7190rm -f core conftest.err conftest.$ac_objext \
7191 conftest$ac_exeext conftest.$ac_ext
35305a49 7192LIBS=$ac_check_lib_save_LIBS
5b1166fd 7193fi
db946ede 7194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_simple_bind_s" >&5
7195$as_echo "$ac_cv_lib_ldap_ldap_simple_bind_s" >&6; }
7196if test "x$ac_cv_lib_ldap_ldap_simple_bind_s" = x""yes; then :
b3076f16 7197
39edf54a 7198LIBS="-lldap $LIBS"
8da89711 7199for ac_header in ldap.h
db946ede 7200do :
7201 ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
7202if test "x$ac_cv_header_ldap_h" = x""yes; then :
8da89711 7203 cat >>confdefs.h <<_ACEOF
db946ede 7204#define HAVE_LDAP_H 1
8da89711 7205_ACEOF
a8b2ad8d 7206
7207
db946ede 7208$as_echo "#define WITH_LDAP 1" >>confdefs.h
a8b2ad8d 7209
8da89711 7210ldap_message="LDAP library: enabled"
7211
a8b2ad8d 7212else
a8b2ad8d 7213
db9a9a8a 7214if test "x$withval" != "x"; then
db946ede 7215 as_fn_error "ldap.h not found" "$LINENO" 5
a8b2ad8d 7216fi
7217
a8b2ad8d 7218fi
a8b2ad8d 7219
8da89711 7220done
7221
a8b2ad8d 7222
7223else
8da89711 7224
db9a9a8a 7225if test "x$withval" != "x"; then
db946ede 7226 as_fn_error "libldap not found or not valid" "$LINENO" 5
8da89711 7227fi
7228
7229
a8b2ad8d 7230fi
7231
2f65da8f 7232
7233
7234if test "$python" = yes; then
7235 # Extract the first word of "python2", so it can be a program name with args.
7236set dummy python2; ac_word=$2
db946ede 7237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238$as_echo_n "checking for $ac_word... " >&6; }
7239if test "${ac_cv_path_pythonpath+set}" = set; then :
7240 $as_echo_n "(cached) " >&6
2f65da8f 7241else
7242 case $pythonpath in
7243 [\\/]* | ?:[\\/]*)
7244 ac_cv_path_pythonpath="$pythonpath" # Let the user override the test with a path.
7245 ;;
7246 *)
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248for as_dir in $PATH
7249do
7250 IFS=$as_save_IFS
7251 test -z "$as_dir" && as_dir=.
db946ede 7252 for ac_exec_ext in '' $ac_executable_extensions; do
2f65da8f 7253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7254 ac_cv_path_pythonpath="$as_dir/$ac_word$ac_exec_ext"
db946ede 7255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2f65da8f 7256 break 2
7257 fi
7258done
db946ede 7259 done
2f65da8f 7260IFS=$as_save_IFS
7261
7262 ;;
7263esac
7264fi
7265pythonpath=$ac_cv_path_pythonpath
7266if test -n "$pythonpath"; then
db946ede 7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonpath" >&5
7268$as_echo "$pythonpath" >&6; }
2f65da8f 7269else
db946ede 7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271$as_echo "no" >&6; }
2f65da8f 7272fi
7273
7274
7275 if test "_$pythonpath" = _ ; then
7276 # Extract the first word of "python", so it can be a program name with args.
7277set dummy python; ac_word=$2
db946ede 7278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7279$as_echo_n "checking for $ac_word... " >&6; }
7280if test "${ac_cv_path_pythonpath+set}" = set; then :
7281 $as_echo_n "(cached) " >&6
2f65da8f 7282else
7283 case $pythonpath in
7284 [\\/]* | ?:[\\/]*)
7285 ac_cv_path_pythonpath="$pythonpath" # Let the user override the test with a path.
7286 ;;
7287 *)
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289for as_dir in $PATH
7290do
7291 IFS=$as_save_IFS
7292 test -z "$as_dir" && as_dir=.
db946ede 7293 for ac_exec_ext in '' $ac_executable_extensions; do
2f65da8f 7294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7295 ac_cv_path_pythonpath="$as_dir/$ac_word$ac_exec_ext"
db946ede 7296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2f65da8f 7297 break 2
7298 fi
7299done
db946ede 7300 done
2f65da8f 7301IFS=$as_save_IFS
7302
7303 ;;
7304esac
7305fi
7306pythonpath=$ac_cv_path_pythonpath
7307if test -n "$pythonpath"; then
db946ede 7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonpath" >&5
7309$as_echo "$pythonpath" >&6; }
2f65da8f 7310else
db946ede 7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7312$as_echo "no" >&6; }
2f65da8f 7313fi
7314
7315
7316 fi
7317 if test "_$pythonpath" = _ ; then
7318 python=no
7319 else
db946ede 7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
7321$as_echo_n "checking Python version... " >&6; }
2f65da8f 7322 PY_VER=`$pythonpath -c 'import distutils.sysconfig; print distutils.sysconfig.get_config_vars("VERSION")[0];'`
7323 PY_LIB=`$pythonpath -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib(standard_lib=1);'`
7324 PY_INC=`$pythonpath -c 'import distutils.sysconfig; print distutils.sysconfig.get_config_vars("INCLUDEPY")[0];'`
7325 $pythonpath -c "import sys; map(int,sys.version[:3].split('.')) >= [2,2] or sys.exit(1)"
db946ede 7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_VER" >&5
7327$as_echo "$PY_VER" >&6; }
2f65da8f 7328 if test "$?" != "1"; then
db946ede 7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python compile flags" >&5
7330$as_echo_n "checking Python compile flags... " >&6; }
2f65da8f 7331 PY_PREFIX=`$pythonpath -c 'import sys; print sys.prefix'`
7332 PY_EXEC_PREFIX=`$pythonpath -c 'import sys; print sys.exec_prefix'`
7333 if test -f $PY_INC/Python.h; then
7334
db946ede 7335$as_echo "#define WITH_PYTHON 1" >>confdefs.h
2f65da8f 7336
7337 PY_LIBS="-L$PY_LIB/config -lpython$PY_VER -lpthread -lutil"
7338 PY_CFLAGS="-I$PY_INC"
db946ede 7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7340$as_echo "ok" >&6; }
cbfd323c 7341 CFLAGS="$CFLAGS $PY_CFLAGS"
7342 LIBS="$LIBS $PY_LIBS"
2f65da8f 7343 else
7344 python=no
db946ede 7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Can't find Python.h" >&5
7346$as_echo "Can't find Python.h" >&6; }
2f65da8f 7347 fi
7348 else
7349 echo "Python too old. Only 2.2 or above is supported."
7350 python=no
7351 fi
7352 fi
7353fi
7354
7355 if test "x$python" = "xyes"; then
7356 DO_PYTHON_TRUE=
7357 DO_PYTHON_FALSE='#'
7358else
7359 DO_PYTHON_TRUE='#'
7360 DO_PYTHON_FALSE=
7361fi
7362
7363
db946ede 7364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
7365$as_echo "$LIBS" >&6; }
a8b2ad8d 7366
7367
7368cat >>confdefs.h <<_ACEOF
7369#define CODENAME "${CODENAME}"
7370_ACEOF
7371
7372
7373
7374
7375
7376
2f65da8f 7377
7378
7379
a8b2ad8d 7380ac_config_files="$ac_config_files Makefile rx/Makefile src/Makefile"
7381
7382cat >confcache <<\_ACEOF
7383# This file is a shell script that caches the results of configure
7384# tests run on this system so they can be shared between configure
7385# scripts and configure runs, see configure's option --config-cache.
7386# It is not useful on other systems. If it contains results you don't
7387# want to keep, you may remove or edit it.
7388#
b3076f16 7389# config.status only pays attention to the cache file if you give it
7390# the --recheck option to rerun configure.
7391#
7392# `ac_cv_env_foo' variables (set or unset) will be overridden when
7393# loading this file, other *unset* `ac_cv_foo' will be assigned the
7394# following values.
7395
7396_ACEOF
7397
7398# The following way of writing the cache mishandles newlines in values,
7399# but we know of no workaround that is simple, portable, and efficient.
a8b2ad8d 7400# So, we kill variables containing newlines.
b3076f16 7401# Ultrix sh set writes to stderr and can't be redirected directly,
7402# and sets the high bit in the cache file unless we assign to the vars.
a8b2ad8d 7403(
7404 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7405 eval ac_val=\$$ac_var
7406 case $ac_val in #(
7407 *${as_nl}*)
7408 case $ac_var in #(
db946ede 7409 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7410$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
a8b2ad8d 7411 esac
7412 case $ac_var in #(
7413 _ | IFS | as_nl) ;; #(
db946ede 7414 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7415 *) { eval $ac_var=; unset $ac_var;} ;;
a8b2ad8d 7416 esac ;;
7417 esac
7418 done
7419
b3076f16 7420 (set) 2>&1 |
a8b2ad8d 7421 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7422 *${as_nl}ac_space=\ *)
db946ede 7423 # `set' does not quote correctly, so add quotes: double-quote
7424 # substitution turns \\\\ into \\, and sed turns \\ into \.
b3076f16 7425 sed -n \
7426 "s/'/'\\\\''/g;
7427 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a8b2ad8d 7428 ;; #(
b3076f16 7429 *)
7430 # `set' quotes correctly as required by POSIX, so do not add quotes.
a8b2ad8d 7431 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b3076f16 7432 ;;
a8b2ad8d 7433 esac |
7434 sort
7435) |
b3076f16 7436 sed '
a8b2ad8d 7437 /^ac_cv_env_/b end
b3076f16 7438 t clear
a8b2ad8d 7439 :clear
b3076f16 7440 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7441 t end
a8b2ad8d 7442 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7443 :end' >>confcache
7444if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7445 if test -w "$cache_file"; then
7446 test "x$cache_file" != "x/dev/null" &&
db946ede 7447 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7448$as_echo "$as_me: updating cache $cache_file" >&6;}
b3076f16 7449 cat confcache >$cache_file
7450 else
db946ede 7451 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7452$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
b3076f16 7453 fi
7454fi
7455rm -f confcache
7456
7457test "x$prefix" = xNONE && prefix=$ac_default_prefix
7458# Let make expand exec_prefix.
7459test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7460
b3076f16 7461DEFS=-DHAVE_CONFIG_H
7462
7463ac_libobjs=
7464ac_ltlibobjs=
7465for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7466 # 1. Remove the extension, and $U if already installed.
a8b2ad8d 7467 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
db946ede 7468 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
a8b2ad8d 7469 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7470 # will be set to the directory where LIBOBJS objects are built.
db946ede 7471 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7472 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b3076f16 7473done
7474LIBOBJS=$ac_libobjs
7475
7476LTLIBOBJS=$ac_ltlibobjs
7477
7478
db946ede 7479 if test -n "$EXEEXT"; then
7480 am__EXEEXT_TRUE=
7481 am__EXEEXT_FALSE='#'
7482else
7483 am__EXEEXT_TRUE='#'
7484 am__EXEEXT_FALSE=
7485fi
7486
ec1a68c8 7487if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
db946ede 7488 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
7489Usually this means the macro was only invoked conditionally." "$LINENO" 5
ec1a68c8 7490fi
7491if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
db946ede 7492 as_fn_error "conditional \"AMDEP\" was never defined.
7493Usually this means the macro was only invoked conditionally." "$LINENO" 5
ec1a68c8 7494fi
7495if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
db946ede 7496 as_fn_error "conditional \"am__fastdepCC\" was never defined.
7497Usually this means the macro was only invoked conditionally." "$LINENO" 5
ec1a68c8 7498fi
7499if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
db946ede 7500 as_fn_error "conditional \"am__fastdepCC\" was never defined.
7501Usually this means the macro was only invoked conditionally." "$LINENO" 5
ec1a68c8 7502fi
2f65da8f 7503if test -z "${DO_PYTHON_TRUE}" && test -z "${DO_PYTHON_FALSE}"; then
db946ede 7504 as_fn_error "conditional \"DO_PYTHON\" was never defined.
7505Usually this means the macro was only invoked conditionally." "$LINENO" 5
2f65da8f 7506fi
b3076f16 7507
7508: ${CONFIG_STATUS=./config.status}
db946ede 7509ac_write_fail=0
b3076f16 7510ac_clean_files_save=$ac_clean_files
7511ac_clean_files="$ac_clean_files $CONFIG_STATUS"
db946ede 7512{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7513$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7514as_write_fail=0
7515cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b3076f16 7516#! $SHELL
7517# Generated by $as_me.
7518# Run this file to recreate the current configuration.
7519# Compiler output produced by configure, useful for debugging
7520# configure, is in config.log if it exists.
7521
7522debug=false
7523ac_cs_recheck=false
7524ac_cs_silent=false
b3076f16 7525
db946ede 7526SHELL=\${CONFIG_SHELL-$SHELL}
7527export SHELL
7528_ASEOF
7529cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7530## -------------------- ##
7531## M4sh Initialization. ##
7532## -------------------- ##
b3076f16 7533
0bd0bef6 7534# Be more Bourne compatible
7535DUALCASE=1; export DUALCASE # for MKS sh
db946ede 7536if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b3076f16 7537 emulate sh
7538 NULLCMD=:
db946ede 7539 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b3076f16 7540 # is contrary to our usage. Disable this feature.
7541 alias -g '${1+"$@"}'='"$@"'
a8b2ad8d 7542 setopt NO_GLOB_SUBST
7543else
db946ede 7544 case `(set -o) 2>/dev/null` in #(
7545 *posix*) :
7546 set -o posix ;; #(
7547 *) :
7548 ;;
0bd0bef6 7549esac
b3076f16 7550fi
0bd0bef6 7551
7552
db946ede 7553as_nl='
7554'
7555export as_nl
7556# Printing a long string crashes Solaris 7 /usr/bin/printf.
7557as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7558as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7559as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7560# Prefer a ksh shell builtin over an external printf program on Solaris,
7561# but without wasting forks for bash or zsh.
7562if test -z "$BASH_VERSION$ZSH_VERSION" \
7563 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7564 as_echo='print -r --'
7565 as_echo_n='print -rn --'
7566elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7567 as_echo='printf %s\n'
7568 as_echo_n='printf %s'
7569else
7570 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7571 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7572 as_echo_n='/usr/ucb/echo -n'
a8b2ad8d 7573 else
db946ede 7574 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7575 as_echo_n_body='eval
7576 arg=$1;
7577 case $arg in #(
7578 *"$as_nl"*)
7579 expr "X$arg" : "X\\(.*\\)$as_nl";
7580 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7581 esac;
7582 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7583 '
7584 export as_echo_n_body
7585 as_echo_n='sh -c $as_echo_n_body as_echo'
a8b2ad8d 7586 fi
db946ede 7587 export as_echo_body
7588 as_echo='sh -c $as_echo_body as_echo'
a8b2ad8d 7589fi
7590
db946ede 7591# The user is always right.
7592if test "${PATH_SEPARATOR+set}" != set; then
7593 PATH_SEPARATOR=:
7594 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7595 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7596 PATH_SEPARATOR=';'
7597 }
b3076f16 7598fi
7599
7600
a8b2ad8d 7601# IFS
7602# We need space, tab and new line, in precisely that order. Quoting is
7603# there to prevent editors from complaining about space-tab.
7604# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7605# splitting by setting IFS to empty value.)
a8b2ad8d 7606IFS=" "" $as_nl"
7607
7608# Find who we are. Look in the path if we contain no directory separator.
db946ede 7609case $0 in #((
a8b2ad8d 7610 *[\\/]* ) as_myself=$0 ;;
7611 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612for as_dir in $PATH
7613do
7614 IFS=$as_save_IFS
7615 test -z "$as_dir" && as_dir=.
db946ede 7616 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7617 done
a8b2ad8d 7618IFS=$as_save_IFS
7619
7620 ;;
7621esac
7622# We did not find ourselves, most probably we were run as `sh COMMAND'
7623# in which case we are not to be found in the path.
7624if test "x$as_myself" = x; then
7625 as_myself=$0
7626fi
7627if test ! -f "$as_myself"; then
db946ede 7628 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7629 exit 1
a8b2ad8d 7630fi
7631
db946ede 7632# Unset variables that we do not need and which cause bugs (e.g. in
7633# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7634# suppresses any "Segmentation fault" message there. '((' could
7635# trigger a bug in pdksh 5.2.14.
7636for as_var in BASH_ENV ENV MAIL MAILPATH
7637do eval test x\${$as_var+set} = xset \
7638 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
a8b2ad8d 7639done
b3076f16 7640PS1='$ '
7641PS2='> '
7642PS4='+ '
7643
7644# NLS nuisances.
db946ede 7645LC_ALL=C
7646export LC_ALL
7647LANGUAGE=C
7648export LANGUAGE
7649
7650# CDPATH.
7651(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7652
7653
7654# as_fn_error ERROR [LINENO LOG_FD]
7655# ---------------------------------
7656# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7657# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7658# script with status $?, using 1 if that was 0.
7659as_fn_error ()
7660{
7661 as_status=$?; test $as_status -eq 0 && as_status=1
7662 if test "$3"; then
7663 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7664 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
b3076f16 7665 fi
db946ede 7666 $as_echo "$as_me: error: $1" >&2
7667 as_fn_exit $as_status
7668} # as_fn_error
7669
7670
7671# as_fn_set_status STATUS
7672# -----------------------
7673# Set $? to STATUS, without forking.
7674as_fn_set_status ()
7675{
7676 return $1
7677} # as_fn_set_status
7678
7679# as_fn_exit STATUS
7680# -----------------
7681# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7682as_fn_exit ()
7683{
7684 set +e
7685 as_fn_set_status $1
7686 exit $1
7687} # as_fn_exit
7688
7689# as_fn_unset VAR
7690# ---------------
7691# Portably unset VAR.
7692as_fn_unset ()
7693{
7694 { eval $1=; unset $1;}
7695}
7696as_unset=as_fn_unset
7697# as_fn_append VAR VALUE
7698# ----------------------
7699# Append the text in VALUE to the end of the definition contained in VAR. Take
7700# advantage of any shell optimizations that allow amortized linear growth over
7701# repeated appends, instead of the typical quadratic growth present in naive
7702# implementations.
7703if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7704 eval 'as_fn_append ()
7705 {
7706 eval $1+=\$2
7707 }'
7708else
7709 as_fn_append ()
7710 {
7711 eval $1=\$$1\$2
7712 }
7713fi # as_fn_append
7714
7715# as_fn_arith ARG...
7716# ------------------
7717# Perform arithmetic evaluation on the ARGs, and store the result in the
7718# global $as_val. Take advantage of shells that can avoid forks. The arguments
7719# must be portable across $(()) and expr.
7720if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7721 eval 'as_fn_arith ()
7722 {
7723 as_val=$(( $* ))
7724 }'
7725else
7726 as_fn_arith ()
7727 {
7728 as_val=`expr "$@" || test $? -eq 1`
7729 }
7730fi # as_fn_arith
7731
b3076f16 7732
a8b2ad8d 7733if expr a : '\(a\)' >/dev/null 2>&1 &&
7734 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b3076f16 7735 as_expr=expr
7736else
7737 as_expr=false
7738fi
7739
a8b2ad8d 7740if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b3076f16 7741 as_basename=basename
7742else
7743 as_basename=false
7744fi
7745
db946ede 7746if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7747 as_dirname=dirname
7748else
7749 as_dirname=false
7750fi
b3076f16 7751
a8b2ad8d 7752as_me=`$as_basename -- "$0" ||
b3076f16 7753$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7754 X"$0" : 'X\(//\)$' \| \
a8b2ad8d 7755 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
db946ede 7756$as_echo X/"$0" |
a8b2ad8d 7757 sed '/^.*\/\([^/][^/]*\)\/*$/{
7758 s//\1/
7759 q
7760 }
7761 /^X\/\(\/\/\)$/{
7762 s//\1/
7763 q
7764 }
7765 /^X\/\(\/\).*/{
7766 s//\1/
7767 q
7768 }
7769 s/.*/./; q'`
b3076f16 7770
db946ede 7771# Avoid depending upon Character Ranges.
7772as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7773as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7774as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7775as_cr_digits='0123456789'
7776as_cr_alnum=$as_cr_Letters$as_cr_digits
a8b2ad8d 7777
7778ECHO_C= ECHO_N= ECHO_T=
db946ede 7779case `echo -n x` in #(((((
a8b2ad8d 7780-n*)
db946ede 7781 case `echo 'xy\c'` in
a8b2ad8d 7782 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
db946ede 7783 xy) ECHO_C='\c';;
7784 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7785 ECHO_T=' ';;
a8b2ad8d 7786 esac;;
7787*)
7788 ECHO_N='-n';;
b3076f16 7789esac
7790
b3076f16 7791rm -f conf$$ conf$$.exe conf$$.file
a8b2ad8d 7792if test -d conf$$.dir; then
7793 rm -f conf$$.dir/conf$$.file
7794else
7795 rm -f conf$$.dir
db946ede 7796 mkdir conf$$.dir 2>/dev/null
7797fi
7798if (echo >conf$$.file) 2>/dev/null; then
7799 if ln -s conf$$.file conf$$ 2>/dev/null; then
7800 as_ln_s='ln -s'
7801 # ... but there are two gotchas:
7802 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7803 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7804 # In both cases, we have to default to `cp -p'.
7805 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7806 as_ln_s='cp -p'
7807 elif ln conf$$.file conf$$ 2>/dev/null; then
7808 as_ln_s=ln
7809 else
b3076f16 7810 as_ln_s='cp -p'
db946ede 7811 fi
b3076f16 7812else
7813 as_ln_s='cp -p'
7814fi
a8b2ad8d 7815rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7816rmdir conf$$.dir 2>/dev/null
b3076f16 7817
db946ede 7818
7819# as_fn_mkdir_p
7820# -------------
7821# Create "$as_dir" as a directory, including parents if necessary.
7822as_fn_mkdir_p ()
7823{
7824
7825 case $as_dir in #(
7826 -*) as_dir=./$as_dir;;
7827 esac
7828 test -d "$as_dir" || eval $as_mkdir_p || {
7829 as_dirs=
7830 while :; do
7831 case $as_dir in #(
7832 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7833 *) as_qdir=$as_dir;;
7834 esac
7835 as_dirs="'$as_qdir' $as_dirs"
7836 as_dir=`$as_dirname -- "$as_dir" ||
7837$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7838 X"$as_dir" : 'X\(//\)[^/]' \| \
7839 X"$as_dir" : 'X\(//\)$' \| \
7840 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7841$as_echo X"$as_dir" |
7842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7843 s//\1/
7844 q
7845 }
7846 /^X\(\/\/\)[^/].*/{
7847 s//\1/
7848 q
7849 }
7850 /^X\(\/\/\)$/{
7851 s//\1/
7852 q
7853 }
7854 /^X\(\/\).*/{
7855 s//\1/
7856 q
7857 }
7858 s/.*/./; q'`
7859 test -d "$as_dir" && break
7860 done
7861 test -z "$as_dirs" || eval "mkdir $as_dirs"
7862 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7863
7864
7865} # as_fn_mkdir_p
b3076f16 7866if mkdir -p . 2>/dev/null; then
db946ede 7867 as_mkdir_p='mkdir -p "$as_dir"'
b3076f16 7868else
7869 test -d ./-p && rmdir ./-p
7870 as_mkdir_p=false
7871fi
7872
0bd0bef6 7873if test -x / >/dev/null 2>&1; then
7874 as_test_x='test -x'
a8b2ad8d 7875else
0bd0bef6 7876 if ls -dL / >/dev/null 2>&1; then
7877 as_ls_L_option=L
7878 else
7879 as_ls_L_option=
7880 fi
7881 as_test_x='
7882 eval sh -c '\''
7883 if test -d "$1"; then
db946ede 7884 test -d "$1/.";
0bd0bef6 7885 else
db946ede 7886 case $1 in #(
7887 -*)set "./$1";;
0bd0bef6 7888 esac;
db946ede 7889 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
0bd0bef6 7890 ???[sx]*):;;*)false;;esac;fi
7891 '\'' sh
7892 '
a8b2ad8d 7893fi
0bd0bef6 7894as_executable_p=$as_test_x
b3076f16 7895
7896# Sed expression to map a string onto a valid CPP name.
7897as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7898
7899# Sed expression to map a string onto a valid variable name.
7900as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7901
7902
b3076f16 7903exec 6>&1
db946ede 7904## ----------------------------------- ##
7905## Main body of $CONFIG_STATUS script. ##
7906## ----------------------------------- ##
7907_ASEOF
7908test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
b3076f16 7909
db946ede 7910cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7911# Save the log message, to keep $0 and so on meaningful, and to
b3076f16 7912# report actual input values of CONFIG_FILES etc. instead of their
a8b2ad8d 7913# values after options handling.
7914ac_log="
db946ede 7915This file was extended by X3 $as_me 1.8, which was
7916generated by GNU Autoconf 2.64. Invocation command line was
b3076f16 7917
7918 CONFIG_FILES = $CONFIG_FILES
7919 CONFIG_HEADERS = $CONFIG_HEADERS
7920 CONFIG_LINKS = $CONFIG_LINKS
7921 CONFIG_COMMANDS = $CONFIG_COMMANDS
7922 $ $0 $@
7923
a8b2ad8d 7924on `(hostname || uname -n) 2>/dev/null | sed 1q`
7925"
7926
b3076f16 7927_ACEOF
7928
db946ede 7929case $ac_config_files in *"
7930"*) set x $ac_config_files; shift; ac_config_files=$*;;
7931esac
7932
7933case $ac_config_headers in *"
7934"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7935esac
7936
7937
7938cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b3076f16 7939# Files that config.status was made for.
a8b2ad8d 7940config_files="$ac_config_files"
7941config_headers="$ac_config_headers"
7942config_commands="$ac_config_commands"
b3076f16 7943
a8b2ad8d 7944_ACEOF
b3076f16 7945
db946ede 7946cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b3076f16 7947ac_cs_usage="\
db946ede 7948\`$as_me' instantiates files and other configuration actions
7949from templates according to the current configuration. Unless the files
7950and actions are specified as TAGs, all are instantiated by default.
b3076f16 7951
db946ede 7952Usage: $0 [OPTION]... [TAG]...
b3076f16 7953
7954 -h, --help print this help, then exit
0bd0bef6 7955 -V, --version print version number and configuration settings, then exit
db946ede 7956 -q, --quiet, --silent
7957 do not print progress messages
b3076f16 7958 -d, --debug don't remove temporary files
7959 --recheck update $as_me by reconfiguring in the same conditions
db946ede 7960 --file=FILE[:TEMPLATE]
7961 instantiate the configuration file FILE
7962 --header=FILE[:TEMPLATE]
7963 instantiate the configuration header FILE
b3076f16 7964
7965Configuration files:
7966$config_files
7967
7968Configuration headers:
7969$config_headers
7970
ec1a68c8 7971Configuration commands:
7972$config_commands
7973
db946ede 7974Report bugs to <evilnet-devel@lists.sourceforge.net>."
b3076f16 7975
a8b2ad8d 7976_ACEOF
db946ede 7977cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b3076f16 7978ac_cs_version="\\
db946ede 7979X3 config.status 1.8
7980configured by $0, generated by GNU Autoconf 2.64,
7981 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
b3076f16 7982
db946ede 7983Copyright (C) 2009 Free Software Foundation, Inc.
b3076f16 7984This config.status script is free software; the Free Software Foundation
7985gives unlimited permission to copy, distribute and modify it."
a8b2ad8d 7986
7987ac_pwd='$ac_pwd'
7988srcdir='$srcdir'
7989INSTALL='$INSTALL'
2f65da8f 7990MKDIR_P='$MKDIR_P'
db946ede 7991AWK='$AWK'
7992test -n "\$AWK" || AWK=awk
b3076f16 7993_ACEOF
7994
db946ede 7995cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7996# The default lists apply if the user does not specify any file.
b3076f16 7997ac_need_defaults=:
7998while test $# != 0
7999do
8000 case $1 in
8001 --*=*)
a8b2ad8d 8002 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8003 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b3076f16 8004 ac_shift=:
8005 ;;
a8b2ad8d 8006 *)
b3076f16 8007 ac_option=$1
8008 ac_optarg=$2
8009 ac_shift=shift
8010 ;;
b3076f16 8011 esac
8012
8013 case $ac_option in
8014 # Handling of the options.
b3076f16 8015 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8016 ac_cs_recheck=: ;;
a8b2ad8d 8017 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
db946ede 8018 $as_echo "$ac_cs_version"; exit ;;
a8b2ad8d 8019 --debug | --debu | --deb | --de | --d | -d )
b3076f16 8020 debug=: ;;
8021 --file | --fil | --fi | --f )
8022 $ac_shift
db946ede 8023 case $ac_optarg in
8024 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8025 esac
8026 as_fn_append CONFIG_FILES " '$ac_optarg'"
b3076f16 8027 ac_need_defaults=false;;
8028 --header | --heade | --head | --hea )
8029 $ac_shift
db946ede 8030 case $ac_optarg in
8031 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8032 esac
8033 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
b3076f16 8034 ac_need_defaults=false;;
a8b2ad8d 8035 --he | --h)
8036 # Conflict between --help and --header
db946ede 8037 as_fn_error "ambiguous option: \`$1'
8038Try \`$0 --help' for more information.";;
a8b2ad8d 8039 --help | --hel | -h )
db946ede 8040 $as_echo "$ac_cs_usage"; exit ;;
b3076f16 8041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8042 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8043 ac_cs_silent=: ;;
8044
8045 # This is an error.
db946ede 8046 -*) as_fn_error "unrecognized option: \`$1'
8047Try \`$0 --help' for more information." ;;
b3076f16 8048
db946ede 8049 *) as_fn_append ac_config_targets " $1"
a8b2ad8d 8050 ac_need_defaults=false ;;
b3076f16 8051
8052 esac
8053 shift
8054done
8055
8056ac_configure_extra_args=
8057
8058if $ac_cs_silent; then
8059 exec 6>/dev/null
8060 ac_configure_extra_args="$ac_configure_extra_args --silent"
8061fi
8062
8063_ACEOF
db946ede 8064cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b3076f16 8065if \$ac_cs_recheck; then
db946ede 8066 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8067 shift
8068 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8069 CONFIG_SHELL='$SHELL'
a8b2ad8d 8070 export CONFIG_SHELL
db946ede 8071 exec "\$@"
b3076f16 8072fi
8073
8074_ACEOF
db946ede 8075cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
a8b2ad8d 8076exec 5>>config.log
8077{
8078 echo
8079 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8080## Running $as_me. ##
8081_ASBOX
db946ede 8082 $as_echo "$ac_log"
a8b2ad8d 8083} >&5
b3076f16 8084
a8b2ad8d 8085_ACEOF
db946ede 8086cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ec1a68c8 8087#
a8b2ad8d 8088# INIT-COMMANDS
ec1a68c8 8089#
ec1a68c8 8090AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8091
8092_ACEOF
b3076f16 8093
db946ede 8094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
a8b2ad8d 8095
8096# Handling of arguments.
b3076f16 8097for ac_config_target in $ac_config_targets
8098do
a8b2ad8d 8099 case $ac_config_target in
8100 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
8101 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8102 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8103 "rx/Makefile") CONFIG_FILES="$CONFIG_FILES rx/Makefile" ;;
8104 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8105
db946ede 8106 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
b3076f16 8107 esac
8108done
8109
a8b2ad8d 8110
b3076f16 8111# If the user did not use the arguments to specify the items to instantiate,
8112# then the envvar interface is used. Set only those that are not.
8113# We use the long form for the default assignment because of an extremely
8114# bizarre bug on SunOS 4.1.3.
8115if $ac_need_defaults; then
8116 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8117 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ec1a68c8 8118 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
b3076f16 8119fi
8120
8121# Have a temporary directory for convenience. Make it in the build tree
a8b2ad8d 8122# simply because there is no reason against having it here, and in addition,
b3076f16 8123# creating and moving files from /tmp can sometimes cause problems.
a8b2ad8d 8124# Hook for its removal unless debugging.
8125# Note that there is a small window in which the directory will not be cleaned:
8126# after its creation but before its name has been assigned to `$tmp'.
b3076f16 8127$debug ||
8128{
a8b2ad8d 8129 tmp=
8130 trap 'exit_status=$?
8131 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8132' 0
db946ede 8133 trap 'as_fn_exit 1' 1 2 13 15
b3076f16 8134}
b3076f16 8135# Create a (secure) tmp directory for tmp files.
8136
8137{
a8b2ad8d 8138 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b3076f16 8139 test -n "$tmp" && test -d "$tmp"
8140} ||
8141{
a8b2ad8d 8142 tmp=./conf$$-$RANDOM
8143 (umask 077 && mkdir "$tmp")
db946ede 8144} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
b3076f16 8145
db946ede 8146# Set up the scripts for CONFIG_FILES section.
8147# No need to generate them if there are no CONFIG_FILES.
8148# This happens for instance with `./config.status config.h'.
a8b2ad8d 8149if test -n "$CONFIG_FILES"; then
8150
a8b2ad8d 8151
db946ede 8152ac_cr=`echo X | tr X '\015'`
8153# On cygwin, bash can eat \r inside `` if the user requested igncr.
8154# But we know of no other shell where ac_cr would be empty at this
8155# point, so we can use a bashism as a fallback.
8156if test "x$ac_cr" = x; then
8157 eval ac_cr=\$\'\\r\'
8158fi
8159ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8160if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8161 ac_cs_awk_cr='\r'
8162else
8163 ac_cs_awk_cr=$ac_cr
a8b2ad8d 8164fi
8165
db946ede 8166echo 'BEGIN {' >"$tmp/subs1.awk" &&
a8b2ad8d 8167_ACEOF
8168
8169
db946ede 8170{
8171 echo "cat >conf$$subs.awk <<_ACEOF" &&
8172 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8173 echo "_ACEOF"
8174} >conf$$subs.sh ||
8175 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8176ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
a8b2ad8d 8177ac_delim='%!_!# '
8178for ac_last_try in false false false false false :; do
db946ede 8179 . ./conf$$subs.sh ||
8180 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
a8b2ad8d 8181
db946ede 8182 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8183 if test $ac_delim_n = $ac_delim_num; then
a8b2ad8d 8184 break
8185 elif $ac_last_try; then
db946ede 8186 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
a8b2ad8d 8187 else
8188 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8189 fi
8190done
db946ede 8191rm -f conf$$subs.sh
8192
8193cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8194cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8195_ACEOF
8196sed -n '
8197h
8198s/^/S["/; s/!.*/"]=/
8199p
8200g
8201s/^[^!]*!//
8202:repl
8203t repl
8204s/'"$ac_delim"'$//
8205t delim
8206:nl
8207h
8208s/\(.\{148\}\).*/\1/
8209t more1
8210s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8211p
8212n
8213b repl
8214:more1
8215s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8216p
8217g
8218s/.\{148\}//
8219t nl
8220:delim
8221h
8222s/\(.\{148\}\).*/\1/
8223t more2
8224s/["\\]/\\&/g; s/^/"/; s/$/"/
8225p
8226b
8227:more2
8228s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8229p
8230g
8231s/.\{148\}//
8232t delim
8233' <conf$$subs.awk | sed '
8234/^[^""]/{
8235 N
8236 s/\n//
8237}
8238' >>$CONFIG_STATUS || ac_write_fail=1
8239rm -f conf$$subs.awk
8240cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8241_ACAWK
8242cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8243 for (key in S) S_is_set[key] = 1
8244 FS = "\a"
a8b2ad8d 8245
db946ede 8246}
8247{
8248 line = $ 0
8249 nfields = split(line, field, "@")
8250 substed = 0
8251 len = length(field[1])
8252 for (i = 2; i < nfields; i++) {
8253 key = field[i]
8254 keylen = length(key)
8255 if (S_is_set[key]) {
8256 value = S[key]
8257 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8258 len += length(value) + length(field[++i])
8259 substed = 1
8260 } else
8261 len += 1 + keylen
8262 }
a8b2ad8d 8263
db946ede 8264 print line
8265}
8266
8267_ACAWK
a8b2ad8d 8268_ACEOF
db946ede 8269cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8270if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8271 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8272else
8273 cat
8274fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8275 || as_fn_error "could not setup config files machinery" "$LINENO" 5
a8b2ad8d 8276_ACEOF
8277
a8b2ad8d 8278# VPATH may cause trouble with some makes, so we remove $(srcdir),
8279# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8280# trailing colons and then remove the whole line if VPATH becomes empty
8281# (actually we leave an empty line to preserve line numbers).
8282if test "x$srcdir" = x.; then
8283 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8284s/:*\$(srcdir):*/:/
8285s/:*\${srcdir}:*/:/
8286s/:*@srcdir@:*/:/
8287s/^\([^=]*=[ ]*\):*/\1/
8288s/:*$//
8289s/^[^=]*=[ ]*$//
8290}'
8291fi
8292
db946ede 8293cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
a8b2ad8d 8294fi # test -n "$CONFIG_FILES"
8295
db946ede 8296# Set up the scripts for CONFIG_HEADERS section.
8297# No need to generate them if there are no CONFIG_HEADERS.
8298# This happens for instance with `./config.status Makefile'.
8299if test -n "$CONFIG_HEADERS"; then
8300cat >"$tmp/defines.awk" <<\_ACAWK ||
8301BEGIN {
8302_ACEOF
8303
8304# Transform confdefs.h into an awk script `defines.awk', embedded as
8305# here-document in config.status, that substitutes the proper values into
8306# config.h.in to produce config.h.
8307
8308# Create a delimiter string that does not exist in confdefs.h, to ease
8309# handling of long lines.
8310ac_delim='%!_!# '
8311for ac_last_try in false false :; do
8312 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8313 if test -z "$ac_t"; then
8314 break
8315 elif $ac_last_try; then
8316 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8317 else
8318 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8319 fi
8320done
8321
8322# For the awk script, D is an array of macro values keyed by name,
8323# likewise P contains macro parameters if any. Preserve backslash
8324# newline sequences.
8325
8326ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8327sed -n '
8328s/.\{148\}/&'"$ac_delim"'/g
8329t rset
8330:rset
8331s/^[ ]*#[ ]*define[ ][ ]*/ /
8332t def
8333d
8334:def
8335s/\\$//
8336t bsnl
8337s/["\\]/\\&/g
8338s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8339D["\1"]=" \3"/p
8340s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8341d
8342:bsnl
8343s/["\\]/\\&/g
8344s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8345D["\1"]=" \3\\\\\\n"\\/p
8346t cont
8347s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8348t cont
8349d
8350:cont
8351n
8352s/.\{148\}/&'"$ac_delim"'/g
8353t clear
8354:clear
8355s/\\$//
8356t bsnlc
8357s/["\\]/\\&/g; s/^/"/; s/$/"/p
8358d
8359:bsnlc
8360s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8361b cont
8362' <confdefs.h | sed '
8363s/'"$ac_delim"'/"\\\
8364"/g' >>$CONFIG_STATUS || ac_write_fail=1
8365
8366cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8367 for (key in D) D_is_set[key] = 1
8368 FS = "\a"
8369}
8370/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8371 line = \$ 0
8372 split(line, arg, " ")
8373 if (arg[1] == "#") {
8374 defundef = arg[2]
8375 mac1 = arg[3]
8376 } else {
8377 defundef = substr(arg[1], 2)
8378 mac1 = arg[2]
8379 }
8380 split(mac1, mac2, "(") #)
8381 macro = mac2[1]
8382 prefix = substr(line, 1, index(line, defundef) - 1)
8383 if (D_is_set[macro]) {
8384 # Preserve the white space surrounding the "#".
8385 print prefix "define", macro P[macro] D[macro]
8386 next
8387 } else {
8388 # Replace #undef with comments. This is necessary, for example,
8389 # in the case of _POSIX_SOURCE, which is predefined and required
8390 # on some systems where configure will not decide to define it.
8391 if (defundef == "undef") {
8392 print "/*", prefix defundef, macro, "*/"
8393 next
8394 }
8395 }
8396}
8397{ print }
8398_ACAWK
8399_ACEOF
8400cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8401 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8402fi # test -n "$CONFIG_HEADERS"
8403
a8b2ad8d 8404
db946ede 8405eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8406shift
8407for ac_tag
a8b2ad8d 8408do
8409 case $ac_tag in
8410 :[FHLC]) ac_mode=$ac_tag; continue;;
8411 esac
8412 case $ac_mode$ac_tag in
8413 :[FHL]*:*);;
db946ede 8414 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
a8b2ad8d 8415 :[FH]-) ac_tag=-:-;;
8416 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8417 esac
8418 ac_save_IFS=$IFS
8419 IFS=:
8420 set x $ac_tag
8421 IFS=$ac_save_IFS
8422 shift
8423 ac_file=$1
8424 shift
8425
8426 case $ac_mode in
8427 :L) ac_source=$1;;
8428 :[FH])
8429 ac_file_inputs=
8430 for ac_f
8431 do
8432 case $ac_f in
8433 -) ac_f="$tmp/stdin";;
8434 *) # Look for the file first in the build tree, then in the source tree
8435 # (if the path is not absolute). The absolute path cannot be DOS-style,
8436 # because $ac_f cannot contain `:'.
8437 test -f "$ac_f" ||
8438 case $ac_f in
8439 [\\/$]*) false;;
8440 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8441 esac ||
db946ede 8442 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
a8b2ad8d 8443 esac
db946ede 8444 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8445 as_fn_append ac_file_inputs " '$ac_f'"
a8b2ad8d 8446 done
8447
8448 # Let's still pretend it is `configure' which instantiates (i.e., don't
8449 # use $as_me), people would be surprised to read:
8450 # /* config.h. Generated by config.status. */
db946ede 8451 configure_input='Generated from '`
8452 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8453 `' by configure.'
a8b2ad8d 8454 if test x"$ac_file" != x-; then
8455 configure_input="$ac_file. $configure_input"
db946ede 8456 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8457$as_echo "$as_me: creating $ac_file" >&6;}
a8b2ad8d 8458 fi
db946ede 8459 # Neutralize special characters interpreted by sed in replacement strings.
8460 case $configure_input in #(
8461 *\&* | *\|* | *\\* )
8462 ac_sed_conf_input=`$as_echo "$configure_input" |
8463 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8464 *) ac_sed_conf_input=$configure_input;;
8465 esac
a8b2ad8d 8466
8467 case $ac_tag in
db946ede 8468 *:-:* | *:-) cat >"$tmp/stdin" \
8469 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
a8b2ad8d 8470 esac
8471 ;;
b3076f16 8472 esac
8473
a8b2ad8d 8474 ac_dir=`$as_dirname -- "$ac_file" ||
b3076f16 8475$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8476 X"$ac_file" : 'X\(//\)[^/]' \| \
8477 X"$ac_file" : 'X\(//\)$' \| \
a8b2ad8d 8478 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
db946ede 8479$as_echo X"$ac_file" |
a8b2ad8d 8480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8481 s//\1/
8482 q
8483 }
8484 /^X\(\/\/\)[^/].*/{
8485 s//\1/
8486 q
8487 }
8488 /^X\(\/\/\)$/{
8489 s//\1/
8490 q
8491 }
8492 /^X\(\/\).*/{
8493 s//\1/
8494 q
8495 }
8496 s/.*/./; q'`
db946ede 8497 as_dir="$ac_dir"; as_fn_mkdir_p
b3076f16 8498 ac_builddir=.
8499
a8b2ad8d 8500case "$ac_dir" in
8501.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8502*)
db946ede 8503 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
a8b2ad8d 8504 # A ".." for each directory in $ac_dir_suffix.
db946ede 8505 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
a8b2ad8d 8506 case $ac_top_builddir_sub in
8507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8509 esac ;;
8510esac
8511ac_abs_top_builddir=$ac_pwd
8512ac_abs_builddir=$ac_pwd$ac_dir_suffix
8513# for backward compatibility:
8514ac_top_builddir=$ac_top_build_prefix
b3076f16 8515
8516case $srcdir in
a8b2ad8d 8517 .) # We are building in place.
b3076f16 8518 ac_srcdir=.
a8b2ad8d 8519 ac_top_srcdir=$ac_top_builddir_sub
8520 ac_abs_top_srcdir=$ac_pwd ;;
8521 [\\/]* | ?:[\\/]* ) # Absolute name.
b3076f16 8522 ac_srcdir=$srcdir$ac_dir_suffix;
a8b2ad8d 8523 ac_top_srcdir=$srcdir
8524 ac_abs_top_srcdir=$srcdir ;;
8525 *) # Relative name.
8526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8527 ac_top_srcdir=$ac_top_build_prefix$srcdir
8528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b3076f16 8529esac
a8b2ad8d 8530ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b3076f16 8531
b3076f16 8532
a8b2ad8d 8533 case $ac_mode in
8534 :F)
8535 #
8536 # CONFIG_FILE
8537 #
b3076f16 8538
8539 case $INSTALL in
8540 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
a8b2ad8d 8541 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
b3076f16 8542 esac
2f65da8f 8543 ac_MKDIR_P=$MKDIR_P
8544 case $MKDIR_P in
8545 [\\/$]* | ?:[\\/]* ) ;;
8546 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8547 esac
a8b2ad8d 8548_ACEOF
b3076f16 8549
db946ede 8550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
a8b2ad8d 8551# If the template does not know about datarootdir, expand it.
8552# FIXME: This hack should be removed a few years after 2.60.
8553ac_datarootdir_hack=; ac_datarootdir_seen=
db946ede 8554ac_sed_dataroot='
8555/datarootdir/ {
a8b2ad8d 8556 p
8557 q
8558}
8559/@datadir@/p
8560/@docdir@/p
8561/@infodir@/p
8562/@localedir@/p
db946ede 8563/@mandir@/p'
8564case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
a8b2ad8d 8565*datarootdir*) ac_datarootdir_seen=yes;;
8566*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
db946ede 8567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8568$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
a8b2ad8d 8569_ACEOF
db946ede 8570cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a8b2ad8d 8571 ac_datarootdir_hack='
8572 s&@datadir@&$datadir&g
8573 s&@docdir@&$docdir&g
8574 s&@infodir@&$infodir&g
8575 s&@localedir@&$localedir&g
8576 s&@mandir@&$mandir&g
db946ede 8577 s&\\\${datarootdir}&$datarootdir&g' ;;
a8b2ad8d 8578esac
b3076f16 8579_ACEOF
a8b2ad8d 8580
8581# Neutralize VPATH when `$srcdir' = `.'.
8582# Shell code in configure.ac might set extrasub.
8583# FIXME: do we really want to maintain this feature?
db946ede 8584cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8585ac_sed_extra="$ac_vpsub
b3076f16 8586$extrasub
8587_ACEOF
db946ede 8588cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b3076f16 8589:t
8590/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
db946ede 8591s|@configure_input@|$ac_sed_conf_input|;t t
a8b2ad8d 8592s&@top_builddir@&$ac_top_builddir_sub&;t t
db946ede 8593s&@top_build_prefix@&$ac_top_build_prefix&;t t
a8b2ad8d 8594s&@srcdir@&$ac_srcdir&;t t
8595s&@abs_srcdir@&$ac_abs_srcdir&;t t
8596s&@top_srcdir@&$ac_top_srcdir&;t t
8597s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8598s&@builddir@&$ac_builddir&;t t
8599s&@abs_builddir@&$ac_abs_builddir&;t t
8600s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8601s&@INSTALL@&$ac_INSTALL&;t t
2f65da8f 8602s&@MKDIR_P@&$ac_MKDIR_P&;t t
a8b2ad8d 8603$ac_datarootdir_hack
db946ede 8604"
8605eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8606 || as_fn_error "could not create $ac_file" "$LINENO" 5
a8b2ad8d 8607
8608test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8609 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8610 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
db946ede 8611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
a8b2ad8d 8612which seems to be undefined. Please make sure it is defined." >&5
db946ede 8613$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
a8b2ad8d 8614which seems to be undefined. Please make sure it is defined." >&2;}
8615
8616 rm -f "$tmp/stdin"
b3076f16 8617 case $ac_file in
db946ede 8618 -) cat "$tmp/out" && rm -f "$tmp/out";;
8619 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8620 esac \
8621 || as_fn_error "could not create $ac_file" "$LINENO" 5
a8b2ad8d 8622 ;;
8623 :H)
8624 #
8625 # CONFIG_HEADER
8626 #
b3076f16 8627 if test x"$ac_file" != x-; then
db946ede 8628 {
8629 $as_echo "/* $configure_input */" \
8630 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8631 } >"$tmp/config.h" \
8632 || as_fn_error "could not create $ac_file" "$LINENO" 5
8633 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8635$as_echo "$as_me: $ac_file is unchanged" >&6;}
b3076f16 8636 else
db946ede 8637 rm -f "$ac_file"
8638 mv "$tmp/config.h" "$ac_file" \
8639 || as_fn_error "could not create $ac_file" "$LINENO" 5
b3076f16 8640 fi
8641 else
db946ede 8642 $as_echo "/* $configure_input */" \
8643 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8644 || as_fn_error "could not create -" "$LINENO" 5
b3076f16 8645 fi
db946ede 8646# Compute "$ac_file"'s index in $config_headers.
8647_am_arg="$ac_file"
ec1a68c8 8648_am_stamp_count=1
8649for _am_header in $config_headers :; do
8650 case $_am_header in
cbfd323c 8651 $_am_arg | $_am_arg:* )
ec1a68c8 8652 break ;;
8653 * )
8654 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8655 esac
8656done
cbfd323c 8657echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8658$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8659 X"$_am_arg" : 'X\(//\)[^/]' \| \
8660 X"$_am_arg" : 'X\(//\)$' \| \
8661 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
db946ede 8662$as_echo X"$_am_arg" |
a8b2ad8d 8663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8664 s//\1/
8665 q
8666 }
8667 /^X\(\/\/\)[^/].*/{
8668 s//\1/
8669 q
8670 }
8671 /^X\(\/\/\)$/{
8672 s//\1/
8673 q
8674 }
8675 /^X\(\/\).*/{
8676 s//\1/
8677 q
8678 }
8679 s/.*/./; q'`/stamp-h$_am_stamp_count
8680 ;;
ec1a68c8 8681
db946ede 8682 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8683$as_echo "$as_me: executing $ac_file commands" >&6;}
a8b2ad8d 8684 ;;
8685 esac
ec1a68c8 8686
8687
a8b2ad8d 8688 case $ac_file$ac_mode in
db946ede 8689 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8690 # Autoconf 2.62 quotes --file arguments for eval, but not when files
8691 # are listed without --file. Let's play safe and only enable the eval
8692 # if we detect the quoting.
8693 case $CONFIG_FILES in
8694 *\'*) eval set x "$CONFIG_FILES" ;;
8695 *) set x $CONFIG_FILES ;;
8696 esac
8697 shift
8698 for mf
8699 do
8700 # Strip MF so we end up with the name of the file.
8701 mf=`echo "$mf" | sed -e 's/:.*$//'`
8702 # Check whether this is an Automake generated Makefile or not.
8703 # We used to match only the files named `Makefile.in', but
8704 # some people rename them; so instead we look at the file content.
8705 # Grep'ing the first line is not enough: some people post-process
8706 # each Makefile.in and add a new line on top of each file to say so.
8707 # Grep'ing the whole file is not good either: AIX grep has a line
8708 # limit of 2048, but all sed's we know have understand at least 4000.
8709 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8710 dirpart=`$as_dirname -- "$mf" ||
ec1a68c8 8711$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8712 X"$mf" : 'X\(//\)[^/]' \| \
8713 X"$mf" : 'X\(//\)$' \| \
a8b2ad8d 8714 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
db946ede 8715$as_echo X"$mf" |
a8b2ad8d 8716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8717 s//\1/
8718 q
8719 }
8720 /^X\(\/\/\)[^/].*/{
8721 s//\1/
8722 q
8723 }
8724 /^X\(\/\/\)$/{
8725 s//\1/
8726 q
8727 }
8728 /^X\(\/\).*/{
8729 s//\1/
8730 q
8731 }
8732 s/.*/./; q'`
db946ede 8733 else
8734 continue
8735 fi
8736 # Extract the definition of DEPDIR, am__include, and am__quote
8737 # from the Makefile without running `make'.
8738 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8739 test -z "$DEPDIR" && continue
8740 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8741 test -z "am__include" && continue
8742 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8743 # When using ansi2knr, U may be empty or an underscore; expand it
8744 U=`sed -n 's/^U = //p' < "$mf"`
8745 # Find all dependency output files, they are included files with
8746 # $(DEPDIR) in their names. We invoke sed twice because it is the
8747 # simplest approach to changing $(DEPDIR) to its actual value in the
8748 # expansion.
8749 for file in `sed -n "
8750 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8751 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8752 # Make sure the directory exists.
8753 test -f "$dirpart/$file" && continue
8754 fdir=`$as_dirname -- "$file" ||
ec1a68c8 8755$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8756 X"$file" : 'X\(//\)[^/]' \| \
8757 X"$file" : 'X\(//\)$' \| \
a8b2ad8d 8758 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
db946ede 8759$as_echo X"$file" |
a8b2ad8d 8760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8761 s//\1/
8762 q
8763 }
8764 /^X\(\/\/\)[^/].*/{
8765 s//\1/
8766 q
8767 }
8768 /^X\(\/\/\)$/{
8769 s//\1/
8770 q
8771 }
8772 /^X\(\/\).*/{
8773 s//\1/
8774 q
8775 }
8776 s/.*/./; q'`
db946ede 8777 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8778 # echo "creating $dirpart/$file"
8779 echo '# dummy' > "$dirpart/$file"
ec1a68c8 8780 done
ec1a68c8 8781 done
db946ede 8782}
ec1a68c8 8783 ;;
a8b2ad8d 8784
ec1a68c8 8785 esac
a8b2ad8d 8786done # for ac_tag
b3076f16 8787
b3076f16 8788
db946ede 8789as_fn_exit 0
b3076f16 8790_ACEOF
b3076f16 8791ac_clean_files=$ac_clean_files_save
8792
db946ede 8793test $ac_write_fail = 0 ||
8794 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8795
b3076f16 8796
8797# configure is writing to config.log, and then calls config.status.
8798# config.status does its own redirection, appending to config.log.
8799# Unfortunately, on DOS this fails, as config.log is still kept open
8800# by configure, so config.status won't be able to write to it; its
8801# output is simply discarded. So we exec the FD to /dev/null,
8802# effectively closing config.log, so it can be properly (re)opened and
8803# appended to by config.status. When coming back to configure, we
8804# need to make the FD available again.
8805if test "$no_create" != yes; then
8806 ac_cs_success=:
8807 ac_config_status_args=
8808 test "$silent" = yes &&
8809 ac_config_status_args="$ac_config_status_args --quiet"
8810 exec 5>/dev/null
8811 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8812 exec 5>>config.log
8813 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8814 # would make configure fail if this is the last instruction.
db946ede 8815 $ac_cs_success || as_fn_exit $?
8816fi
8817if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8819$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b3076f16 8820fi
8821
5b1166fd 8822
8823
8824
8825cat <<EOF
8826
8827Configuration summary
8828=====================
8829
8830X3 is now configured as follows:
8831
8832* Compilation environment
8833
8834 CC = $CC
8835 CFLAGS = $CFLAGS
8836 CPP = $CPP
8837 CPPFLAGS = $CPPFLAGS
8838 LD = $LD
8839 LDFLAGS = $LDFLAGS
8840 LIBS = $LIBS
8841
8842* X3 options
8843
a8b2ad8d 8844 Debug: $x3_debug
8845 Extra Modules: $module_list
8846 Malloc: $x3_malloc
8847 Protocol: $x3_ircd
8848 Regexp Library TRE $tre_version
8849 Coredumper Library Coredumper $core_version
8da89711 8850 $ldap_message
2f65da8f 8851 python: $python
5b1166fd 8852
a8b2ad8d 8853 Install to: $prefix
35305a49 8854
5b1166fd 8855Now you can proceed with compiling X3
8856
8857EOF
8858