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 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 # Initialize some variables set by options.
19 # The variables have the same names as the options, with
20 # dashes changed to underlines.
22 cache_file=./config.cache
31 program_transform_name=s,x,x,
39 bindir='${exec_prefix}/bin'
40 sbindir='${exec_prefix}/sbin'
41 libexecdir='${exec_prefix}/libexec'
42 datadir='${prefix}/share'
43 sysconfdir='${prefix}/etc'
44 sharedstatedir='${prefix}/com'
45 localstatedir='${prefix}/var'
46 libdir='${exec_prefix}/lib'
47 includedir='${prefix}/include'
48 oldincludedir='/usr/include'
49 infodir='${prefix}/info'
50 mandir='${prefix}/man'
52 # Initialize some other variables.
55 SHELL=${CONFIG_SHELL-/bin/sh}
56 # Maximum number of lines to put in a shell here document.
63 # If the previous option needs an argument, assign it.
64 if test -n "$ac_prev"; then
65 eval "$ac_prev=\$ac_option"
71 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
75 # Accept the important Cygnus configure options, so we can diagnose typos.
79 -bindir | --bindir | --bindi | --bind | --bin | --bi)
81 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
82 bindir="$ac_optarg" ;;
84 -build | --build | --buil | --bui | --bu)
86 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
89 -cache-file | --cache-file | --cache-fil | --cache-fi \
90 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
92 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
93 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
94 cache_file="$ac_optarg" ;;
96 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
98 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
100 datadir="$ac_optarg" ;;
102 -disable-* | --disable-*)
103 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
104 # Reject names that are not valid shell variable names.
105 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
106 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
108 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
109 eval "enable_${ac_feature}=no" ;;
111 -enable-* | --enable-*)
112 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
113 # Reject names that are not valid shell variable names.
114 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
115 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
122 eval "enable_${ac_feature}='$ac_optarg'" ;;
124 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
125 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
126 | --exec | --exe | --ex)
127 ac_prev=exec_prefix ;;
128 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
129 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
130 | --exec=* | --exe=* | --ex=*)
131 exec_prefix="$ac_optarg" ;;
133 -gas | --gas | --ga | --g)
134 # Obsolete; use --with-gas.
137 -help | --help | --hel | --he)
138 # Omit some internal or obsolete options to make the list less imposing.
139 # This message is too long to be a string in the A/UX 3.1 sh.
141 Usage: configure [options] [host]
142 Options: [defaults in brackets after descriptions]
144 --cache-file=FILE cache test results in FILE
145 --help print this message
146 --no-create do not create output files
147 --quiet, --silent do not print \`checking...' messages
148 --version print the version of autoconf that created configure
149 Directory and file names:
150 --prefix=PREFIX install architecture-independent files in PREFIX
152 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
154 --bindir=DIR user executables in DIR [EPREFIX/bin]
155 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
156 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
157 --datadir=DIR read-only architecture-independent data in DIR
159 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
160 --sharedstatedir=DIR modifiable architecture-independent data in DIR
162 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
163 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
164 --includedir=DIR C header files in DIR [PREFIX/include]
165 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
166 --infodir=DIR info documentation in DIR [PREFIX/info]
167 --mandir=DIR man documentation in DIR [PREFIX/man]
168 --srcdir=DIR find the sources in DIR [configure dir or ..]
169 --program-prefix=PREFIX prepend PREFIX to installed program names
170 --program-suffix=SUFFIX append SUFFIX to installed program names
171 --program-transform-name=PROGRAM
172 run sed PROGRAM on installed program names
176 --build=BUILD configure for building on BUILD [BUILD=HOST]
177 --host=HOST configure for HOST [guessed]
178 --target=TARGET configure for TARGET [TARGET=HOST]
179 Features and packages:
180 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
181 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
182 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
183 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
184 --x-includes=DIR X include files are in DIR
185 --x-libraries=DIR X library files are in DIR
187 if test -n "$ac_help"; then
188 echo "--enable and --with options recognized:$ac_help"
192 -host | --host | --hos | --ho)
194 -host=* | --host=* | --hos=* | --ho=*)
197 -includedir | --includedir | --includedi | --included | --include \
198 | --includ | --inclu | --incl | --inc)
199 ac_prev=includedir ;;
200 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
201 | --includ=* | --inclu=* | --incl=* | --inc=*)
202 includedir="$ac_optarg" ;;
204 -infodir | --infodir | --infodi | --infod | --info | --inf)
206 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
207 infodir="$ac_optarg" ;;
209 -libdir | --libdir | --libdi | --libd)
211 -libdir=* | --libdir=* | --libdi=* | --libd=*)
212 libdir="$ac_optarg" ;;
214 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
215 | --libexe | --libex | --libe)
216 ac_prev=libexecdir ;;
217 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
218 | --libexe=* | --libex=* | --libe=*)
219 libexecdir="$ac_optarg" ;;
221 -localstatedir | --localstatedir | --localstatedi | --localstated \
222 | --localstate | --localstat | --localsta | --localst \
223 | --locals | --local | --loca | --loc | --lo)
224 ac_prev=localstatedir ;;
225 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
226 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
227 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
228 localstatedir="$ac_optarg" ;;
230 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
232 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
233 mandir="$ac_optarg" ;;
236 # Obsolete; use --without-fp.
239 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
243 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
244 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
247 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
248 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
249 | --oldin | --oldi | --old | --ol | --o)
250 ac_prev=oldincludedir ;;
251 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
252 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
253 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
254 oldincludedir="$ac_optarg" ;;
256 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
258 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
259 prefix="$ac_optarg" ;;
261 -program-prefix | --program-prefix | --program-prefi | --program-pref \
262 | --program-pre | --program-pr | --program-p)
263 ac_prev=program_prefix ;;
264 -program-prefix=* | --program-prefix=* | --program-prefi=* \
265 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
266 program_prefix="$ac_optarg" ;;
268 -program-suffix | --program-suffix | --program-suffi | --program-suff \
269 | --program-suf | --program-su | --program-s)
270 ac_prev=program_suffix ;;
271 -program-suffix=* | --program-suffix=* | --program-suffi=* \
272 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
273 program_suffix="$ac_optarg" ;;
275 -program-transform-name | --program-transform-name \
276 | --program-transform-nam | --program-transform-na \
277 | --program-transform-n | --program-transform- \
278 | --program-transform | --program-transfor \
279 | --program-transfo | --program-transf \
280 | --program-trans | --program-tran \
281 | --progr-tra | --program-tr | --program-t)
282 ac_prev=program_transform_name ;;
283 -program-transform-name=* | --program-transform-name=* \
284 | --program-transform-nam=* | --program-transform-na=* \
285 | --program-transform-n=* | --program-transform-=* \
286 | --program-transform=* | --program-transfor=* \
287 | --program-transfo=* | --program-transf=* \
288 | --program-trans=* | --program-tran=* \
289 | --progr-tra=* | --program-tr=* | --program-t=*)
290 program_transform_name="$ac_optarg" ;;
292 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
293 | -silent | --silent | --silen | --sile | --sil)
296 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
298 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
300 sbindir="$ac_optarg" ;;
302 -sharedstatedir | --sharedstatedir | --sharedstatedi \
303 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
304 | --sharedst | --shareds | --shared | --share | --shar \
306 ac_prev=sharedstatedir ;;
307 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
308 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
309 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
311 sharedstatedir="$ac_optarg" ;;
313 -site | --site | --sit)
315 -site=* | --site=* | --sit=*)
318 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
320 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
321 srcdir="$ac_optarg" ;;
323 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
324 | --syscon | --sysco | --sysc | --sys | --sy)
325 ac_prev=sysconfdir ;;
326 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
327 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
328 sysconfdir="$ac_optarg" ;;
330 -target | --target | --targe | --targ | --tar | --ta | --t)
332 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
333 target="$ac_optarg" ;;
335 -v | -verbose | --verbose | --verbos | --verbo | --verb)
338 -version | --version | --versio | --versi | --vers)
339 echo "configure generated by autoconf version 2.13"
343 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
344 # Reject names that are not valid shell variable names.
345 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
346 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
348 ac_package=`echo $ac_package| sed 's/-/_/g'`
353 eval "with_${ac_package}='$ac_optarg'" ;;
355 -without-* | --without-*)
356 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
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'`
362 eval "with_${ac_package}=no" ;;
365 # Obsolete; use --with-x.
368 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
369 | --x-incl | --x-inc | --x-in | --x-i)
370 ac_prev=x_includes ;;
371 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
372 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
373 x_includes="$ac_optarg" ;;
375 -x-libraries | --x-libraries | --x-librarie | --x-librari \
376 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
377 ac_prev=x_libraries ;;
378 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
379 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
380 x_libraries="$ac_optarg" ;;
382 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
386 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
387 echo "configure: warning: $ac_option: invalid host type" 1>&2
389 if test "x$nonopt" != xNONE; then
390 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
398 if test -n "$ac_prev"; then
399 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
402 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
404 # File descriptor usage:
407 # 2 errors and warnings
408 # 3 some systems may open it to /dev/tty
409 # 4 used on the Kubota Titan
410 # 6 checking for... messages and results
411 # 5 compiler messages saved in config.log
412 if test "$silent" = yes; then
420 This file contains any messages produced by compilers while
421 running configure, to aid debugging if configure makes a mistake.
424 # Strip out --no-create and --no-recursion so they do not pile up.
425 # Also quote any args containing shell metacharacters.
430 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
431 | --no-cr | --no-c) ;;
432 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
433 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
434 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
435 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
436 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
441 # Only set these to C if already set. These must not be set unconditionally
442 # because not all systems understand e.g. LANG=C (notably SCO).
443 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
444 # Non-C LC_CTYPE values break the ctype check.
445 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
446 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
447 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
448 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
450 # confdefs.h avoids OS command line length limits that DEFS can exceed.
451 rm -rf conftest* confdefs.h
452 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
455 # A filename unique to this package, relative to the directory that
456 # configure is in, which we can look for to find out if srcdir is correct.
457 ac_unique_file=watchdog.tcl
459 # Find the source files, if location was not specified.
460 if test -z "$srcdir"; then
461 ac_srcdir_defaulted=yes
462 # Try the directory containing this script, then its parent.
464 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
465 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
467 if test ! -r $srcdir/$ac_unique_file; then
471 ac_srcdir_defaulted=no
473 if test ! -r $srcdir/$ac_unique_file; then
474 if test "$ac_srcdir_defaulted" = yes; then
475 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
477 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
480 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
482 # Prefer explicitly selected file to automatically selected ones.
483 if test -z "$CONFIG_SITE"; then
484 if test "x$prefix" != xNONE; then
485 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
487 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
490 for ac_site_file in $CONFIG_SITE; do
491 if test -r "$ac_site_file"; then
492 echo "loading site script $ac_site_file"
497 if test -r "$cache_file"; then
498 echo "loading cache $cache_file"
501 echo "creating cache $cache_file"
506 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
507 ac_cpp='$CPP $CPPFLAGS'
508 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
509 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
510 cross_compiling=$ac_cv_prog_cc_cross
514 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
515 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
516 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
523 ac_n= ac_c='\c' ac_t=
529 for ac_dir in ../../../../../../acsupport $srcdir/../../../../../../acsupport; do
530 if test -f $ac_dir/install-sh; then
532 ac_install_sh="$ac_aux_dir/install-sh -c"
534 elif test -f $ac_dir/install.sh; then
536 ac_install_sh="$ac_aux_dir/install.sh -c"
540 if test -z "$ac_aux_dir"; then
541 { echo "configure: error: can not find install-sh or install.sh in ../../../../../../acsupport $srcdir/../../../../../../acsupport" 1>&2; exit 1; }
543 ac_config_guess=$ac_aux_dir/config.guess
544 ac_config_sub=$ac_aux_dir/config.sub
545 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
549 echo $ac_n "checking that a separate build tree is being used""... $ac_c" 1>&6
550 echo "configure:551: checking that a separate build tree is being used" >&5
552 if test "${srcdir}" = "." ; then
555 if test "${ecos_cwd}" = "${srcdir}" ; then
556 echo "$ac_t""no" 1>&6
557 { echo "configure: error: This configure script should not be run inside the source tree. Instead please use a separate build tree" 1>&2; exit 1; }
559 echo "$ac_t""yes" 1>&6
563 # Make sure we can run config.sub.
564 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
565 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
568 echo $ac_n "checking host system type""... $ac_c" 1>&6
569 echo "configure:570: checking host system type" >&5
572 case "$host_alias" in
576 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
577 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
579 *) host_alias=$nonopt ;;
583 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
584 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
585 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
586 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
587 echo "$ac_t""$host" 1>&6
589 # Find a good install program. We prefer a C program (faster),
590 # so one script is as good as another. But avoid the broken or
591 # incompatible versions:
592 # SysV /etc/install, /usr/sbin/install
593 # SunOS /usr/etc/install
596 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
597 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
598 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
599 # ./install, which can be erroneously created by make from ./install.sh.
600 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
601 echo "configure:602: checking for a BSD compatible install" >&5
602 if test -z "$INSTALL"; then
603 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
604 echo $ac_n "(cached) $ac_c" 1>&6
606 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
607 for ac_dir in $PATH; do
608 # Account for people who put trailing slashes in PATH elements.
610 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
612 # OSF1 and SCO ODT 3.0 have their own names for install.
613 # Don't use installbsd from OSF since it installs stuff as root
615 for ac_prog in ginstall scoinst install; do
616 if test -f $ac_dir/$ac_prog; then
617 if test $ac_prog = install &&
618 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
619 # AIX install. It has an incompatible calling convention.
622 ac_cv_path_install="$ac_dir/$ac_prog -c"
633 if test "${ac_cv_path_install+set}" = set; then
634 INSTALL="$ac_cv_path_install"
636 # As a last resort, use the slow shell script. We don't cache a
637 # path for INSTALL within a source directory, because that will
638 # break other packages using the cache if that directory is
639 # removed, or if the path is relative.
640 INSTALL="$ac_install_sh"
643 echo "$ac_t""$INSTALL" 1>&6
645 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
646 # It thinks the first close brace ends the variable substitution.
647 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
649 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
651 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
653 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
654 echo "configure:655: checking whether build environment is sane" >&5
657 echo timestamp > conftestfile
658 # Do `set' in a subshell so we don't clobber the current shell's
659 # arguments. Must try -L first in case configure is actually a
660 # symlink; some systems play weird games with the mod time of symlinks
661 # (eg FreeBSD returns the mod time of the symlink's containing
664 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
665 if test "$*" = "X"; then
667 set X `ls -t $srcdir/configure conftestfile`
669 if test "$*" != "X $srcdir/configure conftestfile" \
670 && test "$*" != "X conftestfile $srcdir/configure"; then
672 # If neither matched, then we have a broken ls. This can happen
673 # if, for instance, CONFIG_SHELL is bash and it inherits a
674 # broken ls alias from the environment. This has actually
675 # happened. Such a system could not be considered "sane".
676 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
677 alias in your environment" 1>&2; exit 1; }
680 test "$2" = conftestfile
686 { echo "configure: error: newly created file is older than distributed files!
687 Check your system clock" 1>&2; exit 1; }
690 echo "$ac_t""yes" 1>&6
691 if test "$program_transform_name" = s,x,x,; then
692 program_transform_name=
694 # Double any \ or $. echo might interpret backslashes.
695 cat <<\EOF_SED > conftestsed
696 s,\\,\\\\,g; s,\$,$$,g
698 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
701 test "$program_prefix" != NONE &&
702 program_transform_name="s,^,${program_prefix},; $program_transform_name"
703 # Use a double $ so make ignores it.
704 test "$program_suffix" != NONE &&
705 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
707 # sed with no file args requires a program.
708 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
710 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
711 echo "configure:712: checking whether ${MAKE-make} sets \${MAKE}" >&5
712 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
713 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
714 echo $ac_n "(cached) $ac_c" 1>&6
716 cat > conftestmake <<\EOF
718 @echo 'ac_maketemp="${MAKE}"'
720 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
721 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
722 if test -n "$ac_maketemp"; then
723 eval ac_cv_prog_make_${ac_make}_set=yes
725 eval ac_cv_prog_make_${ac_make}_set=no
729 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
730 echo "$ac_t""yes" 1>&6
733 echo "$ac_t""no" 1>&6
734 SET_MAKE="MAKE=${MAKE-make}"
738 PACKAGE=eCos_synthetic_target_watchdog
742 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
743 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
748 missing_dir=`cd $ac_aux_dir && pwd`
749 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
750 echo "configure:751: checking for working aclocal" >&5
751 # Run test in a subshell; some versions of sh will print an error if
752 # an executable is not found, even if stderr is redirected.
753 # Redirect stdin to placate older versions of autoconf. Sigh.
754 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
756 echo "$ac_t""found" 1>&6
758 ACLOCAL="$missing_dir/missing aclocal"
759 echo "$ac_t""missing" 1>&6
762 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
763 echo "configure:764: checking for working autoconf" >&5
764 # Run test in a subshell; some versions of sh will print an error if
765 # an executable is not found, even if stderr is redirected.
766 # Redirect stdin to placate older versions of autoconf. Sigh.
767 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
769 echo "$ac_t""found" 1>&6
771 AUTOCONF="$missing_dir/missing autoconf"
772 echo "$ac_t""missing" 1>&6
775 echo $ac_n "checking for working automake""... $ac_c" 1>&6
776 echo "configure:777: checking for working automake" >&5
777 # Run test in a subshell; some versions of sh will print an error if
778 # an executable is not found, even if stderr is redirected.
779 # Redirect stdin to placate older versions of autoconf. Sigh.
780 if (automake --version) < /dev/null > /dev/null 2>&1; then
782 echo "$ac_t""found" 1>&6
784 AUTOMAKE="$missing_dir/missing automake"
785 echo "$ac_t""missing" 1>&6
788 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
789 echo "configure:790: checking for working autoheader" >&5
790 # Run test in a subshell; some versions of sh will print an error if
791 # an executable is not found, even if stderr is redirected.
792 # Redirect stdin to placate older versions of autoconf. Sigh.
793 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
794 AUTOHEADER=autoheader
795 echo "$ac_t""found" 1>&6
797 AUTOHEADER="$missing_dir/missing autoheader"
798 echo "$ac_t""missing" 1>&6
801 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
802 echo "configure:803: checking for working makeinfo" >&5
803 # Run test in a subshell; some versions of sh will print an error if
804 # an executable is not found, even if stderr is redirected.
805 # Redirect stdin to placate older versions of autoconf. Sigh.
806 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
808 echo "$ac_t""found" 1>&6
810 MAKEINFO="$missing_dir/missing makeinfo"
811 echo "$ac_t""missing" 1>&6
815 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
816 echo "configure:817: checking whether to enable maintainer-specific portions of Makefiles" >&5
817 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
818 if test "${enable_maintainer_mode+set}" = set; then
819 enableval="$enable_maintainer_mode"
820 USE_MAINTAINER_MODE=$enableval
822 USE_MAINTAINER_MODE=no
825 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
828 if test $USE_MAINTAINER_MODE = yes; then
829 MAINTAINER_MODE_TRUE=
830 MAINTAINER_MODE_FALSE='#'
832 MAINTAINER_MODE_TRUE='#'
833 MAINTAINER_MODE_FALSE=
835 MAINT=$MAINTAINER_MODE_TRUE
840 i[34567]86-*-linux-gnu* ) SUPPORTED="yes";;
845 if test "${SUPPORTED}" = "yes"; then
853 if test "${SUPPORTED}" = "yes" ; then
856 package_dir=`cd ${srcdir} && /bin/pwd`
857 PACKAGE_VERSION=`dirname ${package_dir}`
858 PACKAGE_VERSION=`basename ${PACKAGE_VERSION}`
860 package_dir=`dirname ${package_dir}`
861 package_dir=`dirname ${package_dir}`
863 possibles="${package_dir}/.. ${package_dir}/../.. ${package_dir}/../../.. ${package_dir}/../../../.."
864 possibles="${possibles} ${package_dir}/../../../../.. ${package_dir}/../../../../../.."
867 for i in ${possibles}; do
868 if test -d "$i/"acsupport""; then
874 if test "${repository_root}" = "" ; then
875 { echo "configure: error: Failed to identify this package's position within the eCos repository" 1>&2; exit 1; }
877 ECOS_REPOSITORY=`cd "${repository_root}/packages/pkgconf/.." && /bin/pwd`
879 PACKAGE_DIR=`echo ${package_dir} | sed -e "s:${ECOS_REPOSITORY}/::"`
881 PACKAGE_INSTALL="${PACKAGE_DIR}/${PACKAGE_VERSION}"
891 cat > confcache <<\EOF
892 # This file is a shell script that caches the results of configure
893 # tests run on this system so they can be shared between configure
894 # scripts and configure runs. It is not useful on other systems.
895 # If it contains results you don't want to keep, you may remove or edit it.
897 # By default, configure uses ./config.cache as the cache file,
898 # creating it if it does not exist already. You can give configure
899 # the --cache-file=FILE option to use a different cache file; that is
900 # what configure does when it calls configure scripts in
901 # subdirectories, so they share the cache.
902 # Giving --cache-file=/dev/null disables caching, for debugging configure.
903 # config.status only pays attention to the cache file if you give it the
904 # --recheck option to rerun configure.
907 # The following way of writing the cache mishandles newlines in values,
908 # but we know of no workaround that is simple, portable, and efficient.
909 # So, don't put newlines in cache variables' values.
910 # Ultrix sh set writes to stderr and can't be redirected directly,
911 # and sets the high bit in the cache file unless we assign to the vars.
913 case `(ac_space=' '; set | grep ac_space) 2>&1` in
915 # `set' does not quote correctly, so add quotes (double-quote substitution
916 # turns \\\\ into \\, and sed turns \\ into \).
919 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
922 # `set' quotes correctly as required by POSIX, so do not add quotes.
923 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
926 if cmp -s $cache_file confcache; then
929 if test -w $cache_file; then
930 echo "updating cache $cache_file"
931 cat confcache > $cache_file
933 echo "not updating unwritable cache $cache_file"
938 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
940 test "x$prefix" = xNONE && prefix=$ac_default_prefix
941 # Let make expand exec_prefix.
942 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
944 # Any assignment to VPATH causes Sun make to only execute
945 # the first set of double-colon rules, so remove it if not needed.
946 # If there is a colon in the path, we need to keep it.
947 if test "x$srcdir" = x.; then
948 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
951 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
953 # Transform confdefs.h into DEFS.
954 # Protect against shell expansion while executing Makefile rules.
955 # Protect against Makefile macro expansion.
956 cat > conftest.defs <<\EOF
957 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
958 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
963 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
967 # Without the "./", some shells look in PATH for config.status.
968 : ${CONFIG_STATUS=./config.status}
970 echo creating $CONFIG_STATUS
972 cat > $CONFIG_STATUS <<EOF
974 # Generated automatically by configure.
975 # Run this file to recreate the current configuration.
976 # This directory was configured as follows,
977 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
979 # $0 $ac_configure_args
981 # Compiler output produced by configure, useful for debugging
982 # configure, is in ./config.log if it exists.
984 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
987 case "\$ac_option" in
988 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
989 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
990 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
991 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
992 echo "$CONFIG_STATUS generated by autoconf version 2.13"
994 -help | --help | --hel | --he | --h)
995 echo "\$ac_cs_usage"; exit 0 ;;
996 *) echo "\$ac_cs_usage"; exit 1 ;;
1000 ac_given_srcdir=$srcdir
1001 ac_given_INSTALL="$INSTALL"
1003 trap 'rm -fr `echo "Makefile:Makefile.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1005 cat >> $CONFIG_STATUS <<EOF
1007 # Protect against being on the right side of a sed subst in config.status.
1008 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1009 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1013 s%@CFLAGS@%$CFLAGS%g
1014 s%@CPPFLAGS@%$CPPFLAGS%g
1015 s%@CXXFLAGS@%$CXXFLAGS%g
1016 s%@FFLAGS@%$FFLAGS%g
1018 s%@LDFLAGS@%$LDFLAGS%g
1020 s%@exec_prefix@%$exec_prefix%g
1021 s%@prefix@%$prefix%g
1022 s%@program_transform_name@%$program_transform_name%g
1023 s%@bindir@%$bindir%g
1024 s%@sbindir@%$sbindir%g
1025 s%@libexecdir@%$libexecdir%g
1026 s%@datadir@%$datadir%g
1027 s%@sysconfdir@%$sysconfdir%g
1028 s%@sharedstatedir@%$sharedstatedir%g
1029 s%@localstatedir@%$localstatedir%g
1030 s%@libdir@%$libdir%g
1031 s%@includedir@%$includedir%g
1032 s%@oldincludedir@%$oldincludedir%g
1033 s%@infodir@%$infodir%g
1034 s%@mandir@%$mandir%g
1036 s%@host_alias@%$host_alias%g
1037 s%@host_cpu@%$host_cpu%g
1038 s%@host_vendor@%$host_vendor%g
1039 s%@host_os@%$host_os%g
1040 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1041 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1042 s%@INSTALL_DATA@%$INSTALL_DATA%g
1043 s%@PACKAGE@%$PACKAGE%g
1044 s%@VERSION@%$VERSION%g
1045 s%@ACLOCAL@%$ACLOCAL%g
1046 s%@AUTOCONF@%$AUTOCONF%g
1047 s%@AUTOMAKE@%$AUTOMAKE%g
1048 s%@AUTOHEADER@%$AUTOHEADER%g
1049 s%@MAKEINFO@%$MAKEINFO%g
1050 s%@SET_MAKE@%$SET_MAKE%g
1051 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
1052 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
1054 s%@SUPPORTED_TRUE@%$SUPPORTED_TRUE%g
1055 s%@SUPPORTED_FALSE@%$SUPPORTED_FALSE%g
1056 s%@ECOS_REPOSITORY@%$ECOS_REPOSITORY%g
1057 s%@PACKAGE_DIR@%$PACKAGE_DIR%g
1058 s%@PACKAGE_VERSION@%$PACKAGE_VERSION%g
1059 s%@PACKAGE_INSTALL@%$PACKAGE_INSTALL%g
1064 cat >> $CONFIG_STATUS <<\EOF
1066 # Split the substitutions into bite-sized pieces for seds with
1067 # small command number limits, like on Digital OSF/1 and HP-UX.
1068 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1069 ac_file=1 # Number of current file.
1070 ac_beg=1 # First line for current file.
1071 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1074 while $ac_more_lines; do
1075 if test $ac_beg -gt 1; then
1076 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1078 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1080 if test ! -s conftest.s$ac_file; then
1082 rm -f conftest.s$ac_file
1084 if test -z "$ac_sed_cmds"; then
1085 ac_sed_cmds="sed -f conftest.s$ac_file"
1087 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1089 ac_file=`expr $ac_file + 1`
1091 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1094 if test -z "$ac_sed_cmds"; then
1099 cat >> $CONFIG_STATUS <<EOF
1101 CONFIG_FILES=\${CONFIG_FILES-"Makefile:Makefile.in"}
1103 cat >> $CONFIG_STATUS <<\EOF
1104 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1105 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1107 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1108 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1109 *) ac_file_in="${ac_file}.in" ;;
1112 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1114 # Remove last slash and all that follows it. Not all systems have dirname.
1115 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1116 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1117 # The file is in a subdirectory.
1118 test ! -d "$ac_dir" && mkdir "$ac_dir"
1119 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1120 # A "../" for each directory in $ac_dir_suffix.
1121 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1123 ac_dir_suffix= ac_dots=
1126 case "$ac_given_srcdir" in
1128 if test -z "$ac_dots"; then top_srcdir=.
1129 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1130 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1132 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1133 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1136 case "$ac_given_INSTALL" in
1137 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1138 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1141 echo creating "$ac_file"
1143 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1145 *Makefile*) ac_comsub="1i\\
1146 # $configure_input" ;;
1150 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1152 s%@configure_input@%$configure_input%g
1153 s%@srcdir@%$srcdir%g
1154 s%@top_srcdir@%$top_srcdir%g
1155 s%@INSTALL@%$INSTALL%g
1156 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1161 cat >> $CONFIG_STATUS <<EOF
1164 cat >> $CONFIG_STATUS <<\EOF
1168 chmod +x $CONFIG_STATUS
1169 rm -fr confdefs* $ac_clean_files
1170 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1