]> jfr.im git - irc/evilnet/x3.git/blob - configure
Fix for a couple of crash bugs
[irc/evilnet/x3.git] / configure
1 #! /bin/sh
2 # From configure.in Id.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.64 for X3 1.8.
5 #
6 # Report bugs to <evilnet-devel@lists.sourceforge.net>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
10 # Foundation, Inc.
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37 as_nl='
38 '
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_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.
46 if 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 --'
50 elif (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'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if 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 }
82 fi
83
84
85 # IFS
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" "" $as_nl"
91
92 # Find who we are. Look in the path if we contain no directory separator.
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
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.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if 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
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151 esac
152 fi
153 "
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168 exitcode=1; echo positional parameters were not saved.
169 fi
170 test 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
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 do
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
201 fi
202 fi
203 done;;
204 esac
205 as_found=false
206 done
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
210 fi; }
211 IFS=$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+"$@"}
223 fi
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."
231 else
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."
237 fi
238 exit 1
239 fi
240 fi
241 fi
242 SHELL=${CONFIG_SHELL-/bin/sh}
243 export SHELL
244 # Unset more variables known to interfere with behavior of common tools.
245 CLICOLOR_FORCE= GREP_OPTIONS=
246 unset CLICOLOR_FORCE GREP_OPTIONS
247
248 ## --------------------- ##
249 ## M4sh Shell Functions. ##
250 ## --------------------- ##
251 # as_fn_unset VAR
252 # ---------------
253 # Portably unset VAR.
254 as_fn_unset ()
255 {
256 { eval $1=; unset $1;}
257 }
258 as_unset=as_fn_unset
259
260 # as_fn_set_status STATUS
261 # -----------------------
262 # Set $? to STATUS, without forking.
263 as_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.
271 as_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.
281 as_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.
331 if (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 }'
336 else
337 as_fn_append ()
338 {
339 eval $1=\$$1\$2
340 }
341 fi # 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.
348 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
349 eval 'as_fn_arith ()
350 {
351 as_val=$(( $* ))
352 }'
353 else
354 as_fn_arith ()
355 {
356 as_val=`expr "$@" || test $? -eq 1`
357 }
358 fi # 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.
366 as_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
376
377 if expr a : '\(a\)' >/dev/null 2>&1 &&
378 test "X`expr 00001 : '.*\(...\)'`" = X001; then
379 as_expr=expr
380 else
381 as_expr=false
382 fi
383
384 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
385 as_basename=basename
386 else
387 as_basename=false
388 fi
389
390 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
391 as_dirname=dirname
392 else
393 as_dirname=false
394 fi
395
396 as_me=`$as_basename -- "$0" ||
397 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
398 X"$0" : 'X\(//\)$' \| \
399 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400 $as_echo X/"$0" |
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'`
414
415 # Avoid depending upon Character Ranges.
416 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
417 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
418 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
419 as_cr_digits='0123456789'
420 as_cr_alnum=$as_cr_Letters$as_cr_digits
421
422
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; }
445
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
452 }
453
454 ECHO_C= ECHO_N= ECHO_T=
455 case `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';;
465 esac
466
467 rm -f conf$$ conf$$.exe conf$$.file
468 if test -d conf$$.dir; then
469 rm -f conf$$.dir/conf$$.file
470 else
471 rm -f conf$$.dir
472 mkdir conf$$.dir 2>/dev/null
473 fi
474 if (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
488 else
489 as_ln_s='cp -p'
490 fi
491 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
492 rmdir conf$$.dir 2>/dev/null
493
494 if mkdir -p . 2>/dev/null; then
495 as_mkdir_p='mkdir -p "$as_dir"'
496 else
497 test -d ./-p && rmdir ./-p
498 as_mkdir_p=false
499 fi
500
501 if test -x / >/dev/null 2>&1; then
502 as_test_x='test -x'
503 else
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 '
521 fi
522 as_executable_p=$as_test_x
523
524 # Sed expression to map a string onto a valid CPP name.
525 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526
527 # Sed expression to map a string onto a valid variable name.
528 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529
530
531 exec 7<&0 </dev/null 6>&1
532
533 # Name of the host.
534 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
535 # so uname gets run too.
536 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
537
538 #
539 # Initializations.
540 #
541 ac_default_prefix=/usr/local
542 ac_clean_files=
543 ac_config_libobj_dir=.
544 LIBOBJS=
545 cross_compiling=no
546 subdirs=
547 MFLAGS=
548 MAKEFLAGS=
549
550 # Identity of this package.
551 PACKAGE_NAME='X3'
552 PACKAGE_TARNAME='x3'
553 PACKAGE_VERSION='1.8'
554 PACKAGE_STRING='X3 1.8'
555 PACKAGE_BUGREPORT='evilnet-devel@lists.sourceforge.net'
556 PACKAGE_URL=''
557
558 ac_unique_file="src/opserv.c"
559 # Factoring default headers for most tests.
560 ac_includes_default="\
561 #include <stdio.h>
562 #ifdef HAVE_SYS_TYPES_H
563 # include <sys/types.h>
564 #endif
565 #ifdef HAVE_SYS_STAT_H
566 # include <sys/stat.h>
567 #endif
568 #ifdef STDC_HEADERS
569 # include <stdlib.h>
570 # include <stddef.h>
571 #else
572 # ifdef HAVE_STDLIB_H
573 # include <stdlib.h>
574 # endif
575 #endif
576 #ifdef HAVE_STRING_H
577 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 # include <memory.h>
579 # endif
580 # include <string.h>
581 #endif
582 #ifdef HAVE_STRINGS_H
583 # include <strings.h>
584 #endif
585 #ifdef HAVE_INTTYPES_H
586 # include <inttypes.h>
587 #endif
588 #ifdef HAVE_STDINT_H
589 # include <stdint.h>
590 #endif
591 #ifdef HAVE_UNISTD_H
592 # include <unistd.h>
593 #endif"
594
595 ac_subst_vars='am__EXEEXT_FALSE
596 am__EXEEXT_TRUE
597 LTLIBOBJS
598 LIBOBJS
599 PY_LIBS
600 PY_CFLAGS
601 TRACK
602 RX_LIBS
603 RX_INCLUDES
604 MY_SUBDIRS
605 MODULE_OBJS
606 DO_PYTHON_FALSE
607 DO_PYTHON_TRUE
608 pythonpath
609 ALLOCA
610 MAKER
611 EGREP
612 GREP
613 CPP
614 LN_S
615 RANLIB
616 CP
617 am__fastdepCC_FALSE
618 am__fastdepCC_TRUE
619 CCDEPMODE
620 AMDEPBACKSLASH
621 AMDEP_FALSE
622 AMDEP_TRUE
623 am__quote
624 am__include
625 DEPDIR
626 OBJEXT
627 EXEEXT
628 ac_ct_CC
629 CPPFLAGS
630 LDFLAGS
631 CFLAGS
632 CC
633 MAINT
634 MAINTAINER_MODE_FALSE
635 MAINTAINER_MODE_TRUE
636 am__untar
637 am__tar
638 AMTAR
639 am__leading_dot
640 SET_MAKE
641 AWK
642 mkdir_p
643 MKDIR_P
644 INSTALL_STRIP_PROGRAM
645 STRIP
646 install_sh
647 MAKEINFO
648 AUTOHEADER
649 AUTOMAKE
650 AUTOCONF
651 ACLOCAL
652 VERSION
653 PACKAGE
654 CYGPATH_W
655 am__isrc
656 INSTALL_DATA
657 INSTALL_SCRIPT
658 INSTALL_PROGRAM
659 target_os
660 target_vendor
661 target_cpu
662 target
663 host_os
664 host_vendor
665 host_cpu
666 host
667 build_os
668 build_vendor
669 build_cpu
670 build
671 target_alias
672 host_alias
673 build_alias
674 LIBS
675 ECHO_T
676 ECHO_N
677 ECHO_C
678 DEFS
679 mandir
680 localedir
681 libdir
682 psdir
683 pdfdir
684 dvidir
685 htmldir
686 infodir
687 docdir
688 oldincludedir
689 includedir
690 localstatedir
691 sharedstatedir
692 sysconfdir
693 datadir
694 datarootdir
695 libexecdir
696 sbindir
697 bindir
698 program_transform_name
699 prefix
700 exec_prefix
701 PACKAGE_URL
702 PACKAGE_BUGREPORT
703 PACKAGE_STRING
704 PACKAGE_VERSION
705 PACKAGE_TARNAME
706 PACKAGE_NAME
707 PATH_SEPARATOR
708 SHELL'
709 ac_subst_files=''
710 ac_user_opts='
711 enable_option_checking
712 enable_maintainer_mode
713 enable_dependency_tracking
714 with_malloc
715 with_protocol
716 with_mail
717 with_epoll
718 with_kevent
719 with_getopt
720 enable_tokens
721 enable_debug
722 enable_modules
723 enable_python
724 with_tre
725 with_coredumper
726 with_ssl
727 with_ldap
728 '
729 ac_precious_vars='build_alias
730 host_alias
731 target_alias
732 CC
733 CFLAGS
734 LDFLAGS
735 LIBS
736 CPPFLAGS
737 CPP'
738
739
740 # Initialize some variables set by options.
741 ac_init_help=
742 ac_init_version=false
743 ac_unrecognized_opts=
744 ac_unrecognized_sep=
745 # The variables have the same names as the options, with
746 # dashes changed to underlines.
747 cache_file=/dev/null
748 exec_prefix=NONE
749 no_create=
750 no_recursion=
751 prefix=NONE
752 program_prefix=NONE
753 program_suffix=NONE
754 program_transform_name=s,x,x,
755 silent=
756 site=
757 srcdir=
758 verbose=
759 x_includes=NONE
760 x_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.
767 # (The list follows the same order as the GNU Coding Standards.)
768 bindir='${exec_prefix}/bin'
769 sbindir='${exec_prefix}/sbin'
770 libexecdir='${exec_prefix}/libexec'
771 datarootdir='${prefix}/share'
772 datadir='${datarootdir}'
773 sysconfdir='${prefix}/etc'
774 sharedstatedir='${prefix}/com'
775 localstatedir='${prefix}/var'
776 includedir='${prefix}/include'
777 oldincludedir='/usr/include'
778 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
779 infodir='${datarootdir}/info'
780 htmldir='${docdir}'
781 dvidir='${docdir}'
782 pdfdir='${docdir}'
783 psdir='${docdir}'
784 libdir='${exec_prefix}/lib'
785 localedir='${datarootdir}/locale'
786 mandir='${datarootdir}/man'
787
788 ac_prev=
789 ac_dashdash=
790 for ac_option
791 do
792 # If the previous option needs an argument, assign it.
793 if test -n "$ac_prev"; then
794 eval $ac_prev=\$ac_option
795 ac_prev=
796 continue
797 fi
798
799 case $ac_option in
800 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
801 *) ac_optarg=yes ;;
802 esac
803
804 # Accept the important Cygnus configure options, so we can diagnose typos.
805
806 case $ac_dashdash$ac_option in
807 --)
808 ac_dashdash=yes ;;
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
830 -datadir | --datadir | --datadi | --datad)
831 ac_prev=datadir ;;
832 -datadir=* | --datadir=* | --datadi=* | --datad=*)
833 datadir=$ac_optarg ;;
834
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
842 -disable-* | --disable-*)
843 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
844 # Reject names that are not valid shell variable names.
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 ;;
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 ;;
867
868 -enable-* | --enable-*)
869 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
870 # Reject names that are not valid shell variable names.
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 ;;
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
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
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
939 -localedir | --localedir | --localedi | --localed | --locale)
940 ac_prev=localedir ;;
941 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
942 localedir=$ac_optarg ;;
943
944 -localstatedir | --localstatedir | --localstatedi | --localstated \
945 | --localstate | --localstat | --localsta | --localst | --locals)
946 ac_prev=localstatedir ;;
947 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
948 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
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
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
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-*)
1073 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1074 # Reject names that are not valid shell variable names.
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 ;;
1087
1088 -without-* | --without-*)
1089 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1090 # Reject names that are not valid shell variable names.
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 ;;
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
1122 -*) as_fn_error "unrecognized option: \`$ac_option'
1123 Try \`$0 --help' for more information."
1124 ;;
1125
1126 *=*)
1127 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1128 # Reject names that are not valid shell variable names.
1129 case $ac_envvar in #(
1130 '' | [0-9]* | *[!_$as_cr_alnum]* )
1131 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1132 esac
1133 eval $ac_envvar=\$ac_optarg
1134 export $ac_envvar ;;
1135
1136 *)
1137 # FIXME: should be removed in autoconf 3.0.
1138 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1139 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1140 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1141 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1142 ;;
1143
1144 esac
1145 done
1146
1147 if test -n "$ac_prev"; then
1148 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1149 as_fn_error "missing argument to $ac_option"
1150 fi
1151
1152 if 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
1158 fi
1159
1160 # Check all directory arguments for consistency.
1161 for 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
1165 do
1166 eval ac_val=\$$ac_var
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.
1174 case $ac_val in
1175 [\\/$]* | ?:[\\/]* ) continue;;
1176 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1177 esac
1178 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1179 done
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.
1184 build=$build_alias
1185 host=$host_alias
1186 target=$target_alias
1187
1188 # FIXME: To remove some day.
1189 if test "x$host_alias" != x; then
1190 if test "x$build_alias" = x; then
1191 cross_compiling=maybe
1192 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
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
1197 fi
1198
1199 ac_tool_prefix=
1200 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1201
1202 test "$silent" = yes && exec 6>/dev/null
1203
1204
1205 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1206 ac_ls_di=`ls -di .` &&
1207 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1208 as_fn_error "working directory cannot be determined"
1209 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1210 as_fn_error "pwd does not report name of working directory"
1211
1212
1213 # Find the source files, if location was not specified.
1214 if test -z "$srcdir"; then
1215 ac_srcdir_defaulted=yes
1216 # Try the directory containing this script, then the parent directory.
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" |
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'`
1240 srcdir=$ac_confdir
1241 if test ! -r "$srcdir/$ac_unique_file"; then
1242 srcdir=..
1243 fi
1244 else
1245 ac_srcdir_defaulted=no
1246 fi
1247 if test ! -r "$srcdir/$ac_unique_file"; then
1248 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1249 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1250 fi
1251 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1252 ac_abs_confdir=`(
1253 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1254 pwd)`
1255 # When building in place, set srcdir=.
1256 if test "$ac_abs_confdir" = "$ac_pwd"; then
1257 srcdir=.
1258 fi
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.
1262 case $srcdir in
1263 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1264 esac
1265 for 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}
1270 done
1271
1272 #
1273 # Report the --help message.
1274 #
1275 if 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
1279 \`configure' configures X3 1.8 to adapt to many kinds of systems.
1280
1281 Usage: $0 [OPTION]... [VAR=VALUE]...
1282
1283 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1284 VAR=VALUE. See below for descriptions of some of the useful variables.
1285
1286 Defaults for the options are specified in brackets.
1287
1288 Configuration:
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
1299 Installation directories:
1300 --prefix=PREFIX install architecture-independent files in PREFIX
1301 [$ac_default_prefix]
1302 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1303 [PREFIX]
1304
1305 By default, \`make install' will install all the files in
1306 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1307 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1308 for instance \`--prefix=\$HOME'.
1309
1310 For better control, use the options below.
1311
1312 Fine tuning of the installation directories:
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]
1332 _ACEOF
1333
1334 cat <<\_ACEOF
1335
1336 Program 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
1341 System 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
1346 fi
1347
1348 if test -n "$ac_init_help"; then
1349 case $ac_init_help in
1350 short | recursive ) echo "Configuration of X3 1.8:";;
1351 esac
1352 cat <<\_ACEOF
1353
1354 Optional Features:
1355 --disable-option-checking ignore unrecognized --enable/--with options
1356 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1357 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
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
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
1366 --disable-python don't build the python plugin
1367
1368 Optional 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:
1372 system (the default), boehm-gc, dmalloc, mpatrol, x3, slab
1373 --with-protocol=name Choose IRC dialect to support; one of:
1374 p10 (the default)
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
1379 --without-getopt Disables building of the GNU getopt library
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.
1385 --with-ssl=PATH Base path to where openssl is installed
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.
1388
1389 Some 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>
1394 LIBS libraries to pass to the linker, e.g. -l<library>
1395 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1396 you have headers in a nonstandard directory <include dir>
1397 CPP C preprocessor
1398
1399 Use these variables to override the choices made by `configure' or to help
1400 it to find libraries and programs with nonstandard names/locations.
1401
1402 Report bugs to <evilnet-devel@lists.sourceforge.net>.
1403 _ACEOF
1404 ac_status=$?
1405 fi
1406
1407 if test "$ac_init_help" = "recursive"; then
1408 # If there are subdirs, report their specific --help.
1409 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1410 test -d "$ac_dir" ||
1411 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1412 continue
1413 ac_builddir=.
1414
1415 case "$ac_dir" in
1416 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1417 *)
1418 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1419 # A ".." for each directory in $ac_dir_suffix.
1420 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
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 ;;
1425 esac
1426 ac_abs_top_builddir=$ac_pwd
1427 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1428 # for backward compatibility:
1429 ac_top_builddir=$ac_top_build_prefix
1430
1431 case $srcdir in
1432 .) # We are building in place.
1433 ac_srcdir=.
1434 ac_top_srcdir=$ac_top_builddir_sub
1435 ac_abs_top_srcdir=$ac_pwd ;;
1436 [\\/]* | ?:[\\/]* ) # Absolute name.
1437 ac_srcdir=$srcdir$ac_dir_suffix;
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 ;;
1444 esac
1445 ac_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
1455 else
1456 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1457 fi || ac_status=$?
1458 cd "$ac_pwd" || { ac_status=$?; break; }
1459 done
1460 fi
1461
1462 test -n "$ac_init_help" && exit $ac_status
1463 if $ac_init_version; then
1464 cat <<\_ACEOF
1465 X3 configure 1.8
1466 generated by GNU Autoconf 2.64
1467
1468 Copyright (C) 2009 Free Software Foundation, Inc.
1469 This configure script is free software; the Free Software Foundation
1470 gives unlimited permission to copy, distribute and modify it.
1471 _ACEOF
1472 exit
1473 fi
1474
1475 ## ------------------------ ##
1476 ## Autoconf initialization. ##
1477 ## ------------------------ ##
1478
1479 # ac_fn_c_try_compile LINENO
1480 # --------------------------
1481 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1482 ac_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"
1487 case "(($ac_try" in
1488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1489 *) ac_try_echo=$ac_try;;
1490 esac
1491 eval 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
1506 else
1507 $as_echo "$as_me: failed program was:" >&5
1508 sed 's/^/| /' conftest.$ac_ext >&5
1509
1510 ac_retval=1
1511 fi
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.
1520 ac_fn_c_try_cpp ()
1521 {
1522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1523 if { { ac_try="$ac_cpp conftest.$ac_ext"
1524 case "(($ac_try" in
1525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1526 *) ac_try_echo=$ac_try;;
1527 esac
1528 eval 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
1543 else
1544 $as_echo "$as_me: failed program was:" >&5
1545 sed 's/^/| /' conftest.$ac_ext >&5
1546
1547 ac_retval=1
1548 fi
1549 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1550 return $ac_retval
1551
1552 } # ac_fn_c_try_cpp
1553
1554 # ac_fn_c_try_link LINENO
1555 # -----------------------
1556 # Try to link conftest.$ac_ext, and return whether this succeeded.
1557 ac_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"
1562 case "(($ac_try" in
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1565 esac
1566 eval 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
1584 else
1585 $as_echo "$as_me: failed program was:" >&5
1586 sed 's/^/| /' conftest.$ac_ext >&5
1587
1588 ac_retval=1
1589 fi
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
1597
1598 } # ac_fn_c_try_link
1599
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.
1604 ac_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"
1608 case "(($ac_try" in
1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610 *) ac_try_echo=$ac_try;;
1611 esac
1612 eval 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;;
1621 esac
1622 eval 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
1629 else
1630 $as_echo "$as_me: program exited with status $ac_status" >&5
1631 $as_echo "$as_me: failed program was:" >&5
1632 sed 's/^/| /' conftest.$ac_ext >&5
1633
1634 ac_retval=$ac_status
1635 fi
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.
1647 ac_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; }
1653 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1654 $as_echo_n "(cached) " >&6
1655 fi
1656 eval ac_res=\$$3
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1658 $as_echo "$ac_res" >&6; }
1659 else
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; }
1663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1664 /* end confdefs.h. */
1665 $4
1666 #include <$2>
1667 _ACEOF
1668 if ac_fn_c_try_compile "$LINENO"; then :
1669 ac_header_compiler=yes
1670 else
1671 ac_header_compiler=no
1672 fi
1673 rm -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; }
1680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681 /* end confdefs.h. */
1682 #include <$2>
1683 _ACEOF
1684 if ac_fn_c_try_cpp "$LINENO"; then :
1685 ac_header_preproc=yes
1686 else
1687 ac_header_preproc=no
1688 fi
1689 rm -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?
1694 case $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 ;;
1719 esac
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721 $as_echo_n "checking for $2... " >&6; }
1722 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1723 $as_echo_n "(cached) " >&6
1724 else
1725 eval "$3=\$ac_header_compiler"
1726 fi
1727 eval ac_res=\$$3
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729 $as_echo "$ac_res" >&6; }
1730 fi
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.
1739 ac_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; }
1744 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1745 $as_echo_n "(cached) " >&6
1746 else
1747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748 /* end confdefs.h. */
1749 $4
1750 #include <$2>
1751 _ACEOF
1752 if ac_fn_c_try_compile "$LINENO"; then :
1753 eval "$3=yes"
1754 else
1755 eval "$3=no"
1756 fi
1757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1758 fi
1759 eval 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.
1770 ac_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; }
1775 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1776 $as_echo_n "(cached) " >&6
1777 else
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1780 $5
1781 int
1782 main ()
1783 {
1784 static $2 ac_aggr;
1785 if (ac_aggr.$3)
1786 return 0;
1787 ;
1788 return 0;
1789 }
1790 _ACEOF
1791 if ac_fn_c_try_compile "$LINENO"; then :
1792 eval "$4=yes"
1793 else
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1796 $5
1797 int
1798 main ()
1799 {
1800 static $2 ac_aggr;
1801 if (sizeof ac_aggr.$3)
1802 return 0;
1803 ;
1804 return 0;
1805 }
1806 _ACEOF
1807 if ac_fn_c_try_compile "$LINENO"; then :
1808 eval "$4=yes"
1809 else
1810 eval "$4=no"
1811 fi
1812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813 fi
1814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1815 fi
1816 eval 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
1826 ac_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; }
1831 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1832 $as_echo_n "(cached) " >&6
1833 else
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
1857 extern "C"
1858 #endif
1859 char $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
1864 choke me
1865 #endif
1866
1867 int
1868 main ()
1869 {
1870 return $2 ();
1871 ;
1872 return 0;
1873 }
1874 _ACEOF
1875 if ac_fn_c_try_link "$LINENO"; then :
1876 eval "$3=yes"
1877 else
1878 eval "$3=no"
1879 fi
1880 rm -f core conftest.err conftest.$ac_objext \
1881 conftest$ac_exeext conftest.$ac_ext
1882 fi
1883 eval 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.
1894 ac_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; }
1899 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1900 $as_echo_n "(cached) " >&6
1901 else
1902 eval "$3=no"
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1905 $4
1906 int
1907 main ()
1908 {
1909 if (sizeof ($2))
1910 return 0;
1911 ;
1912 return 0;
1913 }
1914 _ACEOF
1915 if ac_fn_c_try_compile "$LINENO"; then :
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1918 $4
1919 int
1920 main ()
1921 {
1922 if (sizeof (($2)))
1923 return 0;
1924 ;
1925 return 0;
1926 }
1927 _ACEOF
1928 if ac_fn_c_try_compile "$LINENO"; then :
1929
1930 else
1931 eval "$3=yes"
1932 fi
1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934 fi
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 fi
1937 eval 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
1943 cat >config.log <<_ACEOF
1944 This file contains any messages produced by compilers while
1945 running configure, to aid debugging if configure makes a mistake.
1946
1947 It was created by X3 $as_me 1.8, which was
1948 generated by GNU Autoconf 2.64. Invocation command line was
1949
1950 $ $0 $@
1951
1952 _ACEOF
1953 exec 5>>config.log
1954 {
1955 cat <<_ASUNAME
1956 ## --------- ##
1957 ## Platform. ##
1958 ## --------- ##
1959
1960 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1961 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1962 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1963 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1964 uname -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
1979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980 for as_dir in $PATH
1981 do
1982 IFS=$as_save_IFS
1983 test -z "$as_dir" && as_dir=.
1984 $as_echo "PATH: $as_dir"
1985 done
1986 IFS=$as_save_IFS
1987
1988 } >&5
1989
1990 cat >&5 <<_ACEOF
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.
2005 ac_configure_args=
2006 ac_configure_args0=
2007 ac_configure_args1=
2008 ac_must_keep_next=false
2009 for ac_pass in 1 2
2010 do
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 ;;
2018 *\'*)
2019 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2020 esac
2021 case $ac_pass in
2022 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2023 2)
2024 as_fn_append ac_configure_args1 " '$ac_arg'"
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
2040 as_fn_append ac_configure_args " '$ac_arg'"
2041 ;;
2042 esac
2043 done
2044 done
2045 { ac_configure_args0=; unset ac_configure_args0;}
2046 { ac_configure_args1=; unset ac_configure_args1;}
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.
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.
2053 trap '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,
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 #(
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;} ;;
2073 esac
2074 case $ac_var in #(
2075 _ | IFS | as_nl) ;; #(
2076 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2077 *) { eval $ac_var=; unset $ac_var;} ;;
2078 esac ;;
2079 esac
2080 done
2081 (set) 2>&1 |
2082 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2083 *${as_nl}ac_space=\ *)
2084 sed -n \
2085 "s/'\''/'\''\\\\'\'''\''/g;
2086 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2087 ;; #(
2088 *)
2089 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2090 ;;
2091 esac |
2092 sort
2093 )
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
2104 eval ac_val=\$$ac_var
2105 case $ac_val in
2106 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2107 esac
2108 $as_echo "$ac_var='\''$ac_val'\''"
2109 done | sort
2110 echo
2111
2112 if test -n "$ac_subst_files"; then
2113 cat <<\_ASBOX
2114 ## ------------------- ##
2115 ## File substitutions. ##
2116 ## ------------------- ##
2117 _ASBOX
2118 echo
2119 for ac_var in $ac_subst_files
2120 do
2121 eval ac_val=\$$ac_var
2122 case $ac_val in
2123 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2124 esac
2125 $as_echo "$ac_var='\''$ac_val'\''"
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
2137 cat confdefs.h
2138 echo
2139 fi
2140 test "$ac_signal" != 0 &&
2141 $as_echo "$as_me: caught signal $ac_signal"
2142 $as_echo "$as_me: exit $exit_status"
2143 } >&5
2144 rm -f core *.core core.conftest.* &&
2145 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2146 exit $exit_status
2147 ' 0
2148 for ac_signal in 1 2 13 15; do
2149 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2150 done
2151 ac_signal=0
2152
2153 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2154 rm -f -r conftest* confdefs.h
2155
2156 $as_echo "/* confdefs.h */" > confdefs.h
2157
2158 # Predefined preprocessor variables.
2159
2160 cat >>confdefs.h <<_ACEOF
2161 #define PACKAGE_NAME "$PACKAGE_NAME"
2162 _ACEOF
2163
2164 cat >>confdefs.h <<_ACEOF
2165 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2166 _ACEOF
2167
2168 cat >>confdefs.h <<_ACEOF
2169 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2170 _ACEOF
2171
2172 cat >>confdefs.h <<_ACEOF
2173 #define PACKAGE_STRING "$PACKAGE_STRING"
2174 _ACEOF
2175
2176 cat >>confdefs.h <<_ACEOF
2177 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2178 _ACEOF
2179
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_URL "$PACKAGE_URL"
2182 _ACEOF
2183
2184
2185 # Let the site file select an alternate cache file if it wants to.
2186 # Prefer an explicitly selected file to automatically selected ones.
2187 ac_site_file1=NONE
2188 ac_site_file2=NONE
2189 if test -n "$CONFIG_SITE"; then
2190 ac_site_file1=$CONFIG_SITE
2191 elif test "x$prefix" != xNONE; then
2192 ac_site_file1=$prefix/share/config.site
2193 ac_site_file2=$prefix/etc/config.site
2194 else
2195 ac_site_file1=$ac_default_prefix/share/config.site
2196 ac_site_file2=$ac_default_prefix/etc/config.site
2197 fi
2198 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2199 do
2200 test "x$ac_site_file" = xNONE && continue
2201 if test -r "$ac_site_file"; then
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;}
2204 sed 's/^/| /' "$ac_site_file" >&5
2205 . "$ac_site_file"
2206 fi
2207 done
2208
2209 if 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
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2214 $as_echo "$as_me: loading cache $cache_file" >&6;}
2215 case $cache_file in
2216 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2217 *) . "./$cache_file";;
2218 esac
2219 fi
2220 else
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2222 $as_echo "$as_me: creating cache $cache_file" >&6;}
2223 >$cache_file
2224 fi
2225
2226 # Check that the precious variables saved in the cache have kept the same
2227 # value.
2228 ac_cache_corrupted=false
2229 for ac_var in $ac_precious_vars; do
2230 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2231 eval ac_new_set=\$ac_env_${ac_var}_set
2232 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2233 eval ac_new_val=\$ac_env_${ac_var}_value
2234 case $ac_old_set,$ac_new_set in
2235 set,)
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;}
2238 ac_cache_corrupted=: ;;
2239 ,set)
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;}
2242 ac_cache_corrupted=: ;;
2243 ,);;
2244 *)
2245 if test "x$ac_old_val" != "x$ac_new_val"; then
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;}
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
2267 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
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.
2272 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2273 esac
2274 fi
2275 done
2276 if $ac_cache_corrupted; then
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
2282 fi
2283 ## -------------------- ##
2284 ## Main body of script. ##
2285 ## -------------------- ##
2286
2287 ac_ext=c
2288 ac_cpp='$CPP $CPPFLAGS'
2289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2292
2293
2294 CODENAME=X3
2295 ac_config_headers="$ac_config_headers src/config.h"
2296
2297
2298 ac_aux_dir=
2299 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
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
2307 done
2308 if test -z "$ac_aux_dir"; then
2309 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2310 fi
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.
2316 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2317 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2318 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2319
2320
2321 # Make sure we can run config.sub.
2322 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2323 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2324
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2326 $as_echo_n "checking build system type... " >&6; }
2327 if test "${ac_cv_build+set}" = set; then :
2328 $as_echo_n "(cached) " >&6
2329 else
2330 ac_build_alias=$build_alias
2331 test "x$ac_build_alias" = x &&
2332 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2333 test "x$ac_build_alias" = x &&
2334 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2335 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2336 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2337
2338 fi
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2340 $as_echo "$ac_cv_build" >&6; }
2341 case $ac_cv_build in
2342 *-*-*) ;;
2343 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2344 esac
2345 build=$ac_cv_build
2346 ac_save_IFS=$IFS; IFS='-'
2347 set x $ac_cv_build
2348 shift
2349 build_cpu=$1
2350 build_vendor=$2
2351 shift; shift
2352 # Remember, the first character of IFS is used to create $*,
2353 # except with old shells:
2354 build_os=$*
2355 IFS=$ac_save_IFS
2356 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2357
2358
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2360 $as_echo_n "checking host system type... " >&6; }
2361 if test "${ac_cv_host+set}" = set; then :
2362 $as_echo_n "(cached) " >&6
2363 else
2364 if test "x$host_alias" = x; then
2365 ac_cv_host=$ac_cv_build
2366 else
2367 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2368 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2369 fi
2370
2371 fi
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2373 $as_echo "$ac_cv_host" >&6; }
2374 case $ac_cv_host in
2375 *-*-*) ;;
2376 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2377 esac
2378 host=$ac_cv_host
2379 ac_save_IFS=$IFS; IFS='-'
2380 set x $ac_cv_host
2381 shift
2382 host_cpu=$1
2383 host_vendor=$2
2384 shift; shift
2385 # Remember, the first character of IFS is used to create $*,
2386 # except with old shells:
2387 host_os=$*
2388 IFS=$ac_save_IFS
2389 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2390
2391
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2393 $as_echo_n "checking target system type... " >&6; }
2394 if test "${ac_cv_target+set}" = set; then :
2395 $as_echo_n "(cached) " >&6
2396 else
2397 if test "x$target_alias" = x; then
2398 ac_cv_target=$ac_cv_host
2399 else
2400 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2401 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2402 fi
2403
2404 fi
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2406 $as_echo "$ac_cv_target" >&6; }
2407 case $ac_cv_target in
2408 *-*-*) ;;
2409 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2410 esac
2411 target=$ac_cv_target
2412 ac_save_IFS=$IFS; IFS='-'
2413 set x $ac_cv_target
2414 shift
2415 target_cpu=$1
2416 target_vendor=$2
2417 shift; shift
2418 # Remember, the first character of IFS is used to create $*,
2419 # except with old shells:
2420 target_os=$*
2421 IFS=$ac_save_IFS
2422 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2423
2424
2425 # The aliases save the names the user supplied, while $host etc.
2426 # will get canonicalized.
2427 test -n "$target_alias" &&
2428 test "$program_prefix$program_suffix$program_transform_name" = \
2429 NONENONEs,x,x, &&
2430 program_prefix=${target_alias}-
2431 am__api_version='1.11'
2432
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.
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; }
2449 if test -z "$INSTALL"; then
2450 if test "${ac_cv_path_install+set}" = set; then :
2451 $as_echo_n "(cached) " >&6
2452 else
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 for as_dir in $PATH
2455 do
2456 IFS=$as_save_IFS
2457 test -z "$as_dir" && as_dir=.
2458 # Account for people who put trailing slashes in PATH elements.
2459 case $as_dir/ in #((
2460 ./ | .// | /[cC]/* | \
2461 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2462 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
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
2470 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
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
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
2492 fi
2493 fi
2494 done
2495 done
2496 ;;
2497 esac
2498
2499 done
2500 IFS=$as_save_IFS
2501
2502 rm -rf conftest.one conftest.two conftest.dir
2503
2504 fi
2505 if test "${ac_cv_path_install+set}" = set; then
2506 INSTALL=$ac_cv_path_install
2507 else
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
2510 # break other packages using the cache if that directory is
2511 # removed, or if the value is a relative name.
2512 INSTALL=$ac_install_sh
2513 fi
2514 fi
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2516 $as_echo "$INSTALL" >&6; }
2517
2518 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2519 # It thinks the first close brace ends the variable substitution.
2520 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2521
2522 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2523
2524 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2525
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; }
2528 # Just in case
2529 sleep 1
2530 echo timestamp > conftest.file
2531 # Reject unsafe characters in $srcdir or the absolute working directory
2532 # name. Accept space and tab only in the latter.
2533 am_lf='
2534 '
2535 case `pwd` in
2536 *[\\\"\#\$\&\'\`$am_lf]*)
2537 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2538 esac
2539 case $srcdir in
2540 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2541 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2542 esac
2543
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).
2549 if (
2550 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2551 if test "$*" = "X"; then
2552 # -L didn't work.
2553 set X `ls -t "$srcdir/configure" conftest.file`
2554 fi
2555 rm -f conftest.file
2556 if test "$*" != "X $srcdir/configure conftest.file" \
2557 && test "$*" != "X conftest.file $srcdir/configure"; then
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".
2563 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2564 alias in your environment" "$LINENO" 5
2565 fi
2566
2567 test "$2" = conftest.file
2568 )
2569 then
2570 # Ok.
2571 :
2572 else
2573 as_fn_error "newly created file is older than distributed files!
2574 Check your system clock" "$LINENO" 5
2575 fi
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2577 $as_echo "yes" >&6; }
2578 test "$program_prefix" != NONE &&
2579 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2580 # Use a double $ so make ignores it.
2581 test "$program_suffix" != NONE &&
2582 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2583 # Double any \ or $.
2584 # By default was `s,x,x', remove it if useless.
2585 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2586 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2587
2588 # expand $ac_aux_dir to an absolute path
2589 am_aux_dir=`cd $ac_aux_dir && pwd`
2590
2591 if 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
2598 fi
2599 # Use eval to expand $SHELL
2600 if eval "$MISSING --run true"; then
2601 am_missing_run="$MISSING --run "
2602 else
2603 am_missing_run=
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;}
2606 fi
2607
2608 if 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
2615 fi
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.
2621 if 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.
2624 set 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; }
2627 if test "${ac_cv_prog_STRIP+set}" = set; then :
2628 $as_echo_n "(cached) " >&6
2629 else
2630 if test -n "$STRIP"; then
2631 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2632 else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2635 do
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
2644 done
2645 done
2646 IFS=$as_save_IFS
2647
2648 fi
2649 fi
2650 STRIP=$ac_cv_prog_STRIP
2651 if test -n "$STRIP"; then
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2653 $as_echo "$STRIP" >&6; }
2654 else
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656 $as_echo "no" >&6; }
2657 fi
2658
2659
2660 fi
2661 if 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.
2664 set 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; }
2667 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2668 $as_echo_n "(cached) " >&6
2669 else
2670 if test -n "$ac_ct_STRIP"; then
2671 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2672 else
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2675 do
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
2684 done
2685 done
2686 IFS=$as_save_IFS
2687
2688 fi
2689 fi
2690 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2691 if 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; }
2694 else
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2696 $as_echo "no" >&6; }
2697 fi
2698
2699 if test "x$ac_ct_STRIP" = x; then
2700 STRIP=":"
2701 else
2702 case $cross_compiling:$ac_tool_warned in
2703 yes:)
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;}
2706 ac_tool_warned=yes ;;
2707 esac
2708 STRIP=$ac_ct_STRIP
2709 fi
2710 else
2711 STRIP="$ac_cv_prog_STRIP"
2712 fi
2713
2714 fi
2715 INSTALL_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; }
2719 if test -z "$MKDIR_P"; then
2720 if test "${ac_cv_path_mkdir+set}" = set; then :
2721 $as_echo_n "(cached) " >&6
2722 else
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2725 do
2726 IFS=$as_save_IFS
2727 test -z "$as_dir" && as_dir=.
2728 for ac_prog in mkdir gmkdir; do
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
2740 done
2741 IFS=$as_save_IFS
2742
2743 fi
2744
2745 if test "${ac_cv_path_mkdir+set}" = set; then
2746 MKDIR_P="$ac_cv_path_mkdir -p"
2747 else
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"
2754 fi
2755 fi
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2757 $as_echo "$MKDIR_P" >&6; }
2758
2759 mkdir_p="$MKDIR_P"
2760 case $mkdir_p in
2761 [\\/$]* | ?:[\\/]*) ;;
2762 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2763 esac
2764
2765 for ac_prog in gawk mawk nawk awk
2766 do
2767 # Extract the first word of "$ac_prog", so it can be a program name with args.
2768 set dummy $ac_prog; ac_word=$2
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770 $as_echo_n "checking for $ac_word... " >&6; }
2771 if test "${ac_cv_prog_AWK+set}" = set; then :
2772 $as_echo_n "(cached) " >&6
2773 else
2774 if test -n "$AWK"; then
2775 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2776 else
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 for as_dir in $PATH
2779 do
2780 IFS=$as_save_IFS
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2784 ac_cv_prog_AWK="$ac_prog"
2785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 break 2
2787 fi
2788 done
2789 done
2790 IFS=$as_save_IFS
2791
2792 fi
2793 fi
2794 AWK=$ac_cv_prog_AWK
2795 if test -n "$AWK"; then
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2797 $as_echo "$AWK" >&6; }
2798 else
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800 $as_echo "no" >&6; }
2801 fi
2802
2803
2804 test -n "$AWK" && break
2805 done
2806
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; }
2809 set x ${MAKE-make}
2810 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2811 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2812 $as_echo_n "(cached) " >&6
2813 else
2814 cat >conftest.make <<\_ACEOF
2815 SHELL = /bin/sh
2816 all:
2817 @echo '@@@%%%=$(MAKE)=@@@%%%'
2818 _ACEOF
2819 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2820 case `${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;;
2825 esac
2826 rm -f conftest.make
2827 fi
2828 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2830 $as_echo "yes" >&6; }
2831 SET_MAKE=
2832 else
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834 $as_echo "no" >&6; }
2835 SET_MAKE="MAKE=${MAKE-make}"
2836 fi
2837
2838 rm -rf .tst 2>/dev/null
2839 mkdir .tst 2>/dev/null
2840 if test -d .tst; then
2841 am__leading_dot=.
2842 else
2843 am__leading_dot=_
2844 fi
2845 rmdir .tst 2>/dev/null
2846
2847 if 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
2853 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2854 fi
2855 fi
2856
2857 # test whether we have cygpath
2858 if 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
2864 fi
2865
2866
2867 # Define the identity of the package.
2868 PACKAGE='x3'
2869 VERSION='1.8'
2870
2871
2872 cat >>confdefs.h <<_ACEOF
2873 #define PACKAGE "$PACKAGE"
2874 _ACEOF
2875
2876
2877 cat >>confdefs.h <<_ACEOF
2878 #define VERSION "$VERSION"
2879 _ACEOF
2880
2881 # Some tools Automake needs.
2882
2883 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2884
2885
2886 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2887
2888
2889 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2890
2891
2892 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2893
2894
2895 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2896
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
2901 AMTAR=${AMTAR-"${am_missing_run}tar"}
2902
2903 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2904
2905
2906
2907
2908
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; }
2912 # Check whether --enable-maintainer-mode was given.
2913 if test "${enable_maintainer_mode+set}" = set; then :
2914 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2915 else
2916 USE_MAINTAINER_MODE=no
2917 fi
2918
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2920 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2921 if test $USE_MAINTAINER_MODE = yes; then
2922 MAINTAINER_MODE_TRUE=
2923 MAINTAINER_MODE_FALSE='#'
2924 else
2925 MAINTAINER_MODE_TRUE='#'
2926 MAINTAINER_MODE_FALSE=
2927 fi
2928
2929 MAINT=$MAINTAINER_MODE_TRUE
2930
2931
2932
2933 DEPDIR="${am__leading_dot}deps"
2934
2935 ac_config_commands="$ac_config_commands depfiles"
2936
2937
2938 am_make=${MAKE-make}
2939 cat > confinc << 'END'
2940 am__doit:
2941 @echo this is the am__doit target
2942 .PHONY: am__doit
2943 END
2944 # If we don't find an include directive, just comment out the code.
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; }
2947 am__include="#"
2948 am__quote=
2949 _am_result=none
2950 # First try GNU make style include.
2951 echo "include confinc" > confmf
2952 # Ignore all kinds of additional output from `make'.
2953 case `$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 ;;
2959 esac
2960 # Now try BSD make style include.
2961 if test "$am__include" = "#"; then
2962 echo '.include "confinc"' > confmf
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
2970 fi
2971
2972
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2974 $as_echo "$_am_result" >&6; }
2975 rm -f confinc confmf
2976
2977 # Check whether --enable-dependency-tracking was given.
2978 if test "${enable_dependency_tracking+set}" = set; then :
2979 enableval=$enable_dependency_tracking;
2980 fi
2981
2982 if test "x$enable_dependency_tracking" != xno; then
2983 am_depcomp="$ac_aux_dir/depcomp"
2984 AMDEPBACKSLASH='\'
2985 fi
2986 if test "x$enable_dependency_tracking" != xno; then
2987 AMDEP_TRUE=
2988 AMDEP_FALSE='#'
2989 else
2990 AMDEP_TRUE='#'
2991 AMDEP_FALSE=
2992 fi
2993
2994
2995 ac_ext=c
2996 ac_cpp='$CPP $CPPFLAGS'
2997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3000 if 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.
3002 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004 $as_echo_n "checking for $ac_word... " >&6; }
3005 if test "${ac_cv_prog_CC+set}" = set; then :
3006 $as_echo_n "(cached) " >&6
3007 else
3008 if test -n "$CC"; then
3009 ac_cv_prog_CC="$CC" # Let the user override the test.
3010 else
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 for as_dir in $PATH
3013 do
3014 IFS=$as_save_IFS
3015 test -z "$as_dir" && as_dir=.
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3018 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3020 break 2
3021 fi
3022 done
3023 done
3024 IFS=$as_save_IFS
3025
3026 fi
3027 fi
3028 CC=$ac_cv_prog_CC
3029 if test -n "$CC"; then
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3031 $as_echo "$CC" >&6; }
3032 else
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3035 fi
3036
3037
3038 fi
3039 if 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.
3042 set dummy gcc; ac_word=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3046 $as_echo_n "(cached) " >&6
3047 else
3048 if test -n "$ac_ct_CC"; then
3049 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3050 else
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 for as_dir in $PATH
3053 do
3054 IFS=$as_save_IFS
3055 test -z "$as_dir" && as_dir=.
3056 for ac_exec_ext in '' $ac_executable_extensions; do
3057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3058 ac_cv_prog_ac_ct_CC="gcc"
3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060 break 2
3061 fi
3062 done
3063 done
3064 IFS=$as_save_IFS
3065
3066 fi
3067 fi
3068 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3069 if test -n "$ac_ct_CC"; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3071 $as_echo "$ac_ct_CC" >&6; }
3072 else
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3075 fi
3076
3077 if test "x$ac_ct_CC" = x; then
3078 CC=""
3079 else
3080 case $cross_compiling:$ac_tool_warned in
3081 yes:)
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;}
3084 ac_tool_warned=yes ;;
3085 esac
3086 CC=$ac_ct_CC
3087 fi
3088 else
3089 CC="$ac_cv_prog_CC"
3090 fi
3091
3092 if test -z "$CC"; then
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.
3095 set dummy ${ac_tool_prefix}cc; ac_word=$2
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if test "${ac_cv_prog_CC+set}" = set; then :
3099 $as_echo_n "(cached) " >&6
3100 else
3101 if test -n "$CC"; then
3102 ac_cv_prog_CC="$CC" # Let the user override the test.
3103 else
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3106 do
3107 IFS=$as_save_IFS
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3111 ac_cv_prog_CC="${ac_tool_prefix}cc"
3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113 break 2
3114 fi
3115 done
3116 done
3117 IFS=$as_save_IFS
3118
3119 fi
3120 fi
3121 CC=$ac_cv_prog_CC
3122 if test -n "$CC"; then
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3124 $as_echo "$CC" >&6; }
3125 else
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 $as_echo "no" >&6; }
3128 fi
3129
3130
3131 fi
3132 fi
3133 if test -z "$CC"; then
3134 # Extract the first word of "cc", so it can be a program name with args.
3135 set dummy cc; ac_word=$2
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if test "${ac_cv_prog_CC+set}" = set; then :
3139 $as_echo_n "(cached) " >&6
3140 else
3141 if test -n "$CC"; then
3142 ac_cv_prog_CC="$CC" # Let the user override the test.
3143 else
3144 ac_prog_rejected=no
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH
3147 do
3148 IFS=$as_save_IFS
3149 test -z "$as_dir" && as_dir=.
3150 for ac_exec_ext in '' $ac_executable_extensions; do
3151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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"
3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 break 2
3159 fi
3160 done
3161 done
3162 IFS=$as_save_IFS
3163
3164 if 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
3175 fi
3176 fi
3177 fi
3178 CC=$ac_cv_prog_CC
3179 if test -n "$CC"; then
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3181 $as_echo "$CC" >&6; }
3182 else
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3185 fi
3186
3187
3188 fi
3189 if test -z "$CC"; then
3190 if test -n "$ac_tool_prefix"; then
3191 for ac_prog in cl.exe
3192 do
3193 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3194 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3196 $as_echo_n "checking for $ac_word... " >&6; }
3197 if test "${ac_cv_prog_CC+set}" = set; then :
3198 $as_echo_n "(cached) " >&6
3199 else
3200 if test -n "$CC"; then
3201 ac_cv_prog_CC="$CC" # Let the user override the test.
3202 else
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 for as_dir in $PATH
3205 do
3206 IFS=$as_save_IFS
3207 test -z "$as_dir" && as_dir=.
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3210 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3212 break 2
3213 fi
3214 done
3215 done
3216 IFS=$as_save_IFS
3217
3218 fi
3219 fi
3220 CC=$ac_cv_prog_CC
3221 if test -n "$CC"; then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3223 $as_echo "$CC" >&6; }
3224 else
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226 $as_echo "no" >&6; }
3227 fi
3228
3229
3230 test -n "$CC" && break
3231 done
3232 fi
3233 if test -z "$CC"; then
3234 ac_ct_CC=$CC
3235 for ac_prog in cl.exe
3236 do
3237 # Extract the first word of "$ac_prog", so it can be a program name with args.
3238 set dummy $ac_prog; ac_word=$2
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240 $as_echo_n "checking for $ac_word... " >&6; }
3241 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3242 $as_echo_n "(cached) " >&6
3243 else
3244 if test -n "$ac_ct_CC"; then
3245 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3246 else
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3249 do
3250 IFS=$as_save_IFS
3251 test -z "$as_dir" && as_dir=.
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3254 ac_cv_prog_ac_ct_CC="$ac_prog"
3255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 break 2
3257 fi
3258 done
3259 done
3260 IFS=$as_save_IFS
3261
3262 fi
3263 fi
3264 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3265 if test -n "$ac_ct_CC"; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3267 $as_echo "$ac_ct_CC" >&6; }
3268 else
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3271 fi
3272
3273
3274 test -n "$ac_ct_CC" && break
3275 done
3276
3277 if test "x$ac_ct_CC" = x; then
3278 CC=""
3279 else
3280 case $cross_compiling:$ac_tool_warned in
3281 yes:)
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;}
3284 ac_tool_warned=yes ;;
3285 esac
3286 CC=$ac_ct_CC
3287 fi
3288 fi
3289
3290 fi
3291
3292
3293 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295 as_fn_error "no acceptable C compiler found in \$PATH
3296 See \`config.log' for more details." "$LINENO" 5; }
3297
3298 # Provide some information about the compiler.
3299 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3300 set X $ac_compile
3301 ac_compiler=$2
3302 for ac_option in --version -v -V -qversion; do
3303 { { ac_try="$ac_compiler $ac_option >&5"
3304 case "(($ac_try" in
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3307 esac
3308 eval 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
3311 ac_status=$?
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; }
3321 done
3322
3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324 /* end confdefs.h. */
3325 #include <stdio.h>
3326 int
3327 main ()
3328 {
3329 FILE *f = fopen ("conftest.out", "w");
3330 return ferror (f) || fclose (f) != 0;
3331
3332 ;
3333 return 0;
3334 }
3335 _ACEOF
3336 ac_clean_files_save=$ac_clean_files
3337 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
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.
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; }
3343 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3344
3345 # The possible output files:
3346 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3347
3348 ac_rmfiles=
3349 for ac_file in $ac_files
3350 do
3351 case $ac_file in
3352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3353 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3354 esac
3355 done
3356 rm -f $ac_rmfiles
3357
3358 if { { ac_try="$ac_link_default"
3359 case "(($ac_try" in
3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361 *) ac_try_echo=$ac_try;;
3362 esac
3363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3364 $as_echo "$ac_try_echo"; } >&5
3365 (eval "$ac_link_default") 2>&5
3366 ac_status=$?
3367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3368 test $ac_status = 0; }; then :
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.
3374 for ac_file in $ac_files ''
3375 do
3376 test -f "$ac_file" || continue
3377 case $ac_file in
3378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3379 ;;
3380 [ab].out )
3381 # We found the default executable, but exeext='' is most
3382 # certainly right.
3383 break;;
3384 *.* )
3385 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
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.
3394 break;;
3395 * )
3396 break;;
3397 esac
3398 done
3399 test "$ac_cv_exeext" = no && ac_cv_exeext=
3400
3401 else
3402 ac_file=''
3403 fi
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3405 $as_echo "$ac_file" >&6; }
3406 if test -z "$ac_file"; then :
3407 $as_echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3409
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
3413 as_fn_error "C compiler cannot create executables
3414 See \`config.log' for more details." "$LINENO" 5; }; }
3415 fi
3416 ac_exeext=$ac_cv_exeext
3417
3418 # Check that the compiler produces executables we can run. If not, either
3419 # the compiler is broken, or we cross compile.
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; }
3422 # If not cross compiling, check that we can run a simple program.
3423 if test "$cross_compiling" != yes; then
3424 if { ac_try='./$ac_file'
3425 { { case "(($ac_try" in
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3428 esac
3429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3430 $as_echo "$ac_try_echo"; } >&5
3431 (eval "$ac_try") 2>&5
3432 ac_status=$?
3433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3434 test $ac_status = 0; }; }; then
3435 cross_compiling=no
3436 else
3437 if test "$cross_compiling" = maybe; then
3438 cross_compiling=yes
3439 else
3440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442 as_fn_error "cannot run C compiled programs.
3443 If you meant to cross compile, use \`--host'.
3444 See \`config.log' for more details." "$LINENO" 5; }
3445 fi
3446 fi
3447 fi
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3449 $as_echo "yes" >&6; }
3450
3451 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3452 ac_clean_files=$ac_clean_files_save
3453 # Check that the compiler produces executables we can run. If not, either
3454 # the compiler is broken, or we cross compile.
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; }
3462 if { { ac_try="$ac_link"
3463 case "(($ac_try" in
3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465 *) ac_try_echo=$ac_try;;
3466 esac
3467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3468 $as_echo "$ac_try_echo"; } >&5
3469 (eval "$ac_link") 2>&5
3470 ac_status=$?
3471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3472 test $ac_status = 0; }; then :
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'.
3477 for ac_file in conftest.exe conftest conftest.*; do
3478 test -f "$ac_file" || continue
3479 case $ac_file in
3480 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3481 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3482 break;;
3483 * ) break;;
3484 esac
3485 done
3486 else
3487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489 as_fn_error "cannot compute suffix of executables: cannot compile and link
3490 See \`config.log' for more details." "$LINENO" 5; }
3491 fi
3492 rm -f conftest$ac_cv_exeext
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3494 $as_echo "$ac_cv_exeext" >&6; }
3495
3496 rm -f conftest.$ac_ext
3497 EXEEXT=$ac_cv_exeext
3498 ac_exeext=$EXEEXT
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; }
3501 if test "${ac_cv_objext+set}" = set; then :
3502 $as_echo_n "(cached) " >&6
3503 else
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3506
3507 int
3508 main ()
3509 {
3510
3511 ;
3512 return 0;
3513 }
3514 _ACEOF
3515 rm -f conftest.o conftest.obj
3516 if { { ac_try="$ac_compile"
3517 case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520 esac
3521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3522 $as_echo "$ac_try_echo"; } >&5
3523 (eval "$ac_compile") 2>&5
3524 ac_status=$?
3525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3526 test $ac_status = 0; }; then :
3527 for ac_file in conftest.o conftest.obj conftest.*; do
3528 test -f "$ac_file" || continue;
3529 case $ac_file in
3530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3531 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3532 break;;
3533 esac
3534 done
3535 else
3536 $as_echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.$ac_ext >&5
3538
3539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3541 as_fn_error "cannot compute suffix of object files: cannot compile
3542 See \`config.log' for more details." "$LINENO" 5; }
3543 fi
3544 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3545 fi
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3547 $as_echo "$ac_cv_objext" >&6; }
3548 OBJEXT=$ac_cv_objext
3549 ac_objext=$OBJEXT
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; }
3552 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3553 $as_echo_n "(cached) " >&6
3554 else
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3557
3558 int
3559 main ()
3560 {
3561 #ifndef __GNUC__
3562 choke me
3563 #endif
3564
3565 ;
3566 return 0;
3567 }
3568 _ACEOF
3569 if ac_fn_c_try_compile "$LINENO"; then :
3570 ac_compiler_gnu=yes
3571 else
3572 ac_compiler_gnu=no
3573 fi
3574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3576
3577 fi
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3579 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3580 if test $ac_compiler_gnu = yes; then
3581 GCC=yes
3582 else
3583 GCC=
3584 fi
3585 ac_test_CFLAGS=${CFLAGS+set}
3586 ac_save_CFLAGS=$CFLAGS
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3588 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3589 if test "${ac_cv_prog_cc_g+set}" = set; then :
3590 $as_echo_n "(cached) " >&6
3591 else
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"
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h. */
3598
3599 int
3600 main ()
3601 {
3602
3603 ;
3604 return 0;
3605 }
3606 _ACEOF
3607 if ac_fn_c_try_compile "$LINENO"; then :
3608 ac_cv_prog_cc_g=yes
3609 else
3610 CFLAGS=""
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h. */
3613
3614 int
3615 main ()
3616 {
3617
3618 ;
3619 return 0;
3620 }
3621 _ACEOF
3622 if ac_fn_c_try_compile "$LINENO"; then :
3623
3624 else
3625 ac_c_werror_flag=$ac_save_c_werror_flag
3626 CFLAGS="-g"
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3629
3630 int
3631 main ()
3632 {
3633
3634 ;
3635 return 0;
3636 }
3637 _ACEOF
3638 if ac_fn_c_try_compile "$LINENO"; then :
3639 ac_cv_prog_cc_g=yes
3640 fi
3641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3642 fi
3643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3644 fi
3645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3646 ac_c_werror_flag=$ac_save_c_werror_flag
3647 fi
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3649 $as_echo "$ac_cv_prog_cc_g" >&6; }
3650 if test "$ac_test_CFLAGS" = set; then
3651 CFLAGS=$ac_save_CFLAGS
3652 elif 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
3658 else
3659 if test "$GCC" = yes; then
3660 CFLAGS="-O2"
3661 else
3662 CFLAGS=
3663 fi
3664 fi
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; }
3667 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3668 $as_echo_n "(cached) " >&6
3669 else
3670 ac_cv_prog_cc_c89=no
3671 ac_save_CC=$CC
3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
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. */
3679 struct buf { int x; };
3680 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3681 static char *e (p, i)
3682 char **p;
3683 int i;
3684 {
3685 return p[i];
3686 }
3687 static 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
3700 as 'x'. The following induces an error, until -std is added to get
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
3703 that's true only with -std. */
3704 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3705
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'
3709 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3710
3711 int test (int i, double x);
3712 struct s1 {int (*f) (int a);};
3713 struct s2 {int (*f) (double a);};
3714 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3715 int argc;
3716 char **argv;
3717 int
3718 main ()
3719 {
3720 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3721 ;
3722 return 0;
3723 }
3724 _ACEOF
3725 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3726 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3727 do
3728 CC="$ac_save_CC $ac_arg"
3729 if ac_fn_c_try_compile "$LINENO"; then :
3730 ac_cv_prog_cc_c89=$ac_arg
3731 fi
3732 rm -f core conftest.err conftest.$ac_objext
3733 test "x$ac_cv_prog_cc_c89" != "xno" && break
3734 done
3735 rm -f conftest.$ac_ext
3736 CC=$ac_save_CC
3737
3738 fi
3739 # AC_CACHE_VAL
3740 case "x$ac_cv_prog_cc_c89" in
3741 x)
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3743 $as_echo "none needed" >&6; } ;;
3744 xno)
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3746 $as_echo "unsupported" >&6; } ;;
3747 *)
3748 CC="$CC $ac_cv_prog_cc_c89"
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3750 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3751 esac
3752 if test "x$ac_cv_prog_cc_c89" != xno; then :
3753
3754 fi
3755
3756 ac_ext=c
3757 ac_cpp='$CPP $CPPFLAGS'
3758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3761
3762 depcc="$CC" am_compiler_list=
3763
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3765 $as_echo_n "checking dependency style of $depcc... " >&6; }
3766 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3767 $as_echo_n "(cached) " >&6
3768 else
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
3792 am__universal=false
3793 case " $depcc " in #(
3794 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3795 esac
3796
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
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"
3820 case $depmode in
3821 gcc)
3822 # This depmode causes a compiler race in universal mode.
3823 test "$am__universal" = false || continue
3824 ;;
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 ;;
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 ;;
3841 none) break ;;
3842 esac
3843 if depmode=$depmode \
3844 source=sub/conftest.c object=$am__obj \
3845 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3846 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3847 >/dev/null 2>conftest.err &&
3848 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3849 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3850 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
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
3869 else
3870 am_cv_CC_dependencies_compiler_type=none
3871 fi
3872
3873 fi
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; }
3876 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3877
3878 if
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='#'
3883 else
3884 am__fastdepCC_TRUE='#'
3885 am__fastdepCC_FALSE=
3886 fi
3887
3888
3889
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; }
3892 if test "${ac_cv_type_signal+set}" = set; then :
3893 $as_echo_n "(cached) " >&6
3894 else
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3897 #include <sys/types.h>
3898 #include <signal.h>
3899
3900 int
3901 main ()
3902 {
3903 return *(signal (0, 0)) (0) == 1;
3904 ;
3905 return 0;
3906 }
3907 _ACEOF
3908 if ac_fn_c_try_compile "$LINENO"; then :
3909 ac_cv_type_signal=int
3910 else
3911 ac_cv_type_signal=void
3912 fi
3913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3914 fi
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
3916 $as_echo "$ac_cv_type_signal" >&6; }
3917
3918 cat >>confdefs.h <<_ACEOF
3919 #define RETSIGTYPE $ac_cv_type_signal
3920 _ACEOF
3921
3922
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; }
3925 if test "${ac_cv_c_const+set}" = set; then :
3926 $as_echo_n "(cached) " >&6
3927 else
3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929 /* end confdefs.h. */
3930
3931 int
3932 main ()
3933 {
3934 /* FIXME: Include the comments suggested by Paul. */
3935 #ifndef __cplusplus
3936 /* Ultrix mips cc rejects this. */
3937 typedef int charset[2];
3938 const charset cs;
3939 /* SunOS 4.1.1 cc rejects this. */
3940 char const *const *pcpcc;
3941 char **ppc;
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";
3950 pcpcc = &g + (g ? g-g : 0);
3951 /* HPUX 7.0 cc rejects these. */
3952 ++pcpcc;
3953 ppc = (char**) pcpcc;
3954 pcpcc = (char const *const *) ppc;
3955 { /* SCO 3.2v4 cc rejects this. */
3956 char *t;
3957 char const *s = 0 ? (char *) 0 : (char const *) 0;
3958
3959 *t++ = 0;
3960 if (s) return 0;
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;
3979 if (!foo) return 0;
3980 }
3981 return !cs[0] && !zero.x;
3982 #endif
3983
3984 ;
3985 return 0;
3986 }
3987 _ACEOF
3988 if ac_fn_c_try_compile "$LINENO"; then :
3989 ac_cv_c_const=yes
3990 else
3991 ac_cv_c_const=no
3992 fi
3993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3994 fi
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
3996 $as_echo "$ac_cv_c_const" >&6; }
3997 if test $ac_cv_c_const = no; then
3998
3999 $as_echo "#define const /**/" >>confdefs.h
4000
4001 fi
4002
4003
4004 for ac_prog in gawk mawk nawk awk
4005 do
4006 # Extract the first word of "$ac_prog", so it can be a program name with args.
4007 set dummy $ac_prog; ac_word=$2
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4009 $as_echo_n "checking for $ac_word... " >&6; }
4010 if test "${ac_cv_prog_AWK+set}" = set; then :
4011 $as_echo_n "(cached) " >&6
4012 else
4013 if test -n "$AWK"; then
4014 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4015 else
4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 for as_dir in $PATH
4018 do
4019 IFS=$as_save_IFS
4020 test -z "$as_dir" && as_dir=.
4021 for ac_exec_ext in '' $ac_executable_extensions; do
4022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4023 ac_cv_prog_AWK="$ac_prog"
4024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4025 break 2
4026 fi
4027 done
4028 done
4029 IFS=$as_save_IFS
4030
4031 fi
4032 fi
4033 AWK=$ac_cv_prog_AWK
4034 if test -n "$AWK"; then
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4036 $as_echo "$AWK" >&6; }
4037 else
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4039 $as_echo "no" >&6; }
4040 fi
4041
4042
4043 test -n "$AWK" && break
4044 done
4045
4046 ac_ext=c
4047 ac_cpp='$CPP $CPPFLAGS'
4048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051 if 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.
4053 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4055 $as_echo_n "checking for $ac_word... " >&6; }
4056 if test "${ac_cv_prog_CC+set}" = set; then :
4057 $as_echo_n "(cached) " >&6
4058 else
4059 if test -n "$CC"; then
4060 ac_cv_prog_CC="$CC" # Let the user override the test.
4061 else
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 for as_dir in $PATH
4064 do
4065 IFS=$as_save_IFS
4066 test -z "$as_dir" && as_dir=.
4067 for ac_exec_ext in '' $ac_executable_extensions; do
4068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4069 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4071 break 2
4072 fi
4073 done
4074 done
4075 IFS=$as_save_IFS
4076
4077 fi
4078 fi
4079 CC=$ac_cv_prog_CC
4080 if test -n "$CC"; then
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4082 $as_echo "$CC" >&6; }
4083 else
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4085 $as_echo "no" >&6; }
4086 fi
4087
4088
4089 fi
4090 if 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.
4093 set dummy gcc; ac_word=$2
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4095 $as_echo_n "checking for $ac_word... " >&6; }
4096 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4097 $as_echo_n "(cached) " >&6
4098 else
4099 if test -n "$ac_ct_CC"; then
4100 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4101 else
4102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 for as_dir in $PATH
4104 do
4105 IFS=$as_save_IFS
4106 test -z "$as_dir" && as_dir=.
4107 for ac_exec_ext in '' $ac_executable_extensions; do
4108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4109 ac_cv_prog_ac_ct_CC="gcc"
4110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4111 break 2
4112 fi
4113 done
4114 done
4115 IFS=$as_save_IFS
4116
4117 fi
4118 fi
4119 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4120 if test -n "$ac_ct_CC"; then
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4122 $as_echo "$ac_ct_CC" >&6; }
4123 else
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4125 $as_echo "no" >&6; }
4126 fi
4127
4128 if test "x$ac_ct_CC" = x; then
4129 CC=""
4130 else
4131 case $cross_compiling:$ac_tool_warned in
4132 yes:)
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;}
4135 ac_tool_warned=yes ;;
4136 esac
4137 CC=$ac_ct_CC
4138 fi
4139 else
4140 CC="$ac_cv_prog_CC"
4141 fi
4142
4143 if test -z "$CC"; then
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.
4146 set dummy ${ac_tool_prefix}cc; ac_word=$2
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4148 $as_echo_n "checking for $ac_word... " >&6; }
4149 if test "${ac_cv_prog_CC+set}" = set; then :
4150 $as_echo_n "(cached) " >&6
4151 else
4152 if test -n "$CC"; then
4153 ac_cv_prog_CC="$CC" # Let the user override the test.
4154 else
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH
4157 do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4162 ac_cv_prog_CC="${ac_tool_prefix}cc"
4163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4165 fi
4166 done
4167 done
4168 IFS=$as_save_IFS
4169
4170 fi
4171 fi
4172 CC=$ac_cv_prog_CC
4173 if test -n "$CC"; then
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4175 $as_echo "$CC" >&6; }
4176 else
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4178 $as_echo "no" >&6; }
4179 fi
4180
4181
4182 fi
4183 fi
4184 if test -z "$CC"; then
4185 # Extract the first word of "cc", so it can be a program name with args.
4186 set dummy cc; ac_word=$2
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4188 $as_echo_n "checking for $ac_word... " >&6; }
4189 if test "${ac_cv_prog_CC+set}" = set; then :
4190 $as_echo_n "(cached) " >&6
4191 else
4192 if test -n "$CC"; then
4193 ac_cv_prog_CC="$CC" # Let the user override the test.
4194 else
4195 ac_prog_rejected=no
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 for as_dir in $PATH
4198 do
4199 IFS=$as_save_IFS
4200 test -z "$as_dir" && as_dir=.
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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"
4208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4209 break 2
4210 fi
4211 done
4212 done
4213 IFS=$as_save_IFS
4214
4215 if 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
4226 fi
4227 fi
4228 fi
4229 CC=$ac_cv_prog_CC
4230 if test -n "$CC"; then
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4232 $as_echo "$CC" >&6; }
4233 else
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235 $as_echo "no" >&6; }
4236 fi
4237
4238
4239 fi
4240 if test -z "$CC"; then
4241 if test -n "$ac_tool_prefix"; then
4242 for ac_prog in cl.exe
4243 do
4244 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4245 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4247 $as_echo_n "checking for $ac_word... " >&6; }
4248 if test "${ac_cv_prog_CC+set}" = set; then :
4249 $as_echo_n "(cached) " >&6
4250 else
4251 if test -n "$CC"; then
4252 ac_cv_prog_CC="$CC" # Let the user override the test.
4253 else
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH
4256 do
4257 IFS=$as_save_IFS
4258 test -z "$as_dir" && as_dir=.
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4261 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4263 break 2
4264 fi
4265 done
4266 done
4267 IFS=$as_save_IFS
4268
4269 fi
4270 fi
4271 CC=$ac_cv_prog_CC
4272 if test -n "$CC"; then
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4274 $as_echo "$CC" >&6; }
4275 else
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4277 $as_echo "no" >&6; }
4278 fi
4279
4280
4281 test -n "$CC" && break
4282 done
4283 fi
4284 if test -z "$CC"; then
4285 ac_ct_CC=$CC
4286 for ac_prog in cl.exe
4287 do
4288 # Extract the first word of "$ac_prog", so it can be a program name with args.
4289 set dummy $ac_prog; ac_word=$2
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4291 $as_echo_n "checking for $ac_word... " >&6; }
4292 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4293 $as_echo_n "(cached) " >&6
4294 else
4295 if test -n "$ac_ct_CC"; then
4296 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4297 else
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 for as_dir in $PATH
4300 do
4301 IFS=$as_save_IFS
4302 test -z "$as_dir" && as_dir=.
4303 for ac_exec_ext in '' $ac_executable_extensions; do
4304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4305 ac_cv_prog_ac_ct_CC="$ac_prog"
4306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4307 break 2
4308 fi
4309 done
4310 done
4311 IFS=$as_save_IFS
4312
4313 fi
4314 fi
4315 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4316 if test -n "$ac_ct_CC"; then
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4318 $as_echo "$ac_ct_CC" >&6; }
4319 else
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 $as_echo "no" >&6; }
4322 fi
4323
4324
4325 test -n "$ac_ct_CC" && break
4326 done
4327
4328 if test "x$ac_ct_CC" = x; then
4329 CC=""
4330 else
4331 case $cross_compiling:$ac_tool_warned in
4332 yes:)
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;}
4335 ac_tool_warned=yes ;;
4336 esac
4337 CC=$ac_ct_CC
4338 fi
4339 fi
4340
4341 fi
4342
4343
4344 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4346 as_fn_error "no acceptable C compiler found in \$PATH
4347 See \`config.log' for more details." "$LINENO" 5; }
4348
4349 # Provide some information about the compiler.
4350 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4351 set X $ac_compile
4352 ac_compiler=$2
4353 for ac_option in --version -v -V -qversion; do
4354 { { ac_try="$ac_compiler $ac_option >&5"
4355 case "(($ac_try" in
4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4358 esac
4359 eval 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
4362 ac_status=$?
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; }
4372 done
4373
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; }
4376 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4377 $as_echo_n "(cached) " >&6
4378 else
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4381
4382 int
4383 main ()
4384 {
4385 #ifndef __GNUC__
4386 choke me
4387 #endif
4388
4389 ;
4390 return 0;
4391 }
4392 _ACEOF
4393 if ac_fn_c_try_compile "$LINENO"; then :
4394 ac_compiler_gnu=yes
4395 else
4396 ac_compiler_gnu=no
4397 fi
4398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4399 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4400
4401 fi
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4403 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4404 if test $ac_compiler_gnu = yes; then
4405 GCC=yes
4406 else
4407 GCC=
4408 fi
4409 ac_test_CFLAGS=${CFLAGS+set}
4410 ac_save_CFLAGS=$CFLAGS
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4412 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4413 if test "${ac_cv_prog_cc_g+set}" = set; then :
4414 $as_echo_n "(cached) " >&6
4415 else
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"
4420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421 /* end confdefs.h. */
4422
4423 int
4424 main ()
4425 {
4426
4427 ;
4428 return 0;
4429 }
4430 _ACEOF
4431 if ac_fn_c_try_compile "$LINENO"; then :
4432 ac_cv_prog_cc_g=yes
4433 else
4434 CFLAGS=""
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4437
4438 int
4439 main ()
4440 {
4441
4442 ;
4443 return 0;
4444 }
4445 _ACEOF
4446 if ac_fn_c_try_compile "$LINENO"; then :
4447
4448 else
4449 ac_c_werror_flag=$ac_save_c_werror_flag
4450 CFLAGS="-g"
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h. */
4453
4454 int
4455 main ()
4456 {
4457
4458 ;
4459 return 0;
4460 }
4461 _ACEOF
4462 if ac_fn_c_try_compile "$LINENO"; then :
4463 ac_cv_prog_cc_g=yes
4464 fi
4465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4466 fi
4467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4468 fi
4469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4470 ac_c_werror_flag=$ac_save_c_werror_flag
4471 fi
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4473 $as_echo "$ac_cv_prog_cc_g" >&6; }
4474 if test "$ac_test_CFLAGS" = set; then
4475 CFLAGS=$ac_save_CFLAGS
4476 elif 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
4482 else
4483 if test "$GCC" = yes; then
4484 CFLAGS="-O2"
4485 else
4486 CFLAGS=
4487 fi
4488 fi
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; }
4491 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4492 $as_echo_n "(cached) " >&6
4493 else
4494 ac_cv_prog_cc_c89=no
4495 ac_save_CC=$CC
4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
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. */
4503 struct buf { int x; };
4504 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4505 static char *e (p, i)
4506 char **p;
4507 int i;
4508 {
4509 return p[i];
4510 }
4511 static 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
4524 as 'x'. The following induces an error, until -std is added to get
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
4527 that's true only with -std. */
4528 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4529
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'
4533 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4534
4535 int test (int i, double x);
4536 struct s1 {int (*f) (int a);};
4537 struct s2 {int (*f) (double a);};
4538 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4539 int argc;
4540 char **argv;
4541 int
4542 main ()
4543 {
4544 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4545 ;
4546 return 0;
4547 }
4548 _ACEOF
4549 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4550 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4551 do
4552 CC="$ac_save_CC $ac_arg"
4553 if ac_fn_c_try_compile "$LINENO"; then :
4554 ac_cv_prog_cc_c89=$ac_arg
4555 fi
4556 rm -f core conftest.err conftest.$ac_objext
4557 test "x$ac_cv_prog_cc_c89" != "xno" && break
4558 done
4559 rm -f conftest.$ac_ext
4560 CC=$ac_save_CC
4561
4562 fi
4563 # AC_CACHE_VAL
4564 case "x$ac_cv_prog_cc_c89" in
4565 x)
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4567 $as_echo "none needed" >&6; } ;;
4568 xno)
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4570 $as_echo "unsupported" >&6; } ;;
4571 *)
4572 CC="$CC $ac_cv_prog_cc_c89"
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4574 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4575 esac
4576 if test "x$ac_cv_prog_cc_c89" != xno; then :
4577
4578 fi
4579
4580 ac_ext=c
4581 ac_cpp='$CPP $CPPFLAGS'
4582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4585
4586 depcc="$CC" am_compiler_list=
4587
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4589 $as_echo_n "checking dependency style of $depcc... " >&6; }
4590 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4591 $as_echo_n "(cached) " >&6
4592 else
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
4616 am__universal=false
4617 case " $depcc " in #(
4618 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4619 esac
4620
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
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"
4644 case $depmode in
4645 gcc)
4646 # This depmode causes a compiler race in universal mode.
4647 test "$am__universal" = false || continue
4648 ;;
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 ;;
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 ;;
4665 none) break ;;
4666 esac
4667 if depmode=$depmode \
4668 source=sub/conftest.c object=$am__obj \
4669 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4670 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4671 >/dev/null 2>conftest.err &&
4672 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4673 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4674 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
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
4693 else
4694 am_cv_CC_dependencies_compiler_type=none
4695 fi
4696
4697 fi
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; }
4700 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4701
4702 if
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='#'
4707 else
4708 am__fastdepCC_TRUE='#'
4709 am__fastdepCC_FALSE=
4710 fi
4711
4712
4713
4714
4715 # Extract the first word of "cp", so it can be a program name with args.
4716 set dummy cp; ac_word=$2
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4718 $as_echo_n "checking for $ac_word... " >&6; }
4719 if test "${ac_cv_path_CP+set}" = set; then :
4720 $as_echo_n "(cached) " >&6
4721 else
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
4728 for as_dir in $PATH
4729 do
4730 IFS=$as_save_IFS
4731 test -z "$as_dir" && as_dir=.
4732 for ac_exec_ext in '' $ac_executable_extensions; do
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"
4735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4736 break 2
4737 fi
4738 done
4739 done
4740 IFS=$as_save_IFS
4741
4742 ;;
4743 esac
4744 fi
4745 CP=$ac_cv_path_CP
4746 if test -n "$CP"; then
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4748 $as_echo "$CP" >&6; }
4749 else
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751 $as_echo "no" >&6; }
4752 fi
4753
4754
4755
4756 if 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.
4758 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4760 $as_echo_n "checking for $ac_word... " >&6; }
4761 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4762 $as_echo_n "(cached) " >&6
4763 else
4764 if test -n "$RANLIB"; then
4765 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4766 else
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 for as_dir in $PATH
4769 do
4770 IFS=$as_save_IFS
4771 test -z "$as_dir" && as_dir=.
4772 for ac_exec_ext in '' $ac_executable_extensions; do
4773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4774 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4776 break 2
4777 fi
4778 done
4779 done
4780 IFS=$as_save_IFS
4781
4782 fi
4783 fi
4784 RANLIB=$ac_cv_prog_RANLIB
4785 if test -n "$RANLIB"; then
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4787 $as_echo "$RANLIB" >&6; }
4788 else
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4790 $as_echo "no" >&6; }
4791 fi
4792
4793
4794 fi
4795 if 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.
4798 set dummy ranlib; ac_word=$2
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800 $as_echo_n "checking for $ac_word... " >&6; }
4801 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4802 $as_echo_n "(cached) " >&6
4803 else
4804 if test -n "$ac_ct_RANLIB"; then
4805 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4806 else
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 for as_dir in $PATH
4809 do
4810 IFS=$as_save_IFS
4811 test -z "$as_dir" && as_dir=.
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4814 ac_cv_prog_ac_ct_RANLIB="ranlib"
4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 break 2
4817 fi
4818 done
4819 done
4820 IFS=$as_save_IFS
4821
4822 fi
4823 fi
4824 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4825 if 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; }
4828 else
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4831 fi
4832
4833 if test "x$ac_ct_RANLIB" = x; then
4834 RANLIB=":"
4835 else
4836 case $cross_compiling:$ac_tool_warned in
4837 yes:)
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;}
4840 ac_tool_warned=yes ;;
4841 esac
4842 RANLIB=$ac_ct_RANLIB
4843 fi
4844 else
4845 RANLIB="$ac_cv_prog_RANLIB"
4846 fi
4847
4848
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4850 $as_echo_n "checking whether ln -s works... " >&6; }
4851 LN_S=$as_ln_s
4852 if test "$LN_S" = "ln -s"; then
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4854 $as_echo "yes" >&6; }
4855 else
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4857 $as_echo "no, using $LN_S" >&6; }
4858 fi
4859
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; }
4862 set x ${MAKE-make}
4863 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4864 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4865 $as_echo_n "(cached) " >&6
4866 else
4867 cat >conftest.make <<\_ACEOF
4868 SHELL = /bin/sh
4869 all:
4870 @echo '@@@%%%=$(MAKE)=@@@%%%'
4871 _ACEOF
4872 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4873 case `${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;;
4878 esac
4879 rm -f conftest.make
4880 fi
4881 if 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=
4885 else
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4888 SET_MAKE="MAKE=${MAKE-make}"
4889 fi
4890
4891 ac_ext=c
4892 ac_cpp='$CPP $CPPFLAGS'
4893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4895 ac_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.
4899 if test -n "$CPP" && test -d "$CPP"; then
4900 CPP=
4901 fi
4902 if test -z "$CPP"; then
4903 if test "${ac_cv_prog_CPP+set}" = set; then :
4904 $as_echo_n "(cached) " >&6
4905 else
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
4910 for ac_c_preproc_warn_flag in '' yes
4911 do
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
4926 _ACEOF
4927 if ac_fn_c_try_cpp "$LINENO"; then :
4928
4929 else
4930 # Broken: fails on valid input.
4931 continue
4932 fi
4933 rm -f conftest.err conftest.$ac_ext
4934
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
4938 /* end confdefs.h. */
4939 #include <ac_nonexistent.h>
4940 _ACEOF
4941 if ac_fn_c_try_cpp "$LINENO"; then :
4942 # Broken: success on invalid input.
4943 continue
4944 else
4945 # Passes both tests.
4946 ac_preproc_ok=:
4947 break
4948 fi
4949 rm -f conftest.err conftest.$ac_ext
4950
4951 done
4952 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4953 rm -f conftest.err conftest.$ac_ext
4954 if $ac_preproc_ok; then :
4955 break
4956 fi
4957
4958 done
4959 ac_cv_prog_CPP=$CPP
4960
4961 fi
4962 CPP=$ac_cv_prog_CPP
4963 else
4964 ac_cv_prog_CPP=$CPP
4965 fi
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4967 $as_echo "$CPP" >&6; }
4968 ac_preproc_ok=false
4969 for ac_c_preproc_warn_flag in '' yes
4970 do
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
4978 /* end confdefs.h. */
4979 #ifdef __STDC__
4980 # include <limits.h>
4981 #else
4982 # include <assert.h>
4983 #endif
4984 Syntax error
4985 _ACEOF
4986 if ac_fn_c_try_cpp "$LINENO"; then :
4987
4988 else
4989 # Broken: fails on valid input.
4990 continue
4991 fi
4992 rm -f conftest.err conftest.$ac_ext
4993
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>
4999 _ACEOF
5000 if ac_fn_c_try_cpp "$LINENO"; then :
5001 # Broken: success on invalid input.
5002 continue
5003 else
5004 # Passes both tests.
5005 ac_preproc_ok=:
5006 break
5007 fi
5008 rm -f conftest.err conftest.$ac_ext
5009
5010 done
5011 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5012 rm -f conftest.err conftest.$ac_ext
5013 if $ac_preproc_ok; then :
5014
5015 else
5016 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5018 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5019 See \`config.log' for more details." "$LINENO" 5; }
5020 fi
5021
5022 ac_ext=c
5023 ac_cpp='$CPP $CPPFLAGS'
5024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5027
5028
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; }
5031 if test "${ac_cv_path_GREP+set}" = set; then :
5032 $as_echo_n "(cached) " >&6
5033 else
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
5038 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5039 do
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
5048 case `"$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;;
5072 esac
5073
5074 $ac_path_GREP_found && break 3
5075 done
5076 done
5077 done
5078 IFS=$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
5082 else
5083 ac_cv_path_GREP=$GREP
5084 fi
5085
5086 fi
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"
5090
5091
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5093 $as_echo_n "checking for egrep... " >&6; }
5094 if test "${ac_cv_path_EGREP+set}" = set; then :
5095 $as_echo_n "(cached) " >&6
5096 else
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
5104 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5105 do
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
5114 case `"$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;;
5138 esac
5139
5140 $ac_path_EGREP_found && break 3
5141 done
5142 done
5143 done
5144 IFS=$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
5148 else
5149 ac_cv_path_EGREP=$EGREP
5150 fi
5151
5152 fi
5153 fi
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"
5157
5158
5159 if 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; }
5162 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
5163 $as_echo_n "(cached) " >&6
5164 else
5165 ac_pattern="Autoconf.*'x'"
5166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167 /* end confdefs.h. */
5168 #include <sgtty.h>
5169 Autoconf TIOCGETP
5170 _ACEOF
5171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5172 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5173 ac_cv_prog_gcc_traditional=yes
5174 else
5175 ac_cv_prog_gcc_traditional=no
5176 fi
5177 rm -f conftest*
5178
5179
5180 if test $ac_cv_prog_gcc_traditional = no; then
5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182 /* end confdefs.h. */
5183 #include <termio.h>
5184 Autoconf TCGETA
5185 _ACEOF
5186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5187 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5188 ac_cv_prog_gcc_traditional=yes
5189 fi
5190 rm -f conftest*
5191
5192 fi
5193 fi
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
5199 fi
5200
5201 # Extract the first word of "gmake", so it can be a program name with args.
5202 set 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; }
5205 if test "${ac_cv_prog_MAKER+set}" = set; then :
5206 $as_echo_n "(cached) " >&6
5207 else
5208 if test -n "$MAKER"; then
5209 ac_cv_prog_MAKER="$MAKER" # Let the user override the test.
5210 else
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH
5213 do
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
5222 done
5223 done
5224 IFS=$as_save_IFS
5225
5226 test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make"
5227 fi
5228 fi
5229 MAKER=$ac_cv_prog_MAKER
5230 if test -n "$MAKER"; then
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKER" >&5
5232 $as_echo "$MAKER" >&6; }
5233 else
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5235 $as_echo "no" >&6; }
5236 fi
5237
5238
5239
5240 case $target in
5241 *-freebsd2* | *-freebsdelf2* | *-freebsd*out3*)
5242 ANSI_SRC=""
5243 ;;
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=""
5260 ;;
5261 esac
5262 CFLAGS="$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; }
5266 if test "${ac_cv_lib_socket_socket+set}" = set; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 ac_check_lib_save_LIBS=$LIBS
5270 LIBS="-lsocket $LIBS"
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5273
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
5278 extern "C"
5279 #endif
5280 char socket ();
5281 int
5282 main ()
5283 {
5284 return socket ();
5285 ;
5286 return 0;
5287 }
5288 _ACEOF
5289 if ac_fn_c_try_link "$LINENO"; then :
5290 ac_cv_lib_socket_socket=yes
5291 else
5292 ac_cv_lib_socket_socket=no
5293 fi
5294 rm -f core conftest.err conftest.$ac_objext \
5295 conftest$ac_exeext conftest.$ac_ext
5296 LIBS=$ac_check_lib_save_LIBS
5297 fi
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
5299 $as_echo "$ac_cv_lib_socket_socket" >&6; }
5300 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
5301 cat >>confdefs.h <<_ACEOF
5302 #define HAVE_LIBSOCKET 1
5303 _ACEOF
5304
5305 LIBS="-lsocket $LIBS"
5306
5307 fi
5308
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5310 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5311 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
5312 $as_echo_n "(cached) " >&6
5313 else
5314 ac_check_lib_save_LIBS=$LIBS
5315 LIBS="-lnsl $LIBS"
5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h. */
5318
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
5323 extern "C"
5324 #endif
5325 char gethostbyname ();
5326 int
5327 main ()
5328 {
5329 return gethostbyname ();
5330 ;
5331 return 0;
5332 }
5333 _ACEOF
5334 if ac_fn_c_try_link "$LINENO"; then :
5335 ac_cv_lib_nsl_gethostbyname=yes
5336 else
5337 ac_cv_lib_nsl_gethostbyname=no
5338 fi
5339 rm -f core conftest.err conftest.$ac_objext \
5340 conftest$ac_exeext conftest.$ac_ext
5341 LIBS=$ac_check_lib_save_LIBS
5342 fi
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5344 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5345 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
5346 cat >>confdefs.h <<_ACEOF
5347 #define HAVE_LIBNSL 1
5348 _ACEOF
5349
5350 LIBS="-lnsl $LIBS"
5351
5352 fi
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; }
5356 if test "${ac_cv_lib_m_main+set}" = set; then :
5357 $as_echo_n "(cached) " >&6
5358 else
5359 ac_check_lib_save_LIBS=$LIBS
5360 LIBS="-lm $LIBS"
5361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5362 /* end confdefs.h. */
5363
5364
5365 int
5366 main ()
5367 {
5368 return main ();
5369 ;
5370 return 0;
5371 }
5372 _ACEOF
5373 if ac_fn_c_try_link "$LINENO"; then :
5374 ac_cv_lib_m_main=yes
5375 else
5376 ac_cv_lib_m_main=no
5377 fi
5378 rm -f core conftest.err conftest.$ac_objext \
5379 conftest$ac_exeext conftest.$ac_ext
5380 LIBS=$ac_check_lib_save_LIBS
5381 fi
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
5383 $as_echo "$ac_cv_lib_m_main" >&6; }
5384 if test "x$ac_cv_lib_m_main" = x""yes; then :
5385 cat >>confdefs.h <<_ACEOF
5386 #define HAVE_LIBM 1
5387 _ACEOF
5388
5389 LIBS="-lm $LIBS"
5390
5391 fi
5392
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; }
5395 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then :
5396 $as_echo_n "(cached) " >&6
5397 else
5398 ac_check_lib_save_LIBS=$LIBS
5399 LIBS="-lGeoIP $LIBS"
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h. */
5402
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
5407 extern "C"
5408 #endif
5409 char GeoIP_open ();
5410 int
5411 main ()
5412 {
5413 return GeoIP_open ();
5414 ;
5415 return 0;
5416 }
5417 _ACEOF
5418 if ac_fn_c_try_link "$LINENO"; then :
5419 ac_cv_lib_GeoIP_GeoIP_open=yes
5420 else
5421 ac_cv_lib_GeoIP_GeoIP_open=no
5422 fi
5423 rm -f core conftest.err conftest.$ac_objext \
5424 conftest$ac_exeext conftest.$ac_ext
5425 LIBS=$ac_check_lib_save_LIBS
5426 fi
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; }
5429 if test "x$ac_cv_lib_GeoIP_GeoIP_open" = x""yes; then :
5430 cat >>confdefs.h <<_ACEOF
5431 #define HAVE_LIBGEOIP 1
5432 _ACEOF
5433
5434 LIBS="-lGeoIP $LIBS"
5435
5436 fi
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; }
5441 if test "${ac_cv_header_stdc+set}" = set; then :
5442 $as_echo_n "(cached) " >&6
5443 else
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5446 #include <stdlib.h>
5447 #include <stdarg.h>
5448 #include <string.h>
5449 #include <float.h>
5450
5451 int
5452 main ()
5453 {
5454
5455 ;
5456 return 0;
5457 }
5458 _ACEOF
5459 if ac_fn_c_try_compile "$LINENO"; then :
5460 ac_cv_header_stdc=yes
5461 else
5462 ac_cv_header_stdc=no
5463 fi
5464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465
5466 if 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>
5471
5472 _ACEOF
5473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5474 $EGREP "memchr" >/dev/null 2>&1; then :
5475
5476 else
5477 ac_cv_header_stdc=no
5478 fi
5479 rm -f conftest*
5480
5481 fi
5482
5483 if 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>
5488
5489 _ACEOF
5490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5491 $EGREP "free" >/dev/null 2>&1; then :
5492
5493 else
5494 ac_cv_header_stdc=no
5495 fi
5496 rm -f conftest*
5497
5498 fi
5499
5500 if 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 :
5504 else
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h. */
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))
5512 #else
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))
5518 #endif
5519
5520 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5521 int
5522 main ()
5523 {
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;
5529 return 0;
5530 }
5531 _ACEOF
5532 if ac_fn_c_try_run "$LINENO"; then :
5533
5534 else
5535 ac_cv_header_stdc=no
5536 fi
5537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5538 conftest.$ac_objext conftest.beam conftest.$ac_ext
5539 fi
5540
5541 fi
5542 fi
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5544 $as_echo "$ac_cv_header_stdc" >&6; }
5545 if test $ac_cv_header_stdc = yes; then
5546
5547 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5548
5549 fi
5550
5551
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; }
5554 if test "${ac_cv_header_time+set}" = set; then :
5555 $as_echo_n "(cached) " >&6
5556 else
5557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558 /* end confdefs.h. */
5559 #include <sys/types.h>
5560 #include <sys/time.h>
5561 #include <time.h>
5562
5563 int
5564 main ()
5565 {
5566 if ((struct tm *) 0)
5567 return 0;
5568 ;
5569 return 0;
5570 }
5571 _ACEOF
5572 if ac_fn_c_try_compile "$LINENO"; then :
5573 ac_cv_header_time=yes
5574 else
5575 ac_cv_header_time=no
5576 fi
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578 fi
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5580 $as_echo "$ac_cv_header_time" >&6; }
5581 if test $ac_cv_header_time = yes; then
5582
5583 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5584
5585 fi
5586
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; }
5589 if test "${ac_cv_struct_tm+set}" = set; then :
5590 $as_echo_n "(cached) " >&6
5591 else
5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5594 #include <sys/types.h>
5595 #include <time.h>
5596
5597 int
5598 main ()
5599 {
5600 struct tm tm;
5601 int *p = &tm.tm_sec;
5602 return !p;
5603 ;
5604 return 0;
5605 }
5606 _ACEOF
5607 if ac_fn_c_try_compile "$LINENO"; then :
5608 ac_cv_struct_tm=time.h
5609 else
5610 ac_cv_struct_tm=sys/time.h
5611 fi
5612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5613 fi
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5615 $as_echo "$ac_cv_struct_tm" >&6; }
5616 if test $ac_cv_struct_tm = sys/time.h; then
5617
5618 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5619
5620 fi
5621
5622
5623 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5624 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5625 inttypes.h stdint.h unistd.h
5626 do :
5627 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5628 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5629 "
5630 eval as_val=\$$as_ac_Header
5631 if test "x$as_val" = x""yes; then :
5632 cat >>confdefs.h <<_ACEOF
5633 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5634 _ACEOF
5635
5636 fi
5637
5638 done
5639
5640
5641 for 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
5642 do :
5643 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5644 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5645 eval 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
5651 fi
5652
5653 done
5654
5655
5656 ac_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 "
5659 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
5660
5661 $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
5662
5663 fi
5664
5665 ac_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 "
5669 if test "x$ac_cv_member_struct_addrinfo_ai_flags" = x""yes; then :
5670
5671 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
5672
5673 fi
5674
5675
5676 for 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
5677 do :
5678 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5679 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5680 eval 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
5685
5686 fi
5687 done
5688
5689
5690
5691 if test $ac_cv_func_gettimeofday = no; then
5692 for ac_func in ftime
5693 do :
5694 ac_fn_c_check_func "$LINENO" "ftime" "ac_cv_func_ftime"
5695 if test "x$ac_cv_func_ftime" = x""yes; then :
5696 cat >>confdefs.h <<_ACEOF
5697 #define HAVE_FTIME 1
5698 _ACEOF
5699
5700 else
5701 as_fn_error "ftime or gettimeofday required. X3 build will fail." "$LINENO" 5
5702 fi
5703 done
5704
5705 fi
5706
5707 for ac_func in socket strcspn strspn strtod strtoul
5708 do :
5709 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5710 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5711 eval as_val=\$$as_ac_var
5712 if test "x$as_val" = x""yes; then :
5713 cat >>confdefs.h <<_ACEOF
5714 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5715 _ACEOF
5716
5717 else
5718 as_fn_error "a required function was not found. X3 build will fail." "$LINENO" 5
5719 fi
5720 done
5721
5722
5723 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5724 # for constant arguments. Useless!
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5726 $as_echo_n "checking for working alloca.h... " >&6; }
5727 if test "${ac_cv_working_alloca_h+set}" = set; then :
5728 $as_echo_n "(cached) " >&6
5729 else
5730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5731 /* end confdefs.h. */
5732 #include <alloca.h>
5733 int
5734 main ()
5735 {
5736 char *p = (char *) alloca (2 * sizeof (int));
5737 if (p) return 0;
5738 ;
5739 return 0;
5740 }
5741 _ACEOF
5742 if ac_fn_c_try_link "$LINENO"; then :
5743 ac_cv_working_alloca_h=yes
5744 else
5745 ac_cv_working_alloca_h=no
5746 fi
5747 rm -f core conftest.err conftest.$ac_objext \
5748 conftest$ac_exeext conftest.$ac_ext
5749 fi
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5751 $as_echo "$ac_cv_working_alloca_h" >&6; }
5752 if test $ac_cv_working_alloca_h = yes; then
5753
5754 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5755
5756 fi
5757
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5759 $as_echo_n "checking for alloca... " >&6; }
5760 if test "${ac_cv_func_alloca_works+set}" = set; then :
5761 $as_echo_n "(cached) " >&6
5762 else
5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
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
5772 # ifdef HAVE_ALLOCA_H
5773 # include <alloca.h>
5774 # else
5775 # ifdef _AIX
5776 #pragma alloca
5777 # else
5778 # ifndef alloca /* predefined by HP cc +Olibcalls */
5779 char *alloca ();
5780 # endif
5781 # endif
5782 # endif
5783 # endif
5784 #endif
5785
5786 int
5787 main ()
5788 {
5789 char *p = (char *) alloca (1);
5790 if (p) return 0;
5791 ;
5792 return 0;
5793 }
5794 _ACEOF
5795 if ac_fn_c_try_link "$LINENO"; then :
5796 ac_cv_func_alloca_works=yes
5797 else
5798 ac_cv_func_alloca_works=no
5799 fi
5800 rm -f core conftest.err conftest.$ac_objext \
5801 conftest$ac_exeext conftest.$ac_ext
5802 fi
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5804 $as_echo "$ac_cv_func_alloca_works" >&6; }
5805
5806 if test $ac_cv_func_alloca_works = yes; then
5807
5808 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5809
5810 else
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
5816 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5817
5818 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5819
5820
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; }
5823 if test "${ac_cv_os_cray+set}" = set; then :
5824 $as_echo_n "(cached) " >&6
5825 else
5826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827 /* end confdefs.h. */
5828 #if defined CRAY && ! defined CRAY2
5829 webecray
5830 #else
5831 wenotbecray
5832 #endif
5833
5834 _ACEOF
5835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5836 $EGREP "webecray" >/dev/null 2>&1; then :
5837 ac_cv_os_cray=yes
5838 else
5839 ac_cv_os_cray=no
5840 fi
5841 rm -f conftest*
5842
5843 fi
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5845 $as_echo "$ac_cv_os_cray" >&6; }
5846 if test $ac_cv_os_cray = yes; then
5847 for ac_func in _getb67 GETB67 getb67; do
5848 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5849 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5850 eval as_val=\$$as_ac_var
5851 if test "x$as_val" = x""yes; then :
5852
5853 cat >>confdefs.h <<_ACEOF
5854 #define CRAY_STACKSEG_END $ac_func
5855 _ACEOF
5856
5857 break
5858 fi
5859
5860 done
5861 fi
5862
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; }
5865 if test "${ac_cv_c_stack_direction+set}" = set; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 if test "$cross_compiling" = yes; then :
5869 ac_cv_c_stack_direction=0
5870 else
5871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5872 /* end confdefs.h. */
5873 $ac_includes_default
5874 int
5875 find_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
5888 int
5889 main ()
5890 {
5891 return find_stack_direction () < 0;
5892 }
5893 _ACEOF
5894 if ac_fn_c_try_run "$LINENO"; then :
5895 ac_cv_c_stack_direction=1
5896 else
5897 ac_cv_c_stack_direction=-1
5898 fi
5899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5900 conftest.$ac_objext conftest.beam conftest.$ac_ext
5901 fi
5902
5903 fi
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5905 $as_echo "$ac_cv_c_stack_direction" >&6; }
5906 cat >>confdefs.h <<_ACEOF
5907 #define STACK_DIRECTION $ac_cv_c_stack_direction
5908 _ACEOF
5909
5910
5911 fi
5912
5913 for ac_header in stdlib.h unistd.h
5914 do :
5915 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5916 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5917 eval as_val=\$$as_ac_Header
5918 if test "x$as_val" = x""yes; then :
5919 cat >>confdefs.h <<_ACEOF
5920 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5921 _ACEOF
5922
5923 fi
5924
5925 done
5926
5927 for ac_func in getpagesize
5928 do :
5929 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
5930 if test "x$ac_cv_func_getpagesize" = x""yes; then :
5931 cat >>confdefs.h <<_ACEOF
5932 #define HAVE_GETPAGESIZE 1
5933 _ACEOF
5934
5935 fi
5936 done
5937
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
5939 $as_echo_n "checking for working mmap... " >&6; }
5940 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
5941 $as_echo_n "(cached) " >&6
5942 else
5943 if test "$cross_compiling" = yes; then :
5944 ac_cv_func_mmap_fixed_mapped=no
5945 else
5946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
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
5977 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5978 char *malloc ();
5979 #endif
5980
5981 /* This mess was copied from the GNU getpagesize.h. */
5982 #ifndef HAVE_GETPAGESIZE
5983 /* Assume that all systems that can run configure have sys/param.h. */
5984 # ifndef HAVE_SYS_PARAM_H
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 */
5991 # ifdef HAVE_SYS_PARAM_H
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
6018 int
6019 main ()
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)
6030 return 1;
6031 for (i = 0; i < pagesize; ++i)
6032 *(data + i) = rand ();
6033 umask (0);
6034 fd = creat ("conftest.mmap", 0600);
6035 if (fd < 0)
6036 return 1;
6037 if (write (fd, data, pagesize) != pagesize)
6038 return 1;
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)
6046 return 1;
6047 data2 = (char *) malloc (2 * pagesize);
6048 if (!data2)
6049 return 1;
6050 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6051 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6052 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6053 return 1;
6054 for (i = 0; i < pagesize; ++i)
6055 if (*(data + i) != *(data2 + i))
6056 return 1;
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)
6065 return 1;
6066 if (read (fd, data3, pagesize) != pagesize)
6067 return 1;
6068 for (i = 0; i < pagesize; ++i)
6069 if (*(data + i) != *(data3 + i))
6070 return 1;
6071 close (fd);
6072 return 0;
6073 }
6074 _ACEOF
6075 if ac_fn_c_try_run "$LINENO"; then :
6076 ac_cv_func_mmap_fixed_mapped=yes
6077 else
6078 ac_cv_func_mmap_fixed_mapped=no
6079 fi
6080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6081 conftest.$ac_objext conftest.beam conftest.$ac_ext
6082 fi
6083
6084 fi
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; }
6087 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6088
6089 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6090
6091 fi
6092 rm -f conftest.mmap
6093
6094
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin_len" >&5
6096 $as_echo_n "checking for sin_len... " >&6; }
6097 if test "${ac_cv_sin_len+set}" = set; then :
6098 $as_echo_n "(cached) " >&6
6099 else
6100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h. */
6102 #include <sys/types.h>
6103 #include <netinet/in.h>
6104 int
6105 main ()
6106 {
6107 struct sockaddr_in *sin; sin->sin_len = 0;
6108 ;
6109 return 0;
6110 }
6111 _ACEOF
6112 if ac_fn_c_try_compile "$LINENO"; then :
6113 ac_cv_sin_len="yes"
6114 else
6115 ac_cv_sin_len="no"
6116 fi
6117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6118 fi
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sin_len" >&5
6120 $as_echo "$ac_cv_sin_len" >&6; }
6121 if test $ac_cv_sin_len = yes ; then
6122
6123 $as_echo "#define HAVE_SIN_LEN 1" >>confdefs.h
6124
6125 fi
6126
6127 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
6128 #include<sys/socket.h>
6129 "
6130 if test "x$ac_cv_type_socklen_t" = x""yes; then :
6131
6132 else
6133
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
6138 else
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
6143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6144 /* end confdefs.h. */
6145 #include <sys/types.h>
6146 #include <sys/socket.h>
6147 int getpeername (int $arg2 *, $t *);
6148 int
6149 main ()
6150 {
6151 $t len;
6152 getpeername(0, 0, &len);
6153 ;
6154 return 0;
6155 }
6156 _ACEOF
6157 if ac_fn_c_try_compile "$LINENO"; then :
6158 curl_cv_socklen_t_equiv="$t"
6159 break
6160 fi
6161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6162 done
6163 done
6164
6165 fi
6166
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
6168 $as_echo "$curl_cv_socklen_t_equiv" >&6; }
6169
6170 cat >>confdefs.h <<_ACEOF
6171 #define socklen_t $curl_cv_socklen_t_equiv
6172 _ACEOF
6173
6174 fi
6175
6176
6177 OLD_CFLAGS=$CFLAGS
6178 CFLAGS="$CFLAGS -W -Wall -Werror"
6179
6180 if test "z$USE_MAINTAINER_MODE" = zyes ; then
6181 CFLAGS="$CFLAGS -ansi"
6182 fi
6183
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6185 $as_echo_n "checking for inline... " >&6; }
6186 if test "${ac_cv_c_inline+set}" = set; then :
6187 $as_echo_n "(cached) " >&6
6188 else
6189 ac_cv_c_inline=no
6190 for ac_kw in inline __inline__ __inline; do
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6193 #ifndef __cplusplus
6194 typedef int foo_t;
6195 static $ac_kw foo_t static_foo () {return 0; }
6196 $ac_kw foo_t foo () {return 0; }
6197 #endif
6198
6199 _ACEOF
6200 if ac_fn_c_try_compile "$LINENO"; then :
6201 ac_cv_c_inline=$ac_kw
6202 fi
6203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6204 test "$ac_cv_c_inline" != no && break
6205 done
6206
6207 fi
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6209 $as_echo "$ac_cv_c_inline" >&6; }
6210
6211 case $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 ;;
6224 esac
6225
6226
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t format" >&5
6228 $as_echo_n "checking for time_t format... " >&6; }
6229 if test "${ac_cv_fmt_time_t+set}" = set; then :
6230 $as_echo_n "(cached) " >&6
6231 else
6232
6233 ac_cv_fmt_time_t=no
6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h. */
6236 #include <sys/types.h>
6237 #include <stdio.h>
6238 void myfunc(void) {
6239 time_t test=0;
6240 printf("%li", test);
6241 }
6242 _ACEOF
6243 if ac_fn_c_try_compile "$LINENO"; then :
6244 ac_cv_fmt_time_t="\"%li\""
6245 fi
6246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6247 if test $ac_cv_fmt_time_t = no; then
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h. */
6250 #include <sys/types.h>
6251 #include <stdio.h>
6252 void myfunc(void) {
6253 time_t test=0;
6254 printf("%i", test);
6255 }
6256 _ACEOF
6257 if ac_fn_c_try_compile "$LINENO"; then :
6258 ac_cv_fmt_time_t="\"%i\""
6259 fi
6260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6261 fi
6262 if test $ac_cv_fmt_time_t = no; then
6263 as_fn_error "Cannot detect format string for time_t
6264 Please check sys/types.h for the typedef of time_t and submit to a developer" "$LINENO" 5
6265 fi
6266
6267 fi
6268
6269
6270 cat >>confdefs.h <<_ACEOF
6271 #define FMT_TIME_T $ac_cv_fmt_time_t
6272 _ACEOF
6273
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fmt_time_t" >&5
6275 $as_echo "$ac_cv_fmt_time_t" >&6; }
6276
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
6278 $as_echo_n "checking for va_copy... " >&6; }
6279 if test "${ac_cv_c_va_copy+set}" = set; then :
6280 $as_echo_n "(cached) " >&6
6281 else
6282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6283 /* end confdefs.h. */
6284 #include <stdarg.h>
6285 int
6286 main ()
6287 {
6288 va_list ap1, ap2; va_copy(ap1, ap2);
6289 ;
6290 return 0;
6291 }
6292 _ACEOF
6293 if ac_fn_c_try_link "$LINENO"; then :
6294 ac_cv_c_va_copy="yes"
6295 else
6296 ac_cv_c_va_copy="no"
6297
6298 fi
6299 rm -f core conftest.err conftest.$ac_objext \
6300 conftest$ac_exeext conftest.$ac_ext
6301 fi
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_va_copy" >&5
6303 $as_echo "$ac_cv_c_va_copy" >&6; }
6304 if test "$ac_cv_c_va_copy" = "yes" ; then
6305
6306 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
6307
6308 fi
6309
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
6311 $as_echo_n "checking for __va_copy... " >&6; }
6312 if test "${ac_cv_c___va_copy+set}" = set; then :
6313 $as_echo_n "(cached) " >&6
6314 else
6315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316 /* end confdefs.h. */
6317 #include <stdarg.h>
6318 int
6319 main ()
6320 {
6321 va_list ap1, ap2; __va_copy(ap1, ap2);
6322 ;
6323 return 0;
6324 }
6325 _ACEOF
6326 if ac_fn_c_try_link "$LINENO"; then :
6327 ac_cv_c___va_copy="yes"
6328 else
6329 ac_cv_c___va_copy="no"
6330
6331 fi
6332 rm -f core conftest.err conftest.$ac_objext \
6333 conftest$ac_exeext conftest.$ac_ext
6334 fi
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c___va_copy" >&5
6336 $as_echo "$ac_cv_c___va_copy" >&6; }
6337 if test "$ac_cv_c___va_copy" = "yes" ; then
6338
6339 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
6340
6341 fi
6342
6343 CFLAGS=$OLD_CFLAGS
6344
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which malloc to use" >&5
6346 $as_echo_n "checking which malloc to use... " >&6; }
6347
6348 # Check whether --with-malloc was given.
6349 if test "${with_malloc+set}" = set; then :
6350 withval=$with_malloc;
6351 else
6352 withval="system"
6353 fi
6354
6355 if test "x$withval" = "xsystem" ; then
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5
6357 $as_echo "system" >&6; }
6358
6359 $as_echo "#define WITH_MALLOC_SYSTEM 1" >>confdefs.h
6360
6361 x3_malloc="System"
6362 elif test "x$withval" = "xdmalloc" ; then
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dmalloc" >&5
6364 $as_echo "dmalloc" >&6; }
6365 for ac_header in dmalloc.h
6366 do :
6367 ac_fn_c_check_header_mongrel "$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default"
6368 if test "x$ac_cv_header_dmalloc_h" = x""yes; then :
6369 cat >>confdefs.h <<_ACEOF
6370 #define HAVE_DMALLOC_H 1
6371 _ACEOF
6372
6373 else
6374 as_fn_error "dmalloc header file missing. dmalloc build will fail." "$LINENO" 5
6375 fi
6376
6377 done
6378
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -ldmalloc" >&5
6380 $as_echo_n "checking for malloc in -ldmalloc... " >&6; }
6381 if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then :
6382 $as_echo_n "(cached) " >&6
6383 else
6384 ac_check_lib_save_LIBS=$LIBS
6385 LIBS="-ldmalloc $LIBS"
6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387 /* end confdefs.h. */
6388
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. */
6392 #ifdef __cplusplus
6393 extern "C"
6394 #endif
6395 char malloc ();
6396 int
6397 main ()
6398 {
6399 return malloc ();
6400 ;
6401 return 0;
6402 }
6403 _ACEOF
6404 if ac_fn_c_try_link "$LINENO"; then :
6405 ac_cv_lib_dmalloc_malloc=yes
6406 else
6407 ac_cv_lib_dmalloc_malloc=no
6408 fi
6409 rm -f core conftest.err conftest.$ac_objext \
6410 conftest$ac_exeext conftest.$ac_ext
6411 LIBS=$ac_check_lib_save_LIBS
6412 fi
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_malloc" >&5
6414 $as_echo "$ac_cv_lib_dmalloc_malloc" >&6; }
6415 if test "x$ac_cv_lib_dmalloc_malloc" = x""yes; then :
6416 cat >>confdefs.h <<_ACEOF
6417 #define HAVE_LIBDMALLOC 1
6418 _ACEOF
6419
6420 LIBS="-ldmalloc $LIBS"
6421
6422 else
6423 as_fn_error "dmalloc library is missing. dmalloc build will fail." "$LINENO" 5
6424 fi
6425
6426
6427 $as_echo "#define WITH_MALLOC_DMALLOC 1" >>confdefs.h
6428
6429 x3_malloc="DMalloc"
6430 elif 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
6434 do :
6435 ac_fn_c_check_header_mongrel "$LINENO" "mpatrol.h" "ac_cv_header_mpatrol_h" "$ac_includes_default"
6436 if test "x$ac_cv_header_mpatrol_h" = x""yes; then :
6437 cat >>confdefs.h <<_ACEOF
6438 #define HAVE_MPATROL_H 1
6439 _ACEOF
6440
6441 else
6442 as_fn_error "mpatrol header file missing. mpatrol build will fail." "$LINENO" 5
6443 fi
6444
6445 done
6446
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; }
6449 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
6450 $as_echo_n "(cached) " >&6
6451 else
6452 ac_check_lib_save_LIBS=$LIBS
6453 LIBS="-lelf $LIBS"
6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h. */
6456
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. */
6460 #ifdef __cplusplus
6461 extern "C"
6462 #endif
6463 char elf_begin ();
6464 int
6465 main ()
6466 {
6467 return elf_begin ();
6468 ;
6469 return 0;
6470 }
6471 _ACEOF
6472 if ac_fn_c_try_link "$LINENO"; then :
6473 ac_cv_lib_elf_elf_begin=yes
6474 else
6475 ac_cv_lib_elf_elf_begin=no
6476 fi
6477 rm -f core conftest.err conftest.$ac_objext \
6478 conftest$ac_exeext conftest.$ac_ext
6479 LIBS=$ac_check_lib_save_LIBS
6480 fi
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; }
6483 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
6484 cat >>confdefs.h <<_ACEOF
6485 #define HAVE_LIBELF 1
6486 _ACEOF
6487
6488 LIBS="-lelf $LIBS"
6489
6490 fi
6491
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; }
6494 if test "${ac_cv_lib_mpatrol___mp_atexit+set}" = set; then :
6495 $as_echo_n "(cached) " >&6
6496 else
6497 ac_check_lib_save_LIBS=$LIBS
6498 LIBS="-lmpatrol $LIBS"
6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500 /* end confdefs.h. */
6501
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. */
6505 #ifdef __cplusplus
6506 extern "C"
6507 #endif
6508 char __mp_atexit ();
6509 int
6510 main ()
6511 {
6512 return __mp_atexit ();
6513 ;
6514 return 0;
6515 }
6516 _ACEOF
6517 if ac_fn_c_try_link "$LINENO"; then :
6518 ac_cv_lib_mpatrol___mp_atexit=yes
6519 else
6520 ac_cv_lib_mpatrol___mp_atexit=no
6521 fi
6522 rm -f core conftest.err conftest.$ac_objext \
6523 conftest$ac_exeext conftest.$ac_ext
6524 LIBS=$ac_check_lib_save_LIBS
6525 fi
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; }
6528 if test "x$ac_cv_lib_mpatrol___mp_atexit" = x""yes; then :
6529 cat >>confdefs.h <<_ACEOF
6530 #define HAVE_LIBMPATROL 1
6531 _ACEOF
6532
6533 LIBS="-lmpatrol $LIBS"
6534
6535 else
6536 as_fn_error "mpatrol library is missing completely. mpatrol build will fail." "$LINENO" 5
6537 fi
6538
6539
6540 $as_echo "#define WITH_MALLOC_MPATROL 1" >>confdefs.h
6541
6542 x3_malloc="MPatrol"
6543 elif test "x$withval" = "xboehm-gc" ; then
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
6547 do :
6548 ac_fn_c_check_header_mongrel "$LINENO" "gc/gc.h" "ac_cv_header_gc_gc_h" "$ac_includes_default"
6549 if test "x$ac_cv_header_gc_gc_h" = x""yes; then :
6550 cat >>confdefs.h <<_ACEOF
6551 #define HAVE_GC_GC_H 1
6552 _ACEOF
6553
6554 else
6555 as_fn_error "Boehm GC header file missing. boehm-gc build will fail." "$LINENO" 5
6556 fi
6557
6558 done
6559
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6561 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6562 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
6563 $as_echo_n "(cached) " >&6
6564 else
6565 ac_check_lib_save_LIBS=$LIBS
6566 LIBS="-ldl $LIBS"
6567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6568 /* end confdefs.h. */
6569
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. */
6573 #ifdef __cplusplus
6574 extern "C"
6575 #endif
6576 char dlopen ();
6577 int
6578 main ()
6579 {
6580 return dlopen ();
6581 ;
6582 return 0;
6583 }
6584 _ACEOF
6585 if ac_fn_c_try_link "$LINENO"; then :
6586 ac_cv_lib_dl_dlopen=yes
6587 else
6588 ac_cv_lib_dl_dlopen=no
6589 fi
6590 rm -f core conftest.err conftest.$ac_objext \
6591 conftest$ac_exeext conftest.$ac_ext
6592 LIBS=$ac_check_lib_save_LIBS
6593 fi
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6595 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6596 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
6597 cat >>confdefs.h <<_ACEOF
6598 #define HAVE_LIBDL 1
6599 _ACEOF
6600
6601 LIBS="-ldl $LIBS"
6602
6603 else
6604 as_fn_error "libdl library is missing. boehm-gc build will fail." "$LINENO" 5
6605 fi
6606
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; }
6609 if test "${ac_cv_lib_gc_GC_gcollect+set}" = set; then :
6610 $as_echo_n "(cached) " >&6
6611 else
6612 ac_check_lib_save_LIBS=$LIBS
6613 LIBS="-lgc $LIBS"
6614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6615 /* end confdefs.h. */
6616
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. */
6620 #ifdef __cplusplus
6621 extern "C"
6622 #endif
6623 char GC_gcollect ();
6624 int
6625 main ()
6626 {
6627 return GC_gcollect ();
6628 ;
6629 return 0;
6630 }
6631 _ACEOF
6632 if ac_fn_c_try_link "$LINENO"; then :
6633 ac_cv_lib_gc_GC_gcollect=yes
6634 else
6635 ac_cv_lib_gc_GC_gcollect=no
6636 fi
6637 rm -f core conftest.err conftest.$ac_objext \
6638 conftest$ac_exeext conftest.$ac_ext
6639 LIBS=$ac_check_lib_save_LIBS
6640 fi
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; }
6643 if test "x$ac_cv_lib_gc_GC_gcollect" = x""yes; then :
6644 cat >>confdefs.h <<_ACEOF
6645 #define HAVE_LIBGC 1
6646 _ACEOF
6647
6648 LIBS="-lgc $LIBS"
6649
6650 else
6651 as_fn_error "Boehm GC library is missing. boehm-gc build will fail." "$LINENO" 5
6652 fi
6653
6654
6655 $as_echo "#define WITH_MALLOC_BOEHM_GC 1" >>confdefs.h
6656
6657 x3_malloc="Boehm"
6658 elif test "x$withval" = "xx3" ; then
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: x3" >&5
6660 $as_echo "x3" >&6; }
6661
6662 $as_echo "#define WITH_MALLOC_X3 1" >>confdefs.h
6663
6664 MODULE_OBJS="$MODULE_OBJS alloc-x3.\$(OBJEXT)"
6665 x3_malloc="X3"
6666 elif test "x$withval" = "xslab" ; then
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: slab" >&5
6668 $as_echo "slab" >&6; }
6669
6670 $as_echo "#define WITH_MALLOC_SLAB 1" >>confdefs.h
6671
6672 MODULE_OBJS="$MODULE_OBJS alloc-slab.\$(OBJEXT)"
6673 x3_malloc="Slab"
6674 else
6675 as_fn_error "Unknown malloc type $withval" "$LINENO" 5
6676 fi
6677
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which protocol to use" >&5
6679 $as_echo_n "checking which protocol to use... " >&6; }
6680
6681 # Check whether --with-protocol was given.
6682 if test "${with_protocol+set}" = set; then :
6683 withval=$with_protocol;
6684 else
6685 withval="p10"
6686 fi
6687
6688 if test "x$withval" = "xp10" ; then
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: P10" >&5
6690 $as_echo "P10" >&6; }
6691
6692 $as_echo "#define WITH_PROTOCOL_P10 1" >>confdefs.h
6693
6694 MODULE_OBJS="$MODULE_OBJS proto-p10.\$(OBJEXT)"
6695 PROTO_FILES=proto-p10.c
6696 x3_ircd="P10"
6697 else
6698 as_fn_error "Unknown IRC dialect $withval" "$LINENO" 5
6699 fi
6700
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to send mail" >&5
6702 $as_echo_n "checking how to send mail... " >&6; }
6703
6704 # Check whether --with-mail was given.
6705 if test "${with_mail+set}" = set; then :
6706 withval=$with_mail;
6707 else
6708 withval="sendmail"
6709 fi
6710
6711 if test -r "${srcdir}/src/mail-${withval}.c" ; then
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
6713 $as_echo "$withval" >&6; }
6714 MODULE_OBJS="$MODULE_OBJS mail-${withval}.\$(OBJEXT)"
6715 else
6716 as_fn_error "Unknown mail method $withval" "$LINENO" 5
6717 fi
6718
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking I/O multiplexing backends" >&5
6720 $as_echo_n "checking I/O multiplexing backends... " >&6; }
6721 IOMUXES=""
6722
6723 if test "x$ac_cv_func_select" = xyes ; then
6724
6725 $as_echo "#define WITH_IOSET_SELECT 1" >>confdefs.h
6726
6727 MODULE_OBJS="$MODULE_OBJS ioset-select.\$(OBJEXT)"
6728 IOMUXES="$IOMUXES select"
6729 fi
6730
6731
6732 # Check whether --with-epoll was given.
6733 if test "${with_epoll+set}" = set; then :
6734 withval=$with_epoll;
6735 else
6736 withval="$ac_cv_func_epoll_create"
6737 fi
6738
6739 if test "x$withval" = xyes ; then
6740
6741 $as_echo "#define WITH_IOSET_EPOLL 1" >>confdefs.h
6742
6743 MODULE_OBJS="$MODULE_OBJS ioset-epoll.\$(OBJEXT)"
6744 IOMUXES="$IOMUXES epoll"
6745 fi
6746
6747
6748 # Check whether --with-kevent was given.
6749 if test "${with_kevent+set}" = set; then :
6750 withval=$with_kevent;
6751 else
6752 withval="$ac_cv_func_kevent"
6753 fi
6754
6755 if test "x$withval" = xyes ; then
6756
6757 $as_echo "#define WITH_IOSET_KEVENT 1" >>confdefs.h
6758
6759 MODULE_OBJS="$MODULE_OBJS ioset-kevent.\$(OBJEXT)"
6760 IOMUXES="$IOMUXES kevent"
6761 fi
6762
6763 IOMUXES=`echo $IOMUXES | sed 's/^ +//'`
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IOMUXES" >&5
6765 $as_echo "$IOMUXES" >&6; }
6766 if test "x$IOMUXES" = "x" ; then
6767 as_fn_error "No supported I/O multiplexing backend found" "$LINENO" 5
6768 else
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IOMUXES" >&5
6770 $as_echo "$IOMUXES" >&6; }
6771 fi
6772
6773
6774 # Check whether --with-getopt was given.
6775 if test "${with_getopt+set}" = set; then :
6776 withval=$with_getopt; if test "$withval" = no; then
6777
6778 $as_echo "#define IGNORE_GETOPT 1" >>confdefs.h
6779
6780 fi
6781 fi
6782
6783
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable tokenization" >&5
6785 $as_echo_n "checking whether to enable tokenization... " >&6; }
6786 # Check whether --enable-tokens was given.
6787 if test "${enable_tokens+set}" = set; then :
6788 enableval=$enable_tokens;
6789 else
6790 enableval=yes
6791 fi
6792
6793 if test "z$enableval" = zno ; then
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795 $as_echo "no" >&6; }
6796 else
6797
6798 $as_echo "#define ENABLE_TOKENS 1" >>confdefs.h
6799
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6801 $as_echo "yes" >&6; }
6802 fi
6803
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; }
6806 # Check whether --enable-debug was given.
6807 if test "${enable_debug+set}" = set; then :
6808 enableval=$enable_debug;
6809 CPPFLAGS="$CPPFLAGS"
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6811 $as_echo "yes" >&6; }
6812 x3_debug="Enabled"
6813
6814 else
6815
6816 CPPFLAGS="$CPPFLAGS -DNDEBUG"
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6818 $as_echo "no" >&6; }
6819 x3_debug="Disabled"
6820
6821 fi
6822
6823
6824 if test -e src ; then
6825 if test ! -d src ; then
6826 as_fn_error "src exists but is not a directory; please move it out of the way." "$LINENO" 5
6827 fi
6828 else
6829 mkdir src
6830 fi
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra module files" >&5
6832 $as_echo_n "checking for extra module files... " >&6; }
6833 MODULE_DEFINES="src/modules-list.h"
6834 echo > $MODULE_DEFINES
6835 touch $MODULE_DEFINES
6836 # Check whether --enable-modules was given.
6837 if test "${enable_modules+set}" = set; then :
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"
6850
6851 $as_echo "#define HAVE_TRACK 1" >>confdefs.h
6852
6853 fi
6854 if test "x$module" = "xhelpserv" ; then
6855 TRACK="-D HAVE_HELPSERV"
6856
6857 $as_echo "#define HAVE_HELPSERV 1" >>confdefs.h
6858
6859 fi
6860 done
6861 IFS="$OIFS"
6862 MODULE_OBJS="$MODULE_OBJS $EXTRA_MODULE_OBJS"
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $module_list" >&5
6864 $as_echo "$module_list" >&6; }
6865
6866 else
6867
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6869 $as_echo "none" >&6; }
6870
6871 fi
6872
6873
6874 # Check whether --enable-python was given.
6875 if test "${enable_python+set}" = set; then :
6876 enableval=$enable_python; python=$enableval
6877 else
6878 python=yes
6879 fi
6880
6881
6882
6883 MY_SUBDIRS=""
6884 RX_INCLUDES=""
6885 RX_LIBS=""
6886 if 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"
6890 fi
6891 MY_SUBDIRS="$MY_SUBDIRS src"
6892 CFLAGS="$CFLAGS $ANSI_SRC -W -Wall"
6893 if test "z$USE_MAINTAINER_MODE" = zyes ; then
6894 CFLAGS="$CFLAGS -Werror"
6895 fi
6896
6897
6898 tre_version="0.7.5"
6899 withval=''
6900
6901 # Check whether --with-tre was given.
6902 if test "${with_tre+set}" = set; then :
6903 withval=$with_tre;
6904 fi
6905
6906 if test "x$withval" != "x"; then
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; }
6909 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
6910 LIBS="$LIBS -L$withval/lib"
6911 else
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; }
6914 CPPFLAGS="$CPPFLAGS -I${HOME}/include -L${HOME}/lib"
6915 LIBS="$LIBS -L${HOME}/lib"
6916 fi
6917 ac_fn_c_check_header_mongrel "$LINENO" "tre/regex.h" "ac_cv_header_tre_regex_h" "$ac_includes_default"
6918 if test "x$ac_cv_header_tre_regex_h" = x""yes; then :
6919
6920 else
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
6922 fi
6923
6924
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -ltre" >&5
6926 $as_echo_n "checking for regexec in -ltre... " >&6; }
6927 if test "${ac_cv_lib_tre_regexec+set}" = set; then :
6928 $as_echo_n "(cached) " >&6
6929 else
6930 ac_check_lib_save_LIBS=$LIBS
6931 LIBS="-ltre $LIBS"
6932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6933 /* end confdefs.h. */
6934
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
6939 extern "C"
6940 #endif
6941 char regexec ();
6942 int
6943 main ()
6944 {
6945 return regexec ();
6946 ;
6947 return 0;
6948 }
6949 _ACEOF
6950 if ac_fn_c_try_link "$LINENO"; then :
6951 ac_cv_lib_tre_regexec=yes
6952 else
6953 ac_cv_lib_tre_regexec=no
6954 fi
6955 rm -f core conftest.err conftest.$ac_objext \
6956 conftest$ac_exeext conftest.$ac_ext
6957 LIBS=$ac_check_lib_save_LIBS
6958 fi
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tre_regexec" >&5
6960 $as_echo "$ac_cv_lib_tre_regexec" >&6; }
6961 if test "x$ac_cv_lib_tre_regexec" = x""yes; then :
6962 cat >>confdefs.h <<_ACEOF
6963 #define HAVE_LIBTRE 1
6964 _ACEOF
6965
6966 LIBS="-ltre $LIBS"
6967
6968 else
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
6970 fi
6971
6972
6973 core_version="1.1"
6974 withval=''
6975
6976 # Check whether --with-coredumper was given.
6977 if test "${with_coredumper+set}" = set; then :
6978 withval=$with_coredumper;
6979 fi
6980
6981 if 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"
6986 else
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"
6991 fi
6992 ac_fn_c_check_header_mongrel "$LINENO" "google/coredumper.h" "ac_cv_header_google_coredumper_h" "$ac_includes_default"
6993 if test "x$ac_cv_header_google_coredumper_h" = x""yes; then :
6994
6995 else
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; }
6998 fi
6999
7000
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WriteCoreDump in -lcoredumper" >&5
7002 $as_echo_n "checking for WriteCoreDump in -lcoredumper... " >&6; }
7003 if test "${ac_cv_lib_coredumper_WriteCoreDump+set}" = set; then :
7004 $as_echo_n "(cached) " >&6
7005 else
7006 ac_check_lib_save_LIBS=$LIBS
7007 LIBS="-lcoredumper $LIBS"
7008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
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
7015 extern "C"
7016 #endif
7017 char WriteCoreDump ();
7018 int
7019 main ()
7020 {
7021 return WriteCoreDump ();
7022 ;
7023 return 0;
7024 }
7025 _ACEOF
7026 if ac_fn_c_try_link "$LINENO"; then :
7027 ac_cv_lib_coredumper_WriteCoreDump=yes
7028 else
7029 ac_cv_lib_coredumper_WriteCoreDump=no
7030 fi
7031 rm -f core conftest.err conftest.$ac_objext \
7032 conftest$ac_exeext conftest.$ac_ext
7033 LIBS=$ac_check_lib_save_LIBS
7034 fi
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_coredumper_WriteCoreDump" >&5
7036 $as_echo "$ac_cv_lib_coredumper_WriteCoreDump" >&6; }
7037 if test "x$ac_cv_lib_coredumper_WriteCoreDump" = x""yes; then :
7038 cat >>confdefs.h <<_ACEOF
7039 #define HAVE_LIBCOREDUMPER 1
7040 _ACEOF
7041
7042 LIBS="-lcoredumper $LIBS"
7043
7044 else
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; }
7047 fi
7048
7049
7050 withval=''
7051
7052 # Check whether --with-ssl was given.
7053 if test "${with_ssl+set}" = set; then :
7054 withval=$with_ssl;
7055 fi
7056
7057 if test "x$withval" != "x"; then
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; }
7060 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
7061 LIBS="$LIBS -L$withval/lib"
7062 else
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Looking for openssl in system " >&5
7064 $as_echo "Looking for openssl in system " >&6; }
7065 fi
7066
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; }
7069 if test "${ac_cv_lib_ssl_BIO_new+set}" = set; then :
7070 $as_echo_n "(cached) " >&6
7071 else
7072 ac_check_lib_save_LIBS=$LIBS
7073 LIBS="-lssl $LIBS"
7074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
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
7081 extern "C"
7082 #endif
7083 char BIO_new ();
7084 int
7085 main ()
7086 {
7087 return BIO_new ();
7088 ;
7089 return 0;
7090 }
7091 _ACEOF
7092 if ac_fn_c_try_link "$LINENO"; then :
7093 ac_cv_lib_ssl_BIO_new=yes
7094 else
7095 ac_cv_lib_ssl_BIO_new=no
7096 fi
7097 rm -f core conftest.err conftest.$ac_objext \
7098 conftest$ac_exeext conftest.$ac_ext
7099 LIBS=$ac_check_lib_save_LIBS
7100 fi
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; }
7103 if test "x$ac_cv_lib_ssl_BIO_new" = x""yes; then :
7104
7105 LIBS="-lssl $LIBS"
7106 for ac_header in openssl/bio.h
7107 do :
7108 ac_fn_c_check_header_mongrel "$LINENO" "openssl/bio.h" "ac_cv_header_openssl_bio_h" "$ac_includes_default"
7109 if test "x$ac_cv_header_openssl_bio_h" = x""yes; then :
7110 cat >>confdefs.h <<_ACEOF
7111 #define HAVE_OPENSSL_BIO_H 1
7112 _ACEOF
7113
7114
7115 $as_echo "#define WITH_SSL 1" >>confdefs.h
7116
7117 ssl_message="LDAP library: enabled"
7118
7119 else
7120
7121 if test "x$withval" != "x"; then
7122 as_fn_error "ssl headers not found" "$LINENO" 5
7123 fi
7124
7125 fi
7126
7127 done
7128
7129
7130 else
7131
7132 if test "x$withval" != "x"; then
7133 as_fn_error "libldap not found or not valid" "$LINENO" 5
7134 fi
7135
7136
7137 fi
7138
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
7140 $as_echo "$LIBS" >&6; }
7141
7142
7143 withval=''
7144
7145 # Check whether --with-ldap was given.
7146 if test "${with_ldap+set}" = set; then :
7147 withval=$with_ldap;
7148 fi
7149
7150 if test "x$withval" != "x"; then
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; }
7153 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
7154 LIBS="$LIBS -L$withval/lib"
7155 else
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Looking for ldap in system " >&5
7157 $as_echo "Looking for ldap in system " >&6; }
7158 fi
7159
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; }
7162 if test "${ac_cv_lib_ldap_ldap_simple_bind_s+set}" = set; then :
7163 $as_echo_n "(cached) " >&6
7164 else
7165 ac_check_lib_save_LIBS=$LIBS
7166 LIBS="-lldap $LIBS"
7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h. */
7169
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. */
7173 #ifdef __cplusplus
7174 extern "C"
7175 #endif
7176 char ldap_simple_bind_s ();
7177 int
7178 main ()
7179 {
7180 return ldap_simple_bind_s ();
7181 ;
7182 return 0;
7183 }
7184 _ACEOF
7185 if ac_fn_c_try_link "$LINENO"; then :
7186 ac_cv_lib_ldap_ldap_simple_bind_s=yes
7187 else
7188 ac_cv_lib_ldap_ldap_simple_bind_s=no
7189 fi
7190 rm -f core conftest.err conftest.$ac_objext \
7191 conftest$ac_exeext conftest.$ac_ext
7192 LIBS=$ac_check_lib_save_LIBS
7193 fi
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; }
7196 if test "x$ac_cv_lib_ldap_ldap_simple_bind_s" = x""yes; then :
7197
7198 LIBS="-lldap $LIBS"
7199 for ac_header in ldap.h
7200 do :
7201 ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
7202 if test "x$ac_cv_header_ldap_h" = x""yes; then :
7203 cat >>confdefs.h <<_ACEOF
7204 #define HAVE_LDAP_H 1
7205 _ACEOF
7206
7207
7208 $as_echo "#define WITH_LDAP 1" >>confdefs.h
7209
7210 ldap_message="LDAP library: enabled"
7211
7212 else
7213
7214 if test "x$withval" != "x"; then
7215 as_fn_error "ldap.h not found" "$LINENO" 5
7216 fi
7217
7218 fi
7219
7220 done
7221
7222
7223 else
7224
7225 if test "x$withval" != "x"; then
7226 as_fn_error "libldap not found or not valid" "$LINENO" 5
7227 fi
7228
7229
7230 fi
7231
7232
7233
7234 if test "$python" = yes; then
7235 # Extract the first word of "python2", so it can be a program name with args.
7236 set dummy python2; ac_word=$2
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238 $as_echo_n "checking for $ac_word... " >&6; }
7239 if test "${ac_cv_path_pythonpath+set}" = set; then :
7240 $as_echo_n "(cached) " >&6
7241 else
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
7248 for as_dir in $PATH
7249 do
7250 IFS=$as_save_IFS
7251 test -z "$as_dir" && as_dir=.
7252 for ac_exec_ext in '' $ac_executable_extensions; do
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"
7255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7256 break 2
7257 fi
7258 done
7259 done
7260 IFS=$as_save_IFS
7261
7262 ;;
7263 esac
7264 fi
7265 pythonpath=$ac_cv_path_pythonpath
7266 if test -n "$pythonpath"; then
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonpath" >&5
7268 $as_echo "$pythonpath" >&6; }
7269 else
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271 $as_echo "no" >&6; }
7272 fi
7273
7274
7275 if test "_$pythonpath" = _ ; then
7276 # Extract the first word of "python", so it can be a program name with args.
7277 set dummy python; ac_word=$2
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7279 $as_echo_n "checking for $ac_word... " >&6; }
7280 if test "${ac_cv_path_pythonpath+set}" = set; then :
7281 $as_echo_n "(cached) " >&6
7282 else
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
7289 for as_dir in $PATH
7290 do
7291 IFS=$as_save_IFS
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
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"
7296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 break 2
7298 fi
7299 done
7300 done
7301 IFS=$as_save_IFS
7302
7303 ;;
7304 esac
7305 fi
7306 pythonpath=$ac_cv_path_pythonpath
7307 if test -n "$pythonpath"; then
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonpath" >&5
7309 $as_echo "$pythonpath" >&6; }
7310 else
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7312 $as_echo "no" >&6; }
7313 fi
7314
7315
7316 fi
7317 if test "_$pythonpath" = _ ; then
7318 python=no
7319 else
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
7321 $as_echo_n "checking Python version... " >&6; }
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)"
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_VER" >&5
7327 $as_echo "$PY_VER" >&6; }
7328 if test "$?" != "1"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python compile flags" >&5
7330 $as_echo_n "checking Python compile flags... " >&6; }
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
7335 $as_echo "#define WITH_PYTHON 1" >>confdefs.h
7336
7337 PY_LIBS="-L$PY_LIB/config -lpython$PY_VER -lpthread -lutil"
7338 PY_CFLAGS="-I$PY_INC"
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7340 $as_echo "ok" >&6; }
7341 CFLAGS="$CFLAGS $PY_CFLAGS"
7342 LIBS="$LIBS $PY_LIBS"
7343 else
7344 python=no
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Can't find Python.h" >&5
7346 $as_echo "Can't find Python.h" >&6; }
7347 fi
7348 else
7349 echo "Python too old. Only 2.2 or above is supported."
7350 python=no
7351 fi
7352 fi
7353 fi
7354
7355 if test "x$python" = "xyes"; then
7356 DO_PYTHON_TRUE=
7357 DO_PYTHON_FALSE='#'
7358 else
7359 DO_PYTHON_TRUE='#'
7360 DO_PYTHON_FALSE=
7361 fi
7362
7363
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
7365 $as_echo "$LIBS" >&6; }
7366
7367
7368 cat >>confdefs.h <<_ACEOF
7369 #define CODENAME "${CODENAME}"
7370 _ACEOF
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380 ac_config_files="$ac_config_files Makefile rx/Makefile src/Makefile"
7381
7382 cat >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 #
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.
7400 # So, we kill variables containing newlines.
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.
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 #(
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;} ;;
7411 esac
7412 case $ac_var in #(
7413 _ | IFS | as_nl) ;; #(
7414 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7415 *) { eval $ac_var=; unset $ac_var;} ;;
7416 esac ;;
7417 esac
7418 done
7419
7420 (set) 2>&1 |
7421 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7422 *${as_nl}ac_space=\ *)
7423 # `set' does not quote correctly, so add quotes: double-quote
7424 # substitution turns \\\\ into \\, and sed turns \\ into \.
7425 sed -n \
7426 "s/'/'\\\\''/g;
7427 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7428 ;; #(
7429 *)
7430 # `set' quotes correctly as required by POSIX, so do not add quotes.
7431 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7432 ;;
7433 esac |
7434 sort
7435 ) |
7436 sed '
7437 /^ac_cv_env_/b end
7438 t clear
7439 :clear
7440 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7441 t end
7442 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7443 :end' >>confcache
7444 if 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" &&
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7448 $as_echo "$as_me: updating cache $cache_file" >&6;}
7449 cat confcache >$cache_file
7450 else
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;}
7453 fi
7454 fi
7455 rm -f confcache
7456
7457 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7458 # Let make expand exec_prefix.
7459 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7460
7461 DEFS=-DHAVE_CONFIG_H
7462
7463 ac_libobjs=
7464 ac_ltlibobjs=
7465 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7466 # 1. Remove the extension, and $U if already installed.
7467 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7468 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7469 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7470 # will be set to the directory where LIBOBJS objects are built.
7471 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7472 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7473 done
7474 LIBOBJS=$ac_libobjs
7475
7476 LTLIBOBJS=$ac_ltlibobjs
7477
7478
7479 if test -n "$EXEEXT"; then
7480 am__EXEEXT_TRUE=
7481 am__EXEEXT_FALSE='#'
7482 else
7483 am__EXEEXT_TRUE='#'
7484 am__EXEEXT_FALSE=
7485 fi
7486
7487 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7488 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
7489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7490 fi
7491 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7492 as_fn_error "conditional \"AMDEP\" was never defined.
7493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7494 fi
7495 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7496 as_fn_error "conditional \"am__fastdepCC\" was never defined.
7497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7498 fi
7499 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7500 as_fn_error "conditional \"am__fastdepCC\" was never defined.
7501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7502 fi
7503 if test -z "${DO_PYTHON_TRUE}" && test -z "${DO_PYTHON_FALSE}"; then
7504 as_fn_error "conditional \"DO_PYTHON\" was never defined.
7505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7506 fi
7507
7508 : ${CONFIG_STATUS=./config.status}
7509 ac_write_fail=0
7510 ac_clean_files_save=$ac_clean_files
7511 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7513 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7514 as_write_fail=0
7515 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
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
7522 debug=false
7523 ac_cs_recheck=false
7524 ac_cs_silent=false
7525
7526 SHELL=\${CONFIG_SHELL-$SHELL}
7527 export SHELL
7528 _ASEOF
7529 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7530 ## -------------------- ##
7531 ## M4sh Initialization. ##
7532 ## -------------------- ##
7533
7534 # Be more Bourne compatible
7535 DUALCASE=1; export DUALCASE # for MKS sh
7536 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7537 emulate sh
7538 NULLCMD=:
7539 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7540 # is contrary to our usage. Disable this feature.
7541 alias -g '${1+"$@"}'='"$@"'
7542 setopt NO_GLOB_SUBST
7543 else
7544 case `(set -o) 2>/dev/null` in #(
7545 *posix*) :
7546 set -o posix ;; #(
7547 *) :
7548 ;;
7549 esac
7550 fi
7551
7552
7553 as_nl='
7554 '
7555 export as_nl
7556 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7557 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7558 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7559 as_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.
7562 if 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 --'
7566 elif (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'
7569 else
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'
7573 else
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'
7586 fi
7587 export as_echo_body
7588 as_echo='sh -c $as_echo_body as_echo'
7589 fi
7590
7591 # The user is always right.
7592 if 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 }
7598 fi
7599
7600
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.)
7606 IFS=" "" $as_nl"
7607
7608 # Find who we are. Look in the path if we contain no directory separator.
7609 case $0 in #((
7610 *[\\/]* ) as_myself=$0 ;;
7611 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 for as_dir in $PATH
7613 do
7614 IFS=$as_save_IFS
7615 test -z "$as_dir" && as_dir=.
7616 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7617 done
7618 IFS=$as_save_IFS
7619
7620 ;;
7621 esac
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.
7624 if test "x$as_myself" = x; then
7625 as_myself=$0
7626 fi
7627 if test ! -f "$as_myself"; then
7628 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7629 exit 1
7630 fi
7631
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.
7636 for as_var in BASH_ENV ENV MAIL MAILPATH
7637 do eval test x\${$as_var+set} = xset \
7638 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7639 done
7640 PS1='$ '
7641 PS2='> '
7642 PS4='+ '
7643
7644 # NLS nuisances.
7645 LC_ALL=C
7646 export LC_ALL
7647 LANGUAGE=C
7648 export 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.
7659 as_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
7665 fi
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.
7674 as_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.
7682 as_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.
7692 as_fn_unset ()
7693 {
7694 { eval $1=; unset $1;}
7695 }
7696 as_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.
7703 if (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 }'
7708 else
7709 as_fn_append ()
7710 {
7711 eval $1=\$$1\$2
7712 }
7713 fi # 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.
7720 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7721 eval 'as_fn_arith ()
7722 {
7723 as_val=$(( $* ))
7724 }'
7725 else
7726 as_fn_arith ()
7727 {
7728 as_val=`expr "$@" || test $? -eq 1`
7729 }
7730 fi # as_fn_arith
7731
7732
7733 if expr a : '\(a\)' >/dev/null 2>&1 &&
7734 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7735 as_expr=expr
7736 else
7737 as_expr=false
7738 fi
7739
7740 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7741 as_basename=basename
7742 else
7743 as_basename=false
7744 fi
7745
7746 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7747 as_dirname=dirname
7748 else
7749 as_dirname=false
7750 fi
7751
7752 as_me=`$as_basename -- "$0" ||
7753 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7754 X"$0" : 'X\(//\)$' \| \
7755 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7756 $as_echo X/"$0" |
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'`
7770
7771 # Avoid depending upon Character Ranges.
7772 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7773 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7774 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7775 as_cr_digits='0123456789'
7776 as_cr_alnum=$as_cr_Letters$as_cr_digits
7777
7778 ECHO_C= ECHO_N= ECHO_T=
7779 case `echo -n x` in #(((((
7780 -n*)
7781 case `echo 'xy\c'` in
7782 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7783 xy) ECHO_C='\c';;
7784 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7785 ECHO_T=' ';;
7786 esac;;
7787 *)
7788 ECHO_N='-n';;
7789 esac
7790
7791 rm -f conf$$ conf$$.exe conf$$.file
7792 if test -d conf$$.dir; then
7793 rm -f conf$$.dir/conf$$.file
7794 else
7795 rm -f conf$$.dir
7796 mkdir conf$$.dir 2>/dev/null
7797 fi
7798 if (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
7810 as_ln_s='cp -p'
7811 fi
7812 else
7813 as_ln_s='cp -p'
7814 fi
7815 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7816 rmdir conf$$.dir 2>/dev/null
7817
7818
7819 # as_fn_mkdir_p
7820 # -------------
7821 # Create "$as_dir" as a directory, including parents if necessary.
7822 as_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
7866 if mkdir -p . 2>/dev/null; then
7867 as_mkdir_p='mkdir -p "$as_dir"'
7868 else
7869 test -d ./-p && rmdir ./-p
7870 as_mkdir_p=false
7871 fi
7872
7873 if test -x / >/dev/null 2>&1; then
7874 as_test_x='test -x'
7875 else
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
7884 test -d "$1/.";
7885 else
7886 case $1 in #(
7887 -*)set "./$1";;
7888 esac;
7889 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7890 ???[sx]*):;;*)false;;esac;fi
7891 '\'' sh
7892 '
7893 fi
7894 as_executable_p=$as_test_x
7895
7896 # Sed expression to map a string onto a valid CPP name.
7897 as_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.
7900 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7901
7902
7903 exec 6>&1
7904 ## ----------------------------------- ##
7905 ## Main body of $CONFIG_STATUS script. ##
7906 ## ----------------------------------- ##
7907 _ASEOF
7908 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7909
7910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7911 # Save the log message, to keep $0 and so on meaningful, and to
7912 # report actual input values of CONFIG_FILES etc. instead of their
7913 # values after options handling.
7914 ac_log="
7915 This file was extended by X3 $as_me 1.8, which was
7916 generated by GNU Autoconf 2.64. Invocation command line was
7917
7918 CONFIG_FILES = $CONFIG_FILES
7919 CONFIG_HEADERS = $CONFIG_HEADERS
7920 CONFIG_LINKS = $CONFIG_LINKS
7921 CONFIG_COMMANDS = $CONFIG_COMMANDS
7922 $ $0 $@
7923
7924 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7925 "
7926
7927 _ACEOF
7928
7929 case $ac_config_files in *"
7930 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7931 esac
7932
7933 case $ac_config_headers in *"
7934 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7935 esac
7936
7937
7938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7939 # Files that config.status was made for.
7940 config_files="$ac_config_files"
7941 config_headers="$ac_config_headers"
7942 config_commands="$ac_config_commands"
7943
7944 _ACEOF
7945
7946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7947 ac_cs_usage="\
7948 \`$as_me' instantiates files and other configuration actions
7949 from templates according to the current configuration. Unless the files
7950 and actions are specified as TAGs, all are instantiated by default.
7951
7952 Usage: $0 [OPTION]... [TAG]...
7953
7954 -h, --help print this help, then exit
7955 -V, --version print version number and configuration settings, then exit
7956 -q, --quiet, --silent
7957 do not print progress messages
7958 -d, --debug don't remove temporary files
7959 --recheck update $as_me by reconfiguring in the same conditions
7960 --file=FILE[:TEMPLATE]
7961 instantiate the configuration file FILE
7962 --header=FILE[:TEMPLATE]
7963 instantiate the configuration header FILE
7964
7965 Configuration files:
7966 $config_files
7967
7968 Configuration headers:
7969 $config_headers
7970
7971 Configuration commands:
7972 $config_commands
7973
7974 Report bugs to <evilnet-devel@lists.sourceforge.net>."
7975
7976 _ACEOF
7977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7978 ac_cs_version="\\
7979 X3 config.status 1.8
7980 configured by $0, generated by GNU Autoconf 2.64,
7981 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7982
7983 Copyright (C) 2009 Free Software Foundation, Inc.
7984 This config.status script is free software; the Free Software Foundation
7985 gives unlimited permission to copy, distribute and modify it."
7986
7987 ac_pwd='$ac_pwd'
7988 srcdir='$srcdir'
7989 INSTALL='$INSTALL'
7990 MKDIR_P='$MKDIR_P'
7991 AWK='$AWK'
7992 test -n "\$AWK" || AWK=awk
7993 _ACEOF
7994
7995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7996 # The default lists apply if the user does not specify any file.
7997 ac_need_defaults=:
7998 while test $# != 0
7999 do
8000 case $1 in
8001 --*=*)
8002 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8003 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8004 ac_shift=:
8005 ;;
8006 *)
8007 ac_option=$1
8008 ac_optarg=$2
8009 ac_shift=shift
8010 ;;
8011 esac
8012
8013 case $ac_option in
8014 # Handling of the options.
8015 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8016 ac_cs_recheck=: ;;
8017 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8018 $as_echo "$ac_cs_version"; exit ;;
8019 --debug | --debu | --deb | --de | --d | -d )
8020 debug=: ;;
8021 --file | --fil | --fi | --f )
8022 $ac_shift
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'"
8027 ac_need_defaults=false;;
8028 --header | --heade | --head | --hea )
8029 $ac_shift
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'"
8034 ac_need_defaults=false;;
8035 --he | --h)
8036 # Conflict between --help and --header
8037 as_fn_error "ambiguous option: \`$1'
8038 Try \`$0 --help' for more information.";;
8039 --help | --hel | -h )
8040 $as_echo "$ac_cs_usage"; exit ;;
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.
8046 -*) as_fn_error "unrecognized option: \`$1'
8047 Try \`$0 --help' for more information." ;;
8048
8049 *) as_fn_append ac_config_targets " $1"
8050 ac_need_defaults=false ;;
8051
8052 esac
8053 shift
8054 done
8055
8056 ac_configure_extra_args=
8057
8058 if $ac_cs_silent; then
8059 exec 6>/dev/null
8060 ac_configure_extra_args="$ac_configure_extra_args --silent"
8061 fi
8062
8063 _ACEOF
8064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8065 if \$ac_cs_recheck; then
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'
8070 export CONFIG_SHELL
8071 exec "\$@"
8072 fi
8073
8074 _ACEOF
8075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8076 exec 5>>config.log
8077 {
8078 echo
8079 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8080 ## Running $as_me. ##
8081 _ASBOX
8082 $as_echo "$ac_log"
8083 } >&5
8084
8085 _ACEOF
8086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8087 #
8088 # INIT-COMMANDS
8089 #
8090 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8091
8092 _ACEOF
8093
8094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8095
8096 # Handling of arguments.
8097 for ac_config_target in $ac_config_targets
8098 do
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
8106 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8107 esac
8108 done
8109
8110
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.
8115 if $ac_need_defaults; then
8116 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8117 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8118 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8119 fi
8120
8121 # Have a temporary directory for convenience. Make it in the build tree
8122 # simply because there is no reason against having it here, and in addition,
8123 # creating and moving files from /tmp can sometimes cause problems.
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'.
8127 $debug ||
8128 {
8129 tmp=
8130 trap 'exit_status=$?
8131 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8132 ' 0
8133 trap 'as_fn_exit 1' 1 2 13 15
8134 }
8135 # Create a (secure) tmp directory for tmp files.
8136
8137 {
8138 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8139 test -n "$tmp" && test -d "$tmp"
8140 } ||
8141 {
8142 tmp=./conf$$-$RANDOM
8143 (umask 077 && mkdir "$tmp")
8144 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8145
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'.
8149 if test -n "$CONFIG_FILES"; then
8150
8151
8152 ac_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.
8156 if test "x$ac_cr" = x; then
8157 eval ac_cr=\$\'\\r\'
8158 fi
8159 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8160 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8161 ac_cs_awk_cr='\r'
8162 else
8163 ac_cs_awk_cr=$ac_cr
8164 fi
8165
8166 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8167 _ACEOF
8168
8169
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
8176 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8177 ac_delim='%!_!# '
8178 for ac_last_try in false false false false false :; do
8179 . ./conf$$subs.sh ||
8180 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8181
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
8184 break
8185 elif $ac_last_try; then
8186 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8187 else
8188 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8189 fi
8190 done
8191 rm -f conf$$subs.sh
8192
8193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8194 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8195 _ACEOF
8196 sed -n '
8197 h
8198 s/^/S["/; s/!.*/"]=/
8199 p
8200 g
8201 s/^[^!]*!//
8202 :repl
8203 t repl
8204 s/'"$ac_delim"'$//
8205 t delim
8206 :nl
8207 h
8208 s/\(.\{148\}\).*/\1/
8209 t more1
8210 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8211 p
8212 n
8213 b repl
8214 :more1
8215 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8216 p
8217 g
8218 s/.\{148\}//
8219 t nl
8220 :delim
8221 h
8222 s/\(.\{148\}\).*/\1/
8223 t more2
8224 s/["\\]/\\&/g; s/^/"/; s/$/"/
8225 p
8226 b
8227 :more2
8228 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8229 p
8230 g
8231 s/.\{148\}//
8232 t delim
8233 ' <conf$$subs.awk | sed '
8234 /^[^""]/{
8235 N
8236 s/\n//
8237 }
8238 ' >>$CONFIG_STATUS || ac_write_fail=1
8239 rm -f conf$$subs.awk
8240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8241 _ACAWK
8242 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8243 for (key in S) S_is_set[key] = 1
8244 FS = "\a"
8245
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 }
8263
8264 print line
8265 }
8266
8267 _ACAWK
8268 _ACEOF
8269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8270 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8271 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8272 else
8273 cat
8274 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8275 || as_fn_error "could not setup config files machinery" "$LINENO" 5
8276 _ACEOF
8277
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).
8282 if test "x$srcdir" = x.; then
8283 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8284 s/:*\$(srcdir):*/:/
8285 s/:*\${srcdir}:*/:/
8286 s/:*@srcdir@:*/:/
8287 s/^\([^=]*=[ ]*\):*/\1/
8288 s/:*$//
8289 s/^[^=]*=[ ]*$//
8290 }'
8291 fi
8292
8293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8294 fi # test -n "$CONFIG_FILES"
8295
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'.
8299 if test -n "$CONFIG_HEADERS"; then
8300 cat >"$tmp/defines.awk" <<\_ACAWK ||
8301 BEGIN {
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.
8310 ac_delim='%!_!# '
8311 for 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
8320 done
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
8326 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8327 sed -n '
8328 s/.\{148\}/&'"$ac_delim"'/g
8329 t rset
8330 :rset
8331 s/^[ ]*#[ ]*define[ ][ ]*/ /
8332 t def
8333 d
8334 :def
8335 s/\\$//
8336 t bsnl
8337 s/["\\]/\\&/g
8338 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8339 D["\1"]=" \3"/p
8340 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8341 d
8342 :bsnl
8343 s/["\\]/\\&/g
8344 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8345 D["\1"]=" \3\\\\\\n"\\/p
8346 t cont
8347 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8348 t cont
8349 d
8350 :cont
8351 n
8352 s/.\{148\}/&'"$ac_delim"'/g
8353 t clear
8354 :clear
8355 s/\\$//
8356 t bsnlc
8357 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8358 d
8359 :bsnlc
8360 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8361 b cont
8362 ' <confdefs.h | sed '
8363 s/'"$ac_delim"'/"\\\
8364 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8365
8366 cat >>$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
8400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8401 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8402 fi # test -n "$CONFIG_HEADERS"
8403
8404
8405 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8406 shift
8407 for ac_tag
8408 do
8409 case $ac_tag in
8410 :[FHLC]) ac_mode=$ac_tag; continue;;
8411 esac
8412 case $ac_mode$ac_tag in
8413 :[FHL]*:*);;
8414 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
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 ||
8442 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8443 esac
8444 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8445 as_fn_append ac_file_inputs " '$ac_f'"
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. */
8451 configure_input='Generated from '`
8452 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8453 `' by configure.'
8454 if test x"$ac_file" != x-; then
8455 configure_input="$ac_file. $configure_input"
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8457 $as_echo "$as_me: creating $ac_file" >&6;}
8458 fi
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
8466
8467 case $ac_tag in
8468 *:-:* | *:-) cat >"$tmp/stdin" \
8469 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8470 esac
8471 ;;
8472 esac
8473
8474 ac_dir=`$as_dirname -- "$ac_file" ||
8475 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8476 X"$ac_file" : 'X\(//\)[^/]' \| \
8477 X"$ac_file" : 'X\(//\)$' \| \
8478 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8479 $as_echo X"$ac_file" |
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'`
8497 as_dir="$ac_dir"; as_fn_mkdir_p
8498 ac_builddir=.
8499
8500 case "$ac_dir" in
8501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8502 *)
8503 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8504 # A ".." for each directory in $ac_dir_suffix.
8505 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
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 ;;
8510 esac
8511 ac_abs_top_builddir=$ac_pwd
8512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8513 # for backward compatibility:
8514 ac_top_builddir=$ac_top_build_prefix
8515
8516 case $srcdir in
8517 .) # We are building in place.
8518 ac_srcdir=.
8519 ac_top_srcdir=$ac_top_builddir_sub
8520 ac_abs_top_srcdir=$ac_pwd ;;
8521 [\\/]* | ?:[\\/]* ) # Absolute name.
8522 ac_srcdir=$srcdir$ac_dir_suffix;
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 ;;
8529 esac
8530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8531
8532
8533 case $ac_mode in
8534 :F)
8535 #
8536 # CONFIG_FILE
8537 #
8538
8539 case $INSTALL in
8540 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8541 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8542 esac
8543 ac_MKDIR_P=$MKDIR_P
8544 case $MKDIR_P in
8545 [\\/$]* | ?:[\\/]* ) ;;
8546 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8547 esac
8548 _ACEOF
8549
8550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8551 # If the template does not know about datarootdir, expand it.
8552 # FIXME: This hack should be removed a few years after 2.60.
8553 ac_datarootdir_hack=; ac_datarootdir_seen=
8554 ac_sed_dataroot='
8555 /datarootdir/ {
8556 p
8557 q
8558 }
8559 /@datadir@/p
8560 /@docdir@/p
8561 /@infodir@/p
8562 /@localedir@/p
8563 /@mandir@/p'
8564 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8565 *datarootdir*) ac_datarootdir_seen=yes;;
8566 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
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;}
8569 _ACEOF
8570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
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
8577 s&\\\${datarootdir}&$datarootdir&g' ;;
8578 esac
8579 _ACEOF
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?
8584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8585 ac_sed_extra="$ac_vpsub
8586 $extrasub
8587 _ACEOF
8588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8589 :t
8590 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8591 s|@configure_input@|$ac_sed_conf_input|;t t
8592 s&@top_builddir@&$ac_top_builddir_sub&;t t
8593 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8594 s&@srcdir@&$ac_srcdir&;t t
8595 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8596 s&@top_srcdir@&$ac_top_srcdir&;t t
8597 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8598 s&@builddir@&$ac_builddir&;t t
8599 s&@abs_builddir@&$ac_abs_builddir&;t t
8600 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8601 s&@INSTALL@&$ac_INSTALL&;t t
8602 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8603 $ac_datarootdir_hack
8604 "
8605 eval 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
8607
8608 test -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"; } &&
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8612 which seems to be undefined. Please make sure it is defined." >&5
8613 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8614 which seems to be undefined. Please make sure it is defined." >&2;}
8615
8616 rm -f "$tmp/stdin"
8617 case $ac_file in
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
8622 ;;
8623 :H)
8624 #
8625 # CONFIG_HEADER
8626 #
8627 if test x"$ac_file" != x-; then
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;}
8636 else
8637 rm -f "$ac_file"
8638 mv "$tmp/config.h" "$ac_file" \
8639 || as_fn_error "could not create $ac_file" "$LINENO" 5
8640 fi
8641 else
8642 $as_echo "/* $configure_input */" \
8643 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8644 || as_fn_error "could not create -" "$LINENO" 5
8645 fi
8646 # Compute "$ac_file"'s index in $config_headers.
8647 _am_arg="$ac_file"
8648 _am_stamp_count=1
8649 for _am_header in $config_headers :; do
8650 case $_am_header in
8651 $_am_arg | $_am_arg:* )
8652 break ;;
8653 * )
8654 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8655 esac
8656 done
8657 echo "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 ||
8662 $as_echo X"$_am_arg" |
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 ;;
8681
8682 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8683 $as_echo "$as_me: executing $ac_file commands" >&6;}
8684 ;;
8685 esac
8686
8687
8688 case $ac_file$ac_mode in
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" ||
8711 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8712 X"$mf" : 'X\(//\)[^/]' \| \
8713 X"$mf" : 'X\(//\)$' \| \
8714 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8715 $as_echo X"$mf" |
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'`
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" ||
8755 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8756 X"$file" : 'X\(//\)[^/]' \| \
8757 X"$file" : 'X\(//\)$' \| \
8758 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8759 $as_echo X"$file" |
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'`
8777 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8778 # echo "creating $dirpart/$file"
8779 echo '# dummy' > "$dirpart/$file"
8780 done
8781 done
8782 }
8783 ;;
8784
8785 esac
8786 done # for ac_tag
8787
8788
8789 as_fn_exit 0
8790 _ACEOF
8791 ac_clean_files=$ac_clean_files_save
8792
8793 test $ac_write_fail = 0 ||
8794 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8795
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.
8805 if 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.
8815 $ac_cs_success || as_fn_exit $?
8816 fi
8817 if 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;}
8820 fi
8821
8822
8823
8824
8825 cat <<EOF
8826
8827 Configuration summary
8828 =====================
8829
8830 X3 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
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
8850 $ldap_message
8851 python: $python
8852
8853 Install to: $prefix
8854
8855 Now you can proceed with compiling X3
8856
8857 EOF
8858