45 sim_inline
="-DDEFAULT_INLINE=0"
81 # This file is derived from `gettext.m4'. The difference is that the
82 # included macros assume Cygnus-style source and build trees.
84 # Macro to add for using GNU gettext.
85 # Ulrich Drepper <drepper@cygnus.com>, 1995.
87 # This file file be copied and used freely without restrictions. It can
88 # be used in projects which are not available under the GNU Public License
89 # but which still want to provide support for the GNU gettext functionality.
90 # Please note that the actual code is *not* freely available.
98 # Search path for a program which passes the given test.
99 # Ulrich Drepper <drepper@cygnus.com>, 1996.
101 # This file file be copied and used freely without restrictions. It can
102 # be used in projects which are not available under the GNU Public License
103 # but which still want to provide support for the GNU gettext functionality.
104 # Please note that the actual code is *not* freely available.
110 # Check whether LC_MESSAGES is available in <locale.h>.
111 # Ulrich Drepper <drepper@cygnus.com>, 1995.
113 # This file file be copied and used freely without restrictions. It can
114 # be used in projects which are not available under the GNU Public License
115 # but which still want to provide support for the GNU gettext functionality.
116 # Please note that the actual code is *not* freely available.
122 # Guess values for system-dependent variables and create Makefiles.
123 # Generated automatically using autoconf version 2.12.1
124 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
126 # This configure script is free software; the Free Software Foundation
127 # gives unlimited permission to copy, distribute and modify it.
131 ac_default_prefix
=/usr
/local
132 # Any additions from configure.in:
134 --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings"
136 # Initialize some variables set by options.
137 # The variables have the same names as the options, with
138 # dashes changed to underlines.
140 cache_file
=.
/config.cache
149 program_transform_name
=s
,x
,x
,
157 bindir
='${exec_prefix}/bin'
158 sbindir
='${exec_prefix}/sbin'
159 libexecdir
='${exec_prefix}/libexec'
160 datadir
='${prefix}/share'
161 sysconfdir
='${prefix}/etc'
162 sharedstatedir
='${prefix}/com'
163 localstatedir
='${prefix}/var'
164 libdir
='${exec_prefix}/lib'
165 includedir
='${prefix}/include'
166 oldincludedir
='/usr/include'
167 infodir
='${prefix}/info'
168 mandir
='${prefix}/man'
170 # Initialize some other variables.
173 SHELL
=${CONFIG_SHELL-/bin/sh}
174 # Maximum number of lines to put in a shell here document.
181 # If the previous option needs an argument, assign it.
182 if test -n "$ac_prev"; then
183 eval "$ac_prev=\$ac_option"
189 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
193 # Accept the important Cygnus configure options, so we can diagnose typos.
197 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
199 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
200 bindir
="$ac_optarg" ;;
202 -build |
--build |
--buil |
--bui |
--bu)
204 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
205 build
="$ac_optarg" ;;
207 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
208 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
209 ac_prev
=cache_file
;;
210 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
211 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
212 cache_file
="$ac_optarg" ;;
214 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
216 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
218 datadir
="$ac_optarg" ;;
220 -disable-* |
--disable-*)
221 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
222 # Reject names that are not valid shell variable names.
223 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
224 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
226 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
227 eval "enable_${ac_feature}=no" ;;
229 -enable-* |
--enable-*)
230 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
231 # Reject names that are not valid shell variable names.
232 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
233 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
235 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
240 eval "enable_${ac_feature}='$ac_optarg'" ;;
242 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
243 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
244 |
--exec |
--exe |
--ex)
245 ac_prev
=exec_prefix
;;
246 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
247 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
248 |
--exec=* |
--exe=* |
--ex=*)
249 exec_prefix
="$ac_optarg" ;;
251 -gas |
--gas |
--ga |
--g)
252 # Obsolete; use --with-gas.
255 -help |
--help |
--hel |
--he)
256 # Omit some internal or obsolete options to make the list less imposing.
257 # This message is too long to be a string in the A/UX 3.1 sh.
259 Usage: configure [options] [host]
260 Options: [defaults in brackets after descriptions]
262 --cache-file=FILE cache test results in FILE
263 --help print this message
264 --no-create do not create output files
265 --quiet, --silent do not print \`checking...' messages
266 --version print the version of autoconf that created configure
267 Directory and file names:
268 --prefix=PREFIX install architecture-independent files in PREFIX
270 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
272 --bindir=DIR user executables in DIR [EPREFIX/bin]
273 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
274 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
275 --datadir=DIR read-only architecture-independent data in DIR
277 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
278 --sharedstatedir=DIR modifiable architecture-independent data in DIR
280 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
281 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
282 --includedir=DIR C header files in DIR [PREFIX/include]
283 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
284 --infodir=DIR info documentation in DIR [PREFIX/info]
285 --mandir=DIR man documentation in DIR [PREFIX/man]
286 --srcdir=DIR find the sources in DIR [configure dir or ..]
287 --program-prefix=PREFIX prepend PREFIX to installed program names
288 --program-suffix=SUFFIX append SUFFIX to installed program names
289 --program-transform-name=PROGRAM
290 run sed PROGRAM on installed program names
294 --build=BUILD configure for building on BUILD [BUILD=HOST]
295 --host=HOST configure for HOST [guessed]
296 --target=TARGET configure for TARGET [TARGET=HOST]
297 Features and packages:
298 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
299 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
300 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
301 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
302 --x-includes=DIR X include files are in DIR
303 --x-libraries=DIR X library files are in DIR
305 if test -n "$ac_help"; then
306 echo "--enable and --with options recognized:$ac_help"
310 -host |
--host |
--hos |
--ho)
312 -host=* |
--host=* |
--hos=* |
--ho=*)
315 -includedir |
--includedir |
--includedi |
--included |
--include \
316 |
--includ |
--inclu |
--incl |
--inc)
317 ac_prev
=includedir
;;
318 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
319 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
320 includedir
="$ac_optarg" ;;
322 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
324 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
325 infodir
="$ac_optarg" ;;
327 -libdir |
--libdir |
--libdi |
--libd)
329 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
330 libdir
="$ac_optarg" ;;
332 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
333 |
--libexe |
--libex |
--libe)
334 ac_prev
=libexecdir
;;
335 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
336 |
--libexe=* |
--libex=* |
--libe=*)
337 libexecdir
="$ac_optarg" ;;
339 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
340 |
--localstate |
--localstat |
--localsta |
--localst \
341 |
--locals |
--local |
--loca |
--loc |
--lo)
342 ac_prev
=localstatedir
;;
343 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
344 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
345 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
346 localstatedir
="$ac_optarg" ;;
348 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
350 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
351 mandir
="$ac_optarg" ;;
354 # Obsolete; use --without-fp.
357 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
361 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
362 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
365 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
366 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
367 |
--oldin |
--oldi |
--old |
--ol |
--o)
368 ac_prev
=oldincludedir
;;
369 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
370 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
371 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
372 oldincludedir
="$ac_optarg" ;;
374 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
376 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
377 prefix
="$ac_optarg" ;;
379 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
380 |
--program-pre |
--program-pr |
--program-p)
381 ac_prev
=program_prefix
;;
382 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
383 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
384 program_prefix
="$ac_optarg" ;;
386 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
387 |
--program-suf |
--program-su |
--program-s)
388 ac_prev
=program_suffix
;;
389 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
390 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
391 program_suffix
="$ac_optarg" ;;
393 -program-transform-name |
--program-transform-name \
394 |
--program-transform-nam |
--program-transform-na \
395 |
--program-transform-n |
--program-transform- \
396 |
--program-transform |
--program-transfor \
397 |
--program-transfo |
--program-transf \
398 |
--program-trans |
--program-tran \
399 |
--progr-tra |
--program-tr |
--program-t)
400 ac_prev
=program_transform_name
;;
401 -program-transform-name=* |
--program-transform-name=* \
402 |
--program-transform-nam=* |
--program-transform-na=* \
403 |
--program-transform-n=* |
--program-transform-=* \
404 |
--program-transform=* |
--program-transfor=* \
405 |
--program-transfo=* |
--program-transf=* \
406 |
--program-trans=* |
--program-tran=* \
407 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
408 program_transform_name
="$ac_optarg" ;;
410 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
411 |
-silent |
--silent |
--silen |
--sile |
--sil)
414 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
416 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
418 sbindir
="$ac_optarg" ;;
420 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
421 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
422 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
424 ac_prev
=sharedstatedir
;;
425 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
426 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
427 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
429 sharedstatedir
="$ac_optarg" ;;
431 -site |
--site |
--sit)
433 -site=* |
--site=* |
--sit=*)
436 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
438 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
439 srcdir
="$ac_optarg" ;;
441 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
442 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
443 ac_prev
=sysconfdir
;;
444 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
445 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
446 sysconfdir
="$ac_optarg" ;;
448 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
450 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
451 target
="$ac_optarg" ;;
453 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
456 -version |
--version |
--versio |
--versi |
--vers)
457 echo "configure generated by autoconf version 2.12.1"
461 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
462 # Reject names that are not valid shell variable names.
463 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
464 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
466 ac_package
=`echo $ac_package| sed 's/-/_/g'`
471 eval "with_${ac_package}='$ac_optarg'" ;;
473 -without-* |
--without-*)
474 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
475 # Reject names that are not valid shell variable names.
476 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
477 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
479 ac_package
=`echo $ac_package| sed 's/-/_/g'`
480 eval "with_${ac_package}=no" ;;
483 # Obsolete; use --with-x.
486 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
487 |
--x-incl |
--x-inc |
--x-in |
--x-i)
488 ac_prev
=x_includes
;;
489 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
490 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
491 x_includes
="$ac_optarg" ;;
493 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
494 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
495 ac_prev
=x_libraries
;;
496 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
497 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
498 x_libraries
="$ac_optarg" ;;
500 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
504 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
505 echo "configure: warning: $ac_option: invalid host type" 1>&2
507 if test "x$nonopt" != xNONE
; then
508 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
516 if test -n "$ac_prev"; then
517 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
520 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
522 # File descriptor usage:
525 # 2 errors and warnings
526 # 3 some systems may open it to /dev/tty
527 # 4 used on the Kubota Titan
528 # 6 checking for... messages and results
529 # 5 compiler messages saved in config.log
530 if test "$silent" = yes; then
538 This file contains any messages produced by compilers while
539 running configure, to aid debugging if configure makes a mistake.
542 # Strip out --no-create and --no-recursion so they do not pile up.
543 # Also quote any args containing shell metacharacters.
548 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
549 |
--no-cr |
--no-c) ;;
550 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
551 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
552 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
553 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
554 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
559 # Only set these to C if already set. These must not be set unconditionally
560 # because not all systems understand e.g. LANG=C (notably SCO).
561 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
562 # Non-C LC_CTYPE values break the ctype check.
563 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
564 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
565 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
566 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
568 # confdefs.h avoids OS command line length limits that DEFS can exceed.
569 rm -rf conftest
* confdefs.h
570 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
573 # A filename unique to this package, relative to the directory that
574 # configure is in, which we can look for to find out if srcdir is correct.
575 ac_unique_file
=table.h
577 # Find the source files, if location was not specified.
578 if test -z "$srcdir"; then
579 ac_srcdir_defaulted
=yes
580 # Try the directory containing this script, then its parent.
582 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
583 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
585 if test ! -r $srcdir/$ac_unique_file; then
589 ac_srcdir_defaulted
=no
591 if test ! -r $srcdir/$ac_unique_file; then
592 if test "$ac_srcdir_defaulted" = yes; then
593 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
595 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
598 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
600 # Prefer explicitly selected file to automatically selected ones.
601 if test -z "$CONFIG_SITE"; then
602 if test "x$prefix" != xNONE
; then
603 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
605 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
608 for ac_site_file
in $CONFIG_SITE; do
609 if test -r "$ac_site_file"; then
610 echo "loading site script $ac_site_file"
615 if test -r "$cache_file"; then
616 echo "loading cache $cache_file"
619 echo "creating cache $cache_file"
624 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
625 ac_cpp
='$CPP $CPPFLAGS'
626 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
627 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
628 cross_compiling
=$ac_cv_prog_cc_cross
630 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
631 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
632 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
639 ac_n
= ac_c
='\c' ac_t
=
645 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
646 if test -f $ac_dir/install-sh
; then
648 ac_install_sh
="$ac_aux_dir/install-sh -c"
650 elif test -f $ac_dir/install.sh
; then
652 ac_install_sh
="$ac_aux_dir/install.sh -c"
656 if test -z "$ac_aux_dir"; then
657 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
659 ac_config_guess
=$ac_aux_dir/config.guess
660 ac_config_sub
=$ac_aux_dir/config.sub
661 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
663 # Find a good install program. We prefer a C program (faster),
664 # so one script is as good as another. But avoid the broken or
665 # incompatible versions:
666 # SysV /etc/install, /usr/sbin/install
667 # SunOS /usr/etc/install
670 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
671 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
672 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
673 # ./install, which can be erroneously created by make from ./install.sh.
674 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
675 echo "configure:676: checking for a BSD compatible install" >&5
676 if test -z "$INSTALL"; then
677 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
678 echo $ac_n "(cached) $ac_c" 1>&6
680 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
681 for ac_dir
in $PATH; do
682 # Account for people who put trailing slashes in PATH elements.
684 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
686 # OSF1 and SCO ODT 3.0 have their own names for install.
687 # Don't use installbsd from OSF since it installs stuff as root
689 for ac_prog
in ginstall scoinst
install; do
690 if test -f $ac_dir/$ac_prog; then
691 if test $ac_prog = install &&
692 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
693 # AIX install. It has an incompatible calling convention.
696 ac_cv_path_install
="$ac_dir/$ac_prog -c"
707 if test "${ac_cv_path_install+set}" = set; then
708 INSTALL
="$ac_cv_path_install"
710 # As a last resort, use the slow shell script. We don't cache a
711 # path for INSTALL within a source directory, because that will
712 # break other packages using the cache if that directory is
713 # removed, or if the path is relative.
714 INSTALL
="$ac_install_sh"
717 echo "$ac_t""$INSTALL" 1>&6
719 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
720 # It thinks the first close brace ends the variable substitution.
721 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
723 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
725 # Extract the first word of "gcc", so it can be a program name with args.
726 set dummy gcc
; ac_word
=$2
727 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
728 echo "configure:729: checking for $ac_word" >&5
729 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
730 echo $ac_n "(cached) $ac_c" 1>&6
732 if test -n "$CC"; then
733 ac_cv_prog_CC
="$CC" # Let the user override the test.
735 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
736 for ac_dir
in $PATH; do
737 test -z "$ac_dir" && ac_dir
=.
738 if test -f $ac_dir/$ac_word; then
747 if test -n "$CC"; then
748 echo "$ac_t""$CC" 1>&6
750 echo "$ac_t""no" 1>&6
753 if test -z "$CC"; then
754 # Extract the first word of "cc", so it can be a program name with args.
755 set dummy cc
; ac_word
=$2
756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
757 echo "configure:758: checking for $ac_word" >&5
758 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
759 echo $ac_n "(cached) $ac_c" 1>&6
761 if test -n "$CC"; then
762 ac_cv_prog_CC
="$CC" # Let the user override the test.
764 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
766 for ac_dir
in $PATH; do
767 test -z "$ac_dir" && ac_dir
=.
768 if test -f $ac_dir/$ac_word; then
769 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
778 if test $ac_prog_rejected = yes; then
779 # We found a bogon in the path, so make sure we never use it.
780 set dummy
$ac_cv_prog_CC
782 if test $# -gt 0; then
783 # We chose a different compiler from the bogus one.
784 # However, it has the same basename, so the bogon will be chosen
785 # first if we set CC to just the basename; use the full file name.
787 set dummy
"$ac_dir/$ac_word" "$@"
795 if test -n "$CC"; then
796 echo "$ac_t""$CC" 1>&6
798 echo "$ac_t""no" 1>&6
801 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
804 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
805 echo "configure:806: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
808 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
809 ac_cpp
='$CPP $CPPFLAGS'
810 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
811 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
812 cross_compiling
=$ac_cv_prog_cc_cross
814 cat > conftest.
$ac_ext <<EOF
815 #line 816 "configure"
816 #include "confdefs.h"
819 if { (eval echo configure
:820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
820 ac_cv_prog_cc_works
=yes
821 # If we can't run a trivial program, we are probably using a cross compiler.
822 if (.
/conftest
; exit) 2>/dev
/null
; then
823 ac_cv_prog_cc_cross
=no
825 ac_cv_prog_cc_cross
=yes
828 echo "configure: failed program was:" >&5
829 cat conftest.
$ac_ext >&5
830 ac_cv_prog_cc_works
=no
834 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
835 if test $ac_cv_prog_cc_works = no
; then
836 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
838 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
839 echo "configure:840: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
840 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
841 cross_compiling
=$ac_cv_prog_cc_cross
843 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
844 echo "configure:845: checking whether we are using GNU C" >&5
845 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
846 echo $ac_n "(cached) $ac_c" 1>&6
848 cat > conftest.c
<<EOF
853 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
860 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
862 if test $ac_cv_prog_gcc = yes; then
864 ac_test_CFLAGS
="${CFLAGS+set}"
865 ac_save_CFLAGS
="$CFLAGS"
867 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
868 echo "configure:869: checking whether ${CC-cc} accepts -g" >&5
869 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
870 echo $ac_n "(cached) $ac_c" 1>&6
872 echo 'void f(){}' > conftest.c
873 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
882 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
883 if test "$ac_test_CFLAGS" = set; then
884 CFLAGS
="$ac_save_CFLAGS"
885 elif test $ac_cv_prog_cc_g = yes; then
892 test "${CFLAGS+set}" = set || CFLAGS
="-g"
897 # Check whether --enable-sim-warnings or --disable-sim-warnings was given.
898 if test "${enable_sim_warnings+set}" = set; then
899 enableval
="$enable_sim_warnings"
900 case "${enableval}" in
901 yes) sim_warnings
="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
902 no
) sim_warnings
="-w";;
903 *) sim_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
905 if test x
"$silent" != x
"yes" && test x
"$sim_warnings" != x
""; then
906 echo "Setting warning flags = $sim_warnings" 6>&1
913 # Put a plausible default for CC_FOR_BUILD in Makefile.
914 if test "x$cross_compiling" = "xno" -a "x$host" != "xi386-windows"; then
916 AR_FLAGS_FOR_BUILD
='$(AR_FLAGS)'
918 CFLAGS_FOR_BUILD
='$(CFLAGS)'
919 RANLIB_FOR_BUILD
='$(RANLIB)'
920 LIBIBERTY_LIB
=..
/..
/libiberty
/libiberty.a
922 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
923 AR_FLAGS_FOR_BUILD
=${AR_FLAGS_FOR_BUILD-rc}
924 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
925 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-"-g"}
926 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
932 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
933 if test -f $ac_dir/install-sh
; then
935 ac_install_sh
="$ac_aux_dir/install-sh -c"
937 elif test -f $ac_dir/install.sh
; then
939 ac_install_sh
="$ac_aux_dir/install.sh -c"
943 if test -z "$ac_aux_dir"; then
944 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
946 ac_config_guess
=$ac_aux_dir/config.guess
947 ac_config_sub
=$ac_aux_dir/config.sub
948 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
951 # Do some error checking and defaulting for the host and target type.
953 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
956 # 1. You are not allowed to specify --host, --target, and nonopt at the
958 # 2. Host defaults to nonopt.
959 # 3. If nonopt is not specified, then host defaults to the current host,
960 # as determined by config.guess.
961 # 4. Target and build default to nonopt.
962 # 5. If nonopt is not specified, then target and build default to host.
964 # The aliases save the names the user supplied, while $host etc.
965 # will get canonicalized.
966 case $host---$target---$nonopt in
967 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
968 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
972 # Make sure we can run config.sub.
973 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
974 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
977 echo $ac_n "checking host system type""... $ac_c" 1>&6
978 echo "configure:979: checking host system type" >&5
981 case "$host_alias" in
985 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
986 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
988 *) host_alias
=$nonopt ;;
992 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
993 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
994 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
995 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
996 echo "$ac_t""$host" 1>&6
998 echo $ac_n "checking target system type""... $ac_c" 1>&6
999 echo "configure:1000: checking target system type" >&5
1001 target_alias
=$target
1002 case "$target_alias" in
1005 NONE
) target_alias
=$host_alias ;;
1006 *) target_alias
=$nonopt ;;
1010 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1011 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1012 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1013 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1014 echo "$ac_t""$target" 1>&6
1016 echo $ac_n "checking build system type""... $ac_c" 1>&6
1017 echo "configure:1018: checking build system type" >&5
1020 case "$build_alias" in
1023 NONE
) build_alias
=$host_alias ;;
1024 *) build_alias
=$nonopt ;;
1028 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1029 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1030 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1031 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1032 echo "$ac_t""$build" 1>&6
1034 test "$host_alias" != "$target_alias" &&
1035 test "$program_prefix$program_suffix$program_transform_name" = \
1037 program_prefix
=${target_alias}-
1039 if test "$program_transform_name" = s
,x
,x
,; then
1040 program_transform_name
=
1042 # Double any \ or $. echo might interpret backslashes.
1043 cat <<\EOF_SED
> conftestsed
1044 s
,\\,\\\\,g
; s
,\$
,$$
,g
1046 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1049 test "$program_prefix" != NONE
&&
1050 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1051 # Use a double $ so make ignores it.
1052 test "$program_suffix" != NONE
&&
1053 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1055 # sed with no file args requires a program.
1056 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1059 .
${srcdir}/..
/..
/bfd
/configure.
host
1063 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1064 echo "configure:1065: checking how to run the C preprocessor" >&5
1065 # On Suns, sometimes $CPP names a directory.
1066 if test -n "$CPP" && test -d "$CPP"; then
1069 if test -z "$CPP"; then
1070 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1071 echo $ac_n "(cached) $ac_c" 1>&6
1073 # This must be in double quotes, not single quotes, because CPP may get
1074 # substituted into the Makefile and "${CC-cc}" will confuse make.
1076 # On the NeXT, cc -E runs the code through the compiler's parser,
1077 # not just through cpp.
1078 cat > conftest.
$ac_ext <<EOF
1079 #line 1080 "configure"
1080 #include "confdefs.h"
1084 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1085 { (eval echo configure
:1086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1086 ac_err
=`grep -v '^ *+' conftest.out`
1087 if test -z "$ac_err"; then
1091 echo "configure: failed program was:" >&5
1092 cat conftest.
$ac_ext >&5
1094 CPP
="${CC-cc} -E -traditional-cpp"
1095 cat > conftest.
$ac_ext <<EOF
1096 #line 1097 "configure"
1097 #include "confdefs.h"
1101 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1102 { (eval echo configure
:1103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1103 ac_err
=`grep -v '^ *+' conftest.out`
1104 if test -z "$ac_err"; then
1108 echo "configure: failed program was:" >&5
1109 cat conftest.
$ac_ext >&5
1116 ac_cv_prog_CPP
="$CPP"
1118 CPP
="$ac_cv_prog_CPP"
1120 ac_cv_prog_CPP
="$CPP"
1122 echo "$ac_t""$CPP" 1>&6
1124 for ac_hdr
in stdlib.h string.h
strings.h sys
/stat.h sys
/types.h unistd.h
1126 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1127 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1128 echo "configure:1129: checking for $ac_hdr" >&5
1129 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1130 echo $ac_n "(cached) $ac_c" 1>&6
1132 cat > conftest.
$ac_ext <<EOF
1133 #line 1134 "configure"
1134 #include "confdefs.h"
1137 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1138 { (eval echo configure
:1139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1139 ac_err
=`grep -v '^ *+' conftest.out`
1140 if test -z "$ac_err"; then
1142 eval "ac_cv_header_$ac_safe=yes"
1145 echo "configure: failed program was:" >&5
1146 cat conftest.
$ac_ext >&5
1148 eval "ac_cv_header_$ac_safe=no"
1152 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1153 echo "$ac_t""yes" 1>&6
1154 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1155 cat >> confdefs.h
<<EOF
1156 #define $ac_tr_hdr 1
1160 echo "$ac_t""no" 1>&6
1165 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1167 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1168 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1169 echo "configure:1170: checking for $ac_hdr that defines DIR" >&5
1170 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1171 echo $ac_n "(cached) $ac_c" 1>&6
1173 cat > conftest.
$ac_ext <<EOF
1174 #line 1175 "configure"
1175 #include "confdefs.h"
1176 #include <sys/types.h>
1182 if { (eval echo configure
:1183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1184 eval "ac_cv_header_dirent_$ac_safe=yes"
1186 echo "configure: failed program was:" >&5
1187 cat conftest.
$ac_ext >&5
1189 eval "ac_cv_header_dirent_$ac_safe=no"
1193 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1194 echo "$ac_t""yes" 1>&6
1195 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1196 cat >> confdefs.h
<<EOF
1197 #define $ac_tr_hdr 1
1199 ac_header_dirent
=$ac_hdr; break
1201 echo "$ac_t""no" 1>&6
1204 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1205 if test $ac_header_dirent = dirent.h
; then
1206 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1207 echo "configure:1208: checking for opendir in -ldir" >&5
1208 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1209 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1210 echo $ac_n "(cached) $ac_c" 1>&6
1212 ac_save_LIBS
="$LIBS"
1214 cat > conftest.
$ac_ext <<EOF
1215 #line 1216 "configure"
1216 #include "confdefs.h"
1217 /* Override any gcc2 internal prototype to avoid an error. */
1218 /* We use char because int might match the return type of a gcc2
1219 builtin and then its argument prototype would still apply. */
1226 if { (eval echo configure
:1227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1228 eval "ac_cv_lib_$ac_lib_var=yes"
1230 echo "configure: failed program was:" >&5
1231 cat conftest.
$ac_ext >&5
1233 eval "ac_cv_lib_$ac_lib_var=no"
1236 LIBS
="$ac_save_LIBS"
1239 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1240 echo "$ac_t""yes" 1>&6
1243 echo "$ac_t""no" 1>&6
1247 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1248 echo "configure:1249: checking for opendir in -lx" >&5
1249 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1250 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1253 ac_save_LIBS
="$LIBS"
1255 cat > conftest.
$ac_ext <<EOF
1256 #line 1257 "configure"
1257 #include "confdefs.h"
1258 /* Override any gcc2 internal prototype to avoid an error. */
1259 /* We use char because int might match the return type of a gcc2
1260 builtin and then its argument prototype would still apply. */
1267 if { (eval echo configure
:1268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1269 eval "ac_cv_lib_$ac_lib_var=yes"
1271 echo "configure: failed program was:" >&5
1272 cat conftest.
$ac_ext >&5
1274 eval "ac_cv_lib_$ac_lib_var=no"
1277 LIBS
="$ac_save_LIBS"
1280 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1281 echo "$ac_t""yes" 1>&6
1284 echo "$ac_t""no" 1>&6
1299 # Extract the first word of "ranlib", so it can be a program name with args.
1300 set dummy ranlib
; ac_word
=$2
1301 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1302 echo "configure:1303: checking for $ac_word" >&5
1303 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1306 if test -n "$RANLIB"; then
1307 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1309 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1310 for ac_dir
in $PATH; do
1311 test -z "$ac_dir" && ac_dir
=.
1312 if test -f $ac_dir/$ac_word; then
1313 ac_cv_prog_RANLIB
="ranlib"
1318 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1321 RANLIB
="$ac_cv_prog_RANLIB"
1322 if test -n "$RANLIB"; then
1323 echo "$ac_t""$RANLIB" 1>&6
1325 echo "$ac_t""no" 1>&6
1330 cat > confcache
<<\EOF
1331 # This file is a shell script that caches the results of configure
1332 # tests run on this system so they can be shared between configure
1333 # scripts and configure runs. It is not useful on other systems.
1334 # If it contains results you don't want to keep, you may remove or edit it.
1336 # By default, configure uses ./config.cache as the cache file,
1337 # creating it if it does not exist already. You can give configure
1338 # the --cache-file=FILE option to use a different cache file; that is
1339 # what configure does when it calls configure scripts in
1340 # subdirectories, so they share the cache.
1341 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1342 # config.status only pays attention to the cache file if you give it the
1343 # --recheck option to rerun configure.
1346 # The following way of writing the cache mishandles newlines in values,
1347 # but we know of no workaround that is simple, portable, and efficient.
1348 # So, don't put newlines in cache variables' values.
1349 # Ultrix sh set writes to stderr and can't be redirected directly,
1350 # and sets the high bit in the cache file unless we assign to the vars.
1352 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
1354 # `set' does not quote correctly, so add quotes (double-quote substitution
1355 # turns \\\\ into \\, and sed turns \\ into \).
1357 -e "s/'/'\\\\''/g" \
1358 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1361 # `set' quotes correctly as required by POSIX, so do not add quotes.
1362 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1365 if cmp -s $cache_file confcache
; then
1368 if test -w $cache_file; then
1369 echo "updating cache $cache_file"
1370 cat confcache
> $cache_file
1372 echo "not updating unwritable cache $cache_file"
1377 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1379 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1380 # Let make expand exec_prefix.
1381 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1383 # Any assignment to VPATH causes Sun make to only execute
1384 # the first set of double-colon rules, so remove it if not needed.
1385 # If there is a colon in the path, we need to keep it.
1386 if test "x$srcdir" = x.
; then
1387 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1390 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1392 DEFS
=-DHAVE_CONFIG_H
1394 # Without the "./", some shells look in PATH for config.status.
1395 : ${CONFIG_STATUS=./config.status}
1397 echo creating
$CONFIG_STATUS
1398 rm -f $CONFIG_STATUS
1399 cat > $CONFIG_STATUS <<EOF
1401 # Generated automatically by configure.
1402 # Run this file to recreate the current configuration.
1403 # This directory was configured as follows,
1404 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1406 # $0 $ac_configure_args
1408 # Compiler output produced by configure, useful for debugging
1409 # configure, is in ./config.log if it exists.
1411 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1414 case "\$ac_option" in
1415 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1416 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1417 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1418 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1419 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
1421 -help | --help | --hel | --he | --h)
1422 echo "\$ac_cs_usage"; exit 0 ;;
1423 *) echo "\$ac_cs_usage"; exit 1 ;;
1427 ac_given_srcdir=$srcdir
1428 ac_given_INSTALL="$INSTALL"
1430 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1432 cat >> $CONFIG_STATUS <<EOF
1434 # Protect against being on the right side of a sed subst in config.status.
1435 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1436 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1439 s%@sim_environment@%$sim_environment%g
1440 s%@sim_alignment@%$sim_alignment%g
1441 s%@sim_assert@%$sim_assert%g
1442 s%@sim_bitsize@%$sim_bitsize%g
1443 s%@sim_endian@%$sim_endian%g
1444 s%@sim_hostendian@%$sim_hostendian%g
1445 s%@sim_float@%$sim_float%g
1446 s%@sim_scache@%$sim_scache%g
1447 s%@sim_default_model@%$sim_default_model%g
1448 s%@sim_hardware@%$sim_hardware%g
1449 s%@sim_hw_obj@%$sim_hw_obj%g
1450 s%@sim_hw@%$sim_hw%g
1451 s%@sim_inline@%$sim_inline%g
1452 s%@sim_packages@%$sim_packages%g
1453 s%@sim_regparm@%$sim_regparm%g
1454 s%@sim_reserved_bits@%$sim_reserved_bits%g
1455 s%@sim_smp@%$sim_smp%g
1456 s%@sim_stdcall@%$sim_stdcall%g
1457 s%@sim_xor_endian@%$sim_xor_endian%g
1458 s%@sim_warnings@%$sim_warnings%g
1460 s%@CFLAGS@%$CFLAGS%g
1461 s%@CPPFLAGS@%$CPPFLAGS%g
1462 s%@CXXFLAGS@%$CXXFLAGS%g
1464 s%@LDFLAGS@%$LDFLAGS%g
1466 s%@exec_prefix@%$exec_prefix%g
1467 s%@prefix@%$prefix%g
1468 s%@program_transform_name@%$program_transform_name%g
1469 s%@bindir@%$bindir%g
1470 s%@sbindir@%$sbindir%g
1471 s%@libexecdir@%$libexecdir%g
1472 s%@datadir@%$datadir%g
1473 s%@sysconfdir@%$sysconfdir%g
1474 s%@sharedstatedir@%$sharedstatedir%g
1475 s%@localstatedir@%$localstatedir%g
1476 s%@libdir@%$libdir%g
1477 s%@includedir@%$includedir%g
1478 s%@oldincludedir@%$oldincludedir%g
1479 s%@infodir@%$infodir%g
1480 s%@mandir@%$mandir%g
1481 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1482 s%@INSTALL_DATA@%$INSTALL_DATA%g
1485 s%@host_alias@%$host_alias%g
1486 s%@host_cpu@%$host_cpu%g
1487 s%@host_vendor@%$host_vendor%g
1488 s%@host_os@%$host_os%g
1489 s%@target@%$target%g
1490 s%@target_alias@%$target_alias%g
1491 s%@target_cpu@%$target_cpu%g
1492 s%@target_vendor@%$target_vendor%g
1493 s%@target_os@%$target_os%g
1495 s%@build_alias@%$build_alias%g
1496 s%@build_cpu@%$build_cpu%g
1497 s%@build_vendor@%$build_vendor%g
1498 s%@build_os@%$build_os%g
1500 s%@AR_FOR_BUILD@%$AR_FOR_BUILD%g
1501 s%@AR_FLAGS_FOR_BUILD@%$AR_FLAGS_FOR_BUILD%g
1502 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
1503 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
1504 s%@RANLIB_FOR_BUILD@%$RANLIB_FOR_BUILD%g
1505 s%@LIBIBERTY_LIB@%$LIBIBERTY_LIB%g
1507 s%@RANLIB@%$RANLIB%g
1512 cat >> $CONFIG_STATUS <<\EOF
1514 # Split the substitutions into bite-sized pieces for seds with
1515 # small command number limits, like on Digital OSF/1 and HP-UX.
1516 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
1517 ac_file
=1 # Number of current file.
1518 ac_beg
=1 # First line for current file.
1519 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
1522 while $ac_more_lines; do
1523 if test $ac_beg -gt 1; then
1524 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
1526 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
1528 if test ! -s conftest.s
$ac_file; then
1530 rm -f conftest.s
$ac_file
1532 if test -z "$ac_sed_cmds"; then
1533 ac_sed_cmds
="sed -f conftest.s$ac_file"
1535 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
1537 ac_file
=`expr $ac_file + 1`
1539 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
1542 if test -z "$ac_sed_cmds"; then
1547 cat >> $CONFIG_STATUS <<EOF
1549 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1551 cat >> $CONFIG_STATUS <<\EOF
1552 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
1553 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1555 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
1556 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1557 *) ac_file_in
="${ac_file}.in" ;;
1560 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1562 # Remove last slash and all that follows it. Not all systems have dirname.
1563 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1564 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
1565 # The file is in a subdirectory.
1566 test ! -d "$ac_dir" && mkdir
"$ac_dir"
1567 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
1568 # A "../" for each directory in $ac_dir_suffix.
1569 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1571 ac_dir_suffix
= ac_dots
=
1574 case "$ac_given_srcdir" in
1576 if test -z "$ac_dots"; then top_srcdir
=.
1577 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1578 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
1580 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1581 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
1584 case "$ac_given_INSTALL" in
1585 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
1586 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
1589 echo creating
"$ac_file"
1591 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1593 *Makefile
*) ac_comsub
="1i\\
1594 # $configure_input" ;;
1598 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1600 s%@configure_input@%$configure_input%g
1601 s%@srcdir@%$srcdir%g
1602 s%@top_srcdir@%$top_srcdir%g
1603 s%@INSTALL@%$INSTALL%g
1604 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
1608 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1609 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1611 # ac_d sets the value in "#define NAME VALUE" lines.
1612 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1613 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
1616 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1617 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1618 ac_uB
='\([ ]\)%\1#\2define\3'
1621 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1622 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1623 ac_eB
='$%\1#\2define\3'
1627 if test "${CONFIG_HEADERS+set}" != set; then
1629 cat >> $CONFIG_STATUS <<EOF
1630 CONFIG_HEADERS="config.h:config.in"
1632 cat >> $CONFIG_STATUS <<\EOF
1634 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
1635 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1637 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
1638 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1639 *) ac_file_in
="${ac_file}.in" ;;
1642 echo creating
$ac_file
1644 rm -f conftest.frag conftest.
in conftest.out
1645 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1646 cat $ac_file_inputs > conftest.
in
1650 # Transform confdefs.h into a sed script conftest.vals that substitutes
1651 # the proper values into config.h.in to produce config.h. And first:
1652 # Protect against being on the right side of a sed subst in config.status.
1653 # Protect against being in an unquoted here document in config.status.
1655 cat > conftest.hdr
<<\EOF
1658 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1662 sed -n -f conftest.hdr confdefs.h > conftest.vals
1665 # This sed command replaces #undef with comments. This is necessary, for
1666 # example, in the case of _POSIX_SOURCE, which is predefined and required
1667 # on some systems where configure will not decide to define it.
1668 cat >> conftest.vals <<\EOF
1669 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1672 # Break up conftest.vals because some shells have a limit on
1673 # the size of here documents, and old seds have small limits too.
1678 ac_lines=`grep -c . conftest.vals
`
1679 # grep -c gives empty output for an empty file on some AIX systems.
1680 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1681 # Write a limited-size here document to conftest.frag.
1682 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1683 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1685 sed -f conftest.frag conftest.in > conftest.out
1687 mv conftest.out conftest.in
1689 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1691 mv conftest.tail conftest.vals
1695 cat >> $CONFIG_STATUS <<\EOF
1696 rm -f conftest.frag conftest.h
1697 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1698 cat conftest.in >> conftest.h
1700 if cmp -s $ac_file conftest.h 2>/dev/null; then
1701 echo "$ac_file is unchanged"
1704 # Remove last slash and all that follows it. Not all systems have dirname.
1705 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
1706 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1707 # The file is in a subdirectory.
1708 test ! -d "$ac_dir" && mkdir "$ac_dir"
1711 mv conftest.h $ac_file
1716 cat >> $CONFIG_STATUS <<EOF
1719 cat >> $CONFIG_STATUS <<\EOF
1720 case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac
1723 chmod +x $CONFIG_STATUS
1724 rm -fr confdefs* $ac_clean_files
1725 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1