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