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:
19 # Initialize some variables set by options.
20 # The variables have the same names as the options, with
21 # dashes changed to underlines.
23 cache_file
=.
/config.cache
32 program_transform_name
=s
,x
,x
,
40 bindir
='${exec_prefix}/bin'
41 sbindir
='${exec_prefix}/sbin'
42 libexecdir
='${exec_prefix}/libexec'
43 datadir
='${prefix}/share'
44 sysconfdir
='${prefix}/etc'
45 sharedstatedir
='${prefix}/com'
46 localstatedir
='${prefix}/var'
47 libdir
='${exec_prefix}/lib'
48 includedir
='${prefix}/include'
49 oldincludedir
='/usr/include'
50 infodir
='${prefix}/info'
51 mandir
='${prefix}/man'
53 # Initialize some other variables.
56 SHELL
=${CONFIG_SHELL-/bin/sh}
57 # Maximum number of lines to put in a shell here document.
64 # If the previous option needs an argument, assign it.
65 if test -n "$ac_prev"; then
66 eval "$ac_prev=\$ac_option"
72 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
76 # Accept the important Cygnus configure options, so we can diagnose typos.
80 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
82 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
83 bindir
="$ac_optarg" ;;
85 -build |
--build |
--buil |
--bui |
--bu)
87 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
90 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
91 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
93 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
94 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
95 cache_file
="$ac_optarg" ;;
97 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
99 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
101 datadir
="$ac_optarg" ;;
103 -disable-* |
--disable-*)
104 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
105 # Reject names that are not valid shell variable names.
106 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
107 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
109 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
110 eval "enable_${ac_feature}=no" ;;
112 -enable-* |
--enable-*)
113 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}='$ac_optarg'" ;;
125 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
126 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
127 |
--exec |
--exe |
--ex)
128 ac_prev
=exec_prefix
;;
129 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
130 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
131 |
--exec=* |
--exe=* |
--ex=*)
132 exec_prefix
="$ac_optarg" ;;
134 -gas |
--gas |
--ga |
--g)
135 # Obsolete; use --with-gas.
138 -help |
--help |
--hel |
--he)
139 # Omit some internal or obsolete options to make the list less imposing.
140 # This message is too long to be a string in the A/UX 3.1 sh.
142 Usage: configure [options] [host]
143 Options: [defaults in brackets after descriptions]
145 --cache-file=FILE cache test results in FILE
146 --help print this message
147 --no-create do not create output files
148 --quiet, --silent do not print \`checking...' messages
149 --version print the version of autoconf that created configure
150 Directory and file names:
151 --prefix=PREFIX install architecture-independent files in PREFIX
153 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
155 --bindir=DIR user executables in DIR [EPREFIX/bin]
156 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
157 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
158 --datadir=DIR read-only architecture-independent data in DIR
160 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
161 --sharedstatedir=DIR modifiable architecture-independent data in DIR
163 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
164 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
165 --includedir=DIR C header files in DIR [PREFIX/include]
166 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
167 --infodir=DIR info documentation in DIR [PREFIX/info]
168 --mandir=DIR man documentation in DIR [PREFIX/man]
169 --srcdir=DIR find the sources in DIR [configure dir or ..]
170 --program-prefix=PREFIX prepend PREFIX to installed program names
171 --program-suffix=SUFFIX append SUFFIX to installed program names
172 --program-transform-name=PROGRAM
173 run sed PROGRAM on installed program names
177 --build=BUILD configure for building on BUILD [BUILD=HOST]
178 --host=HOST configure for HOST [guessed]
179 --target=TARGET configure for TARGET [TARGET=HOST]
180 Features and packages:
181 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
182 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
183 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
184 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
185 --x-includes=DIR X include files are in DIR
186 --x-libraries=DIR X library files are in DIR
188 if test -n "$ac_help"; then
189 echo "--enable and --with options recognized:$ac_help"
193 -host |
--host |
--hos |
--ho)
195 -host=* |
--host=* |
--hos=* |
--ho=*)
198 -includedir |
--includedir |
--includedi |
--included |
--include \
199 |
--includ |
--inclu |
--incl |
--inc)
200 ac_prev
=includedir
;;
201 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
202 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
203 includedir
="$ac_optarg" ;;
205 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
207 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
208 infodir
="$ac_optarg" ;;
210 -libdir |
--libdir |
--libdi |
--libd)
212 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
213 libdir
="$ac_optarg" ;;
215 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
216 |
--libexe |
--libex |
--libe)
217 ac_prev
=libexecdir
;;
218 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
219 |
--libexe=* |
--libex=* |
--libe=*)
220 libexecdir
="$ac_optarg" ;;
222 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
223 |
--localstate |
--localstat |
--localsta |
--localst \
224 |
--locals |
--local |
--loca |
--loc |
--lo)
225 ac_prev
=localstatedir
;;
226 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
227 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
228 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
229 localstatedir
="$ac_optarg" ;;
231 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
233 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
234 mandir
="$ac_optarg" ;;
237 # Obsolete; use --without-fp.
240 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
244 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
245 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
248 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
249 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
250 |
--oldin |
--oldi |
--old |
--ol |
--o)
251 ac_prev
=oldincludedir
;;
252 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
253 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
254 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
255 oldincludedir
="$ac_optarg" ;;
257 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
259 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
260 prefix
="$ac_optarg" ;;
262 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
263 |
--program-pre |
--program-pr |
--program-p)
264 ac_prev
=program_prefix
;;
265 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
266 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
267 program_prefix
="$ac_optarg" ;;
269 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
270 |
--program-suf |
--program-su |
--program-s)
271 ac_prev
=program_suffix
;;
272 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
273 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
274 program_suffix
="$ac_optarg" ;;
276 -program-transform-name |
--program-transform-name \
277 |
--program-transform-nam |
--program-transform-na \
278 |
--program-transform-n |
--program-transform- \
279 |
--program-transform |
--program-transfor \
280 |
--program-transfo |
--program-transf \
281 |
--program-trans |
--program-tran \
282 |
--progr-tra |
--program-tr |
--program-t)
283 ac_prev
=program_transform_name
;;
284 -program-transform-name=* |
--program-transform-name=* \
285 |
--program-transform-nam=* |
--program-transform-na=* \
286 |
--program-transform-n=* |
--program-transform-=* \
287 |
--program-transform=* |
--program-transfor=* \
288 |
--program-transfo=* |
--program-transf=* \
289 |
--program-trans=* |
--program-tran=* \
290 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
291 program_transform_name
="$ac_optarg" ;;
293 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
294 |
-silent |
--silent |
--silen |
--sile |
--sil)
297 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
299 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
301 sbindir
="$ac_optarg" ;;
303 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
304 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
305 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
307 ac_prev
=sharedstatedir
;;
308 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
309 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
310 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
312 sharedstatedir
="$ac_optarg" ;;
314 -site |
--site |
--sit)
316 -site=* |
--site=* |
--sit=*)
319 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
321 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
322 srcdir
="$ac_optarg" ;;
324 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
325 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
326 ac_prev
=sysconfdir
;;
327 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
328 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
329 sysconfdir
="$ac_optarg" ;;
331 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
333 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
334 target
="$ac_optarg" ;;
336 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
339 -version |
--version |
--versio |
--versi |
--vers)
340 echo "configure generated by autoconf version 2.13"
344 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
345 # Reject names that are not valid shell variable names.
346 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
347 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
349 ac_package
=`echo $ac_package| sed 's/-/_/g'`
354 eval "with_${ac_package}='$ac_optarg'" ;;
356 -without-* |
--without-*)
357 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package
=`echo $ac_package| sed 's/-/_/g'`
363 eval "with_${ac_package}=no" ;;
366 # Obsolete; use --with-x.
369 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
370 |
--x-incl |
--x-inc |
--x-in |
--x-i)
371 ac_prev
=x_includes
;;
372 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
373 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
374 x_includes
="$ac_optarg" ;;
376 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
377 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
378 ac_prev
=x_libraries
;;
379 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
380 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
381 x_libraries
="$ac_optarg" ;;
383 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
387 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
388 echo "configure: warning: $ac_option: invalid host type" 1>&2
390 if test "x$nonopt" != xNONE
; then
391 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
399 if test -n "$ac_prev"; then
400 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
403 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
405 # File descriptor usage:
408 # 2 errors and warnings
409 # 3 some systems may open it to /dev/tty
410 # 4 used on the Kubota Titan
411 # 6 checking for... messages and results
412 # 5 compiler messages saved in config.log
413 if test "$silent" = yes; then
421 This file contains any messages produced by compilers while
422 running configure, to aid debugging if configure makes a mistake.
425 # Strip out --no-create and --no-recursion so they do not pile up.
426 # Also quote any args containing shell metacharacters.
431 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
432 |
--no-cr |
--no-c) ;;
433 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
434 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
435 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
436 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
437 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
442 # Only set these to C if already set. These must not be set unconditionally
443 # because not all systems understand e.g. LANG=C (notably SCO).
444 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
445 # Non-C LC_CTYPE values break the ctype check.
446 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
447 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
448 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
449 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
452 rm -rf conftest
* confdefs.h
453 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
456 # A filename unique to this package, relative to the directory that
457 # configure is in, which we can look for to find out if srcdir is correct.
458 ac_unique_file
=Makefile.
in
460 # Find the source files, if location was not specified.
461 if test -z "$srcdir"; then
462 ac_srcdir_defaulted
=yes
463 # Try the directory containing this script, then its parent.
465 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
466 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
468 if test ! -r $srcdir/$ac_unique_file; then
472 ac_srcdir_defaulted
=no
474 if test ! -r $srcdir/$ac_unique_file; then
475 if test "$ac_srcdir_defaulted" = yes; then
476 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
478 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
481 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
483 # Prefer explicitly selected file to automatically selected ones.
484 if test -z "$CONFIG_SITE"; then
485 if test "x$prefix" != xNONE
; then
486 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
488 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
491 for ac_site_file
in $CONFIG_SITE; do
492 if test -r "$ac_site_file"; then
493 echo "loading site script $ac_site_file"
498 if test -r "$cache_file"; then
499 echo "loading cache $cache_file"
502 echo "creating cache $cache_file"
507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
508 ac_cpp
='$CPP $CPPFLAGS'
509 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
510 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
511 cross_compiling
=$ac_cv_prog_cc_cross
515 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
516 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
517 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
524 ac_n
= ac_c
='\c' ac_t
=
529 # Extract the first word of "gcc", so it can be a program name with args.
530 set dummy gcc
; ac_word
=$2
531 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
532 echo "configure:533: checking for $ac_word" >&5
533 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
534 echo $ac_n "(cached) $ac_c" 1>&6
536 if test -n "$CC"; then
537 ac_cv_prog_CC
="$CC" # Let the user override the test.
539 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
541 for ac_dir
in $ac_dummy; do
542 test -z "$ac_dir" && ac_dir
=.
543 if test -f $ac_dir/$ac_word; then
552 if test -n "$CC"; then
553 echo "$ac_t""$CC" 1>&6
555 echo "$ac_t""no" 1>&6
558 if test -z "$CC"; then
559 # Extract the first word of "cc", so it can be a program name with args.
560 set dummy cc
; ac_word
=$2
561 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
562 echo "configure:563: checking for $ac_word" >&5
563 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
564 echo $ac_n "(cached) $ac_c" 1>&6
566 if test -n "$CC"; then
567 ac_cv_prog_CC
="$CC" # Let the user override the test.
569 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
572 for ac_dir
in $ac_dummy; do
573 test -z "$ac_dir" && ac_dir
=.
574 if test -f $ac_dir/$ac_word; then
575 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
584 if test $ac_prog_rejected = yes; then
585 # We found a bogon in the path, so make sure we never use it.
586 set dummy
$ac_cv_prog_CC
588 if test $# -gt 0; then
589 # We chose a different compiler from the bogus one.
590 # However, it has the same basename, so the bogon will be chosen
591 # first if we set CC to just the basename; use the full file name.
593 set dummy
"$ac_dir/$ac_word" "$@"
601 if test -n "$CC"; then
602 echo "$ac_t""$CC" 1>&6
604 echo "$ac_t""no" 1>&6
607 if test -z "$CC"; then
610 # Extract the first word of "cl", so it can be a program name with args.
611 set dummy cl
; ac_word
=$2
612 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
613 echo "configure:614: checking for $ac_word" >&5
614 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
615 echo $ac_n "(cached) $ac_c" 1>&6
617 if test -n "$CC"; then
618 ac_cv_prog_CC
="$CC" # Let the user override the test.
620 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
622 for ac_dir
in $ac_dummy; do
623 test -z "$ac_dir" && ac_dir
=.
624 if test -f $ac_dir/$ac_word; then
633 if test -n "$CC"; then
634 echo "$ac_t""$CC" 1>&6
636 echo "$ac_t""no" 1>&6
641 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
644 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
645 echo "configure:646: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
648 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
649 ac_cpp
='$CPP $CPPFLAGS'
650 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
651 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
652 cross_compiling
=$ac_cv_prog_cc_cross
654 cat > conftest.
$ac_ext << EOF
656 #line 657 "configure"
657 #include "confdefs.h"
661 if { (eval echo configure
:662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
662 ac_cv_prog_cc_works
=yes
663 # If we can't run a trivial program, we are probably using a cross compiler.
664 if (.
/conftest
; exit) 2>/dev
/null
; then
665 ac_cv_prog_cc_cross
=no
667 ac_cv_prog_cc_cross
=yes
670 echo "configure: failed program was:" >&5
671 cat conftest.
$ac_ext >&5
672 ac_cv_prog_cc_works
=no
676 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
677 ac_cpp
='$CPP $CPPFLAGS'
678 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
679 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
680 cross_compiling
=$ac_cv_prog_cc_cross
682 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
683 if test $ac_cv_prog_cc_works = no
; then
684 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
686 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
687 echo "configure:688: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
688 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
689 cross_compiling
=$ac_cv_prog_cc_cross
691 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
692 echo "configure:693: checking whether we are using GNU C" >&5
693 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
694 echo $ac_n "(cached) $ac_c" 1>&6
696 cat > conftest.c
<<EOF
701 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
708 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
710 if test $ac_cv_prog_gcc = yes; then
716 ac_test_CFLAGS
="${CFLAGS+set}"
717 ac_save_CFLAGS
="$CFLAGS"
719 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
720 echo "configure:721: checking whether ${CC-cc} accepts -g" >&5
721 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
722 echo $ac_n "(cached) $ac_c" 1>&6
724 echo 'void f(){}' > conftest.c
725 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
734 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
735 if test "$ac_test_CFLAGS" = set; then
736 CFLAGS
="$ac_save_CFLAGS"
737 elif test $ac_cv_prog_cc_g = yes; then
738 if test "$GCC" = yes; then
744 if test "$GCC" = yes; then
752 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
753 if test -f $ac_dir/install-sh
; then
755 ac_install_sh
="$ac_aux_dir/install-sh -c"
757 elif test -f $ac_dir/install.sh
; then
759 ac_install_sh
="$ac_aux_dir/install.sh -c"
763 if test -z "$ac_aux_dir"; then
764 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
766 ac_config_guess
=$ac_aux_dir/config.guess
767 ac_config_sub
=$ac_aux_dir/config.sub
768 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
770 # Find a good install program. We prefer a C program (faster),
771 # so one script is as good as another. But avoid the broken or
772 # incompatible versions:
773 # SysV /etc/install, /usr/sbin/install
774 # SunOS /usr/etc/install
777 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
778 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
779 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
780 # ./install, which can be erroneously created by make from ./install.sh.
781 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
782 echo "configure:783: checking for a BSD compatible install" >&5
783 if test -z "$INSTALL"; then
784 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
785 echo $ac_n "(cached) $ac_c" 1>&6
787 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
788 for ac_dir
in $PATH; do
789 # Account for people who put trailing slashes in PATH elements.
791 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
793 # OSF1 and SCO ODT 3.0 have their own names for install.
794 # Don't use installbsd from OSF since it installs stuff as root
796 for ac_prog
in ginstall scoinst
install; do
797 if test -f $ac_dir/$ac_prog; then
798 if test $ac_prog = install &&
799 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
800 # AIX install. It has an incompatible calling convention.
803 ac_cv_path_install
="$ac_dir/$ac_prog -c"
814 if test "${ac_cv_path_install+set}" = set; then
815 INSTALL
="$ac_cv_path_install"
817 # As a last resort, use the slow shell script. We don't cache a
818 # path for INSTALL within a source directory, because that will
819 # break other packages using the cache if that directory is
820 # removed, or if the path is relative.
821 INSTALL
="$ac_install_sh"
824 echo "$ac_t""$INSTALL" 1>&6
826 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
827 # It thinks the first close brace ends the variable substitution.
828 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
830 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
832 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
835 # Make sure we can run config.sub.
836 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
837 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
840 echo $ac_n "checking host system type""... $ac_c" 1>&6
841 echo "configure:842: checking host system type" >&5
844 case "$host_alias" in
848 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
849 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
851 *) host_alias
=$nonopt ;;
855 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
856 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
857 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
858 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
859 echo "$ac_t""$host" 1>&6
861 echo $ac_n "checking build system type""... $ac_c" 1>&6
862 echo "configure:863: checking build system type" >&5
865 case "$build_alias" in
868 NONE
) build_alias
=$host_alias ;;
869 *) build_alias
=$nonopt ;;
873 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
874 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
875 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
876 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
877 echo "$ac_t""$build" 1>&6
879 if test $host != $build; then
880 ac_tool_prefix
=${host_alias}-
885 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
886 set dummy
${ac_tool_prefix}ar; ac_word
=$2
887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
888 echo "configure:889: checking for $ac_word" >&5
889 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
890 echo $ac_n "(cached) $ac_c" 1>&6
892 if test -n "$AR"; then
893 ac_cv_prog_AR
="$AR" # Let the user override the test.
895 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
897 for ac_dir
in $ac_dummy; do
898 test -z "$ac_dir" && ac_dir
=.
899 if test -f $ac_dir/$ac_word; then
900 ac_cv_prog_AR
="${ac_tool_prefix}ar"
905 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
909 if test -n "$AR"; then
910 echo "$ac_t""$AR" 1>&6
912 echo "$ac_t""no" 1>&6
917 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
918 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
919 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
920 echo "configure:921: checking for $ac_word" >&5
921 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
922 echo $ac_n "(cached) $ac_c" 1>&6
924 if test -n "$RANLIB"; then
925 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
927 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
929 for ac_dir
in $ac_dummy; do
930 test -z "$ac_dir" && ac_dir
=.
931 if test -f $ac_dir/$ac_word; then
932 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
939 RANLIB
="$ac_cv_prog_RANLIB"
940 if test -n "$RANLIB"; then
941 echo "$ac_t""$RANLIB" 1>&6
943 echo "$ac_t""no" 1>&6
947 if test -z "$ac_cv_prog_RANLIB"; then
948 if test -n "$ac_tool_prefix"; then
949 # Extract the first word of "ranlib", so it can be a program name with args.
950 set dummy ranlib
; ac_word
=$2
951 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
952 echo "configure:953: checking for $ac_word" >&5
953 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
954 echo $ac_n "(cached) $ac_c" 1>&6
956 if test -n "$RANLIB"; then
957 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
959 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
961 for ac_dir
in $ac_dummy; do
962 test -z "$ac_dir" && ac_dir
=.
963 if test -f $ac_dir/$ac_word; then
964 ac_cv_prog_RANLIB
="ranlib"
969 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
972 RANLIB
="$ac_cv_prog_RANLIB"
973 if test -n "$RANLIB"; then
974 echo "$ac_t""$RANLIB" 1>&6
976 echo "$ac_t""no" 1>&6
986 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
987 if test -f $ac_dir/install-sh
; then
989 ac_install_sh
="$ac_aux_dir/install-sh -c"
991 elif test -f $ac_dir/install.sh
; then
993 ac_install_sh
="$ac_aux_dir/install.sh -c"
997 if test -z "$ac_aux_dir"; then
998 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1000 ac_config_guess
=$ac_aux_dir/config.guess
1001 ac_config_sub
=$ac_aux_dir/config.sub
1002 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1005 # Do some error checking and defaulting for the host and target type.
1007 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1010 # 1. You are not allowed to specify --host, --target, and nonopt at the
1012 # 2. Host defaults to nonopt.
1013 # 3. If nonopt is not specified, then host defaults to the current host,
1014 # as determined by config.guess.
1015 # 4. Target and build default to nonopt.
1016 # 5. If nonopt is not specified, then target and build default to host.
1018 # The aliases save the names the user supplied, while $host etc.
1019 # will get canonicalized.
1020 case $host---$target---$nonopt in
1021 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1022 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1026 # Make sure we can run config.sub.
1027 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1028 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1031 echo $ac_n "checking host system type""... $ac_c" 1>&6
1032 echo "configure:1033: checking host system type" >&5
1035 case "$host_alias" in
1039 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1040 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1042 *) host_alias
=$nonopt ;;
1046 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1047 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1048 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1049 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1050 echo "$ac_t""$host" 1>&6
1052 echo $ac_n "checking target system type""... $ac_c" 1>&6
1053 echo "configure:1054: checking target system type" >&5
1055 target_alias
=$target
1056 case "$target_alias" in
1059 NONE
) target_alias
=$host_alias ;;
1060 *) target_alias
=$nonopt ;;
1064 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1065 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1066 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1067 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1068 echo "$ac_t""$target" 1>&6
1070 echo $ac_n "checking build system type""... $ac_c" 1>&6
1071 echo "configure:1072: checking build system type" >&5
1074 case "$build_alias" in
1077 NONE
) build_alias
=$host_alias ;;
1078 *) build_alias
=$nonopt ;;
1082 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1083 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1084 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1085 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1086 echo "$ac_t""$build" 1>&6
1088 test "$host_alias" != "$target_alias" &&
1089 test "$program_prefix$program_suffix$program_transform_name" = \
1091 program_prefix
=${target_alias}-
1093 if test "$program_transform_name" = s
,x
,x
,; then
1094 program_transform_name
=
1096 # Double any \ or $. echo might interpret backslashes.
1097 cat <<\EOF_SED
> conftestsed
1098 s
,\\,\\\\,g
; s
,\$
,$$
,g
1100 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1103 test "$program_prefix" != NONE
&&
1104 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1105 # Use a double $ so make ignores it.
1106 test "$program_suffix" != NONE
&&
1107 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1109 # sed with no file args requires a program.
1110 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1112 # Extract the first word of "gcc", so it can be a program name with args.
1113 set dummy gcc
; ac_word
=$2
1114 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1115 echo "configure:1116: checking for $ac_word" >&5
1116 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1117 echo $ac_n "(cached) $ac_c" 1>&6
1119 if test -n "$CC"; then
1120 ac_cv_prog_CC
="$CC" # Let the user override the test.
1122 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1124 for ac_dir
in $ac_dummy; do
1125 test -z "$ac_dir" && ac_dir
=.
1126 if test -f $ac_dir/$ac_word; then
1135 if test -n "$CC"; then
1136 echo "$ac_t""$CC" 1>&6
1138 echo "$ac_t""no" 1>&6
1141 if test -z "$CC"; then
1142 # Extract the first word of "cc", so it can be a program name with args.
1143 set dummy cc
; ac_word
=$2
1144 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1145 echo "configure:1146: checking for $ac_word" >&5
1146 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&6
1149 if test -n "$CC"; then
1150 ac_cv_prog_CC
="$CC" # Let the user override the test.
1152 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1155 for ac_dir
in $ac_dummy; do
1156 test -z "$ac_dir" && ac_dir
=.
1157 if test -f $ac_dir/$ac_word; then
1158 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1159 ac_prog_rejected
=yes
1167 if test $ac_prog_rejected = yes; then
1168 # We found a bogon in the path, so make sure we never use it.
1169 set dummy
$ac_cv_prog_CC
1171 if test $# -gt 0; then
1172 # We chose a different compiler from the bogus one.
1173 # However, it has the same basename, so the bogon will be chosen
1174 # first if we set CC to just the basename; use the full file name.
1176 set dummy
"$ac_dir/$ac_word" "$@"
1184 if test -n "$CC"; then
1185 echo "$ac_t""$CC" 1>&6
1187 echo "$ac_t""no" 1>&6
1190 if test -z "$CC"; then
1191 case "`uname -s`" in
1193 # Extract the first word of "cl", so it can be a program name with args.
1194 set dummy cl
; ac_word
=$2
1195 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1196 echo "configure:1197: checking for $ac_word" >&5
1197 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1198 echo $ac_n "(cached) $ac_c" 1>&6
1200 if test -n "$CC"; then
1201 ac_cv_prog_CC
="$CC" # Let the user override the test.
1203 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1205 for ac_dir
in $ac_dummy; do
1206 test -z "$ac_dir" && ac_dir
=.
1207 if test -f $ac_dir/$ac_word; then
1216 if test -n "$CC"; then
1217 echo "$ac_t""$CC" 1>&6
1219 echo "$ac_t""no" 1>&6
1224 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1227 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1228 echo "configure:1229: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1231 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1232 ac_cpp
='$CPP $CPPFLAGS'
1233 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1234 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1235 cross_compiling
=$ac_cv_prog_cc_cross
1237 cat > conftest.
$ac_ext << EOF
1239 #line 1240 "configure"
1240 #include "confdefs.h"
1244 if { (eval echo configure
:1245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1245 ac_cv_prog_cc_works
=yes
1246 # If we can't run a trivial program, we are probably using a cross compiler.
1247 if (.
/conftest
; exit) 2>/dev
/null
; then
1248 ac_cv_prog_cc_cross
=no
1250 ac_cv_prog_cc_cross
=yes
1253 echo "configure: failed program was:" >&5
1254 cat conftest.
$ac_ext >&5
1255 ac_cv_prog_cc_works
=no
1259 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1260 ac_cpp
='$CPP $CPPFLAGS'
1261 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1262 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1263 cross_compiling
=$ac_cv_prog_cc_cross
1265 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1266 if test $ac_cv_prog_cc_works = no
; then
1267 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1269 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1270 echo "configure:1271: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1271 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1272 cross_compiling
=$ac_cv_prog_cc_cross
1274 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1275 echo "configure:1276: checking whether we are using GNU C" >&5
1276 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1277 echo $ac_n "(cached) $ac_c" 1>&6
1279 cat > conftest.c
<<EOF
1284 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1291 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1293 if test $ac_cv_prog_gcc = yes; then
1299 ac_test_CFLAGS
="${CFLAGS+set}"
1300 ac_save_CFLAGS
="$CFLAGS"
1302 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1303 echo "configure:1304: checking whether ${CC-cc} accepts -g" >&5
1304 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1305 echo $ac_n "(cached) $ac_c" 1>&6
1307 echo 'void f(){}' > conftest.c
1308 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1317 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1318 if test "$ac_test_CFLAGS" = set; then
1319 CFLAGS
="$ac_save_CFLAGS"
1320 elif test $ac_cv_prog_cc_g = yes; then
1321 if test "$GCC" = yes; then
1327 if test "$GCC" = yes; then
1338 # Extract the first word of "ranlib", so it can be a program name with args.
1339 set dummy ranlib
; ac_word
=$2
1340 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1341 echo "configure:1342: checking for $ac_word" >&5
1342 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1343 echo $ac_n "(cached) $ac_c" 1>&6
1345 if test -n "$RANLIB"; then
1346 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1348 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1350 for ac_dir
in $ac_dummy; do
1351 test -z "$ac_dir" && ac_dir
=.
1352 if test -f $ac_dir/$ac_word; then
1353 ac_cv_prog_RANLIB
="ranlib"
1358 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1361 RANLIB
="$ac_cv_prog_RANLIB"
1362 if test -n "$RANLIB"; then
1363 echo "$ac_t""$RANLIB" 1>&6
1365 echo "$ac_t""no" 1>&6
1369 # Put a plausible default for CC_FOR_BUILD in Makefile.
1371 if test "x$cross_compiling" = "xno"; then
1372 CC_FOR_BUILD
='$(CC)'
1378 # If a cpu ever has more than one simulator to choose from, use
1379 # --enable-sim=... to choose.
1380 # Check whether --enable-sim or --disable-sim was given.
1381 if test "${enable_sim+set}" = set; then
1382 enableval
="$enable_sim"
1383 case "${enableval}" in
1385 *) { echo "configure: error: bad value ${enableval} given for --enable-sim option" 1>&2; exit 1; } ;;
1390 # Assume simulator can be built with cc.
1391 # If the user passes --enable-sim built it regardless of $(CC).
1394 extra_subdirs
=common
1396 # WHEN ADDING ENTRIES TO THIS MATRIX:
1397 # Make sure that the left side always has two dashes. Otherwise you
1398 # can get spurious matches. Even for unambiguous cases, do this as a
1399 # convention, else the table becomes a real mess to understand and maintain.
1402 arm
*-*-*) sim_target
=arm
;;
1403 strongarm
*-*-*) sim_target
=arm
;;
1404 thumb
*-*-*) sim_target
=arm
;;
1405 d10v-
*-*) sim_target
=d10v
;;
1409 extra_subdirs
="${extra_subdirs} igen"
1411 fr30-
*-*) sim_target
=fr30
;;
1412 h8300
*-*-*) sim_target
=h8300
;;
1413 h8500-
*-*) sim_target
=h8500
;;
1414 i960-
*-*) sim_target
=i960
;;
1415 m32r-
*-*) sim_target
=m32r
;;
1416 mcore-
*-*) sim_target
=mcore
;;
1418 # The MIPS simulator can only be compiled by gcc.
1421 extra_subdirs
="${extra_subdirs} igen"
1424 # The mn10300 simulator can only be compiled by gcc.
1427 extra_subdirs
="${extra_subdirs} igen"
1432 sh
*-*-*) sim_target
=sh
;;
1433 powerpc
*-*-eabi* | powerpc
*-*-solaris* | powerpc
*-*-sysv4* | powerpc
*-*-elf* | powerpc
*-*-linux* )
1434 # The PowerPC simulator uses the GCC extension long long as well as
1435 # ANSI prototypes, so don't enable it for random host compilers
1439 #extra_subdirs="${extra_subdirs}"
1442 # The V850 simulator can only be compiled by gcc.
1444 extra_subdirs
="${extra_subdirs} igen"
1448 # The V850 simulator can only be compiled by gcc.
1450 extra_subdirs
="${extra_subdirs} igen"
1454 # The V850 simulator can only be compiled by gcc.
1456 extra_subdirs
="${extra_subdirs} igen"
1461 # The w65 is suffering from gradual decay.
1464 z8k
*-*-*) sim_target
=z8k
;;
1467 sim_target
=none
# Don't build erc32 if sparc64.
1469 sparclite
*-*-* | sparc86x
*-*-*)
1470 # The SPARC simulator can only be compiled by gcc.
1475 # The SPARC simulator can only be compiled by gcc.
1477 # Unfortunately erc32 won't build on many hosts, so only enable
1478 # it if the user really really wants it.
1482 *) sim_target
=none
;;
1488 # Is there a testsuite directory for the target?
1489 testdir
=`echo ${target} | sed -e 's/-.*-/-/'`
1490 if test -r ${srcdir}/testsuite
/${testdir}/configure
; then
1491 extra_subdirs
="${extra_subdirs} testsuite"
1495 case "${enable_sim}" in
1496 no
) sim_target
=none
;;
1498 if test ${only_if_gcc} = yes ; then
1499 if test "${GCC}" != yes ; then
1500 echo "Can't enable simulator since not compiling with GCC."
1506 if test ${only_if_enabled} = yes ; then
1509 if test ${only_if_gcc} = yes ; then
1510 if test "${GCC}" != yes ; then
1518 if test x
"${sim_target}" != xnone
; then
1519 configdirs
="${extra_subdirs} ${sim_target}"
1520 subdirs
="$configdirs"
1525 cat > confcache
<<\EOF
1526 # This file is a shell script that caches the results of configure
1527 # tests run on this system so they can be shared between configure
1528 # scripts and configure runs. It is not useful on other systems.
1529 # If it contains results you don't want to keep, you may remove or edit it.
1531 # By default, configure uses ./config.cache as the cache file,
1532 # creating it if it does not exist already. You can give configure
1533 # the --cache-file=FILE option to use a different cache file; that is
1534 # what configure does when it calls configure scripts in
1535 # subdirectories, so they share the cache.
1536 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1537 # config.status only pays attention to the cache file if you give it the
1538 # --recheck option to rerun configure.
1541 # The following way of writing the cache mishandles newlines in values,
1542 # but we know of no workaround that is simple, portable, and efficient.
1543 # So, don't put newlines in cache variables' values.
1544 # Ultrix sh set writes to stderr and can't be redirected directly,
1545 # and sets the high bit in the cache file unless we assign to the vars.
1547 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1549 # `set' does not quote correctly, so add quotes (double-quote substitution
1550 # turns \\\\ into \\, and sed turns \\ into \).
1552 -e "s/'/'\\\\''/g" \
1553 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1556 # `set' quotes correctly as required by POSIX, so do not add quotes.
1557 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1560 if cmp -s $cache_file confcache
; then
1563 if test -w $cache_file; then
1564 echo "updating cache $cache_file"
1565 cat confcache
> $cache_file
1567 echo "not updating unwritable cache $cache_file"
1572 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1574 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1575 # Let make expand exec_prefix.
1576 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1578 # Any assignment to VPATH causes Sun make to only execute
1579 # the first set of double-colon rules, so remove it if not needed.
1580 # If there is a colon in the path, we need to keep it.
1581 if test "x$srcdir" = x.
; then
1582 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1585 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1587 # Transform confdefs.h into DEFS.
1588 # Protect against shell expansion while executing Makefile rules.
1589 # Protect against Makefile macro expansion.
1590 cat > conftest.defs
<<\EOF
1591 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1592 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1597 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
1601 # Without the "./", some shells look in PATH for config.status.
1602 : ${CONFIG_STATUS=./config.status}
1604 echo creating $CONFIG_STATUS
1605 rm -f $CONFIG_STATUS
1606 cat > $CONFIG_STATUS <<EOF
1608 # Generated automatically by configure.
1609 # Run this file to recreate the current configuration.
1610 # This directory was configured as follows,
1611 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
1613 # $0 $ac_configure_args
1615 # Compiler output produced by configure, useful for debugging
1616 # configure, is in ./config.log if it exists.
1618 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1621 case "\$ac_option" in
1622 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1623 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1624 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1625 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1626 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1628 -help | --help | --hel | --he | --h)
1629 echo "\$ac_cs_usage"; exit 0 ;;
1630 *) echo "\$ac_cs_usage"; exit 1 ;;
1634 ac_given_srcdir=$srcdir
1635 ac_given_INSTALL="$INSTALL"
1637 trap 'rm -fr `echo "Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1639 cat >> $CONFIG_STATUS <<EOF
1641 # Protect against being on the right side of a sed subst in config.status.
1642 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1643 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1647 s%@CFLAGS@%$CFLAGS%g
1648 s%@CPPFLAGS@%$CPPFLAGS%g
1649 s%@CXXFLAGS@%$CXXFLAGS%g
1650 s%@FFLAGS@%$FFLAGS%g
1652 s%@LDFLAGS@%$LDFLAGS%g
1654 s%@exec_prefix@%$exec_prefix%g
1655 s%@prefix@%$prefix%g
1656 s%@program_transform_name@%$program_transform_name%g
1657 s%@bindir@%$bindir%g
1658 s%@sbindir@%$sbindir%g
1659 s%@libexecdir@%$libexecdir%g
1660 s%@datadir@%$datadir%g
1661 s%@sysconfdir@%$sysconfdir%g
1662 s%@sharedstatedir@%$sharedstatedir%g
1663 s%@localstatedir@%$localstatedir%g
1664 s%@libdir@%$libdir%g
1665 s%@includedir@%$includedir%g
1666 s%@oldincludedir@%$oldincludedir%g
1667 s%@infodir@%$infodir%g
1668 s%@mandir@%$mandir%g
1670 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1671 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1672 s%@INSTALL_DATA@%$INSTALL_DATA%g
1674 s%@host_alias@%$host_alias%g
1675 s%@host_cpu@%$host_cpu%g
1676 s%@host_vendor@%$host_vendor%g
1677 s%@host_os@%$host_os%g
1679 s%@build_alias@%$build_alias%g
1680 s%@build_cpu@%$build_cpu%g
1681 s%@build_vendor@%$build_vendor%g
1682 s%@build_os@%$build_os%g
1684 s%@RANLIB@%$RANLIB%g
1685 s%@target@%$target%g
1686 s%@target_alias@%$target_alias%g
1687 s%@target_cpu@%$target_cpu%g
1688 s%@target_vendor@%$target_vendor%g
1689 s%@target_os@%$target_os%g
1690 s%@HDEFINES@%$HDEFINES%g
1691 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
1692 s%@subdirs@%$subdirs%g
1697 cat >> $CONFIG_STATUS <<\EOF
1699 # Split the substitutions into bite-sized pieces for seds with
1700 # small command number limits, like on Digital OSF/1 and HP-UX.
1701 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1702 ac_file=1 # Number of current file.
1703 ac_beg=1 # First line for current file.
1704 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1707 while $ac_more_lines; do
1708 if test $ac_beg -gt 1; then
1709 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1711 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1713 if test ! -s conftest.s$ac_file; then
1715 rm -f conftest.s$ac_file
1717 if test -z "$ac_sed_cmds"; then
1718 ac_sed_cmds="sed -f conftest.s$ac_file"
1720 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1722 ac_file=`expr $ac_file + 1`
1724 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1727 if test -z "$ac_sed_cmds"; then
1732 cat >> $CONFIG_STATUS <<EOF
1734 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1736 cat >> $CONFIG_STATUS <<\EOF
1737 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1738 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1740 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
1741 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
1742 *) ac_file_in="${ac_file}.in" ;;
1745 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1747 # Remove last slash and all that follows it. Not all systems have dirname.
1748 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
1749 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1750 # The file is in a subdirectory.
1751 test ! -d "$ac_dir" && mkdir "$ac_dir"
1752 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
1753 # A "../" for each directory in $ac_dir_suffix.
1754 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
1756 ac_dir_suffix= ac_dots=
1759 case "$ac_given_srcdir" in
1761 if test -z "$ac_dots"; then top_srcdir=.
1762 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
1763 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1765 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1766 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1769 case "$ac_given_INSTALL" in
1770 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1771 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1774 echo creating "$ac_file"
1776 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
1778 *Makefile*) ac_comsub="1i\\
1779 # $configure_input" ;;
1783 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1785 s%@configure_input@%$configure_input%g
1786 s%@srcdir@%$srcdir%g
1787 s%@top_srcdir@%$top_srcdir%g
1788 s%@INSTALL@%$INSTALL%g
1789 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1794 cat >> $CONFIG_STATUS <<EOF
1797 cat >> $CONFIG_STATUS <<\EOF
1801 chmod +x $CONFIG_STATUS
1802 rm -fr confdefs* $ac_clean_files
1803 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1805 if test "$no_recursion" != yes; then
1807 # Remove --cache-file and --srcdir arguments so they do not pile up.
1808 ac_sub_configure_args=
1810 for ac_arg in $ac_configure_args; do
1811 if test -n "$ac_prev"; then
1816 -cache-file | --cache-file | --cache-fil | --cache-fi \
1817 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1818 ac_prev=cache_file ;;
1819 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1820 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1822 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1824 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1826 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1830 for ac_config_dir in $configdirs; do
1832 # Do not complain, so a configure script can configure whichever
1833 # parts of a large source tree are present.
1834 if test ! -d $srcdir/$ac_config_dir; then
1838 echo configuring in $ac_config_dir
1843 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
1845 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
1853 # A "../" for each directory in /$ac_config_dir.
1854 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
1857 .) # No --srcdir option. We are building in place.
1858 ac_sub_srcdir=$srcdir ;;
1859 /*) # Absolute path.
1860 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
1862 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
1865 # Check for guested configure; otherwise get Cygnus style configure.
1866 if test -f $ac_sub_srcdir/configure; then
1867 ac_sub_configure=$ac_sub_srcdir/configure
1868 elif test -f $ac_sub_srcdir/configure.in; then
1869 ac_sub_configure=$ac_configure
1871 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
1875 # The recursion is here.
1876 if test -n "$ac_sub_configure"; then
1878 # Make the cache file name correct relative to the subdirectory.
1879 case "$cache_file" in
1880 /*) ac_sub_cache_file=$cache_file ;;
1882 ac_sub_cache_file="$ac_dots$cache_file" ;;
1884 case "$ac_given_INSTALL" in
1885 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1886 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1889 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
1890 # The eval makes quoting arguments work.
1891 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
1894 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }