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