45 sim_inline
="-DDEFAULT_INLINE=0"
82 # This file is derived from `gettext.m4'. The difference is that the
83 # included macros assume Cygnus-style source and build trees.
85 # Macro to add for using GNU gettext.
86 # Ulrich Drepper <drepper@cygnus.com>, 1995.
88 # This file file be copied and used freely without restrictions. It can
89 # be used in projects which are not available under the GNU Public License
90 # but which still want to provide support for the GNU gettext functionality.
91 # Please note that the actual code is *not* freely available.
99 # Search path for a program which passes the given test.
100 # Ulrich Drepper <drepper@cygnus.com>, 1996.
102 # This file file be copied and used freely without restrictions. It can
103 # be used in projects which are not available under the GNU Public License
104 # but which still want to provide support for the GNU gettext functionality.
105 # Please note that the actual code is *not* freely available.
111 # Check whether LC_MESSAGES is available in <locale.h>.
112 # Ulrich Drepper <drepper@cygnus.com>, 1995.
114 # This file file be copied and used freely without restrictions. It can
115 # be used in projects which are not available under the GNU Public License
116 # but which still want to provide support for the GNU gettext functionality.
117 # Please note that the actual code is *not* freely available.
126 # Guess values for system-dependent variables and create Makefiles.
127 # Generated automatically using autoconf version 2.13
128 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
130 # This configure script is free software; the Free Software Foundation
131 # gives unlimited permission to copy, distribute and modify it.
135 ac_default_prefix
=/usr
/local
136 # Any additions from configure.in:
138 --enable-build-warnings[=LIST] Enable build-time compiler warnings"
140 # Initialize some variables set by options.
141 # The variables have the same names as the options, with
142 # dashes changed to underlines.
144 cache_file
=.
/config.cache
153 program_transform_name
=s
,x
,x
,
161 bindir
='${exec_prefix}/bin'
162 sbindir
='${exec_prefix}/sbin'
163 libexecdir
='${exec_prefix}/libexec'
164 datadir
='${prefix}/share'
165 sysconfdir
='${prefix}/etc'
166 sharedstatedir
='${prefix}/com'
167 localstatedir
='${prefix}/var'
168 libdir
='${exec_prefix}/lib'
169 includedir
='${prefix}/include'
170 oldincludedir
='/usr/include'
171 infodir
='${prefix}/info'
172 mandir
='${prefix}/man'
174 # Initialize some other variables.
177 SHELL
=${CONFIG_SHELL-/bin/sh}
178 # Maximum number of lines to put in a shell here document.
185 # If the previous option needs an argument, assign it.
186 if test -n "$ac_prev"; then
187 eval "$ac_prev=\$ac_option"
193 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
197 # Accept the important Cygnus configure options, so we can diagnose typos.
201 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
203 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
204 bindir
="$ac_optarg" ;;
206 -build |
--build |
--buil |
--bui |
--bu)
208 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
209 build
="$ac_optarg" ;;
211 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
212 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
213 ac_prev
=cache_file
;;
214 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
215 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
216 cache_file
="$ac_optarg" ;;
218 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
220 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
222 datadir
="$ac_optarg" ;;
224 -disable-* |
--disable-*)
225 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
226 # Reject names that are not valid shell variable names.
227 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
228 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
230 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
231 eval "enable_${ac_feature}=no" ;;
233 -enable-* |
--enable-*)
234 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
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'`
244 eval "enable_${ac_feature}='$ac_optarg'" ;;
246 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
247 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
248 |
--exec |
--exe |
--ex)
249 ac_prev
=exec_prefix
;;
250 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
251 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
252 |
--exec=* |
--exe=* |
--ex=*)
253 exec_prefix
="$ac_optarg" ;;
255 -gas |
--gas |
--ga |
--g)
256 # Obsolete; use --with-gas.
259 -help |
--help |
--hel |
--he)
260 # Omit some internal or obsolete options to make the list less imposing.
261 # This message is too long to be a string in the A/UX 3.1 sh.
263 Usage: configure [options] [host]
264 Options: [defaults in brackets after descriptions]
266 --cache-file=FILE cache test results in FILE
267 --help print this message
268 --no-create do not create output files
269 --quiet, --silent do not print \`checking...' messages
270 --version print the version of autoconf that created configure
271 Directory and file names:
272 --prefix=PREFIX install architecture-independent files in PREFIX
274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
276 --bindir=DIR user executables in DIR [EPREFIX/bin]
277 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
278 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
279 --datadir=DIR read-only architecture-independent data in DIR
281 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
282 --sharedstatedir=DIR modifiable architecture-independent data in DIR
284 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
285 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
286 --includedir=DIR C header files in DIR [PREFIX/include]
287 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
288 --infodir=DIR info documentation in DIR [PREFIX/info]
289 --mandir=DIR man documentation in DIR [PREFIX/man]
290 --srcdir=DIR find the sources in DIR [configure dir or ..]
291 --program-prefix=PREFIX prepend PREFIX to installed program names
292 --program-suffix=SUFFIX append SUFFIX to installed program names
293 --program-transform-name=PROGRAM
294 run sed PROGRAM on installed program names
298 --build=BUILD configure for building on BUILD [BUILD=HOST]
299 --host=HOST configure for HOST [guessed]
300 --target=TARGET configure for TARGET [TARGET=HOST]
301 Features and packages:
302 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
303 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
304 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
305 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
306 --x-includes=DIR X include files are in DIR
307 --x-libraries=DIR X library files are in DIR
309 if test -n "$ac_help"; then
310 echo "--enable and --with options recognized:$ac_help"
314 -host |
--host |
--hos |
--ho)
316 -host=* |
--host=* |
--hos=* |
--ho=*)
319 -includedir |
--includedir |
--includedi |
--included |
--include \
320 |
--includ |
--inclu |
--incl |
--inc)
321 ac_prev
=includedir
;;
322 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
323 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
324 includedir
="$ac_optarg" ;;
326 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
328 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
329 infodir
="$ac_optarg" ;;
331 -libdir |
--libdir |
--libdi |
--libd)
333 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
334 libdir
="$ac_optarg" ;;
336 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
337 |
--libexe |
--libex |
--libe)
338 ac_prev
=libexecdir
;;
339 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
340 |
--libexe=* |
--libex=* |
--libe=*)
341 libexecdir
="$ac_optarg" ;;
343 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
344 |
--localstate |
--localstat |
--localsta |
--localst \
345 |
--locals |
--local |
--loca |
--loc |
--lo)
346 ac_prev
=localstatedir
;;
347 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
348 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
349 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
350 localstatedir
="$ac_optarg" ;;
352 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
354 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
355 mandir
="$ac_optarg" ;;
358 # Obsolete; use --without-fp.
361 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
365 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
366 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
369 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
370 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
371 |
--oldin |
--oldi |
--old |
--ol |
--o)
372 ac_prev
=oldincludedir
;;
373 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
374 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
375 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
376 oldincludedir
="$ac_optarg" ;;
378 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
380 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
381 prefix
="$ac_optarg" ;;
383 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
384 |
--program-pre |
--program-pr |
--program-p)
385 ac_prev
=program_prefix
;;
386 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
387 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
388 program_prefix
="$ac_optarg" ;;
390 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
391 |
--program-suf |
--program-su |
--program-s)
392 ac_prev
=program_suffix
;;
393 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
394 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
395 program_suffix
="$ac_optarg" ;;
397 -program-transform-name |
--program-transform-name \
398 |
--program-transform-nam |
--program-transform-na \
399 |
--program-transform-n |
--program-transform- \
400 |
--program-transform |
--program-transfor \
401 |
--program-transfo |
--program-transf \
402 |
--program-trans |
--program-tran \
403 |
--progr-tra |
--program-tr |
--program-t)
404 ac_prev
=program_transform_name
;;
405 -program-transform-name=* |
--program-transform-name=* \
406 |
--program-transform-nam=* |
--program-transform-na=* \
407 |
--program-transform-n=* |
--program-transform-=* \
408 |
--program-transform=* |
--program-transfor=* \
409 |
--program-transfo=* |
--program-transf=* \
410 |
--program-trans=* |
--program-tran=* \
411 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
412 program_transform_name
="$ac_optarg" ;;
414 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
415 |
-silent |
--silent |
--silen |
--sile |
--sil)
418 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
420 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
422 sbindir
="$ac_optarg" ;;
424 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
425 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
426 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
428 ac_prev
=sharedstatedir
;;
429 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
430 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
431 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
433 sharedstatedir
="$ac_optarg" ;;
435 -site |
--site |
--sit)
437 -site=* |
--site=* |
--sit=*)
440 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
442 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
443 srcdir
="$ac_optarg" ;;
445 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
446 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
447 ac_prev
=sysconfdir
;;
448 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
449 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
450 sysconfdir
="$ac_optarg" ;;
452 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
454 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
455 target
="$ac_optarg" ;;
457 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
460 -version |
--version |
--versio |
--versi |
--vers)
461 echo "configure generated by autoconf version 2.13"
465 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
466 # Reject names that are not valid shell variable names.
467 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
468 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
470 ac_package
=`echo $ac_package| sed 's/-/_/g'`
475 eval "with_${ac_package}='$ac_optarg'" ;;
477 -without-* |
--without-*)
478 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
479 # Reject names that are not valid shell variable names.
480 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
481 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
483 ac_package
=`echo $ac_package| sed 's/-/_/g'`
484 eval "with_${ac_package}=no" ;;
487 # Obsolete; use --with-x.
490 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
491 |
--x-incl |
--x-inc |
--x-in |
--x-i)
492 ac_prev
=x_includes
;;
493 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
494 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
495 x_includes
="$ac_optarg" ;;
497 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
498 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
499 ac_prev
=x_libraries
;;
500 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
501 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
502 x_libraries
="$ac_optarg" ;;
504 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
508 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
509 echo "configure: warning: $ac_option: invalid host type" 1>&2
511 if test "x$nonopt" != xNONE
; then
512 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
520 if test -n "$ac_prev"; then
521 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
524 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
526 # File descriptor usage:
529 # 2 errors and warnings
530 # 3 some systems may open it to /dev/tty
531 # 4 used on the Kubota Titan
532 # 6 checking for... messages and results
533 # 5 compiler messages saved in config.log
534 if test "$silent" = yes; then
542 This file contains any messages produced by compilers while
543 running configure, to aid debugging if configure makes a mistake.
546 # Strip out --no-create and --no-recursion so they do not pile up.
547 # Also quote any args containing shell metacharacters.
552 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
553 |
--no-cr |
--no-c) ;;
554 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
555 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
556 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
557 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
558 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
563 # Only set these to C if already set. These must not be set unconditionally
564 # because not all systems understand e.g. LANG=C (notably SCO).
565 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
566 # Non-C LC_CTYPE values break the ctype check.
567 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
568 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
569 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
570 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
572 # confdefs.h avoids OS command line length limits that DEFS can exceed.
573 rm -rf conftest
* confdefs.h
574 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
577 # A filename unique to this package, relative to the directory that
578 # configure is in, which we can look for to find out if srcdir is correct.
579 ac_unique_file
=table.h
581 # Find the source files, if location was not specified.
582 if test -z "$srcdir"; then
583 ac_srcdir_defaulted
=yes
584 # Try the directory containing this script, then its parent.
586 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
587 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
589 if test ! -r $srcdir/$ac_unique_file; then
593 ac_srcdir_defaulted
=no
595 if test ! -r $srcdir/$ac_unique_file; then
596 if test "$ac_srcdir_defaulted" = yes; then
597 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
599 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
602 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
604 # Prefer explicitly selected file to automatically selected ones.
605 if test -z "$CONFIG_SITE"; then
606 if test "x$prefix" != xNONE
; then
607 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
609 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
612 for ac_site_file
in $CONFIG_SITE; do
613 if test -r "$ac_site_file"; then
614 echo "loading site script $ac_site_file"
619 if test -r "$cache_file"; then
620 echo "loading cache $cache_file"
623 echo "creating cache $cache_file"
628 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
629 ac_cpp
='$CPP $CPPFLAGS'
630 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
631 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
632 cross_compiling
=$ac_cv_prog_cc_cross
636 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
637 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
638 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
645 ac_n
= ac_c
='\c' ac_t
=
651 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
652 if test -f $ac_dir/install-sh
; then
654 ac_install_sh
="$ac_aux_dir/install-sh -c"
656 elif test -f $ac_dir/install.sh
; then
658 ac_install_sh
="$ac_aux_dir/install.sh -c"
662 if test -z "$ac_aux_dir"; then
663 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
665 ac_config_guess
=$ac_aux_dir/config.guess
666 ac_config_sub
=$ac_aux_dir/config.sub
667 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
669 # Find a good install program. We prefer a C program (faster),
670 # so one script is as good as another. But avoid the broken or
671 # incompatible versions:
672 # SysV /etc/install, /usr/sbin/install
673 # SunOS /usr/etc/install
676 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
677 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
678 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
679 # ./install, which can be erroneously created by make from ./install.sh.
680 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
681 echo "configure:682: checking for a BSD compatible install" >&5
682 if test -z "$INSTALL"; then
683 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
684 echo $ac_n "(cached) $ac_c" 1>&6
686 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
687 for ac_dir
in $PATH; do
688 # Account for people who put trailing slashes in PATH elements.
690 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
692 # OSF1 and SCO ODT 3.0 have their own names for install.
693 # Don't use installbsd from OSF since it installs stuff as root
695 for ac_prog
in ginstall scoinst
install; do
696 if test -f $ac_dir/$ac_prog; then
697 if test $ac_prog = install &&
698 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
699 # AIX install. It has an incompatible calling convention.
702 ac_cv_path_install
="$ac_dir/$ac_prog -c"
713 if test "${ac_cv_path_install+set}" = set; then
714 INSTALL
="$ac_cv_path_install"
716 # As a last resort, use the slow shell script. We don't cache a
717 # path for INSTALL within a source directory, because that will
718 # break other packages using the cache if that directory is
719 # removed, or if the path is relative.
720 INSTALL
="$ac_install_sh"
723 echo "$ac_t""$INSTALL" 1>&6
725 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
726 # It thinks the first close brace ends the variable substitution.
727 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
729 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
731 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
733 # Extract the first word of "gcc", so it can be a program name with args.
734 set dummy gcc
; ac_word
=$2
735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
736 echo "configure:737: checking for $ac_word" >&5
737 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
738 echo $ac_n "(cached) $ac_c" 1>&6
740 if test -n "$CC"; then
741 ac_cv_prog_CC
="$CC" # Let the user override the test.
743 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
745 for ac_dir
in $ac_dummy; do
746 test -z "$ac_dir" && ac_dir
=.
747 if test -f $ac_dir/$ac_word; then
756 if test -n "$CC"; then
757 echo "$ac_t""$CC" 1>&6
759 echo "$ac_t""no" 1>&6
762 if test -z "$CC"; then
763 # Extract the first word of "cc", so it can be a program name with args.
764 set dummy cc
; ac_word
=$2
765 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
766 echo "configure:767: checking for $ac_word" >&5
767 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
768 echo $ac_n "(cached) $ac_c" 1>&6
770 if test -n "$CC"; then
771 ac_cv_prog_CC
="$CC" # Let the user override the test.
773 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
776 for ac_dir
in $ac_dummy; do
777 test -z "$ac_dir" && ac_dir
=.
778 if test -f $ac_dir/$ac_word; then
779 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
788 if test $ac_prog_rejected = yes; then
789 # We found a bogon in the path, so make sure we never use it.
790 set dummy
$ac_cv_prog_CC
792 if test $# -gt 0; then
793 # We chose a different compiler from the bogus one.
794 # However, it has the same basename, so the bogon will be chosen
795 # first if we set CC to just the basename; use the full file name.
797 set dummy
"$ac_dir/$ac_word" "$@"
805 if test -n "$CC"; then
806 echo "$ac_t""$CC" 1>&6
808 echo "$ac_t""no" 1>&6
811 if test -z "$CC"; then
814 # Extract the first word of "cl", so it can be a program name with args.
815 set dummy cl
; ac_word
=$2
816 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
817 echo "configure:818: checking for $ac_word" >&5
818 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
819 echo $ac_n "(cached) $ac_c" 1>&6
821 if test -n "$CC"; then
822 ac_cv_prog_CC
="$CC" # Let the user override the test.
824 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
826 for ac_dir
in $ac_dummy; do
827 test -z "$ac_dir" && ac_dir
=.
828 if test -f $ac_dir/$ac_word; then
837 if test -n "$CC"; then
838 echo "$ac_t""$CC" 1>&6
840 echo "$ac_t""no" 1>&6
845 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
848 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
849 echo "configure:850: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
852 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
853 ac_cpp
='$CPP $CPPFLAGS'
854 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
855 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
856 cross_compiling
=$ac_cv_prog_cc_cross
858 cat > conftest.
$ac_ext << EOF
860 #line 861 "configure"
861 #include "confdefs.h"
865 if { (eval echo configure
:866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
866 ac_cv_prog_cc_works
=yes
867 # If we can't run a trivial program, we are probably using a cross compiler.
868 if (.
/conftest
; exit) 2>/dev
/null
; then
869 ac_cv_prog_cc_cross
=no
871 ac_cv_prog_cc_cross
=yes
874 echo "configure: failed program was:" >&5
875 cat conftest.
$ac_ext >&5
876 ac_cv_prog_cc_works
=no
880 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
881 ac_cpp
='$CPP $CPPFLAGS'
882 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
883 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
884 cross_compiling
=$ac_cv_prog_cc_cross
886 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
887 if test $ac_cv_prog_cc_works = no
; then
888 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
890 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
891 echo "configure:892: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
892 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
893 cross_compiling
=$ac_cv_prog_cc_cross
895 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
896 echo "configure:897: checking whether we are using GNU C" >&5
897 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
898 echo $ac_n "(cached) $ac_c" 1>&6
900 cat > conftest.c
<<EOF
905 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
912 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
914 if test $ac_cv_prog_gcc = yes; then
920 ac_test_CFLAGS
="${CFLAGS+set}"
921 ac_save_CFLAGS
="$CFLAGS"
923 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
924 echo "configure:925: checking whether ${CC-cc} accepts -g" >&5
925 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
926 echo $ac_n "(cached) $ac_c" 1>&6
928 echo 'void f(){}' > conftest.c
929 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
938 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
939 if test "$ac_test_CFLAGS" = set; then
940 CFLAGS
="$ac_save_CFLAGS"
941 elif test $ac_cv_prog_cc_g = yes; then
942 if test "$GCC" = yes; then
948 if test "$GCC" = yes; then
957 # Check whether --enable-build-warnings or --disable-build-warnings was given.
958 if test "${enable_build_warnings+set}" = set; then
959 enableval
="$enable_build_warnings"
960 build_warnings
="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
961 case "${enableval}" in
963 no
) build_warnings
="-w";;
964 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
965 build_warnings
="${build_warnings} ${t}";;
966 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
967 build_warnings
="${t} ${build_warnings}";;
968 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
970 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
971 echo "Setting warning flags = $build_warnings" 6>&1
975 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
977 # Separate out the -Werror flag as some files just cannot be
978 # compiled with it enabled.
979 for w
in ${build_warnings}; do
981 -Werr*) WERROR_CFLAGS
=-Werror ;;
982 *) WARN_CFLAGS
="${WARN_CFLAGS} $w"
991 # Put a plausible default for CC_FOR_BUILD in Makefile.
992 if test "x$cross_compiling" = "xno" -a "x$host" != "xi386-windows"; then
994 AR_FLAGS_FOR_BUILD
='$(AR_FLAGS)'
996 CFLAGS_FOR_BUILD
='$(CFLAGS)'
997 RANLIB_FOR_BUILD
='$(RANLIB)'
998 LIBIBERTY_LIB
=..
/..
/libiberty
/libiberty.a
1000 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
1001 AR_FLAGS_FOR_BUILD
=${AR_FLAGS_FOR_BUILD-rc}
1002 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
1003 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-"-g"}
1004 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
1010 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
1011 if test -f $ac_dir/install-sh
; then
1013 ac_install_sh
="$ac_aux_dir/install-sh -c"
1015 elif test -f $ac_dir/install.sh
; then
1017 ac_install_sh
="$ac_aux_dir/install.sh -c"
1021 if test -z "$ac_aux_dir"; then
1022 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1024 ac_config_guess
=$ac_aux_dir/config.guess
1025 ac_config_sub
=$ac_aux_dir/config.sub
1026 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1029 # Do some error checking and defaulting for the host and target type.
1031 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1034 # 1. You are not allowed to specify --host, --target, and nonopt at the
1036 # 2. Host defaults to nonopt.
1037 # 3. If nonopt is not specified, then host defaults to the current host,
1038 # as determined by config.guess.
1039 # 4. Target and build default to nonopt.
1040 # 5. If nonopt is not specified, then target and build default to host.
1042 # The aliases save the names the user supplied, while $host etc.
1043 # will get canonicalized.
1044 case $host---$target---$nonopt in
1045 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1046 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1050 # Make sure we can run config.sub.
1051 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1052 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1055 echo $ac_n "checking host system type""... $ac_c" 1>&6
1056 echo "configure:1057: checking host system type" >&5
1059 case "$host_alias" in
1063 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1064 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1066 *) host_alias
=$nonopt ;;
1070 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1071 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1072 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1073 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1074 echo "$ac_t""$host" 1>&6
1076 echo $ac_n "checking target system type""... $ac_c" 1>&6
1077 echo "configure:1078: checking target system type" >&5
1079 target_alias
=$target
1080 case "$target_alias" in
1083 NONE
) target_alias
=$host_alias ;;
1084 *) target_alias
=$nonopt ;;
1088 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1089 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1090 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1091 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1092 echo "$ac_t""$target" 1>&6
1094 echo $ac_n "checking build system type""... $ac_c" 1>&6
1095 echo "configure:1096: checking build system type" >&5
1098 case "$build_alias" in
1101 NONE
) build_alias
=$host_alias ;;
1102 *) build_alias
=$nonopt ;;
1106 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1107 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1108 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1109 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1110 echo "$ac_t""$build" 1>&6
1112 test "$host_alias" != "$target_alias" &&
1113 test "$program_prefix$program_suffix$program_transform_name" = \
1115 program_prefix
=${target_alias}-
1117 if test "$program_transform_name" = s
,x
,x
,; then
1118 program_transform_name
=
1120 # Double any \ or $. echo might interpret backslashes.
1121 cat <<\EOF_SED
> conftestsed
1122 s
,\\,\\\\,g
; s
,\$
,$$
,g
1124 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1127 test "$program_prefix" != NONE
&&
1128 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1129 # Use a double $ so make ignores it.
1130 test "$program_suffix" != NONE
&&
1131 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1133 # sed with no file args requires a program.
1134 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1137 .
${srcdir}/..
/..
/bfd
/configure.
host
1141 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1142 echo "configure:1143: checking how to run the C preprocessor" >&5
1143 # On Suns, sometimes $CPP names a directory.
1144 if test -n "$CPP" && test -d "$CPP"; then
1147 if test -z "$CPP"; then
1148 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1151 # This must be in double quotes, not single quotes, because CPP may get
1152 # substituted into the Makefile and "${CC-cc}" will confuse make.
1154 # On the NeXT, cc -E runs the code through the compiler's parser,
1155 # not just through 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} -E -traditional-cpp"
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
1189 CPP
="${CC-cc} -nologo -E"
1190 cat > conftest.
$ac_ext <<EOF
1191 #line 1192 "configure"
1192 #include "confdefs.h"
1196 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1197 { (eval echo configure
:1198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1198 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1199 if test -z "$ac_err"; then
1203 echo "configure: failed program was:" >&5
1204 cat conftest.
$ac_ext >&5
1213 ac_cv_prog_CPP
="$CPP"
1215 CPP
="$ac_cv_prog_CPP"
1217 ac_cv_prog_CPP
="$CPP"
1219 echo "$ac_t""$CPP" 1>&6
1221 for ac_hdr
in stdlib.h string.h
strings.h sys
/stat.h sys
/types.h unistd.h
1223 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1224 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1225 echo "configure:1226: checking for $ac_hdr" >&5
1226 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1229 cat > conftest.
$ac_ext <<EOF
1230 #line 1231 "configure"
1231 #include "confdefs.h"
1234 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1235 { (eval echo configure
:1236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1236 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1237 if test -z "$ac_err"; then
1239 eval "ac_cv_header_$ac_safe=yes"
1242 echo "configure: failed program was:" >&5
1243 cat conftest.
$ac_ext >&5
1245 eval "ac_cv_header_$ac_safe=no"
1249 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1250 echo "$ac_t""yes" 1>&6
1251 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1252 cat >> confdefs.h
<<EOF
1253 #define $ac_tr_hdr 1
1257 echo "$ac_t""no" 1>&6
1262 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1264 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1265 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1266 echo "configure:1267: checking for $ac_hdr that defines DIR" >&5
1267 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1268 echo $ac_n "(cached) $ac_c" 1>&6
1270 cat > conftest.
$ac_ext <<EOF
1271 #line 1272 "configure"
1272 #include "confdefs.h"
1273 #include <sys/types.h>
1279 if { (eval echo configure
:1280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1281 eval "ac_cv_header_dirent_$ac_safe=yes"
1283 echo "configure: failed program was:" >&5
1284 cat conftest.
$ac_ext >&5
1286 eval "ac_cv_header_dirent_$ac_safe=no"
1290 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1291 echo "$ac_t""yes" 1>&6
1292 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1293 cat >> confdefs.h
<<EOF
1294 #define $ac_tr_hdr 1
1296 ac_header_dirent
=$ac_hdr; break
1298 echo "$ac_t""no" 1>&6
1301 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1302 if test $ac_header_dirent = dirent.h
; then
1303 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1304 echo "configure:1305: checking for opendir in -ldir" >&5
1305 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1307 echo $ac_n "(cached) $ac_c" 1>&6
1309 ac_save_LIBS
="$LIBS"
1311 cat > conftest.
$ac_ext <<EOF
1312 #line 1313 "configure"
1313 #include "confdefs.h"
1314 /* Override any gcc2 internal prototype to avoid an error. */
1315 /* We use char because int might match the return type of a gcc2
1316 builtin and then its argument prototype would still apply. */
1323 if { (eval echo configure
:1324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1325 eval "ac_cv_lib_$ac_lib_var=yes"
1327 echo "configure: failed program was:" >&5
1328 cat conftest.
$ac_ext >&5
1330 eval "ac_cv_lib_$ac_lib_var=no"
1333 LIBS
="$ac_save_LIBS"
1336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1337 echo "$ac_t""yes" 1>&6
1340 echo "$ac_t""no" 1>&6
1344 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1345 echo "configure:1346: checking for opendir in -lx" >&5
1346 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1347 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1348 echo $ac_n "(cached) $ac_c" 1>&6
1350 ac_save_LIBS
="$LIBS"
1352 cat > conftest.
$ac_ext <<EOF
1353 #line 1354 "configure"
1354 #include "confdefs.h"
1355 /* Override any gcc2 internal prototype to avoid an error. */
1356 /* We use char because int might match the return type of a gcc2
1357 builtin and then its argument prototype would still apply. */
1364 if { (eval echo configure
:1365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1366 eval "ac_cv_lib_$ac_lib_var=yes"
1368 echo "configure: failed program was:" >&5
1369 cat conftest.
$ac_ext >&5
1371 eval "ac_cv_lib_$ac_lib_var=no"
1374 LIBS
="$ac_save_LIBS"
1377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1378 echo "$ac_t""yes" 1>&6
1381 echo "$ac_t""no" 1>&6
1396 # Extract the first word of "ranlib", so it can be a program name with args.
1397 set dummy ranlib
; ac_word
=$2
1398 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1399 echo "configure:1400: checking for $ac_word" >&5
1400 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1403 if test -n "$RANLIB"; then
1404 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1406 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1408 for ac_dir
in $ac_dummy; do
1409 test -z "$ac_dir" && ac_dir
=.
1410 if test -f $ac_dir/$ac_word; then
1411 ac_cv_prog_RANLIB
="ranlib"
1416 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1419 RANLIB
="$ac_cv_prog_RANLIB"
1420 if test -n "$RANLIB"; then
1421 echo "$ac_t""$RANLIB" 1>&6
1423 echo "$ac_t""no" 1>&6
1428 cat > confcache
<<\EOF
1429 # This file is a shell script that caches the results of configure
1430 # tests run on this system so they can be shared between configure
1431 # scripts and configure runs. It is not useful on other systems.
1432 # If it contains results you don't want to keep, you may remove or edit it.
1434 # By default, configure uses ./config.cache as the cache file,
1435 # creating it if it does not exist already. You can give configure
1436 # the --cache-file=FILE option to use a different cache file; that is
1437 # what configure does when it calls configure scripts in
1438 # subdirectories, so they share the cache.
1439 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1440 # config.status only pays attention to the cache file if you give it the
1441 # --recheck option to rerun configure.
1444 # The following way of writing the cache mishandles newlines in values,
1445 # but we know of no workaround that is simple, portable, and efficient.
1446 # So, don't put newlines in cache variables' values.
1447 # Ultrix sh set writes to stderr and can't be redirected directly,
1448 # and sets the high bit in the cache file unless we assign to the vars.
1450 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1452 # `set' does not quote correctly, so add quotes (double-quote substitution
1453 # turns \\\\ into \\, and sed turns \\ into \).
1455 -e "s/'/'\\\\''/g" \
1456 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1459 # `set' quotes correctly as required by POSIX, so do not add quotes.
1460 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1463 if cmp -s $cache_file confcache
; then
1466 if test -w $cache_file; then
1467 echo "updating cache $cache_file"
1468 cat confcache
> $cache_file
1470 echo "not updating unwritable cache $cache_file"
1475 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1477 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1478 # Let make expand exec_prefix.
1479 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1481 # Any assignment to VPATH causes Sun make to only execute
1482 # the first set of double-colon rules, so remove it if not needed.
1483 # If there is a colon in the path, we need to keep it.
1484 if test "x$srcdir" = x.
; then
1485 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1488 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1490 DEFS
=-DHAVE_CONFIG_H
1492 # Without the "./", some shells look in PATH for config.status.
1493 : ${CONFIG_STATUS=./config.status}
1495 echo creating
$CONFIG_STATUS
1496 rm -f $CONFIG_STATUS
1497 cat > $CONFIG_STATUS <<EOF
1499 # Generated automatically by configure.
1500 # Run this file to recreate the current configuration.
1501 # This directory was configured as follows,
1502 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1504 # $0 $ac_configure_args
1506 # Compiler output produced by configure, useful for debugging
1507 # configure, is in ./config.log if it exists.
1509 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1512 case "\$ac_option" in
1513 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1514 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1515 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1516 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1517 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1519 -help | --help | --hel | --he | --h)
1520 echo "\$ac_cs_usage"; exit 0 ;;
1521 *) echo "\$ac_cs_usage"; exit 1 ;;
1525 ac_given_srcdir=$srcdir
1526 ac_given_INSTALL="$INSTALL"
1528 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1530 cat >> $CONFIG_STATUS <<EOF
1532 # Protect against being on the right side of a sed subst in config.status.
1533 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1534 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1537 s%@sim_environment@%$sim_environment%g
1538 s%@sim_alignment@%$sim_alignment%g
1539 s%@sim_assert@%$sim_assert%g
1540 s%@sim_bitsize@%$sim_bitsize%g
1541 s%@sim_endian@%$sim_endian%g
1542 s%@sim_hostendian@%$sim_hostendian%g
1543 s%@sim_float@%$sim_float%g
1544 s%@sim_scache@%$sim_scache%g
1545 s%@sim_default_model@%$sim_default_model%g
1546 s%@sim_hw_cflags@%$sim_hw_cflags%g
1547 s%@sim_hw_objs@%$sim_hw_objs%g
1548 s%@sim_hw@%$sim_hw%g
1549 s%@sim_inline@%$sim_inline%g
1550 s%@sim_packages@%$sim_packages%g
1551 s%@sim_regparm@%$sim_regparm%g
1552 s%@sim_reserved_bits@%$sim_reserved_bits%g
1553 s%@sim_smp@%$sim_smp%g
1554 s%@sim_stdcall@%$sim_stdcall%g
1555 s%@sim_xor_endian@%$sim_xor_endian%g
1556 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
1557 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
1559 s%@CFLAGS@%$CFLAGS%g
1560 s%@CPPFLAGS@%$CPPFLAGS%g
1561 s%@CXXFLAGS@%$CXXFLAGS%g
1562 s%@FFLAGS@%$FFLAGS%g
1564 s%@LDFLAGS@%$LDFLAGS%g
1566 s%@exec_prefix@%$exec_prefix%g
1567 s%@prefix@%$prefix%g
1568 s%@program_transform_name@%$program_transform_name%g
1569 s%@bindir@%$bindir%g
1570 s%@sbindir@%$sbindir%g
1571 s%@libexecdir@%$libexecdir%g
1572 s%@datadir@%$datadir%g
1573 s%@sysconfdir@%$sysconfdir%g
1574 s%@sharedstatedir@%$sharedstatedir%g
1575 s%@localstatedir@%$localstatedir%g
1576 s%@libdir@%$libdir%g
1577 s%@includedir@%$includedir%g
1578 s%@oldincludedir@%$oldincludedir%g
1579 s%@infodir@%$infodir%g
1580 s%@mandir@%$mandir%g
1581 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1582 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1583 s%@INSTALL_DATA@%$INSTALL_DATA%g
1586 s%@host_alias@%$host_alias%g
1587 s%@host_cpu@%$host_cpu%g
1588 s%@host_vendor@%$host_vendor%g
1589 s%@host_os@%$host_os%g
1590 s%@target@%$target%g
1591 s%@target_alias@%$target_alias%g
1592 s%@target_cpu@%$target_cpu%g
1593 s%@target_vendor@%$target_vendor%g
1594 s%@target_os@%$target_os%g
1596 s%@build_alias@%$build_alias%g
1597 s%@build_cpu@%$build_cpu%g
1598 s%@build_vendor@%$build_vendor%g
1599 s%@build_os@%$build_os%g
1601 s%@AR_FOR_BUILD@%$AR_FOR_BUILD%g
1602 s%@AR_FLAGS_FOR_BUILD@%$AR_FLAGS_FOR_BUILD%g
1603 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
1604 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
1605 s%@RANLIB_FOR_BUILD@%$RANLIB_FOR_BUILD%g
1606 s%@LIBIBERTY_LIB@%$LIBIBERTY_LIB%g
1608 s%@RANLIB@%$RANLIB%g
1613 cat >> $CONFIG_STATUS <<\EOF
1615 # Split the substitutions into bite-sized pieces for seds with
1616 # small command number limits, like on Digital OSF/1 and HP-UX.
1617 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
1618 ac_file
=1 # Number of current file.
1619 ac_beg
=1 # First line for current file.
1620 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
1623 while $ac_more_lines; do
1624 if test $ac_beg -gt 1; then
1625 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
1627 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
1629 if test ! -s conftest.s
$ac_file; then
1631 rm -f conftest.s
$ac_file
1633 if test -z "$ac_sed_cmds"; then
1634 ac_sed_cmds
="sed -f conftest.s$ac_file"
1636 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
1638 ac_file
=`expr $ac_file + 1`
1640 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
1643 if test -z "$ac_sed_cmds"; then
1648 cat >> $CONFIG_STATUS <<EOF
1650 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1652 cat >> $CONFIG_STATUS <<\EOF
1653 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
1654 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1656 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
1657 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1658 *) ac_file_in
="${ac_file}.in" ;;
1661 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1663 # Remove last slash and all that follows it. Not all systems have dirname.
1664 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1665 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
1666 # The file is in a subdirectory.
1667 test ! -d "$ac_dir" && mkdir
"$ac_dir"
1668 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
1669 # A "../" for each directory in $ac_dir_suffix.
1670 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1672 ac_dir_suffix
= ac_dots
=
1675 case "$ac_given_srcdir" in
1677 if test -z "$ac_dots"; then top_srcdir
=.
1678 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1679 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
1681 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1682 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
1685 case "$ac_given_INSTALL" in
1686 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
1687 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
1690 echo creating
"$ac_file"
1692 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1694 *Makefile
*) ac_comsub
="1i\\
1695 # $configure_input" ;;
1699 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1701 s%@configure_input@%$configure_input%g
1702 s%@srcdir@%$srcdir%g
1703 s%@top_srcdir@%$top_srcdir%g
1704 s%@INSTALL@%$INSTALL%g
1705 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
1709 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1710 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1712 # ac_d sets the value in "#define NAME VALUE" lines.
1713 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1714 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
1717 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1718 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1719 ac_uB
='\([ ]\)%\1#\2define\3'
1722 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1723 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1724 ac_eB
='$%\1#\2define\3'
1728 if test "${CONFIG_HEADERS+set}" != set; then
1730 cat >> $CONFIG_STATUS <<EOF
1731 CONFIG_HEADERS="config.h:config.in"
1733 cat >> $CONFIG_STATUS <<\EOF
1735 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
1736 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1738 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
1739 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1740 *) ac_file_in
="${ac_file}.in" ;;
1743 echo creating
$ac_file
1745 rm -f conftest.frag conftest.
in conftest.out
1746 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1747 cat $ac_file_inputs > conftest.
in
1751 # Transform confdefs.h into a sed script conftest.vals that substitutes
1752 # the proper values into config.h.in to produce config.h. And first:
1753 # Protect against being on the right side of a sed subst in config.status.
1754 # Protect against being in an unquoted here document in config.status.
1756 cat > conftest.hdr
<<\EOF
1759 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1763 sed -n -f conftest.hdr confdefs.h > conftest.vals
1766 # This sed command replaces #undef with comments. This is necessary, for
1767 # example, in the case of _POSIX_SOURCE, which is predefined and required
1768 # on some systems where configure will not decide to define it.
1769 cat >> conftest.vals <<\EOF
1770 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1773 # Break up conftest.vals because some shells have a limit on
1774 # the size of here documents, and old seds have small limits too.
1779 ac_lines=`grep -c . conftest.vals
`
1780 # grep -c gives empty output for an empty file on some AIX systems.
1781 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1782 # Write a limited-size here document to conftest.frag.
1783 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1784 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1786 sed -f conftest.frag conftest.in > conftest.out
1788 mv conftest.out conftest.in
1790 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1792 mv conftest.tail conftest.vals
1796 cat >> $CONFIG_STATUS <<\EOF
1797 rm -f conftest.frag conftest.h
1798 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1799 cat conftest.in >> conftest.h
1801 if cmp -s $ac_file conftest.h 2>/dev/null; then
1802 echo "$ac_file is unchanged"
1805 # Remove last slash and all that follows it. Not all systems have dirname.
1806 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
1807 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1808 # The file is in a subdirectory.
1809 test ! -d "$ac_dir" && mkdir "$ac_dir"
1812 mv conftest.h $ac_file
1817 cat >> $CONFIG_STATUS <<EOF
1820 cat >> $CONFIG_STATUS <<\EOF
1821 case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac
1824 chmod +x $CONFIG_STATUS
1825 rm -fr confdefs* $ac_clean_files
1826 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
This page took 0.070562 seconds and 4 git commands to generate.