3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 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.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --disable-mcs51-port Excludes the Intel mcs51 port"
17 --disable-gbz80-port Excludes the Gameboy gbz80 port"
19 --disable-z80-port Excludes the z80 port"
21 --disable-avr-port Excludes the AVR port"
23 --disable-ds390-port Excludes the DS390 port"
25 --disable-pic-port Excludes the PIC port"
27 --disable-i186-port Excludes the I186 port"
29 --disable-tlcs900h-port Excludes the TLCS900H port"
31 # Initialize some variables set by options.
32 # The variables have the same names as the options, with
33 # dashes changed to underlines.
35 cache_file=./config.cache
44 program_transform_name=s,x,x,
52 bindir='${exec_prefix}/bin'
53 sbindir='${exec_prefix}/sbin'
54 libexecdir='${exec_prefix}/libexec'
55 datadir='${prefix}/share'
56 sysconfdir='${prefix}/etc'
57 sharedstatedir='${prefix}/com'
58 localstatedir='${prefix}/var'
59 libdir='${exec_prefix}/lib'
60 includedir='${prefix}/include'
61 oldincludedir='/usr/include'
62 infodir='${prefix}/info'
63 mandir='${prefix}/man'
65 # Initialize some other variables.
68 SHELL=${CONFIG_SHELL-/bin/sh}
69 # Maximum number of lines to put in a shell here document.
76 # If the previous option needs an argument, assign it.
77 if test -n "$ac_prev"; then
78 eval "$ac_prev=\$ac_option"
84 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
88 # Accept the important Cygnus configure options, so we can diagnose typos.
92 -bindir | --bindir | --bindi | --bind | --bin | --bi)
94 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
95 bindir="$ac_optarg" ;;
97 -build | --build | --buil | --bui | --bu)
99 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
100 build="$ac_optarg" ;;
102 -cache-file | --cache-file | --cache-fil | --cache-fi \
103 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
104 ac_prev=cache_file ;;
105 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
106 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
107 cache_file="$ac_optarg" ;;
109 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
111 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
113 datadir="$ac_optarg" ;;
115 -disable-* | --disable-*)
116 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
122 eval "enable_${ac_feature}=no" ;;
124 -enable-* | --enable-*)
125 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135 eval "enable_${ac_feature}='$ac_optarg'" ;;
137 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
138 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
139 | --exec | --exe | --ex)
140 ac_prev=exec_prefix ;;
141 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
142 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
143 | --exec=* | --exe=* | --ex=*)
144 exec_prefix="$ac_optarg" ;;
146 -gas | --gas | --ga | --g)
147 # Obsolete; use --with-gas.
150 -help | --help | --hel | --he)
151 # Omit some internal or obsolete options to make the list less imposing.
152 # This message is too long to be a string in the A/UX 3.1 sh.
154 Usage: configure [options] [host]
155 Options: [defaults in brackets after descriptions]
157 --cache-file=FILE cache test results in FILE
158 --help print this message
159 --no-create do not create output files
160 --quiet, --silent do not print \`checking...' messages
161 --version print the version of autoconf that created configure
162 Directory and file names:
163 --prefix=PREFIX install architecture-independent files in PREFIX
165 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
167 --bindir=DIR user executables in DIR [EPREFIX/bin]
168 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
169 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
170 --datadir=DIR read-only architecture-independent data in DIR
172 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
173 --sharedstatedir=DIR modifiable architecture-independent data in DIR
175 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
176 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
177 --includedir=DIR C header files in DIR [PREFIX/include]
178 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
179 --infodir=DIR info documentation in DIR [PREFIX/info]
180 --mandir=DIR man documentation in DIR [PREFIX/man]
181 --srcdir=DIR find the sources in DIR [configure dir or ..]
182 --program-prefix=PREFIX prepend PREFIX to installed program names
183 --program-suffix=SUFFIX append SUFFIX to installed program names
184 --program-transform-name=PROGRAM
185 run sed PROGRAM on installed program names
189 --build=BUILD configure for building on BUILD [BUILD=HOST]
190 --host=HOST configure for HOST [guessed]
191 --target=TARGET configure for TARGET [TARGET=HOST]
192 Features and packages:
193 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
194 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
195 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
196 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
197 --x-includes=DIR X include files are in DIR
198 --x-libraries=DIR X library files are in DIR
200 if test -n "$ac_help"; then
201 echo "--enable and --with options recognized:$ac_help"
205 -host | --host | --hos | --ho)
207 -host=* | --host=* | --hos=* | --ho=*)
210 -includedir | --includedir | --includedi | --included | --include \
211 | --includ | --inclu | --incl | --inc)
212 ac_prev=includedir ;;
213 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
214 | --includ=* | --inclu=* | --incl=* | --inc=*)
215 includedir="$ac_optarg" ;;
217 -infodir | --infodir | --infodi | --infod | --info | --inf)
219 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
220 infodir="$ac_optarg" ;;
222 -libdir | --libdir | --libdi | --libd)
224 -libdir=* | --libdir=* | --libdi=* | --libd=*)
225 libdir="$ac_optarg" ;;
227 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
228 | --libexe | --libex | --libe)
229 ac_prev=libexecdir ;;
230 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
231 | --libexe=* | --libex=* | --libe=*)
232 libexecdir="$ac_optarg" ;;
234 -localstatedir | --localstatedir | --localstatedi | --localstated \
235 | --localstate | --localstat | --localsta | --localst \
236 | --locals | --local | --loca | --loc | --lo)
237 ac_prev=localstatedir ;;
238 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
239 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
240 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
241 localstatedir="$ac_optarg" ;;
243 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
245 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
246 mandir="$ac_optarg" ;;
249 # Obsolete; use --without-fp.
252 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
256 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
257 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
260 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
261 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
262 | --oldin | --oldi | --old | --ol | --o)
263 ac_prev=oldincludedir ;;
264 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
265 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
266 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
267 oldincludedir="$ac_optarg" ;;
269 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
271 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
272 prefix="$ac_optarg" ;;
274 -program-prefix | --program-prefix | --program-prefi | --program-pref \
275 | --program-pre | --program-pr | --program-p)
276 ac_prev=program_prefix ;;
277 -program-prefix=* | --program-prefix=* | --program-prefi=* \
278 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
279 program_prefix="$ac_optarg" ;;
281 -program-suffix | --program-suffix | --program-suffi | --program-suff \
282 | --program-suf | --program-su | --program-s)
283 ac_prev=program_suffix ;;
284 -program-suffix=* | --program-suffix=* | --program-suffi=* \
285 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
286 program_suffix="$ac_optarg" ;;
288 -program-transform-name | --program-transform-name \
289 | --program-transform-nam | --program-transform-na \
290 | --program-transform-n | --program-transform- \
291 | --program-transform | --program-transfor \
292 | --program-transfo | --program-transf \
293 | --program-trans | --program-tran \
294 | --progr-tra | --program-tr | --program-t)
295 ac_prev=program_transform_name ;;
296 -program-transform-name=* | --program-transform-name=* \
297 | --program-transform-nam=* | --program-transform-na=* \
298 | --program-transform-n=* | --program-transform-=* \
299 | --program-transform=* | --program-transfor=* \
300 | --program-transfo=* | --program-transf=* \
301 | --program-trans=* | --program-tran=* \
302 | --progr-tra=* | --program-tr=* | --program-t=*)
303 program_transform_name="$ac_optarg" ;;
305 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
306 | -silent | --silent | --silen | --sile | --sil)
309 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
311 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
313 sbindir="$ac_optarg" ;;
315 -sharedstatedir | --sharedstatedir | --sharedstatedi \
316 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
317 | --sharedst | --shareds | --shared | --share | --shar \
319 ac_prev=sharedstatedir ;;
320 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
321 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
322 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
324 sharedstatedir="$ac_optarg" ;;
326 -site | --site | --sit)
328 -site=* | --site=* | --sit=*)
331 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
333 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
334 srcdir="$ac_optarg" ;;
336 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
337 | --syscon | --sysco | --sysc | --sys | --sy)
338 ac_prev=sysconfdir ;;
339 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
340 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
341 sysconfdir="$ac_optarg" ;;
343 -target | --target | --targe | --targ | --tar | --ta | --t)
345 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
346 target="$ac_optarg" ;;
348 -v | -verbose | --verbose | --verbos | --verbo | --verb)
351 -version | --version | --versio | --versi | --vers)
352 echo "configure generated by autoconf version 2.13"
356 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
357 # Reject names that are not valid shell variable names.
358 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
359 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361 ac_package=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}='$ac_optarg'" ;;
368 -without-* | --without-*)
369 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 ac_package=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}=no" ;;
378 # Obsolete; use --with-x.
381 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
382 | --x-incl | --x-inc | --x-in | --x-i)
383 ac_prev=x_includes ;;
384 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
385 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
386 x_includes="$ac_optarg" ;;
388 -x-libraries | --x-libraries | --x-librarie | --x-librari \
389 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
390 ac_prev=x_libraries ;;
391 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
392 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
393 x_libraries="$ac_optarg" ;;
395 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
399 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
400 echo "configure: warning: $ac_option: invalid host type" 1>&2
402 if test "x$nonopt" != xNONE; then
403 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
411 if test -n "$ac_prev"; then
412 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
415 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
417 # File descriptor usage:
420 # 2 errors and warnings
421 # 3 some systems may open it to /dev/tty
422 # 4 used on the Kubota Titan
423 # 6 checking for... messages and results
424 # 5 compiler messages saved in config.log
425 if test "$silent" = yes; then
433 This file contains any messages produced by compilers while
434 running configure, to aid debugging if configure makes a mistake.
437 # Strip out --no-create and --no-recursion so they do not pile up.
438 # Also quote any args containing shell metacharacters.
443 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
444 | --no-cr | --no-c) ;;
445 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
446 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
447 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
448 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
449 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
454 # Only set these to C if already set. These must not be set unconditionally
455 # because not all systems understand e.g. LANG=C (notably SCO).
456 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
457 # Non-C LC_CTYPE values break the ctype check.
458 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
459 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
460 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
461 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
463 # confdefs.h avoids OS command line length limits that DEFS can exceed.
464 rm -rf conftest* confdefs.h
465 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
468 # A filename unique to this package, relative to the directory that
469 # configure is in, which we can look for to find out if srcdir is correct.
470 ac_unique_file=Makefile
472 # Find the source files, if location was not specified.
473 if test -z "$srcdir"; then
474 ac_srcdir_defaulted=yes
475 # Try the directory containing this script, then its parent.
477 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
478 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
480 if test ! -r $srcdir/$ac_unique_file; then
484 ac_srcdir_defaulted=no
486 if test ! -r $srcdir/$ac_unique_file; then
487 if test "$ac_srcdir_defaulted" = yes; then
488 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
490 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
493 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
495 # Prefer explicitly selected file to automatically selected ones.
496 if test -z "$CONFIG_SITE"; then
497 if test "x$prefix" != xNONE; then
498 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
500 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
503 for ac_site_file in $CONFIG_SITE; do
504 if test -r "$ac_site_file"; then
505 echo "loading site script $ac_site_file"
510 if test -r "$cache_file"; then
511 echo "loading cache $cache_file"
514 echo "creating cache $cache_file"
519 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
520 ac_cpp='$CPP $CPPFLAGS'
521 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
522 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
523 cross_compiling=$ac_cv_prog_cc_cross
527 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
528 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
529 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
536 ac_n= ac_c='\c' ac_t=
542 for ac_prog in mawk gawk nawk awk
544 # Extract the first word of "$ac_prog", so it can be a program name with args.
545 set dummy $ac_prog; ac_word=$2
546 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
547 echo "configure:548: checking for $ac_word" >&5
548 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
549 echo $ac_n "(cached) $ac_c" 1>&6
551 if test -n "$AWK"; then
552 ac_cv_prog_AWK="$AWK" # Let the user override the test.
554 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
556 for ac_dir in $ac_dummy; do
557 test -z "$ac_dir" && ac_dir=.
558 if test -f $ac_dir/$ac_word; then
559 ac_cv_prog_AWK="$ac_prog"
566 AWK="$ac_cv_prog_AWK"
567 if test -n "$AWK"; then
568 echo "$ac_t""$AWK" 1>&6
570 echo "$ac_t""no" 1>&6
573 test -n "$AWK" && break
577 echo $ac_n "checking version of the package""... $ac_c" 1>&6
578 echo "configure:579: checking version of the package" >&5
579 if test -f .version; then
580 VERSION=`cat .version`
581 elif test -f ../.version; then
582 VERSION=`cat ../.version`
586 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
587 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
588 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
589 # Assume no special extension
590 EXEEXT=`echo $EXEEXT`
592 echo "$ac_t""${VERSION}" 1>&6
597 cat >> confdefs.h <<EOF
598 #define SDCC_VERSION_LO ${VERSIONLO}
601 cat >> confdefs.h <<EOF
602 #define SDCC_VERSION_HI ${VERSIONHI}
605 cat >> confdefs.h <<EOF
606 #define SDCC_VERSION_P ${VERSIONP}
609 cat >> confdefs.h <<EOF
610 #define SDCC_VERSION_STR "${VERSION}"
613 if test "$program_transform_name" = s,x,x,; then
614 program_transform_name=
616 # Double any \ or $. echo might interpret backslashes.
617 cat <<\EOF_SED > conftestsed
618 s,\\,\\\\,g; s,\$,$$,g
620 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
623 test "$program_prefix" != NONE &&
624 program_transform_name="s,^,${program_prefix},; $program_transform_name"
625 # Use a double $ so make ignores it.
626 test "$program_suffix" != NONE &&
627 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
629 # sed with no file args requires a program.
630 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
632 sdcc_cv_version=$VERSION
633 sdcc_cv_versionhi=$VERSIONHI
634 sdcc_cv_versionlo=$VERSIONLO
635 sdcc_cv_versionp=$VERSIONP
639 # Extract the first word of "gcc", so it can be a program name with args.
640 set dummy gcc; ac_word=$2
641 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
642 echo "configure:643: checking for $ac_word" >&5
643 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
644 echo $ac_n "(cached) $ac_c" 1>&6
646 if test -n "$CC"; then
647 ac_cv_prog_CC="$CC" # Let the user override the test.
649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
651 for ac_dir in $ac_dummy; do
652 test -z "$ac_dir" && ac_dir=.
653 if test -f $ac_dir/$ac_word; then
662 if test -n "$CC"; then
663 echo "$ac_t""$CC" 1>&6
665 echo "$ac_t""no" 1>&6
668 if test -z "$CC"; then
669 # Extract the first word of "cc", so it can be a program name with args.
670 set dummy cc; ac_word=$2
671 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
672 echo "configure:673: checking for $ac_word" >&5
673 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
674 echo $ac_n "(cached) $ac_c" 1>&6
676 if test -n "$CC"; then
677 ac_cv_prog_CC="$CC" # Let the user override the test.
679 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
682 for ac_dir in $ac_dummy; do
683 test -z "$ac_dir" && ac_dir=.
684 if test -f $ac_dir/$ac_word; then
685 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
694 if test $ac_prog_rejected = yes; then
695 # We found a bogon in the path, so make sure we never use it.
696 set dummy $ac_cv_prog_CC
698 if test $# -gt 0; then
699 # We chose a different compiler from the bogus one.
700 # However, it has the same basename, so the bogon will be chosen
701 # first if we set CC to just the basename; use the full file name.
703 set dummy "$ac_dir/$ac_word" "$@"
711 if test -n "$CC"; then
712 echo "$ac_t""$CC" 1>&6
714 echo "$ac_t""no" 1>&6
717 if test -z "$CC"; then
720 # Extract the first word of "cl", so it can be a program name with args.
721 set dummy cl; ac_word=$2
722 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
723 echo "configure:724: checking for $ac_word" >&5
724 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
725 echo $ac_n "(cached) $ac_c" 1>&6
727 if test -n "$CC"; then
728 ac_cv_prog_CC="$CC" # Let the user override the test.
730 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
732 for ac_dir in $ac_dummy; do
733 test -z "$ac_dir" && ac_dir=.
734 if test -f $ac_dir/$ac_word; then
743 if test -n "$CC"; then
744 echo "$ac_t""$CC" 1>&6
746 echo "$ac_t""no" 1>&6
751 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
754 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
755 echo "configure:756: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
758 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
759 ac_cpp='$CPP $CPPFLAGS'
760 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
761 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
762 cross_compiling=$ac_cv_prog_cc_cross
764 cat > conftest.$ac_ext << EOF
766 #line 767 "configure"
767 #include "confdefs.h"
771 if { (eval echo configure:772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
772 ac_cv_prog_cc_works=yes
773 # If we can't run a trivial program, we are probably using a cross compiler.
774 if (./conftest; exit) 2>/dev/null; then
775 ac_cv_prog_cc_cross=no
777 ac_cv_prog_cc_cross=yes
780 echo "configure: failed program was:" >&5
781 cat conftest.$ac_ext >&5
782 ac_cv_prog_cc_works=no
786 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
787 ac_cpp='$CPP $CPPFLAGS'
788 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
789 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
790 cross_compiling=$ac_cv_prog_cc_cross
792 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
793 if test $ac_cv_prog_cc_works = no; then
794 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
796 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
797 echo "configure:798: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
798 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
799 cross_compiling=$ac_cv_prog_cc_cross
801 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
802 echo "configure:803: checking whether we are using GNU C" >&5
803 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
804 echo $ac_n "(cached) $ac_c" 1>&6
806 cat > conftest.c <<EOF
811 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
818 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
820 if test $ac_cv_prog_gcc = yes; then
826 ac_test_CFLAGS="${CFLAGS+set}"
827 ac_save_CFLAGS="$CFLAGS"
829 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
830 echo "configure:831: checking whether ${CC-cc} accepts -g" >&5
831 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
832 echo $ac_n "(cached) $ac_c" 1>&6
834 echo 'void f(){}' > conftest.c
835 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
844 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
845 if test "$ac_test_CFLAGS" = set; then
846 CFLAGS="$ac_save_CFLAGS"
847 elif test $ac_cv_prog_cc_g = yes; then
848 if test "$GCC" = yes; then
854 if test "$GCC" = yes; then
861 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
863 # Extract the first word of "$ac_prog", so it can be a program name with args.
864 set dummy $ac_prog; ac_word=$2
865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
866 echo "configure:867: checking for $ac_word" >&5
867 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
868 echo $ac_n "(cached) $ac_c" 1>&6
870 if test -n "$CXX"; then
871 ac_cv_prog_CXX="$CXX" # Let the user override the test.
873 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
875 for ac_dir in $ac_dummy; do
876 test -z "$ac_dir" && ac_dir=.
877 if test -f $ac_dir/$ac_word; then
878 ac_cv_prog_CXX="$ac_prog"
885 CXX="$ac_cv_prog_CXX"
886 if test -n "$CXX"; then
887 echo "$ac_t""$CXX" 1>&6
889 echo "$ac_t""no" 1>&6
892 test -n "$CXX" && break
894 test -n "$CXX" || CXX="gcc"
897 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
898 echo "configure:899: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
901 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
902 ac_cpp='$CXXCPP $CPPFLAGS'
903 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
904 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
905 cross_compiling=$ac_cv_prog_cxx_cross
907 cat > conftest.$ac_ext << EOF
909 #line 910 "configure"
910 #include "confdefs.h"
912 int main(){return(0);}
914 if { (eval echo configure:915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
915 ac_cv_prog_cxx_works=yes
916 # If we can't run a trivial program, we are probably using a cross compiler.
917 if (./conftest; exit) 2>/dev/null; then
918 ac_cv_prog_cxx_cross=no
920 ac_cv_prog_cxx_cross=yes
923 echo "configure: failed program was:" >&5
924 cat conftest.$ac_ext >&5
925 ac_cv_prog_cxx_works=no
929 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
930 ac_cpp='$CPP $CPPFLAGS'
931 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
932 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
933 cross_compiling=$ac_cv_prog_cc_cross
935 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
936 if test $ac_cv_prog_cxx_works = no; then
937 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
939 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
940 echo "configure:941: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
941 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
942 cross_compiling=$ac_cv_prog_cxx_cross
944 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
945 echo "configure:946: checking whether we are using GNU C++" >&5
946 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
947 echo $ac_n "(cached) $ac_c" 1>&6
949 cat > conftest.C <<EOF
954 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
961 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
963 if test $ac_cv_prog_gxx = yes; then
969 ac_test_CXXFLAGS="${CXXFLAGS+set}"
970 ac_save_CXXFLAGS="$CXXFLAGS"
972 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
973 echo "configure:974: checking whether ${CXX-g++} accepts -g" >&5
974 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
977 echo 'void f(){}' > conftest.cc
978 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
987 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
988 if test "$ac_test_CXXFLAGS" = set; then
989 CXXFLAGS="$ac_save_CXXFLAGS"
990 elif test $ac_cv_prog_cxx_g = yes; then
991 if test "$GXX" = yes; then
997 if test "$GXX" = yes; then
1004 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1005 echo "configure:1006: checking how to run the C preprocessor" >&5
1006 # On Suns, sometimes $CPP names a directory.
1007 if test -n "$CPP" && test -d "$CPP"; then
1010 if test -z "$CPP"; then
1011 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1012 echo $ac_n "(cached) $ac_c" 1>&6
1014 # This must be in double quotes, not single quotes, because CPP may get
1015 # substituted into the Makefile and "${CC-cc}" will confuse make.
1017 # On the NeXT, cc -E runs the code through the compiler's parser,
1018 # not just through cpp.
1019 cat > conftest.$ac_ext <<EOF
1020 #line 1021 "configure"
1021 #include "confdefs.h"
1025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1026 { (eval echo configure:1027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1028 if test -z "$ac_err"; then
1032 echo "configure: failed program was:" >&5
1033 cat conftest.$ac_ext >&5
1035 CPP="${CC-cc} -E -traditional-cpp"
1036 cat > conftest.$ac_ext <<EOF
1037 #line 1038 "configure"
1038 #include "confdefs.h"
1042 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1043 { (eval echo configure:1044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1044 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1045 if test -z "$ac_err"; then
1049 echo "configure: failed program was:" >&5
1050 cat conftest.$ac_ext >&5
1052 CPP="${CC-cc} -nologo -E"
1053 cat > conftest.$ac_ext <<EOF
1054 #line 1055 "configure"
1055 #include "confdefs.h"
1059 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1060 { (eval echo configure:1061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1061 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1062 if test -z "$ac_err"; then
1066 echo "configure: failed program was:" >&5
1067 cat conftest.$ac_ext >&5
1076 ac_cv_prog_CPP="$CPP"
1078 CPP="$ac_cv_prog_CPP"
1080 ac_cv_prog_CPP="$CPP"
1082 echo "$ac_t""$CPP" 1>&6
1085 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1086 if test -f $ac_dir/install-sh; then
1088 ac_install_sh="$ac_aux_dir/install-sh -c"
1090 elif test -f $ac_dir/install.sh; then
1092 ac_install_sh="$ac_aux_dir/install.sh -c"
1096 if test -z "$ac_aux_dir"; then
1097 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1099 ac_config_guess=$ac_aux_dir/config.guess
1100 ac_config_sub=$ac_aux_dir/config.sub
1101 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1103 # Find a good install program. We prefer a C program (faster),
1104 # so one script is as good as another. But avoid the broken or
1105 # incompatible versions:
1106 # SysV /etc/install, /usr/sbin/install
1107 # SunOS /usr/etc/install
1108 # IRIX /sbin/install
1110 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1111 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1112 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1113 # ./install, which can be erroneously created by make from ./install.sh.
1114 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1115 echo "configure:1116: checking for a BSD compatible install" >&5
1116 if test -z "$INSTALL"; then
1117 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1120 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1121 for ac_dir in $PATH; do
1122 # Account for people who put trailing slashes in PATH elements.
1124 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1126 # OSF1 and SCO ODT 3.0 have their own names for install.
1127 # Don't use installbsd from OSF since it installs stuff as root
1129 for ac_prog in ginstall scoinst install; do
1130 if test -f $ac_dir/$ac_prog; then
1131 if test $ac_prog = install &&
1132 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1133 # AIX install. It has an incompatible calling convention.
1136 ac_cv_path_install="$ac_dir/$ac_prog -c"
1147 if test "${ac_cv_path_install+set}" = set; then
1148 INSTALL="$ac_cv_path_install"
1150 # As a last resort, use the slow shell script. We don't cache a
1151 # path for INSTALL within a source directory, because that will
1152 # break other packages using the cache if that directory is
1153 # removed, or if the path is relative.
1154 INSTALL="$ac_install_sh"
1157 echo "$ac_t""$INSTALL" 1>&6
1159 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1160 # It thinks the first close brace ends the variable substitution.
1161 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1163 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1165 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1167 # Extract the first word of "ranlib", so it can be a program name with args.
1168 set dummy ranlib; ac_word=$2
1169 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1170 echo "configure:1171: checking for $ac_word" >&5
1171 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&6
1174 if test -n "$RANLIB"; then
1175 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1177 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1179 for ac_dir in $ac_dummy; do
1180 test -z "$ac_dir" && ac_dir=.
1181 if test -f $ac_dir/$ac_word; then
1182 ac_cv_prog_RANLIB="ranlib"
1187 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1190 RANLIB="$ac_cv_prog_RANLIB"
1191 if test -n "$RANLIB"; then
1192 echo "$ac_t""$RANLIB" 1>&6
1194 echo "$ac_t""no" 1>&6
1197 # Extract the first word of "flex", so it can be a program name with args.
1198 set dummy flex; ac_word=$2
1199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1200 echo "configure:1201: checking for $ac_word" >&5
1201 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1202 echo $ac_n "(cached) $ac_c" 1>&6
1204 if test -n "$LEX"; then
1205 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1209 for ac_dir in $ac_dummy; do
1210 test -z "$ac_dir" && ac_dir=.
1211 if test -f $ac_dir/$ac_word; then
1212 ac_cv_prog_LEX="flex"
1217 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1220 LEX="$ac_cv_prog_LEX"
1221 if test -n "$LEX"; then
1222 echo "$ac_t""$LEX" 1>&6
1224 echo "$ac_t""no" 1>&6
1227 if test -z "$LEXLIB"
1233 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1234 echo "configure:1235: checking for yywrap in -l$ac_lib" >&5
1235 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1236 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1237 echo $ac_n "(cached) $ac_c" 1>&6
1239 ac_save_LIBS="$LIBS"
1240 LIBS="-l$ac_lib $LIBS"
1241 cat > conftest.$ac_ext <<EOF
1242 #line 1243 "configure"
1243 #include "confdefs.h"
1244 /* Override any gcc2 internal prototype to avoid an error. */
1245 /* We use char because int might match the return type of a gcc2
1246 builtin and then its argument prototype would still apply. */
1253 if { (eval echo configure:1254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1255 eval "ac_cv_lib_$ac_lib_var=yes"
1257 echo "configure: failed program was:" >&5
1258 cat conftest.$ac_ext >&5
1260 eval "ac_cv_lib_$ac_lib_var=no"
1263 LIBS="$ac_save_LIBS"
1266 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1267 echo "$ac_t""yes" 1>&6
1270 echo "$ac_t""no" 1>&6
1275 # Extract the first word of "bison", so it can be a program name with args.
1276 set dummy bison; ac_word=$2
1277 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1278 echo "configure:1279: checking for $ac_word" >&5
1279 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1280 echo $ac_n "(cached) $ac_c" 1>&6
1282 if test -n "$YACC"; then
1283 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1287 for ac_dir in $ac_dummy; do
1288 test -z "$ac_dir" && ac_dir=.
1289 if test -f $ac_dir/$ac_word; then
1290 ac_cv_prog_YACC="bison -y"
1295 test -z "$ac_cv_prog_YACC" && ac_cv_prog_YACC=":"
1298 YACC="$ac_cv_prog_YACC"
1299 if test -n "$YACC"; then
1300 echo "$ac_t""$YACC" 1>&6
1302 echo "$ac_t""no" 1>&6
1305 # Extract the first word of "autoconf", so it can be a program name with args.
1306 set dummy autoconf; ac_word=$2
1307 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1308 echo "configure:1309: checking for $ac_word" >&5
1309 if eval "test \"`echo '$''{'ac_cv_prog_AUTOCONF'+set}'`\" = set"; then
1310 echo $ac_n "(cached) $ac_c" 1>&6
1312 if test -n "$AUTOCONF"; then
1313 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
1315 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1317 for ac_dir in $ac_dummy; do
1318 test -z "$ac_dir" && ac_dir=.
1319 if test -f $ac_dir/$ac_word; then
1320 ac_cv_prog_AUTOCONF="autoconf"
1325 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
1328 AUTOCONF="$ac_cv_prog_AUTOCONF"
1329 if test -n "$AUTOCONF"; then
1330 echo "$ac_t""$AUTOCONF" 1>&6
1332 echo "$ac_t""no" 1>&6
1335 # Extract the first word of "strip", so it can be a program name with args.
1336 set dummy strip; ac_word=$2
1337 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1338 echo "configure:1339: checking for $ac_word" >&5
1339 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1340 echo $ac_n "(cached) $ac_c" 1>&6
1342 if test -n "$STRIP"; then
1343 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1347 for ac_dir in $ac_dummy; do
1348 test -z "$ac_dir" && ac_dir=.
1349 if test -f $ac_dir/$ac_word; then
1350 ac_cv_prog_STRIP="strip"
1355 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1358 STRIP="$ac_cv_prog_STRIP"
1359 if test -n "$STRIP"; then
1360 echo "$ac_t""$STRIP" 1>&6
1362 echo "$ac_t""no" 1>&6
1365 # Extract the first word of "as", so it can be a program name with args.
1366 set dummy as; ac_word=$2
1367 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1368 echo "configure:1369: checking for $ac_word" >&5
1369 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1370 echo $ac_n "(cached) $ac_c" 1>&6
1372 if test -n "$AS"; then
1373 ac_cv_prog_AS="$AS" # Let the user override the test.
1375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1377 for ac_dir in $ac_dummy; do
1378 test -z "$ac_dir" && ac_dir=.
1379 if test -f $ac_dir/$ac_word; then
1385 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
1389 if test -n "$AS"; then
1390 echo "$ac_t""$AS" 1>&6
1392 echo "$ac_t""no" 1>&6
1395 # Extract the first word of "cp", so it can be a program name with args.
1396 set dummy cp; ac_word=$2
1397 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1398 echo "configure:1399: checking for $ac_word" >&5
1399 if eval "test \"`echo '$''{'ac_cv_prog_CP'+set}'`\" = set"; then
1400 echo $ac_n "(cached) $ac_c" 1>&6
1402 if test -n "$CP"; then
1403 ac_cv_prog_CP="$CP" # Let the user override the test.
1405 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1407 for ac_dir in $ac_dummy; do
1408 test -z "$ac_dir" && ac_dir=.
1409 if test -f $ac_dir/$ac_word; then
1415 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
1419 if test -n "$CP"; then
1420 echo "$ac_t""$CP" 1>&6
1422 echo "$ac_t""no" 1>&6
1428 if test "$YACC" = ":"; then
1429 { echo "configure: error: Cannot find required program bison." 1>&2; exit 1; }
1432 if test "$LEX" = ":"; then
1433 { echo "configure: error: Cannot find required program lex." 1>&2; exit 1; }
1438 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1439 ac_cpp='$CPP $CPPFLAGS'
1440 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1441 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1442 cross_compiling=$ac_cv_prog_cc_cross
1445 # Checking for header files.
1446 # ===========================================================================
1447 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1448 echo "configure:1449: checking for ANSI C header files" >&5
1449 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1450 echo $ac_n "(cached) $ac_c" 1>&6
1452 cat > conftest.$ac_ext <<EOF
1453 #line 1454 "configure"
1454 #include "confdefs.h"
1460 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1461 { (eval echo configure:1462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1462 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1463 if test -z "$ac_err"; then
1465 ac_cv_header_stdc=yes
1468 echo "configure: failed program was:" >&5
1469 cat conftest.$ac_ext >&5
1471 ac_cv_header_stdc=no
1475 if test $ac_cv_header_stdc = yes; then
1476 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1477 cat > conftest.$ac_ext <<EOF
1478 #line 1479 "configure"
1479 #include "confdefs.h"
1482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1483 egrep "memchr" >/dev/null 2>&1; then
1487 ac_cv_header_stdc=no
1493 if test $ac_cv_header_stdc = yes; then
1494 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1495 cat > conftest.$ac_ext <<EOF
1496 #line 1497 "configure"
1497 #include "confdefs.h"
1500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1501 egrep "free" >/dev/null 2>&1; then
1505 ac_cv_header_stdc=no
1511 if test $ac_cv_header_stdc = yes; then
1512 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1513 if test "$cross_compiling" = yes; then
1516 cat > conftest.$ac_ext <<EOF
1517 #line 1518 "configure"
1518 #include "confdefs.h"
1520 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1521 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1522 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1523 int main () { int i; for (i = 0; i < 256; i++)
1524 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1528 if { (eval echo configure:1529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1532 echo "configure: failed program was:" >&5
1533 cat conftest.$ac_ext >&5
1535 ac_cv_header_stdc=no
1543 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1544 if test $ac_cv_header_stdc = yes; then
1545 cat >> confdefs.h <<\EOF
1546 #define STDC_HEADERS 1
1551 for ac_hdr in getopt.h
1553 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1554 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1555 echo "configure:1556: checking for $ac_hdr" >&5
1556 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1557 echo $ac_n "(cached) $ac_c" 1>&6
1559 cat > conftest.$ac_ext <<EOF
1560 #line 1561 "configure"
1561 #include "confdefs.h"
1564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1565 { (eval echo configure:1566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1566 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1567 if test -z "$ac_err"; then
1569 eval "ac_cv_header_$ac_safe=yes"
1572 echo "configure: failed program was:" >&5
1573 cat conftest.$ac_ext >&5
1575 eval "ac_cv_header_$ac_safe=no"
1579 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1580 echo "$ac_t""yes" 1>&6
1581 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1582 cat >> confdefs.h <<EOF
1583 #define $ac_tr_hdr 1
1587 echo "$ac_t""no" 1>&6
1591 for ac_hdr in unistd.h
1593 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1594 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1595 echo "configure:1596: checking for $ac_hdr" >&5
1596 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1597 echo $ac_n "(cached) $ac_c" 1>&6
1599 cat > conftest.$ac_ext <<EOF
1600 #line 1601 "configure"
1601 #include "confdefs.h"
1604 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1605 { (eval echo configure:1606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1606 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1607 if test -z "$ac_err"; then
1609 eval "ac_cv_header_$ac_safe=yes"
1612 echo "configure: failed program was:" >&5
1613 cat conftest.$ac_ext >&5
1615 eval "ac_cv_header_$ac_safe=no"
1619 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1620 echo "$ac_t""yes" 1>&6
1621 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1622 cat >> confdefs.h <<EOF
1623 #define $ac_tr_hdr 1
1627 echo "$ac_t""no" 1>&6
1631 for ac_hdr in endian.h
1633 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1634 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1635 echo "configure:1636: checking for $ac_hdr" >&5
1636 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1637 echo $ac_n "(cached) $ac_c" 1>&6
1639 cat > conftest.$ac_ext <<EOF
1640 #line 1641 "configure"
1641 #include "confdefs.h"
1644 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1645 { (eval echo configure:1646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1646 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1647 if test -z "$ac_err"; then
1649 eval "ac_cv_header_$ac_safe=yes"
1652 echo "configure: failed program was:" >&5
1653 cat conftest.$ac_ext >&5
1655 eval "ac_cv_header_$ac_safe=no"
1659 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1660 echo "$ac_t""yes" 1>&6
1661 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1662 cat >> confdefs.h <<EOF
1663 #define $ac_tr_hdr 1
1667 echo "$ac_t""no" 1>&6
1671 for ac_hdr in malloc.h
1673 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1674 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1675 echo "configure:1676: checking for $ac_hdr" >&5
1676 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1677 echo $ac_n "(cached) $ac_c" 1>&6
1679 cat > conftest.$ac_ext <<EOF
1680 #line 1681 "configure"
1681 #include "confdefs.h"
1684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1685 { (eval echo configure:1686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1687 if test -z "$ac_err"; then
1689 eval "ac_cv_header_$ac_safe=yes"
1692 echo "configure: failed program was:" >&5
1693 cat conftest.$ac_ext >&5
1695 eval "ac_cv_header_$ac_safe=no"
1699 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1700 echo "$ac_t""yes" 1>&6
1701 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1702 cat >> confdefs.h <<EOF
1703 #define $ac_tr_hdr 1
1707 echo "$ac_t""no" 1>&6
1711 for ac_hdr in sys/isa_defs.h
1713 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1714 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1715 echo "configure:1716: checking for $ac_hdr" >&5
1716 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1717 echo $ac_n "(cached) $ac_c" 1>&6
1719 cat > conftest.$ac_ext <<EOF
1720 #line 1721 "configure"
1721 #include "confdefs.h"
1724 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725 { (eval echo configure:1726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1726 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1727 if test -z "$ac_err"; then
1729 eval "ac_cv_header_$ac_safe=yes"
1732 echo "configure: failed program was:" >&5
1733 cat conftest.$ac_ext >&5
1735 eval "ac_cv_header_$ac_safe=no"
1739 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1740 echo "$ac_t""yes" 1>&6
1741 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1742 cat >> confdefs.h <<EOF
1743 #define $ac_tr_hdr 1
1747 echo "$ac_t""no" 1>&6
1751 for ac_hdr in sys/socket.h
1753 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1754 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1755 echo "configure:1756: checking for $ac_hdr" >&5
1756 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1757 echo $ac_n "(cached) $ac_c" 1>&6
1759 cat > conftest.$ac_ext <<EOF
1760 #line 1761 "configure"
1761 #include "confdefs.h"
1764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1765 { (eval echo configure:1766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1766 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1767 if test -z "$ac_err"; then
1769 eval "ac_cv_header_$ac_safe=yes"
1772 echo "configure: failed program was:" >&5
1773 cat conftest.$ac_ext >&5
1775 eval "ac_cv_header_$ac_safe=no"
1779 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1780 echo "$ac_t""yes" 1>&6
1781 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1782 cat >> confdefs.h <<EOF
1783 #define $ac_tr_hdr 1
1787 echo "$ac_t""no" 1>&6
1792 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1794 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1795 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1796 echo "configure:1797: checking for $ac_hdr that defines DIR" >&5
1797 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1798 echo $ac_n "(cached) $ac_c" 1>&6
1800 cat > conftest.$ac_ext <<EOF
1801 #line 1802 "configure"
1802 #include "confdefs.h"
1803 #include <sys/types.h>
1809 if { (eval echo configure:1810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1811 eval "ac_cv_header_dirent_$ac_safe=yes"
1813 echo "configure: failed program was:" >&5
1814 cat conftest.$ac_ext >&5
1816 eval "ac_cv_header_dirent_$ac_safe=no"
1820 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1821 echo "$ac_t""yes" 1>&6
1822 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1823 cat >> confdefs.h <<EOF
1824 #define $ac_tr_hdr 1
1826 ac_header_dirent=$ac_hdr; break
1828 echo "$ac_t""no" 1>&6
1831 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1832 if test $ac_header_dirent = dirent.h; then
1833 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1834 echo "configure:1835: checking for opendir in -ldir" >&5
1835 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1836 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1837 echo $ac_n "(cached) $ac_c" 1>&6
1839 ac_save_LIBS="$LIBS"
1841 cat > conftest.$ac_ext <<EOF
1842 #line 1843 "configure"
1843 #include "confdefs.h"
1844 /* Override any gcc2 internal prototype to avoid an error. */
1845 /* We use char because int might match the return type of a gcc2
1846 builtin and then its argument prototype would still apply. */
1853 if { (eval echo configure:1854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1855 eval "ac_cv_lib_$ac_lib_var=yes"
1857 echo "configure: failed program was:" >&5
1858 cat conftest.$ac_ext >&5
1860 eval "ac_cv_lib_$ac_lib_var=no"
1863 LIBS="$ac_save_LIBS"
1866 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1867 echo "$ac_t""yes" 1>&6
1870 echo "$ac_t""no" 1>&6
1874 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1875 echo "configure:1876: checking for opendir in -lx" >&5
1876 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1877 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1878 echo $ac_n "(cached) $ac_c" 1>&6
1880 ac_save_LIBS="$LIBS"
1882 cat > conftest.$ac_ext <<EOF
1883 #line 1884 "configure"
1884 #include "confdefs.h"
1885 /* Override any gcc2 internal prototype to avoid an error. */
1886 /* We use char because int might match the return type of a gcc2
1887 builtin and then its argument prototype would still apply. */
1894 if { (eval echo configure:1895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1896 eval "ac_cv_lib_$ac_lib_var=yes"
1898 echo "configure: failed program was:" >&5
1899 cat conftest.$ac_ext >&5
1901 eval "ac_cv_lib_$ac_lib_var=no"
1904 LIBS="$ac_save_LIBS"
1907 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1908 echo "$ac_t""yes" 1>&6
1911 echo "$ac_t""no" 1>&6
1917 # This must be after CPP
1919 echo $ac_n "checking which header file defines FD_ macros""... $ac_c" 1>&6
1920 echo "configure:1921: checking which header file defines FD_ macros" >&5
1921 if eval "test \"`echo '$''{'s51_cv_fd'+set}'`\" = set"; then
1922 echo $ac_n "(cached) $ac_c" 1>&6
1924 sdcc_cv_fd="unknown"
1925 cat > conftest.$ac_ext <<EOF
1926 #line 1927 "configure"
1927 #include "confdefs.h"
1929 #include <sys/time.h>
1934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1935 egrep "yes" >/dev/null 2>&1; then
1937 sdcc_cv_fd="<sys/time.h>"
1941 cat > conftest.$ac_ext <<EOF
1942 #line 1943 "configure"
1943 #include "confdefs.h"
1945 #include <sys/types.h>
1950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1951 egrep "yes" >/dev/null 2>&1; then
1953 sdcc_cv_fd="<sys/types.h>"
1957 cat > conftest.$ac_ext <<EOF
1958 #line 1959 "configure"
1959 #include "confdefs.h"
1961 #include <sys/select.h>
1966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1967 egrep "yes" >/dev/null 2>&1; then
1969 sdcc_cv_fd="<sys/types.h>"
1975 echo "$ac_t""$s51_cv_fd" 1>&6
1977 cat >> confdefs.h <<\EOF
1978 #define FD_HEADER_OK 0
1981 if echo $sdcc_cv_fd|grep time >/dev/null 2>&1; then
1982 cat >> confdefs.h <<\EOF
1983 #define FD_NEED_TIME_H 1
1986 cat >> confdefs.h <<\EOF
1987 #define FD_HEADER_OK 1
1991 cat >> confdefs.h <<\EOF
1992 #define FD_NEED_TIME_H 0
1996 if echo $sdcc_cv_fd|grep types >/dev/null 2>&1; then
1997 cat >> confdefs.h <<\EOF
1998 #define FD_NEED_TYPES_H 1
2001 cat >> confdefs.h <<\EOF
2002 #define FD_HEADER_OK 1
2006 cat >> confdefs.h <<\EOF
2007 #define FD_NEED_TYPES_H 0
2011 if echo $sdcc_cv_fd|grep select >/dev/null 2>&1; then
2012 cat >> confdefs.h <<\EOF
2013 #define FD_NEED_SELECT_H 1
2016 cat >> confdefs.h <<\EOF
2017 #define FD_HEADER_OK 1
2021 cat >> confdefs.h <<\EOF
2022 #define FD_NEED_SELECT_H 0
2027 cat >> confdefs.h <<EOF
2028 #define HEADER_FD ${sdcc_cv_fd}
2033 # Checking for functions
2034 # ===========================================================================
2035 for ac_func in strlen strcpy strcat strstr strcmp strerror strtok strdup
2037 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2038 echo "configure:2039: checking for $ac_func" >&5
2039 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2040 echo $ac_n "(cached) $ac_c" 1>&6
2042 cat > conftest.$ac_ext <<EOF
2043 #line 2044 "configure"
2044 #include "confdefs.h"
2045 /* System header to define __stub macros and hopefully few prototypes,
2046 which can conflict with char $ac_func(); below. */
2048 /* Override any gcc2 internal prototype to avoid an error. */
2049 /* We use char because int might match the return type of a gcc2
2050 builtin and then its argument prototype would still apply. */
2055 /* The GNU C library defines this for functions which it implements
2056 to always fail with ENOSYS. Some functions are actually named
2057 something starting with __ and the normal name is an alias. */
2058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2066 if { (eval echo configure:2067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2068 eval "ac_cv_func_$ac_func=yes"
2070 echo "configure: failed program was:" >&5
2071 cat conftest.$ac_ext >&5
2073 eval "ac_cv_func_$ac_func=no"
2078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2079 echo "$ac_t""yes" 1>&6
2080 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2081 cat >> confdefs.h <<EOF
2082 #define $ac_tr_func 1
2086 echo "$ac_t""no" 1>&6
2090 for ac_func in strchr memcpy
2092 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2093 echo "configure:2094: checking for $ac_func" >&5
2094 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2095 echo $ac_n "(cached) $ac_c" 1>&6
2097 cat > conftest.$ac_ext <<EOF
2098 #line 2099 "configure"
2099 #include "confdefs.h"
2100 /* System header to define __stub macros and hopefully few prototypes,
2101 which can conflict with char $ac_func(); below. */
2103 /* Override any gcc2 internal prototype to avoid an error. */
2104 /* We use char because int might match the return type of a gcc2
2105 builtin and then its argument prototype would still apply. */
2110 /* The GNU C library defines this for functions which it implements
2111 to always fail with ENOSYS. Some functions are actually named
2112 something starting with __ and the normal name is an alias. */
2113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2121 if { (eval echo configure:2122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2123 eval "ac_cv_func_$ac_func=yes"
2125 echo "configure: failed program was:" >&5
2126 cat conftest.$ac_ext >&5
2128 eval "ac_cv_func_$ac_func=no"
2133 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2134 echo "$ac_t""yes" 1>&6
2135 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2136 cat >> confdefs.h <<EOF
2137 #define $ac_tr_func 1
2141 echo "$ac_t""no" 1>&6
2145 for ac_func in fgets
2147 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2148 echo "configure:2149: checking for $ac_func" >&5
2149 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2150 echo $ac_n "(cached) $ac_c" 1>&6
2152 cat > conftest.$ac_ext <<EOF
2153 #line 2154 "configure"
2154 #include "confdefs.h"
2155 /* System header to define __stub macros and hopefully few prototypes,
2156 which can conflict with char $ac_func(); below. */
2158 /* Override any gcc2 internal prototype to avoid an error. */
2159 /* We use char because int might match the return type of a gcc2
2160 builtin and then its argument prototype would still apply. */
2165 /* The GNU C library defines this for functions which it implements
2166 to always fail with ENOSYS. Some functions are actually named
2167 something starting with __ and the normal name is an alias. */
2168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2176 if { (eval echo configure:2177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2178 eval "ac_cv_func_$ac_func=yes"
2180 echo "configure: failed program was:" >&5
2181 cat conftest.$ac_ext >&5
2183 eval "ac_cv_func_$ac_func=no"
2188 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2189 echo "$ac_t""yes" 1>&6
2190 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2191 cat >> confdefs.h <<EOF
2192 #define $ac_tr_func 1
2196 echo "$ac_t""no" 1>&6
2200 for ac_func in yylex
2202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2203 echo "configure:2204: checking for $ac_func" >&5
2204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2205 echo $ac_n "(cached) $ac_c" 1>&6
2207 cat > conftest.$ac_ext <<EOF
2208 #line 2209 "configure"
2209 #include "confdefs.h"
2210 /* System header to define __stub macros and hopefully few prototypes,
2211 which can conflict with char $ac_func(); below. */
2213 /* Override any gcc2 internal prototype to avoid an error. */
2214 /* We use char because int might match the return type of a gcc2
2215 builtin and then its argument prototype would still apply. */
2220 /* The GNU C library defines this for functions which it implements
2221 to always fail with ENOSYS. Some functions are actually named
2222 something starting with __ and the normal name is an alias. */
2223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2231 if { (eval echo configure:2232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2233 eval "ac_cv_func_$ac_func=yes"
2235 echo "configure: failed program was:" >&5
2236 cat conftest.$ac_ext >&5
2238 eval "ac_cv_func_$ac_func=no"
2243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2244 echo "$ac_t""yes" 1>&6
2245 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2246 cat >> confdefs.h <<EOF
2247 #define $ac_tr_func 1
2251 echo "$ac_t""no" 1>&6
2256 # check if -lsocket && -lxnet is required to compile socket stuff
2258 echo $ac_n "checking for library containing socket""... $ac_c" 1>&6
2259 echo "configure:2260: checking for library containing socket" >&5
2260 if eval "test \"`echo '$''{'ac_cv_search_socket'+set}'`\" = set"; then
2261 echo $ac_n "(cached) $ac_c" 1>&6
2263 ac_func_search_save_LIBS="$LIBS"
2264 ac_cv_search_socket="no"
2265 cat > conftest.$ac_ext <<EOF
2266 #line 2267 "configure"
2267 #include "confdefs.h"
2268 /* Override any gcc2 internal prototype to avoid an error. */
2269 /* We use char because int might match the return type of a gcc2
2270 builtin and then its argument prototype would still apply. */
2277 if { (eval echo configure:2278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2279 ac_cv_search_socket="none required"
2281 echo "configure: failed program was:" >&5
2282 cat conftest.$ac_ext >&5
2285 test "$ac_cv_search_socket" = "no" && for i in socket; do
2286 LIBS="-l$i $ac_func_search_save_LIBS"
2287 cat > conftest.$ac_ext <<EOF
2288 #line 2289 "configure"
2289 #include "confdefs.h"
2290 /* Override any gcc2 internal prototype to avoid an error. */
2291 /* We use char because int might match the return type of a gcc2
2292 builtin and then its argument prototype would still apply. */
2299 if { (eval echo configure:2300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2301 ac_cv_search_socket="-l$i"
2304 echo "configure: failed program was:" >&5
2305 cat conftest.$ac_ext >&5
2309 LIBS="$ac_func_search_save_LIBS"
2312 echo "$ac_t""$ac_cv_search_socket" 1>&6
2313 if test "$ac_cv_search_socket" != "no"; then
2314 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
2320 echo $ac_n "checking for library containing inet_addr""... $ac_c" 1>&6
2321 echo "configure:2322: checking for library containing inet_addr" >&5
2322 if eval "test \"`echo '$''{'ac_cv_search_inet_addr'+set}'`\" = set"; then
2323 echo $ac_n "(cached) $ac_c" 1>&6
2325 ac_func_search_save_LIBS="$LIBS"
2326 ac_cv_search_inet_addr="no"
2327 cat > conftest.$ac_ext <<EOF
2328 #line 2329 "configure"
2329 #include "confdefs.h"
2330 /* Override any gcc2 internal prototype to avoid an error. */
2331 /* We use char because int might match the return type of a gcc2
2332 builtin and then its argument prototype would still apply. */
2339 if { (eval echo configure:2340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2341 ac_cv_search_inet_addr="none required"
2343 echo "configure: failed program was:" >&5
2344 cat conftest.$ac_ext >&5
2347 test "$ac_cv_search_inet_addr" = "no" && for i in nsl xnet; do
2348 LIBS="-l$i $ac_func_search_save_LIBS"
2349 cat > conftest.$ac_ext <<EOF
2350 #line 2351 "configure"
2351 #include "confdefs.h"
2352 /* Override any gcc2 internal prototype to avoid an error. */
2353 /* We use char because int might match the return type of a gcc2
2354 builtin and then its argument prototype would still apply. */
2361 if { (eval echo configure:2362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2363 ac_cv_search_inet_addr="-l$i"
2366 echo "configure: failed program was:" >&5
2367 cat conftest.$ac_ext >&5
2371 LIBS="$ac_func_search_save_LIBS"
2374 echo "$ac_t""$ac_cv_search_inet_addr" 1>&6
2375 if test "$ac_cv_search_inet_addr" != "no"; then
2376 test "$ac_cv_search_inet_addr" = "none required" || LIBS="$ac_cv_search_inet_addr $LIBS"
2385 # DD_COPT macro checks if the compiler specified as the 1st parameter
2386 # supports option specified as the 2nd parameter
2387 # For example: DD_CPORT(CXX, fPIC)
2392 # Checking characteristics of compilers and other programs
2393 # --------------------------------------------------------
2394 echo $ac_n "checking whether preprocessor accepts -MM or -M""... $ac_c" 1>&6
2395 echo "configure:2396: checking whether preprocessor accepts -MM or -M" >&5
2396 if eval "test \"`echo '$''{'sdcc_cv_MM'+set}'`\" = set"; then
2397 echo $ac_n "(cached) $ac_c" 1>&6
2399 echo "#include <stdio.h>" >_test_.c
2401 $CPP -v -MM _test_.c 1>&5 2>&5
2402 if test "$?" = "0"; then
2410 echo "$ac_t""$sdcc_cv_MM" 1>&6
2414 # This is the first time when CFLAGS are set/modified!!
2416 echo $ac_n "checking whether $CC accepts -ggdb""... $ac_c" 1>&6
2417 echo "configure:2418: checking whether $CC accepts -ggdb" >&5
2418 if eval "test \"`echo '$''{'sdcc_cv_CCggdb'+set}'`\" = set"; then
2419 echo $ac_n "(cached) $ac_c" 1>&6
2425 $CC -v -ggdb -c _test_.c 1>&5 2>&5
2426 if test "$?" = "0"; then
2427 sdcc_cv_CCggdb="yes"
2431 rm -f _test_.* a.out
2434 echo "$ac_t""$sdcc_cv_CCggdb" 1>&6
2436 if test "$sdcc_cv_CCggdb" = "yes"; then
2441 echo $ac_n "checking whether $CC accepts -pipe""... $ac_c" 1>&6
2442 echo "configure:2443: checking whether $CC accepts -pipe" >&5
2443 if eval "test \"`echo '$''{'sdcc_cv_CCpipe'+set}'`\" = set"; then
2444 echo $ac_n "(cached) $ac_c" 1>&6
2450 $CC -v -pipe -c _test_.c 1>&5 2>&5
2451 if test "$?" = "0"; then
2452 sdcc_cv_CCpipe="yes"
2456 rm -f _test_.* a.out
2459 echo "$ac_t""$sdcc_cv_CCpipe" 1>&6
2461 if test "$sdcc_cv_CCpipe" = "yes"; then
2462 CFLAGS="$CFLAGS -pipe"
2466 # Checks for typedefs, structures, and compiler characteristics.
2467 # ===========================================================================
2468 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2469 echo "configure:2470: checking return type of signal handlers" >&5
2470 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2471 echo $ac_n "(cached) $ac_c" 1>&6
2473 cat > conftest.$ac_ext <<EOF
2474 #line 2475 "configure"
2475 #include "confdefs.h"
2476 #include <sys/types.h>
2482 extern "C" void (*signal (int, void (*)(int)))(int);
2484 void (*signal ()) ();
2491 if { (eval echo configure:2492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2493 ac_cv_type_signal=void
2495 echo "configure: failed program was:" >&5
2496 cat conftest.$ac_ext >&5
2498 ac_cv_type_signal=int
2503 echo "$ac_t""$ac_cv_type_signal" 1>&6
2504 cat >> confdefs.h <<EOF
2505 #define RETSIGTYPE $ac_cv_type_signal
2512 if test "${prefix}" = "NONE"; then
2517 sdcc_datadir=${datadir}/sdcc
2520 # For some unknown reason, putting this assignment in a subshell
2521 # like this causes the rvalue to be fully substituted. We need this
2522 # for the defines below to generate the right thing. We keep this
2523 # separate from the substituted sdcc_datadir because we want the
2524 # latter for makefiles.
2525 if test "${datadir}" = "\${prefix}/share"; then
2526 sdcc_datadir_tmp=${prefix}/share/sdcc
2528 sdcc_datadir_tmp=${datadir}/sdcc
2532 cat >> confdefs.h <<EOF
2533 #define STANDARD_INCLUDE_DIR "${sdcc_datadir_tmp}/include"
2536 cat >> confdefs.h <<EOF
2537 #define SDCC_INCLUDE_DIR "${sdcc_datadir_tmp}/include"
2540 cat >> confdefs.h <<EOF
2541 #define SDCC_LIB_DIR "${sdcc_datadir_tmp}/lib"
2544 cat >> confdefs.h <<EOF
2545 #define STD_LIB "libsdcc"
2548 cat >> confdefs.h <<EOF
2549 #define STD_INT_LIB "libint"
2552 cat >> confdefs.h <<EOF
2553 #define STD_LONG_LIB "liblong"
2556 cat >> confdefs.h <<EOF
2557 #define STD_FP_LIB "libfloat"
2560 cat >> confdefs.h <<EOF
2561 #define STD_DS390_LIB "libds390"
2565 cat >> confdefs.h <<EOF
2566 #define PREFIX "${prefix}"
2569 cat >> confdefs.h <<EOF
2570 #define DATADIR "${sdcc_datadir_tmp}"
2573 cat >> confdefs.h <<EOF
2574 #define SRCDIR "${config_in}"
2580 # Now handle the port selection
2581 rm -f ports.all ports.build
2582 # Check whether --enable-mcs51-port or --disable-mcs51-port was given.
2583 if test "${enable_mcs51_port+set}" = set; then
2584 enableval="$enable_mcs51_port"
2588 echo mcs51 >>ports.all
2589 if test "$enable_mcs51_port" = "no"; then
2590 cat >> confdefs.h <<EOF
2591 #define OPT_DISABLE_MCS51 1
2595 echo mcs51 >>ports.build
2596 cat >> confdefs.h <<EOF
2597 #define OPT_DISABLE_MCS51 0
2602 # Check whether --enable-gbz80-port or --disable-gbz80-port was given.
2603 if test "${enable_gbz80_port+set}" = set; then
2604 enableval="$enable_gbz80_port"
2608 echo z80 >>ports.all
2609 if test "$enable_gbz80_port" = "no"; then
2610 cat >> confdefs.h <<EOF
2611 #define OPT_DISABLE_GBZ80 1
2615 echo z80 >>ports.build
2616 cat >> confdefs.h <<EOF
2617 #define OPT_DISABLE_GBZ80 0
2622 # Check whether --enable-z80-port or --disable-z80-port was given.
2623 if test "${enable_z80_port+set}" = set; then
2624 enableval="$enable_z80_port"
2628 echo z80 >>ports.all
2629 if test "$enable_z80_port" = "no"; then
2630 cat >> confdefs.h <<EOF
2631 #define OPT_DISABLE_Z80 1
2635 echo z80 >>ports.build
2636 cat >> confdefs.h <<EOF
2637 #define OPT_DISABLE_Z80 0
2642 # Check whether --enable-avr-port or --disable-avr-port was given.
2643 if test "${enable_avr_port+set}" = set; then
2644 enableval="$enable_avr_port"
2648 echo avr >>ports.all
2649 if test "$enable_avr_port" = "no"; then
2650 cat >> confdefs.h <<EOF
2651 #define OPT_DISABLE_AVR 1
2655 echo avr >>ports.build
2656 cat >> confdefs.h <<EOF
2657 #define OPT_DISABLE_AVR 0
2662 # Check whether --enable-ds390-port or --disable-ds390-port was given.
2663 if test "${enable_ds390_port+set}" = set; then
2664 enableval="$enable_ds390_port"
2668 echo ds390 >>ports.all
2669 if test "$enable_ds390_port" = "no"; then
2670 cat >> confdefs.h <<EOF
2671 #define OPT_DISABLE_DS390 1
2675 echo ds390 >>ports.build
2676 cat >> confdefs.h <<EOF
2677 #define OPT_DISABLE_DS390 0
2682 # Check whether --enable-pic-port or --disable-pic-port was given.
2683 if test "${enable_pic_port+set}" = set; then
2684 enableval="$enable_pic_port"
2688 echo pic >>ports.all
2689 if test "$enable_pic_port" = "no"; then
2690 cat >> confdefs.h <<EOF
2691 #define OPT_DISABLE_PIC 1
2695 echo pic >>ports.build
2696 cat >> confdefs.h <<EOF
2697 #define OPT_DISABLE_PIC 0
2702 # Check whether --enable-i186-port or --disable-i186-port was given.
2703 if test "${enable_i186_port+set}" = set; then
2704 enableval="$enable_i186_port"
2708 echo izt >>ports.all
2709 if test "$enable_i186_port" = "no"; then
2710 cat >> confdefs.h <<EOF
2711 #define OPT_DISABLE_I186 1
2715 echo izt >>ports.build
2716 cat >> confdefs.h <<EOF
2717 #define OPT_DISABLE_I186 0
2722 # Check whether --enable-tlcs900h-port or --disable-tlcs900h-port was given.
2723 if test "${enable_tlcs900h_port+set}" = set; then
2724 enableval="$enable_tlcs900h_port"
2728 echo izt >>ports.all
2729 if test "$enable_tlcs900h_port" = "no"; then
2730 cat >> confdefs.h <<EOF
2731 #define OPT_DISABLE_TLCS900H 1
2735 echo izt >>ports.build
2736 cat >> confdefs.h <<EOF
2737 #define OPT_DISABLE_TLCS900H 0
2743 cat ports.all | uniq >ports
2745 cat ports.build | uniq >ports
2746 mv ports ports.build
2748 # Generating output files
2749 # ===========================================================================
2752 subdirs="sim/ucsim packihx"
2754 subdirs="sim/ucsim packihx support/cpp2"
2756 # MLH: removed as the rules are already in Makefile.common
2760 cat > confcache <<\EOF
2761 # This file is a shell script that caches the results of configure
2762 # tests run on this system so they can be shared between configure
2763 # scripts and configure runs. It is not useful on other systems.
2764 # If it contains results you don't want to keep, you may remove or edit it.
2766 # By default, configure uses ./config.cache as the cache file,
2767 # creating it if it does not exist already. You can give configure
2768 # the --cache-file=FILE option to use a different cache file; that is
2769 # what configure does when it calls configure scripts in
2770 # subdirectories, so they share the cache.
2771 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2772 # config.status only pays attention to the cache file if you give it the
2773 # --recheck option to rerun configure.
2776 # The following way of writing the cache mishandles newlines in values,
2777 # but we know of no workaround that is simple, portable, and efficient.
2778 # So, don't put newlines in cache variables' values.
2779 # Ultrix sh set writes to stderr and can't be redirected directly,
2780 # and sets the high bit in the cache file unless we assign to the vars.
2782 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2784 # `set' does not quote correctly, so add quotes (double-quote substitution
2785 # turns \\\\ into \\, and sed turns \\ into \).
2787 -e "s/'/'\\\\''/g" \
2788 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2791 # `set' quotes correctly as required by POSIX, so do not add quotes.
2792 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2795 if cmp -s $cache_file confcache; then
2798 if test -w $cache_file; then
2799 echo "updating cache $cache_file"
2800 cat confcache > $cache_file
2802 echo "not updating unwritable cache $cache_file"
2807 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2809 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2810 # Let make expand exec_prefix.
2811 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2813 # Any assignment to VPATH causes Sun make to only execute
2814 # the first set of double-colon rules, so remove it if not needed.
2815 # If there is a colon in the path, we need to keep it.
2816 if test "x$srcdir" = x.; then
2817 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2820 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2822 DEFS=-DHAVE_CONFIG_H
2824 # Without the "./", some shells look in PATH for config.status.
2825 : ${CONFIG_STATUS=./config.status}
2827 echo creating $CONFIG_STATUS
2828 rm -f $CONFIG_STATUS
2829 cat > $CONFIG_STATUS <<EOF
2831 # Generated automatically by configure.
2832 # Run this file to recreate the current configuration.
2833 # This directory was configured as follows,
2834 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2836 # $0 $ac_configure_args
2838 # Compiler output produced by configure, useful for debugging
2839 # configure, is in ./config.log if it exists.
2841 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2844 case "\$ac_option" in
2845 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2846 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2847 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2848 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2849 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2851 -help | --help | --hel | --he | --h)
2852 echo "\$ac_cs_usage"; exit 0 ;;
2853 *) echo "\$ac_cs_usage"; exit 1 ;;
2857 ac_given_srcdir=$srcdir
2858 ac_given_INSTALL="$INSTALL"
2860 trap 'rm -fr `echo "main.mk:main_in.mk
2863 support/cpp/Makefile
2864 device/include/Makefile
2866 debugger/mcs51/Makefile
2867 Makefile.common:Makefile.common.in
2868 sdccconf.h:sdccconf_in.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2870 cat >> $CONFIG_STATUS <<EOF
2872 # Protect against being on the right side of a sed subst in config.status.
2873 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2874 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2878 s%@CFLAGS@%$CFLAGS%g
2879 s%@CPPFLAGS@%$CPPFLAGS%g
2880 s%@CXXFLAGS@%$CXXFLAGS%g
2881 s%@FFLAGS@%$FFLAGS%g
2883 s%@LDFLAGS@%$LDFLAGS%g
2885 s%@exec_prefix@%$exec_prefix%g
2886 s%@prefix@%$prefix%g
2887 s%@program_transform_name@%$program_transform_name%g
2888 s%@bindir@%$bindir%g
2889 s%@sbindir@%$sbindir%g
2890 s%@libexecdir@%$libexecdir%g
2891 s%@datadir@%$datadir%g
2892 s%@sysconfdir@%$sysconfdir%g
2893 s%@sharedstatedir@%$sharedstatedir%g
2894 s%@localstatedir@%$localstatedir%g
2895 s%@libdir@%$libdir%g
2896 s%@includedir@%$includedir%g
2897 s%@oldincludedir@%$oldincludedir%g
2898 s%@infodir@%$infodir%g
2899 s%@mandir@%$mandir%g
2901 s%@VERSION@%$VERSION%g
2902 s%@VERSIONHI@%$VERSIONHI%g
2903 s%@VERSIONLO@%$VERSIONLO%g
2904 s%@VERSIONP@%$VERSIONP%g
2908 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2909 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2910 s%@INSTALL_DATA@%$INSTALL_DATA%g
2911 s%@RANLIB@%$RANLIB%g
2913 s%@LEXLIB@%$LEXLIB%g
2915 s%@AUTOCONF@%$AUTOCONF%g
2919 s%@M_OR_MM@%$M_OR_MM%g
2920 s%@sdcc_datadir@%$sdcc_datadir%g
2921 s%@subdirs@%$subdirs%g
2926 cat >> $CONFIG_STATUS <<\EOF
2928 # Split the substitutions into bite-sized pieces for seds with
2929 # small command number limits, like on Digital OSF/1 and HP-UX.
2930 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2931 ac_file=1 # Number of current file.
2932 ac_beg=1 # First line for current file.
2933 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2936 while $ac_more_lines; do
2937 if test $ac_beg -gt 1; then
2938 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2940 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2942 if test ! -s conftest.s$ac_file; then
2944 rm -f conftest.s$ac_file
2946 if test -z "$ac_sed_cmds"; then
2947 ac_sed_cmds="sed -f conftest.s$ac_file"
2949 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2951 ac_file=`expr $ac_file + 1`
2953 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2956 if test -z "$ac_sed_cmds"; then
2961 cat >> $CONFIG_STATUS <<EOF
2963 CONFIG_FILES=\${CONFIG_FILES-"main.mk:main_in.mk
2966 support/cpp/Makefile
2967 device/include/Makefile
2969 debugger/mcs51/Makefile
2970 Makefile.common:Makefile.common.in
2973 cat >> $CONFIG_STATUS <<\EOF
2974 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2975 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2977 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2978 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2979 *) ac_file_in="${ac_file}.in" ;;
2982 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2984 # Remove last slash and all that follows it. Not all systems have dirname.
2985 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2986 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2987 # The file is in a subdirectory.
2988 test ! -d "$ac_dir" && mkdir "$ac_dir"
2989 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2990 # A "../" for each directory in $ac_dir_suffix.
2991 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2993 ac_dir_suffix= ac_dots=
2996 case "$ac_given_srcdir" in
2998 if test -z "$ac_dots"; then top_srcdir=.
2999 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3000 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3002 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3003 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3006 case "$ac_given_INSTALL" in
3007 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3008 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3011 echo creating "$ac_file"
3013 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3015 *Makefile*) ac_comsub="1i\\
3016 # $configure_input" ;;
3020 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3022 s%@configure_input@%$configure_input%g
3023 s%@srcdir@%$srcdir%g
3024 s%@top_srcdir@%$top_srcdir%g
3025 s%@INSTALL@%$INSTALL%g
3026 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3030 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3031 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3033 # ac_d sets the value in "#define NAME VALUE" lines.
3034 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3035 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3038 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3039 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3040 ac_uB='\([ ]\)%\1#\2define\3'
3043 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3044 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3045 ac_eB='$%\1#\2define\3'
3049 if test "${CONFIG_HEADERS+set}" != set; then
3051 cat >> $CONFIG_STATUS <<EOF
3052 CONFIG_HEADERS="sdccconf.h:sdccconf_in.h"
3054 cat >> $CONFIG_STATUS <<\EOF
3056 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3057 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3059 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3060 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3061 *) ac_file_in="${ac_file}.in" ;;
3064 echo creating $ac_file
3066 rm -f conftest.frag conftest.in conftest.out
3067 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3068 cat $ac_file_inputs > conftest.in
3072 # Transform confdefs.h into a sed script conftest.vals that substitutes
3073 # the proper values into config.h.in to produce config.h. And first:
3074 # Protect against being on the right side of a sed subst in config.status.
3075 # Protect against being in an unquoted here document in config.status.
3077 cat > conftest.hdr <<\EOF
3080 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3084 sed -n -f conftest.hdr confdefs.h > conftest.vals
3087 # This sed command replaces #undef with comments. This is necessary, for
3088 # example, in the case of _POSIX_SOURCE, which is predefined and required
3089 # on some systems where configure will not decide to define it.
3090 cat >> conftest.vals <<\EOF
3091 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3094 # Break up conftest.vals because some shells have a limit on
3095 # the size of here documents, and old seds have small limits too.
3100 ac_lines=`grep -c . conftest.vals`
3101 # grep -c gives empty output for an empty file on some AIX systems.
3102 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3103 # Write a limited-size here document to conftest.frag.
3104 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3105 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3107 sed -f conftest.frag conftest.in > conftest.out
3109 mv conftest.out conftest.in
3111 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3113 mv conftest.tail conftest.vals
3117 cat >> $CONFIG_STATUS <<\EOF
3118 rm -f conftest.frag conftest.h
3119 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3120 cat conftest.in >> conftest.h
3122 if cmp -s $ac_file conftest.h 2>/dev/null; then
3123 echo "$ac_file is unchanged"
3126 # Remove last slash and all that follows it. Not all systems have dirname.
3127 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3128 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3129 # The file is in a subdirectory.
3130 test ! -d "$ac_dir" && mkdir "$ac_dir"
3133 mv conftest.h $ac_file
3138 cat >> $CONFIG_STATUS <<EOF
3141 cat >> $CONFIG_STATUS <<\EOF
3145 chmod +x $CONFIG_STATUS
3146 rm -fr confdefs* $ac_clean_files
3147 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3149 if test "$no_recursion" != yes; then
3151 # Remove --cache-file and --srcdir arguments so they do not pile up.
3152 ac_sub_configure_args=
3154 for ac_arg in $ac_configure_args; do
3155 if test -n "$ac_prev"; then
3160 -cache-file | --cache-file | --cache-fil | --cache-fi \
3161 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3162 ac_prev=cache_file ;;
3163 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3164 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3166 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3168 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3170 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3174 for ac_config_dir in sim/ucsim packihx support/cpp2; do
3176 # Do not complain, so a configure script can configure whichever
3177 # parts of a large source tree are present.
3178 if test ! -d $srcdir/$ac_config_dir; then
3182 echo configuring in $ac_config_dir
3187 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3189 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3197 # A "../" for each directory in /$ac_config_dir.
3198 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3201 .) # No --srcdir option. We are building in place.
3202 ac_sub_srcdir=$srcdir ;;
3203 /*) # Absolute path.
3204 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3206 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3209 # Check for guested configure; otherwise get Cygnus style configure.
3210 if test -f $ac_sub_srcdir/configure; then
3211 ac_sub_configure=$ac_sub_srcdir/configure
3212 elif test -f $ac_sub_srcdir/configure.in; then
3213 ac_sub_configure=$ac_configure
3215 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3219 # The recursion is here.
3220 if test -n "$ac_sub_configure"; then
3222 # Make the cache file name correct relative to the subdirectory.
3223 case "$cache_file" in
3224 /*) ac_sub_cache_file=$cache_file ;;
3226 ac_sub_cache_file="$ac_dots$cache_file" ;;
3228 case "$ac_given_INSTALL" in
3229 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3230 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3233 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3234 # The eval makes quoting arguments work.
3235 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3238 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3247 # End of configure/configure.in