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 # Check to see if we're running under Cygwin32, without using
123 # AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes".
124 # Otherwise set it to "no".
128 # Check to see if we're running under Win32, without using
129 # AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe".
130 # Otherwise set it to "".
135 # Guess values for system-dependent variables and create Makefiles.
136 # Generated automatically using autoconf version 2.12.2
137 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
139 # This configure script is free software; the Free Software Foundation
140 # gives unlimited permission to copy, distribute and modify it.
144 ac_default_prefix
=/usr
/local
145 # Any additions from configure.in:
147 --enable-build-warnings[=LIST] Enable build-time compiler warnings"
149 # Initialize some variables set by options.
150 # The variables have the same names as the options, with
151 # dashes changed to underlines.
153 cache_file
=.
/config.cache
162 program_transform_name
=s
,x
,x
,
170 bindir
='${exec_prefix}/bin'
171 sbindir
='${exec_prefix}/sbin'
172 libexecdir
='${exec_prefix}/libexec'
173 datadir
='${prefix}/share'
174 sysconfdir
='${prefix}/etc'
175 sharedstatedir
='${prefix}/com'
176 localstatedir
='${prefix}/var'
177 libdir
='${exec_prefix}/lib'
178 includedir
='${prefix}/include'
179 oldincludedir
='/usr/include'
180 infodir
='${prefix}/info'
181 mandir
='${prefix}/man'
183 # Initialize some other variables.
186 SHELL
=${CONFIG_SHELL-/bin/sh}
187 # Maximum number of lines to put in a shell here document.
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
202 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
206 # Accept the important Cygnus configure options, so we can diagnose typos.
210 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
212 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
213 bindir
="$ac_optarg" ;;
215 -build |
--build |
--buil |
--bui |
--bu)
217 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
218 build
="$ac_optarg" ;;
220 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
221 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
222 ac_prev
=cache_file
;;
223 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
224 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
225 cache_file
="$ac_optarg" ;;
227 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
229 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
231 datadir
="$ac_optarg" ;;
233 -disable-* |
--disable-*)
234 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
235 # Reject names that are not valid shell variable names.
236 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
237 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
239 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
240 eval "enable_${ac_feature}=no" ;;
242 -enable-* |
--enable-*)
243 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
244 # Reject names that are not valid shell variable names.
245 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
246 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
248 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
253 eval "enable_${ac_feature}='$ac_optarg'" ;;
255 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
256 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
257 |
--exec |
--exe |
--ex)
258 ac_prev
=exec_prefix
;;
259 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
260 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
261 |
--exec=* |
--exe=* |
--ex=*)
262 exec_prefix
="$ac_optarg" ;;
264 -gas |
--gas |
--ga |
--g)
265 # Obsolete; use --with-gas.
268 -help |
--help |
--hel |
--he)
269 # Omit some internal or obsolete options to make the list less imposing.
270 # This message is too long to be a string in the A/UX 3.1 sh.
272 Usage: configure [options] [host]
273 Options: [defaults in brackets after descriptions]
275 --cache-file=FILE cache test results in FILE
276 --help print this message
277 --no-create do not create output files
278 --quiet, --silent do not print \`checking...' messages
279 --version print the version of autoconf that created configure
280 Directory and file names:
281 --prefix=PREFIX install architecture-independent files in PREFIX
283 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
285 --bindir=DIR user executables in DIR [EPREFIX/bin]
286 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
287 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
288 --datadir=DIR read-only architecture-independent data in DIR
290 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
291 --sharedstatedir=DIR modifiable architecture-independent data in DIR
293 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
294 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
295 --includedir=DIR C header files in DIR [PREFIX/include]
296 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
297 --infodir=DIR info documentation in DIR [PREFIX/info]
298 --mandir=DIR man documentation in DIR [PREFIX/man]
299 --srcdir=DIR find the sources in DIR [configure dir or ..]
300 --program-prefix=PREFIX prepend PREFIX to installed program names
301 --program-suffix=SUFFIX append SUFFIX to installed program names
302 --program-transform-name=PROGRAM
303 run sed PROGRAM on installed program names
307 --build=BUILD configure for building on BUILD [BUILD=HOST]
308 --host=HOST configure for HOST [guessed]
309 --target=TARGET configure for TARGET [TARGET=HOST]
310 Features and packages:
311 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
312 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
313 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
314 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
315 --x-includes=DIR X include files are in DIR
316 --x-libraries=DIR X library files are in DIR
318 if test -n "$ac_help"; then
319 echo "--enable and --with options recognized:$ac_help"
323 -host |
--host |
--hos |
--ho)
325 -host=* |
--host=* |
--hos=* |
--ho=*)
328 -includedir |
--includedir |
--includedi |
--included |
--include \
329 |
--includ |
--inclu |
--incl |
--inc)
330 ac_prev
=includedir
;;
331 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
332 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
333 includedir
="$ac_optarg" ;;
335 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
337 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
338 infodir
="$ac_optarg" ;;
340 -libdir |
--libdir |
--libdi |
--libd)
342 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
343 libdir
="$ac_optarg" ;;
345 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
346 |
--libexe |
--libex |
--libe)
347 ac_prev
=libexecdir
;;
348 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
349 |
--libexe=* |
--libex=* |
--libe=*)
350 libexecdir
="$ac_optarg" ;;
352 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
353 |
--localstate |
--localstat |
--localsta |
--localst \
354 |
--locals |
--local |
--loca |
--loc |
--lo)
355 ac_prev
=localstatedir
;;
356 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
357 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
358 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
359 localstatedir
="$ac_optarg" ;;
361 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
363 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
364 mandir
="$ac_optarg" ;;
367 # Obsolete; use --without-fp.
370 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
374 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
375 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
378 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
379 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
380 |
--oldin |
--oldi |
--old |
--ol |
--o)
381 ac_prev
=oldincludedir
;;
382 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
383 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
384 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
385 oldincludedir
="$ac_optarg" ;;
387 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
389 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
390 prefix
="$ac_optarg" ;;
392 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
393 |
--program-pre |
--program-pr |
--program-p)
394 ac_prev
=program_prefix
;;
395 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
396 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
397 program_prefix
="$ac_optarg" ;;
399 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
400 |
--program-suf |
--program-su |
--program-s)
401 ac_prev
=program_suffix
;;
402 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
403 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
404 program_suffix
="$ac_optarg" ;;
406 -program-transform-name |
--program-transform-name \
407 |
--program-transform-nam |
--program-transform-na \
408 |
--program-transform-n |
--program-transform- \
409 |
--program-transform |
--program-transfor \
410 |
--program-transfo |
--program-transf \
411 |
--program-trans |
--program-tran \
412 |
--progr-tra |
--program-tr |
--program-t)
413 ac_prev
=program_transform_name
;;
414 -program-transform-name=* |
--program-transform-name=* \
415 |
--program-transform-nam=* |
--program-transform-na=* \
416 |
--program-transform-n=* |
--program-transform-=* \
417 |
--program-transform=* |
--program-transfor=* \
418 |
--program-transfo=* |
--program-transf=* \
419 |
--program-trans=* |
--program-tran=* \
420 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
421 program_transform_name
="$ac_optarg" ;;
423 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
424 |
-silent |
--silent |
--silen |
--sile |
--sil)
427 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
429 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
431 sbindir
="$ac_optarg" ;;
433 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
434 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
435 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
437 ac_prev
=sharedstatedir
;;
438 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
439 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
440 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
442 sharedstatedir
="$ac_optarg" ;;
444 -site |
--site |
--sit)
446 -site=* |
--site=* |
--sit=*)
449 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
451 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
452 srcdir
="$ac_optarg" ;;
454 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
455 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
456 ac_prev
=sysconfdir
;;
457 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
458 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
459 sysconfdir
="$ac_optarg" ;;
461 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
463 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
464 target
="$ac_optarg" ;;
466 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
469 -version |
--version |
--versio |
--versi |
--vers)
470 echo "configure generated by autoconf version 2.12.2"
474 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
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'`
484 eval "with_${ac_package}='$ac_optarg'" ;;
486 -without-* |
--without-*)
487 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
488 # Reject names that are not valid shell variable names.
489 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
490 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
492 ac_package
=`echo $ac_package| sed 's/-/_/g'`
493 eval "with_${ac_package}=no" ;;
496 # Obsolete; use --with-x.
499 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
500 |
--x-incl |
--x-inc |
--x-in |
--x-i)
501 ac_prev
=x_includes
;;
502 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
503 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
504 x_includes
="$ac_optarg" ;;
506 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
507 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
508 ac_prev
=x_libraries
;;
509 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
510 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
511 x_libraries
="$ac_optarg" ;;
513 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
517 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
518 echo "configure: warning: $ac_option: invalid host type" 1>&2
520 if test "x$nonopt" != xNONE
; then
521 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
529 if test -n "$ac_prev"; then
530 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
533 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
535 # File descriptor usage:
538 # 2 errors and warnings
539 # 3 some systems may open it to /dev/tty
540 # 4 used on the Kubota Titan
541 # 6 checking for... messages and results
542 # 5 compiler messages saved in config.log
543 if test "$silent" = yes; then
551 This file contains any messages produced by compilers while
552 running configure, to aid debugging if configure makes a mistake.
555 # Strip out --no-create and --no-recursion so they do not pile up.
556 # Also quote any args containing shell metacharacters.
561 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
562 |
--no-cr |
--no-c) ;;
563 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
564 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
565 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
566 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
567 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
572 # Only set these to C if already set. These must not be set unconditionally
573 # because not all systems understand e.g. LANG=C (notably SCO).
574 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
575 # Non-C LC_CTYPE values break the ctype check.
576 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
577 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
578 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
579 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
581 # confdefs.h avoids OS command line length limits that DEFS can exceed.
582 rm -rf conftest
* confdefs.h
583 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
586 # A filename unique to this package, relative to the directory that
587 # configure is in, which we can look for to find out if srcdir is correct.
588 ac_unique_file
=table.h
590 # Find the source files, if location was not specified.
591 if test -z "$srcdir"; then
592 ac_srcdir_defaulted
=yes
593 # Try the directory containing this script, then its parent.
595 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
596 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
598 if test ! -r $srcdir/$ac_unique_file; then
602 ac_srcdir_defaulted
=no
604 if test ! -r $srcdir/$ac_unique_file; then
605 if test "$ac_srcdir_defaulted" = yes; then
606 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
608 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
611 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
613 # Prefer explicitly selected file to automatically selected ones.
614 if test -z "$CONFIG_SITE"; then
615 if test "x$prefix" != xNONE
; then
616 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
618 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
621 for ac_site_file
in $CONFIG_SITE; do
622 if test -r "$ac_site_file"; then
623 echo "loading site script $ac_site_file"
628 if test -r "$cache_file"; then
629 echo "loading cache $cache_file"
632 echo "creating cache $cache_file"
637 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
638 ac_cpp
='$CPP $CPPFLAGS'
639 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
640 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
641 cross_compiling
=$ac_cv_prog_cc_cross
645 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
646 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
647 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
654 ac_n
= ac_c
='\c' ac_t
=
660 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
661 if test -f $ac_dir/install-sh
; then
663 ac_install_sh
="$ac_aux_dir/install-sh -c"
665 elif test -f $ac_dir/install.sh
; then
667 ac_install_sh
="$ac_aux_dir/install.sh -c"
671 if test -z "$ac_aux_dir"; then
672 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
674 ac_config_guess
=$ac_aux_dir/config.guess
675 ac_config_sub
=$ac_aux_dir/config.sub
676 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
678 # Find a good install program. We prefer a C program (faster),
679 # so one script is as good as another. But avoid the broken or
680 # incompatible versions:
681 # SysV /etc/install, /usr/sbin/install
682 # SunOS /usr/etc/install
685 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
686 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
687 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
688 # ./install, which can be erroneously created by make from ./install.sh.
689 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
690 echo "configure:691: checking for a BSD compatible install" >&5
691 if test -z "$INSTALL"; then
692 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
693 echo $ac_n "(cached) $ac_c" 1>&6
695 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
696 for ac_dir
in $PATH; do
697 # Account for people who put trailing slashes in PATH elements.
699 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
701 # OSF1 and SCO ODT 3.0 have their own names for install.
702 # Don't use installbsd from OSF since it installs stuff as root
704 for ac_prog
in ginstall scoinst
install; do
705 if test -f $ac_dir/$ac_prog; then
706 if test $ac_prog = install &&
707 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
708 # AIX install. It has an incompatible calling convention.
711 ac_cv_path_install
="$ac_dir/$ac_prog -c"
722 if test "${ac_cv_path_install+set}" = set; then
723 INSTALL
="$ac_cv_path_install"
725 # As a last resort, use the slow shell script. We don't cache a
726 # path for INSTALL within a source directory, because that will
727 # break other packages using the cache if that directory is
728 # removed, or if the path is relative.
729 INSTALL
="$ac_install_sh"
732 echo "$ac_t""$INSTALL" 1>&6
734 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
735 # It thinks the first close brace ends the variable substitution.
736 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
738 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
740 # Extract the first word of "gcc", so it can be a program name with args.
741 set dummy gcc
; ac_word
=$2
742 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
743 echo "configure:744: checking for $ac_word" >&5
744 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
745 echo $ac_n "(cached) $ac_c" 1>&6
747 if test -n "$CC"; then
748 ac_cv_prog_CC
="$CC" # Let the user override the test.
750 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
751 for ac_dir
in $PATH; do
752 test -z "$ac_dir" && ac_dir
=.
753 if test -f $ac_dir/$ac_word; then
762 if test -n "$CC"; then
763 echo "$ac_t""$CC" 1>&6
765 echo "$ac_t""no" 1>&6
768 if test -z "$CC"; then
769 # Extract the first word of "cc", so it can be a program name with args.
770 set dummy cc
; ac_word
=$2
771 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
772 echo "configure:773: checking for $ac_word" >&5
773 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
774 echo $ac_n "(cached) $ac_c" 1>&6
776 if test -n "$CC"; then
777 ac_cv_prog_CC
="$CC" # Let the user override the test.
779 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
781 for ac_dir
in $PATH; do
782 test -z "$ac_dir" && ac_dir
=.
783 if test -f $ac_dir/$ac_word; then
784 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
793 if test $ac_prog_rejected = yes; then
794 # We found a bogon in the path, so make sure we never use it.
795 set dummy
$ac_cv_prog_CC
797 if test $# -gt 0; then
798 # We chose a different compiler from the bogus one.
799 # However, it has the same basename, so the bogon will be chosen
800 # first if we set CC to just the basename; use the full file name.
802 set dummy
"$ac_dir/$ac_word" "$@"
810 if test -n "$CC"; then
811 echo "$ac_t""$CC" 1>&6
813 echo "$ac_t""no" 1>&6
816 if test -z "$CC"; then
819 # Extract the first word of "cl", so it can be a program name with args.
820 set dummy cl
; ac_word
=$2
821 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
822 echo "configure:823: checking for $ac_word" >&5
823 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
824 echo $ac_n "(cached) $ac_c" 1>&6
826 if test -n "$CC"; then
827 ac_cv_prog_CC
="$CC" # Let the user override the test.
829 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
830 for ac_dir
in $PATH; do
831 test -z "$ac_dir" && ac_dir
=.
832 if test -f $ac_dir/$ac_word; then
841 if test -n "$CC"; then
842 echo "$ac_t""$CC" 1>&6
844 echo "$ac_t""no" 1>&6
849 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
852 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
853 echo "configure:854: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
856 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
857 ac_cpp
='$CPP $CPPFLAGS'
858 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
859 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
860 cross_compiling
=$ac_cv_prog_cc_cross
862 cat > conftest.
$ac_ext <<EOF
863 #line 864 "configure"
864 #include "confdefs.h"
867 if { (eval echo configure
:868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
868 ac_cv_prog_cc_works
=yes
869 # If we can't run a trivial program, we are probably using a cross compiler.
870 if (.
/conftest
; exit) 2>/dev
/null
; then
871 ac_cv_prog_cc_cross
=no
873 ac_cv_prog_cc_cross
=yes
876 echo "configure: failed program was:" >&5
877 cat conftest.
$ac_ext >&5
878 ac_cv_prog_cc_works
=no
882 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
883 if test $ac_cv_prog_cc_works = no
; then
884 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
886 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
887 echo "configure:888: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
888 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
889 cross_compiling
=$ac_cv_prog_cc_cross
891 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
892 echo "configure:893: checking whether we are using GNU C" >&5
893 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
894 echo $ac_n "(cached) $ac_c" 1>&6
896 cat > conftest.c
<<EOF
901 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
908 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
910 if test $ac_cv_prog_gcc = yes; then
916 ac_test_CFLAGS
="${CFLAGS+set}"
917 ac_save_CFLAGS
="$CFLAGS"
919 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
920 echo "configure:921: checking whether ${CC-cc} accepts -g" >&5
921 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
922 echo $ac_n "(cached) $ac_c" 1>&6
924 echo 'void f(){}' > conftest.c
925 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
934 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
935 if test "$ac_test_CFLAGS" = set; then
936 CFLAGS
="$ac_save_CFLAGS"
937 elif test $ac_cv_prog_cc_g = yes; then
938 if test "$GCC" = yes; then
944 if test "$GCC" = yes; then
953 # Check whether --enable-build-warnings or --disable-build-warnings was given.
954 if test "${enable_build_warnings+set}" = set; then
955 enableval
="$enable_build_warnings"
956 build_warnings
="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
957 case "${enableval}" in
959 no
) build_warnings
="-w";;
960 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
961 build_warnings
="${build_warnings} ${t}";;
962 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
963 build_warnings
="${t} ${build_warnings}";;
964 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
966 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
967 echo "Setting warning flags = $build_warnings" 6>&1
974 # Put a plausible default for CC_FOR_BUILD in Makefile.
975 if test "x$cross_compiling" = "xno" -a "x$host" != "xi386-windows"; then
977 AR_FLAGS_FOR_BUILD
='$(AR_FLAGS)'
979 CFLAGS_FOR_BUILD
='$(CFLAGS)'
980 RANLIB_FOR_BUILD
='$(RANLIB)'
981 LIBIBERTY_LIB
=..
/..
/libiberty
/libiberty.a
983 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
984 AR_FLAGS_FOR_BUILD
=${AR_FLAGS_FOR_BUILD-rc}
985 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
986 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-"-g"}
987 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
993 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
994 if test -f $ac_dir/install-sh
; then
996 ac_install_sh
="$ac_aux_dir/install-sh -c"
998 elif test -f $ac_dir/install.sh
; then
1000 ac_install_sh
="$ac_aux_dir/install.sh -c"
1004 if test -z "$ac_aux_dir"; then
1005 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1007 ac_config_guess
=$ac_aux_dir/config.guess
1008 ac_config_sub
=$ac_aux_dir/config.sub
1009 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1012 # Do some error checking and defaulting for the host and target type.
1014 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1017 # 1. You are not allowed to specify --host, --target, and nonopt at the
1019 # 2. Host defaults to nonopt.
1020 # 3. If nonopt is not specified, then host defaults to the current host,
1021 # as determined by config.guess.
1022 # 4. Target and build default to nonopt.
1023 # 5. If nonopt is not specified, then target and build default to host.
1025 # The aliases save the names the user supplied, while $host etc.
1026 # will get canonicalized.
1027 case $host---$target---$nonopt in
1028 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1029 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1033 # Make sure we can run config.sub.
1034 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1035 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1038 echo $ac_n "checking host system type""... $ac_c" 1>&6
1039 echo "configure:1040: checking host system type" >&5
1042 case "$host_alias" in
1046 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1047 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1049 *) host_alias
=$nonopt ;;
1053 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1054 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1055 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1056 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1057 echo "$ac_t""$host" 1>&6
1059 echo $ac_n "checking target system type""... $ac_c" 1>&6
1060 echo "configure:1061: checking target system type" >&5
1062 target_alias
=$target
1063 case "$target_alias" in
1066 NONE
) target_alias
=$host_alias ;;
1067 *) target_alias
=$nonopt ;;
1071 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1072 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1073 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1074 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1075 echo "$ac_t""$target" 1>&6
1077 echo $ac_n "checking build system type""... $ac_c" 1>&6
1078 echo "configure:1079: checking build system type" >&5
1081 case "$build_alias" in
1084 NONE
) build_alias
=$host_alias ;;
1085 *) build_alias
=$nonopt ;;
1089 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1090 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1091 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1092 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1093 echo "$ac_t""$build" 1>&6
1095 test "$host_alias" != "$target_alias" &&
1096 test "$program_prefix$program_suffix$program_transform_name" = \
1098 program_prefix
=${target_alias}-
1100 if test "$program_transform_name" = s
,x
,x
,; then
1101 program_transform_name
=
1103 # Double any \ or $. echo might interpret backslashes.
1104 cat <<\EOF_SED
> conftestsed
1105 s
,\\,\\\\,g
; s
,\$
,$$
,g
1107 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1110 test "$program_prefix" != NONE
&&
1111 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1112 # Use a double $ so make ignores it.
1113 test "$program_suffix" != NONE
&&
1114 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1116 # sed with no file args requires a program.
1117 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1120 .
${srcdir}/..
/..
/bfd
/configure.
host
1124 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1125 echo "configure:1126: checking how to run the C preprocessor" >&5
1126 # On Suns, sometimes $CPP names a directory.
1127 if test -n "$CPP" && test -d "$CPP"; then
1130 if test -z "$CPP"; then
1131 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1132 echo $ac_n "(cached) $ac_c" 1>&6
1134 # This must be in double quotes, not single quotes, because CPP may get
1135 # substituted into the Makefile and "${CC-cc}" will confuse make.
1137 # On the NeXT, cc -E runs the code through the compiler's parser,
1138 # not just through cpp.
1139 cat > conftest.
$ac_ext <<EOF
1140 #line 1141 "configure"
1141 #include "confdefs.h"
1145 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1146 { (eval echo configure
:1147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1147 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1148 if test -z "$ac_err"; then
1152 echo "configure: failed program was:" >&5
1153 cat conftest.
$ac_ext >&5
1155 CPP
="${CC-cc} -E -traditional-cpp"
1156 cat > conftest.
$ac_ext <<EOF
1157 #line 1158 "configure"
1158 #include "confdefs.h"
1162 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1163 { (eval echo configure
:1164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1164 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1165 if test -z "$ac_err"; then
1169 echo "configure: failed program was:" >&5
1170 cat conftest.
$ac_ext >&5
1172 CPP
="${CC-cc} -nologo -E"
1173 cat > conftest.
$ac_ext <<EOF
1174 #line 1175 "configure"
1175 #include "confdefs.h"
1179 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1180 { (eval echo configure
:1181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1181 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1182 if test -z "$ac_err"; then
1186 echo "configure: failed program was:" >&5
1187 cat conftest.
$ac_ext >&5
1196 ac_cv_prog_CPP
="$CPP"
1198 CPP
="$ac_cv_prog_CPP"
1200 ac_cv_prog_CPP
="$CPP"
1202 echo "$ac_t""$CPP" 1>&6
1204 for ac_hdr
in stdlib.h string.h
strings.h sys
/stat.h sys
/types.h unistd.h
1206 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1207 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1208 echo "configure:1209: checking for $ac_hdr" >&5
1209 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1210 echo $ac_n "(cached) $ac_c" 1>&6
1212 cat > conftest.
$ac_ext <<EOF
1213 #line 1214 "configure"
1214 #include "confdefs.h"
1217 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1218 { (eval echo configure
:1219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1219 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1220 if test -z "$ac_err"; then
1222 eval "ac_cv_header_$ac_safe=yes"
1225 echo "configure: failed program was:" >&5
1226 cat conftest.
$ac_ext >&5
1228 eval "ac_cv_header_$ac_safe=no"
1232 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1233 echo "$ac_t""yes" 1>&6
1234 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1235 cat >> confdefs.h
<<EOF
1236 #define $ac_tr_hdr 1
1240 echo "$ac_t""no" 1>&6
1245 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1247 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1248 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1249 echo "configure:1250: checking for $ac_hdr that defines DIR" >&5
1250 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1253 cat > conftest.
$ac_ext <<EOF
1254 #line 1255 "configure"
1255 #include "confdefs.h"
1256 #include <sys/types.h>
1262 if { (eval echo configure
:1263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1264 eval "ac_cv_header_dirent_$ac_safe=yes"
1266 echo "configure: failed program was:" >&5
1267 cat conftest.
$ac_ext >&5
1269 eval "ac_cv_header_dirent_$ac_safe=no"
1273 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1274 echo "$ac_t""yes" 1>&6
1275 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1276 cat >> confdefs.h
<<EOF
1277 #define $ac_tr_hdr 1
1279 ac_header_dirent
=$ac_hdr; break
1281 echo "$ac_t""no" 1>&6
1284 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1285 if test $ac_header_dirent = dirent.h
; then
1286 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1287 echo "configure:1288: checking for opendir in -ldir" >&5
1288 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1289 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1292 ac_save_LIBS
="$LIBS"
1294 cat > conftest.
$ac_ext <<EOF
1295 #line 1296 "configure"
1296 #include "confdefs.h"
1297 /* Override any gcc2 internal prototype to avoid an error. */
1298 /* We use char because int might match the return type of a gcc2
1299 builtin and then its argument prototype would still apply. */
1306 if { (eval echo configure
:1307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1308 eval "ac_cv_lib_$ac_lib_var=yes"
1310 echo "configure: failed program was:" >&5
1311 cat conftest.
$ac_ext >&5
1313 eval "ac_cv_lib_$ac_lib_var=no"
1316 LIBS
="$ac_save_LIBS"
1319 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1320 echo "$ac_t""yes" 1>&6
1323 echo "$ac_t""no" 1>&6
1327 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1328 echo "configure:1329: checking for opendir in -lx" >&5
1329 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1330 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1331 echo $ac_n "(cached) $ac_c" 1>&6
1333 ac_save_LIBS
="$LIBS"
1335 cat > conftest.
$ac_ext <<EOF
1336 #line 1337 "configure"
1337 #include "confdefs.h"
1338 /* Override any gcc2 internal prototype to avoid an error. */
1339 /* We use char because int might match the return type of a gcc2
1340 builtin and then its argument prototype would still apply. */
1347 if { (eval echo configure
:1348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1349 eval "ac_cv_lib_$ac_lib_var=yes"
1351 echo "configure: failed program was:" >&5
1352 cat conftest.
$ac_ext >&5
1354 eval "ac_cv_lib_$ac_lib_var=no"
1357 LIBS
="$ac_save_LIBS"
1360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1361 echo "$ac_t""yes" 1>&6
1364 echo "$ac_t""no" 1>&6
1379 # Extract the first word of "ranlib", so it can be a program name with args.
1380 set dummy ranlib
; ac_word
=$2
1381 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1382 echo "configure:1383: checking for $ac_word" >&5
1383 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1384 echo $ac_n "(cached) $ac_c" 1>&6
1386 if test -n "$RANLIB"; then
1387 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1389 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1390 for ac_dir
in $PATH; do
1391 test -z "$ac_dir" && ac_dir
=.
1392 if test -f $ac_dir/$ac_word; then
1393 ac_cv_prog_RANLIB
="ranlib"
1398 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1401 RANLIB
="$ac_cv_prog_RANLIB"
1402 if test -n "$RANLIB"; then
1403 echo "$ac_t""$RANLIB" 1>&6
1405 echo "$ac_t""no" 1>&6
1410 cat > confcache
<<\EOF
1411 # This file is a shell script that caches the results of configure
1412 # tests run on this system so they can be shared between configure
1413 # scripts and configure runs. It is not useful on other systems.
1414 # If it contains results you don't want to keep, you may remove or edit it.
1416 # By default, configure uses ./config.cache as the cache file,
1417 # creating it if it does not exist already. You can give configure
1418 # the --cache-file=FILE option to use a different cache file; that is
1419 # what configure does when it calls configure scripts in
1420 # subdirectories, so they share the cache.
1421 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1422 # config.status only pays attention to the cache file if you give it the
1423 # --recheck option to rerun configure.
1426 # The following way of writing the cache mishandles newlines in values,
1427 # but we know of no workaround that is simple, portable, and efficient.
1428 # So, don't put newlines in cache variables' values.
1429 # Ultrix sh set writes to stderr and can't be redirected directly,
1430 # and sets the high bit in the cache file unless we assign to the vars.
1432 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
1434 # `set' does not quote correctly, so add quotes (double-quote substitution
1435 # turns \\\\ into \\, and sed turns \\ into \).
1437 -e "s/'/'\\\\''/g" \
1438 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1441 # `set' quotes correctly as required by POSIX, so do not add quotes.
1442 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1445 if cmp -s $cache_file confcache
; then
1448 if test -w $cache_file; then
1449 echo "updating cache $cache_file"
1450 cat confcache
> $cache_file
1452 echo "not updating unwritable cache $cache_file"
1457 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1459 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1460 # Let make expand exec_prefix.
1461 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1463 # Any assignment to VPATH causes Sun make to only execute
1464 # the first set of double-colon rules, so remove it if not needed.
1465 # If there is a colon in the path, we need to keep it.
1466 if test "x$srcdir" = x.
; then
1467 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1470 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1472 DEFS
=-DHAVE_CONFIG_H
1474 # Without the "./", some shells look in PATH for config.status.
1475 : ${CONFIG_STATUS=./config.status}
1477 echo creating
$CONFIG_STATUS
1478 rm -f $CONFIG_STATUS
1479 cat > $CONFIG_STATUS <<EOF
1481 # Generated automatically by configure.
1482 # Run this file to recreate the current configuration.
1483 # This directory was configured as follows,
1484 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1486 # $0 $ac_configure_args
1488 # Compiler output produced by configure, useful for debugging
1489 # configure, is in ./config.log if it exists.
1491 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1494 case "\$ac_option" in
1495 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1496 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1497 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1498 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1499 echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
1501 -help | --help | --hel | --he | --h)
1502 echo "\$ac_cs_usage"; exit 0 ;;
1503 *) echo "\$ac_cs_usage"; exit 1 ;;
1507 ac_given_srcdir=$srcdir
1508 ac_given_INSTALL="$INSTALL"
1510 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1512 cat >> $CONFIG_STATUS <<EOF
1514 # Protect against being on the right side of a sed subst in config.status.
1515 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1516 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1519 s%@sim_environment@%$sim_environment%g
1520 s%@sim_alignment@%$sim_alignment%g
1521 s%@sim_assert@%$sim_assert%g
1522 s%@sim_bitsize@%$sim_bitsize%g
1523 s%@sim_endian@%$sim_endian%g
1524 s%@sim_hostendian@%$sim_hostendian%g
1525 s%@sim_float@%$sim_float%g
1526 s%@sim_scache@%$sim_scache%g
1527 s%@sim_default_model@%$sim_default_model%g
1528 s%@sim_hw_cflags@%$sim_hw_cflags%g
1529 s%@sim_hw_objs@%$sim_hw_objs%g
1530 s%@sim_hw@%$sim_hw%g
1531 s%@sim_inline@%$sim_inline%g
1532 s%@sim_packages@%$sim_packages%g
1533 s%@sim_regparm@%$sim_regparm%g
1534 s%@sim_reserved_bits@%$sim_reserved_bits%g
1535 s%@sim_smp@%$sim_smp%g
1536 s%@sim_stdcall@%$sim_stdcall%g
1537 s%@sim_xor_endian@%$sim_xor_endian%g
1538 s%@build_warnings@%$build_warnings%g
1540 s%@CFLAGS@%$CFLAGS%g
1541 s%@CPPFLAGS@%$CPPFLAGS%g
1542 s%@CXXFLAGS@%$CXXFLAGS%g
1544 s%@LDFLAGS@%$LDFLAGS%g
1546 s%@exec_prefix@%$exec_prefix%g
1547 s%@prefix@%$prefix%g
1548 s%@program_transform_name@%$program_transform_name%g
1549 s%@bindir@%$bindir%g
1550 s%@sbindir@%$sbindir%g
1551 s%@libexecdir@%$libexecdir%g
1552 s%@datadir@%$datadir%g
1553 s%@sysconfdir@%$sysconfdir%g
1554 s%@sharedstatedir@%$sharedstatedir%g
1555 s%@localstatedir@%$localstatedir%g
1556 s%@libdir@%$libdir%g
1557 s%@includedir@%$includedir%g
1558 s%@oldincludedir@%$oldincludedir%g
1559 s%@infodir@%$infodir%g
1560 s%@mandir@%$mandir%g
1561 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1562 s%@INSTALL_DATA@%$INSTALL_DATA%g
1565 s%@host_alias@%$host_alias%g
1566 s%@host_cpu@%$host_cpu%g
1567 s%@host_vendor@%$host_vendor%g
1568 s%@host_os@%$host_os%g
1569 s%@target@%$target%g
1570 s%@target_alias@%$target_alias%g
1571 s%@target_cpu@%$target_cpu%g
1572 s%@target_vendor@%$target_vendor%g
1573 s%@target_os@%$target_os%g
1575 s%@build_alias@%$build_alias%g
1576 s%@build_cpu@%$build_cpu%g
1577 s%@build_vendor@%$build_vendor%g
1578 s%@build_os@%$build_os%g
1580 s%@AR_FOR_BUILD@%$AR_FOR_BUILD%g
1581 s%@AR_FLAGS_FOR_BUILD@%$AR_FLAGS_FOR_BUILD%g
1582 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
1583 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
1584 s%@RANLIB_FOR_BUILD@%$RANLIB_FOR_BUILD%g
1585 s%@LIBIBERTY_LIB@%$LIBIBERTY_LIB%g
1587 s%@RANLIB@%$RANLIB%g
1592 cat >> $CONFIG_STATUS <<\EOF
1594 # Split the substitutions into bite-sized pieces for seds with
1595 # small command number limits, like on Digital OSF/1 and HP-UX.
1596 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
1597 ac_file
=1 # Number of current file.
1598 ac_beg
=1 # First line for current file.
1599 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
1602 while $ac_more_lines; do
1603 if test $ac_beg -gt 1; then
1604 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
1606 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
1608 if test ! -s conftest.s
$ac_file; then
1610 rm -f conftest.s
$ac_file
1612 if test -z "$ac_sed_cmds"; then
1613 ac_sed_cmds
="sed -f conftest.s$ac_file"
1615 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
1617 ac_file
=`expr $ac_file + 1`
1619 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
1622 if test -z "$ac_sed_cmds"; then
1627 cat >> $CONFIG_STATUS <<EOF
1629 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1631 cat >> $CONFIG_STATUS <<\EOF
1632 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
1633 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1635 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
1636 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1637 *) ac_file_in
="${ac_file}.in" ;;
1640 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1642 # Remove last slash and all that follows it. Not all systems have dirname.
1643 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1644 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
1645 # The file is in a subdirectory.
1646 test ! -d "$ac_dir" && mkdir
"$ac_dir"
1647 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
1648 # A "../" for each directory in $ac_dir_suffix.
1649 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1651 ac_dir_suffix
= ac_dots
=
1654 case "$ac_given_srcdir" in
1656 if test -z "$ac_dots"; then top_srcdir
=.
1657 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1658 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
1660 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1661 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
1664 case "$ac_given_INSTALL" in
1665 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
1666 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
1669 echo creating
"$ac_file"
1671 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1673 *Makefile
*) ac_comsub
="1i\\
1674 # $configure_input" ;;
1678 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1680 s%@configure_input@%$configure_input%g
1681 s%@srcdir@%$srcdir%g
1682 s%@top_srcdir@%$top_srcdir%g
1683 s%@INSTALL@%$INSTALL%g
1684 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
1688 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1689 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1691 # ac_d sets the value in "#define NAME VALUE" lines.
1692 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1693 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
1696 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1697 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1698 ac_uB
='\([ ]\)%\1#\2define\3'
1701 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1702 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1703 ac_eB
='$%\1#\2define\3'
1707 if test "${CONFIG_HEADERS+set}" != set; then
1709 cat >> $CONFIG_STATUS <<EOF
1710 CONFIG_HEADERS="config.h:config.in"
1712 cat >> $CONFIG_STATUS <<\EOF
1714 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
1715 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1717 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
1718 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1719 *) ac_file_in
="${ac_file}.in" ;;
1722 echo creating
$ac_file
1724 rm -f conftest.frag conftest.
in conftest.out
1725 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1726 cat $ac_file_inputs > conftest.
in
1730 # Transform confdefs.h into a sed script conftest.vals that substitutes
1731 # the proper values into config.h.in to produce config.h. And first:
1732 # Protect against being on the right side of a sed subst in config.status.
1733 # Protect against being in an unquoted here document in config.status.
1735 cat > conftest.hdr
<<\EOF
1738 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1742 sed -n -f conftest.hdr confdefs.h > conftest.vals
1745 # This sed command replaces #undef with comments. This is necessary, for
1746 # example, in the case of _POSIX_SOURCE, which is predefined and required
1747 # on some systems where configure will not decide to define it.
1748 cat >> conftest.vals <<\EOF
1749 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1752 # Break up conftest.vals because some shells have a limit on
1753 # the size of here documents, and old seds have small limits too.
1758 ac_lines=`grep -c . conftest.vals
`
1759 # grep -c gives empty output for an empty file on some AIX systems.
1760 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1761 # Write a limited-size here document to conftest.frag.
1762 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1763 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1765 sed -f conftest.frag conftest.in > conftest.out
1767 mv conftest.out conftest.in
1769 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1771 mv conftest.tail conftest.vals
1775 cat >> $CONFIG_STATUS <<\EOF
1776 rm -f conftest.frag conftest.h
1777 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1778 cat conftest.in >> conftest.h
1780 if cmp -s $ac_file conftest.h 2>/dev/null; then
1781 echo "$ac_file is unchanged"
1784 # Remove last slash and all that follows it. Not all systems have dirname.
1785 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
1786 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1787 # The file is in a subdirectory.
1788 test ! -d "$ac_dir" && mkdir "$ac_dir"
1791 mv conftest.h $ac_file
1796 cat >> $CONFIG_STATUS <<EOF
1799 cat >> $CONFIG_STATUS <<\EOF
1800 case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac
1803 chmod +x $CONFIG_STATUS
1804 rm -fr confdefs* $ac_clean_files
1805 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1