3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-multilib build many library versions (default)"
17 --enable-shared[=PKGS] build shared libraries [default=yes]"
19 --enable-static[=PKGS] build static libraries [default=yes]"
21 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
25 --disable-libtool-lock avoid locking (might break parallel builds)"
27 --with-pic try to use only PIC/non-PIC objects [default=use both]"
29 --enable-maintainer-mode enable make rules and dependencies not useful
30 (and sometimes confusing) to the casual installer"
32 --enable-debug debugging mode"
34 --disable-structs omit code for struct support"
36 --disable-raw-api make the raw api unavailable"
38 --enable-purify-safety purify-safe mode"
40 # Initialize some variables set by options.
41 # The variables have the same names as the options, with
42 # dashes changed to underlines.
44 cache_file=./config.cache
53 program_transform_name=s,x,x,
62 bindir='${exec_prefix}/bin'
63 sbindir='${exec_prefix}/sbin'
64 libexecdir='${exec_prefix}/libexec'
65 datadir='${prefix}/share'
66 sysconfdir='${prefix}/etc'
67 sharedstatedir='${prefix}/com'
68 localstatedir='${prefix}/var'
69 libdir='${exec_prefix}/lib'
70 includedir='${prefix}/include'
71 oldincludedir='/usr/include'
72 infodir='${prefix}/info'
73 mandir='${prefix}/man'
75 # Initialize some other variables.
78 SHELL=${CONFIG_SHELL-/bin/sh}
79 # Maximum number of lines to put in a shell here document.
86 # If the previous option needs an argument, assign it.
87 if test -n "$ac_prev"; then
88 eval "$ac_prev=\$ac_option"
94 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
98 # Accept the important Cygnus configure options, so we can diagnose typos.
102 -bindir | --bindir | --bindi | --bind | --bin | --bi)
104 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
105 bindir="$ac_optarg" ;;
107 -build | --build | --buil | --bui | --bu)
109 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
110 build="$ac_optarg" ;;
112 -cache-file | --cache-file | --cache-fil | --cache-fi \
113 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
114 ac_prev=cache_file ;;
115 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
116 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
117 cache_file="$ac_optarg" ;;
119 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
121 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
123 datadir="$ac_optarg" ;;
125 -disable-* | --disable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132 eval "enable_${ac_feature}=no" ;;
134 -enable-* | --enable-*)
135 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
136 # Reject names that are not valid shell variable names.
137 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
138 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
140 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
145 eval "enable_${ac_feature}='$ac_optarg'" ;;
147 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
148 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
149 | --exec | --exe | --ex)
150 ac_prev=exec_prefix ;;
151 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
152 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
153 | --exec=* | --exe=* | --ex=*)
154 exec_prefix="$ac_optarg" ;;
156 -gas | --gas | --ga | --g)
157 # Obsolete; use --with-gas.
160 -help | --help | --hel | --he)
161 # Omit some internal or obsolete options to make the list less imposing.
162 # This message is too long to be a string in the A/UX 3.1 sh.
164 Usage: configure [options] [host]
165 Options: [defaults in brackets after descriptions]
167 --cache-file=FILE cache test results in FILE
168 --help print this message
169 --no-create do not create output files
170 --quiet, --silent do not print \`checking...' messages
171 --site-file=FILE use FILE as the site file
172 --version print the version of autoconf that created configure
173 Directory and file names:
174 --prefix=PREFIX install architecture-independent files in PREFIX
176 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
178 --bindir=DIR user executables in DIR [EPREFIX/bin]
179 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
180 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
181 --datadir=DIR read-only architecture-independent data in DIR
183 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
184 --sharedstatedir=DIR modifiable architecture-independent data in DIR
186 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
187 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
188 --includedir=DIR C header files in DIR [PREFIX/include]
189 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
190 --infodir=DIR info documentation in DIR [PREFIX/info]
191 --mandir=DIR man documentation in DIR [PREFIX/man]
192 --srcdir=DIR find the sources in DIR [configure dir or ..]
193 --program-prefix=PREFIX prepend PREFIX to installed program names
194 --program-suffix=SUFFIX append SUFFIX to installed program names
195 --program-transform-name=PROGRAM
196 run sed PROGRAM on installed program names
200 --build=BUILD configure for building on BUILD [BUILD=HOST]
201 --host=HOST configure for HOST [guessed]
202 --target=TARGET configure for TARGET [TARGET=HOST]
203 Features and packages:
204 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
205 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
206 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
207 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
208 --x-includes=DIR X include files are in DIR
209 --x-libraries=DIR X library files are in DIR
211 if test -n "$ac_help"; then
212 echo "--enable and --with options recognized:$ac_help"
216 -host | --host | --hos | --ho)
218 -host=* | --host=* | --hos=* | --ho=*)
221 -includedir | --includedir | --includedi | --included | --include \
222 | --includ | --inclu | --incl | --inc)
223 ac_prev=includedir ;;
224 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
225 | --includ=* | --inclu=* | --incl=* | --inc=*)
226 includedir="$ac_optarg" ;;
228 -infodir | --infodir | --infodi | --infod | --info | --inf)
230 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
231 infodir="$ac_optarg" ;;
233 -libdir | --libdir | --libdi | --libd)
235 -libdir=* | --libdir=* | --libdi=* | --libd=*)
236 libdir="$ac_optarg" ;;
238 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
239 | --libexe | --libex | --libe)
240 ac_prev=libexecdir ;;
241 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
242 | --libexe=* | --libex=* | --libe=*)
243 libexecdir="$ac_optarg" ;;
245 -localstatedir | --localstatedir | --localstatedi | --localstated \
246 | --localstate | --localstat | --localsta | --localst \
247 | --locals | --local | --loca | --loc | --lo)
248 ac_prev=localstatedir ;;
249 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
250 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
251 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
252 localstatedir="$ac_optarg" ;;
254 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
256 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
257 mandir="$ac_optarg" ;;
260 # Obsolete; use --without-fp.
263 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
267 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
268 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
271 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
272 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
273 | --oldin | --oldi | --old | --ol | --o)
274 ac_prev=oldincludedir ;;
275 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
276 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
277 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
278 oldincludedir="$ac_optarg" ;;
280 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
282 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
283 prefix="$ac_optarg" ;;
285 -program-prefix | --program-prefix | --program-prefi | --program-pref \
286 | --program-pre | --program-pr | --program-p)
287 ac_prev=program_prefix ;;
288 -program-prefix=* | --program-prefix=* | --program-prefi=* \
289 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
290 program_prefix="$ac_optarg" ;;
292 -program-suffix | --program-suffix | --program-suffi | --program-suff \
293 | --program-suf | --program-su | --program-s)
294 ac_prev=program_suffix ;;
295 -program-suffix=* | --program-suffix=* | --program-suffi=* \
296 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
297 program_suffix="$ac_optarg" ;;
299 -program-transform-name | --program-transform-name \
300 | --program-transform-nam | --program-transform-na \
301 | --program-transform-n | --program-transform- \
302 | --program-transform | --program-transfor \
303 | --program-transfo | --program-transf \
304 | --program-trans | --program-tran \
305 | --progr-tra | --program-tr | --program-t)
306 ac_prev=program_transform_name ;;
307 -program-transform-name=* | --program-transform-name=* \
308 | --program-transform-nam=* | --program-transform-na=* \
309 | --program-transform-n=* | --program-transform-=* \
310 | --program-transform=* | --program-transfor=* \
311 | --program-transfo=* | --program-transf=* \
312 | --program-trans=* | --program-tran=* \
313 | --progr-tra=* | --program-tr=* | --program-t=*)
314 program_transform_name="$ac_optarg" ;;
316 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
317 | -silent | --silent | --silen | --sile | --sil)
320 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
322 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
324 sbindir="$ac_optarg" ;;
326 -sharedstatedir | --sharedstatedir | --sharedstatedi \
327 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
328 | --sharedst | --shareds | --shared | --share | --shar \
330 ac_prev=sharedstatedir ;;
331 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
332 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
333 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
335 sharedstatedir="$ac_optarg" ;;
337 -site | --site | --sit)
339 -site=* | --site=* | --sit=*)
342 -site-file | --site-file | --site-fil | --site-fi | --site-f)
344 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
345 sitefile="$ac_optarg" ;;
347 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
349 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
350 srcdir="$ac_optarg" ;;
352 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
353 | --syscon | --sysco | --sysc | --sys | --sy)
354 ac_prev=sysconfdir ;;
355 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
356 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
357 sysconfdir="$ac_optarg" ;;
359 -target | --target | --targe | --targ | --tar | --ta | --t)
361 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
362 target="$ac_optarg" ;;
364 -v | -verbose | --verbose | --verbos | --verbo | --verb)
367 -version | --version | --versio | --versi | --vers)
368 echo "configure generated by autoconf version 2.13"
372 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package=`echo $ac_package| sed 's/-/_/g'`
382 eval "with_${ac_package}='$ac_optarg'" ;;
384 -without-* | --without-*)
385 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
386 # Reject names that are not valid shell variable names.
387 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
388 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
390 ac_package=`echo $ac_package| sed 's/-/_/g'`
391 eval "with_${ac_package}=no" ;;
394 # Obsolete; use --with-x.
397 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
398 | --x-incl | --x-inc | --x-in | --x-i)
399 ac_prev=x_includes ;;
400 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
401 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
402 x_includes="$ac_optarg" ;;
404 -x-libraries | --x-libraries | --x-librarie | --x-librari \
405 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
406 ac_prev=x_libraries ;;
407 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
408 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
409 x_libraries="$ac_optarg" ;;
411 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
415 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
416 echo "configure: warning: $ac_option: invalid host type" 1>&2
418 if test "x$nonopt" != xNONE; then
419 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
427 if test -n "$ac_prev"; then
428 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
431 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
433 # File descriptor usage:
436 # 2 errors and warnings
437 # 3 some systems may open it to /dev/tty
438 # 4 used on the Kubota Titan
439 # 6 checking for... messages and results
440 # 5 compiler messages saved in config.log
441 if test "$silent" = yes; then
449 This file contains any messages produced by compilers while
450 running configure, to aid debugging if configure makes a mistake.
453 # Strip out --no-create and --no-recursion so they do not pile up.
454 # Also quote any args containing shell metacharacters.
459 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
460 | --no-cr | --no-c) ;;
461 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
462 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
463 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
464 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
465 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
470 # Only set these to C if already set. These must not be set unconditionally
471 # because not all systems understand e.g. LANG=C (notably SCO).
472 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
473 # Non-C LC_CTYPE values break the ctype check.
474 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
475 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
476 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
477 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
479 # confdefs.h avoids OS command line length limits that DEFS can exceed.
480 rm -rf conftest* confdefs.h
481 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
484 # A filename unique to this package, relative to the directory that
485 # configure is in, which we can look for to find out if srcdir is correct.
486 ac_unique_file=fficonfig.h.in
488 # Find the source files, if location was not specified.
489 if test -z "$srcdir"; then
490 ac_srcdir_defaulted=yes
491 # Try the directory containing this script, then its parent.
493 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
494 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
496 if test ! -r $srcdir/$ac_unique_file; then
500 ac_srcdir_defaulted=no
502 if test ! -r $srcdir/$ac_unique_file; then
503 if test "$ac_srcdir_defaulted" = yes; then
504 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
506 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
509 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
511 # Prefer explicitly selected file to automatically selected ones.
512 if test -z "$sitefile"; then
513 if test -z "$CONFIG_SITE"; then
514 if test "x$prefix" != xNONE; then
515 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
517 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
521 CONFIG_SITE="$sitefile"
523 for ac_site_file in $CONFIG_SITE; do
524 if test -r "$ac_site_file"; then
525 echo "loading site script $ac_site_file"
530 if test -r "$cache_file"; then
531 echo "loading cache $cache_file"
534 echo "creating cache $cache_file"
539 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
540 ac_cpp='$CPP $CPPFLAGS'
541 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
542 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
543 cross_compiling=$ac_cv_prog_cc_cross
547 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
548 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
549 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
556 ac_n= ac_c='\c' ac_t=
559 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
560 echo "configure:561: checking for Cygwin environment" >&5
561 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
562 echo $ac_n "(cached) $ac_c" 1>&6
564 cat > conftest.$ac_ext <<EOF
565 #line 566 "configure"
566 #include "confdefs.h"
571 #define __CYGWIN__ __CYGWIN32__
576 if { (eval echo configure:577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
580 echo "configure: failed program was:" >&5
581 cat conftest.$ac_ext >&5
589 echo "$ac_t""$ac_cv_cygwin" 1>&6
591 test "$ac_cv_cygwin" = yes && CYGWIN=yes
592 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
593 echo "configure:594: checking for mingw32 environment" >&5
594 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
595 echo $ac_n "(cached) $ac_c" 1>&6
597 cat > conftest.$ac_ext <<EOF
598 #line 599 "configure"
599 #include "confdefs.h"
605 if { (eval echo configure:606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
609 echo "configure: failed program was:" >&5
610 cat conftest.$ac_ext >&5
618 echo "$ac_t""$ac_cv_mingw32" 1>&6
620 test "$ac_cv_mingw32" = yes && MINGW32=yes
626 # This works around the fact that libtool configuration may change LD
627 # for this particular configuration, but some shells, instead of
628 # keeping the changes in LD private, export them just because LD is
630 ORIGINAL_LD_FOR_MULTILIBS=$LD
632 # Check whether --enable-multilib or --disable-multilib was given.
633 if test "${enable_multilib+set}" = set; then
634 enableval="$enable_multilib"
635 case "${enableval}" in
638 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
645 if test "${srcdir}" = "."; then
646 if test "${with_target_subdir}" != "."; then
647 libffi_basedir="${srcdir}/${with_multisrctop}.."
649 libffi_basedir="${srcdir}/${with_multisrctop}"
652 libffi_basedir="${srcdir}"
657 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
658 if test -f $ac_dir/install-sh; then
660 ac_install_sh="$ac_aux_dir/install-sh -c"
662 elif test -f $ac_dir/install.sh; then
664 ac_install_sh="$ac_aux_dir/install.sh -c"
668 if test -z "$ac_aux_dir"; then
669 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
671 ac_config_guess=$ac_aux_dir/config.guess
672 ac_config_sub=$ac_aux_dir/config.sub
673 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
676 # Make sure we can run config.sub.
677 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
678 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
681 echo $ac_n "checking host system type""... $ac_c" 1>&6
682 echo "configure:683: checking host system type" >&5
685 case "$host_alias" in
689 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
690 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
692 *) host_alias=$nonopt ;;
696 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
697 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
698 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
699 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
700 echo "$ac_t""$host" 1>&6
703 # Check whether --enable-shared or --disable-shared was given.
704 if test "${enable_shared+set}" = set; then
705 enableval="$enable_shared"
708 yes) enable_shared=yes ;;
709 no) enable_shared=no ;;
712 # Look at the argument we got. We use all the common list separators.
713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
714 for pkg in $enableval; do
715 if test "X$pkg" = "X$p"; then
726 # Check whether --enable-static or --disable-static was given.
727 if test "${enable_static+set}" = set; then
728 enableval="$enable_static"
731 yes) enable_static=yes ;;
732 no) enable_static=no ;;
735 # Look at the argument we got. We use all the common list separators.
736 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
737 for pkg in $enableval; do
738 if test "X$pkg" = "X$p"; then
749 # Check whether --enable-fast-install or --disable-fast-install was given.
750 if test "${enable_fast_install+set}" = set; then
751 enableval="$enable_fast_install"
754 yes) enable_fast_install=yes ;;
755 no) enable_fast_install=no ;;
757 enable_fast_install=no
758 # Look at the argument we got. We use all the common list separators.
759 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
760 for pkg in $enableval; do
761 if test "X$pkg" = "X$p"; then
762 enable_fast_install=yes
769 enable_fast_install=yes
772 echo $ac_n "checking build system type""... $ac_c" 1>&6
773 echo "configure:774: checking build system type" >&5
776 case "$build_alias" in
779 NONE) build_alias=$host_alias ;;
780 *) build_alias=$nonopt ;;
784 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
785 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
786 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
787 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
788 echo "$ac_t""$build" 1>&6
790 # Extract the first word of "gcc", so it can be a program name with args.
791 set dummy gcc; ac_word=$2
792 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
793 echo "configure:794: checking for $ac_word" >&5
794 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
795 echo $ac_n "(cached) $ac_c" 1>&6
797 if test -n "$CC"; then
798 ac_cv_prog_CC="$CC" # Let the user override the test.
800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
802 for ac_dir in $ac_dummy; do
803 test -z "$ac_dir" && ac_dir=.
804 if test -f $ac_dir/$ac_word; then
813 if test -n "$CC"; then
814 echo "$ac_t""$CC" 1>&6
816 echo "$ac_t""no" 1>&6
819 if test -z "$CC"; then
820 # Extract the first word of "cc", so it can be a program name with args.
821 set dummy cc; ac_word=$2
822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
823 echo "configure:824: checking for $ac_word" >&5
824 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
825 echo $ac_n "(cached) $ac_c" 1>&6
827 if test -n "$CC"; then
828 ac_cv_prog_CC="$CC" # Let the user override the test.
830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
833 for ac_dir in $ac_dummy; do
834 test -z "$ac_dir" && ac_dir=.
835 if test -f $ac_dir/$ac_word; then
836 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
845 if test $ac_prog_rejected = yes; then
846 # We found a bogon in the path, so make sure we never use it.
847 set dummy $ac_cv_prog_CC
849 if test $# -gt 0; then
850 # We chose a different compiler from the bogus one.
851 # However, it has the same basename, so the bogon will be chosen
852 # first if we set CC to just the basename; use the full file name.
854 set dummy "$ac_dir/$ac_word" "$@"
862 if test -n "$CC"; then
863 echo "$ac_t""$CC" 1>&6
865 echo "$ac_t""no" 1>&6
868 if test -z "$CC"; then
871 # Extract the first word of "cl", so it can be a program name with args.
872 set dummy cl; ac_word=$2
873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
874 echo "configure:875: checking for $ac_word" >&5
875 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
876 echo $ac_n "(cached) $ac_c" 1>&6
878 if test -n "$CC"; then
879 ac_cv_prog_CC="$CC" # Let the user override the test.
881 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
883 for ac_dir in $ac_dummy; do
884 test -z "$ac_dir" && ac_dir=.
885 if test -f $ac_dir/$ac_word; then
894 if test -n "$CC"; then
895 echo "$ac_t""$CC" 1>&6
897 echo "$ac_t""no" 1>&6
902 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
905 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
906 echo "configure:907: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
909 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
910 ac_cpp='$CPP $CPPFLAGS'
911 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
912 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
913 cross_compiling=$ac_cv_prog_cc_cross
915 cat > conftest.$ac_ext << EOF
917 #line 918 "configure"
918 #include "confdefs.h"
922 if { (eval echo configure:923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
923 ac_cv_prog_cc_works=yes
924 # If we can't run a trivial program, we are probably using a cross compiler.
925 if (./conftest; exit) 2>/dev/null; then
926 ac_cv_prog_cc_cross=no
928 ac_cv_prog_cc_cross=yes
931 echo "configure: failed program was:" >&5
932 cat conftest.$ac_ext >&5
933 ac_cv_prog_cc_works=no
937 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
938 ac_cpp='$CPP $CPPFLAGS'
939 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
940 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
941 cross_compiling=$ac_cv_prog_cc_cross
943 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
944 if test $ac_cv_prog_cc_works = no; then
945 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
947 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
948 echo "configure:949: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
949 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
950 cross_compiling=$ac_cv_prog_cc_cross
952 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
953 echo "configure:954: checking whether we are using GNU C" >&5
954 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
955 echo $ac_n "(cached) $ac_c" 1>&6
957 cat > conftest.c <<EOF
962 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
969 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
971 if test $ac_cv_prog_gcc = yes; then
977 ac_test_CFLAGS="${CFLAGS+set}"
978 ac_save_CFLAGS="$CFLAGS"
980 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
981 echo "configure:982: checking whether ${CC-cc} accepts -g" >&5
982 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
983 echo $ac_n "(cached) $ac_c" 1>&6
985 echo 'void f(){}' > conftest.c
986 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
995 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
996 if test "$ac_test_CFLAGS" = set; then
997 CFLAGS="$ac_save_CFLAGS"
998 elif test $ac_cv_prog_cc_g = yes; then
999 if test "$GCC" = yes; then
1005 if test "$GCC" = yes; then
1012 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1013 if test "${with_gnu_ld+set}" = set; then
1014 withval="$with_gnu_ld"
1015 test "$withval" = no || with_gnu_ld=yes
1021 if test "$GCC" = yes; then
1022 # Check if gcc -print-prog-name=ld gives a path.
1023 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1024 echo "configure:1025: checking for ld used by GCC" >&5
1027 # gcc leaves a trailing carriage return which upsets mingw
1028 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1030 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1033 # Accept absolute paths.
1034 [\\/]* | [A-Za-z]:[\\/]*)
1035 re_direlt='/[^/][^/]*/\.\./'
1036 # Canonicalize the path of ld
1037 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1038 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1039 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1041 test -z "$LD" && LD="$ac_prog"
1044 # If it fails, then pretend we aren't using GCC.
1048 # If it is relative, then search for the first ld in PATH.
1052 elif test "$with_gnu_ld" = yes; then
1053 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1054 echo "configure:1055: checking for GNU ld" >&5
1056 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1057 echo "configure:1058: checking for non-GNU ld" >&5
1059 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1060 echo $ac_n "(cached) $ac_c" 1>&6
1062 if test -z "$LD"; then
1063 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1064 for ac_dir in $PATH; do
1065 test -z "$ac_dir" && ac_dir=.
1066 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1067 lt_cv_path_LD="$ac_dir/$ac_prog"
1068 # Check to see if the program is GNU ld. I'd rather use --version,
1069 # but apparently some GNU ld's only accept -v.
1070 # Break only if it was the GNU/non-GNU ld that we prefer.
1071 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1072 test "$with_gnu_ld" != no && break
1074 test "$with_gnu_ld" != yes && break
1080 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1085 if test -n "$LD"; then
1086 echo "$ac_t""$LD" 1>&6
1088 echo "$ac_t""no" 1>&6
1090 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1091 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1092 echo "configure:1093: checking if the linker ($LD) is GNU ld" >&5
1093 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1094 echo $ac_n "(cached) $ac_c" 1>&6
1096 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1097 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1098 lt_cv_prog_gnu_ld=yes
1100 lt_cv_prog_gnu_ld=no
1104 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1105 with_gnu_ld=$lt_cv_prog_gnu_ld
1108 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1109 echo "configure:1110: checking for $LD option to reload object files" >&5
1110 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1111 echo $ac_n "(cached) $ac_c" 1>&6
1113 lt_cv_ld_reload_flag='-r'
1116 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1117 reload_flag=$lt_cv_ld_reload_flag
1118 test -n "$reload_flag" && reload_flag=" $reload_flag"
1120 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1121 echo "configure:1122: checking for BSD-compatible nm" >&5
1122 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1123 echo $ac_n "(cached) $ac_c" 1>&6
1125 if test -n "$NM"; then
1126 # Let the user override the test.
1129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1130 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1131 test -z "$ac_dir" && ac_dir=.
1132 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1133 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1134 # Check to see if the nm accepts a BSD-compat flag.
1135 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1136 # nm: unknown option "B" ignored
1137 # Tru64's nm complains that /dev/null is an invalid object file
1138 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1139 lt_cv_path_NM="$tmp_nm -B"
1141 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1142 lt_cv_path_NM="$tmp_nm -p"
1145 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1146 continue # so that we can try to find one that supports BSD flags
1151 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1156 echo "$ac_t""$NM" 1>&6
1158 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1159 echo "configure:1160: checking whether ln -s works" >&5
1160 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1161 echo $ac_n "(cached) $ac_c" 1>&6
1164 if ln -s X conftestdata 2>/dev/null
1167 ac_cv_prog_LN_S="ln -s"
1172 LN_S="$ac_cv_prog_LN_S"
1173 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1174 echo "$ac_t""yes" 1>&6
1176 echo "$ac_t""no" 1>&6
1179 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1180 echo "configure:1181: checking how to recognise dependant libraries" >&5
1181 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1184 lt_cv_file_magic_cmd='$MAGIC_CMD'
1185 lt_cv_file_magic_test_file=
1186 lt_cv_deplibs_check_method='unknown'
1187 # Need to set the preceding variable on all platforms that support
1188 # interlibrary dependencies.
1189 # 'none' -- dependencies not supported.
1190 # `unknown' -- same as none, but documents that we really don't know.
1191 # 'pass_all' -- all dependencies passed with no checks.
1192 # 'test_compile' -- check by making test program.
1193 # 'file_magic [regex]' -- check by looking for files in library path
1194 # which responds to the $file_magic_cmd with a given egrep regex.
1195 # If you have `file' or equivalent on your system and you're not sure
1196 # whether `pass_all' will *always* work, you probably want this one.
1200 lt_cv_deplibs_check_method=pass_all
1204 lt_cv_deplibs_check_method=pass_all
1208 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1209 lt_cv_file_magic_cmd='/usr/bin/file -L'
1210 lt_cv_file_magic_test_file=/shlib/libc.so
1213 cygwin* | mingw* |pw32*)
1214 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1215 lt_cv_file_magic_cmd='$OBJDUMP -f'
1218 darwin* | rhapsody*)
1219 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1220 lt_cv_file_magic_cmd='/usr/bin/file -L'
1222 rhapsody* | darwin1.012)
1223 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1226 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1232 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1235 # Not sure whether the presence of OpenBSD here was a mistake.
1236 # Let's accept both of them until this is cleared up.
1237 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1238 lt_cv_file_magic_cmd=/usr/bin/file
1239 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1243 lt_cv_deplibs_check_method=pass_all
1248 lt_cv_deplibs_check_method=pass_all
1254 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1255 lt_cv_file_magic_cmd=/usr/bin/file
1256 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1259 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1260 lt_cv_file_magic_cmd=/usr/bin/file
1261 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1269 # this will be overridden with pass_all, but let us keep it just in case
1270 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1274 *-32|*"-32 ") libmagic=32-bit;;
1275 *-n32|*"-n32 ") libmagic=N32;;
1276 *-64|*"-64 ") libmagic=64-bit;;
1277 *) libmagic=never-match;;
1279 # this will be overridden with pass_all, but let us keep it just in case
1280 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1283 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1284 lt_cv_deplibs_check_method=pass_all
1287 # This must be Linux ELF.
1290 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1291 lt_cv_deplibs_check_method=pass_all ;;
1293 # glibc up to 2.1.1 does not perform some relocations on ARM
1294 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1296 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1300 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1301 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1303 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1308 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1309 lt_cv_file_magic_cmd=/usr/bin/file
1310 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1313 osf3* | osf4* | osf5*)
1314 # this will be overridden with pass_all, but let us keep it just in case
1315 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1316 lt_cv_file_magic_test_file=/shlib/libc.so
1317 lt_cv_deplibs_check_method=pass_all
1321 lt_cv_deplibs_check_method=pass_all
1325 lt_cv_deplibs_check_method=pass_all
1326 lt_cv_file_magic_test_file=/lib/libc.so
1329 sysv5uw[78]* | sysv4*uw2*)
1330 lt_cv_deplibs_check_method=pass_all
1333 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1334 case $host_vendor in
1336 lt_cv_deplibs_check_method=pass_all
1339 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1340 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1348 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1349 file_magic_cmd=$lt_cv_file_magic_cmd
1350 deplibs_check_method=$lt_cv_deplibs_check_method
1352 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1353 echo "configure:1354: checking for object suffix" >&5
1354 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1355 echo $ac_n "(cached) $ac_c" 1>&6
1358 echo 'int i = 1;' > conftest.$ac_ext
1359 if { (eval echo configure:1360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1360 for ac_file in conftest.*; do
1363 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1367 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1372 echo "$ac_t""$ac_cv_objext" 1>&6
1373 OBJEXT=$ac_cv_objext
1374 ac_objext=$ac_cv_objext
1378 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1379 echo "configure:1380: checking for executable suffix" >&5
1380 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1381 echo $ac_n "(cached) $ac_c" 1>&6
1383 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1387 echo 'int main () { return 0; }' > conftest.$ac_ext
1389 if { (eval echo configure:1390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1390 for file in conftest.*; do
1392 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1393 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1397 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1400 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1405 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1406 echo "$ac_t""${ac_cv_exeext}" 1>&6
1409 if test $host != $build; then
1410 ac_tool_prefix=${host_alias}-
1415 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1417 # Only perform the check for file, if the check method requires it
1418 case $deplibs_check_method in
1420 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1421 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1422 echo "configure:1423: checking for ${ac_tool_prefix}file" >&5
1423 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1424 echo $ac_n "(cached) $ac_c" 1>&6
1428 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1431 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1434 ac_save_MAGIC_CMD="$MAGIC_CMD"
1435 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1436 ac_dummy="/usr/bin:$PATH"
1437 for ac_dir in $ac_dummy; do
1438 test -z "$ac_dir" && ac_dir=.
1439 if test -f $ac_dir/${ac_tool_prefix}file; then
1440 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1441 if test -n "$file_magic_test_file"; then
1442 case $deplibs_check_method in
1444 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1445 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1446 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1447 egrep "$file_magic_regex" > /dev/null; then
1452 *** Warning: the command libtool uses to detect shared libraries,
1453 *** $file_magic_cmd, produces output that libtool cannot recognize.
1454 *** The result is that libtool may fail to recognize shared libraries
1455 *** as such. This will affect the creation of libtool libraries that
1456 *** depend on shared libraries, but programs linked with such libtool
1457 *** libraries will work regardless of this problem. Nevertheless, you
1458 *** may want to report the problem to your system manager and/or to
1459 *** bug-libtool@gnu.org
1469 MAGIC_CMD="$ac_save_MAGIC_CMD"
1474 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1475 if test -n "$MAGIC_CMD"; then
1476 echo "$ac_t""$MAGIC_CMD" 1>&6
1478 echo "$ac_t""no" 1>&6
1481 if test -z "$lt_cv_path_MAGIC_CMD"; then
1482 if test -n "$ac_tool_prefix"; then
1483 echo $ac_n "checking for file""... $ac_c" 1>&6
1484 echo "configure:1485: checking for file" >&5
1485 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1486 echo $ac_n "(cached) $ac_c" 1>&6
1490 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1493 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1496 ac_save_MAGIC_CMD="$MAGIC_CMD"
1497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1498 ac_dummy="/usr/bin:$PATH"
1499 for ac_dir in $ac_dummy; do
1500 test -z "$ac_dir" && ac_dir=.
1501 if test -f $ac_dir/file; then
1502 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1503 if test -n "$file_magic_test_file"; then
1504 case $deplibs_check_method in
1506 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1507 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1508 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1509 egrep "$file_magic_regex" > /dev/null; then
1514 *** Warning: the command libtool uses to detect shared libraries,
1515 *** $file_magic_cmd, produces output that libtool cannot recognize.
1516 *** The result is that libtool may fail to recognize shared libraries
1517 *** as such. This will affect the creation of libtool libraries that
1518 *** depend on shared libraries, but programs linked with such libtool
1519 *** libraries will work regardless of this problem. Nevertheless, you
1520 *** may want to report the problem to your system manager and/or to
1521 *** bug-libtool@gnu.org
1531 MAGIC_CMD="$ac_save_MAGIC_CMD"
1536 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1537 if test -n "$MAGIC_CMD"; then
1538 echo "$ac_t""$MAGIC_CMD" 1>&6
1540 echo "$ac_t""no" 1>&6
1552 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1553 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1554 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1555 echo "configure:1556: checking for $ac_word" >&5
1556 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1557 echo $ac_n "(cached) $ac_c" 1>&6
1559 if test -n "$RANLIB"; then
1560 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1562 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1564 for ac_dir in $ac_dummy; do
1565 test -z "$ac_dir" && ac_dir=.
1566 if test -f $ac_dir/$ac_word; then
1567 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1574 RANLIB="$ac_cv_prog_RANLIB"
1575 if test -n "$RANLIB"; then
1576 echo "$ac_t""$RANLIB" 1>&6
1578 echo "$ac_t""no" 1>&6
1582 if test -z "$ac_cv_prog_RANLIB"; then
1583 if test -n "$ac_tool_prefix"; then
1584 # Extract the first word of "ranlib", so it can be a program name with args.
1585 set dummy ranlib; ac_word=$2
1586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1587 echo "configure:1588: checking for $ac_word" >&5
1588 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1589 echo $ac_n "(cached) $ac_c" 1>&6
1591 if test -n "$RANLIB"; then
1592 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1596 for ac_dir in $ac_dummy; do
1597 test -z "$ac_dir" && ac_dir=.
1598 if test -f $ac_dir/$ac_word; then
1599 ac_cv_prog_RANLIB="ranlib"
1604 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1607 RANLIB="$ac_cv_prog_RANLIB"
1608 if test -n "$RANLIB"; then
1609 echo "$ac_t""$RANLIB" 1>&6
1611 echo "$ac_t""no" 1>&6
1619 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1620 set dummy ${ac_tool_prefix}strip; ac_word=$2
1621 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1622 echo "configure:1623: checking for $ac_word" >&5
1623 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1624 echo $ac_n "(cached) $ac_c" 1>&6
1626 if test -n "$STRIP"; then
1627 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1631 for ac_dir in $ac_dummy; do
1632 test -z "$ac_dir" && ac_dir=.
1633 if test -f $ac_dir/$ac_word; then
1634 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1641 STRIP="$ac_cv_prog_STRIP"
1642 if test -n "$STRIP"; then
1643 echo "$ac_t""$STRIP" 1>&6
1645 echo "$ac_t""no" 1>&6
1649 if test -z "$ac_cv_prog_STRIP"; then
1650 if test -n "$ac_tool_prefix"; then
1651 # Extract the first word of "strip", so it can be a program name with args.
1652 set dummy strip; ac_word=$2
1653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1654 echo "configure:1655: checking for $ac_word" >&5
1655 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1656 echo $ac_n "(cached) $ac_c" 1>&6
1658 if test -n "$STRIP"; then
1659 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1663 for ac_dir in $ac_dummy; do
1664 test -z "$ac_dir" && ac_dir=.
1665 if test -f $ac_dir/$ac_word; then
1666 ac_cv_prog_STRIP="strip"
1671 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1674 STRIP="$ac_cv_prog_STRIP"
1675 if test -n "$STRIP"; then
1676 echo "$ac_t""$STRIP" 1>&6
1678 echo "$ac_t""no" 1>&6
1687 # Check for any special flags to pass to ltconfig.
1688 libtool_flags="--cache-file=$cache_file"
1689 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1690 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1691 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1692 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
1693 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1696 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1697 if test "${enable_libtool_lock+set}" = set; then
1698 enableval="$enable_libtool_lock"
1702 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1703 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1705 # Check whether --with-pic or --without-pic was given.
1706 if test "${with_pic+set}" = set; then
1713 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
1714 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
1716 # Some flags need to be propagated to the compiler or linker for good
1720 # Find out which ABI we are using.
1721 echo '#line 1722 "configure"' > conftest.$ac_ext
1722 if { (eval echo configure:1723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1723 case `/usr/bin/file conftest.$ac_objext` in
1739 # Find out which ABI we are using.
1740 echo 'int i;' > conftest.$ac_ext
1741 if { (eval echo configure:1742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1742 case "`/usr/bin/file conftest.o`" in
1755 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1756 SAVE_CFLAGS="$CFLAGS"
1757 CFLAGS="$CFLAGS -belf"
1758 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1759 echo "configure:1760: checking whether the C compiler needs -belf" >&5
1760 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1761 echo $ac_n "(cached) $ac_c" 1>&6
1765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1766 ac_cpp='$CPP $CPPFLAGS'
1767 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1768 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1769 cross_compiling=$ac_cv_prog_cc_cross
1771 cat > conftest.$ac_ext <<EOF
1772 #line 1773 "configure"
1773 #include "confdefs.h"
1779 if { (eval echo configure:1780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1781 lt_cv_cc_needs_belf=yes
1783 echo "configure: failed program was:" >&5
1784 cat conftest.$ac_ext >&5
1786 lt_cv_cc_needs_belf=no
1790 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1791 ac_cpp='$CPP $CPPFLAGS'
1792 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1793 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1794 cross_compiling=$ac_cv_prog_cc_cross
1798 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1799 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1800 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1801 CFLAGS="$SAVE_CFLAGS"
1809 # Save cache, so that ltconfig can load it
1810 cat > confcache <<\EOF
1811 # This file is a shell script that caches the results of configure
1812 # tests run on this system so they can be shared between configure
1813 # scripts and configure runs. It is not useful on other systems.
1814 # If it contains results you don't want to keep, you may remove or edit it.
1816 # By default, configure uses ./config.cache as the cache file,
1817 # creating it if it does not exist already. You can give configure
1818 # the --cache-file=FILE option to use a different cache file; that is
1819 # what configure does when it calls configure scripts in
1820 # subdirectories, so they share the cache.
1821 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1822 # config.status only pays attention to the cache file if you give it the
1823 # --recheck option to rerun configure.
1826 # The following way of writing the cache mishandles newlines in values,
1827 # but we know of no workaround that is simple, portable, and efficient.
1828 # So, don't put newlines in cache variables' values.
1829 # Ultrix sh set writes to stderr and can't be redirected directly,
1830 # and sets the high bit in the cache file unless we assign to the vars.
1832 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1834 # `set' does not quote correctly, so add quotes (double-quote substitution
1835 # turns \\\\ into \\, and sed turns \\ into \).
1837 -e "s/'/'\\\\''/g" \
1838 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1841 # `set' quotes correctly as required by POSIX, so do not add quotes.
1842 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1845 if cmp -s $cache_file confcache; then
1848 if test -w $cache_file; then
1849 echo "updating cache $cache_file"
1850 cat confcache > $cache_file
1852 echo "not updating unwritable cache $cache_file"
1858 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1859 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1860 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1861 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
1862 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
1863 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
1864 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
1865 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1866 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
1867 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1869 # Reload cache, that may have been modified by ltconfig
1870 if test -r "$cache_file"; then
1871 echo "loading cache $cache_file"
1874 echo "creating cache $cache_file"
1879 # This can be used to rebuild libtool when needed
1880 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
1882 # Always use our own libtool.
1883 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1885 # Redirect the config.log output again, so that the ltconfig log is not
1886 # clobbered by the next message.
1887 exec 5>>./config.log
1895 # Find a good install program. We prefer a C program (faster),
1896 # so one script is as good as another. But avoid the broken or
1897 # incompatible versions:
1898 # SysV /etc/install, /usr/sbin/install
1899 # SunOS /usr/etc/install
1900 # IRIX /sbin/install
1902 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1903 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1904 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1905 # ./install, which can be erroneously created by make from ./install.sh.
1906 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1907 echo "configure:1908: checking for a BSD compatible install" >&5
1908 if test -z "$INSTALL"; then
1909 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1910 echo $ac_n "(cached) $ac_c" 1>&6
1912 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1913 for ac_dir in $PATH; do
1914 # Account for people who put trailing slashes in PATH elements.
1916 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1918 # OSF1 and SCO ODT 3.0 have their own names for install.
1919 # Don't use installbsd from OSF since it installs stuff as root
1921 for ac_prog in ginstall scoinst install; do
1922 if test -f $ac_dir/$ac_prog; then
1923 if test $ac_prog = install &&
1924 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1925 # AIX install. It has an incompatible calling convention.
1928 ac_cv_path_install="$ac_dir/$ac_prog -c"
1939 if test "${ac_cv_path_install+set}" = set; then
1940 INSTALL="$ac_cv_path_install"
1942 # As a last resort, use the slow shell script. We don't cache a
1943 # path for INSTALL within a source directory, because that will
1944 # break other packages using the cache if that directory is
1945 # removed, or if the path is relative.
1946 INSTALL="$ac_install_sh"
1949 echo "$ac_t""$INSTALL" 1>&6
1951 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1952 # It thinks the first close brace ends the variable substitution.
1953 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1955 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1957 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1959 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1960 echo "configure:1961: checking whether build environment is sane" >&5
1963 echo timestamp > conftestfile
1964 # Do `set' in a subshell so we don't clobber the current shell's
1965 # arguments. Must try -L first in case configure is actually a
1966 # symlink; some systems play weird games with the mod time of symlinks
1967 # (eg FreeBSD returns the mod time of the symlink's containing
1970 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1971 if test "$*" = "X"; then
1973 set X `ls -t $srcdir/configure conftestfile`
1975 if test "$*" != "X $srcdir/configure conftestfile" \
1976 && test "$*" != "X conftestfile $srcdir/configure"; then
1978 # If neither matched, then we have a broken ls. This can happen
1979 # if, for instance, CONFIG_SHELL is bash and it inherits a
1980 # broken ls alias from the environment. This has actually
1981 # happened. Such a system could not be considered "sane".
1982 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1983 alias in your environment" 1>&2; exit 1; }
1986 test "$2" = conftestfile
1992 { echo "configure: error: newly created file is older than distributed files!
1993 Check your system clock" 1>&2; exit 1; }
1996 echo "$ac_t""yes" 1>&6
1997 if test "$program_transform_name" = s,x,x,; then
1998 program_transform_name=
2000 # Double any \ or $. echo might interpret backslashes.
2001 cat <<\EOF_SED > conftestsed
2002 s,\\,\\\\,g; s,\$,$$,g
2004 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2007 test "$program_prefix" != NONE &&
2008 program_transform_name="s,^,${program_prefix},; $program_transform_name"
2009 # Use a double $ so make ignores it.
2010 test "$program_suffix" != NONE &&
2011 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
2013 # sed with no file args requires a program.
2014 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
2016 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2017 echo "configure:2018: checking whether ${MAKE-make} sets \${MAKE}" >&5
2018 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2019 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2020 echo $ac_n "(cached) $ac_c" 1>&6
2022 cat > conftestmake <<\EOF
2024 @echo 'ac_maketemp="${MAKE}"'
2026 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2027 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2028 if test -n "$ac_maketemp"; then
2029 eval ac_cv_prog_make_${ac_make}_set=yes
2031 eval ac_cv_prog_make_${ac_make}_set=no
2035 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2036 echo "$ac_t""yes" 1>&6
2039 echo "$ac_t""no" 1>&6
2040 SET_MAKE="MAKE=${MAKE-make}"
2048 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
2049 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
2054 missing_dir=`cd $ac_aux_dir && pwd`
2055 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
2056 echo "configure:2057: checking for working aclocal" >&5
2057 # Run test in a subshell; some versions of sh will print an error if
2058 # an executable is not found, even if stderr is redirected.
2059 # Redirect stdin to placate older versions of autoconf. Sigh.
2060 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
2062 echo "$ac_t""found" 1>&6
2064 ACLOCAL="$missing_dir/missing aclocal"
2065 echo "$ac_t""missing" 1>&6
2068 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
2069 echo "configure:2070: checking for working autoconf" >&5
2070 # Run test in a subshell; some versions of sh will print an error if
2071 # an executable is not found, even if stderr is redirected.
2072 # Redirect stdin to placate older versions of autoconf. Sigh.
2073 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
2075 echo "$ac_t""found" 1>&6
2077 AUTOCONF="$missing_dir/missing autoconf"
2078 echo "$ac_t""missing" 1>&6
2081 echo $ac_n "checking for working automake""... $ac_c" 1>&6
2082 echo "configure:2083: checking for working automake" >&5
2083 # Run test in a subshell; some versions of sh will print an error if
2084 # an executable is not found, even if stderr is redirected.
2085 # Redirect stdin to placate older versions of autoconf. Sigh.
2086 if (automake --version) < /dev/null > /dev/null 2>&1; then
2088 echo "$ac_t""found" 1>&6
2090 AUTOMAKE="$missing_dir/missing automake"
2091 echo "$ac_t""missing" 1>&6
2094 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
2095 echo "configure:2096: checking for working autoheader" >&5
2096 # Run test in a subshell; some versions of sh will print an error if
2097 # an executable is not found, even if stderr is redirected.
2098 # Redirect stdin to placate older versions of autoconf. Sigh.
2099 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
2100 AUTOHEADER=autoheader
2101 echo "$ac_t""found" 1>&6
2103 AUTOHEADER="$missing_dir/missing autoheader"
2104 echo "$ac_t""missing" 1>&6
2107 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
2108 echo "configure:2109: checking for working makeinfo" >&5
2109 # Run test in a subshell; some versions of sh will print an error if
2110 # an executable is not found, even if stderr is redirected.
2111 # Redirect stdin to placate older versions of autoconf. Sigh.
2112 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
2114 echo "$ac_t""found" 1>&6
2116 MAKEINFO="$missing_dir/missing makeinfo"
2117 echo "$ac_t""missing" 1>&6
2124 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2125 echo "configure:2126: checking for executable suffix" >&5
2126 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2129 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2133 echo 'int main () { return 0; }' > conftest.$ac_ext
2135 if { (eval echo configure:2136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2136 for file in conftest.*; do
2138 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
2139 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2143 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2146 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2151 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2152 echo "$ac_t""${ac_cv_exeext}" 1>&6
2155 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2156 echo "configure:2157: checking whether to enable maintainer-specific portions of Makefiles" >&5
2157 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2158 if test "${enable_maintainer_mode+set}" = set; then
2159 enableval="$enable_maintainer_mode"
2160 USE_MAINTAINER_MODE=$enableval
2162 USE_MAINTAINER_MODE=no
2165 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2168 if test $USE_MAINTAINER_MODE = yes; then
2169 MAINTAINER_MODE_TRUE=
2170 MAINTAINER_MODE_FALSE='#'
2172 MAINTAINER_MODE_TRUE='#'
2173 MAINTAINER_MODE_FALSE=
2175 MAINT=$MAINTAINER_MODE_TRUE
2179 # Extract the first word of "gcc", so it can be a program name with args.
2180 set dummy gcc; ac_word=$2
2181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2182 echo "configure:2183: checking for $ac_word" >&5
2183 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2186 if test -n "$CC"; then
2187 ac_cv_prog_CC="$CC" # Let the user override the test.
2189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2191 for ac_dir in $ac_dummy; do
2192 test -z "$ac_dir" && ac_dir=.
2193 if test -f $ac_dir/$ac_word; then
2202 if test -n "$CC"; then
2203 echo "$ac_t""$CC" 1>&6
2205 echo "$ac_t""no" 1>&6
2208 if test -z "$CC"; then
2209 # Extract the first word of "cc", so it can be a program name with args.
2210 set dummy cc; ac_word=$2
2211 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2212 echo "configure:2213: checking for $ac_word" >&5
2213 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
2216 if test -n "$CC"; then
2217 ac_cv_prog_CC="$CC" # Let the user override the test.
2219 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2222 for ac_dir in $ac_dummy; do
2223 test -z "$ac_dir" && ac_dir=.
2224 if test -f $ac_dir/$ac_word; then
2225 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2226 ac_prog_rejected=yes
2234 if test $ac_prog_rejected = yes; then
2235 # We found a bogon in the path, so make sure we never use it.
2236 set dummy $ac_cv_prog_CC
2238 if test $# -gt 0; then
2239 # We chose a different compiler from the bogus one.
2240 # However, it has the same basename, so the bogon will be chosen
2241 # first if we set CC to just the basename; use the full file name.
2243 set dummy "$ac_dir/$ac_word" "$@"
2251 if test -n "$CC"; then
2252 echo "$ac_t""$CC" 1>&6
2254 echo "$ac_t""no" 1>&6
2257 if test -z "$CC"; then
2258 case "`uname -s`" in
2260 # Extract the first word of "cl", so it can be a program name with args.
2261 set dummy cl; ac_word=$2
2262 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2263 echo "configure:2264: checking for $ac_word" >&5
2264 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2265 echo $ac_n "(cached) $ac_c" 1>&6
2267 if test -n "$CC"; then
2268 ac_cv_prog_CC="$CC" # Let the user override the test.
2270 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2272 for ac_dir in $ac_dummy; do
2273 test -z "$ac_dir" && ac_dir=.
2274 if test -f $ac_dir/$ac_word; then
2283 if test -n "$CC"; then
2284 echo "$ac_t""$CC" 1>&6
2286 echo "$ac_t""no" 1>&6
2291 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2294 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2295 echo "configure:2296: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2298 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2299 ac_cpp='$CPP $CPPFLAGS'
2300 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2301 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2302 cross_compiling=$ac_cv_prog_cc_cross
2304 cat > conftest.$ac_ext << EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2311 if { (eval echo configure:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2312 ac_cv_prog_cc_works=yes
2313 # If we can't run a trivial program, we are probably using a cross compiler.
2314 if (./conftest; exit) 2>/dev/null; then
2315 ac_cv_prog_cc_cross=no
2317 ac_cv_prog_cc_cross=yes
2320 echo "configure: failed program was:" >&5
2321 cat conftest.$ac_ext >&5
2322 ac_cv_prog_cc_works=no
2326 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2327 ac_cpp='$CPP $CPPFLAGS'
2328 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2329 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2330 cross_compiling=$ac_cv_prog_cc_cross
2332 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2333 if test $ac_cv_prog_cc_works = no; then
2334 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2336 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2337 echo "configure:2338: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2338 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2339 cross_compiling=$ac_cv_prog_cc_cross
2341 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2342 echo "configure:2343: checking whether we are using GNU C" >&5
2343 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2344 echo $ac_n "(cached) $ac_c" 1>&6
2346 cat > conftest.c <<EOF
2351 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2358 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2360 if test $ac_cv_prog_gcc = yes; then
2366 ac_test_CFLAGS="${CFLAGS+set}"
2367 ac_save_CFLAGS="$CFLAGS"
2369 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2370 echo "configure:2371: checking whether ${CC-cc} accepts -g" >&5
2371 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2374 echo 'void f(){}' > conftest.c
2375 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2384 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2385 if test "$ac_test_CFLAGS" = set; then
2386 CFLAGS="$ac_save_CFLAGS"
2387 elif test $ac_cv_prog_cc_g = yes; then
2388 if test "$GCC" = yes; then
2394 if test "$GCC" = yes; then
2409 mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS; TARGETDIR=mips;;
2410 i*86-*-linux*) TARGET=X86; TARGETDIR=x86;;
2411 i*86-*-solaris*) TARGET=X86; TARGETDIR=x86;;
2412 i*86-*-beos*) TARGET=X86; TARGETDIR=x86;;
2413 i*86-*-freebsd*) TARGET=X86; TARGETDIR=x86;;
2414 i*86-*-netbsdelf*) TARGET=X86; TARGETDIR=x86;;
2415 i*86-*-win32*) TARGET=X86_WIN32; TARGETDIR=x86;;
2416 i*86-*-cygwin*) TARGET=X86_WIN32; TARGETDIR=x86;;
2417 i*86-*-mingw*) TARGET=X86_WIN32; TARGETDIR=x86;;
2418 sparc-sun-4*) TARGET=SPARC; TARGETDIR=sparc;;
2419 sparc*-sun-*) TARGET=SPARC; TARGETDIR=sparc;;
2420 sparc-*-linux* | sparc-*-netbsdelf*) TARGET=SPARC; TARGETDIR=sparc;;
2421 sparc64-*-linux* | sparc64-*-netbsd*) TARGET=SPARC; TARGETDIR=sparc;;
2422 alpha*-*-linux* | alpha*-*-osf* | alpha*-*-freebsd* | alpha*-*-netbsd*) TARGET=ALPHA; TARGETDIR=alpha;;
2423 ia64*-*-*) TARGET=IA64; TARGETDIR=ia64;;
2424 m68k-*-linux*) TARGET=M68K; TARGETDIR=m68k;;
2426 mips*-*-linux*) TARGET=MIPS_LINUX; TARGETDIR=mips;;
2427 powerpc-*-linux* | powerpc-*-sysv*) TARGET=POWERPC; TARGETDIR=powerpc;;
2428 powerpc-*-beos*) TARGET=POWERPC; TARGETDIR=powerpc;;
2429 powerpc-*-darwin*) TARGET=POWERPC_DARWIN; TARGETDIR=powerpc;;
2430 powerpc-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
2431 rs6000-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
2432 arm*-*-linux-*) TARGET=ARM; TARGETDIR=arm;;
2433 s390-*-linux-*) TARGET=S390; TARGETDIR=s390;;
2434 x86_64-*-linux*) TARGET=X86_64; TARGETDIR=x86;;
2435 sh-*-linux* | sh[34]*-*-linux*) TARGET=SH; TARGETDIR=sh;;
2438 if test $TARGETDIR = unknown; then
2439 { echo "configure: error: "libffi has not been ported to $host."" 1>&2; exit 1; }
2444 if test ${TARGET}${ac_cv_prog_gcc} = MIPSyes; then
2453 if test ${TARGET}${ac_cv_prog_gcc} = MIPSno; then
2462 if test x$TARGET = xMIPS_LINUX; then
2464 MIPS_LINUX_FALSE='#'
2471 if test x$TARGET = xSPARC; then
2480 if test x$TARGET = xX86; then
2489 if test x$TARGET = xX86_WIN32; then
2498 if test x$TARGET = xALPHA; then
2507 if test x$TARGET = xIA64; then
2516 if test x$TARGET = xM68K; then
2525 if test x$TARGET = xPOWERPC; then
2534 if test x$TARGET = xPOWERPC_AIX; then
2536 POWERPC_AIX_FALSE='#'
2538 POWERPC_AIX_TRUE='#'
2543 if test x$TARGET = xPOWERPC_DARWIN; then
2544 POWERPC_DARWIN_TRUE=
2545 POWERPC_DARWIN_FALSE='#'
2547 POWERPC_DARWIN_TRUE='#'
2548 POWERPC_DARWIN_FALSE=
2552 if test x$TARGET = xARM; then
2561 if test x$TARGET = xS390; then
2570 if test x$TARGET = xX86_64; then
2579 if test x$TARGET = xSH; then
2587 if test x$TARGET = xMIPS_LINUX; then
2591 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2592 echo "configure:2593: checking how to run the C preprocessor" >&5
2593 # On Suns, sometimes $CPP names a directory.
2594 if test -n "$CPP" && test -d "$CPP"; then
2597 if test -z "$CPP"; then
2598 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2599 echo $ac_n "(cached) $ac_c" 1>&6
2601 # This must be in double quotes, not single quotes, because CPP may get
2602 # substituted into the Makefile and "${CC-cc}" will confuse make.
2604 # On the NeXT, cc -E runs the code through the compiler's parser,
2605 # not just through cpp.
2606 cat > conftest.$ac_ext <<EOF
2607 #line 2608 "configure"
2608 #include "confdefs.h"
2612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2613 { (eval echo configure:2614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2615 if test -z "$ac_err"; then
2619 echo "configure: failed program was:" >&5
2620 cat conftest.$ac_ext >&5
2622 CPP="${CC-cc} -E -traditional-cpp"
2623 cat > conftest.$ac_ext <<EOF
2624 #line 2625 "configure"
2625 #include "confdefs.h"
2629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2630 { (eval echo configure:2631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2631 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2632 if test -z "$ac_err"; then
2636 echo "configure: failed program was:" >&5
2637 cat conftest.$ac_ext >&5
2639 CPP="${CC-cc} -nologo -E"
2640 cat > conftest.$ac_ext <<EOF
2641 #line 2642 "configure"
2642 #include "confdefs.h"
2646 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2647 { (eval echo configure:2648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2648 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2649 if test -z "$ac_err"; then
2653 echo "configure: failed program was:" >&5
2654 cat conftest.$ac_ext >&5
2663 ac_cv_prog_CPP="$CPP"
2665 CPP="$ac_cv_prog_CPP"
2667 ac_cv_prog_CPP="$CPP"
2669 echo "$ac_t""$CPP" 1>&6
2671 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2672 echo "configure:2673: checking for ANSI C header files" >&5
2673 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2674 echo $ac_n "(cached) $ac_c" 1>&6
2676 cat > conftest.$ac_ext <<EOF
2677 #line 2678 "configure"
2678 #include "confdefs.h"
2684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2685 { (eval echo configure:2686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2687 if test -z "$ac_err"; then
2689 ac_cv_header_stdc=yes
2692 echo "configure: failed program was:" >&5
2693 cat conftest.$ac_ext >&5
2695 ac_cv_header_stdc=no
2699 if test $ac_cv_header_stdc = yes; then
2700 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2701 cat > conftest.$ac_ext <<EOF
2702 #line 2703 "configure"
2703 #include "confdefs.h"
2706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2707 egrep "memchr" >/dev/null 2>&1; then
2711 ac_cv_header_stdc=no
2717 if test $ac_cv_header_stdc = yes; then
2718 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2719 cat > conftest.$ac_ext <<EOF
2720 #line 2721 "configure"
2721 #include "confdefs.h"
2724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2725 egrep "free" >/dev/null 2>&1; then
2729 ac_cv_header_stdc=no
2735 if test $ac_cv_header_stdc = yes; then
2736 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2737 if test "$cross_compiling" = yes; then
2740 cat > conftest.$ac_ext <<EOF
2741 #line 2742 "configure"
2742 #include "confdefs.h"
2744 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2745 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2746 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2747 int main () { int i; for (i = 0; i < 256; i++)
2748 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2752 if { (eval echo configure:2753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2756 echo "configure: failed program was:" >&5
2757 cat conftest.$ac_ext >&5
2759 ac_cv_header_stdc=no
2767 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2768 if test $ac_cv_header_stdc = yes; then
2769 cat >> confdefs.h <<\EOF
2770 #define STDC_HEADERS 1
2775 for ac_func in memcpy
2777 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2778 echo "configure:2779: checking for $ac_func" >&5
2779 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2780 echo $ac_n "(cached) $ac_c" 1>&6
2782 cat > conftest.$ac_ext <<EOF
2783 #line 2784 "configure"
2784 #include "confdefs.h"
2785 /* System header to define __stub macros and hopefully few prototypes,
2786 which can conflict with char $ac_func(); below. */
2788 /* Override any gcc2 internal prototype to avoid an error. */
2789 /* We use char because int might match the return type of a gcc2
2790 builtin and then its argument prototype would still apply. */
2795 /* The GNU C library defines this for functions which it implements
2796 to always fail with ENOSYS. Some functions are actually named
2797 something starting with __ and the normal name is an alias. */
2798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2806 if { (eval echo configure:2807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2808 eval "ac_cv_func_$ac_func=yes"
2810 echo "configure: failed program was:" >&5
2811 cat conftest.$ac_ext >&5
2813 eval "ac_cv_func_$ac_func=no"
2818 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2819 echo "$ac_t""yes" 1>&6
2820 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2821 cat >> confdefs.h <<EOF
2822 #define $ac_tr_func 1
2826 echo "$ac_t""no" 1>&6
2830 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2831 # for constant arguments. Useless!
2832 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2833 echo "configure:2834: checking for working alloca.h" >&5
2834 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2835 echo $ac_n "(cached) $ac_c" 1>&6
2837 cat > conftest.$ac_ext <<EOF
2838 #line 2839 "configure"
2839 #include "confdefs.h"
2842 char *p = alloca(2 * sizeof(int));
2845 if { (eval echo configure:2846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2847 ac_cv_header_alloca_h=yes
2849 echo "configure: failed program was:" >&5
2850 cat conftest.$ac_ext >&5
2852 ac_cv_header_alloca_h=no
2857 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2858 if test $ac_cv_header_alloca_h = yes; then
2859 cat >> confdefs.h <<\EOF
2860 #define HAVE_ALLOCA_H 1
2865 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2866 echo "configure:2867: checking for alloca" >&5
2867 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2868 echo $ac_n "(cached) $ac_c" 1>&6
2870 cat > conftest.$ac_ext <<EOF
2871 #line 2872 "configure"
2872 #include "confdefs.h"
2875 # define alloca __builtin_alloca
2878 # include <malloc.h>
2879 # define alloca _alloca
2882 # include <alloca.h>
2887 # ifndef alloca /* predefined by HP cc +Olibcalls */
2896 char *p = (char *) alloca(1);
2899 if { (eval echo configure:2900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2901 ac_cv_func_alloca_works=yes
2903 echo "configure: failed program was:" >&5
2904 cat conftest.$ac_ext >&5
2906 ac_cv_func_alloca_works=no
2911 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2912 if test $ac_cv_func_alloca_works = yes; then
2913 cat >> confdefs.h <<\EOF
2914 #define HAVE_ALLOCA 1
2919 if test $ac_cv_func_alloca_works = no; then
2920 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2921 # that cause trouble. Some versions do not even contain alloca or
2922 # contain a buggy version. If you still want to use their alloca,
2923 # use ar to extract alloca.o from them instead of compiling alloca.c.
2924 ALLOCA=alloca.${ac_objext}
2925 cat >> confdefs.h <<\EOF
2930 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2931 echo "configure:2932: checking whether alloca needs Cray hooks" >&5
2932 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2933 echo $ac_n "(cached) $ac_c" 1>&6
2935 cat > conftest.$ac_ext <<EOF
2936 #line 2937 "configure"
2937 #include "confdefs.h"
2938 #if defined(CRAY) && ! defined(CRAY2)
2945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2946 egrep "webecray" >/dev/null 2>&1; then
2957 echo "$ac_t""$ac_cv_os_cray" 1>&6
2958 if test $ac_cv_os_cray = yes; then
2959 for ac_func in _getb67 GETB67 getb67; do
2960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2961 echo "configure:2962: checking for $ac_func" >&5
2962 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2963 echo $ac_n "(cached) $ac_c" 1>&6
2965 cat > conftest.$ac_ext <<EOF
2966 #line 2967 "configure"
2967 #include "confdefs.h"
2968 /* System header to define __stub macros and hopefully few prototypes,
2969 which can conflict with char $ac_func(); below. */
2971 /* Override any gcc2 internal prototype to avoid an error. */
2972 /* We use char because int might match the return type of a gcc2
2973 builtin and then its argument prototype would still apply. */
2978 /* The GNU C library defines this for functions which it implements
2979 to always fail with ENOSYS. Some functions are actually named
2980 something starting with __ and the normal name is an alias. */
2981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2989 if { (eval echo configure:2990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2991 eval "ac_cv_func_$ac_func=yes"
2993 echo "configure: failed program was:" >&5
2994 cat conftest.$ac_ext >&5
2996 eval "ac_cv_func_$ac_func=no"
3001 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3002 echo "$ac_t""yes" 1>&6
3003 cat >> confdefs.h <<EOF
3004 #define CRAY_STACKSEG_END $ac_func
3009 echo "$ac_t""no" 1>&6
3015 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3016 echo "configure:3017: checking stack direction for C alloca" >&5
3017 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3018 echo $ac_n "(cached) $ac_c" 1>&6
3020 if test "$cross_compiling" = yes; then
3021 ac_cv_c_stack_direction=0
3023 cat > conftest.$ac_ext <<EOF
3024 #line 3025 "configure"
3025 #include "confdefs.h"
3026 find_stack_direction ()
3028 static char *addr = 0;
3033 return find_stack_direction ();
3036 return (&dummy > addr) ? 1 : -1;
3040 exit (find_stack_direction() < 0);
3043 if { (eval echo configure:3044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3045 ac_cv_c_stack_direction=1
3047 echo "configure: failed program was:" >&5
3048 cat conftest.$ac_ext >&5
3050 ac_cv_c_stack_direction=-1
3057 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3058 cat >> confdefs.h <<EOF
3059 #define STACK_DIRECTION $ac_cv_c_stack_direction
3065 echo $ac_n "checking size of short""... $ac_c" 1>&6
3066 echo "configure:3067: checking size of short" >&5
3067 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3068 echo $ac_n "(cached) $ac_c" 1>&6
3070 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3071 cat > conftest.$ac_ext <<EOF
3072 #line 3073 "configure"
3073 #include "confdefs.h"
3074 #include "confdefs.h"
3075 #include <sys/types.h>
3079 switch (0) case 0: case (sizeof (short) == $ac_size):;
3082 if { (eval echo configure:3083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3084 ac_cv_sizeof_short=$ac_size
3086 echo "configure: failed program was:" >&5
3087 cat conftest.$ac_ext >&5
3090 if test x$ac_cv_sizeof_short != x ; then break; fi
3095 if test x$ac_cv_sizeof_short = x ; then
3096 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
3098 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3099 cat >> confdefs.h <<EOF
3100 #define SIZEOF_SHORT $ac_cv_sizeof_short
3104 echo $ac_n "checking size of int""... $ac_c" 1>&6
3105 echo "configure:3106: checking size of int" >&5
3106 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3107 echo $ac_n "(cached) $ac_c" 1>&6
3109 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3110 cat > conftest.$ac_ext <<EOF
3111 #line 3112 "configure"
3112 #include "confdefs.h"
3113 #include "confdefs.h"
3114 #include <sys/types.h>
3118 switch (0) case 0: case (sizeof (int) == $ac_size):;
3121 if { (eval echo configure:3122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3123 ac_cv_sizeof_int=$ac_size
3125 echo "configure: failed program was:" >&5
3126 cat conftest.$ac_ext >&5
3129 if test x$ac_cv_sizeof_int != x ; then break; fi
3134 if test x$ac_cv_sizeof_int = x ; then
3135 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
3137 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3138 cat >> confdefs.h <<EOF
3139 #define SIZEOF_INT $ac_cv_sizeof_int
3143 echo $ac_n "checking size of long""... $ac_c" 1>&6
3144 echo "configure:3145: checking size of long" >&5
3145 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3146 echo $ac_n "(cached) $ac_c" 1>&6
3148 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3149 cat > conftest.$ac_ext <<EOF
3150 #line 3151 "configure"
3151 #include "confdefs.h"
3152 #include "confdefs.h"
3153 #include <sys/types.h>
3157 switch (0) case 0: case (sizeof (long) == $ac_size):;
3160 if { (eval echo configure:3161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3162 ac_cv_sizeof_long=$ac_size
3164 echo "configure: failed program was:" >&5
3165 cat conftest.$ac_ext >&5
3168 if test x$ac_cv_sizeof_long != x ; then break; fi
3173 if test x$ac_cv_sizeof_long = x ; then
3174 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
3176 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3177 cat >> confdefs.h <<EOF
3178 #define SIZEOF_LONG $ac_cv_sizeof_long
3182 echo $ac_n "checking size of long long""... $ac_c" 1>&6
3183 echo "configure:3184: checking size of long long" >&5
3184 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
3185 echo $ac_n "(cached) $ac_c" 1>&6
3187 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3188 cat > conftest.$ac_ext <<EOF
3189 #line 3190 "configure"
3190 #include "confdefs.h"
3191 #include "confdefs.h"
3192 #include <sys/types.h>
3196 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3199 if { (eval echo configure:3200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3201 ac_cv_sizeof_long_long=$ac_size
3203 echo "configure: failed program was:" >&5
3204 cat conftest.$ac_ext >&5
3207 if test x$ac_cv_sizeof_long_long != x ; then break; fi
3212 if test x$ac_cv_sizeof_long_long = x ; then
3213 { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; }
3215 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
3216 cat >> confdefs.h <<EOF
3217 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3221 echo $ac_n "checking size of float""... $ac_c" 1>&6
3222 echo "configure:3223: checking size of float" >&5
3223 if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
3224 echo $ac_n "(cached) $ac_c" 1>&6
3226 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3227 cat > conftest.$ac_ext <<EOF
3228 #line 3229 "configure"
3229 #include "confdefs.h"
3230 #include "confdefs.h"
3231 #include <sys/types.h>
3235 switch (0) case 0: case (sizeof (float) == $ac_size):;
3238 if { (eval echo configure:3239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3240 ac_cv_sizeof_float=$ac_size
3242 echo "configure: failed program was:" >&5
3243 cat conftest.$ac_ext >&5
3246 if test x$ac_cv_sizeof_float != x ; then break; fi
3251 if test x$ac_cv_sizeof_float = x ; then
3252 { echo "configure: error: cannot determine a size for float" 1>&2; exit 1; }
3254 echo "$ac_t""$ac_cv_sizeof_float" 1>&6
3255 cat >> confdefs.h <<EOF
3256 #define SIZEOF_FLOAT $ac_cv_sizeof_float
3260 echo $ac_n "checking size of double""... $ac_c" 1>&6
3261 echo "configure:3262: checking size of double" >&5
3262 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
3263 echo $ac_n "(cached) $ac_c" 1>&6
3265 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3266 cat > conftest.$ac_ext <<EOF
3267 #line 3268 "configure"
3268 #include "confdefs.h"
3269 #include "confdefs.h"
3270 #include <sys/types.h>
3274 switch (0) case 0: case (sizeof (double) == $ac_size):;
3277 if { (eval echo configure:3278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3279 ac_cv_sizeof_double=$ac_size
3281 echo "configure: failed program was:" >&5
3282 cat conftest.$ac_ext >&5
3285 if test x$ac_cv_sizeof_double != x ; then break; fi
3290 if test x$ac_cv_sizeof_double = x ; then
3291 { echo "configure: error: cannot determine a size for double" 1>&2; exit 1; }
3293 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
3294 cat >> confdefs.h <<EOF
3295 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
3299 echo $ac_n "checking size of long double""... $ac_c" 1>&6
3300 echo "configure:3301: checking size of long double" >&5
3301 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
3302 echo $ac_n "(cached) $ac_c" 1>&6
3304 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3305 cat > conftest.$ac_ext <<EOF
3306 #line 3307 "configure"
3307 #include "confdefs.h"
3308 #include "confdefs.h"
3309 #include <sys/types.h>
3313 switch (0) case 0: case (sizeof (long double) == $ac_size):;
3316 if { (eval echo configure:3317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3318 ac_cv_sizeof_long_double=$ac_size
3320 echo "configure: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3324 if test x$ac_cv_sizeof_long_double != x ; then break; fi
3329 if test x$ac_cv_sizeof_long_double = x ; then
3330 { echo "configure: error: cannot determine a size for long double" 1>&2; exit 1; }
3332 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
3333 cat >> confdefs.h <<EOF
3334 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3339 echo $ac_n "checking size of void *""... $ac_c" 1>&6
3340 echo "configure:3341: checking size of void *" >&5
3341 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
3342 echo $ac_n "(cached) $ac_c" 1>&6
3344 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3345 cat > conftest.$ac_ext <<EOF
3346 #line 3347 "configure"
3347 #include "confdefs.h"
3348 #include "confdefs.h"
3349 #include <sys/types.h>
3353 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3356 if { (eval echo configure:3357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3358 ac_cv_sizeof_void_p=$ac_size
3360 echo "configure: failed program was:" >&5
3361 cat conftest.$ac_ext >&5
3364 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3369 if test x$ac_cv_sizeof_void_p = x ; then
3370 { echo "configure: error: cannot determine a size for void *" 1>&2; exit 1; }
3372 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
3373 cat >> confdefs.h <<EOF
3374 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3378 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3379 echo "configure:3380: checking whether byte ordering is bigendian" >&5
3380 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3381 echo $ac_n "(cached) $ac_c" 1>&6
3383 ac_cv_c_bigendian=unknown
3384 # See if sys/param.h defines the BYTE_ORDER macro.
3385 cat > conftest.$ac_ext <<EOF
3386 #line 3387 "configure"
3387 #include "confdefs.h"
3388 #include <sys/types.h>
3389 #include <sys/param.h>
3392 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3397 if { (eval echo configure:3398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3399 # It does; now see whether it defined to BIG_ENDIAN or not.
3400 cat > conftest.$ac_ext <<EOF
3401 #line 3402 "configure"
3402 #include "confdefs.h"
3403 #include <sys/types.h>
3404 #include <sys/param.h>
3407 #if BYTE_ORDER != BIG_ENDIAN
3412 if { (eval echo configure:3413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3414 ac_cv_c_bigendian=yes
3416 echo "configure: failed program was:" >&5
3417 cat conftest.$ac_ext >&5
3419 ac_cv_c_bigendian=no
3423 echo "configure: failed program was:" >&5
3424 cat conftest.$ac_ext >&5
3427 if test $ac_cv_c_bigendian = unknown; then
3428 if test "$cross_compiling" = yes; then
3429 echo $ac_n "cross-compiling... " 2>&6
3431 cat > conftest.$ac_ext <<EOF
3432 #line 3433 "configure"
3433 #include "confdefs.h"
3435 /* Are we little or big endian? From Harbison&Steele. */
3439 char c[sizeof (long)];
3442 exit (u.c[sizeof (long) - 1] == 1);
3445 if { (eval echo configure:3446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3447 ac_cv_c_bigendian=no
3449 echo "configure: failed program was:" >&5
3450 cat conftest.$ac_ext >&5
3452 ac_cv_c_bigendian=yes
3460 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3461 if test $ac_cv_c_bigendian = unknown; then
3462 echo $ac_n "checking to probe for byte ordering""... $ac_c" 1>&6
3463 echo "configure:3464: checking to probe for byte ordering" >&5
3465 cat >conftest.c <<EOF
3466 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3467 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3468 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
3469 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3470 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3471 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
3472 int main() { _ascii (); _ebcdic (); return 0; }
3474 if test -f conftest.c ; then
3475 if ${CC-cc} ${CFLAGS} conftest.c -o conftest.o && test -f conftest.o ; then
3476 if test `grep -l BIGenDianSyS conftest.o` ; then
3477 echo $ac_n ' big endian probe OK, ' 1>&6
3478 ac_cv_c_bigendian=yes
3480 if test `grep -l LiTTleEnDian conftest.o` ; then
3481 echo $ac_n ' little endian probe OK, ' 1>&6
3482 if test $ac_cv_c_bigendian = yes ; then
3483 ac_cv_c_bigendian=unknown;
3485 ac_cv_c_bigendian=no
3488 echo $ac_n 'guessing bigendian ... ' >&6
3491 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3493 if test $ac_cv_c_bigendian = yes; then
3494 cat >> confdefs.h <<\EOF
3495 #define WORDS_BIGENDIAN 1
3502 cat >> confdefs.h <<EOF
3503 #define BYTEORDER $BYTEORDER
3506 if test $ac_cv_c_bigendian = unknown; then
3507 { echo "configure: error: unknown endianess - sorry" 1>&2; exit 1; }
3511 if test x$TARGET = xSPARC; then
3512 echo $ac_n "checking assembler and linker support unaligned pc related relocs""... $ac_c" 1>&6
3513 echo "configure:3514: checking assembler and linker support unaligned pc related relocs" >&5
3514 if eval "test \"`echo '$''{'libffi_cv_as_sparc_ua_pcrel'+set}'`\" = set"; then
3515 echo $ac_n "(cached) $ac_c" 1>&6
3518 save_CFLAGS="$CFLAGS"
3519 save_LDFLAGS="$LDFLAGS"
3520 CFLAGS="$CFLAGS -fpic"
3521 LDFLAGS="$LDFLAGS -shared"
3522 cat > conftest.$ac_ext <<EOF
3523 #line 3524 "configure"
3524 #include "confdefs.h"
3525 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
3530 if { (eval echo configure:3531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3532 libffi_cv_as_sparc_ua_pcrel=yes
3534 echo "configure: failed program was:" >&5
3535 cat conftest.$ac_ext >&5
3537 libffi_cv_as_sparc_ua_pcrel=no
3540 CFLAGS="$save_CFLAGS"
3541 LDFLAGS="$save_LDFLAGS"
3544 echo "$ac_t""$libffi_cv_as_sparc_ua_pcrel" 1>&6
3545 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
3546 cat >> confdefs.h <<\EOF
3547 #define HAVE_AS_SPARC_UA_PCREL 1
3558 # Check whether --enable-debug or --disable-debug was given.
3559 if test "${enable_debug+set}" = set; then
3560 enableval="$enable_debug"
3561 if test "$enable_debug" = "yes"; then
3562 cat >> confdefs.h <<\EOF
3570 # Check whether --enable-structs or --disable-structs was given.
3571 if test "${enable_structs+set}" = set; then
3572 enableval="$enable_structs"
3573 if test "$enable_structs" = "no"; then
3574 cat >> confdefs.h <<\EOF
3575 #define FFI_NO_STRUCTS 1
3582 # Check whether --enable-raw-api or --disable-raw-api was given.
3583 if test "${enable_raw_api+set}" = set; then
3584 enableval="$enable_raw_api"
3585 if test "$enable_raw_api" = "no"; then
3586 cat >> confdefs.h <<\EOF
3587 #define FFI_NO_RAW_API 1
3594 # Check whether --enable-purify-safety or --disable-purify-safety was given.
3595 if test "${enable_purify_safety+set}" = set; then
3596 enableval="$enable_purify_safety"
3597 if test "$enable_purify_safety" = "yes"; then
3598 cat >> confdefs.h <<\EOF
3599 #define USING_PURIFY 1
3608 if test -z "$with_cross_host"; then
3610 USE_LIBDIR_FALSE='#'
3616 if test "${multilib}" = "yes"; then
3617 multilib_arg="--enable-multilib"
3623 cat > confcache <<\EOF
3624 # This file is a shell script that caches the results of configure
3625 # tests run on this system so they can be shared between configure
3626 # scripts and configure runs. It is not useful on other systems.
3627 # If it contains results you don't want to keep, you may remove or edit it.
3629 # By default, configure uses ./config.cache as the cache file,
3630 # creating it if it does not exist already. You can give configure
3631 # the --cache-file=FILE option to use a different cache file; that is
3632 # what configure does when it calls configure scripts in
3633 # subdirectories, so they share the cache.
3634 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3635 # config.status only pays attention to the cache file if you give it the
3636 # --recheck option to rerun configure.
3639 # The following way of writing the cache mishandles newlines in values,
3640 # but we know of no workaround that is simple, portable, and efficient.
3641 # So, don't put newlines in cache variables' values.
3642 # Ultrix sh set writes to stderr and can't be redirected directly,
3643 # and sets the high bit in the cache file unless we assign to the vars.
3645 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3647 # `set' does not quote correctly, so add quotes (double-quote substitution
3648 # turns \\\\ into \\, and sed turns \\ into \).
3650 -e "s/'/'\\\\''/g" \
3651 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3654 # `set' quotes correctly as required by POSIX, so do not add quotes.
3655 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3658 if cmp -s $cache_file confcache; then
3661 if test -w $cache_file; then
3662 echo "updating cache $cache_file"
3663 cat confcache > $cache_file
3665 echo "not updating unwritable cache $cache_file"
3670 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3672 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3673 # Let make expand exec_prefix.
3674 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3676 # Any assignment to VPATH causes Sun make to only execute
3677 # the first set of double-colon rules, so remove it if not needed.
3678 # If there is a colon in the path, we need to keep it.
3679 if test "x$srcdir" = x.; then
3680 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3683 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3685 DEFS=-DHAVE_CONFIG_H
3687 # Without the "./", some shells look in PATH for config.status.
3688 : ${CONFIG_STATUS=./config.status}
3690 echo creating $CONFIG_STATUS
3691 rm -f $CONFIG_STATUS
3692 cat > $CONFIG_STATUS <<EOF
3694 # Generated automatically by configure.
3695 # Run this file to recreate the current configuration.
3696 # This directory was configured as follows,
3697 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3699 # $0 $ac_configure_args
3701 # Compiler output produced by configure, useful for debugging
3702 # configure, is in ./config.log if it exists.
3704 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3707 case "\$ac_option" in
3708 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3709 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3710 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3711 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3712 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3714 -help | --help | --hel | --he | --h)
3715 echo "\$ac_cs_usage"; exit 0 ;;
3716 *) echo "\$ac_cs_usage"; exit 1 ;;
3720 ac_given_srcdir=$srcdir
3721 ac_given_INSTALL="$INSTALL"
3723 trap 'rm -fr `echo "include/Makefile include/ffi.h Makefile fficonfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3725 cat >> $CONFIG_STATUS <<EOF
3727 # Protect against being on the right side of a sed subst in config.status.
3728 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3729 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3733 s%@CFLAGS@%$CFLAGS%g
3734 s%@CPPFLAGS@%$CPPFLAGS%g
3735 s%@CXXFLAGS@%$CXXFLAGS%g
3736 s%@FFLAGS@%$FFLAGS%g
3738 s%@LDFLAGS@%$LDFLAGS%g
3740 s%@exec_prefix@%$exec_prefix%g
3741 s%@prefix@%$prefix%g
3742 s%@program_transform_name@%$program_transform_name%g
3743 s%@bindir@%$bindir%g
3744 s%@sbindir@%$sbindir%g
3745 s%@libexecdir@%$libexecdir%g
3746 s%@datadir@%$datadir%g
3747 s%@sysconfdir@%$sysconfdir%g
3748 s%@sharedstatedir@%$sharedstatedir%g
3749 s%@localstatedir@%$localstatedir%g
3750 s%@libdir@%$libdir%g
3751 s%@includedir@%$includedir%g
3752 s%@oldincludedir@%$oldincludedir%g
3753 s%@infodir@%$infodir%g
3754 s%@mandir@%$mandir%g
3755 s%@libffi_basedir@%$libffi_basedir%g
3757 s%@host_alias@%$host_alias%g
3758 s%@host_cpu@%$host_cpu%g
3759 s%@host_vendor@%$host_vendor%g
3760 s%@host_os@%$host_os%g
3762 s%@build_alias@%$build_alias%g
3763 s%@build_cpu@%$build_cpu%g
3764 s%@build_vendor@%$build_vendor%g
3765 s%@build_os@%$build_os%g