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.
125 # Guess values for system-dependent variables and create Makefiles.
126 # Generated automatically using autoconf version 2.13
127 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
129 # This configure script is free software; the Free Software Foundation
130 # gives unlimited permission to copy, distribute and modify it.
134 ac_default_prefix
=/usr
/local
135 # Any additions from configure.in:
137 --enable-build-warnings[=LIST] Enable build-time compiler warnings"
139 # Initialize some variables set by options.
140 # The variables have the same names as the options, with
141 # dashes changed to underlines.
143 cache_file
=.
/config.cache
152 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 --site-file=FILE use FILE as the site file
271 --version print the version of autoconf that created configure
272 Directory and file names:
273 --prefix=PREFIX install architecture-independent files in PREFIX
275 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
277 --bindir=DIR user executables in DIR [EPREFIX/bin]
278 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
279 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
280 --datadir=DIR read-only architecture-independent data in DIR
282 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
283 --sharedstatedir=DIR modifiable architecture-independent data in DIR
285 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
286 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
287 --includedir=DIR C header files in DIR [PREFIX/include]
288 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
289 --infodir=DIR info documentation in DIR [PREFIX/info]
290 --mandir=DIR man documentation in DIR [PREFIX/man]
291 --srcdir=DIR find the sources in DIR [configure dir or ..]
292 --program-prefix=PREFIX prepend PREFIX to installed program names
293 --program-suffix=SUFFIX append SUFFIX to installed program names
294 --program-transform-name=PROGRAM
295 run sed PROGRAM on installed program names
299 --build=BUILD configure for building on BUILD [BUILD=HOST]
300 --host=HOST configure for HOST [guessed]
301 --target=TARGET configure for TARGET [TARGET=HOST]
302 Features and packages:
303 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
304 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
305 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
306 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
307 --x-includes=DIR X include files are in DIR
308 --x-libraries=DIR X library files are in DIR
310 if test -n "$ac_help"; then
311 echo "--enable and --with options recognized:$ac_help"
315 -host |
--host |
--hos |
--ho)
317 -host=* |
--host=* |
--hos=* |
--ho=*)
320 -includedir |
--includedir |
--includedi |
--included |
--include \
321 |
--includ |
--inclu |
--incl |
--inc)
322 ac_prev
=includedir
;;
323 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
324 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
325 includedir
="$ac_optarg" ;;
327 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
329 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
330 infodir
="$ac_optarg" ;;
332 -libdir |
--libdir |
--libdi |
--libd)
334 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
335 libdir
="$ac_optarg" ;;
337 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
338 |
--libexe |
--libex |
--libe)
339 ac_prev
=libexecdir
;;
340 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
341 |
--libexe=* |
--libex=* |
--libe=*)
342 libexecdir
="$ac_optarg" ;;
344 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
345 |
--localstate |
--localstat |
--localsta |
--localst \
346 |
--locals |
--local |
--loca |
--loc |
--lo)
347 ac_prev
=localstatedir
;;
348 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
349 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
350 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
351 localstatedir
="$ac_optarg" ;;
353 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
355 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
356 mandir
="$ac_optarg" ;;
359 # Obsolete; use --without-fp.
362 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
366 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
367 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
370 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
371 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
372 |
--oldin |
--oldi |
--old |
--ol |
--o)
373 ac_prev
=oldincludedir
;;
374 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
375 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
376 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
377 oldincludedir
="$ac_optarg" ;;
379 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
381 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
382 prefix
="$ac_optarg" ;;
384 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
385 |
--program-pre |
--program-pr |
--program-p)
386 ac_prev
=program_prefix
;;
387 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
388 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
389 program_prefix
="$ac_optarg" ;;
391 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
392 |
--program-suf |
--program-su |
--program-s)
393 ac_prev
=program_suffix
;;
394 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
395 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
396 program_suffix
="$ac_optarg" ;;
398 -program-transform-name |
--program-transform-name \
399 |
--program-transform-nam |
--program-transform-na \
400 |
--program-transform-n |
--program-transform- \
401 |
--program-transform |
--program-transfor \
402 |
--program-transfo |
--program-transf \
403 |
--program-trans |
--program-tran \
404 |
--progr-tra |
--program-tr |
--program-t)
405 ac_prev
=program_transform_name
;;
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 program_transform_name
="$ac_optarg" ;;
415 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
416 |
-silent |
--silent |
--silen |
--sile |
--sil)
419 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
421 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
423 sbindir
="$ac_optarg" ;;
425 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
426 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
427 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
429 ac_prev
=sharedstatedir
;;
430 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
431 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
432 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
434 sharedstatedir
="$ac_optarg" ;;
436 -site |
--site |
--sit)
438 -site=* |
--site=* |
--sit=*)
441 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
443 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
444 sitefile
="$ac_optarg" ;;
446 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
448 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
449 srcdir
="$ac_optarg" ;;
451 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
452 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
453 ac_prev
=sysconfdir
;;
454 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
455 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
456 sysconfdir
="$ac_optarg" ;;
458 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
460 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
461 target
="$ac_optarg" ;;
463 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
466 -version |
--version |
--versio |
--versi |
--vers)
467 echo "configure generated by autoconf version 2.13"
471 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
472 # Reject names that are not valid shell variable names.
473 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
474 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
476 ac_package
=`echo $ac_package| sed 's/-/_/g'`
481 eval "with_${ac_package}='$ac_optarg'" ;;
483 -without-* |
--without-*)
484 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
485 # Reject names that are not valid shell variable names.
486 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
487 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
489 ac_package
=`echo $ac_package| sed 's/-/_/g'`
490 eval "with_${ac_package}=no" ;;
493 # Obsolete; use --with-x.
496 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
497 |
--x-incl |
--x-inc |
--x-in |
--x-i)
498 ac_prev
=x_includes
;;
499 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
500 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
501 x_includes
="$ac_optarg" ;;
503 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
504 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
505 ac_prev
=x_libraries
;;
506 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
507 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
508 x_libraries
="$ac_optarg" ;;
510 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
514 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
515 echo "configure: warning: $ac_option: invalid host type" 1>&2
517 if test "x$nonopt" != xNONE
; then
518 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
526 if test -n "$ac_prev"; then
527 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
530 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
532 # File descriptor usage:
535 # 2 errors and warnings
536 # 3 some systems may open it to /dev/tty
537 # 4 used on the Kubota Titan
538 # 6 checking for... messages and results
539 # 5 compiler messages saved in config.log
540 if test "$silent" = yes; then
548 This file contains any messages produced by compilers while
549 running configure, to aid debugging if configure makes a mistake.
552 # Strip out --no-create and --no-recursion so they do not pile up.
553 # Also quote any args containing shell metacharacters.
558 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
559 |
--no-cr |
--no-c) ;;
560 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
561 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
562 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
563 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
564 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
569 # Only set these to C if already set. These must not be set unconditionally
570 # because not all systems understand e.g. LANG=C (notably SCO).
571 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
572 # Non-C LC_CTYPE values break the ctype check.
573 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
574 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
575 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
576 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
578 # confdefs.h avoids OS command line length limits that DEFS can exceed.
579 rm -rf conftest
* confdefs.h
580 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
583 # A filename unique to this package, relative to the directory that
584 # configure is in, which we can look for to find out if srcdir is correct.
585 ac_unique_file
=table.h
587 # Find the source files, if location was not specified.
588 if test -z "$srcdir"; then
589 ac_srcdir_defaulted
=yes
590 # Try the directory containing this script, then its parent.
592 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
593 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
595 if test ! -r $srcdir/$ac_unique_file; then
599 ac_srcdir_defaulted
=no
601 if test ! -r $srcdir/$ac_unique_file; then
602 if test "$ac_srcdir_defaulted" = yes; then
603 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
605 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
608 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
610 # Prefer explicitly selected file to automatically selected ones.
611 if test -z "$sitefile"; then
612 if test -z "$CONFIG_SITE"; then
613 if test "x$prefix" != xNONE
; then
614 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
616 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
620 CONFIG_SITE
="$sitefile"
622 for ac_site_file
in $CONFIG_SITE; do
623 if test -r "$ac_site_file"; then
624 echo "loading site script $ac_site_file"
629 if test -r "$cache_file"; then
630 echo "loading cache $cache_file"
633 echo "creating cache $cache_file"
638 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
639 ac_cpp
='$CPP $CPPFLAGS'
640 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
641 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
642 cross_compiling
=$ac_cv_prog_cc_cross
646 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
647 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
648 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
655 ac_n
= ac_c
='\c' ac_t
=
661 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
662 if test -f $ac_dir/install-sh
; then
664 ac_install_sh
="$ac_aux_dir/install-sh -c"
666 elif test -f $ac_dir/install.sh
; then
668 ac_install_sh
="$ac_aux_dir/install.sh -c"
672 if test -z "$ac_aux_dir"; then
673 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
675 ac_config_guess
=$ac_aux_dir/config.guess
676 ac_config_sub
=$ac_aux_dir/config.sub
677 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
679 # Find a good install program. We prefer a C program (faster),
680 # so one script is as good as another. But avoid the broken or
681 # incompatible versions:
682 # SysV /etc/install, /usr/sbin/install
683 # SunOS /usr/etc/install
686 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
687 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
688 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
689 # ./install, which can be erroneously created by make from ./install.sh.
690 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
691 echo "configure:692: checking for a BSD compatible install" >&5
692 if test -z "$INSTALL"; then
693 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
694 echo $ac_n "(cached) $ac_c" 1>&6
696 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
697 for ac_dir
in $PATH; do
698 # Account for people who put trailing slashes in PATH elements.
700 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
702 # OSF1 and SCO ODT 3.0 have their own names for install.
703 # Don't use installbsd from OSF since it installs stuff as root
705 for ac_prog
in ginstall scoinst
install; do
706 if test -f $ac_dir/$ac_prog; then
707 if test $ac_prog = install &&
708 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
709 # AIX install. It has an incompatible calling convention.
712 ac_cv_path_install
="$ac_dir/$ac_prog -c"
723 if test "${ac_cv_path_install+set}" = set; then
724 INSTALL
="$ac_cv_path_install"
726 # As a last resort, use the slow shell script. We don't cache a
727 # path for INSTALL within a source directory, because that will
728 # break other packages using the cache if that directory is
729 # removed, or if the path is relative.
730 INSTALL
="$ac_install_sh"
733 echo "$ac_t""$INSTALL" 1>&6
735 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
736 # It thinks the first close brace ends the variable substitution.
737 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
739 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
741 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
743 # Extract the first word of "gcc", so it can be a program name with args.
744 set dummy gcc
; ac_word
=$2
745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
746 echo "configure:747: checking for $ac_word" >&5
747 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
748 echo $ac_n "(cached) $ac_c" 1>&6
750 if test -n "$CC"; then
751 ac_cv_prog_CC
="$CC" # Let the user override the test.
753 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
755 for ac_dir
in $ac_dummy; do
756 test -z "$ac_dir" && ac_dir
=.
757 if test -f $ac_dir/$ac_word; then
766 if test -n "$CC"; then
767 echo "$ac_t""$CC" 1>&6
769 echo "$ac_t""no" 1>&6
772 if test -z "$CC"; then
773 # Extract the first word of "cc", so it can be a program name with args.
774 set dummy cc
; ac_word
=$2
775 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
776 echo "configure:777: checking for $ac_word" >&5
777 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
778 echo $ac_n "(cached) $ac_c" 1>&6
780 if test -n "$CC"; then
781 ac_cv_prog_CC
="$CC" # Let the user override the test.
783 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
786 for ac_dir
in $ac_dummy; do
787 test -z "$ac_dir" && ac_dir
=.
788 if test -f $ac_dir/$ac_word; then
789 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
798 if test $ac_prog_rejected = yes; then
799 # We found a bogon in the path, so make sure we never use it.
800 set dummy
$ac_cv_prog_CC
802 if test $# -gt 0; then
803 # We chose a different compiler from the bogus one.
804 # However, it has the same basename, so the bogon will be chosen
805 # first if we set CC to just the basename; use the full file name.
807 set dummy
"$ac_dir/$ac_word" "$@"
815 if test -n "$CC"; then
816 echo "$ac_t""$CC" 1>&6
818 echo "$ac_t""no" 1>&6
821 if test -z "$CC"; then
824 # Extract the first word of "cl", so it can be a program name with args.
825 set dummy cl
; ac_word
=$2
826 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
827 echo "configure:828: checking for $ac_word" >&5
828 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
829 echo $ac_n "(cached) $ac_c" 1>&6
831 if test -n "$CC"; then
832 ac_cv_prog_CC
="$CC" # Let the user override the test.
834 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
836 for ac_dir
in $ac_dummy; do
837 test -z "$ac_dir" && ac_dir
=.
838 if test -f $ac_dir/$ac_word; then
847 if test -n "$CC"; then
848 echo "$ac_t""$CC" 1>&6
850 echo "$ac_t""no" 1>&6
855 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
858 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
859 echo "configure:860: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
862 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
863 ac_cpp
='$CPP $CPPFLAGS'
864 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
865 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
866 cross_compiling
=$ac_cv_prog_cc_cross
868 cat > conftest.
$ac_ext << EOF
870 #line 871 "configure"
871 #include "confdefs.h"
875 if { (eval echo configure
:876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
876 ac_cv_prog_cc_works
=yes
877 # If we can't run a trivial program, we are probably using a cross compiler.
878 if (.
/conftest
; exit) 2>/dev
/null
; then
879 ac_cv_prog_cc_cross
=no
881 ac_cv_prog_cc_cross
=yes
884 echo "configure: failed program was:" >&5
885 cat conftest.
$ac_ext >&5
886 ac_cv_prog_cc_works
=no
890 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
891 ac_cpp
='$CPP $CPPFLAGS'
892 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
893 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
894 cross_compiling
=$ac_cv_prog_cc_cross
896 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
897 if test $ac_cv_prog_cc_works = no
; then
898 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
900 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
901 echo "configure:902: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
902 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
903 cross_compiling
=$ac_cv_prog_cc_cross
905 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
906 echo "configure:907: checking whether we are using GNU C" >&5
907 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
908 echo $ac_n "(cached) $ac_c" 1>&6
910 cat > conftest.c
<<EOF
915 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
922 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
924 if test $ac_cv_prog_gcc = yes; then
930 ac_test_CFLAGS
="${CFLAGS+set}"
931 ac_save_CFLAGS
="$CFLAGS"
933 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
934 echo "configure:935: checking whether ${CC-cc} accepts -g" >&5
935 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
936 echo $ac_n "(cached) $ac_c" 1>&6
938 echo 'void f(){}' > conftest.c
939 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
948 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
949 if test "$ac_test_CFLAGS" = set; then
950 CFLAGS
="$ac_save_CFLAGS"
951 elif test $ac_cv_prog_cc_g = yes; then
952 if test "$GCC" = yes; then
958 if test "$GCC" = yes; then
967 # Check whether --enable-build-warnings or --disable-build-warnings was given.
968 if test "${enable_build_warnings+set}" = set; then
969 enableval
="$enable_build_warnings"
970 build_warnings
="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
971 case "${enableval}" in
973 no
) build_warnings
="-w";;
974 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
975 build_warnings
="${build_warnings} ${t}";;
976 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
977 build_warnings
="${t} ${build_warnings}";;
978 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
980 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
981 echo "Setting warning flags = $build_warnings" 6>&1
988 # Put a plausible default for CC_FOR_BUILD in Makefile.
989 if test "x$cross_compiling" = "xno" -a "x$host" != "xi386-windows"; then
991 AR_FLAGS_FOR_BUILD
='$(AR_FLAGS)'
993 CFLAGS_FOR_BUILD
='$(CFLAGS)'
994 RANLIB_FOR_BUILD
='$(RANLIB)'
995 LIBIBERTY_LIB
=..
/..
/libiberty
/libiberty.a
997 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
998 AR_FLAGS_FOR_BUILD
=${AR_FLAGS_FOR_BUILD-rc}
999 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
1000 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-"-g"}
1001 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
1007 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
1008 if test -f $ac_dir/install-sh
; then
1010 ac_install_sh
="$ac_aux_dir/install-sh -c"
1012 elif test -f $ac_dir/install.sh
; then
1014 ac_install_sh
="$ac_aux_dir/install.sh -c"
1018 if test -z "$ac_aux_dir"; then
1019 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1021 ac_config_guess
=$ac_aux_dir/config.guess
1022 ac_config_sub
=$ac_aux_dir/config.sub
1023 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1026 # Do some error checking and defaulting for the host and target type.
1028 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1031 # 1. You are not allowed to specify --host, --target, and nonopt at the
1033 # 2. Host defaults to nonopt.
1034 # 3. If nonopt is not specified, then host defaults to the current host,
1035 # as determined by config.guess.
1036 # 4. Target and build default to nonopt.
1037 # 5. If nonopt is not specified, then target and build default to host.
1039 # The aliases save the names the user supplied, while $host etc.
1040 # will get canonicalized.
1041 case $host---$target---$nonopt in
1042 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1043 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1047 # Make sure we can run config.sub.
1048 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1049 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1052 echo $ac_n "checking host system type""... $ac_c" 1>&6
1053 echo "configure:1054: checking host system type" >&5
1056 case "$host_alias" in
1060 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1061 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1063 *) host_alias
=$nonopt ;;
1067 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1068 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1069 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1070 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1071 echo "$ac_t""$host" 1>&6
1073 echo $ac_n "checking target system type""... $ac_c" 1>&6
1074 echo "configure:1075: checking target system type" >&5
1076 target_alias
=$target
1077 case "$target_alias" in
1080 NONE
) target_alias
=$host_alias ;;
1081 *) target_alias
=$nonopt ;;
1085 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1086 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1087 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1088 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1089 echo "$ac_t""$target" 1>&6
1091 echo $ac_n "checking build system type""... $ac_c" 1>&6
1092 echo "configure:1093: checking build system type" >&5
1095 case "$build_alias" in
1098 NONE
) build_alias
=$host_alias ;;
1099 *) build_alias
=$nonopt ;;
1103 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1104 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1105 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1106 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1107 echo "$ac_t""$build" 1>&6
1109 test "$host_alias" != "$target_alias" &&
1110 test "$program_prefix$program_suffix$program_transform_name" = \
1112 program_prefix
=${target_alias}-
1114 if test "$program_transform_name" = s
,x
,x
,; then
1115 program_transform_name
=
1117 # Double any \ or $. echo might interpret backslashes.
1118 cat <<\EOF_SED
> conftestsed
1119 s
,\\,\\\\,g
; s
,\$
,$$
,g
1121 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1124 test "$program_prefix" != NONE
&&
1125 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1126 # Use a double $ so make ignores it.
1127 test "$program_suffix" != NONE
&&
1128 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1130 # sed with no file args requires a program.
1131 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1134 .
${srcdir}/..
/..
/bfd
/configure.
host
1138 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1139 echo "configure:1140: checking how to run the C preprocessor" >&5
1140 # On Suns, sometimes $CPP names a directory.
1141 if test -n "$CPP" && test -d "$CPP"; then
1144 if test -z "$CPP"; then
1145 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1148 # This must be in double quotes, not single quotes, because CPP may get
1149 # substituted into the Makefile and "${CC-cc}" will confuse make.
1151 # On the NeXT, cc -E runs the code through the compiler's parser,
1152 # not just through cpp.
1153 cat > conftest.
$ac_ext <<EOF
1154 #line 1155 "configure"
1155 #include "confdefs.h"
1159 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1160 { (eval echo configure
:1161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1161 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1162 if test -z "$ac_err"; then
1166 echo "configure: failed program was:" >&5
1167 cat conftest.
$ac_ext >&5
1169 CPP
="${CC-cc} -E -traditional-cpp"
1170 cat > conftest.
$ac_ext <<EOF
1171 #line 1172 "configure"
1172 #include "confdefs.h"
1176 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1177 { (eval echo configure
:1178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1178 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1179 if test -z "$ac_err"; then
1183 echo "configure: failed program was:" >&5
1184 cat conftest.
$ac_ext >&5
1186 CPP
="${CC-cc} -nologo -E"
1187 cat > conftest.
$ac_ext <<EOF
1188 #line 1189 "configure"
1189 #include "confdefs.h"
1193 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1194 { (eval echo configure
:1195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1195 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1196 if test -z "$ac_err"; then
1200 echo "configure: failed program was:" >&5
1201 cat conftest.
$ac_ext >&5
1210 ac_cv_prog_CPP
="$CPP"
1212 CPP
="$ac_cv_prog_CPP"
1214 ac_cv_prog_CPP
="$CPP"
1216 echo "$ac_t""$CPP" 1>&6
1218 for ac_hdr
in stdlib.h string.h
strings.h sys
/stat.h sys
/types.h unistd.h
1220 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1221 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1222 echo "configure:1223: checking for $ac_hdr" >&5
1223 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1224 echo $ac_n "(cached) $ac_c" 1>&6
1226 cat > conftest.
$ac_ext <<EOF
1227 #line 1228 "configure"
1228 #include "confdefs.h"
1231 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1232 { (eval echo configure
:1233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1233 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1234 if test -z "$ac_err"; then
1236 eval "ac_cv_header_$ac_safe=yes"
1239 echo "configure: failed program was:" >&5
1240 cat conftest.
$ac_ext >&5
1242 eval "ac_cv_header_$ac_safe=no"
1246 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1247 echo "$ac_t""yes" 1>&6
1248 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1249 cat >> confdefs.h
<<EOF
1250 #define $ac_tr_hdr 1
1254 echo "$ac_t""no" 1>&6
1259 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1261 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1262 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1263 echo "configure:1264: checking for $ac_hdr that defines DIR" >&5
1264 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1265 echo $ac_n "(cached) $ac_c" 1>&6
1267 cat > conftest.
$ac_ext <<EOF
1268 #line 1269 "configure"
1269 #include "confdefs.h"
1270 #include <sys/types.h>
1276 if { (eval echo configure
:1277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1278 eval "ac_cv_header_dirent_$ac_safe=yes"
1280 echo "configure: failed program was:" >&5
1281 cat conftest.
$ac_ext >&5
1283 eval "ac_cv_header_dirent_$ac_safe=no"
1287 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1288 echo "$ac_t""yes" 1>&6
1289 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1290 cat >> confdefs.h
<<EOF
1291 #define $ac_tr_hdr 1
1293 ac_header_dirent
=$ac_hdr; break
1295 echo "$ac_t""no" 1>&6
1298 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1299 if test $ac_header_dirent = dirent.h
; then
1300 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1301 echo "configure:1302: checking for opendir in -ldir" >&5
1302 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1306 ac_save_LIBS
="$LIBS"
1308 cat > conftest.
$ac_ext <<EOF
1309 #line 1310 "configure"
1310 #include "confdefs.h"
1311 /* Override any gcc2 internal prototype to avoid an error. */
1312 /* We use char because int might match the return type of a gcc2
1313 builtin and then its argument prototype would still apply. */
1320 if { (eval echo configure
:1321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1322 eval "ac_cv_lib_$ac_lib_var=yes"
1324 echo "configure: failed program was:" >&5
1325 cat conftest.
$ac_ext >&5
1327 eval "ac_cv_lib_$ac_lib_var=no"
1330 LIBS
="$ac_save_LIBS"
1333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1334 echo "$ac_t""yes" 1>&6
1337 echo "$ac_t""no" 1>&6
1341 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1342 echo "configure:1343: checking for opendir in -lx" >&5
1343 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1344 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1345 echo $ac_n "(cached) $ac_c" 1>&6
1347 ac_save_LIBS
="$LIBS"
1349 cat > conftest.
$ac_ext <<EOF
1350 #line 1351 "configure"
1351 #include "confdefs.h"
1352 /* Override any gcc2 internal prototype to avoid an error. */
1353 /* We use char because int might match the return type of a gcc2
1354 builtin and then its argument prototype would still apply. */
1361 if { (eval echo configure
:1362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1363 eval "ac_cv_lib_$ac_lib_var=yes"
1365 echo "configure: failed program was:" >&5
1366 cat conftest.
$ac_ext >&5
1368 eval "ac_cv_lib_$ac_lib_var=no"
1371 LIBS
="$ac_save_LIBS"
1374 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1375 echo "$ac_t""yes" 1>&6
1378 echo "$ac_t""no" 1>&6
1393 # Extract the first word of "ranlib", so it can be a program name with args.
1394 set dummy ranlib
; ac_word
=$2
1395 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1396 echo "configure:1397: checking for $ac_word" >&5
1397 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1398 echo $ac_n "(cached) $ac_c" 1>&6
1400 if test -n "$RANLIB"; then
1401 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1403 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1405 for ac_dir
in $ac_dummy; do
1406 test -z "$ac_dir" && ac_dir
=.
1407 if test -f $ac_dir/$ac_word; then
1408 ac_cv_prog_RANLIB
="ranlib"
1413 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1416 RANLIB
="$ac_cv_prog_RANLIB"
1417 if test -n "$RANLIB"; then
1418 echo "$ac_t""$RANLIB" 1>&6
1420 echo "$ac_t""no" 1>&6
1425 cat > confcache
<<\EOF
1426 # This file is a shell script that caches the results of configure
1427 # tests run on this system so they can be shared between configure
1428 # scripts and configure runs. It is not useful on other systems.
1429 # If it contains results you don't want to keep, you may remove or edit it.
1431 # By default, configure uses ./config.cache as the cache file,
1432 # creating it if it does not exist already. You can give configure
1433 # the --cache-file=FILE option to use a different cache file; that is
1434 # what configure does when it calls configure scripts in
1435 # subdirectories, so they share the cache.
1436 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1437 # config.status only pays attention to the cache file if you give it the
1438 # --recheck option to rerun configure.
1441 # The following way of writing the cache mishandles newlines in values,
1442 # but we know of no workaround that is simple, portable, and efficient.
1443 # So, don't put newlines in cache variables' values.
1444 # Ultrix sh set writes to stderr and can't be redirected directly,
1445 # and sets the high bit in the cache file unless we assign to the vars.
1447 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1449 # `set' does not quote correctly, so add quotes (double-quote substitution
1450 # turns \\\\ into \\, and sed turns \\ into \).
1452 -e "s/'/'\\\\''/g" \
1453 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1456 # `set' quotes correctly as required by POSIX, so do not add quotes.
1457 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1460 if cmp -s $cache_file confcache
; then
1463 if test -w $cache_file; then
1464 echo "updating cache $cache_file"
1465 cat confcache
> $cache_file
1467 echo "not updating unwritable cache $cache_file"
1472 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1474 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1475 # Let make expand exec_prefix.
1476 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1478 # Any assignment to VPATH causes Sun make to only execute
1479 # the first set of double-colon rules, so remove it if not needed.
1480 # If there is a colon in the path, we need to keep it.
1481 if test "x$srcdir" = x.
; then
1482 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1485 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1487 DEFS
=-DHAVE_CONFIG_H
1489 # Without the "./", some shells look in PATH for config.status.
1490 : ${CONFIG_STATUS=./config.status}
1492 echo creating
$CONFIG_STATUS
1493 rm -f $CONFIG_STATUS
1494 cat > $CONFIG_STATUS <<EOF
1496 # Generated automatically by configure.
1497 # Run this file to recreate the current configuration.
1498 # This directory was configured as follows,
1499 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1501 # $0 $ac_configure_args
1503 # Compiler output produced by configure, useful for debugging
1504 # configure, is in ./config.log if it exists.
1506 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1509 case "\$ac_option" in
1510 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1511 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1512 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1513 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1514 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1516 -help | --help | --hel | --he | --h)
1517 echo "\$ac_cs_usage"; exit 0 ;;
1518 *) echo "\$ac_cs_usage"; exit 1 ;;
1522 ac_given_srcdir=$srcdir
1523 ac_given_INSTALL="$INSTALL"
1525 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1527 cat >> $CONFIG_STATUS <<EOF
1529 # Protect against being on the right side of a sed subst in config.status.
1530 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1531 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1534 s%@sim_environment@%$sim_environment%g
1535 s%@sim_alignment@%$sim_alignment%g
1536 s%@sim_assert@%$sim_assert%g
1537 s%@sim_bitsize@%$sim_bitsize%g
1538 s%@sim_endian@%$sim_endian%g
1539 s%@sim_hostendian@%$sim_hostendian%g
1540 s%@sim_float@%$sim_float%g
1541 s%@sim_scache@%$sim_scache%g
1542 s%@sim_default_model@%$sim_default_model%g
1543 s%@sim_hw_cflags@%$sim_hw_cflags%g
1544 s%@sim_hw_objs@%$sim_hw_objs%g
1545 s%@sim_hw@%$sim_hw%g
1546 s%@sim_inline@%$sim_inline%g
1547 s%@sim_packages@%$sim_packages%g
1548 s%@sim_regparm@%$sim_regparm%g
1549 s%@sim_reserved_bits@%$sim_reserved_bits%g
1550 s%@sim_smp@%$sim_smp%g
1551 s%@sim_stdcall@%$sim_stdcall%g
1552 s%@sim_xor_endian@%$sim_xor_endian%g
1553 s%@build_warnings@%$build_warnings%g
1555 s%@CFLAGS@%$CFLAGS%g
1556 s%@CPPFLAGS@%$CPPFLAGS%g
1557 s%@CXXFLAGS@%$CXXFLAGS%g
1558 s%@FFLAGS@%$FFLAGS%g
1560 s%@LDFLAGS@%$LDFLAGS%g
1562 s%@exec_prefix@%$exec_prefix%g
1563 s%@prefix@%$prefix%g
1564 s%@program_transform_name@%$program_transform_name%g
1565 s%@bindir@%$bindir%g
1566 s%@sbindir@%$sbindir%g
1567 s%@libexecdir@%$libexecdir%g
1568 s%@datadir@%$datadir%g
1569 s%@sysconfdir@%$sysconfdir%g
1570 s%@sharedstatedir@%$sharedstatedir%g
1571 s%@localstatedir@%$localstatedir%g
1572 s%@libdir@%$libdir%g
1573 s%@includedir@%$includedir%g
1574 s%@oldincludedir@%$oldincludedir%g
1575 s%@infodir@%$infodir%g
1576 s%@mandir@%$mandir%g
1577 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1578 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1579 s%@INSTALL_DATA@%$INSTALL_DATA%g
1582 s%@host_alias@%$host_alias%g
1583 s%@host_cpu@%$host_cpu%g
1584 s%@host_vendor@%$host_vendor%g
1585 s%@host_os@%$host_os%g
1586 s%@target@%$target%g
1587 s%@target_alias@%$target_alias%g
1588 s%@target_cpu@%$target_cpu%g
1589 s%@target_vendor@%$target_vendor%g
1590 s%@target_os@%$target_os%g
1592 s%@build_alias@%$build_alias%g
1593 s%@build_cpu@%$build_cpu%g
1594 s%@build_vendor@%$build_vendor%g
1595 s%@build_os@%$build_os%g
1597 s%@AR_FOR_BUILD@%$AR_FOR_BUILD%g
1598 s%@AR_FLAGS_FOR_BUILD@%$AR_FLAGS_FOR_BUILD%g
1599 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
1600 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
1601 s%@RANLIB_FOR_BUILD@%$RANLIB_FOR_BUILD%g
1602 s%@LIBIBERTY_LIB@%$LIBIBERTY_LIB%g
1604 s%@RANLIB@%$RANLIB%g
1609 cat >> $CONFIG_STATUS <<\EOF
1611 # Split the substitutions into bite-sized pieces for seds with
1612 # small command number limits, like on Digital OSF/1 and HP-UX.
1613 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
1614 ac_file
=1 # Number of current file.
1615 ac_beg
=1 # First line for current file.
1616 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
1619 while $ac_more_lines; do
1620 if test $ac_beg -gt 1; then
1621 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
1623 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
1625 if test ! -s conftest.s
$ac_file; then
1627 rm -f conftest.s
$ac_file
1629 if test -z "$ac_sed_cmds"; then
1630 ac_sed_cmds
="sed -f conftest.s$ac_file"
1632 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
1634 ac_file
=`expr $ac_file + 1`
1636 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
1639 if test -z "$ac_sed_cmds"; then
1644 cat >> $CONFIG_STATUS <<EOF
1646 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1648 cat >> $CONFIG_STATUS <<\EOF
1649 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
1650 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1652 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
1653 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1654 *) ac_file_in
="${ac_file}.in" ;;
1657 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1659 # Remove last slash and all that follows it. Not all systems have dirname.
1660 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1661 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
1662 # The file is in a subdirectory.
1663 test ! -d "$ac_dir" && mkdir
"$ac_dir"
1664 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
1665 # A "../" for each directory in $ac_dir_suffix.
1666 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1668 ac_dir_suffix
= ac_dots
=
1671 case "$ac_given_srcdir" in
1673 if test -z "$ac_dots"; then top_srcdir
=.
1674 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1675 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
1677 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1678 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
1681 case "$ac_given_INSTALL" in
1682 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
1683 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
1686 echo creating
"$ac_file"
1688 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1690 *Makefile
*) ac_comsub
="1i\\
1691 # $configure_input" ;;
1695 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1697 s%@configure_input@%$configure_input%g
1698 s%@srcdir@%$srcdir%g
1699 s%@top_srcdir@%$top_srcdir%g
1700 s%@INSTALL@%$INSTALL%g
1701 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
1705 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1706 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1708 # ac_d sets the value in "#define NAME VALUE" lines.
1709 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1710 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
1713 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1714 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1715 ac_uB
='\([ ]\)%\1#\2define\3'
1718 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1719 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1720 ac_eB
='$%\1#\2define\3'
1724 if test "${CONFIG_HEADERS+set}" != set; then
1726 cat >> $CONFIG_STATUS <<EOF
1727 CONFIG_HEADERS="config.h:config.in"
1729 cat >> $CONFIG_STATUS <<\EOF
1731 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
1732 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1734 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
1735 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1736 *) ac_file_in
="${ac_file}.in" ;;
1739 echo creating
$ac_file
1741 rm -f conftest.frag conftest.
in conftest.out
1742 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1743 cat $ac_file_inputs > conftest.
in
1747 # Transform confdefs.h into a sed script conftest.vals that substitutes
1748 # the proper values into config.h.in to produce config.h. And first:
1749 # Protect against being on the right side of a sed subst in config.status.
1750 # Protect against being in an unquoted here document in config.status.
1752 cat > conftest.hdr
<<\EOF
1755 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1759 sed -n -f conftest.hdr confdefs.h > conftest.vals
1762 # This sed command replaces #undef with comments. This is necessary, for
1763 # example, in the case of _POSIX_SOURCE, which is predefined and required
1764 # on some systems where configure will not decide to define it.
1765 cat >> conftest.vals <<\EOF
1766 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1769 # Break up conftest.vals because some shells have a limit on
1770 # the size of here documents, and old seds have small limits too.
1775 ac_lines=`grep -c . conftest.vals
`
1776 # grep -c gives empty output for an empty file on some AIX systems.
1777 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1778 # Write a limited-size here document to conftest.frag.
1779 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1780 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1782 sed -f conftest.frag conftest.in > conftest.out
1784 mv conftest.out conftest.in
1786 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1788 mv conftest.tail conftest.vals
1792 cat >> $CONFIG_STATUS <<\EOF
1793 rm -f conftest.frag conftest.h
1794 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1795 cat conftest.in >> conftest.h
1797 if cmp -s $ac_file conftest.h 2>/dev/null; then
1798 echo "$ac_file is unchanged"
1801 # Remove last slash and all that follows it. Not all systems have dirname.
1802 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
1803 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1804 # The file is in a subdirectory.
1805 test ! -d "$ac_dir" && mkdir "$ac_dir"
1808 mv conftest.h $ac_file
1813 cat >> $CONFIG_STATUS <<EOF
1816 cat >> $CONFIG_STATUS <<\EOF
1817 case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac
1820 chmod +x $CONFIG_STATUS
1821 rm -fr confdefs* $ac_clean_files
1822 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1