Annotation of embedaddon/arping/configure, revision 1.1.1.1
1.1 misho 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
3: # Generated by GNU Autoconf 2.61 for arping 2.09.
4: #
5: # Report bugs to <thomas@habets.pp.se>.
6: #
7: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8: # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9: # This configure script is free software; the Free Software Foundation
10: # gives unlimited permission to copy, distribute and modify it.
11: ## --------------------- ##
12: ## M4sh Initialization. ##
13: ## --------------------- ##
14:
15: # Be more Bourne compatible
16: DUALCASE=1; export DUALCASE # for MKS sh
17: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18: emulate sh
19: NULLCMD=:
20: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21: # is contrary to our usage. Disable this feature.
22: alias -g '${1+"$@"}'='"$@"'
23: setopt NO_GLOB_SUBST
24: else
25: case `(set -o) 2>/dev/null` in
26: *posix*) set -o posix ;;
27: esac
28:
29: fi
30:
31:
32:
33:
34: # PATH needs CR
35: # Avoid depending upon Character Ranges.
36: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39: as_cr_digits='0123456789'
40: as_cr_alnum=$as_cr_Letters$as_cr_digits
41:
42: # The user is always right.
43: if test "${PATH_SEPARATOR+set}" != set; then
44: echo "#! /bin/sh" >conf$$.sh
45: echo "exit 0" >>conf$$.sh
46: chmod +x conf$$.sh
47: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48: PATH_SEPARATOR=';'
49: else
50: PATH_SEPARATOR=:
51: fi
52: rm -f conf$$.sh
53: fi
54:
55: # Support unset when possible.
56: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57: as_unset=unset
58: else
59: as_unset=false
60: fi
61:
62:
63: # IFS
64: # We need space, tab and new line, in precisely that order. Quoting is
65: # there to prevent editors from complaining about space-tab.
66: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67: # splitting by setting IFS to empty value.)
68: as_nl='
69: '
70: IFS=" "" $as_nl"
71:
72: # Find who we are. Look in the path if we contain no directory separator.
73: case $0 in
74: *[\\/]* ) as_myself=$0 ;;
75: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76: for as_dir in $PATH
77: do
78: IFS=$as_save_IFS
79: test -z "$as_dir" && as_dir=.
80: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81: done
82: IFS=$as_save_IFS
83:
84: ;;
85: esac
86: # We did not find ourselves, most probably we were run as `sh COMMAND'
87: # in which case we are not to be found in the path.
88: if test "x$as_myself" = x; then
89: as_myself=$0
90: fi
91: if test ! -f "$as_myself"; then
92: echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93: { (exit 1); exit 1; }
94: fi
95:
96: # Work around bugs in pre-3.0 UWIN ksh.
97: for as_var in ENV MAIL MAILPATH
98: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99: done
100: PS1='$ '
101: PS2='> '
102: PS4='+ '
103:
104: # NLS nuisances.
105: for as_var in \
106: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108: LC_TELEPHONE LC_TIME
109: do
110: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111: eval $as_var=C; export $as_var
112: else
113: ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114: fi
115: done
116:
117: # Required to use basename.
118: if expr a : '\(a\)' >/dev/null 2>&1 &&
119: test "X`expr 00001 : '.*\(...\)'`" = X001; then
120: as_expr=expr
121: else
122: as_expr=false
123: fi
124:
125: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126: as_basename=basename
127: else
128: as_basename=false
129: fi
130:
131:
132: # Name of the executable.
133: as_me=`$as_basename -- "$0" ||
134: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135: X"$0" : 'X\(//\)$' \| \
136: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137: echo X/"$0" |
138: sed '/^.*\/\([^/][^/]*\)\/*$/{
139: s//\1/
140: q
141: }
142: /^X\/\(\/\/\)$/{
143: s//\1/
144: q
145: }
146: /^X\/\(\/\).*/{
147: s//\1/
148: q
149: }
150: s/.*/./; q'`
151:
152: # CDPATH.
153: $as_unset CDPATH
154:
155:
156: if test "x$CONFIG_SHELL" = x; then
157: if (eval ":") 2>/dev/null; then
158: as_have_required=yes
159: else
160: as_have_required=no
161: fi
162:
163: if test $as_have_required = yes && (eval ":
164: (as_func_return () {
165: (exit \$1)
166: }
167: as_func_success () {
168: as_func_return 0
169: }
170: as_func_failure () {
171: as_func_return 1
172: }
173: as_func_ret_success () {
174: return 0
175: }
176: as_func_ret_failure () {
177: return 1
178: }
179:
180: exitcode=0
181: if as_func_success; then
182: :
183: else
184: exitcode=1
185: echo as_func_success failed.
186: fi
187:
188: if as_func_failure; then
189: exitcode=1
190: echo as_func_failure succeeded.
191: fi
192:
193: if as_func_ret_success; then
194: :
195: else
196: exitcode=1
197: echo as_func_ret_success failed.
198: fi
199:
200: if as_func_ret_failure; then
201: exitcode=1
202: echo as_func_ret_failure succeeded.
203: fi
204:
205: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206: :
207: else
208: exitcode=1
209: echo positional parameters were not saved.
210: fi
211:
212: test \$exitcode = 0) || { (exit 1); exit 1; }
213:
214: (
215: as_lineno_1=\$LINENO
216: as_lineno_2=\$LINENO
217: test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218: test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219: ") 2> /dev/null; then
220: :
221: else
222: as_candidate_shells=
223: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225: do
226: IFS=$as_save_IFS
227: test -z "$as_dir" && as_dir=.
228: case $as_dir in
229: /*)
230: for as_base in sh bash ksh sh5; do
231: as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232: done;;
233: esac
234: done
235: IFS=$as_save_IFS
236:
237:
238: for as_shell in $as_candidate_shells $SHELL; do
239: # Try only shells that exist, to save several forks.
240: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241: { ("$as_shell") 2> /dev/null <<\_ASEOF
242: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243: emulate sh
244: NULLCMD=:
245: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246: # is contrary to our usage. Disable this feature.
247: alias -g '${1+"$@"}'='"$@"'
248: setopt NO_GLOB_SUBST
249: else
250: case `(set -o) 2>/dev/null` in
251: *posix*) set -o posix ;;
252: esac
253:
254: fi
255:
256:
257: :
258: _ASEOF
259: }; then
260: CONFIG_SHELL=$as_shell
261: as_have_required=yes
262: if { "$as_shell" 2> /dev/null <<\_ASEOF
263: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264: emulate sh
265: NULLCMD=:
266: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267: # is contrary to our usage. Disable this feature.
268: alias -g '${1+"$@"}'='"$@"'
269: setopt NO_GLOB_SUBST
270: else
271: case `(set -o) 2>/dev/null` in
272: *posix*) set -o posix ;;
273: esac
274:
275: fi
276:
277:
278: :
279: (as_func_return () {
280: (exit $1)
281: }
282: as_func_success () {
283: as_func_return 0
284: }
285: as_func_failure () {
286: as_func_return 1
287: }
288: as_func_ret_success () {
289: return 0
290: }
291: as_func_ret_failure () {
292: return 1
293: }
294:
295: exitcode=0
296: if as_func_success; then
297: :
298: else
299: exitcode=1
300: echo as_func_success failed.
301: fi
302:
303: if as_func_failure; then
304: exitcode=1
305: echo as_func_failure succeeded.
306: fi
307:
308: if as_func_ret_success; then
309: :
310: else
311: exitcode=1
312: echo as_func_ret_success failed.
313: fi
314:
315: if as_func_ret_failure; then
316: exitcode=1
317: echo as_func_ret_failure succeeded.
318: fi
319:
320: if ( set x; as_func_ret_success y && test x = "$1" ); then
321: :
322: else
323: exitcode=1
324: echo positional parameters were not saved.
325: fi
326:
327: test $exitcode = 0) || { (exit 1); exit 1; }
328:
329: (
330: as_lineno_1=$LINENO
331: as_lineno_2=$LINENO
332: test "x$as_lineno_1" != "x$as_lineno_2" &&
333: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334:
335: _ASEOF
336: }; then
337: break
338: fi
339:
340: fi
341:
342: done
343:
344: if test "x$CONFIG_SHELL" != x; then
345: for as_var in BASH_ENV ENV
346: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347: done
348: export CONFIG_SHELL
349: exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350: fi
351:
352:
353: if test $as_have_required = no; then
354: echo This script requires a shell more modern than all the
355: echo shells that I found on your system. Please install a
356: echo modern shell, or manually run the script under such a
357: echo shell if you do have one.
358: { (exit 1); exit 1; }
359: fi
360:
361:
362: fi
363:
364: fi
365:
366:
367:
368: (eval "as_func_return () {
369: (exit \$1)
370: }
371: as_func_success () {
372: as_func_return 0
373: }
374: as_func_failure () {
375: as_func_return 1
376: }
377: as_func_ret_success () {
378: return 0
379: }
380: as_func_ret_failure () {
381: return 1
382: }
383:
384: exitcode=0
385: if as_func_success; then
386: :
387: else
388: exitcode=1
389: echo as_func_success failed.
390: fi
391:
392: if as_func_failure; then
393: exitcode=1
394: echo as_func_failure succeeded.
395: fi
396:
397: if as_func_ret_success; then
398: :
399: else
400: exitcode=1
401: echo as_func_ret_success failed.
402: fi
403:
404: if as_func_ret_failure; then
405: exitcode=1
406: echo as_func_ret_failure succeeded.
407: fi
408:
409: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410: :
411: else
412: exitcode=1
413: echo positional parameters were not saved.
414: fi
415:
416: test \$exitcode = 0") || {
417: echo No shell found that supports shell functions.
418: echo Please tell autoconf@gnu.org about your system,
419: echo including any error possibly output before this
420: echo message
421: }
422:
423:
424:
425: as_lineno_1=$LINENO
426: as_lineno_2=$LINENO
427: test "x$as_lineno_1" != "x$as_lineno_2" &&
428: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429:
430: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431: # uniformly replaced by the line number. The first 'sed' inserts a
432: # line-number line after each line using $LINENO; the second 'sed'
433: # does the real work. The second script uses 'N' to pair each
434: # line-number line with the line containing $LINENO, and appends
435: # trailing '-' during substitution so that $LINENO is not a special
436: # case at line end.
437: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438: # scripts with optimization help from Paolo Bonzini. Blame Lee
439: # E. McMahon (1931-1989) for sed's syntax. :-)
440: sed -n '
441: p
442: /[$]LINENO/=
443: ' <$as_myself |
444: sed '
445: s/[$]LINENO.*/&-/
446: t lineno
447: b
448: :lineno
449: N
450: :loop
451: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452: t loop
453: s/-\n.*//
454: ' >$as_me.lineno &&
455: chmod +x "$as_me.lineno" ||
456: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457: { (exit 1); exit 1; }; }
458:
459: # Don't try to exec as it changes $[0], causing all sort of problems
460: # (the dirname of $[0] is not the place where we might find the
461: # original and so on. Autoconf is especially sensitive to this).
462: . "./$as_me.lineno"
463: # Exit status is that of the last command.
464: exit
465: }
466:
467:
468: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469: as_dirname=dirname
470: else
471: as_dirname=false
472: fi
473:
474: ECHO_C= ECHO_N= ECHO_T=
475: case `echo -n x` in
476: -n*)
477: case `echo 'x\c'` in
478: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479: *) ECHO_C='\c';;
480: esac;;
481: *)
482: ECHO_N='-n';;
483: esac
484:
485: if expr a : '\(a\)' >/dev/null 2>&1 &&
486: test "X`expr 00001 : '.*\(...\)'`" = X001; then
487: as_expr=expr
488: else
489: as_expr=false
490: fi
491:
492: rm -f conf$$ conf$$.exe conf$$.file
493: if test -d conf$$.dir; then
494: rm -f conf$$.dir/conf$$.file
495: else
496: rm -f conf$$.dir
497: mkdir conf$$.dir
498: fi
499: echo >conf$$.file
500: if ln -s conf$$.file conf$$ 2>/dev/null; then
501: as_ln_s='ln -s'
502: # ... but there are two gotchas:
503: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505: # In both cases, we have to default to `cp -p'.
506: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507: as_ln_s='cp -p'
508: elif ln conf$$.file conf$$ 2>/dev/null; then
509: as_ln_s=ln
510: else
511: as_ln_s='cp -p'
512: fi
513: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514: rmdir conf$$.dir 2>/dev/null
515:
516: if mkdir -p . 2>/dev/null; then
517: as_mkdir_p=:
518: else
519: test -d ./-p && rmdir ./-p
520: as_mkdir_p=false
521: fi
522:
523: if test -x / >/dev/null 2>&1; then
524: as_test_x='test -x'
525: else
526: if ls -dL / >/dev/null 2>&1; then
527: as_ls_L_option=L
528: else
529: as_ls_L_option=
530: fi
531: as_test_x='
532: eval sh -c '\''
533: if test -d "$1"; then
534: test -d "$1/.";
535: else
536: case $1 in
537: -*)set "./$1";;
538: esac;
539: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540: ???[sx]*):;;*)false;;esac;fi
541: '\'' sh
542: '
543: fi
544: as_executable_p=$as_test_x
545:
546: # Sed expression to map a string onto a valid CPP name.
547: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548:
549: # Sed expression to map a string onto a valid variable name.
550: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551:
552:
553:
554: exec 7<&0 </dev/null 6>&1
555:
556: # Name of the host.
557: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558: # so uname gets run too.
559: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560:
561: #
562: # Initializations.
563: #
564: ac_default_prefix=/usr/local
565: ac_clean_files=
566: ac_config_libobj_dir=.
567: LIBOBJS=
568: cross_compiling=no
569: subdirs=
570: MFLAGS=
571: MAKEFLAGS=
572: SHELL=${CONFIG_SHELL-/bin/sh}
573:
574: # Identity of this package.
575: PACKAGE_NAME='arping'
576: PACKAGE_TARNAME='arping'
577: PACKAGE_VERSION='2.09'
578: PACKAGE_STRING='arping 2.09'
579: PACKAGE_BUGREPORT='thomas@habets.pp.se'
580:
581: ac_unique_file="src/arping.c"
582: # Factoring default headers for most tests.
583: ac_includes_default="\
584: #include <stdio.h>
585: #ifdef HAVE_SYS_TYPES_H
586: # include <sys/types.h>
587: #endif
588: #ifdef HAVE_SYS_STAT_H
589: # include <sys/stat.h>
590: #endif
591: #ifdef STDC_HEADERS
592: # include <stdlib.h>
593: # include <stddef.h>
594: #else
595: # ifdef HAVE_STDLIB_H
596: # include <stdlib.h>
597: # endif
598: #endif
599: #ifdef HAVE_STRING_H
600: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601: # include <memory.h>
602: # endif
603: # include <string.h>
604: #endif
605: #ifdef HAVE_STRINGS_H
606: # include <strings.h>
607: #endif
608: #ifdef HAVE_INTTYPES_H
609: # include <inttypes.h>
610: #endif
611: #ifdef HAVE_STDINT_H
612: # include <stdint.h>
613: #endif
614: #ifdef HAVE_UNISTD_H
615: # include <unistd.h>
616: #endif"
617:
618: ac_subst_vars='SHELL
619: PATH_SEPARATOR
620: PACKAGE_NAME
621: PACKAGE_TARNAME
622: PACKAGE_VERSION
623: PACKAGE_STRING
624: PACKAGE_BUGREPORT
625: exec_prefix
626: prefix
627: program_transform_name
628: bindir
629: sbindir
630: libexecdir
631: datarootdir
632: datadir
633: sysconfdir
634: sharedstatedir
635: localstatedir
636: includedir
637: oldincludedir
638: docdir
639: infodir
640: htmldir
641: dvidir
642: pdfdir
643: psdir
644: libdir
645: localedir
646: mandir
647: DEFS
648: ECHO_C
649: ECHO_N
650: ECHO_T
651: LIBS
652: build_alias
653: host_alias
654: target_alias
655: build
656: build_cpu
657: build_vendor
658: build_os
659: host
660: host_cpu
661: host_vendor
662: host_os
663: target
664: target_cpu
665: target_vendor
666: target_os
667: INSTALL_PROGRAM
668: INSTALL_SCRIPT
669: INSTALL_DATA
670: am__isrc
671: CYGPATH_W
672: PACKAGE
673: VERSION
674: ACLOCAL
675: AUTOCONF
676: AUTOMAKE
677: AUTOHEADER
678: MAKEINFO
679: install_sh
680: STRIP
681: INSTALL_STRIP_PROGRAM
682: mkdir_p
683: AWK
684: SET_MAKE
685: am__leading_dot
686: AMTAR
687: am__tar
688: am__untar
689: MAINTAINER_MODE_TRUE
690: MAINTAINER_MODE_FALSE
691: MAINT
692: CC
693: CFLAGS
694: LDFLAGS
695: CPPFLAGS
696: ac_ct_CC
697: EXEEXT
698: OBJEXT
699: DEPDIR
700: am__include
701: am__quote
702: AMDEP_TRUE
703: AMDEP_FALSE
704: AMDEPBACKSLASH
705: CCDEPMODE
706: am__fastdepCC_TRUE
707: am__fastdepCC_FALSE
708: CPP
709: GREP
710: EGREP
711: LIBOBJS
712: LTLIBOBJS'
713: ac_subst_files=''
714: ac_precious_vars='build_alias
715: host_alias
716: target_alias
717: CC
718: CFLAGS
719: LDFLAGS
720: LIBS
721: CPPFLAGS
722: CPP'
723:
724:
725: # Initialize some variables set by options.
726: ac_init_help=
727: ac_init_version=false
728: # The variables have the same names as the options, with
729: # dashes changed to underlines.
730: cache_file=/dev/null
731: exec_prefix=NONE
732: no_create=
733: no_recursion=
734: prefix=NONE
735: program_prefix=NONE
736: program_suffix=NONE
737: program_transform_name=s,x,x,
738: silent=
739: site=
740: srcdir=
741: verbose=
742: x_includes=NONE
743: x_libraries=NONE
744:
745: # Installation directory options.
746: # These are left unexpanded so users can "make install exec_prefix=/foo"
747: # and all the variables that are supposed to be based on exec_prefix
748: # by default will actually change.
749: # Use braces instead of parens because sh, perl, etc. also accept them.
750: # (The list follows the same order as the GNU Coding Standards.)
751: bindir='${exec_prefix}/bin'
752: sbindir='${exec_prefix}/sbin'
753: libexecdir='${exec_prefix}/libexec'
754: datarootdir='${prefix}/share'
755: datadir='${datarootdir}'
756: sysconfdir='${prefix}/etc'
757: sharedstatedir='${prefix}/com'
758: localstatedir='${prefix}/var'
759: includedir='${prefix}/include'
760: oldincludedir='/usr/include'
761: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
762: infodir='${datarootdir}/info'
763: htmldir='${docdir}'
764: dvidir='${docdir}'
765: pdfdir='${docdir}'
766: psdir='${docdir}'
767: libdir='${exec_prefix}/lib'
768: localedir='${datarootdir}/locale'
769: mandir='${datarootdir}/man'
770:
771: ac_prev=
772: ac_dashdash=
773: for ac_option
774: do
775: # If the previous option needs an argument, assign it.
776: if test -n "$ac_prev"; then
777: eval $ac_prev=\$ac_option
778: ac_prev=
779: continue
780: fi
781:
782: case $ac_option in
783: *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
784: *) ac_optarg=yes ;;
785: esac
786:
787: # Accept the important Cygnus configure options, so we can diagnose typos.
788:
789: case $ac_dashdash$ac_option in
790: --)
791: ac_dashdash=yes ;;
792:
793: -bindir | --bindir | --bindi | --bind | --bin | --bi)
794: ac_prev=bindir ;;
795: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
796: bindir=$ac_optarg ;;
797:
798: -build | --build | --buil | --bui | --bu)
799: ac_prev=build_alias ;;
800: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
801: build_alias=$ac_optarg ;;
802:
803: -cache-file | --cache-file | --cache-fil | --cache-fi \
804: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
805: ac_prev=cache_file ;;
806: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
807: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
808: cache_file=$ac_optarg ;;
809:
810: --config-cache | -C)
811: cache_file=config.cache ;;
812:
813: -datadir | --datadir | --datadi | --datad)
814: ac_prev=datadir ;;
815: -datadir=* | --datadir=* | --datadi=* | --datad=*)
816: datadir=$ac_optarg ;;
817:
818: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
819: | --dataroo | --dataro | --datar)
820: ac_prev=datarootdir ;;
821: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
822: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
823: datarootdir=$ac_optarg ;;
824:
825: -disable-* | --disable-*)
826: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
827: # Reject names that are not valid shell variable names.
828: expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
829: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
830: { (exit 1); exit 1; }; }
831: ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
832: eval enable_$ac_feature=no ;;
833:
834: -docdir | --docdir | --docdi | --doc | --do)
835: ac_prev=docdir ;;
836: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
837: docdir=$ac_optarg ;;
838:
839: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
840: ac_prev=dvidir ;;
841: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
842: dvidir=$ac_optarg ;;
843:
844: -enable-* | --enable-*)
845: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
846: # Reject names that are not valid shell variable names.
847: expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
848: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
849: { (exit 1); exit 1; }; }
850: ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
851: eval enable_$ac_feature=\$ac_optarg ;;
852:
853: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
854: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
855: | --exec | --exe | --ex)
856: ac_prev=exec_prefix ;;
857: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
858: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
859: | --exec=* | --exe=* | --ex=*)
860: exec_prefix=$ac_optarg ;;
861:
862: -gas | --gas | --ga | --g)
863: # Obsolete; use --with-gas.
864: with_gas=yes ;;
865:
866: -help | --help | --hel | --he | -h)
867: ac_init_help=long ;;
868: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
869: ac_init_help=recursive ;;
870: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
871: ac_init_help=short ;;
872:
873: -host | --host | --hos | --ho)
874: ac_prev=host_alias ;;
875: -host=* | --host=* | --hos=* | --ho=*)
876: host_alias=$ac_optarg ;;
877:
878: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
879: ac_prev=htmldir ;;
880: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
881: | --ht=*)
882: htmldir=$ac_optarg ;;
883:
884: -includedir | --includedir | --includedi | --included | --include \
885: | --includ | --inclu | --incl | --inc)
886: ac_prev=includedir ;;
887: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
888: | --includ=* | --inclu=* | --incl=* | --inc=*)
889: includedir=$ac_optarg ;;
890:
891: -infodir | --infodir | --infodi | --infod | --info | --inf)
892: ac_prev=infodir ;;
893: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
894: infodir=$ac_optarg ;;
895:
896: -libdir | --libdir | --libdi | --libd)
897: ac_prev=libdir ;;
898: -libdir=* | --libdir=* | --libdi=* | --libd=*)
899: libdir=$ac_optarg ;;
900:
901: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
902: | --libexe | --libex | --libe)
903: ac_prev=libexecdir ;;
904: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
905: | --libexe=* | --libex=* | --libe=*)
906: libexecdir=$ac_optarg ;;
907:
908: -localedir | --localedir | --localedi | --localed | --locale)
909: ac_prev=localedir ;;
910: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
911: localedir=$ac_optarg ;;
912:
913: -localstatedir | --localstatedir | --localstatedi | --localstated \
914: | --localstate | --localstat | --localsta | --localst | --locals)
915: ac_prev=localstatedir ;;
916: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
917: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
918: localstatedir=$ac_optarg ;;
919:
920: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
921: ac_prev=mandir ;;
922: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
923: mandir=$ac_optarg ;;
924:
925: -nfp | --nfp | --nf)
926: # Obsolete; use --without-fp.
927: with_fp=no ;;
928:
929: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
930: | --no-cr | --no-c | -n)
931: no_create=yes ;;
932:
933: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
934: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
935: no_recursion=yes ;;
936:
937: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
938: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
939: | --oldin | --oldi | --old | --ol | --o)
940: ac_prev=oldincludedir ;;
941: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
942: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
943: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
944: oldincludedir=$ac_optarg ;;
945:
946: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
947: ac_prev=prefix ;;
948: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
949: prefix=$ac_optarg ;;
950:
951: -program-prefix | --program-prefix | --program-prefi | --program-pref \
952: | --program-pre | --program-pr | --program-p)
953: ac_prev=program_prefix ;;
954: -program-prefix=* | --program-prefix=* | --program-prefi=* \
955: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
956: program_prefix=$ac_optarg ;;
957:
958: -program-suffix | --program-suffix | --program-suffi | --program-suff \
959: | --program-suf | --program-su | --program-s)
960: ac_prev=program_suffix ;;
961: -program-suffix=* | --program-suffix=* | --program-suffi=* \
962: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
963: program_suffix=$ac_optarg ;;
964:
965: -program-transform-name | --program-transform-name \
966: | --program-transform-nam | --program-transform-na \
967: | --program-transform-n | --program-transform- \
968: | --program-transform | --program-transfor \
969: | --program-transfo | --program-transf \
970: | --program-trans | --program-tran \
971: | --progr-tra | --program-tr | --program-t)
972: ac_prev=program_transform_name ;;
973: -program-transform-name=* | --program-transform-name=* \
974: | --program-transform-nam=* | --program-transform-na=* \
975: | --program-transform-n=* | --program-transform-=* \
976: | --program-transform=* | --program-transfor=* \
977: | --program-transfo=* | --program-transf=* \
978: | --program-trans=* | --program-tran=* \
979: | --progr-tra=* | --program-tr=* | --program-t=*)
980: program_transform_name=$ac_optarg ;;
981:
982: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
983: ac_prev=pdfdir ;;
984: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
985: pdfdir=$ac_optarg ;;
986:
987: -psdir | --psdir | --psdi | --psd | --ps)
988: ac_prev=psdir ;;
989: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
990: psdir=$ac_optarg ;;
991:
992: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
993: | -silent | --silent | --silen | --sile | --sil)
994: silent=yes ;;
995:
996: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
997: ac_prev=sbindir ;;
998: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
999: | --sbi=* | --sb=*)
1000: sbindir=$ac_optarg ;;
1001:
1002: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1003: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1004: | --sharedst | --shareds | --shared | --share | --shar \
1005: | --sha | --sh)
1006: ac_prev=sharedstatedir ;;
1007: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1008: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1009: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1010: | --sha=* | --sh=*)
1011: sharedstatedir=$ac_optarg ;;
1012:
1013: -site | --site | --sit)
1014: ac_prev=site ;;
1015: -site=* | --site=* | --sit=*)
1016: site=$ac_optarg ;;
1017:
1018: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1019: ac_prev=srcdir ;;
1020: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1021: srcdir=$ac_optarg ;;
1022:
1023: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1024: | --syscon | --sysco | --sysc | --sys | --sy)
1025: ac_prev=sysconfdir ;;
1026: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1027: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1028: sysconfdir=$ac_optarg ;;
1029:
1030: -target | --target | --targe | --targ | --tar | --ta | --t)
1031: ac_prev=target_alias ;;
1032: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1033: target_alias=$ac_optarg ;;
1034:
1035: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1036: verbose=yes ;;
1037:
1038: -version | --version | --versio | --versi | --vers | -V)
1039: ac_init_version=: ;;
1040:
1041: -with-* | --with-*)
1042: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1043: # Reject names that are not valid shell variable names.
1044: expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1045: { echo "$as_me: error: invalid package name: $ac_package" >&2
1046: { (exit 1); exit 1; }; }
1047: ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1048: eval with_$ac_package=\$ac_optarg ;;
1049:
1050: -without-* | --without-*)
1051: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1052: # Reject names that are not valid shell variable names.
1053: expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1054: { echo "$as_me: error: invalid package name: $ac_package" >&2
1055: { (exit 1); exit 1; }; }
1056: ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1057: eval with_$ac_package=no ;;
1058:
1059: --x)
1060: # Obsolete; use --with-x.
1061: with_x=yes ;;
1062:
1063: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1064: | --x-incl | --x-inc | --x-in | --x-i)
1065: ac_prev=x_includes ;;
1066: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1067: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1068: x_includes=$ac_optarg ;;
1069:
1070: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1071: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1072: ac_prev=x_libraries ;;
1073: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1074: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1075: x_libraries=$ac_optarg ;;
1076:
1077: -*) { echo "$as_me: error: unrecognized option: $ac_option
1078: Try \`$0 --help' for more information." >&2
1079: { (exit 1); exit 1; }; }
1080: ;;
1081:
1082: *=*)
1083: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1084: # Reject names that are not valid shell variable names.
1085: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1086: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1087: { (exit 1); exit 1; }; }
1088: eval $ac_envvar=\$ac_optarg
1089: export $ac_envvar ;;
1090:
1091: *)
1092: # FIXME: should be removed in autoconf 3.0.
1093: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1094: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1095: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1096: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1097: ;;
1098:
1099: esac
1100: done
1101:
1102: if test -n "$ac_prev"; then
1103: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1104: { echo "$as_me: error: missing argument to $ac_option" >&2
1105: { (exit 1); exit 1; }; }
1106: fi
1107:
1108: # Be sure to have absolute directory names.
1109: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1110: datadir sysconfdir sharedstatedir localstatedir includedir \
1111: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1112: libdir localedir mandir
1113: do
1114: eval ac_val=\$$ac_var
1115: case $ac_val in
1116: [\\/$]* | ?:[\\/]* ) continue;;
1117: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1118: esac
1119: { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1120: { (exit 1); exit 1; }; }
1121: done
1122:
1123: # There might be people who depend on the old broken behavior: `$host'
1124: # used to hold the argument of --host etc.
1125: # FIXME: To remove some day.
1126: build=$build_alias
1127: host=$host_alias
1128: target=$target_alias
1129:
1130: # FIXME: To remove some day.
1131: if test "x$host_alias" != x; then
1132: if test "x$build_alias" = x; then
1133: cross_compiling=maybe
1134: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1135: If a cross compiler is detected then cross compile mode will be used." >&2
1136: elif test "x$build_alias" != "x$host_alias"; then
1137: cross_compiling=yes
1138: fi
1139: fi
1140:
1141: ac_tool_prefix=
1142: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1143:
1144: test "$silent" = yes && exec 6>/dev/null
1145:
1146:
1147: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1148: ac_ls_di=`ls -di .` &&
1149: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1150: { echo "$as_me: error: Working directory cannot be determined" >&2
1151: { (exit 1); exit 1; }; }
1152: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1153: { echo "$as_me: error: pwd does not report name of working directory" >&2
1154: { (exit 1); exit 1; }; }
1155:
1156:
1157: # Find the source files, if location was not specified.
1158: if test -z "$srcdir"; then
1159: ac_srcdir_defaulted=yes
1160: # Try the directory containing this script, then the parent directory.
1161: ac_confdir=`$as_dirname -- "$0" ||
1162: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1163: X"$0" : 'X\(//\)[^/]' \| \
1164: X"$0" : 'X\(//\)$' \| \
1165: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1166: echo X"$0" |
1167: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1168: s//\1/
1169: q
1170: }
1171: /^X\(\/\/\)[^/].*/{
1172: s//\1/
1173: q
1174: }
1175: /^X\(\/\/\)$/{
1176: s//\1/
1177: q
1178: }
1179: /^X\(\/\).*/{
1180: s//\1/
1181: q
1182: }
1183: s/.*/./; q'`
1184: srcdir=$ac_confdir
1185: if test ! -r "$srcdir/$ac_unique_file"; then
1186: srcdir=..
1187: fi
1188: else
1189: ac_srcdir_defaulted=no
1190: fi
1191: if test ! -r "$srcdir/$ac_unique_file"; then
1192: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1193: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1194: { (exit 1); exit 1; }; }
1195: fi
1196: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1197: ac_abs_confdir=`(
1198: cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1199: { (exit 1); exit 1; }; }
1200: pwd)`
1201: # When building in place, set srcdir=.
1202: if test "$ac_abs_confdir" = "$ac_pwd"; then
1203: srcdir=.
1204: fi
1205: # Remove unnecessary trailing slashes from srcdir.
1206: # Double slashes in file names in object file debugging info
1207: # mess up M-x gdb in Emacs.
1208: case $srcdir in
1209: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1210: esac
1211: for ac_var in $ac_precious_vars; do
1212: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1213: eval ac_env_${ac_var}_value=\$${ac_var}
1214: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1215: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1216: done
1217:
1218: #
1219: # Report the --help message.
1220: #
1221: if test "$ac_init_help" = "long"; then
1222: # Omit some internal or obsolete options to make the list less imposing.
1223: # This message is too long to be a string in the A/UX 3.1 sh.
1224: cat <<_ACEOF
1225: \`configure' configures arping 2.09 to adapt to many kinds of systems.
1226:
1227: Usage: $0 [OPTION]... [VAR=VALUE]...
1228:
1229: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1230: VAR=VALUE. See below for descriptions of some of the useful variables.
1231:
1232: Defaults for the options are specified in brackets.
1233:
1234: Configuration:
1235: -h, --help display this help and exit
1236: --help=short display options specific to this package
1237: --help=recursive display the short help of all the included packages
1238: -V, --version display version information and exit
1239: -q, --quiet, --silent do not print \`checking...' messages
1240: --cache-file=FILE cache test results in FILE [disabled]
1241: -C, --config-cache alias for \`--cache-file=config.cache'
1242: -n, --no-create do not create output files
1243: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1244:
1245: Installation directories:
1246: --prefix=PREFIX install architecture-independent files in PREFIX
1247: [$ac_default_prefix]
1248: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1249: [PREFIX]
1250:
1251: By default, \`make install' will install all the files in
1252: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1253: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1254: for instance \`--prefix=\$HOME'.
1255:
1256: For better control, use the options below.
1257:
1258: Fine tuning of the installation directories:
1259: --bindir=DIR user executables [EPREFIX/bin]
1260: --sbindir=DIR system admin executables [EPREFIX/sbin]
1261: --libexecdir=DIR program executables [EPREFIX/libexec]
1262: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1263: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1264: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1265: --libdir=DIR object code libraries [EPREFIX/lib]
1266: --includedir=DIR C header files [PREFIX/include]
1267: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1268: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1269: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1270: --infodir=DIR info documentation [DATAROOTDIR/info]
1271: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1272: --mandir=DIR man documentation [DATAROOTDIR/man]
1273: --docdir=DIR documentation root [DATAROOTDIR/doc/arping]
1274: --htmldir=DIR html documentation [DOCDIR]
1275: --dvidir=DIR dvi documentation [DOCDIR]
1276: --pdfdir=DIR pdf documentation [DOCDIR]
1277: --psdir=DIR ps documentation [DOCDIR]
1278: _ACEOF
1279:
1280: cat <<\_ACEOF
1281:
1282: Program names:
1283: --program-prefix=PREFIX prepend PREFIX to installed program names
1284: --program-suffix=SUFFIX append SUFFIX to installed program names
1285: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1286:
1287: System types:
1288: --build=BUILD configure for building on BUILD [guessed]
1289: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1290: --target=TARGET configure for building compilers for TARGET [HOST]
1291: _ACEOF
1292: fi
1293:
1294: if test -n "$ac_init_help"; then
1295: case $ac_init_help in
1296: short | recursive ) echo "Configuration of arping 2.09:";;
1297: esac
1298: cat <<\_ACEOF
1299:
1300: Optional Features:
1301: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1302: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1303: --enable-maintainer-mode enable make rules and dependencies not useful
1304: (and sometimes confusing) to the casual installer
1305: --disable-dependency-tracking speeds up one-time build
1306: --enable-dependency-tracking do not reject slow dependency extractors
1307:
1308: Some influential environment variables:
1309: CC C compiler command
1310: CFLAGS C compiler flags
1311: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1312: nonstandard directory <lib dir>
1313: LIBS libraries to pass to the linker, e.g. -l<library>
1314: CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1315: you have headers in a nonstandard directory <include dir>
1316: CPP C preprocessor
1317:
1318: Use these variables to override the choices made by `configure' or to help
1319: it to find libraries and programs with nonstandard names/locations.
1320:
1321: Report bugs to <thomas@habets.pp.se>.
1322: _ACEOF
1323: ac_status=$?
1324: fi
1325:
1326: if test "$ac_init_help" = "recursive"; then
1327: # If there are subdirs, report their specific --help.
1328: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1329: test -d "$ac_dir" || continue
1330: ac_builddir=.
1331:
1332: case "$ac_dir" in
1333: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1334: *)
1335: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1336: # A ".." for each directory in $ac_dir_suffix.
1337: ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1338: case $ac_top_builddir_sub in
1339: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1340: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1341: esac ;;
1342: esac
1343: ac_abs_top_builddir=$ac_pwd
1344: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1345: # for backward compatibility:
1346: ac_top_builddir=$ac_top_build_prefix
1347:
1348: case $srcdir in
1349: .) # We are building in place.
1350: ac_srcdir=.
1351: ac_top_srcdir=$ac_top_builddir_sub
1352: ac_abs_top_srcdir=$ac_pwd ;;
1353: [\\/]* | ?:[\\/]* ) # Absolute name.
1354: ac_srcdir=$srcdir$ac_dir_suffix;
1355: ac_top_srcdir=$srcdir
1356: ac_abs_top_srcdir=$srcdir ;;
1357: *) # Relative name.
1358: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1359: ac_top_srcdir=$ac_top_build_prefix$srcdir
1360: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1361: esac
1362: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1363:
1364: cd "$ac_dir" || { ac_status=$?; continue; }
1365: # Check for guested configure.
1366: if test -f "$ac_srcdir/configure.gnu"; then
1367: echo &&
1368: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1369: elif test -f "$ac_srcdir/configure"; then
1370: echo &&
1371: $SHELL "$ac_srcdir/configure" --help=recursive
1372: else
1373: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1374: fi || ac_status=$?
1375: cd "$ac_pwd" || { ac_status=$?; break; }
1376: done
1377: fi
1378:
1379: test -n "$ac_init_help" && exit $ac_status
1380: if $ac_init_version; then
1381: cat <<\_ACEOF
1382: arping configure 2.09
1383: generated by GNU Autoconf 2.61
1384:
1385: Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1386: 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1387: This configure script is free software; the Free Software Foundation
1388: gives unlimited permission to copy, distribute and modify it.
1389: _ACEOF
1390: exit
1391: fi
1392: cat >config.log <<_ACEOF
1393: This file contains any messages produced by compilers while
1394: running configure, to aid debugging if configure makes a mistake.
1395:
1396: It was created by arping $as_me 2.09, which was
1397: generated by GNU Autoconf 2.61. Invocation command line was
1398:
1399: $ $0 $@
1400:
1401: _ACEOF
1402: exec 5>>config.log
1403: {
1404: cat <<_ASUNAME
1405: ## --------- ##
1406: ## Platform. ##
1407: ## --------- ##
1408:
1409: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1410: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1411: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1412: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1413: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1414:
1415: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1416: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1417:
1418: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1419: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1420: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1421: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1422: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1423: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1424: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1425:
1426: _ASUNAME
1427:
1428: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1429: for as_dir in $PATH
1430: do
1431: IFS=$as_save_IFS
1432: test -z "$as_dir" && as_dir=.
1433: echo "PATH: $as_dir"
1434: done
1435: IFS=$as_save_IFS
1436:
1437: } >&5
1438:
1439: cat >&5 <<_ACEOF
1440:
1441:
1442: ## ----------- ##
1443: ## Core tests. ##
1444: ## ----------- ##
1445:
1446: _ACEOF
1447:
1448:
1449: # Keep a trace of the command line.
1450: # Strip out --no-create and --no-recursion so they do not pile up.
1451: # Strip out --silent because we don't want to record it for future runs.
1452: # Also quote any args containing shell meta-characters.
1453: # Make two passes to allow for proper duplicate-argument suppression.
1454: ac_configure_args=
1455: ac_configure_args0=
1456: ac_configure_args1=
1457: ac_must_keep_next=false
1458: for ac_pass in 1 2
1459: do
1460: for ac_arg
1461: do
1462: case $ac_arg in
1463: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1464: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1465: | -silent | --silent | --silen | --sile | --sil)
1466: continue ;;
1467: *\'*)
1468: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1469: esac
1470: case $ac_pass in
1471: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1472: 2)
1473: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1474: if test $ac_must_keep_next = true; then
1475: ac_must_keep_next=false # Got value, back to normal.
1476: else
1477: case $ac_arg in
1478: *=* | --config-cache | -C | -disable-* | --disable-* \
1479: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1480: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1481: | -with-* | --with-* | -without-* | --without-* | --x)
1482: case "$ac_configure_args0 " in
1483: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1484: esac
1485: ;;
1486: -* ) ac_must_keep_next=true ;;
1487: esac
1488: fi
1489: ac_configure_args="$ac_configure_args '$ac_arg'"
1490: ;;
1491: esac
1492: done
1493: done
1494: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1495: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1496:
1497: # When interrupted or exit'd, cleanup temporary files, and complete
1498: # config.log. We remove comments because anyway the quotes in there
1499: # would cause problems or look ugly.
1500: # WARNING: Use '\'' to represent an apostrophe within the trap.
1501: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1502: trap 'exit_status=$?
1503: # Save into config.log some information that might help in debugging.
1504: {
1505: echo
1506:
1507: cat <<\_ASBOX
1508: ## ---------------- ##
1509: ## Cache variables. ##
1510: ## ---------------- ##
1511: _ASBOX
1512: echo
1513: # The following way of writing the cache mishandles newlines in values,
1514: (
1515: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1516: eval ac_val=\$$ac_var
1517: case $ac_val in #(
1518: *${as_nl}*)
1519: case $ac_var in #(
1520: *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1521: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1522: esac
1523: case $ac_var in #(
1524: _ | IFS | as_nl) ;; #(
1525: *) $as_unset $ac_var ;;
1526: esac ;;
1527: esac
1528: done
1529: (set) 2>&1 |
1530: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1531: *${as_nl}ac_space=\ *)
1532: sed -n \
1533: "s/'\''/'\''\\\\'\'''\''/g;
1534: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1535: ;; #(
1536: *)
1537: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1538: ;;
1539: esac |
1540: sort
1541: )
1542: echo
1543:
1544: cat <<\_ASBOX
1545: ## ----------------- ##
1546: ## Output variables. ##
1547: ## ----------------- ##
1548: _ASBOX
1549: echo
1550: for ac_var in $ac_subst_vars
1551: do
1552: eval ac_val=\$$ac_var
1553: case $ac_val in
1554: *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1555: esac
1556: echo "$ac_var='\''$ac_val'\''"
1557: done | sort
1558: echo
1559:
1560: if test -n "$ac_subst_files"; then
1561: cat <<\_ASBOX
1562: ## ------------------- ##
1563: ## File substitutions. ##
1564: ## ------------------- ##
1565: _ASBOX
1566: echo
1567: for ac_var in $ac_subst_files
1568: do
1569: eval ac_val=\$$ac_var
1570: case $ac_val in
1571: *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1572: esac
1573: echo "$ac_var='\''$ac_val'\''"
1574: done | sort
1575: echo
1576: fi
1577:
1578: if test -s confdefs.h; then
1579: cat <<\_ASBOX
1580: ## ----------- ##
1581: ## confdefs.h. ##
1582: ## ----------- ##
1583: _ASBOX
1584: echo
1585: cat confdefs.h
1586: echo
1587: fi
1588: test "$ac_signal" != 0 &&
1589: echo "$as_me: caught signal $ac_signal"
1590: echo "$as_me: exit $exit_status"
1591: } >&5
1592: rm -f core *.core core.conftest.* &&
1593: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1594: exit $exit_status
1595: ' 0
1596: for ac_signal in 1 2 13 15; do
1597: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1598: done
1599: ac_signal=0
1600:
1601: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1602: rm -f -r conftest* confdefs.h
1603:
1604: # Predefined preprocessor variables.
1605:
1606: cat >>confdefs.h <<_ACEOF
1607: #define PACKAGE_NAME "$PACKAGE_NAME"
1608: _ACEOF
1609:
1610:
1611: cat >>confdefs.h <<_ACEOF
1612: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1613: _ACEOF
1614:
1615:
1616: cat >>confdefs.h <<_ACEOF
1617: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1618: _ACEOF
1619:
1620:
1621: cat >>confdefs.h <<_ACEOF
1622: #define PACKAGE_STRING "$PACKAGE_STRING"
1623: _ACEOF
1624:
1625:
1626: cat >>confdefs.h <<_ACEOF
1627: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1628: _ACEOF
1629:
1630:
1631: # Let the site file select an alternate cache file if it wants to.
1632: # Prefer explicitly selected file to automatically selected ones.
1633: if test -n "$CONFIG_SITE"; then
1634: set x "$CONFIG_SITE"
1635: elif test "x$prefix" != xNONE; then
1636: set x "$prefix/share/config.site" "$prefix/etc/config.site"
1637: else
1638: set x "$ac_default_prefix/share/config.site" \
1639: "$ac_default_prefix/etc/config.site"
1640: fi
1641: shift
1642: for ac_site_file
1643: do
1644: if test -r "$ac_site_file"; then
1645: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1646: echo "$as_me: loading site script $ac_site_file" >&6;}
1647: sed 's/^/| /' "$ac_site_file" >&5
1648: . "$ac_site_file"
1649: fi
1650: done
1651:
1652: if test -r "$cache_file"; then
1653: # Some versions of bash will fail to source /dev/null (special
1654: # files actually), so we avoid doing that.
1655: if test -f "$cache_file"; then
1656: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1657: echo "$as_me: loading cache $cache_file" >&6;}
1658: case $cache_file in
1659: [\\/]* | ?:[\\/]* ) . "$cache_file";;
1660: *) . "./$cache_file";;
1661: esac
1662: fi
1663: else
1664: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1665: echo "$as_me: creating cache $cache_file" >&6;}
1666: >$cache_file
1667: fi
1668:
1669: # Check that the precious variables saved in the cache have kept the same
1670: # value.
1671: ac_cache_corrupted=false
1672: for ac_var in $ac_precious_vars; do
1673: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1674: eval ac_new_set=\$ac_env_${ac_var}_set
1675: eval ac_old_val=\$ac_cv_env_${ac_var}_value
1676: eval ac_new_val=\$ac_env_${ac_var}_value
1677: case $ac_old_set,$ac_new_set in
1678: set,)
1679: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1680: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1681: ac_cache_corrupted=: ;;
1682: ,set)
1683: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1684: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1685: ac_cache_corrupted=: ;;
1686: ,);;
1687: *)
1688: if test "x$ac_old_val" != "x$ac_new_val"; then
1689: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1690: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1691: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1692: echo "$as_me: former value: $ac_old_val" >&2;}
1693: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1694: echo "$as_me: current value: $ac_new_val" >&2;}
1695: ac_cache_corrupted=:
1696: fi;;
1697: esac
1698: # Pass precious variables to config.status.
1699: if test "$ac_new_set" = set; then
1700: case $ac_new_val in
1701: *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1702: *) ac_arg=$ac_var=$ac_new_val ;;
1703: esac
1704: case " $ac_configure_args " in
1705: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1706: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1707: esac
1708: fi
1709: done
1710: if $ac_cache_corrupted; then
1711: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1712: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1713: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1714: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1715: { (exit 1); exit 1; }; }
1716: fi
1717:
1718:
1719:
1720:
1721:
1722:
1723:
1724:
1725:
1726:
1727:
1728:
1729:
1730:
1731:
1732:
1733:
1734:
1735:
1736:
1737:
1738:
1739:
1740:
1741:
1742: ac_ext=c
1743: ac_cpp='$CPP $CPPFLAGS'
1744: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1745: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1746: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1747:
1748:
1749: ac_aux_dir=
1750: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1751: if test -f "$ac_dir/install-sh"; then
1752: ac_aux_dir=$ac_dir
1753: ac_install_sh="$ac_aux_dir/install-sh -c"
1754: break
1755: elif test -f "$ac_dir/install.sh"; then
1756: ac_aux_dir=$ac_dir
1757: ac_install_sh="$ac_aux_dir/install.sh -c"
1758: break
1759: elif test -f "$ac_dir/shtool"; then
1760: ac_aux_dir=$ac_dir
1761: ac_install_sh="$ac_aux_dir/shtool install -c"
1762: break
1763: fi
1764: done
1765: if test -z "$ac_aux_dir"; then
1766: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1767: echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1768: { (exit 1); exit 1; }; }
1769: fi
1770:
1771: # These three variables are undocumented and unsupported,
1772: # and are intended to be withdrawn in a future Autoconf release.
1773: # They can cause serious problems if a builder's source tree is in a directory
1774: # whose full name contains unusual characters.
1775: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1776: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1777: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1778:
1779:
1780: # Make sure we can run config.sub.
1781: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1782: { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1783: echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1784: { (exit 1); exit 1; }; }
1785:
1786: { echo "$as_me:$LINENO: checking build system type" >&5
1787: echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1788: if test "${ac_cv_build+set}" = set; then
1789: echo $ECHO_N "(cached) $ECHO_C" >&6
1790: else
1791: ac_build_alias=$build_alias
1792: test "x$ac_build_alias" = x &&
1793: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1794: test "x$ac_build_alias" = x &&
1795: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1796: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1797: { (exit 1); exit 1; }; }
1798: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1799: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1800: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1801: { (exit 1); exit 1; }; }
1802:
1803: fi
1804: { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1805: echo "${ECHO_T}$ac_cv_build" >&6; }
1806: case $ac_cv_build in
1807: *-*-*) ;;
1808: *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1809: echo "$as_me: error: invalid value of canonical build" >&2;}
1810: { (exit 1); exit 1; }; };;
1811: esac
1812: build=$ac_cv_build
1813: ac_save_IFS=$IFS; IFS='-'
1814: set x $ac_cv_build
1815: shift
1816: build_cpu=$1
1817: build_vendor=$2
1818: shift; shift
1819: # Remember, the first character of IFS is used to create $*,
1820: # except with old shells:
1821: build_os=$*
1822: IFS=$ac_save_IFS
1823: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1824:
1825:
1826: { echo "$as_me:$LINENO: checking host system type" >&5
1827: echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1828: if test "${ac_cv_host+set}" = set; then
1829: echo $ECHO_N "(cached) $ECHO_C" >&6
1830: else
1831: if test "x$host_alias" = x; then
1832: ac_cv_host=$ac_cv_build
1833: else
1834: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1835: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1836: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1837: { (exit 1); exit 1; }; }
1838: fi
1839:
1840: fi
1841: { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1842: echo "${ECHO_T}$ac_cv_host" >&6; }
1843: case $ac_cv_host in
1844: *-*-*) ;;
1845: *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1846: echo "$as_me: error: invalid value of canonical host" >&2;}
1847: { (exit 1); exit 1; }; };;
1848: esac
1849: host=$ac_cv_host
1850: ac_save_IFS=$IFS; IFS='-'
1851: set x $ac_cv_host
1852: shift
1853: host_cpu=$1
1854: host_vendor=$2
1855: shift; shift
1856: # Remember, the first character of IFS is used to create $*,
1857: # except with old shells:
1858: host_os=$*
1859: IFS=$ac_save_IFS
1860: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1861:
1862:
1863: { echo "$as_me:$LINENO: checking target system type" >&5
1864: echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1865: if test "${ac_cv_target+set}" = set; then
1866: echo $ECHO_N "(cached) $ECHO_C" >&6
1867: else
1868: if test "x$target_alias" = x; then
1869: ac_cv_target=$ac_cv_host
1870: else
1871: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1872: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1873: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1874: { (exit 1); exit 1; }; }
1875: fi
1876:
1877: fi
1878: { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1879: echo "${ECHO_T}$ac_cv_target" >&6; }
1880: case $ac_cv_target in
1881: *-*-*) ;;
1882: *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1883: echo "$as_me: error: invalid value of canonical target" >&2;}
1884: { (exit 1); exit 1; }; };;
1885: esac
1886: target=$ac_cv_target
1887: ac_save_IFS=$IFS; IFS='-'
1888: set x $ac_cv_target
1889: shift
1890: target_cpu=$1
1891: target_vendor=$2
1892: shift; shift
1893: # Remember, the first character of IFS is used to create $*,
1894: # except with old shells:
1895: target_os=$*
1896: IFS=$ac_save_IFS
1897: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1898:
1899:
1900: # The aliases save the names the user supplied, while $host etc.
1901: # will get canonicalized.
1902: test -n "$target_alias" &&
1903: test "$program_prefix$program_suffix$program_transform_name" = \
1904: NONENONEs,x,x, &&
1905: program_prefix=${target_alias}-
1906:
1907: am__api_version='1.10'
1908:
1909: # Find a good install program. We prefer a C program (faster),
1910: # so one script is as good as another. But avoid the broken or
1911: # incompatible versions:
1912: # SysV /etc/install, /usr/sbin/install
1913: # SunOS /usr/etc/install
1914: # IRIX /sbin/install
1915: # AIX /bin/install
1916: # AmigaOS /C/install, which installs bootblocks on floppy discs
1917: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1918: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1919: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1920: # OS/2's system install, which has a completely different semantic
1921: # ./install, which can be erroneously created by make from ./install.sh.
1922: { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1923: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1924: if test -z "$INSTALL"; then
1925: if test "${ac_cv_path_install+set}" = set; then
1926: echo $ECHO_N "(cached) $ECHO_C" >&6
1927: else
1928: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929: for as_dir in $PATH
1930: do
1931: IFS=$as_save_IFS
1932: test -z "$as_dir" && as_dir=.
1933: # Account for people who put trailing slashes in PATH elements.
1934: case $as_dir/ in
1935: ./ | .// | /cC/* | \
1936: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1937: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1938: /usr/ucb/* ) ;;
1939: *)
1940: # OSF1 and SCO ODT 3.0 have their own names for install.
1941: # Don't use installbsd from OSF since it installs stuff as root
1942: # by default.
1943: for ac_prog in ginstall scoinst install; do
1944: for ac_exec_ext in '' $ac_executable_extensions; do
1945: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1946: if test $ac_prog = install &&
1947: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1948: # AIX install. It has an incompatible calling convention.
1949: :
1950: elif test $ac_prog = install &&
1951: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1952: # program-specific install script used by HP pwplus--don't use.
1953: :
1954: else
1955: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1956: break 3
1957: fi
1958: fi
1959: done
1960: done
1961: ;;
1962: esac
1963: done
1964: IFS=$as_save_IFS
1965:
1966:
1967: fi
1968: if test "${ac_cv_path_install+set}" = set; then
1969: INSTALL=$ac_cv_path_install
1970: else
1971: # As a last resort, use the slow shell script. Don't cache a
1972: # value for INSTALL within a source directory, because that will
1973: # break other packages using the cache if that directory is
1974: # removed, or if the value is a relative name.
1975: INSTALL=$ac_install_sh
1976: fi
1977: fi
1978: { echo "$as_me:$LINENO: result: $INSTALL" >&5
1979: echo "${ECHO_T}$INSTALL" >&6; }
1980:
1981: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1982: # It thinks the first close brace ends the variable substitution.
1983: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1984:
1985: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1986:
1987: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1988:
1989: { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1990: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1991: # Just in case
1992: sleep 1
1993: echo timestamp > conftest.file
1994: # Do `set' in a subshell so we don't clobber the current shell's
1995: # arguments. Must try -L first in case configure is actually a
1996: # symlink; some systems play weird games with the mod time of symlinks
1997: # (eg FreeBSD returns the mod time of the symlink's containing
1998: # directory).
1999: if (
2000: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2001: if test "$*" = "X"; then
2002: # -L didn't work.
2003: set X `ls -t $srcdir/configure conftest.file`
2004: fi
2005: rm -f conftest.file
2006: if test "$*" != "X $srcdir/configure conftest.file" \
2007: && test "$*" != "X conftest.file $srcdir/configure"; then
2008:
2009: # If neither matched, then we have a broken ls. This can happen
2010: # if, for instance, CONFIG_SHELL is bash and it inherits a
2011: # broken ls alias from the environment. This has actually
2012: # happened. Such a system could not be considered "sane".
2013: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2014: alias in your environment" >&5
2015: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2016: alias in your environment" >&2;}
2017: { (exit 1); exit 1; }; }
2018: fi
2019:
2020: test "$2" = conftest.file
2021: )
2022: then
2023: # Ok.
2024: :
2025: else
2026: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2027: Check your system clock" >&5
2028: echo "$as_me: error: newly created file is older than distributed files!
2029: Check your system clock" >&2;}
2030: { (exit 1); exit 1; }; }
2031: fi
2032: { echo "$as_me:$LINENO: result: yes" >&5
2033: echo "${ECHO_T}yes" >&6; }
2034: test "$program_prefix" != NONE &&
2035: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2036: # Use a double $ so make ignores it.
2037: test "$program_suffix" != NONE &&
2038: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2039: # Double any \ or $. echo might interpret backslashes.
2040: # By default was `s,x,x', remove it if useless.
2041: cat <<\_ACEOF >conftest.sed
2042: s/[\\$]/&&/g;s/;s,x,x,$//
2043: _ACEOF
2044: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2045: rm -f conftest.sed
2046:
2047: # expand $ac_aux_dir to an absolute path
2048: am_aux_dir=`cd $ac_aux_dir && pwd`
2049:
2050: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2051: # Use eval to expand $SHELL
2052: if eval "$MISSING --run true"; then
2053: am_missing_run="$MISSING --run "
2054: else
2055: am_missing_run=
2056: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2057: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2058: fi
2059:
2060: { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2061: echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2062: if test -z "$MKDIR_P"; then
2063: if test "${ac_cv_path_mkdir+set}" = set; then
2064: echo $ECHO_N "(cached) $ECHO_C" >&6
2065: else
2066: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2068: do
2069: IFS=$as_save_IFS
2070: test -z "$as_dir" && as_dir=.
2071: for ac_prog in mkdir gmkdir; do
2072: for ac_exec_ext in '' $ac_executable_extensions; do
2073: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2074: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2075: 'mkdir (GNU coreutils) '* | \
2076: 'mkdir (coreutils) '* | \
2077: 'mkdir (fileutils) '4.1*)
2078: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2079: break 3;;
2080: esac
2081: done
2082: done
2083: done
2084: IFS=$as_save_IFS
2085:
2086: fi
2087:
2088: if test "${ac_cv_path_mkdir+set}" = set; then
2089: MKDIR_P="$ac_cv_path_mkdir -p"
2090: else
2091: # As a last resort, use the slow shell script. Don't cache a
2092: # value for MKDIR_P within a source directory, because that will
2093: # break other packages using the cache if that directory is
2094: # removed, or if the value is a relative name.
2095: test -d ./--version && rmdir ./--version
2096: MKDIR_P="$ac_install_sh -d"
2097: fi
2098: fi
2099: { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2100: echo "${ECHO_T}$MKDIR_P" >&6; }
2101:
2102: mkdir_p="$MKDIR_P"
2103: case $mkdir_p in
2104: [\\/$]* | ?:[\\/]*) ;;
2105: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2106: esac
2107:
2108: for ac_prog in gawk mawk nawk awk
2109: do
2110: # Extract the first word of "$ac_prog", so it can be a program name with args.
2111: set dummy $ac_prog; ac_word=$2
2112: { echo "$as_me:$LINENO: checking for $ac_word" >&5
2113: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2114: if test "${ac_cv_prog_AWK+set}" = set; then
2115: echo $ECHO_N "(cached) $ECHO_C" >&6
2116: else
2117: if test -n "$AWK"; then
2118: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2119: else
2120: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121: for as_dir in $PATH
2122: do
2123: IFS=$as_save_IFS
2124: test -z "$as_dir" && as_dir=.
2125: for ac_exec_ext in '' $ac_executable_extensions; do
2126: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2127: ac_cv_prog_AWK="$ac_prog"
2128: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129: break 2
2130: fi
2131: done
2132: done
2133: IFS=$as_save_IFS
2134:
2135: fi
2136: fi
2137: AWK=$ac_cv_prog_AWK
2138: if test -n "$AWK"; then
2139: { echo "$as_me:$LINENO: result: $AWK" >&5
2140: echo "${ECHO_T}$AWK" >&6; }
2141: else
2142: { echo "$as_me:$LINENO: result: no" >&5
2143: echo "${ECHO_T}no" >&6; }
2144: fi
2145:
2146:
2147: test -n "$AWK" && break
2148: done
2149:
2150: { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2151: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2152: set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2153: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2154: echo $ECHO_N "(cached) $ECHO_C" >&6
2155: else
2156: cat >conftest.make <<\_ACEOF
2157: SHELL = /bin/sh
2158: all:
2159: @echo '@@@%%%=$(MAKE)=@@@%%%'
2160: _ACEOF
2161: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2162: case `${MAKE-make} -f conftest.make 2>/dev/null` in
2163: *@@@%%%=?*=@@@%%%*)
2164: eval ac_cv_prog_make_${ac_make}_set=yes;;
2165: *)
2166: eval ac_cv_prog_make_${ac_make}_set=no;;
2167: esac
2168: rm -f conftest.make
2169: fi
2170: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2171: { echo "$as_me:$LINENO: result: yes" >&5
2172: echo "${ECHO_T}yes" >&6; }
2173: SET_MAKE=
2174: else
2175: { echo "$as_me:$LINENO: result: no" >&5
2176: echo "${ECHO_T}no" >&6; }
2177: SET_MAKE="MAKE=${MAKE-make}"
2178: fi
2179:
2180: rm -rf .tst 2>/dev/null
2181: mkdir .tst 2>/dev/null
2182: if test -d .tst; then
2183: am__leading_dot=.
2184: else
2185: am__leading_dot=_
2186: fi
2187: rmdir .tst 2>/dev/null
2188:
2189: if test "`cd $srcdir && pwd`" != "`pwd`"; then
2190: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2191: # is not polluted with repeated "-I."
2192: am__isrc=' -I$(srcdir)'
2193: # test to see if srcdir already configured
2194: if test -f $srcdir/config.status; then
2195: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2196: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2197: { (exit 1); exit 1; }; }
2198: fi
2199: fi
2200:
2201: # test whether we have cygpath
2202: if test -z "$CYGPATH_W"; then
2203: if (cygpath --version) >/dev/null 2>/dev/null; then
2204: CYGPATH_W='cygpath -w'
2205: else
2206: CYGPATH_W=echo
2207: fi
2208: fi
2209:
2210:
2211: # Define the identity of the package.
2212: PACKAGE='arping'
2213: VERSION='2.09'
2214:
2215:
2216: cat >>confdefs.h <<_ACEOF
2217: #define PACKAGE "$PACKAGE"
2218: _ACEOF
2219:
2220:
2221: cat >>confdefs.h <<_ACEOF
2222: #define VERSION "$VERSION"
2223: _ACEOF
2224:
2225: # Some tools Automake needs.
2226:
2227: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2228:
2229:
2230: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2231:
2232:
2233: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2234:
2235:
2236: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2237:
2238:
2239: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2240:
2241: install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2242:
2243: # Installed binaries are usually stripped using `strip' when the user
2244: # run `make install-strip'. However `strip' might not be the right
2245: # tool to use in cross-compilation environments, therefore Automake
2246: # will honor the `STRIP' environment variable to overrule this program.
2247: if test "$cross_compiling" != no; then
2248: if test -n "$ac_tool_prefix"; then
2249: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2250: set dummy ${ac_tool_prefix}strip; ac_word=$2
2251: { echo "$as_me:$LINENO: checking for $ac_word" >&5
2252: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2253: if test "${ac_cv_prog_STRIP+set}" = set; then
2254: echo $ECHO_N "(cached) $ECHO_C" >&6
2255: else
2256: if test -n "$STRIP"; then
2257: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2258: else
2259: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260: for as_dir in $PATH
2261: do
2262: IFS=$as_save_IFS
2263: test -z "$as_dir" && as_dir=.
2264: for ac_exec_ext in '' $ac_executable_extensions; do
2265: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2266: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2267: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268: break 2
2269: fi
2270: done
2271: done
2272: IFS=$as_save_IFS
2273:
2274: fi
2275: fi
2276: STRIP=$ac_cv_prog_STRIP
2277: if test -n "$STRIP"; then
2278: { echo "$as_me:$LINENO: result: $STRIP" >&5
2279: echo "${ECHO_T}$STRIP" >&6; }
2280: else
2281: { echo "$as_me:$LINENO: result: no" >&5
2282: echo "${ECHO_T}no" >&6; }
2283: fi
2284:
2285:
2286: fi
2287: if test -z "$ac_cv_prog_STRIP"; then
2288: ac_ct_STRIP=$STRIP
2289: # Extract the first word of "strip", so it can be a program name with args.
2290: set dummy strip; ac_word=$2
2291: { echo "$as_me:$LINENO: checking for $ac_word" >&5
2292: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2293: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2294: echo $ECHO_N "(cached) $ECHO_C" >&6
2295: else
2296: if test -n "$ac_ct_STRIP"; then
2297: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2298: else
2299: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300: for as_dir in $PATH
2301: do
2302: IFS=$as_save_IFS
2303: test -z "$as_dir" && as_dir=.
2304: for ac_exec_ext in '' $ac_executable_extensions; do
2305: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2306: ac_cv_prog_ac_ct_STRIP="strip"
2307: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2308: break 2
2309: fi
2310: done
2311: done
2312: IFS=$as_save_IFS
2313:
2314: fi
2315: fi
2316: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2317: if test -n "$ac_ct_STRIP"; then
2318: { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2319: echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2320: else
2321: { echo "$as_me:$LINENO: result: no" >&5
2322: echo "${ECHO_T}no" >&6; }
2323: fi
2324:
2325: if test "x$ac_ct_STRIP" = x; then
2326: STRIP=":"
2327: else
2328: case $cross_compiling:$ac_tool_warned in
2329: yes:)
2330: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2331: whose name does not start with the host triplet. If you think this
2332: configuration is useful to you, please write to autoconf@gnu.org." >&5
2333: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2334: whose name does not start with the host triplet. If you think this
2335: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2336: ac_tool_warned=yes ;;
2337: esac
2338: STRIP=$ac_ct_STRIP
2339: fi
2340: else
2341: STRIP="$ac_cv_prog_STRIP"
2342: fi
2343:
2344: fi
2345: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2346:
2347: # We need awk for the "check" target. The system "awk" is bad on
2348: # some platforms.
2349: # Always define AMTAR for backward compatibility.
2350:
2351: AMTAR=${AMTAR-"${am_missing_run}tar"}
2352:
2353: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2354:
2355:
2356:
2357:
2358:
2359: { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2360: echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2361: # Check whether --enable-maintainer-mode was given.
2362: if test "${enable_maintainer_mode+set}" = set; then
2363: enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2364: else
2365: USE_MAINTAINER_MODE=no
2366: fi
2367:
2368: { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2369: echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2370: if test $USE_MAINTAINER_MODE = yes; then
2371: MAINTAINER_MODE_TRUE=
2372: MAINTAINER_MODE_FALSE='#'
2373: else
2374: MAINTAINER_MODE_TRUE='#'
2375: MAINTAINER_MODE_FALSE=
2376: fi
2377:
2378: MAINT=$MAINTAINER_MODE_TRUE
2379:
2380:
2381: ac_config_headers="$ac_config_headers config.h"
2382:
2383:
2384:
2385: # Checks for programs.
2386: ac_ext=c
2387: ac_cpp='$CPP $CPPFLAGS'
2388: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2391: if test -n "$ac_tool_prefix"; then
2392: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2393: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2394: { echo "$as_me:$LINENO: checking for $ac_word" >&5
2395: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2396: if test "${ac_cv_prog_CC+set}" = set; then
2397: echo $ECHO_N "(cached) $ECHO_C" >&6
2398: else
2399: if test -n "$CC"; then
2400: ac_cv_prog_CC="$CC" # Let the user override the test.
2401: else
2402: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403: for as_dir in $PATH
2404: do
2405: IFS=$as_save_IFS
2406: test -z "$as_dir" && as_dir=.
2407: for ac_exec_ext in '' $ac_executable_extensions; do
2408: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2409: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2410: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411: break 2
2412: fi
2413: done
2414: done
2415: IFS=$as_save_IFS
2416:
2417: fi
2418: fi
2419: CC=$ac_cv_prog_CC
2420: if test -n "$CC"; then
2421: { echo "$as_me:$LINENO: result: $CC" >&5
2422: echo "${ECHO_T}$CC" >&6; }
2423: else
2424: { echo "$as_me:$LINENO: result: no" >&5
2425: echo "${ECHO_T}no" >&6; }
2426: fi
2427:
2428:
2429: fi
2430: if test -z "$ac_cv_prog_CC"; then
2431: ac_ct_CC=$CC
2432: # Extract the first word of "gcc", so it can be a program name with args.
2433: set dummy gcc; ac_word=$2
2434: { echo "$as_me:$LINENO: checking for $ac_word" >&5
2435: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2436: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2437: echo $ECHO_N "(cached) $ECHO_C" >&6
2438: else
2439: if test -n "$ac_ct_CC"; then
2440: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2441: else
2442: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443: for as_dir in $PATH
2444: do
2445: IFS=$as_save_IFS
2446: test -z "$as_dir" && as_dir=.
2447: for ac_exec_ext in '' $ac_executable_extensions; do
2448: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2449: ac_cv_prog_ac_ct_CC="gcc"
2450: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451: break 2
2452: fi
2453: done
2454: done
2455: IFS=$as_save_IFS
2456:
2457: fi
2458: fi
2459: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2460: if test -n "$ac_ct_CC"; then
2461: { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2462: echo "${ECHO_T}$ac_ct_CC" >&6; }
2463: else
2464: { echo "$as_me:$LINENO: result: no" >&5
2465: echo "${ECHO_T}no" >&6; }
2466: fi
2467:
2468: if test "x$ac_ct_CC" = x; then
2469: CC=""
2470: else
2471: case $cross_compiling:$ac_tool_warned in
2472: yes:)
2473: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2474: whose name does not start with the host triplet. If you think this
2475: configuration is useful to you, please write to autoconf@gnu.org." >&5
2476: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2477: whose name does not start with the host triplet. If you think this
2478: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2479: ac_tool_warned=yes ;;
2480: esac
2481: CC=$ac_ct_CC
2482: fi
2483: else
2484: CC="$ac_cv_prog_CC"
2485: fi
2486:
2487: if test -z "$CC"; then
2488: if test -n "$ac_tool_prefix"; then
2489: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2490: set dummy ${ac_tool_prefix}cc; ac_word=$2
2491: { echo "$as_me:$LINENO: checking for $ac_word" >&5
2492: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2493: if test "${ac_cv_prog_CC+set}" = set; then
2494: echo $ECHO_N "(cached) $ECHO_C" >&6
2495: else
2496: if test -n "$CC"; then
2497: ac_cv_prog_CC="$CC" # Let the user override the test.
2498: else
2499: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500: for as_dir in $PATH
2501: do
2502: IFS=$as_save_IFS
2503: test -z "$as_dir" && as_dir=.
2504: for ac_exec_ext in '' $ac_executable_extensions; do
2505: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2506: ac_cv_prog_CC="${ac_tool_prefix}cc"
2507: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2508: break 2
2509: fi
2510: done
2511: done
2512: IFS=$as_save_IFS
2513:
2514: fi
2515: fi
2516: CC=$ac_cv_prog_CC
2517: if test -n "$CC"; then
2518: { echo "$as_me:$LINENO: result: $CC" >&5
2519: echo "${ECHO_T}$CC" >&6; }
2520: else
2521: { echo "$as_me:$LINENO: result: no" >&5
2522: echo "${ECHO_T}no" >&6; }
2523: fi
2524:
2525:
2526: fi
2527: fi
2528: if test -z "$CC"; then
2529: # Extract the first word of "cc", so it can be a program name with args.
2530: set dummy cc; ac_word=$2
2531: { echo "$as_me:$LINENO: checking for $ac_word" >&5
2532: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2533: if test "${ac_cv_prog_CC+set}" = set; then
2534: echo $ECHO_N "(cached) $ECHO_C" >&6
2535: else
2536: if test -n "$CC"; then
2537: ac_cv_prog_CC="$CC" # Let the user override the test.
2538: else
2539: ac_prog_rejected=no
2540: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541: for as_dir in $PATH
2542: do
2543: IFS=$as_save_IFS
2544: test -z "$as_dir" && as_dir=.
2545: for ac_exec_ext in '' $ac_executable_extensions; do
2546: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2547: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2548: ac_prog_rejected=yes
2549: continue
2550: fi
2551: ac_cv_prog_CC="cc"
2552: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2553: break 2
2554: fi
2555: done
2556: done
2557: IFS=$as_save_IFS
2558:
2559: if test $ac_prog_rejected = yes; then
2560: # We found a bogon in the path, so make sure we never use it.
2561: set dummy $ac_cv_prog_CC
2562: shift
2563: if test $# != 0; then
2564: # We chose a different compiler from the bogus one.
2565: # However, it has the same basename, so the bogon will be chosen
2566: # first if we set CC to just the basename; use the full file name.
2567: shift
2568: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2569: fi
2570: fi
2571: fi
2572: fi
2573: CC=$ac_cv_prog_CC
2574: if test -n "$CC"; then
2575: { echo "$as_me:$LINENO: result: $CC" >&5
2576: echo "${ECHO_T}$CC" >&6; }
2577: else
2578: { echo "$as_me:$LINENO: result: no" >&5
2579: echo "${ECHO_T}no" >&6; }
2580: fi
2581:
2582:
2583: fi
2584: if test -z "$CC"; then
2585: if test -n "$ac_tool_prefix"; then
2586: for ac_prog in cl.exe
2587: do
2588: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2589: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2590: { echo "$as_me:$LINENO: checking for $ac_word" >&5
2591: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2592: if test "${ac_cv_prog_CC+set}" = set; then
2593: echo $ECHO_N "(cached) $ECHO_C" >&6
2594: else
2595: if test -n "$CC"; then
2596: ac_cv_prog_CC="$CC" # Let the user override the test.
2597: else
2598: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599: for as_dir in $PATH
2600: do
2601: IFS=$as_save_IFS
2602: test -z "$as_dir" && as_dir=.
2603: for ac_exec_ext in '' $ac_executable_extensions; do
2604: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2605: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2606: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2607: break 2
2608: fi
2609: done
2610: done
2611: IFS=$as_save_IFS
2612:
2613: fi
2614: fi
2615: CC=$ac_cv_prog_CC
2616: if test -n "$CC"; then
2617: { echo "$as_me:$LINENO: result: $CC" >&5
2618: echo "${ECHO_T}$CC" >&6; }
2619: else
2620: { echo "$as_me:$LINENO: result: no" >&5
2621: echo "${ECHO_T}no" >&6; }
2622: fi
2623:
2624:
2625: test -n "$CC" && break
2626: done
2627: fi
2628: if test -z "$CC"; then
2629: ac_ct_CC=$CC
2630: for ac_prog in cl.exe
2631: do
2632: # Extract the first word of "$ac_prog", so it can be a program name with args.
2633: set dummy $ac_prog; ac_word=$2
2634: { echo "$as_me:$LINENO: checking for $ac_word" >&5
2635: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2637: echo $ECHO_N "(cached) $ECHO_C" >&6
2638: else
2639: if test -n "$ac_ct_CC"; then
2640: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2641: else
2642: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643: for as_dir in $PATH
2644: do
2645: IFS=$as_save_IFS
2646: test -z "$as_dir" && as_dir=.
2647: for ac_exec_ext in '' $ac_executable_extensions; do
2648: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2649: ac_cv_prog_ac_ct_CC="$ac_prog"
2650: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651: break 2
2652: fi
2653: done
2654: done
2655: IFS=$as_save_IFS
2656:
2657: fi
2658: fi
2659: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2660: if test -n "$ac_ct_CC"; then
2661: { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2662: echo "${ECHO_T}$ac_ct_CC" >&6; }
2663: else
2664: { echo "$as_me:$LINENO: result: no" >&5
2665: echo "${ECHO_T}no" >&6; }
2666: fi
2667:
2668:
2669: test -n "$ac_ct_CC" && break
2670: done
2671:
2672: if test "x$ac_ct_CC" = x; then
2673: CC=""
2674: else
2675: case $cross_compiling:$ac_tool_warned in
2676: yes:)
2677: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2678: whose name does not start with the host triplet. If you think this
2679: configuration is useful to you, please write to autoconf@gnu.org." >&5
2680: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2681: whose name does not start with the host triplet. If you think this
2682: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2683: ac_tool_warned=yes ;;
2684: esac
2685: CC=$ac_ct_CC
2686: fi
2687: fi
2688:
2689: fi
2690:
2691:
2692: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2693: See \`config.log' for more details." >&5
2694: echo "$as_me: error: no acceptable C compiler found in \$PATH
2695: See \`config.log' for more details." >&2;}
2696: { (exit 1); exit 1; }; }
2697:
2698: # Provide some information about the compiler.
2699: echo "$as_me:$LINENO: checking for C compiler version" >&5
2700: ac_compiler=`set X $ac_compile; echo $2`
2701: { (ac_try="$ac_compiler --version >&5"
2702: case "(($ac_try" in
2703: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704: *) ac_try_echo=$ac_try;;
2705: esac
2706: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707: (eval "$ac_compiler --version >&5") 2>&5
2708: ac_status=$?
2709: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710: (exit $ac_status); }
2711: { (ac_try="$ac_compiler -v >&5"
2712: case "(($ac_try" in
2713: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714: *) ac_try_echo=$ac_try;;
2715: esac
2716: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717: (eval "$ac_compiler -v >&5") 2>&5
2718: ac_status=$?
2719: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720: (exit $ac_status); }
2721: { (ac_try="$ac_compiler -V >&5"
2722: case "(($ac_try" in
2723: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724: *) ac_try_echo=$ac_try;;
2725: esac
2726: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727: (eval "$ac_compiler -V >&5") 2>&5
2728: ac_status=$?
2729: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730: (exit $ac_status); }
2731:
2732: cat >conftest.$ac_ext <<_ACEOF
2733: /* confdefs.h. */
2734: _ACEOF
2735: cat confdefs.h >>conftest.$ac_ext
2736: cat >>conftest.$ac_ext <<_ACEOF
2737: /* end confdefs.h. */
2738:
2739: int
2740: main ()
2741: {
2742:
2743: ;
2744: return 0;
2745: }
2746: _ACEOF
2747: ac_clean_files_save=$ac_clean_files
2748: ac_clean_files="$ac_clean_files a.out a.exe b.out"
2749: # Try to create an executable without -o first, disregard a.out.
2750: # It will help us diagnose broken compilers, and finding out an intuition
2751: # of exeext.
2752: { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2753: echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2754: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2755: #
2756: # List of possible output files, starting from the most likely.
2757: # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2758: # only as a last resort. b.out is created by i960 compilers.
2759: ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2760: #
2761: # The IRIX 6 linker writes into existing files which may not be
2762: # executable, retaining their permissions. Remove them first so a
2763: # subsequent execution test works.
2764: ac_rmfiles=
2765: for ac_file in $ac_files
2766: do
2767: case $ac_file in
2768: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2769: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2770: esac
2771: done
2772: rm -f $ac_rmfiles
2773:
2774: if { (ac_try="$ac_link_default"
2775: case "(($ac_try" in
2776: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777: *) ac_try_echo=$ac_try;;
2778: esac
2779: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780: (eval "$ac_link_default") 2>&5
2781: ac_status=$?
2782: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783: (exit $ac_status); }; then
2784: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2785: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2786: # in a Makefile. We should not override ac_cv_exeext if it was cached,
2787: # so that the user can short-circuit this test for compilers unknown to
2788: # Autoconf.
2789: for ac_file in $ac_files ''
2790: do
2791: test -f "$ac_file" || continue
2792: case $ac_file in
2793: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2794: ;;
2795: [ab].out )
2796: # We found the default executable, but exeext='' is most
2797: # certainly right.
2798: break;;
2799: *.* )
2800: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2801: then :; else
2802: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2803: fi
2804: # We set ac_cv_exeext here because the later test for it is not
2805: # safe: cross compilers may not add the suffix if given an `-o'
2806: # argument, so we may need to know it at that point already.
2807: # Even if this section looks crufty: it has the advantage of
2808: # actually working.
2809: break;;
2810: * )
2811: break;;
2812: esac
2813: done
2814: test "$ac_cv_exeext" = no && ac_cv_exeext=
2815:
2816: else
2817: ac_file=''
2818: fi
2819:
2820: { echo "$as_me:$LINENO: result: $ac_file" >&5
2821: echo "${ECHO_T}$ac_file" >&6; }
2822: if test -z "$ac_file"; then
2823: echo "$as_me: failed program was:" >&5
2824: sed 's/^/| /' conftest.$ac_ext >&5
2825:
2826: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2827: See \`config.log' for more details." >&5
2828: echo "$as_me: error: C compiler cannot create executables
2829: See \`config.log' for more details." >&2;}
2830: { (exit 77); exit 77; }; }
2831: fi
2832:
2833: ac_exeext=$ac_cv_exeext
2834:
2835: # Check that the compiler produces executables we can run. If not, either
2836: # the compiler is broken, or we cross compile.
2837: { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2838: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2839: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2840: # If not cross compiling, check that we can run a simple program.
2841: if test "$cross_compiling" != yes; then
2842: if { ac_try='./$ac_file'
2843: { (case "(($ac_try" in
2844: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845: *) ac_try_echo=$ac_try;;
2846: esac
2847: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2848: (eval "$ac_try") 2>&5
2849: ac_status=$?
2850: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851: (exit $ac_status); }; }; then
2852: cross_compiling=no
2853: else
2854: if test "$cross_compiling" = maybe; then
2855: cross_compiling=yes
2856: else
2857: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2858: If you meant to cross compile, use \`--host'.
2859: See \`config.log' for more details." >&5
2860: echo "$as_me: error: cannot run C compiled programs.
2861: If you meant to cross compile, use \`--host'.
2862: See \`config.log' for more details." >&2;}
2863: { (exit 1); exit 1; }; }
2864: fi
2865: fi
2866: fi
2867: { echo "$as_me:$LINENO: result: yes" >&5
2868: echo "${ECHO_T}yes" >&6; }
2869:
2870: rm -f a.out a.exe conftest$ac_cv_exeext b.out
2871: ac_clean_files=$ac_clean_files_save
2872: # Check that the compiler produces executables we can run. If not, either
2873: # the compiler is broken, or we cross compile.
2874: { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2875: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2876: { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2877: echo "${ECHO_T}$cross_compiling" >&6; }
2878:
2879: { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2880: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2881: if { (ac_try="$ac_link"
2882: case "(($ac_try" in
2883: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884: *) ac_try_echo=$ac_try;;
2885: esac
2886: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887: (eval "$ac_link") 2>&5
2888: ac_status=$?
2889: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890: (exit $ac_status); }; then
2891: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2892: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2893: # work properly (i.e., refer to `conftest.exe'), while it won't with
2894: # `rm'.
2895: for ac_file in conftest.exe conftest conftest.*; do
2896: test -f "$ac_file" || continue
2897: case $ac_file in
2898: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2899: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2900: break;;
2901: * ) break;;
2902: esac
2903: done
2904: else
2905: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2906: See \`config.log' for more details." >&5
2907: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2908: See \`config.log' for more details." >&2;}
2909: { (exit 1); exit 1; }; }
2910: fi
2911:
2912: rm -f conftest$ac_cv_exeext
2913: { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2914: echo "${ECHO_T}$ac_cv_exeext" >&6; }
2915:
2916: rm -f conftest.$ac_ext
2917: EXEEXT=$ac_cv_exeext
2918: ac_exeext=$EXEEXT
2919: { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2920: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2921: if test "${ac_cv_objext+set}" = set; then
2922: echo $ECHO_N "(cached) $ECHO_C" >&6
2923: else
2924: cat >conftest.$ac_ext <<_ACEOF
2925: /* confdefs.h. */
2926: _ACEOF
2927: cat confdefs.h >>conftest.$ac_ext
2928: cat >>conftest.$ac_ext <<_ACEOF
2929: /* end confdefs.h. */
2930:
2931: int
2932: main ()
2933: {
2934:
2935: ;
2936: return 0;
2937: }
2938: _ACEOF
2939: rm -f conftest.o conftest.obj
2940: if { (ac_try="$ac_compile"
2941: case "(($ac_try" in
2942: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943: *) ac_try_echo=$ac_try;;
2944: esac
2945: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946: (eval "$ac_compile") 2>&5
2947: ac_status=$?
2948: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949: (exit $ac_status); }; then
2950: for ac_file in conftest.o conftest.obj conftest.*; do
2951: test -f "$ac_file" || continue;
2952: case $ac_file in
2953: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2954: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2955: break;;
2956: esac
2957: done
2958: else
2959: echo "$as_me: failed program was:" >&5
2960: sed 's/^/| /' conftest.$ac_ext >&5
2961:
2962: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2963: See \`config.log' for more details." >&5
2964: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2965: See \`config.log' for more details." >&2;}
2966: { (exit 1); exit 1; }; }
2967: fi
2968:
2969: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2970: fi
2971: { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2972: echo "${ECHO_T}$ac_cv_objext" >&6; }
2973: OBJEXT=$ac_cv_objext
2974: ac_objext=$OBJEXT
2975: { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2976: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2977: if test "${ac_cv_c_compiler_gnu+set}" = set; then
2978: echo $ECHO_N "(cached) $ECHO_C" >&6
2979: else
2980: cat >conftest.$ac_ext <<_ACEOF
2981: /* confdefs.h. */
2982: _ACEOF
2983: cat confdefs.h >>conftest.$ac_ext
2984: cat >>conftest.$ac_ext <<_ACEOF
2985: /* end confdefs.h. */
2986:
2987: int
2988: main ()
2989: {
2990: #ifndef __GNUC__
2991: choke me
2992: #endif
2993:
2994: ;
2995: return 0;
2996: }
2997: _ACEOF
2998: rm -f conftest.$ac_objext
2999: if { (ac_try="$ac_compile"
3000: case "(($ac_try" in
3001: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002: *) ac_try_echo=$ac_try;;
3003: esac
3004: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3005: (eval "$ac_compile") 2>conftest.er1
3006: ac_status=$?
3007: grep -v '^ *+' conftest.er1 >conftest.err
3008: rm -f conftest.er1
3009: cat conftest.err >&5
3010: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011: (exit $ac_status); } && {
3012: test -z "$ac_c_werror_flag" ||
3013: test ! -s conftest.err
3014: } && test -s conftest.$ac_objext; then
3015: ac_compiler_gnu=yes
3016: else
3017: echo "$as_me: failed program was:" >&5
3018: sed 's/^/| /' conftest.$ac_ext >&5
3019:
3020: ac_compiler_gnu=no
3021: fi
3022:
3023: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3024: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3025:
3026: fi
3027: { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3028: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3029: GCC=`test $ac_compiler_gnu = yes && echo yes`
3030: ac_test_CFLAGS=${CFLAGS+set}
3031: ac_save_CFLAGS=$CFLAGS
3032: { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3033: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3034: if test "${ac_cv_prog_cc_g+set}" = set; then
3035: echo $ECHO_N "(cached) $ECHO_C" >&6
3036: else
3037: ac_save_c_werror_flag=$ac_c_werror_flag
3038: ac_c_werror_flag=yes
3039: ac_cv_prog_cc_g=no
3040: CFLAGS="-g"
3041: cat >conftest.$ac_ext <<_ACEOF
3042: /* confdefs.h. */
3043: _ACEOF
3044: cat confdefs.h >>conftest.$ac_ext
3045: cat >>conftest.$ac_ext <<_ACEOF
3046: /* end confdefs.h. */
3047:
3048: int
3049: main ()
3050: {
3051:
3052: ;
3053: return 0;
3054: }
3055: _ACEOF
3056: rm -f conftest.$ac_objext
3057: if { (ac_try="$ac_compile"
3058: case "(($ac_try" in
3059: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060: *) ac_try_echo=$ac_try;;
3061: esac
3062: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063: (eval "$ac_compile") 2>conftest.er1
3064: ac_status=$?
3065: grep -v '^ *+' conftest.er1 >conftest.err
3066: rm -f conftest.er1
3067: cat conftest.err >&5
3068: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069: (exit $ac_status); } && {
3070: test -z "$ac_c_werror_flag" ||
3071: test ! -s conftest.err
3072: } && test -s conftest.$ac_objext; then
3073: ac_cv_prog_cc_g=yes
3074: else
3075: echo "$as_me: failed program was:" >&5
3076: sed 's/^/| /' conftest.$ac_ext >&5
3077:
3078: CFLAGS=""
3079: cat >conftest.$ac_ext <<_ACEOF
3080: /* confdefs.h. */
3081: _ACEOF
3082: cat confdefs.h >>conftest.$ac_ext
3083: cat >>conftest.$ac_ext <<_ACEOF
3084: /* end confdefs.h. */
3085:
3086: int
3087: main ()
3088: {
3089:
3090: ;
3091: return 0;
3092: }
3093: _ACEOF
3094: rm -f conftest.$ac_objext
3095: if { (ac_try="$ac_compile"
3096: case "(($ac_try" in
3097: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098: *) ac_try_echo=$ac_try;;
3099: esac
3100: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101: (eval "$ac_compile") 2>conftest.er1
3102: ac_status=$?
3103: grep -v '^ *+' conftest.er1 >conftest.err
3104: rm -f conftest.er1
3105: cat conftest.err >&5
3106: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107: (exit $ac_status); } && {
3108: test -z "$ac_c_werror_flag" ||
3109: test ! -s conftest.err
3110: } && test -s conftest.$ac_objext; then
3111: :
3112: else
3113: echo "$as_me: failed program was:" >&5
3114: sed 's/^/| /' conftest.$ac_ext >&5
3115:
3116: ac_c_werror_flag=$ac_save_c_werror_flag
3117: CFLAGS="-g"
3118: cat >conftest.$ac_ext <<_ACEOF
3119: /* confdefs.h. */
3120: _ACEOF
3121: cat confdefs.h >>conftest.$ac_ext
3122: cat >>conftest.$ac_ext <<_ACEOF
3123: /* end confdefs.h. */
3124:
3125: int
3126: main ()
3127: {
3128:
3129: ;
3130: return 0;
3131: }
3132: _ACEOF
3133: rm -f conftest.$ac_objext
3134: if { (ac_try="$ac_compile"
3135: case "(($ac_try" in
3136: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137: *) ac_try_echo=$ac_try;;
3138: esac
3139: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140: (eval "$ac_compile") 2>conftest.er1
3141: ac_status=$?
3142: grep -v '^ *+' conftest.er1 >conftest.err
3143: rm -f conftest.er1
3144: cat conftest.err >&5
3145: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146: (exit $ac_status); } && {
3147: test -z "$ac_c_werror_flag" ||
3148: test ! -s conftest.err
3149: } && test -s conftest.$ac_objext; then
3150: ac_cv_prog_cc_g=yes
3151: else
3152: echo "$as_me: failed program was:" >&5
3153: sed 's/^/| /' conftest.$ac_ext >&5
3154:
3155:
3156: fi
3157:
3158: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3159: fi
3160:
3161: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3162: fi
3163:
3164: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3165: ac_c_werror_flag=$ac_save_c_werror_flag
3166: fi
3167: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3168: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3169: if test "$ac_test_CFLAGS" = set; then
3170: CFLAGS=$ac_save_CFLAGS
3171: elif test $ac_cv_prog_cc_g = yes; then
3172: if test "$GCC" = yes; then
3173: CFLAGS="-g -O2"
3174: else
3175: CFLAGS="-g"
3176: fi
3177: else
3178: if test "$GCC" = yes; then
3179: CFLAGS="-O2"
3180: else
3181: CFLAGS=
3182: fi
3183: fi
3184: { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3185: echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3186: if test "${ac_cv_prog_cc_c89+set}" = set; then
3187: echo $ECHO_N "(cached) $ECHO_C" >&6
3188: else
3189: ac_cv_prog_cc_c89=no
3190: ac_save_CC=$CC
3191: cat >conftest.$ac_ext <<_ACEOF
3192: /* confdefs.h. */
3193: _ACEOF
3194: cat confdefs.h >>conftest.$ac_ext
3195: cat >>conftest.$ac_ext <<_ACEOF
3196: /* end confdefs.h. */
3197: #include <stdarg.h>
3198: #include <stdio.h>
3199: #include <sys/types.h>
3200: #include <sys/stat.h>
3201: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3202: struct buf { int x; };
3203: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3204: static char *e (p, i)
3205: char **p;
3206: int i;
3207: {
3208: return p[i];
3209: }
3210: static char *f (char * (*g) (char **, int), char **p, ...)
3211: {
3212: char *s;
3213: va_list v;
3214: va_start (v,p);
3215: s = g (p, va_arg (v,int));
3216: va_end (v);
3217: return s;
3218: }
3219:
3220: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3221: function prototypes and stuff, but not '\xHH' hex character constants.
3222: These don't provoke an error unfortunately, instead are silently treated
3223: as 'x'. The following induces an error, until -std is added to get
3224: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3225: array size at least. It's necessary to write '\x00'==0 to get something
3226: that's true only with -std. */
3227: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3228:
3229: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3230: inside strings and character constants. */
3231: #define FOO(x) 'x'
3232: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3233:
3234: int test (int i, double x);
3235: struct s1 {int (*f) (int a);};
3236: struct s2 {int (*f) (double a);};
3237: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3238: int argc;
3239: char **argv;
3240: int
3241: main ()
3242: {
3243: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3244: ;
3245: return 0;
3246: }
3247: _ACEOF
3248: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3249: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3250: do
3251: CC="$ac_save_CC $ac_arg"
3252: rm -f conftest.$ac_objext
3253: if { (ac_try="$ac_compile"
3254: case "(($ac_try" in
3255: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256: *) ac_try_echo=$ac_try;;
3257: esac
3258: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3259: (eval "$ac_compile") 2>conftest.er1
3260: ac_status=$?
3261: grep -v '^ *+' conftest.er1 >conftest.err
3262: rm -f conftest.er1
3263: cat conftest.err >&5
3264: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265: (exit $ac_status); } && {
3266: test -z "$ac_c_werror_flag" ||
3267: test ! -s conftest.err
3268: } && test -s conftest.$ac_objext; then
3269: ac_cv_prog_cc_c89=$ac_arg
3270: else
3271: echo "$as_me: failed program was:" >&5
3272: sed 's/^/| /' conftest.$ac_ext >&5
3273:
3274:
3275: fi
3276:
3277: rm -f core conftest.err conftest.$ac_objext
3278: test "x$ac_cv_prog_cc_c89" != "xno" && break
3279: done
3280: rm -f conftest.$ac_ext
3281: CC=$ac_save_CC
3282:
3283: fi
3284: # AC_CACHE_VAL
3285: case "x$ac_cv_prog_cc_c89" in
3286: x)
3287: { echo "$as_me:$LINENO: result: none needed" >&5
3288: echo "${ECHO_T}none needed" >&6; } ;;
3289: xno)
3290: { echo "$as_me:$LINENO: result: unsupported" >&5
3291: echo "${ECHO_T}unsupported" >&6; } ;;
3292: *)
3293: CC="$CC $ac_cv_prog_cc_c89"
3294: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3295: echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3296: esac
3297:
3298:
3299: ac_ext=c
3300: ac_cpp='$CPP $CPPFLAGS'
3301: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3302: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3303: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3304: DEPDIR="${am__leading_dot}deps"
3305:
3306: ac_config_commands="$ac_config_commands depfiles"
3307:
3308:
3309: am_make=${MAKE-make}
3310: cat > confinc << 'END'
3311: am__doit:
3312: @echo done
3313: .PHONY: am__doit
3314: END
3315: # If we don't find an include directive, just comment out the code.
3316: { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3317: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3318: am__include="#"
3319: am__quote=
3320: _am_result=none
3321: # First try GNU make style include.
3322: echo "include confinc" > confmf
3323: # We grep out `Entering directory' and `Leaving directory'
3324: # messages which can occur if `w' ends up in MAKEFLAGS.
3325: # In particular we don't look at `^make:' because GNU make might
3326: # be invoked under some other name (usually "gmake"), in which
3327: # case it prints its new name instead of `make'.
3328: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3329: am__include=include
3330: am__quote=
3331: _am_result=GNU
3332: fi
3333: # Now try BSD make style include.
3334: if test "$am__include" = "#"; then
3335: echo '.include "confinc"' > confmf
3336: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3337: am__include=.include
3338: am__quote="\""
3339: _am_result=BSD
3340: fi
3341: fi
3342:
3343:
3344: { echo "$as_me:$LINENO: result: $_am_result" >&5
3345: echo "${ECHO_T}$_am_result" >&6; }
3346: rm -f confinc confmf
3347:
3348: # Check whether --enable-dependency-tracking was given.
3349: if test "${enable_dependency_tracking+set}" = set; then
3350: enableval=$enable_dependency_tracking;
3351: fi
3352:
3353: if test "x$enable_dependency_tracking" != xno; then
3354: am_depcomp="$ac_aux_dir/depcomp"
3355: AMDEPBACKSLASH='\'
3356: fi
3357: if test "x$enable_dependency_tracking" != xno; then
3358: AMDEP_TRUE=
3359: AMDEP_FALSE='#'
3360: else
3361: AMDEP_TRUE='#'
3362: AMDEP_FALSE=
3363: fi
3364:
3365:
3366:
3367: depcc="$CC" am_compiler_list=
3368:
3369: { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3370: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3371: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3372: echo $ECHO_N "(cached) $ECHO_C" >&6
3373: else
3374: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3375: # We make a subdir and do the tests there. Otherwise we can end up
3376: # making bogus files that we don't know about and never remove. For
3377: # instance it was reported that on HP-UX the gcc test will end up
3378: # making a dummy file named `D' -- because `-MD' means `put the output
3379: # in D'.
3380: mkdir conftest.dir
3381: # Copy depcomp to subdir because otherwise we won't find it if we're
3382: # using a relative directory.
3383: cp "$am_depcomp" conftest.dir
3384: cd conftest.dir
3385: # We will build objects and dependencies in a subdirectory because
3386: # it helps to detect inapplicable dependency modes. For instance
3387: # both Tru64's cc and ICC support -MD to output dependencies as a
3388: # side effect of compilation, but ICC will put the dependencies in
3389: # the current directory while Tru64 will put them in the object
3390: # directory.
3391: mkdir sub
3392:
3393: am_cv_CC_dependencies_compiler_type=none
3394: if test "$am_compiler_list" = ""; then
3395: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3396: fi
3397: for depmode in $am_compiler_list; do
3398: # Setup a source with many dependencies, because some compilers
3399: # like to wrap large dependency lists on column 80 (with \), and
3400: # we should not choose a depcomp mode which is confused by this.
3401: #
3402: # We need to recreate these files for each test, as the compiler may
3403: # overwrite some of them when testing with obscure command lines.
3404: # This happens at least with the AIX C compiler.
3405: : > sub/conftest.c
3406: for i in 1 2 3 4 5 6; do
3407: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3408: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3409: # Solaris 8's {/usr,}/bin/sh.
3410: touch sub/conftst$i.h
3411: done
3412: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3413:
3414: case $depmode in
3415: nosideeffect)
3416: # after this tag, mechanisms are not by side-effect, so they'll
3417: # only be used when explicitly requested
3418: if test "x$enable_dependency_tracking" = xyes; then
3419: continue
3420: else
3421: break
3422: fi
3423: ;;
3424: none) break ;;
3425: esac
3426: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3427: # mode. It turns out that the SunPro C++ compiler does not properly
3428: # handle `-M -o', and we need to detect this.
3429: if depmode=$depmode \
3430: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3431: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3432: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3433: >/dev/null 2>conftest.err &&
3434: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3435: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3436: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3437: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3438: # icc doesn't choke on unknown options, it will just issue warnings
3439: # or remarks (even with -Werror). So we grep stderr for any message
3440: # that says an option was ignored or not supported.
3441: # When given -MP, icc 7.0 and 7.1 complain thusly:
3442: # icc: Command line warning: ignoring option '-M'; no argument required
3443: # The diagnosis changed in icc 8.0:
3444: # icc: Command line remark: option '-MP' not supported
3445: if (grep 'ignoring option' conftest.err ||
3446: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3447: am_cv_CC_dependencies_compiler_type=$depmode
3448: break
3449: fi
3450: fi
3451: done
3452:
3453: cd ..
3454: rm -rf conftest.dir
3455: else
3456: am_cv_CC_dependencies_compiler_type=none
3457: fi
3458:
3459: fi
3460: { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3461: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3462: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3463:
3464: if
3465: test "x$enable_dependency_tracking" != xno \
3466: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3467: am__fastdepCC_TRUE=
3468: am__fastdepCC_FALSE='#'
3469: else
3470: am__fastdepCC_TRUE='#'
3471: am__fastdepCC_FALSE=
3472: fi
3473:
3474:
3475: # Find a good install program. We prefer a C program (faster),
3476: # so one script is as good as another. But avoid the broken or
3477: # incompatible versions:
3478: # SysV /etc/install, /usr/sbin/install
3479: # SunOS /usr/etc/install
3480: # IRIX /sbin/install
3481: # AIX /bin/install
3482: # AmigaOS /C/install, which installs bootblocks on floppy discs
3483: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3484: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3485: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3486: # OS/2's system install, which has a completely different semantic
3487: # ./install, which can be erroneously created by make from ./install.sh.
3488: { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3489: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3490: if test -z "$INSTALL"; then
3491: if test "${ac_cv_path_install+set}" = set; then
3492: echo $ECHO_N "(cached) $ECHO_C" >&6
3493: else
3494: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3495: for as_dir in $PATH
3496: do
3497: IFS=$as_save_IFS
3498: test -z "$as_dir" && as_dir=.
3499: # Account for people who put trailing slashes in PATH elements.
3500: case $as_dir/ in
3501: ./ | .// | /cC/* | \
3502: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3503: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3504: /usr/ucb/* ) ;;
3505: *)
3506: # OSF1 and SCO ODT 3.0 have their own names for install.
3507: # Don't use installbsd from OSF since it installs stuff as root
3508: # by default.
3509: for ac_prog in ginstall scoinst install; do
3510: for ac_exec_ext in '' $ac_executable_extensions; do
3511: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3512: if test $ac_prog = install &&
3513: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3514: # AIX install. It has an incompatible calling convention.
3515: :
3516: elif test $ac_prog = install &&
3517: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3518: # program-specific install script used by HP pwplus--don't use.
3519: :
3520: else
3521: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3522: break 3
3523: fi
3524: fi
3525: done
3526: done
3527: ;;
3528: esac
3529: done
3530: IFS=$as_save_IFS
3531:
3532:
3533: fi
3534: if test "${ac_cv_path_install+set}" = set; then
3535: INSTALL=$ac_cv_path_install
3536: else
3537: # As a last resort, use the slow shell script. Don't cache a
3538: # value for INSTALL within a source directory, because that will
3539: # break other packages using the cache if that directory is
3540: # removed, or if the value is a relative name.
3541: INSTALL=$ac_install_sh
3542: fi
3543: fi
3544: { echo "$as_me:$LINENO: result: $INSTALL" >&5
3545: echo "${ECHO_T}$INSTALL" >&6; }
3546:
3547: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3548: # It thinks the first close brace ends the variable substitution.
3549: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3550:
3551: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3552:
3553: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3554:
3555: { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3556: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3557: set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3558: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3559: echo $ECHO_N "(cached) $ECHO_C" >&6
3560: else
3561: cat >conftest.make <<\_ACEOF
3562: SHELL = /bin/sh
3563: all:
3564: @echo '@@@%%%=$(MAKE)=@@@%%%'
3565: _ACEOF
3566: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3567: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3568: *@@@%%%=?*=@@@%%%*)
3569: eval ac_cv_prog_make_${ac_make}_set=yes;;
3570: *)
3571: eval ac_cv_prog_make_${ac_make}_set=no;;
3572: esac
3573: rm -f conftest.make
3574: fi
3575: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3576: { echo "$as_me:$LINENO: result: yes" >&5
3577: echo "${ECHO_T}yes" >&6; }
3578: SET_MAKE=
3579: else
3580: { echo "$as_me:$LINENO: result: no" >&5
3581: echo "${ECHO_T}no" >&6; }
3582: SET_MAKE="MAKE=${MAKE-make}"
3583: fi
3584:
3585:
3586: # Checks for libraries.
3587:
3588:
3589: { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3590: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
3591: if test "${ac_cv_lib_socket_socket+set}" = set; then
3592: echo $ECHO_N "(cached) $ECHO_C" >&6
3593: else
3594: ac_check_lib_save_LIBS=$LIBS
3595: LIBS="-lsocket $LIBS"
3596: cat >conftest.$ac_ext <<_ACEOF
3597: /* confdefs.h. */
3598: _ACEOF
3599: cat confdefs.h >>conftest.$ac_ext
3600: cat >>conftest.$ac_ext <<_ACEOF
3601: /* end confdefs.h. */
3602:
3603: /* Override any GCC internal prototype to avoid an error.
3604: Use char because int might match the return type of a GCC
3605: builtin and then its argument prototype would still apply. */
3606: #ifdef __cplusplus
3607: extern "C"
3608: #endif
3609: char socket ();
3610: int
3611: main ()
3612: {
3613: return socket ();
3614: ;
3615: return 0;
3616: }
3617: _ACEOF
3618: rm -f conftest.$ac_objext conftest$ac_exeext
3619: if { (ac_try="$ac_link"
3620: case "(($ac_try" in
3621: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622: *) ac_try_echo=$ac_try;;
3623: esac
3624: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3625: (eval "$ac_link") 2>conftest.er1
3626: ac_status=$?
3627: grep -v '^ *+' conftest.er1 >conftest.err
3628: rm -f conftest.er1
3629: cat conftest.err >&5
3630: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631: (exit $ac_status); } && {
3632: test -z "$ac_c_werror_flag" ||
3633: test ! -s conftest.err
3634: } && test -s conftest$ac_exeext &&
3635: $as_test_x conftest$ac_exeext; then
3636: ac_cv_lib_socket_socket=yes
3637: else
3638: echo "$as_me: failed program was:" >&5
3639: sed 's/^/| /' conftest.$ac_ext >&5
3640:
3641: ac_cv_lib_socket_socket=no
3642: fi
3643:
3644: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3645: conftest$ac_exeext conftest.$ac_ext
3646: LIBS=$ac_check_lib_save_LIBS
3647: fi
3648: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3649: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
3650: if test $ac_cv_lib_socket_socket = yes; then
3651: cat >>confdefs.h <<_ACEOF
3652: #define HAVE_LIBSOCKET 1
3653: _ACEOF
3654:
3655: LIBS="-lsocket $LIBS"
3656:
3657: fi
3658:
3659:
3660: { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3661: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
3662: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3663: echo $ECHO_N "(cached) $ECHO_C" >&6
3664: else
3665: ac_check_lib_save_LIBS=$LIBS
3666: LIBS="-lnsl $LIBS"
3667: cat >conftest.$ac_ext <<_ACEOF
3668: /* confdefs.h. */
3669: _ACEOF
3670: cat confdefs.h >>conftest.$ac_ext
3671: cat >>conftest.$ac_ext <<_ACEOF
3672: /* end confdefs.h. */
3673:
3674: /* Override any GCC internal prototype to avoid an error.
3675: Use char because int might match the return type of a GCC
3676: builtin and then its argument prototype would still apply. */
3677: #ifdef __cplusplus
3678: extern "C"
3679: #endif
3680: char gethostbyname ();
3681: int
3682: main ()
3683: {
3684: return gethostbyname ();
3685: ;
3686: return 0;
3687: }
3688: _ACEOF
3689: rm -f conftest.$ac_objext conftest$ac_exeext
3690: if { (ac_try="$ac_link"
3691: case "(($ac_try" in
3692: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693: *) ac_try_echo=$ac_try;;
3694: esac
3695: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3696: (eval "$ac_link") 2>conftest.er1
3697: ac_status=$?
3698: grep -v '^ *+' conftest.er1 >conftest.err
3699: rm -f conftest.er1
3700: cat conftest.err >&5
3701: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702: (exit $ac_status); } && {
3703: test -z "$ac_c_werror_flag" ||
3704: test ! -s conftest.err
3705: } && test -s conftest$ac_exeext &&
3706: $as_test_x conftest$ac_exeext; then
3707: ac_cv_lib_nsl_gethostbyname=yes
3708: else
3709: echo "$as_me: failed program was:" >&5
3710: sed 's/^/| /' conftest.$ac_ext >&5
3711:
3712: ac_cv_lib_nsl_gethostbyname=no
3713: fi
3714:
3715: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3716: conftest$ac_exeext conftest.$ac_ext
3717: LIBS=$ac_check_lib_save_LIBS
3718: fi
3719: { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3720: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
3721: if test $ac_cv_lib_nsl_gethostbyname = yes; then
3722: cat >>confdefs.h <<_ACEOF
3723: #define HAVE_LIBNSL 1
3724: _ACEOF
3725:
3726: LIBS="-lnsl $LIBS"
3727:
3728: fi
3729:
3730: { echo "$as_me:$LINENO: checking for libnet_name_resolve in -lnet" >&5
3731: echo $ECHO_N "checking for libnet_name_resolve in -lnet... $ECHO_C" >&6; }
3732: if test "${ac_cv_lib_net_libnet_name_resolve+set}" = set; then
3733: echo $ECHO_N "(cached) $ECHO_C" >&6
3734: else
3735: ac_check_lib_save_LIBS=$LIBS
3736: LIBS="-lnet $LIBS"
3737: cat >conftest.$ac_ext <<_ACEOF
3738: /* confdefs.h. */
3739: _ACEOF
3740: cat confdefs.h >>conftest.$ac_ext
3741: cat >>conftest.$ac_ext <<_ACEOF
3742: /* end confdefs.h. */
3743:
3744: /* Override any GCC internal prototype to avoid an error.
3745: Use char because int might match the return type of a GCC
3746: builtin and then its argument prototype would still apply. */
3747: #ifdef __cplusplus
3748: extern "C"
3749: #endif
3750: char libnet_name_resolve ();
3751: int
3752: main ()
3753: {
3754: return libnet_name_resolve ();
3755: ;
3756: return 0;
3757: }
3758: _ACEOF
3759: rm -f conftest.$ac_objext conftest$ac_exeext
3760: if { (ac_try="$ac_link"
3761: case "(($ac_try" in
3762: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763: *) ac_try_echo=$ac_try;;
3764: esac
3765: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3766: (eval "$ac_link") 2>conftest.er1
3767: ac_status=$?
3768: grep -v '^ *+' conftest.er1 >conftest.err
3769: rm -f conftest.er1
3770: cat conftest.err >&5
3771: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772: (exit $ac_status); } && {
3773: test -z "$ac_c_werror_flag" ||
3774: test ! -s conftest.err
3775: } && test -s conftest$ac_exeext &&
3776: $as_test_x conftest$ac_exeext; then
3777: ac_cv_lib_net_libnet_name_resolve=yes
3778: else
3779: echo "$as_me: failed program was:" >&5
3780: sed 's/^/| /' conftest.$ac_ext >&5
3781:
3782: ac_cv_lib_net_libnet_name_resolve=no
3783: fi
3784:
3785: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3786: conftest$ac_exeext conftest.$ac_ext
3787: LIBS=$ac_check_lib_save_LIBS
3788: fi
3789: { echo "$as_me:$LINENO: result: $ac_cv_lib_net_libnet_name_resolve" >&5
3790: echo "${ECHO_T}$ac_cv_lib_net_libnet_name_resolve" >&6; }
3791: if test $ac_cv_lib_net_libnet_name_resolve = yes; then
3792: { { echo "$as_me:$LINENO: error: libnet 1.0.x found. Arping 2.x requires libnet 1.1.x" >&5
3793: echo "$as_me: error: libnet 1.0.x found. Arping 2.x requires libnet 1.1.x" >&2;}
3794: { (exit 1); exit 1; }; }
3795: fi
3796:
3797:
3798: { echo "$as_me:$LINENO: checking for libnet_init in -lnet" >&5
3799: echo $ECHO_N "checking for libnet_init in -lnet... $ECHO_C" >&6; }
3800: if test "${ac_cv_lib_net_libnet_init+set}" = set; then
3801: echo $ECHO_N "(cached) $ECHO_C" >&6
3802: else
3803: ac_check_lib_save_LIBS=$LIBS
3804: LIBS="-lnet $LIBS"
3805: cat >conftest.$ac_ext <<_ACEOF
3806: /* confdefs.h. */
3807: _ACEOF
3808: cat confdefs.h >>conftest.$ac_ext
3809: cat >>conftest.$ac_ext <<_ACEOF
3810: /* end confdefs.h. */
3811:
3812: /* Override any GCC internal prototype to avoid an error.
3813: Use char because int might match the return type of a GCC
3814: builtin and then its argument prototype would still apply. */
3815: #ifdef __cplusplus
3816: extern "C"
3817: #endif
3818: char libnet_init ();
3819: int
3820: main ()
3821: {
3822: return libnet_init ();
3823: ;
3824: return 0;
3825: }
3826: _ACEOF
3827: rm -f conftest.$ac_objext conftest$ac_exeext
3828: if { (ac_try="$ac_link"
3829: case "(($ac_try" in
3830: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831: *) ac_try_echo=$ac_try;;
3832: esac
3833: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3834: (eval "$ac_link") 2>conftest.er1
3835: ac_status=$?
3836: grep -v '^ *+' conftest.er1 >conftest.err
3837: rm -f conftest.er1
3838: cat conftest.err >&5
3839: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840: (exit $ac_status); } && {
3841: test -z "$ac_c_werror_flag" ||
3842: test ! -s conftest.err
3843: } && test -s conftest$ac_exeext &&
3844: $as_test_x conftest$ac_exeext; then
3845: ac_cv_lib_net_libnet_init=yes
3846: else
3847: echo "$as_me: failed program was:" >&5
3848: sed 's/^/| /' conftest.$ac_ext >&5
3849:
3850: ac_cv_lib_net_libnet_init=no
3851: fi
3852:
3853: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3854: conftest$ac_exeext conftest.$ac_ext
3855: LIBS=$ac_check_lib_save_LIBS
3856: fi
3857: { echo "$as_me:$LINENO: result: $ac_cv_lib_net_libnet_init" >&5
3858: echo "${ECHO_T}$ac_cv_lib_net_libnet_init" >&6; }
3859: if test $ac_cv_lib_net_libnet_init = yes; then
3860: cat >>confdefs.h <<_ACEOF
3861: #define HAVE_LIBNET 1
3862: _ACEOF
3863:
3864: LIBS="-lnet $LIBS"
3865:
3866: else
3867: { { echo "$as_me:$LINENO: error: libnet 1.1.x not found" >&5
3868: echo "$as_me: error: libnet 1.1.x not found" >&2;}
3869: { (exit 1); exit 1; }; }
3870: fi
3871:
3872:
3873: { echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
3874: echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6; }
3875: if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
3876: echo $ECHO_N "(cached) $ECHO_C" >&6
3877: else
3878: ac_check_lib_save_LIBS=$LIBS
3879: LIBS="-lpcap $LIBS"
3880: cat >conftest.$ac_ext <<_ACEOF
3881: /* confdefs.h. */
3882: _ACEOF
3883: cat confdefs.h >>conftest.$ac_ext
3884: cat >>conftest.$ac_ext <<_ACEOF
3885: /* end confdefs.h. */
3886:
3887: /* Override any GCC internal prototype to avoid an error.
3888: Use char because int might match the return type of a GCC
3889: builtin and then its argument prototype would still apply. */
3890: #ifdef __cplusplus
3891: extern "C"
3892: #endif
3893: char pcap_open_live ();
3894: int
3895: main ()
3896: {
3897: return pcap_open_live ();
3898: ;
3899: return 0;
3900: }
3901: _ACEOF
3902: rm -f conftest.$ac_objext conftest$ac_exeext
3903: if { (ac_try="$ac_link"
3904: case "(($ac_try" in
3905: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906: *) ac_try_echo=$ac_try;;
3907: esac
3908: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3909: (eval "$ac_link") 2>conftest.er1
3910: ac_status=$?
3911: grep -v '^ *+' conftest.er1 >conftest.err
3912: rm -f conftest.er1
3913: cat conftest.err >&5
3914: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915: (exit $ac_status); } && {
3916: test -z "$ac_c_werror_flag" ||
3917: test ! -s conftest.err
3918: } && test -s conftest$ac_exeext &&
3919: $as_test_x conftest$ac_exeext; then
3920: ac_cv_lib_pcap_pcap_open_live=yes
3921: else
3922: echo "$as_me: failed program was:" >&5
3923: sed 's/^/| /' conftest.$ac_ext >&5
3924:
3925: ac_cv_lib_pcap_pcap_open_live=no
3926: fi
3927:
3928: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3929: conftest$ac_exeext conftest.$ac_ext
3930: LIBS=$ac_check_lib_save_LIBS
3931: fi
3932: { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
3933: echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6; }
3934: if test $ac_cv_lib_pcap_pcap_open_live = yes; then
3935: cat >>confdefs.h <<_ACEOF
3936: #define HAVE_LIBPCAP 1
3937: _ACEOF
3938:
3939: LIBS="-lpcap $LIBS"
3940:
3941: else
3942: { { echo "$as_me:$LINENO: error: libpcap not found" >&5
3943: echo "$as_me: error: libpcap not found" >&2;}
3944: { (exit 1); exit 1; }; }
3945: fi
3946:
3947:
3948: # Checks for header files.
3949: ac_ext=c
3950: ac_cpp='$CPP $CPPFLAGS'
3951: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3954: { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3955: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3956: # On Suns, sometimes $CPP names a directory.
3957: if test -n "$CPP" && test -d "$CPP"; then
3958: CPP=
3959: fi
3960: if test -z "$CPP"; then
3961: if test "${ac_cv_prog_CPP+set}" = set; then
3962: echo $ECHO_N "(cached) $ECHO_C" >&6
3963: else
3964: # Double quotes because CPP needs to be expanded
3965: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3966: do
3967: ac_preproc_ok=false
3968: for ac_c_preproc_warn_flag in '' yes
3969: do
3970: # Use a header file that comes with gcc, so configuring glibc
3971: # with a fresh cross-compiler works.
3972: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3973: # <limits.h> exists even on freestanding compilers.
3974: # On the NeXT, cc -E runs the code through the compiler's parser,
3975: # not just through cpp. "Syntax error" is here to catch this case.
3976: cat >conftest.$ac_ext <<_ACEOF
3977: /* confdefs.h. */
3978: _ACEOF
3979: cat confdefs.h >>conftest.$ac_ext
3980: cat >>conftest.$ac_ext <<_ACEOF
3981: /* end confdefs.h. */
3982: #ifdef __STDC__
3983: # include <limits.h>
3984: #else
3985: # include <assert.h>
3986: #endif
3987: Syntax error
3988: _ACEOF
3989: if { (ac_try="$ac_cpp conftest.$ac_ext"
3990: case "(($ac_try" in
3991: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992: *) ac_try_echo=$ac_try;;
3993: esac
3994: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3995: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3996: ac_status=$?
3997: grep -v '^ *+' conftest.er1 >conftest.err
3998: rm -f conftest.er1
3999: cat conftest.err >&5
4000: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001: (exit $ac_status); } >/dev/null && {
4002: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4003: test ! -s conftest.err
4004: }; then
4005: :
4006: else
4007: echo "$as_me: failed program was:" >&5
4008: sed 's/^/| /' conftest.$ac_ext >&5
4009:
4010: # Broken: fails on valid input.
4011: continue
4012: fi
4013:
4014: rm -f conftest.err conftest.$ac_ext
4015:
4016: # OK, works on sane cases. Now check whether nonexistent headers
4017: # can be detected and how.
4018: cat >conftest.$ac_ext <<_ACEOF
4019: /* confdefs.h. */
4020: _ACEOF
4021: cat confdefs.h >>conftest.$ac_ext
4022: cat >>conftest.$ac_ext <<_ACEOF
4023: /* end confdefs.h. */
4024: #include <ac_nonexistent.h>
4025: _ACEOF
4026: if { (ac_try="$ac_cpp conftest.$ac_ext"
4027: case "(($ac_try" in
4028: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029: *) ac_try_echo=$ac_try;;
4030: esac
4031: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4032: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4033: ac_status=$?
4034: grep -v '^ *+' conftest.er1 >conftest.err
4035: rm -f conftest.er1
4036: cat conftest.err >&5
4037: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038: (exit $ac_status); } >/dev/null && {
4039: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4040: test ! -s conftest.err
4041: }; then
4042: # Broken: success on invalid input.
4043: continue
4044: else
4045: echo "$as_me: failed program was:" >&5
4046: sed 's/^/| /' conftest.$ac_ext >&5
4047:
4048: # Passes both tests.
4049: ac_preproc_ok=:
4050: break
4051: fi
4052:
4053: rm -f conftest.err conftest.$ac_ext
4054:
4055: done
4056: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4057: rm -f conftest.err conftest.$ac_ext
4058: if $ac_preproc_ok; then
4059: break
4060: fi
4061:
4062: done
4063: ac_cv_prog_CPP=$CPP
4064:
4065: fi
4066: CPP=$ac_cv_prog_CPP
4067: else
4068: ac_cv_prog_CPP=$CPP
4069: fi
4070: { echo "$as_me:$LINENO: result: $CPP" >&5
4071: echo "${ECHO_T}$CPP" >&6; }
4072: ac_preproc_ok=false
4073: for ac_c_preproc_warn_flag in '' yes
4074: do
4075: # Use a header file that comes with gcc, so configuring glibc
4076: # with a fresh cross-compiler works.
4077: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4078: # <limits.h> exists even on freestanding compilers.
4079: # On the NeXT, cc -E runs the code through the compiler's parser,
4080: # not just through cpp. "Syntax error" is here to catch this case.
4081: cat >conftest.$ac_ext <<_ACEOF
4082: /* confdefs.h. */
4083: _ACEOF
4084: cat confdefs.h >>conftest.$ac_ext
4085: cat >>conftest.$ac_ext <<_ACEOF
4086: /* end confdefs.h. */
4087: #ifdef __STDC__
4088: # include <limits.h>
4089: #else
4090: # include <assert.h>
4091: #endif
4092: Syntax error
4093: _ACEOF
4094: if { (ac_try="$ac_cpp conftest.$ac_ext"
4095: case "(($ac_try" in
4096: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097: *) ac_try_echo=$ac_try;;
4098: esac
4099: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4100: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4101: ac_status=$?
4102: grep -v '^ *+' conftest.er1 >conftest.err
4103: rm -f conftest.er1
4104: cat conftest.err >&5
4105: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106: (exit $ac_status); } >/dev/null && {
4107: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4108: test ! -s conftest.err
4109: }; then
4110: :
4111: else
4112: echo "$as_me: failed program was:" >&5
4113: sed 's/^/| /' conftest.$ac_ext >&5
4114:
4115: # Broken: fails on valid input.
4116: continue
4117: fi
4118:
4119: rm -f conftest.err conftest.$ac_ext
4120:
4121: # OK, works on sane cases. Now check whether nonexistent headers
4122: # can be detected and how.
4123: cat >conftest.$ac_ext <<_ACEOF
4124: /* confdefs.h. */
4125: _ACEOF
4126: cat confdefs.h >>conftest.$ac_ext
4127: cat >>conftest.$ac_ext <<_ACEOF
4128: /* end confdefs.h. */
4129: #include <ac_nonexistent.h>
4130: _ACEOF
4131: if { (ac_try="$ac_cpp conftest.$ac_ext"
4132: case "(($ac_try" in
4133: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134: *) ac_try_echo=$ac_try;;
4135: esac
4136: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4138: ac_status=$?
4139: grep -v '^ *+' conftest.er1 >conftest.err
4140: rm -f conftest.er1
4141: cat conftest.err >&5
4142: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143: (exit $ac_status); } >/dev/null && {
4144: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4145: test ! -s conftest.err
4146: }; then
4147: # Broken: success on invalid input.
4148: continue
4149: else
4150: echo "$as_me: failed program was:" >&5
4151: sed 's/^/| /' conftest.$ac_ext >&5
4152:
4153: # Passes both tests.
4154: ac_preproc_ok=:
4155: break
4156: fi
4157:
4158: rm -f conftest.err conftest.$ac_ext
4159:
4160: done
4161: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4162: rm -f conftest.err conftest.$ac_ext
4163: if $ac_preproc_ok; then
4164: :
4165: else
4166: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4167: See \`config.log' for more details." >&5
4168: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4169: See \`config.log' for more details." >&2;}
4170: { (exit 1); exit 1; }; }
4171: fi
4172:
4173: ac_ext=c
4174: ac_cpp='$CPP $CPPFLAGS'
4175: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4176: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4177: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4178:
4179:
4180: { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4181: echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4182: if test "${ac_cv_path_GREP+set}" = set; then
4183: echo $ECHO_N "(cached) $ECHO_C" >&6
4184: else
4185: # Extract the first word of "grep ggrep" to use in msg output
4186: if test -z "$GREP"; then
4187: set dummy grep ggrep; ac_prog_name=$2
4188: if test "${ac_cv_path_GREP+set}" = set; then
4189: echo $ECHO_N "(cached) $ECHO_C" >&6
4190: else
4191: ac_path_GREP_found=false
4192: # Loop through the user's path and test for each of PROGNAME-LIST
4193: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4195: do
4196: IFS=$as_save_IFS
4197: test -z "$as_dir" && as_dir=.
4198: for ac_prog in grep ggrep; do
4199: for ac_exec_ext in '' $ac_executable_extensions; do
4200: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4201: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4202: # Check for GNU ac_path_GREP and select it if it is found.
4203: # Check for GNU $ac_path_GREP
4204: case `"$ac_path_GREP" --version 2>&1` in
4205: *GNU*)
4206: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4207: *)
4208: ac_count=0
4209: echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4210: while :
4211: do
4212: cat "conftest.in" "conftest.in" >"conftest.tmp"
4213: mv "conftest.tmp" "conftest.in"
4214: cp "conftest.in" "conftest.nl"
4215: echo 'GREP' >> "conftest.nl"
4216: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4217: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4218: ac_count=`expr $ac_count + 1`
4219: if test $ac_count -gt ${ac_path_GREP_max-0}; then
4220: # Best one so far, save it but keep looking for a better one
4221: ac_cv_path_GREP="$ac_path_GREP"
4222: ac_path_GREP_max=$ac_count
4223: fi
4224: # 10*(2^10) chars as input seems more than enough
4225: test $ac_count -gt 10 && break
4226: done
4227: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4228: esac
4229:
4230:
4231: $ac_path_GREP_found && break 3
4232: done
4233: done
4234:
4235: done
4236: IFS=$as_save_IFS
4237:
4238:
4239: fi
4240:
4241: GREP="$ac_cv_path_GREP"
4242: if test -z "$GREP"; then
4243: { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4244: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4245: { (exit 1); exit 1; }; }
4246: fi
4247:
4248: else
4249: ac_cv_path_GREP=$GREP
4250: fi
4251:
4252:
4253: fi
4254: { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4255: echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4256: GREP="$ac_cv_path_GREP"
4257:
4258:
4259: { echo "$as_me:$LINENO: checking for egrep" >&5
4260: echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4261: if test "${ac_cv_path_EGREP+set}" = set; then
4262: echo $ECHO_N "(cached) $ECHO_C" >&6
4263: else
4264: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4265: then ac_cv_path_EGREP="$GREP -E"
4266: else
4267: # Extract the first word of "egrep" to use in msg output
4268: if test -z "$EGREP"; then
4269: set dummy egrep; ac_prog_name=$2
4270: if test "${ac_cv_path_EGREP+set}" = set; then
4271: echo $ECHO_N "(cached) $ECHO_C" >&6
4272: else
4273: ac_path_EGREP_found=false
4274: # Loop through the user's path and test for each of PROGNAME-LIST
4275: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4277: do
4278: IFS=$as_save_IFS
4279: test -z "$as_dir" && as_dir=.
4280: for ac_prog in egrep; do
4281: for ac_exec_ext in '' $ac_executable_extensions; do
4282: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4283: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4284: # Check for GNU ac_path_EGREP and select it if it is found.
4285: # Check for GNU $ac_path_EGREP
4286: case `"$ac_path_EGREP" --version 2>&1` in
4287: *GNU*)
4288: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4289: *)
4290: ac_count=0
4291: echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4292: while :
4293: do
4294: cat "conftest.in" "conftest.in" >"conftest.tmp"
4295: mv "conftest.tmp" "conftest.in"
4296: cp "conftest.in" "conftest.nl"
4297: echo 'EGREP' >> "conftest.nl"
4298: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4299: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4300: ac_count=`expr $ac_count + 1`
4301: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4302: # Best one so far, save it but keep looking for a better one
4303: ac_cv_path_EGREP="$ac_path_EGREP"
4304: ac_path_EGREP_max=$ac_count
4305: fi
4306: # 10*(2^10) chars as input seems more than enough
4307: test $ac_count -gt 10 && break
4308: done
4309: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4310: esac
4311:
4312:
4313: $ac_path_EGREP_found && break 3
4314: done
4315: done
4316:
4317: done
4318: IFS=$as_save_IFS
4319:
4320:
4321: fi
4322:
4323: EGREP="$ac_cv_path_EGREP"
4324: if test -z "$EGREP"; then
4325: { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4326: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4327: { (exit 1); exit 1; }; }
4328: fi
4329:
4330: else
4331: ac_cv_path_EGREP=$EGREP
4332: fi
4333:
4334:
4335: fi
4336: fi
4337: { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4338: echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4339: EGREP="$ac_cv_path_EGREP"
4340:
4341:
4342: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4343: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4344: if test "${ac_cv_header_stdc+set}" = set; then
4345: echo $ECHO_N "(cached) $ECHO_C" >&6
4346: else
4347: cat >conftest.$ac_ext <<_ACEOF
4348: /* confdefs.h. */
4349: _ACEOF
4350: cat confdefs.h >>conftest.$ac_ext
4351: cat >>conftest.$ac_ext <<_ACEOF
4352: /* end confdefs.h. */
4353: #include <stdlib.h>
4354: #include <stdarg.h>
4355: #include <string.h>
4356: #include <float.h>
4357:
4358: int
4359: main ()
4360: {
4361:
4362: ;
4363: return 0;
4364: }
4365: _ACEOF
4366: rm -f conftest.$ac_objext
4367: if { (ac_try="$ac_compile"
4368: case "(($ac_try" in
4369: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370: *) ac_try_echo=$ac_try;;
4371: esac
4372: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4373: (eval "$ac_compile") 2>conftest.er1
4374: ac_status=$?
4375: grep -v '^ *+' conftest.er1 >conftest.err
4376: rm -f conftest.er1
4377: cat conftest.err >&5
4378: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379: (exit $ac_status); } && {
4380: test -z "$ac_c_werror_flag" ||
4381: test ! -s conftest.err
4382: } && test -s conftest.$ac_objext; then
4383: ac_cv_header_stdc=yes
4384: else
4385: echo "$as_me: failed program was:" >&5
4386: sed 's/^/| /' conftest.$ac_ext >&5
4387:
4388: ac_cv_header_stdc=no
4389: fi
4390:
4391: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4392:
4393: if test $ac_cv_header_stdc = yes; then
4394: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4395: cat >conftest.$ac_ext <<_ACEOF
4396: /* confdefs.h. */
4397: _ACEOF
4398: cat confdefs.h >>conftest.$ac_ext
4399: cat >>conftest.$ac_ext <<_ACEOF
4400: /* end confdefs.h. */
4401: #include <string.h>
4402:
4403: _ACEOF
4404: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4405: $EGREP "memchr" >/dev/null 2>&1; then
4406: :
4407: else
4408: ac_cv_header_stdc=no
4409: fi
4410: rm -f conftest*
4411:
4412: fi
4413:
4414: if test $ac_cv_header_stdc = yes; then
4415: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4416: cat >conftest.$ac_ext <<_ACEOF
4417: /* confdefs.h. */
4418: _ACEOF
4419: cat confdefs.h >>conftest.$ac_ext
4420: cat >>conftest.$ac_ext <<_ACEOF
4421: /* end confdefs.h. */
4422: #include <stdlib.h>
4423:
4424: _ACEOF
4425: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4426: $EGREP "free" >/dev/null 2>&1; then
4427: :
4428: else
4429: ac_cv_header_stdc=no
4430: fi
4431: rm -f conftest*
4432:
4433: fi
4434:
4435: if test $ac_cv_header_stdc = yes; then
4436: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4437: if test "$cross_compiling" = yes; then
4438: :
4439: else
4440: cat >conftest.$ac_ext <<_ACEOF
4441: /* confdefs.h. */
4442: _ACEOF
4443: cat confdefs.h >>conftest.$ac_ext
4444: cat >>conftest.$ac_ext <<_ACEOF
4445: /* end confdefs.h. */
4446: #include <ctype.h>
4447: #include <stdlib.h>
4448: #if ((' ' & 0x0FF) == 0x020)
4449: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4450: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4451: #else
4452: # define ISLOWER(c) \
4453: (('a' <= (c) && (c) <= 'i') \
4454: || ('j' <= (c) && (c) <= 'r') \
4455: || ('s' <= (c) && (c) <= 'z'))
4456: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4457: #endif
4458:
4459: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4460: int
4461: main ()
4462: {
4463: int i;
4464: for (i = 0; i < 256; i++)
4465: if (XOR (islower (i), ISLOWER (i))
4466: || toupper (i) != TOUPPER (i))
4467: return 2;
4468: return 0;
4469: }
4470: _ACEOF
4471: rm -f conftest$ac_exeext
4472: if { (ac_try="$ac_link"
4473: case "(($ac_try" in
4474: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475: *) ac_try_echo=$ac_try;;
4476: esac
4477: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4478: (eval "$ac_link") 2>&5
4479: ac_status=$?
4480: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4482: { (case "(($ac_try" in
4483: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484: *) ac_try_echo=$ac_try;;
4485: esac
4486: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4487: (eval "$ac_try") 2>&5
4488: ac_status=$?
4489: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490: (exit $ac_status); }; }; then
4491: :
4492: else
4493: echo "$as_me: program exited with status $ac_status" >&5
4494: echo "$as_me: failed program was:" >&5
4495: sed 's/^/| /' conftest.$ac_ext >&5
4496:
4497: ( exit $ac_status )
4498: ac_cv_header_stdc=no
4499: fi
4500: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4501: fi
4502:
4503:
4504: fi
4505: fi
4506: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4507: echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4508: if test $ac_cv_header_stdc = yes; then
4509:
4510: cat >>confdefs.h <<\_ACEOF
4511: #define STDC_HEADERS 1
4512: _ACEOF
4513:
4514: fi
4515:
4516: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4517:
4518:
4519:
4520:
4521:
4522:
4523:
4524:
4525:
4526: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4527: inttypes.h stdint.h unistd.h
4528: do
4529: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4530: { echo "$as_me:$LINENO: checking for $ac_header" >&5
4531: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4532: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4533: echo $ECHO_N "(cached) $ECHO_C" >&6
4534: else
4535: cat >conftest.$ac_ext <<_ACEOF
4536: /* confdefs.h. */
4537: _ACEOF
4538: cat confdefs.h >>conftest.$ac_ext
4539: cat >>conftest.$ac_ext <<_ACEOF
4540: /* end confdefs.h. */
4541: $ac_includes_default
4542:
4543: #include <$ac_header>
4544: _ACEOF
4545: rm -f conftest.$ac_objext
4546: if { (ac_try="$ac_compile"
4547: case "(($ac_try" in
4548: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549: *) ac_try_echo=$ac_try;;
4550: esac
4551: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4552: (eval "$ac_compile") 2>conftest.er1
4553: ac_status=$?
4554: grep -v '^ *+' conftest.er1 >conftest.err
4555: rm -f conftest.er1
4556: cat conftest.err >&5
4557: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558: (exit $ac_status); } && {
4559: test -z "$ac_c_werror_flag" ||
4560: test ! -s conftest.err
4561: } && test -s conftest.$ac_objext; then
4562: eval "$as_ac_Header=yes"
4563: else
4564: echo "$as_me: failed program was:" >&5
4565: sed 's/^/| /' conftest.$ac_ext >&5
4566:
4567: eval "$as_ac_Header=no"
4568: fi
4569:
4570: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4571: fi
4572: ac_res=`eval echo '${'$as_ac_Header'}'`
4573: { echo "$as_me:$LINENO: result: $ac_res" >&5
4574: echo "${ECHO_T}$ac_res" >&6; }
4575: if test `eval echo '${'$as_ac_Header'}'` = yes; then
4576: cat >>confdefs.h <<_ACEOF
4577: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4578: _ACEOF
4579:
4580: fi
4581:
4582: done
4583:
4584:
4585:
4586:
4587:
4588:
4589:
4590:
4591:
4592:
4593:
4594:
4595:
4596: for ac_header in \
4597: arpa/inet.h \
4598: netinet/in.h \
4599: stdlib.h \
4600: sys/socket.h \
4601: sys/time.h \
4602: sys/types.h \
4603: stdint.h \
4604: libnet.h \
4605: win32/libnet.h \
4606: net/bpf.h \
4607: unistd.h
4608: do
4609: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4610: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4611: { echo "$as_me:$LINENO: checking for $ac_header" >&5
4612: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4613: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4614: echo $ECHO_N "(cached) $ECHO_C" >&6
4615: fi
4616: ac_res=`eval echo '${'$as_ac_Header'}'`
4617: { echo "$as_me:$LINENO: result: $ac_res" >&5
4618: echo "${ECHO_T}$ac_res" >&6; }
4619: else
4620: # Is the header compilable?
4621: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4622: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4623: cat >conftest.$ac_ext <<_ACEOF
4624: /* confdefs.h. */
4625: _ACEOF
4626: cat confdefs.h >>conftest.$ac_ext
4627: cat >>conftest.$ac_ext <<_ACEOF
4628: /* end confdefs.h. */
4629: $ac_includes_default
4630: #include <$ac_header>
4631: _ACEOF
4632: rm -f conftest.$ac_objext
4633: if { (ac_try="$ac_compile"
4634: case "(($ac_try" in
4635: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636: *) ac_try_echo=$ac_try;;
4637: esac
4638: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4639: (eval "$ac_compile") 2>conftest.er1
4640: ac_status=$?
4641: grep -v '^ *+' conftest.er1 >conftest.err
4642: rm -f conftest.er1
4643: cat conftest.err >&5
4644: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645: (exit $ac_status); } && {
4646: test -z "$ac_c_werror_flag" ||
4647: test ! -s conftest.err
4648: } && test -s conftest.$ac_objext; then
4649: ac_header_compiler=yes
4650: else
4651: echo "$as_me: failed program was:" >&5
4652: sed 's/^/| /' conftest.$ac_ext >&5
4653:
4654: ac_header_compiler=no
4655: fi
4656:
4657: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4658: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4659: echo "${ECHO_T}$ac_header_compiler" >&6; }
4660:
4661: # Is the header present?
4662: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4663: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4664: cat >conftest.$ac_ext <<_ACEOF
4665: /* confdefs.h. */
4666: _ACEOF
4667: cat confdefs.h >>conftest.$ac_ext
4668: cat >>conftest.$ac_ext <<_ACEOF
4669: /* end confdefs.h. */
4670: #include <$ac_header>
4671: _ACEOF
4672: if { (ac_try="$ac_cpp conftest.$ac_ext"
4673: case "(($ac_try" in
4674: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4675: *) ac_try_echo=$ac_try;;
4676: esac
4677: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4678: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4679: ac_status=$?
4680: grep -v '^ *+' conftest.er1 >conftest.err
4681: rm -f conftest.er1
4682: cat conftest.err >&5
4683: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684: (exit $ac_status); } >/dev/null && {
4685: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4686: test ! -s conftest.err
4687: }; then
4688: ac_header_preproc=yes
4689: else
4690: echo "$as_me: failed program was:" >&5
4691: sed 's/^/| /' conftest.$ac_ext >&5
4692:
4693: ac_header_preproc=no
4694: fi
4695:
4696: rm -f conftest.err conftest.$ac_ext
4697: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4698: echo "${ECHO_T}$ac_header_preproc" >&6; }
4699:
4700: # So? What about this header?
4701: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4702: yes:no: )
4703: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4704: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4705: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4706: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4707: ac_header_preproc=yes
4708: ;;
4709: no:yes:* )
4710: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4711: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4712: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4713: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4714: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4715: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4716: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4717: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4718: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4719: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4720: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4721: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4722: ( cat <<\_ASBOX
4723: ## ---------------------------------- ##
4724: ## Report this to thomas@habets.pp.se ##
4725: ## ---------------------------------- ##
4726: _ASBOX
4727: ) | sed "s/^/$as_me: WARNING: /" >&2
4728: ;;
4729: esac
4730: { echo "$as_me:$LINENO: checking for $ac_header" >&5
4731: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4732: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4733: echo $ECHO_N "(cached) $ECHO_C" >&6
4734: else
4735: eval "$as_ac_Header=\$ac_header_preproc"
4736: fi
4737: ac_res=`eval echo '${'$as_ac_Header'}'`
4738: { echo "$as_me:$LINENO: result: $ac_res" >&5
4739: echo "${ECHO_T}$ac_res" >&6; }
4740:
4741: fi
4742: if test `eval echo '${'$as_ac_Header'}'` = yes; then
4743: cat >>confdefs.h <<_ACEOF
4744: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4745: _ACEOF
4746:
4747: fi
4748:
4749: done
4750:
4751:
4752: # Libnet include file is not optional
4753: if test ! x$ac_cv_header_libnet_h = xyes; then
4754: { { echo "$as_me:$LINENO: error: Can't find libnet.h. See INSTALL file for where to get Libnet" >&5
4755: echo "$as_me: error: Can't find libnet.h. See INSTALL file for where to get Libnet" >&2;}
4756: { (exit 1); exit 1; }; }
4757: fi
4758:
4759: # Checks for typedefs, structures, and compiler characteristics.
4760: { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4761: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4762: if test "${ac_cv_c_const+set}" = set; then
4763: echo $ECHO_N "(cached) $ECHO_C" >&6
4764: else
4765: cat >conftest.$ac_ext <<_ACEOF
4766: /* confdefs.h. */
4767: _ACEOF
4768: cat confdefs.h >>conftest.$ac_ext
4769: cat >>conftest.$ac_ext <<_ACEOF
4770: /* end confdefs.h. */
4771:
4772: int
4773: main ()
4774: {
4775: /* FIXME: Include the comments suggested by Paul. */
4776: #ifndef __cplusplus
4777: /* Ultrix mips cc rejects this. */
4778: typedef int charset[2];
4779: const charset cs;
4780: /* SunOS 4.1.1 cc rejects this. */
4781: char const *const *pcpcc;
4782: char **ppc;
4783: /* NEC SVR4.0.2 mips cc rejects this. */
4784: struct point {int x, y;};
4785: static struct point const zero = {0,0};
4786: /* AIX XL C 1.02.0.0 rejects this.
4787: It does not let you subtract one const X* pointer from another in
4788: an arm of an if-expression whose if-part is not a constant
4789: expression */
4790: const char *g = "string";
4791: pcpcc = &g + (g ? g-g : 0);
4792: /* HPUX 7.0 cc rejects these. */
4793: ++pcpcc;
4794: ppc = (char**) pcpcc;
4795: pcpcc = (char const *const *) ppc;
4796: { /* SCO 3.2v4 cc rejects this. */
4797: char *t;
4798: char const *s = 0 ? (char *) 0 : (char const *) 0;
4799:
4800: *t++ = 0;
4801: if (s) return 0;
4802: }
4803: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4804: int x[] = {25, 17};
4805: const int *foo = &x[0];
4806: ++foo;
4807: }
4808: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4809: typedef const int *iptr;
4810: iptr p = 0;
4811: ++p;
4812: }
4813: { /* AIX XL C 1.02.0.0 rejects this saying
4814: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4815: struct s { int j; const int *ap[3]; };
4816: struct s *b; b->j = 5;
4817: }
4818: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4819: const int foo = 10;
4820: if (!foo) return 0;
4821: }
4822: return !cs[0] && !zero.x;
4823: #endif
4824:
4825: ;
4826: return 0;
4827: }
4828: _ACEOF
4829: rm -f conftest.$ac_objext
4830: if { (ac_try="$ac_compile"
4831: case "(($ac_try" in
4832: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833: *) ac_try_echo=$ac_try;;
4834: esac
4835: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4836: (eval "$ac_compile") 2>conftest.er1
4837: ac_status=$?
4838: grep -v '^ *+' conftest.er1 >conftest.err
4839: rm -f conftest.er1
4840: cat conftest.err >&5
4841: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842: (exit $ac_status); } && {
4843: test -z "$ac_c_werror_flag" ||
4844: test ! -s conftest.err
4845: } && test -s conftest.$ac_objext; then
4846: ac_cv_c_const=yes
4847: else
4848: echo "$as_me: failed program was:" >&5
4849: sed 's/^/| /' conftest.$ac_ext >&5
4850:
4851: ac_cv_c_const=no
4852: fi
4853:
4854: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4855: fi
4856: { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4857: echo "${ECHO_T}$ac_cv_c_const" >&6; }
4858: if test $ac_cv_c_const = no; then
4859:
4860: cat >>confdefs.h <<\_ACEOF
4861: #define const
4862: _ACEOF
4863:
4864: fi
4865:
4866: { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4867: echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4868: if test "${ac_cv_header_time+set}" = set; then
4869: echo $ECHO_N "(cached) $ECHO_C" >&6
4870: else
4871: cat >conftest.$ac_ext <<_ACEOF
4872: /* confdefs.h. */
4873: _ACEOF
4874: cat confdefs.h >>conftest.$ac_ext
4875: cat >>conftest.$ac_ext <<_ACEOF
4876: /* end confdefs.h. */
4877: #include <sys/types.h>
4878: #include <sys/time.h>
4879: #include <time.h>
4880:
4881: int
4882: main ()
4883: {
4884: if ((struct tm *) 0)
4885: return 0;
4886: ;
4887: return 0;
4888: }
4889: _ACEOF
4890: rm -f conftest.$ac_objext
4891: if { (ac_try="$ac_compile"
4892: case "(($ac_try" in
4893: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4894: *) ac_try_echo=$ac_try;;
4895: esac
4896: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4897: (eval "$ac_compile") 2>conftest.er1
4898: ac_status=$?
4899: grep -v '^ *+' conftest.er1 >conftest.err
4900: rm -f conftest.er1
4901: cat conftest.err >&5
4902: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903: (exit $ac_status); } && {
4904: test -z "$ac_c_werror_flag" ||
4905: test ! -s conftest.err
4906: } && test -s conftest.$ac_objext; then
4907: ac_cv_header_time=yes
4908: else
4909: echo "$as_me: failed program was:" >&5
4910: sed 's/^/| /' conftest.$ac_ext >&5
4911:
4912: ac_cv_header_time=no
4913: fi
4914:
4915: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4916: fi
4917: { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4918: echo "${ECHO_T}$ac_cv_header_time" >&6; }
4919: if test $ac_cv_header_time = yes; then
4920:
4921: cat >>confdefs.h <<\_ACEOF
4922: #define TIME_WITH_SYS_TIME 1
4923: _ACEOF
4924:
4925: fi
4926:
4927: { echo "$as_me:$LINENO: checking for working volatile" >&5
4928: echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
4929: if test "${ac_cv_c_volatile+set}" = set; then
4930: echo $ECHO_N "(cached) $ECHO_C" >&6
4931: else
4932: cat >conftest.$ac_ext <<_ACEOF
4933: /* confdefs.h. */
4934: _ACEOF
4935: cat confdefs.h >>conftest.$ac_ext
4936: cat >>conftest.$ac_ext <<_ACEOF
4937: /* end confdefs.h. */
4938:
4939: int
4940: main ()
4941: {
4942:
4943: volatile int x;
4944: int * volatile y = (int *) 0;
4945: return !x && !y;
4946: ;
4947: return 0;
4948: }
4949: _ACEOF
4950: rm -f conftest.$ac_objext
4951: if { (ac_try="$ac_compile"
4952: case "(($ac_try" in
4953: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4954: *) ac_try_echo=$ac_try;;
4955: esac
4956: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4957: (eval "$ac_compile") 2>conftest.er1
4958: ac_status=$?
4959: grep -v '^ *+' conftest.er1 >conftest.err
4960: rm -f conftest.er1
4961: cat conftest.err >&5
4962: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963: (exit $ac_status); } && {
4964: test -z "$ac_c_werror_flag" ||
4965: test ! -s conftest.err
4966: } && test -s conftest.$ac_objext; then
4967: ac_cv_c_volatile=yes
4968: else
4969: echo "$as_me: failed program was:" >&5
4970: sed 's/^/| /' conftest.$ac_ext >&5
4971:
4972: ac_cv_c_volatile=no
4973: fi
4974:
4975: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4976: fi
4977: { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
4978: echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
4979: if test $ac_cv_c_volatile = no; then
4980:
4981: cat >>confdefs.h <<\_ACEOF
4982: #define volatile
4983: _ACEOF
4984:
4985: fi
4986:
4987:
4988: { echo "$as_me:$LINENO: checking for uint8_t" >&5
4989: echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
4990: if test "${ac_cv_c_uint8_t+set}" = set; then
4991: echo $ECHO_N "(cached) $ECHO_C" >&6
4992: else
4993: ac_cv_c_uint8_t=no
4994: for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
4995: 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
4996: cat >conftest.$ac_ext <<_ACEOF
4997: /* confdefs.h. */
4998: _ACEOF
4999: cat confdefs.h >>conftest.$ac_ext
5000: cat >>conftest.$ac_ext <<_ACEOF
5001: /* end confdefs.h. */
5002: $ac_includes_default
5003: int
5004: main ()
5005: {
5006: static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
5007: test_array [0] = 0
5008:
5009: ;
5010: return 0;
5011: }
5012: _ACEOF
5013: rm -f conftest.$ac_objext
5014: if { (ac_try="$ac_compile"
5015: case "(($ac_try" in
5016: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5017: *) ac_try_echo=$ac_try;;
5018: esac
5019: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5020: (eval "$ac_compile") 2>conftest.er1
5021: ac_status=$?
5022: grep -v '^ *+' conftest.er1 >conftest.err
5023: rm -f conftest.er1
5024: cat conftest.err >&5
5025: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026: (exit $ac_status); } && {
5027: test -z "$ac_c_werror_flag" ||
5028: test ! -s conftest.err
5029: } && test -s conftest.$ac_objext; then
5030: case $ac_type in
5031: uint8_t) ac_cv_c_uint8_t=yes ;;
5032: *) ac_cv_c_uint8_t=$ac_type ;;
5033: esac
5034:
5035: else
5036: echo "$as_me: failed program was:" >&5
5037: sed 's/^/| /' conftest.$ac_ext >&5
5038:
5039:
5040: fi
5041:
5042: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5043: test "$ac_cv_c_uint8_t" != no && break
5044: done
5045: fi
5046: { echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
5047: echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
5048: case $ac_cv_c_uint8_t in #(
5049: no|yes) ;; #(
5050: *)
5051:
5052: cat >>confdefs.h <<\_ACEOF
5053: #define _UINT8_T 1
5054: _ACEOF
5055:
5056:
5057: cat >>confdefs.h <<_ACEOF
5058: #define uint8_t $ac_cv_c_uint8_t
5059: _ACEOF
5060: ;;
5061: esac
5062:
5063:
5064: { echo "$as_me:$LINENO: checking for uint16_t" >&5
5065: echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
5066: if test "${ac_cv_c_uint16_t+set}" = set; then
5067: echo $ECHO_N "(cached) $ECHO_C" >&6
5068: else
5069: ac_cv_c_uint16_t=no
5070: for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
5071: 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
5072: cat >conftest.$ac_ext <<_ACEOF
5073: /* confdefs.h. */
5074: _ACEOF
5075: cat confdefs.h >>conftest.$ac_ext
5076: cat >>conftest.$ac_ext <<_ACEOF
5077: /* end confdefs.h. */
5078: $ac_includes_default
5079: int
5080: main ()
5081: {
5082: static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
5083: test_array [0] = 0
5084:
5085: ;
5086: return 0;
5087: }
5088: _ACEOF
5089: rm -f conftest.$ac_objext
5090: if { (ac_try="$ac_compile"
5091: case "(($ac_try" in
5092: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093: *) ac_try_echo=$ac_try;;
5094: esac
5095: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5096: (eval "$ac_compile") 2>conftest.er1
5097: ac_status=$?
5098: grep -v '^ *+' conftest.er1 >conftest.err
5099: rm -f conftest.er1
5100: cat conftest.err >&5
5101: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102: (exit $ac_status); } && {
5103: test -z "$ac_c_werror_flag" ||
5104: test ! -s conftest.err
5105: } && test -s conftest.$ac_objext; then
5106: case $ac_type in
5107: uint16_t) ac_cv_c_uint16_t=yes ;;
5108: *) ac_cv_c_uint16_t=$ac_type ;;
5109: esac
5110:
5111: else
5112: echo "$as_me: failed program was:" >&5
5113: sed 's/^/| /' conftest.$ac_ext >&5
5114:
5115:
5116: fi
5117:
5118: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5119: test "$ac_cv_c_uint16_t" != no && break
5120: done
5121: fi
5122: { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
5123: echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
5124: case $ac_cv_c_uint16_t in #(
5125: no|yes) ;; #(
5126: *)
5127:
5128:
5129: cat >>confdefs.h <<_ACEOF
5130: #define uint16_t $ac_cv_c_uint16_t
5131: _ACEOF
5132: ;;
5133: esac
5134:
5135:
5136: { echo "$as_me:$LINENO: checking for uint32_t" >&5
5137: echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
5138: if test "${ac_cv_c_uint32_t+set}" = set; then
5139: echo $ECHO_N "(cached) $ECHO_C" >&6
5140: else
5141: ac_cv_c_uint32_t=no
5142: for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
5143: 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
5144: cat >conftest.$ac_ext <<_ACEOF
5145: /* confdefs.h. */
5146: _ACEOF
5147: cat confdefs.h >>conftest.$ac_ext
5148: cat >>conftest.$ac_ext <<_ACEOF
5149: /* end confdefs.h. */
5150: $ac_includes_default
5151: int
5152: main ()
5153: {
5154: static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
5155: test_array [0] = 0
5156:
5157: ;
5158: return 0;
5159: }
5160: _ACEOF
5161: rm -f conftest.$ac_objext
5162: if { (ac_try="$ac_compile"
5163: case "(($ac_try" in
5164: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5165: *) ac_try_echo=$ac_try;;
5166: esac
5167: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5168: (eval "$ac_compile") 2>conftest.er1
5169: ac_status=$?
5170: grep -v '^ *+' conftest.er1 >conftest.err
5171: rm -f conftest.er1
5172: cat conftest.err >&5
5173: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174: (exit $ac_status); } && {
5175: test -z "$ac_c_werror_flag" ||
5176: test ! -s conftest.err
5177: } && test -s conftest.$ac_objext; then
5178: case $ac_type in
5179: uint32_t) ac_cv_c_uint32_t=yes ;;
5180: *) ac_cv_c_uint32_t=$ac_type ;;
5181: esac
5182:
5183: else
5184: echo "$as_me: failed program was:" >&5
5185: sed 's/^/| /' conftest.$ac_ext >&5
5186:
5187:
5188: fi
5189:
5190: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5191: test "$ac_cv_c_uint32_t" != no && break
5192: done
5193: fi
5194: { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
5195: echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
5196: case $ac_cv_c_uint32_t in #(
5197: no|yes) ;; #(
5198: *)
5199:
5200: cat >>confdefs.h <<\_ACEOF
5201: #define _UINT32_T 1
5202: _ACEOF
5203:
5204:
5205: cat >>confdefs.h <<_ACEOF
5206: #define uint32_t $ac_cv_c_uint32_t
5207: _ACEOF
5208: ;;
5209: esac
5210:
5211:
5212: { echo "$as_me:$LINENO: checking for uint64_t" >&5
5213: echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
5214: if test "${ac_cv_c_uint64_t+set}" = set; then
5215: echo $ECHO_N "(cached) $ECHO_C" >&6
5216: else
5217: ac_cv_c_uint64_t=no
5218: for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
5219: 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
5220: cat >conftest.$ac_ext <<_ACEOF
5221: /* confdefs.h. */
5222: _ACEOF
5223: cat confdefs.h >>conftest.$ac_ext
5224: cat >>conftest.$ac_ext <<_ACEOF
5225: /* end confdefs.h. */
5226: $ac_includes_default
5227: int
5228: main ()
5229: {
5230: static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
5231: test_array [0] = 0
5232:
5233: ;
5234: return 0;
5235: }
5236: _ACEOF
5237: rm -f conftest.$ac_objext
5238: if { (ac_try="$ac_compile"
5239: case "(($ac_try" in
5240: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241: *) ac_try_echo=$ac_try;;
5242: esac
5243: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5244: (eval "$ac_compile") 2>conftest.er1
5245: ac_status=$?
5246: grep -v '^ *+' conftest.er1 >conftest.err
5247: rm -f conftest.er1
5248: cat conftest.err >&5
5249: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250: (exit $ac_status); } && {
5251: test -z "$ac_c_werror_flag" ||
5252: test ! -s conftest.err
5253: } && test -s conftest.$ac_objext; then
5254: case $ac_type in
5255: uint64_t) ac_cv_c_uint64_t=yes ;;
5256: *) ac_cv_c_uint64_t=$ac_type ;;
5257: esac
5258:
5259: else
5260: echo "$as_me: failed program was:" >&5
5261: sed 's/^/| /' conftest.$ac_ext >&5
5262:
5263:
5264: fi
5265:
5266: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5267: test "$ac_cv_c_uint64_t" != no && break
5268: done
5269: fi
5270: { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
5271: echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
5272: case $ac_cv_c_uint64_t in #(
5273: no|yes) ;; #(
5274: *)
5275:
5276: cat >>confdefs.h <<\_ACEOF
5277: #define _UINT64_T 1
5278: _ACEOF
5279:
5280:
5281: cat >>confdefs.h <<_ACEOF
5282: #define uint64_t $ac_cv_c_uint64_t
5283: _ACEOF
5284: ;;
5285: esac
5286:
5287:
5288: # Checks for library functions.
5289: if test $ac_cv_c_compiler_gnu = yes; then
5290: { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5291: echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
5292: if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5293: echo $ECHO_N "(cached) $ECHO_C" >&6
5294: else
5295: ac_pattern="Autoconf.*'x'"
5296: cat >conftest.$ac_ext <<_ACEOF
5297: /* confdefs.h. */
5298: _ACEOF
5299: cat confdefs.h >>conftest.$ac_ext
5300: cat >>conftest.$ac_ext <<_ACEOF
5301: /* end confdefs.h. */
5302: #include <sgtty.h>
5303: Autoconf TIOCGETP
5304: _ACEOF
5305: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5306: $EGREP "$ac_pattern" >/dev/null 2>&1; then
5307: ac_cv_prog_gcc_traditional=yes
5308: else
5309: ac_cv_prog_gcc_traditional=no
5310: fi
5311: rm -f conftest*
5312:
5313:
5314: if test $ac_cv_prog_gcc_traditional = no; then
5315: cat >conftest.$ac_ext <<_ACEOF
5316: /* confdefs.h. */
5317: _ACEOF
5318: cat confdefs.h >>conftest.$ac_ext
5319: cat >>conftest.$ac_ext <<_ACEOF
5320: /* end confdefs.h. */
5321: #include <termio.h>
5322: Autoconf TCGETA
5323: _ACEOF
5324: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5325: $EGREP "$ac_pattern" >/dev/null 2>&1; then
5326: ac_cv_prog_gcc_traditional=yes
5327: fi
5328: rm -f conftest*
5329:
5330: fi
5331: fi
5332: { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5333: echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
5334: if test $ac_cv_prog_gcc_traditional = yes; then
5335: CC="$CC -traditional"
5336: fi
5337: fi
5338:
5339:
5340:
5341: for ac_header in sys/select.h sys/socket.h
5342: do
5343: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5344: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5345: { echo "$as_me:$LINENO: checking for $ac_header" >&5
5346: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5347: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5348: echo $ECHO_N "(cached) $ECHO_C" >&6
5349: fi
5350: ac_res=`eval echo '${'$as_ac_Header'}'`
5351: { echo "$as_me:$LINENO: result: $ac_res" >&5
5352: echo "${ECHO_T}$ac_res" >&6; }
5353: else
5354: # Is the header compilable?
5355: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5356: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5357: cat >conftest.$ac_ext <<_ACEOF
5358: /* confdefs.h. */
5359: _ACEOF
5360: cat confdefs.h >>conftest.$ac_ext
5361: cat >>conftest.$ac_ext <<_ACEOF
5362: /* end confdefs.h. */
5363: $ac_includes_default
5364: #include <$ac_header>
5365: _ACEOF
5366: rm -f conftest.$ac_objext
5367: if { (ac_try="$ac_compile"
5368: case "(($ac_try" in
5369: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5370: *) ac_try_echo=$ac_try;;
5371: esac
5372: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5373: (eval "$ac_compile") 2>conftest.er1
5374: ac_status=$?
5375: grep -v '^ *+' conftest.er1 >conftest.err
5376: rm -f conftest.er1
5377: cat conftest.err >&5
5378: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379: (exit $ac_status); } && {
5380: test -z "$ac_c_werror_flag" ||
5381: test ! -s conftest.err
5382: } && test -s conftest.$ac_objext; then
5383: ac_header_compiler=yes
5384: else
5385: echo "$as_me: failed program was:" >&5
5386: sed 's/^/| /' conftest.$ac_ext >&5
5387:
5388: ac_header_compiler=no
5389: fi
5390:
5391: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5392: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5393: echo "${ECHO_T}$ac_header_compiler" >&6; }
5394:
5395: # Is the header present?
5396: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5397: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5398: cat >conftest.$ac_ext <<_ACEOF
5399: /* confdefs.h. */
5400: _ACEOF
5401: cat confdefs.h >>conftest.$ac_ext
5402: cat >>conftest.$ac_ext <<_ACEOF
5403: /* end confdefs.h. */
5404: #include <$ac_header>
5405: _ACEOF
5406: if { (ac_try="$ac_cpp conftest.$ac_ext"
5407: case "(($ac_try" in
5408: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409: *) ac_try_echo=$ac_try;;
5410: esac
5411: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5412: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5413: ac_status=$?
5414: grep -v '^ *+' conftest.er1 >conftest.err
5415: rm -f conftest.er1
5416: cat conftest.err >&5
5417: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418: (exit $ac_status); } >/dev/null && {
5419: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5420: test ! -s conftest.err
5421: }; then
5422: ac_header_preproc=yes
5423: else
5424: echo "$as_me: failed program was:" >&5
5425: sed 's/^/| /' conftest.$ac_ext >&5
5426:
5427: ac_header_preproc=no
5428: fi
5429:
5430: rm -f conftest.err conftest.$ac_ext
5431: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5432: echo "${ECHO_T}$ac_header_preproc" >&6; }
5433:
5434: # So? What about this header?
5435: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5436: yes:no: )
5437: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5438: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5439: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5440: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5441: ac_header_preproc=yes
5442: ;;
5443: no:yes:* )
5444: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5445: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5446: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5447: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5448: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5449: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5450: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5451: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5452: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5453: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5454: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5455: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5456: ( cat <<\_ASBOX
5457: ## ---------------------------------- ##
5458: ## Report this to thomas@habets.pp.se ##
5459: ## ---------------------------------- ##
5460: _ASBOX
5461: ) | sed "s/^/$as_me: WARNING: /" >&2
5462: ;;
5463: esac
5464: { echo "$as_me:$LINENO: checking for $ac_header" >&5
5465: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5466: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5467: echo $ECHO_N "(cached) $ECHO_C" >&6
5468: else
5469: eval "$as_ac_Header=\$ac_header_preproc"
5470: fi
5471: ac_res=`eval echo '${'$as_ac_Header'}'`
5472: { echo "$as_me:$LINENO: result: $ac_res" >&5
5473: echo "${ECHO_T}$ac_res" >&6; }
5474:
5475: fi
5476: if test `eval echo '${'$as_ac_Header'}'` = yes; then
5477: cat >>confdefs.h <<_ACEOF
5478: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5479: _ACEOF
5480:
5481: fi
5482:
5483: done
5484:
5485: { echo "$as_me:$LINENO: checking types of arguments for select" >&5
5486: echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
5487: if test "${ac_cv_func_select_args+set}" = set; then
5488: echo $ECHO_N "(cached) $ECHO_C" >&6
5489: else
5490: for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
5491: for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
5492: for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
5493: cat >conftest.$ac_ext <<_ACEOF
5494: /* confdefs.h. */
5495: _ACEOF
5496: cat confdefs.h >>conftest.$ac_ext
5497: cat >>conftest.$ac_ext <<_ACEOF
5498: /* end confdefs.h. */
5499: $ac_includes_default
5500: #ifdef HAVE_SYS_SELECT_H
5501: # include <sys/select.h>
5502: #endif
5503: #ifdef HAVE_SYS_SOCKET_H
5504: # include <sys/socket.h>
5505: #endif
5506:
5507: int
5508: main ()
5509: {
5510: extern int select ($ac_arg1,
5511: $ac_arg234, $ac_arg234, $ac_arg234,
5512: $ac_arg5);
5513: ;
5514: return 0;
5515: }
5516: _ACEOF
5517: rm -f conftest.$ac_objext
5518: if { (ac_try="$ac_compile"
5519: case "(($ac_try" in
5520: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521: *) ac_try_echo=$ac_try;;
5522: esac
5523: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5524: (eval "$ac_compile") 2>conftest.er1
5525: ac_status=$?
5526: grep -v '^ *+' conftest.er1 >conftest.err
5527: rm -f conftest.er1
5528: cat conftest.err >&5
5529: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530: (exit $ac_status); } && {
5531: test -z "$ac_c_werror_flag" ||
5532: test ! -s conftest.err
5533: } && test -s conftest.$ac_objext; then
5534: ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
5535: else
5536: echo "$as_me: failed program was:" >&5
5537: sed 's/^/| /' conftest.$ac_ext >&5
5538:
5539:
5540: fi
5541:
5542: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5543: done
5544: done
5545: done
5546: # Provide a safe default value.
5547: : ${ac_cv_func_select_args='int,int *,struct timeval *'}
5548:
5549: fi
5550: { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
5551: echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
5552: ac_save_IFS=$IFS; IFS=','
5553: set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
5554: IFS=$ac_save_IFS
5555: shift
5556:
5557: cat >>confdefs.h <<_ACEOF
5558: #define SELECT_TYPE_ARG1 $1
5559: _ACEOF
5560:
5561:
5562: cat >>confdefs.h <<_ACEOF
5563: #define SELECT_TYPE_ARG234 ($2)
5564: _ACEOF
5565:
5566:
5567: cat >>confdefs.h <<_ACEOF
5568: #define SELECT_TYPE_ARG5 ($3)
5569: _ACEOF
5570:
5571: rm -f conftest*
5572:
5573: { echo "$as_me:$LINENO: checking for function prototypes" >&5
5574: echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
5575: if test "$ac_cv_prog_cc_c89" != no; then
5576: { echo "$as_me:$LINENO: result: yes" >&5
5577: echo "${ECHO_T}yes" >&6; }
5578:
5579: cat >>confdefs.h <<\_ACEOF
5580: #define PROTOTYPES 1
5581: _ACEOF
5582:
5583:
5584: cat >>confdefs.h <<\_ACEOF
5585: #define __PROTOTYPES 1
5586: _ACEOF
5587:
5588: else
5589: { echo "$as_me:$LINENO: result: no" >&5
5590: echo "${ECHO_T}no" >&6; }
5591: fi
5592:
5593: { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
5594: echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
5595: if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
5596: echo $ECHO_N "(cached) $ECHO_C" >&6
5597: else
5598: ac_cv_func_setvbuf_reversed=no
5599: cat >conftest.$ac_ext <<_ACEOF
5600: /* confdefs.h. */
5601: _ACEOF
5602: cat confdefs.h >>conftest.$ac_ext
5603: cat >>conftest.$ac_ext <<_ACEOF
5604: /* end confdefs.h. */
5605: #include <stdio.h>
5606: # ifdef PROTOTYPES
5607: int (setvbuf) (FILE *, int, char *, size_t);
5608: # endif
5609: int
5610: main ()
5611: {
5612: char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
5613: ;
5614: return 0;
5615: }
5616: _ACEOF
5617: rm -f conftest.$ac_objext conftest$ac_exeext
5618: if { (ac_try="$ac_link"
5619: case "(($ac_try" in
5620: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621: *) ac_try_echo=$ac_try;;
5622: esac
5623: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5624: (eval "$ac_link") 2>conftest.er1
5625: ac_status=$?
5626: grep -v '^ *+' conftest.er1 >conftest.err
5627: rm -f conftest.er1
5628: cat conftest.err >&5
5629: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630: (exit $ac_status); } && {
5631: test -z "$ac_c_werror_flag" ||
5632: test ! -s conftest.err
5633: } && test -s conftest$ac_exeext &&
5634: $as_test_x conftest$ac_exeext; then
5635: cat >conftest.$ac_ext <<_ACEOF
5636: /* confdefs.h. */
5637: _ACEOF
5638: cat confdefs.h >>conftest.$ac_ext
5639: cat >>conftest.$ac_ext <<_ACEOF
5640: /* end confdefs.h. */
5641: #include <stdio.h>
5642: # ifdef PROTOTYPES
5643: int (setvbuf) (FILE *, int, char *, size_t);
5644: # endif
5645: int
5646: main ()
5647: {
5648: char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
5649: ;
5650: return 0;
5651: }
5652: _ACEOF
5653: rm -f conftest.$ac_objext conftest$ac_exeext
5654: if { (ac_try="$ac_link"
5655: case "(($ac_try" in
5656: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657: *) ac_try_echo=$ac_try;;
5658: esac
5659: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5660: (eval "$ac_link") 2>conftest.er1
5661: ac_status=$?
5662: grep -v '^ *+' conftest.er1 >conftest.err
5663: rm -f conftest.er1
5664: cat conftest.err >&5
5665: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666: (exit $ac_status); } && {
5667: test -z "$ac_c_werror_flag" ||
5668: test ! -s conftest.err
5669: } && test -s conftest$ac_exeext &&
5670: $as_test_x conftest$ac_exeext; then
5671: # It compiles and links either way, so it must not be declared
5672: # with a prototype and most likely this is a K&R C compiler.
5673: # Try running it.
5674: if test "$cross_compiling" = yes; then
5675: : # Assume setvbuf is not reversed when cross-compiling.
5676: else
5677: cat >conftest.$ac_ext <<_ACEOF
5678: /* confdefs.h. */
5679: _ACEOF
5680: cat confdefs.h >>conftest.$ac_ext
5681: cat >>conftest.$ac_ext <<_ACEOF
5682: /* end confdefs.h. */
5683: $ac_includes_default
5684: int
5685: main ()
5686: {
5687: /* This call has the arguments reversed.
5688: A reversed system may check and see that the address of buf
5689: is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
5690: char buf;
5691: if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
5692: return 1;
5693: putchar ('\r');
5694: return 0; /* Non-reversed systems SEGV here. */
5695: ;
5696: return 0;
5697: }
5698: _ACEOF
5699: rm -f conftest$ac_exeext
5700: if { (ac_try="$ac_link"
5701: case "(($ac_try" in
5702: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703: *) ac_try_echo=$ac_try;;
5704: esac
5705: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5706: (eval "$ac_link") 2>&5
5707: ac_status=$?
5708: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5710: { (case "(($ac_try" in
5711: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5712: *) ac_try_echo=$ac_try;;
5713: esac
5714: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5715: (eval "$ac_try") 2>&5
5716: ac_status=$?
5717: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718: (exit $ac_status); }; }; then
5719: ac_cv_func_setvbuf_reversed=yes
5720: else
5721: echo "$as_me: program exited with status $ac_status" >&5
5722: echo "$as_me: failed program was:" >&5
5723: sed 's/^/| /' conftest.$ac_ext >&5
5724:
5725: fi
5726: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5727: fi
5728:
5729:
5730: ac_cv_func_setvbuf_reversed=yes
5731: else
5732: echo "$as_me: failed program was:" >&5
5733: sed 's/^/| /' conftest.$ac_ext >&5
5734:
5735:
5736: fi
5737:
5738: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5739: conftest$ac_exeext conftest.$ac_ext
5740: else
5741: echo "$as_me: failed program was:" >&5
5742: sed 's/^/| /' conftest.$ac_ext >&5
5743:
5744:
5745: fi
5746:
5747: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5748: conftest$ac_exeext conftest.$ac_ext
5749: fi
5750: { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
5751: echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
5752: if test $ac_cv_func_setvbuf_reversed = yes; then
5753:
5754: cat >>confdefs.h <<\_ACEOF
5755: #define SETVBUF_REVERSED 1
5756: _ACEOF
5757:
5758: fi
5759:
5760: { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5761: echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
5762: if test "${ac_cv_type_signal+set}" = set; then
5763: echo $ECHO_N "(cached) $ECHO_C" >&6
5764: else
5765: cat >conftest.$ac_ext <<_ACEOF
5766: /* confdefs.h. */
5767: _ACEOF
5768: cat confdefs.h >>conftest.$ac_ext
5769: cat >>conftest.$ac_ext <<_ACEOF
5770: /* end confdefs.h. */
5771: #include <sys/types.h>
5772: #include <signal.h>
5773:
5774: int
5775: main ()
5776: {
5777: return *(signal (0, 0)) (0) == 1;
5778: ;
5779: return 0;
5780: }
5781: _ACEOF
5782: rm -f conftest.$ac_objext
5783: if { (ac_try="$ac_compile"
5784: case "(($ac_try" in
5785: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786: *) ac_try_echo=$ac_try;;
5787: esac
5788: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5789: (eval "$ac_compile") 2>conftest.er1
5790: ac_status=$?
5791: grep -v '^ *+' conftest.er1 >conftest.err
5792: rm -f conftest.er1
5793: cat conftest.err >&5
5794: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795: (exit $ac_status); } && {
5796: test -z "$ac_c_werror_flag" ||
5797: test ! -s conftest.err
5798: } && test -s conftest.$ac_objext; then
5799: ac_cv_type_signal=int
5800: else
5801: echo "$as_me: failed program was:" >&5
5802: sed 's/^/| /' conftest.$ac_ext >&5
5803:
5804: ac_cv_type_signal=void
5805: fi
5806:
5807: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808: fi
5809: { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5810: echo "${ECHO_T}$ac_cv_type_signal" >&6; }
5811:
5812: cat >>confdefs.h <<_ACEOF
5813: #define RETSIGTYPE $ac_cv_type_signal
5814: _ACEOF
5815:
5816:
5817:
5818:
5819:
5820:
5821:
5822:
5823:
5824: for ac_func in gettimeofday memset select strchr strdup strerror strstr
5825: do
5826: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5827: { echo "$as_me:$LINENO: checking for $ac_func" >&5
5828: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5829: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5830: echo $ECHO_N "(cached) $ECHO_C" >&6
5831: else
5832: cat >conftest.$ac_ext <<_ACEOF
5833: /* confdefs.h. */
5834: _ACEOF
5835: cat confdefs.h >>conftest.$ac_ext
5836: cat >>conftest.$ac_ext <<_ACEOF
5837: /* end confdefs.h. */
5838: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5839: For example, HP-UX 11i <limits.h> declares gettimeofday. */
5840: #define $ac_func innocuous_$ac_func
5841:
5842: /* System header to define __stub macros and hopefully few prototypes,
5843: which can conflict with char $ac_func (); below.
5844: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5845: <limits.h> exists even on freestanding compilers. */
5846:
5847: #ifdef __STDC__
5848: # include <limits.h>
5849: #else
5850: # include <assert.h>
5851: #endif
5852:
5853: #undef $ac_func
5854:
5855: /* Override any GCC internal prototype to avoid an error.
5856: Use char because int might match the return type of a GCC
5857: builtin and then its argument prototype would still apply. */
5858: #ifdef __cplusplus
5859: extern "C"
5860: #endif
5861: char $ac_func ();
5862: /* The GNU C library defines this for functions which it implements
5863: to always fail with ENOSYS. Some functions are actually named
5864: something starting with __ and the normal name is an alias. */
5865: #if defined __stub_$ac_func || defined __stub___$ac_func
5866: choke me
5867: #endif
5868:
5869: int
5870: main ()
5871: {
5872: return $ac_func ();
5873: ;
5874: return 0;
5875: }
5876: _ACEOF
5877: rm -f conftest.$ac_objext conftest$ac_exeext
5878: if { (ac_try="$ac_link"
5879: case "(($ac_try" in
5880: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881: *) ac_try_echo=$ac_try;;
5882: esac
5883: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884: (eval "$ac_link") 2>conftest.er1
5885: ac_status=$?
5886: grep -v '^ *+' conftest.er1 >conftest.err
5887: rm -f conftest.er1
5888: cat conftest.err >&5
5889: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890: (exit $ac_status); } && {
5891: test -z "$ac_c_werror_flag" ||
5892: test ! -s conftest.err
5893: } && test -s conftest$ac_exeext &&
5894: $as_test_x conftest$ac_exeext; then
5895: eval "$as_ac_var=yes"
5896: else
5897: echo "$as_me: failed program was:" >&5
5898: sed 's/^/| /' conftest.$ac_ext >&5
5899:
5900: eval "$as_ac_var=no"
5901: fi
5902:
5903: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5904: conftest$ac_exeext conftest.$ac_ext
5905: fi
5906: ac_res=`eval echo '${'$as_ac_var'}'`
5907: { echo "$as_me:$LINENO: result: $ac_res" >&5
5908: echo "${ECHO_T}$ac_res" >&6; }
5909: if test `eval echo '${'$as_ac_var'}'` = yes; then
5910: cat >>confdefs.h <<_ACEOF
5911: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5912: _ACEOF
5913:
5914: fi
5915: done
5916:
5917:
5918: case "$target_os" in
5919: *linux*)
5920: case " $LIBOBJS " in
5921: *" findif_linux.$ac_objext "* ) ;;
5922: *) LIBOBJS="$LIBOBJS findif_linux.$ac_objext"
5923: ;;
5924: esac
5925:
5926: ;;
5927: *freebsd*|*openbsd*|*solaris*)
5928: case " $LIBOBJS " in
5929: *" findif_bsd.$ac_objext "* ) ;;
5930: *) LIBOBJS="$LIBOBJS findif_bsd.$ac_objext"
5931: ;;
5932: esac
5933:
5934: ;;
5935: *)
5936: case " $LIBOBJS " in
5937: *" findif_other.$ac_objext "* ) ;;
5938: *) LIBOBJS="$LIBOBJS findif_other.$ac_objext"
5939: ;;
5940: esac
5941:
5942: ;;
5943: esac
5944: ac_config_files="$ac_config_files Makefile"
5945:
5946: ac_config_files="$ac_config_files src/Makefile"
5947:
5948: ac_config_files="$ac_config_files doc/Makefile"
5949:
5950: cat >confcache <<\_ACEOF
5951: # This file is a shell script that caches the results of configure
5952: # tests run on this system so they can be shared between configure
5953: # scripts and configure runs, see configure's option --config-cache.
5954: # It is not useful on other systems. If it contains results you don't
5955: # want to keep, you may remove or edit it.
5956: #
5957: # config.status only pays attention to the cache file if you give it
5958: # the --recheck option to rerun configure.
5959: #
5960: # `ac_cv_env_foo' variables (set or unset) will be overridden when
5961: # loading this file, other *unset* `ac_cv_foo' will be assigned the
5962: # following values.
5963:
5964: _ACEOF
5965:
5966: # The following way of writing the cache mishandles newlines in values,
5967: # but we know of no workaround that is simple, portable, and efficient.
5968: # So, we kill variables containing newlines.
5969: # Ultrix sh set writes to stderr and can't be redirected directly,
5970: # and sets the high bit in the cache file unless we assign to the vars.
5971: (
5972: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5973: eval ac_val=\$$ac_var
5974: case $ac_val in #(
5975: *${as_nl}*)
5976: case $ac_var in #(
5977: *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5978: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5979: esac
5980: case $ac_var in #(
5981: _ | IFS | as_nl) ;; #(
5982: *) $as_unset $ac_var ;;
5983: esac ;;
5984: esac
5985: done
5986:
5987: (set) 2>&1 |
5988: case $as_nl`(ac_space=' '; set) 2>&1` in #(
5989: *${as_nl}ac_space=\ *)
5990: # `set' does not quote correctly, so add quotes (double-quote
5991: # substitution turns \\\\ into \\, and sed turns \\ into \).
5992: sed -n \
5993: "s/'/'\\\\''/g;
5994: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5995: ;; #(
5996: *)
5997: # `set' quotes correctly as required by POSIX, so do not add quotes.
5998: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5999: ;;
6000: esac |
6001: sort
6002: ) |
6003: sed '
6004: /^ac_cv_env_/b end
6005: t clear
6006: :clear
6007: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6008: t end
6009: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6010: :end' >>confcache
6011: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6012: if test -w "$cache_file"; then
6013: test "x$cache_file" != "x/dev/null" &&
6014: { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6015: echo "$as_me: updating cache $cache_file" >&6;}
6016: cat confcache >$cache_file
6017: else
6018: { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6019: echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6020: fi
6021: fi
6022: rm -f confcache
6023:
6024: test "x$prefix" = xNONE && prefix=$ac_default_prefix
6025: # Let make expand exec_prefix.
6026: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6027:
6028: DEFS=-DHAVE_CONFIG_H
6029:
6030: ac_libobjs=
6031: ac_ltlibobjs=
6032: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6033: # 1. Remove the extension, and $U if already installed.
6034: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6035: ac_i=`echo "$ac_i" | sed "$ac_script"`
6036: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6037: # will be set to the directory where LIBOBJS objects are built.
6038: ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6039: ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6040: done
6041: LIBOBJS=$ac_libobjs
6042:
6043: LTLIBOBJS=$ac_ltlibobjs
6044:
6045:
6046: if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6047: { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6048: Usually this means the macro was only invoked conditionally." >&5
6049: echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6050: Usually this means the macro was only invoked conditionally." >&2;}
6051: { (exit 1); exit 1; }; }
6052: fi
6053: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6054: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6055: Usually this means the macro was only invoked conditionally." >&5
6056: echo "$as_me: error: conditional \"AMDEP\" was never defined.
6057: Usually this means the macro was only invoked conditionally." >&2;}
6058: { (exit 1); exit 1; }; }
6059: fi
6060: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6061: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6062: Usually this means the macro was only invoked conditionally." >&5
6063: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6064: Usually this means the macro was only invoked conditionally." >&2;}
6065: { (exit 1); exit 1; }; }
6066: fi
6067:
6068: : ${CONFIG_STATUS=./config.status}
6069: ac_clean_files_save=$ac_clean_files
6070: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6071: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6072: echo "$as_me: creating $CONFIG_STATUS" >&6;}
6073: cat >$CONFIG_STATUS <<_ACEOF
6074: #! $SHELL
6075: # Generated by $as_me.
6076: # Run this file to recreate the current configuration.
6077: # Compiler output produced by configure, useful for debugging
6078: # configure, is in config.log if it exists.
6079:
6080: debug=false
6081: ac_cs_recheck=false
6082: ac_cs_silent=false
6083: SHELL=\${CONFIG_SHELL-$SHELL}
6084: _ACEOF
6085:
6086: cat >>$CONFIG_STATUS <<\_ACEOF
6087: ## --------------------- ##
6088: ## M4sh Initialization. ##
6089: ## --------------------- ##
6090:
6091: # Be more Bourne compatible
6092: DUALCASE=1; export DUALCASE # for MKS sh
6093: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6094: emulate sh
6095: NULLCMD=:
6096: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6097: # is contrary to our usage. Disable this feature.
6098: alias -g '${1+"$@"}'='"$@"'
6099: setopt NO_GLOB_SUBST
6100: else
6101: case `(set -o) 2>/dev/null` in
6102: *posix*) set -o posix ;;
6103: esac
6104:
6105: fi
6106:
6107:
6108:
6109:
6110: # PATH needs CR
6111: # Avoid depending upon Character Ranges.
6112: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6113: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6114: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6115: as_cr_digits='0123456789'
6116: as_cr_alnum=$as_cr_Letters$as_cr_digits
6117:
6118: # The user is always right.
6119: if test "${PATH_SEPARATOR+set}" != set; then
6120: echo "#! /bin/sh" >conf$$.sh
6121: echo "exit 0" >>conf$$.sh
6122: chmod +x conf$$.sh
6123: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6124: PATH_SEPARATOR=';'
6125: else
6126: PATH_SEPARATOR=:
6127: fi
6128: rm -f conf$$.sh
6129: fi
6130:
6131: # Support unset when possible.
6132: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6133: as_unset=unset
6134: else
6135: as_unset=false
6136: fi
6137:
6138:
6139: # IFS
6140: # We need space, tab and new line, in precisely that order. Quoting is
6141: # there to prevent editors from complaining about space-tab.
6142: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6143: # splitting by setting IFS to empty value.)
6144: as_nl='
6145: '
6146: IFS=" "" $as_nl"
6147:
6148: # Find who we are. Look in the path if we contain no directory separator.
6149: case $0 in
6150: *[\\/]* ) as_myself=$0 ;;
6151: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152: for as_dir in $PATH
6153: do
6154: IFS=$as_save_IFS
6155: test -z "$as_dir" && as_dir=.
6156: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6157: done
6158: IFS=$as_save_IFS
6159:
6160: ;;
6161: esac
6162: # We did not find ourselves, most probably we were run as `sh COMMAND'
6163: # in which case we are not to be found in the path.
6164: if test "x$as_myself" = x; then
6165: as_myself=$0
6166: fi
6167: if test ! -f "$as_myself"; then
6168: echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6169: { (exit 1); exit 1; }
6170: fi
6171:
6172: # Work around bugs in pre-3.0 UWIN ksh.
6173: for as_var in ENV MAIL MAILPATH
6174: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6175: done
6176: PS1='$ '
6177: PS2='> '
6178: PS4='+ '
6179:
6180: # NLS nuisances.
6181: for as_var in \
6182: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6183: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6184: LC_TELEPHONE LC_TIME
6185: do
6186: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6187: eval $as_var=C; export $as_var
6188: else
6189: ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6190: fi
6191: done
6192:
6193: # Required to use basename.
6194: if expr a : '\(a\)' >/dev/null 2>&1 &&
6195: test "X`expr 00001 : '.*\(...\)'`" = X001; then
6196: as_expr=expr
6197: else
6198: as_expr=false
6199: fi
6200:
6201: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6202: as_basename=basename
6203: else
6204: as_basename=false
6205: fi
6206:
6207:
6208: # Name of the executable.
6209: as_me=`$as_basename -- "$0" ||
6210: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6211: X"$0" : 'X\(//\)$' \| \
6212: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6213: echo X/"$0" |
6214: sed '/^.*\/\([^/][^/]*\)\/*$/{
6215: s//\1/
6216: q
6217: }
6218: /^X\/\(\/\/\)$/{
6219: s//\1/
6220: q
6221: }
6222: /^X\/\(\/\).*/{
6223: s//\1/
6224: q
6225: }
6226: s/.*/./; q'`
6227:
6228: # CDPATH.
6229: $as_unset CDPATH
6230:
6231:
6232:
6233: as_lineno_1=$LINENO
6234: as_lineno_2=$LINENO
6235: test "x$as_lineno_1" != "x$as_lineno_2" &&
6236: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6237:
6238: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6239: # uniformly replaced by the line number. The first 'sed' inserts a
6240: # line-number line after each line using $LINENO; the second 'sed'
6241: # does the real work. The second script uses 'N' to pair each
6242: # line-number line with the line containing $LINENO, and appends
6243: # trailing '-' during substitution so that $LINENO is not a special
6244: # case at line end.
6245: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6246: # scripts with optimization help from Paolo Bonzini. Blame Lee
6247: # E. McMahon (1931-1989) for sed's syntax. :-)
6248: sed -n '
6249: p
6250: /[$]LINENO/=
6251: ' <$as_myself |
6252: sed '
6253: s/[$]LINENO.*/&-/
6254: t lineno
6255: b
6256: :lineno
6257: N
6258: :loop
6259: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6260: t loop
6261: s/-\n.*//
6262: ' >$as_me.lineno &&
6263: chmod +x "$as_me.lineno" ||
6264: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6265: { (exit 1); exit 1; }; }
6266:
6267: # Don't try to exec as it changes $[0], causing all sort of problems
6268: # (the dirname of $[0] is not the place where we might find the
6269: # original and so on. Autoconf is especially sensitive to this).
6270: . "./$as_me.lineno"
6271: # Exit status is that of the last command.
6272: exit
6273: }
6274:
6275:
6276: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6277: as_dirname=dirname
6278: else
6279: as_dirname=false
6280: fi
6281:
6282: ECHO_C= ECHO_N= ECHO_T=
6283: case `echo -n x` in
6284: -n*)
6285: case `echo 'x\c'` in
6286: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6287: *) ECHO_C='\c';;
6288: esac;;
6289: *)
6290: ECHO_N='-n';;
6291: esac
6292:
6293: if expr a : '\(a\)' >/dev/null 2>&1 &&
6294: test "X`expr 00001 : '.*\(...\)'`" = X001; then
6295: as_expr=expr
6296: else
6297: as_expr=false
6298: fi
6299:
6300: rm -f conf$$ conf$$.exe conf$$.file
6301: if test -d conf$$.dir; then
6302: rm -f conf$$.dir/conf$$.file
6303: else
6304: rm -f conf$$.dir
6305: mkdir conf$$.dir
6306: fi
6307: echo >conf$$.file
6308: if ln -s conf$$.file conf$$ 2>/dev/null; then
6309: as_ln_s='ln -s'
6310: # ... but there are two gotchas:
6311: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6312: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6313: # In both cases, we have to default to `cp -p'.
6314: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6315: as_ln_s='cp -p'
6316: elif ln conf$$.file conf$$ 2>/dev/null; then
6317: as_ln_s=ln
6318: else
6319: as_ln_s='cp -p'
6320: fi
6321: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6322: rmdir conf$$.dir 2>/dev/null
6323:
6324: if mkdir -p . 2>/dev/null; then
6325: as_mkdir_p=:
6326: else
6327: test -d ./-p && rmdir ./-p
6328: as_mkdir_p=false
6329: fi
6330:
6331: if test -x / >/dev/null 2>&1; then
6332: as_test_x='test -x'
6333: else
6334: if ls -dL / >/dev/null 2>&1; then
6335: as_ls_L_option=L
6336: else
6337: as_ls_L_option=
6338: fi
6339: as_test_x='
6340: eval sh -c '\''
6341: if test -d "$1"; then
6342: test -d "$1/.";
6343: else
6344: case $1 in
6345: -*)set "./$1";;
6346: esac;
6347: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6348: ???[sx]*):;;*)false;;esac;fi
6349: '\'' sh
6350: '
6351: fi
6352: as_executable_p=$as_test_x
6353:
6354: # Sed expression to map a string onto a valid CPP name.
6355: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6356:
6357: # Sed expression to map a string onto a valid variable name.
6358: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6359:
6360:
6361: exec 6>&1
6362:
6363: # Save the log message, to keep $[0] and so on meaningful, and to
6364: # report actual input values of CONFIG_FILES etc. instead of their
6365: # values after options handling.
6366: ac_log="
6367: This file was extended by arping $as_me 2.09, which was
6368: generated by GNU Autoconf 2.61. Invocation command line was
6369:
6370: CONFIG_FILES = $CONFIG_FILES
6371: CONFIG_HEADERS = $CONFIG_HEADERS
6372: CONFIG_LINKS = $CONFIG_LINKS
6373: CONFIG_COMMANDS = $CONFIG_COMMANDS
6374: $ $0 $@
6375:
6376: on `(hostname || uname -n) 2>/dev/null | sed 1q`
6377: "
6378:
6379: _ACEOF
6380:
6381: cat >>$CONFIG_STATUS <<_ACEOF
6382: # Files that config.status was made for.
6383: config_files="$ac_config_files"
6384: config_headers="$ac_config_headers"
6385: config_commands="$ac_config_commands"
6386:
6387: _ACEOF
6388:
6389: cat >>$CONFIG_STATUS <<\_ACEOF
6390: ac_cs_usage="\
6391: \`$as_me' instantiates files from templates according to the
6392: current configuration.
6393:
6394: Usage: $0 [OPTIONS] [FILE]...
6395:
6396: -h, --help print this help, then exit
6397: -V, --version print version number and configuration settings, then exit
6398: -q, --quiet do not print progress messages
6399: -d, --debug don't remove temporary files
6400: --recheck update $as_me by reconfiguring in the same conditions
6401: --file=FILE[:TEMPLATE]
6402: instantiate the configuration file FILE
6403: --header=FILE[:TEMPLATE]
6404: instantiate the configuration header FILE
6405:
6406: Configuration files:
6407: $config_files
6408:
6409: Configuration headers:
6410: $config_headers
6411:
6412: Configuration commands:
6413: $config_commands
6414:
6415: Report bugs to <bug-autoconf@gnu.org>."
6416:
6417: _ACEOF
6418: cat >>$CONFIG_STATUS <<_ACEOF
6419: ac_cs_version="\\
6420: arping config.status 2.09
6421: configured by $0, generated by GNU Autoconf 2.61,
6422: with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6423:
6424: Copyright (C) 2006 Free Software Foundation, Inc.
6425: This config.status script is free software; the Free Software Foundation
6426: gives unlimited permission to copy, distribute and modify it."
6427:
6428: ac_pwd='$ac_pwd'
6429: srcdir='$srcdir'
6430: INSTALL='$INSTALL'
6431: MKDIR_P='$MKDIR_P'
6432: _ACEOF
6433:
6434: cat >>$CONFIG_STATUS <<\_ACEOF
6435: # If no file are specified by the user, then we need to provide default
6436: # value. By we need to know if files were specified by the user.
6437: ac_need_defaults=:
6438: while test $# != 0
6439: do
6440: case $1 in
6441: --*=*)
6442: ac_option=`expr "X$1" : 'X\([^=]*\)='`
6443: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6444: ac_shift=:
6445: ;;
6446: *)
6447: ac_option=$1
6448: ac_optarg=$2
6449: ac_shift=shift
6450: ;;
6451: esac
6452:
6453: case $ac_option in
6454: # Handling of the options.
6455: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6456: ac_cs_recheck=: ;;
6457: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6458: echo "$ac_cs_version"; exit ;;
6459: --debug | --debu | --deb | --de | --d | -d )
6460: debug=: ;;
6461: --file | --fil | --fi | --f )
6462: $ac_shift
6463: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6464: ac_need_defaults=false;;
6465: --header | --heade | --head | --hea )
6466: $ac_shift
6467: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6468: ac_need_defaults=false;;
6469: --he | --h)
6470: # Conflict between --help and --header
6471: { echo "$as_me: error: ambiguous option: $1
6472: Try \`$0 --help' for more information." >&2
6473: { (exit 1); exit 1; }; };;
6474: --help | --hel | -h )
6475: echo "$ac_cs_usage"; exit ;;
6476: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6477: | -silent | --silent | --silen | --sile | --sil | --si | --s)
6478: ac_cs_silent=: ;;
6479:
6480: # This is an error.
6481: -*) { echo "$as_me: error: unrecognized option: $1
6482: Try \`$0 --help' for more information." >&2
6483: { (exit 1); exit 1; }; } ;;
6484:
6485: *) ac_config_targets="$ac_config_targets $1"
6486: ac_need_defaults=false ;;
6487:
6488: esac
6489: shift
6490: done
6491:
6492: ac_configure_extra_args=
6493:
6494: if $ac_cs_silent; then
6495: exec 6>/dev/null
6496: ac_configure_extra_args="$ac_configure_extra_args --silent"
6497: fi
6498:
6499: _ACEOF
6500: cat >>$CONFIG_STATUS <<_ACEOF
6501: if \$ac_cs_recheck; then
6502: echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6503: CONFIG_SHELL=$SHELL
6504: export CONFIG_SHELL
6505: exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6506: fi
6507:
6508: _ACEOF
6509: cat >>$CONFIG_STATUS <<\_ACEOF
6510: exec 5>>config.log
6511: {
6512: echo
6513: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6514: ## Running $as_me. ##
6515: _ASBOX
6516: echo "$ac_log"
6517: } >&5
6518:
6519: _ACEOF
6520: cat >>$CONFIG_STATUS <<_ACEOF
6521: #
6522: # INIT-COMMANDS
6523: #
6524: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6525:
6526: _ACEOF
6527:
6528: cat >>$CONFIG_STATUS <<\_ACEOF
6529:
6530: # Handling of arguments.
6531: for ac_config_target in $ac_config_targets
6532: do
6533: case $ac_config_target in
6534: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6535: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6536: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6537: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6538: "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
6539:
6540: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6541: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6542: { (exit 1); exit 1; }; };;
6543: esac
6544: done
6545:
6546:
6547: # If the user did not use the arguments to specify the items to instantiate,
6548: # then the envvar interface is used. Set only those that are not.
6549: # We use the long form for the default assignment because of an extremely
6550: # bizarre bug on SunOS 4.1.3.
6551: if $ac_need_defaults; then
6552: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6553: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6554: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6555: fi
6556:
6557: # Have a temporary directory for convenience. Make it in the build tree
6558: # simply because there is no reason against having it here, and in addition,
6559: # creating and moving files from /tmp can sometimes cause problems.
6560: # Hook for its removal unless debugging.
6561: # Note that there is a small window in which the directory will not be cleaned:
6562: # after its creation but before its name has been assigned to `$tmp'.
6563: $debug ||
6564: {
6565: tmp=
6566: trap 'exit_status=$?
6567: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6568: ' 0
6569: trap '{ (exit 1); exit 1; }' 1 2 13 15
6570: }
6571: # Create a (secure) tmp directory for tmp files.
6572:
6573: {
6574: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6575: test -n "$tmp" && test -d "$tmp"
6576: } ||
6577: {
6578: tmp=./conf$$-$RANDOM
6579: (umask 077 && mkdir "$tmp")
6580: } ||
6581: {
6582: echo "$me: cannot create a temporary directory in ." >&2
6583: { (exit 1); exit 1; }
6584: }
6585:
6586: #
6587: # Set up the sed scripts for CONFIG_FILES section.
6588: #
6589:
6590: # No need to generate the scripts if there are no CONFIG_FILES.
6591: # This happens for instance when ./config.status config.h
6592: if test -n "$CONFIG_FILES"; then
6593:
6594: _ACEOF
6595:
6596:
6597:
6598: ac_delim='%!_!# '
6599: for ac_last_try in false false false false false :; do
6600: cat >conf$$subs.sed <<_ACEOF
6601: SHELL!$SHELL$ac_delim
6602: PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
6603: PACKAGE_NAME!$PACKAGE_NAME$ac_delim
6604: PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
6605: PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
6606: PACKAGE_STRING!$PACKAGE_STRING$ac_delim
6607: PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
6608: exec_prefix!$exec_prefix$ac_delim
6609: prefix!$prefix$ac_delim
6610: program_transform_name!$program_transform_name$ac_delim
6611: bindir!$bindir$ac_delim
6612: sbindir!$sbindir$ac_delim
6613: libexecdir!$libexecdir$ac_delim
6614: datarootdir!$datarootdir$ac_delim
6615: datadir!$datadir$ac_delim
6616: sysconfdir!$sysconfdir$ac_delim
6617: sharedstatedir!$sharedstatedir$ac_delim
6618: localstatedir!$localstatedir$ac_delim
6619: includedir!$includedir$ac_delim
6620: oldincludedir!$oldincludedir$ac_delim
6621: docdir!$docdir$ac_delim
6622: infodir!$infodir$ac_delim
6623: htmldir!$htmldir$ac_delim
6624: dvidir!$dvidir$ac_delim
6625: pdfdir!$pdfdir$ac_delim
6626: psdir!$psdir$ac_delim
6627: libdir!$libdir$ac_delim
6628: localedir!$localedir$ac_delim
6629: mandir!$mandir$ac_delim
6630: DEFS!$DEFS$ac_delim
6631: ECHO_C!$ECHO_C$ac_delim
6632: ECHO_N!$ECHO_N$ac_delim
6633: ECHO_T!$ECHO_T$ac_delim
6634: LIBS!$LIBS$ac_delim
6635: build_alias!$build_alias$ac_delim
6636: host_alias!$host_alias$ac_delim
6637: target_alias!$target_alias$ac_delim
6638: build!$build$ac_delim
6639: build_cpu!$build_cpu$ac_delim
6640: build_vendor!$build_vendor$ac_delim
6641: build_os!$build_os$ac_delim
6642: host!$host$ac_delim
6643: host_cpu!$host_cpu$ac_delim
6644: host_vendor!$host_vendor$ac_delim
6645: host_os!$host_os$ac_delim
6646: target!$target$ac_delim
6647: target_cpu!$target_cpu$ac_delim
6648: target_vendor!$target_vendor$ac_delim
6649: target_os!$target_os$ac_delim
6650: INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
6651: INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
6652: INSTALL_DATA!$INSTALL_DATA$ac_delim
6653: am__isrc!$am__isrc$ac_delim
6654: CYGPATH_W!$CYGPATH_W$ac_delim
6655: PACKAGE!$PACKAGE$ac_delim
6656: VERSION!$VERSION$ac_delim
6657: ACLOCAL!$ACLOCAL$ac_delim
6658: AUTOCONF!$AUTOCONF$ac_delim
6659: AUTOMAKE!$AUTOMAKE$ac_delim
6660: AUTOHEADER!$AUTOHEADER$ac_delim
6661: MAKEINFO!$MAKEINFO$ac_delim
6662: install_sh!$install_sh$ac_delim
6663: STRIP!$STRIP$ac_delim
6664: INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
6665: mkdir_p!$mkdir_p$ac_delim
6666: AWK!$AWK$ac_delim
6667: SET_MAKE!$SET_MAKE$ac_delim
6668: am__leading_dot!$am__leading_dot$ac_delim
6669: AMTAR!$AMTAR$ac_delim
6670: am__tar!$am__tar$ac_delim
6671: am__untar!$am__untar$ac_delim
6672: MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
6673: MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
6674: MAINT!$MAINT$ac_delim
6675: CC!$CC$ac_delim
6676: CFLAGS!$CFLAGS$ac_delim
6677: LDFLAGS!$LDFLAGS$ac_delim
6678: CPPFLAGS!$CPPFLAGS$ac_delim
6679: ac_ct_CC!$ac_ct_CC$ac_delim
6680: EXEEXT!$EXEEXT$ac_delim
6681: OBJEXT!$OBJEXT$ac_delim
6682: DEPDIR!$DEPDIR$ac_delim
6683: am__include!$am__include$ac_delim
6684: am__quote!$am__quote$ac_delim
6685: AMDEP_TRUE!$AMDEP_TRUE$ac_delim
6686: AMDEP_FALSE!$AMDEP_FALSE$ac_delim
6687: AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
6688: CCDEPMODE!$CCDEPMODE$ac_delim
6689: am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
6690: am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
6691: CPP!$CPP$ac_delim
6692: GREP!$GREP$ac_delim
6693: EGREP!$EGREP$ac_delim
6694: LIBOBJS!$LIBOBJS$ac_delim
6695: LTLIBOBJS!$LTLIBOBJS$ac_delim
6696: _ACEOF
6697:
6698: if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
6699: break
6700: elif $ac_last_try; then
6701: { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6702: echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6703: { (exit 1); exit 1; }; }
6704: else
6705: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6706: fi
6707: done
6708:
6709: ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6710: if test -n "$ac_eof"; then
6711: ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6712: ac_eof=`expr $ac_eof + 1`
6713: fi
6714:
6715: cat >>$CONFIG_STATUS <<_ACEOF
6716: cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
6717: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
6718: _ACEOF
6719: sed '
6720: s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6721: s/^/s,@/; s/!/@,|#_!!_#|/
6722: :n
6723: t n
6724: s/'"$ac_delim"'$/,g/; t
6725: s/$/\\/; p
6726: N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6727: ' >>$CONFIG_STATUS <conf$$subs.sed
6728: rm -f conf$$subs.sed
6729: cat >>$CONFIG_STATUS <<_ACEOF
6730: :end
6731: s/|#_!!_#|//g
6732: CEOF$ac_eof
6733: _ACEOF
6734:
6735:
6736: # VPATH may cause trouble with some makes, so we remove $(srcdir),
6737: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6738: # trailing colons and then remove the whole line if VPATH becomes empty
6739: # (actually we leave an empty line to preserve line numbers).
6740: if test "x$srcdir" = x.; then
6741: ac_vpsub='/^[ ]*VPATH[ ]*=/{
6742: s/:*\$(srcdir):*/:/
6743: s/:*\${srcdir}:*/:/
6744: s/:*@srcdir@:*/:/
6745: s/^\([^=]*=[ ]*\):*/\1/
6746: s/:*$//
6747: s/^[^=]*=[ ]*$//
6748: }'
6749: fi
6750:
6751: cat >>$CONFIG_STATUS <<\_ACEOF
6752: fi # test -n "$CONFIG_FILES"
6753:
6754:
6755: for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
6756: do
6757: case $ac_tag in
6758: :[FHLC]) ac_mode=$ac_tag; continue;;
6759: esac
6760: case $ac_mode$ac_tag in
6761: :[FHL]*:*);;
6762: :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
6763: echo "$as_me: error: Invalid tag $ac_tag." >&2;}
6764: { (exit 1); exit 1; }; };;
6765: :[FH]-) ac_tag=-:-;;
6766: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6767: esac
6768: ac_save_IFS=$IFS
6769: IFS=:
6770: set x $ac_tag
6771: IFS=$ac_save_IFS
6772: shift
6773: ac_file=$1
6774: shift
6775:
6776: case $ac_mode in
6777: :L) ac_source=$1;;
6778: :[FH])
6779: ac_file_inputs=
6780: for ac_f
6781: do
6782: case $ac_f in
6783: -) ac_f="$tmp/stdin";;
6784: *) # Look for the file first in the build tree, then in the source tree
6785: # (if the path is not absolute). The absolute path cannot be DOS-style,
6786: # because $ac_f cannot contain `:'.
6787: test -f "$ac_f" ||
6788: case $ac_f in
6789: [\\/$]*) false;;
6790: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6791: esac ||
6792: { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6793: echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6794: { (exit 1); exit 1; }; };;
6795: esac
6796: ac_file_inputs="$ac_file_inputs $ac_f"
6797: done
6798:
6799: # Let's still pretend it is `configure' which instantiates (i.e., don't
6800: # use $as_me), people would be surprised to read:
6801: # /* config.h. Generated by config.status. */
6802: configure_input="Generated from "`IFS=:
6803: echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
6804: if test x"$ac_file" != x-; then
6805: configure_input="$ac_file. $configure_input"
6806: { echo "$as_me:$LINENO: creating $ac_file" >&5
6807: echo "$as_me: creating $ac_file" >&6;}
6808: fi
6809:
6810: case $ac_tag in
6811: *:-:* | *:-) cat >"$tmp/stdin";;
6812: esac
6813: ;;
6814: esac
6815:
6816: ac_dir=`$as_dirname -- "$ac_file" ||
6817: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6818: X"$ac_file" : 'X\(//\)[^/]' \| \
6819: X"$ac_file" : 'X\(//\)$' \| \
6820: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6821: echo X"$ac_file" |
6822: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6823: s//\1/
6824: q
6825: }
6826: /^X\(\/\/\)[^/].*/{
6827: s//\1/
6828: q
6829: }
6830: /^X\(\/\/\)$/{
6831: s//\1/
6832: q
6833: }
6834: /^X\(\/\).*/{
6835: s//\1/
6836: q
6837: }
6838: s/.*/./; q'`
6839: { as_dir="$ac_dir"
6840: case $as_dir in #(
6841: -*) as_dir=./$as_dir;;
6842: esac
6843: test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6844: as_dirs=
6845: while :; do
6846: case $as_dir in #(
6847: *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6848: *) as_qdir=$as_dir;;
6849: esac
6850: as_dirs="'$as_qdir' $as_dirs"
6851: as_dir=`$as_dirname -- "$as_dir" ||
6852: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6853: X"$as_dir" : 'X\(//\)[^/]' \| \
6854: X"$as_dir" : 'X\(//\)$' \| \
6855: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6856: echo X"$as_dir" |
6857: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6858: s//\1/
6859: q
6860: }
6861: /^X\(\/\/\)[^/].*/{
6862: s//\1/
6863: q
6864: }
6865: /^X\(\/\/\)$/{
6866: s//\1/
6867: q
6868: }
6869: /^X\(\/\).*/{
6870: s//\1/
6871: q
6872: }
6873: s/.*/./; q'`
6874: test -d "$as_dir" && break
6875: done
6876: test -z "$as_dirs" || eval "mkdir $as_dirs"
6877: } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6878: echo "$as_me: error: cannot create directory $as_dir" >&2;}
6879: { (exit 1); exit 1; }; }; }
6880: ac_builddir=.
6881:
6882: case "$ac_dir" in
6883: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6884: *)
6885: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6886: # A ".." for each directory in $ac_dir_suffix.
6887: ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
6888: case $ac_top_builddir_sub in
6889: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6890: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6891: esac ;;
6892: esac
6893: ac_abs_top_builddir=$ac_pwd
6894: ac_abs_builddir=$ac_pwd$ac_dir_suffix
6895: # for backward compatibility:
6896: ac_top_builddir=$ac_top_build_prefix
6897:
6898: case $srcdir in
6899: .) # We are building in place.
6900: ac_srcdir=.
6901: ac_top_srcdir=$ac_top_builddir_sub
6902: ac_abs_top_srcdir=$ac_pwd ;;
6903: [\\/]* | ?:[\\/]* ) # Absolute name.
6904: ac_srcdir=$srcdir$ac_dir_suffix;
6905: ac_top_srcdir=$srcdir
6906: ac_abs_top_srcdir=$srcdir ;;
6907: *) # Relative name.
6908: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6909: ac_top_srcdir=$ac_top_build_prefix$srcdir
6910: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6911: esac
6912: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6913:
6914:
6915: case $ac_mode in
6916: :F)
6917: #
6918: # CONFIG_FILE
6919: #
6920:
6921: case $INSTALL in
6922: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6923: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6924: esac
6925: ac_MKDIR_P=$MKDIR_P
6926: case $MKDIR_P in
6927: [\\/$]* | ?:[\\/]* ) ;;
6928: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6929: esac
6930: _ACEOF
6931:
6932: cat >>$CONFIG_STATUS <<\_ACEOF
6933: # If the template does not know about datarootdir, expand it.
6934: # FIXME: This hack should be removed a few years after 2.60.
6935: ac_datarootdir_hack=; ac_datarootdir_seen=
6936:
6937: case `sed -n '/datarootdir/ {
6938: p
6939: q
6940: }
6941: /@datadir@/p
6942: /@docdir@/p
6943: /@infodir@/p
6944: /@localedir@/p
6945: /@mandir@/p
6946: ' $ac_file_inputs` in
6947: *datarootdir*) ac_datarootdir_seen=yes;;
6948: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6949: { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6950: echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6951: _ACEOF
6952: cat >>$CONFIG_STATUS <<_ACEOF
6953: ac_datarootdir_hack='
6954: s&@datadir@&$datadir&g
6955: s&@docdir@&$docdir&g
6956: s&@infodir@&$infodir&g
6957: s&@localedir@&$localedir&g
6958: s&@mandir@&$mandir&g
6959: s&\\\${datarootdir}&$datarootdir&g' ;;
6960: esac
6961: _ACEOF
6962:
6963: # Neutralize VPATH when `$srcdir' = `.'.
6964: # Shell code in configure.ac might set extrasub.
6965: # FIXME: do we really want to maintain this feature?
6966: cat >>$CONFIG_STATUS <<_ACEOF
6967: sed "$ac_vpsub
6968: $extrasub
6969: _ACEOF
6970: cat >>$CONFIG_STATUS <<\_ACEOF
6971: :t
6972: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6973: s&@configure_input@&$configure_input&;t t
6974: s&@top_builddir@&$ac_top_builddir_sub&;t t
6975: s&@srcdir@&$ac_srcdir&;t t
6976: s&@abs_srcdir@&$ac_abs_srcdir&;t t
6977: s&@top_srcdir@&$ac_top_srcdir&;t t
6978: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6979: s&@builddir@&$ac_builddir&;t t
6980: s&@abs_builddir@&$ac_abs_builddir&;t t
6981: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6982: s&@INSTALL@&$ac_INSTALL&;t t
6983: s&@MKDIR_P@&$ac_MKDIR_P&;t t
6984: $ac_datarootdir_hack
6985: " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
6986:
6987: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6988: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6989: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6990: { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6991: which seems to be undefined. Please make sure it is defined." >&5
6992: echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6993: which seems to be undefined. Please make sure it is defined." >&2;}
6994:
6995: rm -f "$tmp/stdin"
6996: case $ac_file in
6997: -) cat "$tmp/out"; rm -f "$tmp/out";;
6998: *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
6999: esac
7000: ;;
7001: :H)
7002: #
7003: # CONFIG_HEADER
7004: #
7005: _ACEOF
7006:
7007: # Transform confdefs.h into a sed script `conftest.defines', that
7008: # substitutes the proper values into config.h.in to produce config.h.
7009: rm -f conftest.defines conftest.tail
7010: # First, append a space to every undef/define line, to ease matching.
7011: echo 's/$/ /' >conftest.defines
7012: # Then, protect against being on the right side of a sed subst, or in
7013: # an unquoted here document, in config.status. If some macros were
7014: # called several times there might be several #defines for the same
7015: # symbol, which is useless. But do not sort them, since the last
7016: # AC_DEFINE must be honored.
7017: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7018: # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
7019: # NAME is the cpp macro being defined, VALUE is the value it is being given.
7020: # PARAMS is the parameter list in the macro definition--in most cases, it's
7021: # just an empty string.
7022: ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
7023: ac_dB='\\)[ (].*,\\1define\\2'
7024: ac_dC=' '
7025: ac_dD=' ,'
7026:
7027: uniq confdefs.h |
7028: sed -n '
7029: t rset
7030: :rset
7031: s/^[ ]*#[ ]*define[ ][ ]*//
7032: t ok
7033: d
7034: :ok
7035: s/[\\&,]/\\&/g
7036: s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
7037: s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
7038: ' >>conftest.defines
7039:
7040: # Remove the space that was appended to ease matching.
7041: # Then replace #undef with comments. This is necessary, for
7042: # example, in the case of _POSIX_SOURCE, which is predefined and required
7043: # on some systems where configure will not decide to define it.
7044: # (The regexp can be short, since the line contains either #define or #undef.)
7045: echo 's/ $//
7046: s,^[ #]*u.*,/* & */,' >>conftest.defines
7047:
7048: # Break up conftest.defines:
7049: ac_max_sed_lines=50
7050:
7051: # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
7052: # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
7053: # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
7054: # et cetera.
7055: ac_in='$ac_file_inputs'
7056: ac_out='"$tmp/out1"'
7057: ac_nxt='"$tmp/out2"'
7058:
7059: while :
7060: do
7061: # Write a here document:
7062: cat >>$CONFIG_STATUS <<_ACEOF
7063: # First, check the format of the line:
7064: cat >"\$tmp/defines.sed" <<\\CEOF
7065: /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
7066: /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
7067: b
7068: :def
7069: _ACEOF
7070: sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
7071: echo 'CEOF
7072: sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
7073: ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
7074: sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
7075: grep . conftest.tail >/dev/null || break
7076: rm -f conftest.defines
7077: mv conftest.tail conftest.defines
7078: done
7079: rm -f conftest.defines conftest.tail
7080:
7081: echo "ac_result=$ac_in" >>$CONFIG_STATUS
7082: cat >>$CONFIG_STATUS <<\_ACEOF
7083: if test x"$ac_file" != x-; then
7084: echo "/* $configure_input */" >"$tmp/config.h"
7085: cat "$ac_result" >>"$tmp/config.h"
7086: if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
7087: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7088: echo "$as_me: $ac_file is unchanged" >&6;}
7089: else
7090: rm -f $ac_file
7091: mv "$tmp/config.h" $ac_file
7092: fi
7093: else
7094: echo "/* $configure_input */"
7095: cat "$ac_result"
7096: fi
7097: rm -f "$tmp/out12"
7098: # Compute $ac_file's index in $config_headers.
7099: _am_arg=$ac_file
7100: _am_stamp_count=1
7101: for _am_header in $config_headers :; do
7102: case $_am_header in
7103: $_am_arg | $_am_arg:* )
7104: break ;;
7105: * )
7106: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7107: esac
7108: done
7109: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7110: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7111: X"$_am_arg" : 'X\(//\)[^/]' \| \
7112: X"$_am_arg" : 'X\(//\)$' \| \
7113: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7114: echo X"$_am_arg" |
7115: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7116: s//\1/
7117: q
7118: }
7119: /^X\(\/\/\)[^/].*/{
7120: s//\1/
7121: q
7122: }
7123: /^X\(\/\/\)$/{
7124: s//\1/
7125: q
7126: }
7127: /^X\(\/\).*/{
7128: s//\1/
7129: q
7130: }
7131: s/.*/./; q'`/stamp-h$_am_stamp_count
7132: ;;
7133:
7134: :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
7135: echo "$as_me: executing $ac_file commands" >&6;}
7136: ;;
7137: esac
7138:
7139:
7140: case $ac_file$ac_mode in
7141: "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7142: # Strip MF so we end up with the name of the file.
7143: mf=`echo "$mf" | sed -e 's/:.*$//'`
7144: # Check whether this is an Automake generated Makefile or not.
7145: # We used to match only the files named `Makefile.in', but
7146: # some people rename them; so instead we look at the file content.
7147: # Grep'ing the first line is not enough: some people post-process
7148: # each Makefile.in and add a new line on top of each file to say so.
7149: # Grep'ing the whole file is not good either: AIX grep has a line
7150: # limit of 2048, but all sed's we know have understand at least 4000.
7151: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7152: dirpart=`$as_dirname -- "$mf" ||
7153: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7154: X"$mf" : 'X\(//\)[^/]' \| \
7155: X"$mf" : 'X\(//\)$' \| \
7156: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7157: echo X"$mf" |
7158: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7159: s//\1/
7160: q
7161: }
7162: /^X\(\/\/\)[^/].*/{
7163: s//\1/
7164: q
7165: }
7166: /^X\(\/\/\)$/{
7167: s//\1/
7168: q
7169: }
7170: /^X\(\/\).*/{
7171: s//\1/
7172: q
7173: }
7174: s/.*/./; q'`
7175: else
7176: continue
7177: fi
7178: # Extract the definition of DEPDIR, am__include, and am__quote
7179: # from the Makefile without running `make'.
7180: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7181: test -z "$DEPDIR" && continue
7182: am__include=`sed -n 's/^am__include = //p' < "$mf"`
7183: test -z "am__include" && continue
7184: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7185: # When using ansi2knr, U may be empty or an underscore; expand it
7186: U=`sed -n 's/^U = //p' < "$mf"`
7187: # Find all dependency output files, they are included files with
7188: # $(DEPDIR) in their names. We invoke sed twice because it is the
7189: # simplest approach to changing $(DEPDIR) to its actual value in the
7190: # expansion.
7191: for file in `sed -n "
7192: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7193: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7194: # Make sure the directory exists.
7195: test -f "$dirpart/$file" && continue
7196: fdir=`$as_dirname -- "$file" ||
7197: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7198: X"$file" : 'X\(//\)[^/]' \| \
7199: X"$file" : 'X\(//\)$' \| \
7200: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7201: echo X"$file" |
7202: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7203: s//\1/
7204: q
7205: }
7206: /^X\(\/\/\)[^/].*/{
7207: s//\1/
7208: q
7209: }
7210: /^X\(\/\/\)$/{
7211: s//\1/
7212: q
7213: }
7214: /^X\(\/\).*/{
7215: s//\1/
7216: q
7217: }
7218: s/.*/./; q'`
7219: { as_dir=$dirpart/$fdir
7220: case $as_dir in #(
7221: -*) as_dir=./$as_dir;;
7222: esac
7223: test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7224: as_dirs=
7225: while :; do
7226: case $as_dir in #(
7227: *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7228: *) as_qdir=$as_dir;;
7229: esac
7230: as_dirs="'$as_qdir' $as_dirs"
7231: as_dir=`$as_dirname -- "$as_dir" ||
7232: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7233: X"$as_dir" : 'X\(//\)[^/]' \| \
7234: X"$as_dir" : 'X\(//\)$' \| \
7235: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7236: echo X"$as_dir" |
7237: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7238: s//\1/
7239: q
7240: }
7241: /^X\(\/\/\)[^/].*/{
7242: s//\1/
7243: q
7244: }
7245: /^X\(\/\/\)$/{
7246: s//\1/
7247: q
7248: }
7249: /^X\(\/\).*/{
7250: s//\1/
7251: q
7252: }
7253: s/.*/./; q'`
7254: test -d "$as_dir" && break
7255: done
7256: test -z "$as_dirs" || eval "mkdir $as_dirs"
7257: } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7258: echo "$as_me: error: cannot create directory $as_dir" >&2;}
7259: { (exit 1); exit 1; }; }; }
7260: # echo "creating $dirpart/$file"
7261: echo '# dummy' > "$dirpart/$file"
7262: done
7263: done
7264: ;;
7265:
7266: esac
7267: done # for ac_tag
7268:
7269:
7270: { (exit 0); exit 0; }
7271: _ACEOF
7272: chmod +x $CONFIG_STATUS
7273: ac_clean_files=$ac_clean_files_save
7274:
7275:
7276: # configure is writing to config.log, and then calls config.status.
7277: # config.status does its own redirection, appending to config.log.
7278: # Unfortunately, on DOS this fails, as config.log is still kept open
7279: # by configure, so config.status won't be able to write to it; its
7280: # output is simply discarded. So we exec the FD to /dev/null,
7281: # effectively closing config.log, so it can be properly (re)opened and
7282: # appended to by config.status. When coming back to configure, we
7283: # need to make the FD available again.
7284: if test "$no_create" != yes; then
7285: ac_cs_success=:
7286: ac_config_status_args=
7287: test "$silent" = yes &&
7288: ac_config_status_args="$ac_config_status_args --quiet"
7289: exec 5>/dev/null
7290: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7291: exec 5>>config.log
7292: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7293: # would make configure fail if this is the last instruction.
7294: $ac_cs_success || { (exit 1); exit 1; }
7295: fi
7296:
7297:
7298: echo "
7299: $PACKAGE_NAME version $PACKAGE_VERSION
7300: Prefix.........: $prefix
7301: Debug Build....: $debug
7302: C Compiler.....: $CC $CFLAGS $CPPFLAGS
7303: Linker.........: $LD $LDFLAGS $LIBS
7304: "
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>