2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="application.make"
275 ac_default_prefix=`if test "x$GNUSTEP_SYSTEM_ROOT" = "x"; then
282 echo "$GNUSTEP_SYSTEM_ROOT" ;
284 # Factoring default headers for most tests.
285 ac_includes_default="\
288 # include <sys/types.h>
291 # include <sys/stat.h>
302 # if !STDC_HEADERS && HAVE_MEMORY_H
308 # include <strings.h>
311 # include <inttypes.h>
321 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os ac_cv_library_combo cc_cppprecomp cc_bundle CYGWIN RANLIB AR DLLTOOL ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S TAR CHOWN GNUSTEP_ROOT root_prefix MAKEFILES_SUFFIX HOST_INSTALL GNUSTEP_LOCAL_ROOT GNUSTEP_NETWORK_ROOT GNUSTEP_USER_ROOT GNUSTEP_FLATTENED GNUSTEP_MULTI_PLATFORM BACKEND_BUNDLE EGREP objc_threaded ac_cv_objc_threaded USE_OBJC_EXCEPTIONS AUTO_DEPENDENCIES INCLUDES LIB_DIR OBJCFLAGS GNUSTEP_STRIP_MAKEFILES GNUSTEP_MOVE_OBSOLETE GNUSTEP_MAKE_VERSION GNUSTEP_MAKE_MAJOR_VERSION GNUSTEP_MAKE_MINOR_VERSION GNUSTEP_MAKE_SUBMINOR_VERSION clean_target_os clean_target_cpu clean_target_vendor LIBOBJS LTLIBOBJS'
324 # Initialize some variables set by options.
326 ac_init_version=false
327 # The variables have the same names as the options, with
328 # dashes changed to underlines.
336 program_transform_name=s,x,x,
344 # Installation directory options.
345 # These are left unexpanded so users can "make install exec_prefix=/foo"
346 # and all the variables that are supposed to be based on exec_prefix
347 # by default will actually change.
348 # Use braces instead of parens because sh, perl, etc. also accept them.
349 bindir='${exec_prefix}/bin'
350 sbindir='${exec_prefix}/sbin'
351 libexecdir='${exec_prefix}/libexec'
352 datadir='${prefix}/share'
353 sysconfdir='${prefix}/etc'
354 sharedstatedir='${prefix}/com'
355 localstatedir='${prefix}/var'
356 libdir='${exec_prefix}/lib'
357 includedir='${prefix}/include'
358 oldincludedir='/usr/include'
359 infodir='${prefix}/info'
360 mandir='${prefix}/man'
365 # If the previous option needs an argument, assign it.
366 if test -n "$ac_prev"; then
367 eval "$ac_prev=\$ac_option"
372 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
374 # Accept the important Cygnus configure options, so we can diagnose typos.
378 -bindir | --bindir | --bindi | --bind | --bin | --bi)
380 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
383 -build | --build | --buil | --bui | --bu)
384 ac_prev=build_alias ;;
385 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
386 build_alias=$ac_optarg ;;
388 -cache-file | --cache-file | --cache-fil | --cache-fi \
389 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
390 ac_prev=cache_file ;;
391 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
392 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
393 cache_file=$ac_optarg ;;
396 cache_file=config.cache ;;
398 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
400 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
402 datadir=$ac_optarg ;;
404 -disable-* | --disable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 eval "enable_$ac_feature=no" ;;
413 -enable-* | --enable-*)
414 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
415 # Reject names that are not valid shell variable names.
416 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
417 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
418 { (exit 1); exit 1; }; }
419 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
421 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
424 eval "enable_$ac_feature='$ac_optarg'" ;;
426 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
427 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
428 | --exec | --exe | --ex)
429 ac_prev=exec_prefix ;;
430 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
431 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
432 | --exec=* | --exe=* | --ex=*)
433 exec_prefix=$ac_optarg ;;
435 -gas | --gas | --ga | --g)
436 # Obsolete; use --with-gas.
439 -help | --help | --hel | --he | -h)
441 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
442 ac_init_help=recursive ;;
443 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
444 ac_init_help=short ;;
446 -host | --host | --hos | --ho)
447 ac_prev=host_alias ;;
448 -host=* | --host=* | --hos=* | --ho=*)
449 host_alias=$ac_optarg ;;
451 -includedir | --includedir | --includedi | --included | --include \
452 | --includ | --inclu | --incl | --inc)
453 ac_prev=includedir ;;
454 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
455 | --includ=* | --inclu=* | --incl=* | --inc=*)
456 includedir=$ac_optarg ;;
458 -infodir | --infodir | --infodi | --infod | --info | --inf)
460 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
461 infodir=$ac_optarg ;;
463 -libdir | --libdir | --libdi | --libd)
465 -libdir=* | --libdir=* | --libdi=* | --libd=*)
468 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
469 | --libexe | --libex | --libe)
470 ac_prev=libexecdir ;;
471 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
472 | --libexe=* | --libex=* | --libe=*)
473 libexecdir=$ac_optarg ;;
475 -localstatedir | --localstatedir | --localstatedi | --localstated \
476 | --localstate | --localstat | --localsta | --localst \
477 | --locals | --local | --loca | --loc | --lo)
478 ac_prev=localstatedir ;;
479 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
480 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
481 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
482 localstatedir=$ac_optarg ;;
484 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
486 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
490 # Obsolete; use --without-fp.
493 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
494 | --no-cr | --no-c | -n)
497 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
498 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
501 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
502 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
503 | --oldin | --oldi | --old | --ol | --o)
504 ac_prev=oldincludedir ;;
505 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
506 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
507 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
508 oldincludedir=$ac_optarg ;;
510 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
512 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
515 -program-prefix | --program-prefix | --program-prefi | --program-pref \
516 | --program-pre | --program-pr | --program-p)
517 ac_prev=program_prefix ;;
518 -program-prefix=* | --program-prefix=* | --program-prefi=* \
519 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
520 program_prefix=$ac_optarg ;;
522 -program-suffix | --program-suffix | --program-suffi | --program-suff \
523 | --program-suf | --program-su | --program-s)
524 ac_prev=program_suffix ;;
525 -program-suffix=* | --program-suffix=* | --program-suffi=* \
526 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
527 program_suffix=$ac_optarg ;;
529 -program-transform-name | --program-transform-name \
530 | --program-transform-nam | --program-transform-na \
531 | --program-transform-n | --program-transform- \
532 | --program-transform | --program-transfor \
533 | --program-transfo | --program-transf \
534 | --program-trans | --program-tran \
535 | --progr-tra | --program-tr | --program-t)
536 ac_prev=program_transform_name ;;
537 -program-transform-name=* | --program-transform-name=* \
538 | --program-transform-nam=* | --program-transform-na=* \
539 | --program-transform-n=* | --program-transform-=* \
540 | --program-transform=* | --program-transfor=* \
541 | --program-transfo=* | --program-transf=* \
542 | --program-trans=* | --program-tran=* \
543 | --progr-tra=* | --program-tr=* | --program-t=*)
544 program_transform_name=$ac_optarg ;;
546 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
547 | -silent | --silent | --silen | --sile | --sil)
550 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
552 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
554 sbindir=$ac_optarg ;;
556 -sharedstatedir | --sharedstatedir | --sharedstatedi \
557 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
558 | --sharedst | --shareds | --shared | --share | --shar \
560 ac_prev=sharedstatedir ;;
561 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
562 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
563 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
565 sharedstatedir=$ac_optarg ;;
567 -site | --site | --sit)
569 -site=* | --site=* | --sit=*)
572 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
574 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
577 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
578 | --syscon | --sysco | --sysc | --sys | --sy)
579 ac_prev=sysconfdir ;;
580 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
581 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
582 sysconfdir=$ac_optarg ;;
584 -target | --target | --targe | --targ | --tar | --ta | --t)
585 ac_prev=target_alias ;;
586 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
587 target_alias=$ac_optarg ;;
589 -v | -verbose | --verbose | --verbos | --verbo | --verb)
592 -version | --version | --versio | --versi | --vers | -V)
596 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid package name: $ac_package" >&2
600 { (exit 1); exit 1; }; }
601 ac_package=`echo $ac_package| sed 's/-/_/g'`
603 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
606 eval "with_$ac_package='$ac_optarg'" ;;
608 -without-* | --without-*)
609 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
610 # Reject names that are not valid shell variable names.
611 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
612 { echo "$as_me: error: invalid package name: $ac_package" >&2
613 { (exit 1); exit 1; }; }
614 ac_package=`echo $ac_package | sed 's/-/_/g'`
615 eval "with_$ac_package=no" ;;
618 # Obsolete; use --with-x.
621 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
622 | --x-incl | --x-inc | --x-in | --x-i)
623 ac_prev=x_includes ;;
624 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
625 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
626 x_includes=$ac_optarg ;;
628 -x-libraries | --x-libraries | --x-librarie | --x-librari \
629 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
630 ac_prev=x_libraries ;;
631 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
632 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
633 x_libraries=$ac_optarg ;;
635 -*) { echo "$as_me: error: unrecognized option: $ac_option
636 Try \`$0 --help' for more information." >&2
637 { (exit 1); exit 1; }; }
641 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
642 # Reject names that are not valid shell variable names.
643 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
644 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
645 { (exit 1); exit 1; }; }
646 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
647 eval "$ac_envvar='$ac_optarg'"
651 # FIXME: should be removed in autoconf 3.0.
652 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
653 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
654 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
655 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
661 if test -n "$ac_prev"; then
662 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
663 { echo "$as_me: error: missing argument to $ac_option" >&2
664 { (exit 1); exit 1; }; }
667 # Be sure to have absolute paths.
668 for ac_var in exec_prefix prefix
670 eval ac_val=$`echo $ac_var`
672 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
673 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
674 { (exit 1); exit 1; }; };;
678 # Be sure to have absolute paths.
679 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
680 localstatedir libdir includedir oldincludedir infodir mandir
682 eval ac_val=$`echo $ac_var`
684 [\\/$]* | ?:[\\/]* ) ;;
685 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
686 { (exit 1); exit 1; }; };;
690 # There might be people who depend on the old broken behavior: `$host'
691 # used to hold the argument of --host etc.
692 # FIXME: To remove some day.
697 # FIXME: To remove some day.
698 if test "x$host_alias" != x; then
699 if test "x$build_alias" = x; then
700 cross_compiling=maybe
701 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
702 If a cross compiler is detected then cross compile mode will be used." >&2
703 elif test "x$build_alias" != "x$host_alias"; then
709 test -n "$host_alias" && ac_tool_prefix=$host_alias-
711 test "$silent" = yes && exec 6>/dev/null
714 # Find the source files, if location was not specified.
715 if test -z "$srcdir"; then
716 ac_srcdir_defaulted=yes
717 # Try the directory containing this script, then its parent.
718 ac_confdir=`(dirname "$0") 2>/dev/null ||
719 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
720 X"$0" : 'X\(//\)[^/]' \| \
721 X"$0" : 'X\(//\)$' \| \
722 X"$0" : 'X\(/\)' \| \
723 . : '\(.\)' 2>/dev/null ||
725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
726 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
727 /^X\(\/\/\)$/{ s//\1/; q; }
728 /^X\(\/\).*/{ s//\1/; q; }
731 if test ! -r $srcdir/$ac_unique_file; then
735 ac_srcdir_defaulted=no
737 if test ! -r $srcdir/$ac_unique_file; then
738 if test "$ac_srcdir_defaulted" = yes; then
739 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
740 { (exit 1); exit 1; }; }
742 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
743 { (exit 1); exit 1; }; }
746 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
747 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
748 { (exit 1); exit 1; }; }
749 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
750 ac_env_build_alias_set=${build_alias+set}
751 ac_env_build_alias_value=$build_alias
752 ac_cv_env_build_alias_set=${build_alias+set}
753 ac_cv_env_build_alias_value=$build_alias
754 ac_env_host_alias_set=${host_alias+set}
755 ac_env_host_alias_value=$host_alias
756 ac_cv_env_host_alias_set=${host_alias+set}
757 ac_cv_env_host_alias_value=$host_alias
758 ac_env_target_alias_set=${target_alias+set}
759 ac_env_target_alias_value=$target_alias
760 ac_cv_env_target_alias_set=${target_alias+set}
761 ac_cv_env_target_alias_value=$target_alias
762 ac_env_CC_set=${CC+set}
764 ac_cv_env_CC_set=${CC+set}
765 ac_cv_env_CC_value=$CC
766 ac_env_CFLAGS_set=${CFLAGS+set}
767 ac_env_CFLAGS_value=$CFLAGS
768 ac_cv_env_CFLAGS_set=${CFLAGS+set}
769 ac_cv_env_CFLAGS_value=$CFLAGS
770 ac_env_LDFLAGS_set=${LDFLAGS+set}
771 ac_env_LDFLAGS_value=$LDFLAGS
772 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
773 ac_cv_env_LDFLAGS_value=$LDFLAGS
774 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
775 ac_env_CPPFLAGS_value=$CPPFLAGS
776 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
777 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
778 ac_env_CPP_set=${CPP+set}
779 ac_env_CPP_value=$CPP
780 ac_cv_env_CPP_set=${CPP+set}
781 ac_cv_env_CPP_value=$CPP
784 # Report the --help message.
786 if test "$ac_init_help" = "long"; then
787 # Omit some internal or obsolete options to make the list less imposing.
788 # This message is too long to be a string in the A/UX 3.1 sh.
790 \`configure' configures this package to adapt to many kinds of systems.
792 Usage: $0 [OPTION]... [VAR=VALUE]...
794 To assign environment variables (e.g., CC, CFLAGS...), specify them as
795 VAR=VALUE. See below for descriptions of some of the useful variables.
797 Defaults for the options are specified in brackets.
800 -h, --help display this help and exit
801 --help=short display options specific to this package
802 --help=recursive display the short help of all the included packages
803 -V, --version display version information and exit
804 -q, --quiet, --silent do not print \`checking...' messages
805 --cache-file=FILE cache test results in FILE [disabled]
806 -C, --config-cache alias for \`--cache-file=config.cache'
807 -n, --no-create do not create output files
808 --srcdir=DIR find the sources in DIR [configure dir or \`..']
813 Installation directories:
814 --prefix=PREFIX install architecture-independent files in PREFIX
816 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
819 By default, \`make install' will install all the files in
820 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
821 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
822 for instance \`--prefix=\$HOME'.
824 For better control, use the options below.
826 Fine tuning of the installation directories:
827 --bindir=DIR user executables [EPREFIX/bin]
828 --sbindir=DIR system admin executables [EPREFIX/sbin]
829 --libexecdir=DIR program executables [EPREFIX/libexec]
830 --datadir=DIR read-only architecture-independent data [PREFIX/share]
831 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
832 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
833 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
834 --libdir=DIR object code libraries [EPREFIX/lib]
835 --includedir=DIR C header files [PREFIX/include]
836 --oldincludedir=DIR C header files for non-gcc [/usr/include]
837 --infodir=DIR info documentation [PREFIX/info]
838 --mandir=DIR man documentation [PREFIX/man]
844 --build=BUILD configure for building on BUILD [guessed]
845 --host=HOST cross-compile to build programs to run on HOST [BUILD]
846 --target=TARGET configure for building compilers for TARGET [HOST]
850 if test -n "$ac_init_help"; then
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --disable-flattened Disable flattened directory structure
858 --enable-multi-platform Use run time multi-platform support
860 --disable-backend-bundle Compile gui backend as a library
861 --enable-native-objc-exceptions
862 use native objective-c exceptions
863 --enable-strip-makefiles Enable stripping makefiles after installation
864 --disable-move-obsolete Disable moving obsolete dir structure
867 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
868 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --with-library-combo Define the default library combination
872 --with-tar Set the name of the tar program to use
873 --without-system-root Don't use separate system root directory
875 Set the GNUSTEP_LOCAL_ROOT directory. Use this option if you want
876 to have the GNUSTEP_LOCAL_ROOT directory in a non-standard place. Example:
877 --with-local-root=/usr/local/GNUstep/Local
880 Set the GNUSTEP_NETWORK_ROOT directory. Use this option if you want
881 to have the GNUSTEP_NETWORK_ROOT directory. Example:
882 --with-network-root=/usr/local/GNUstep/Network
885 Set the GNUSTEP_USER_ROOT directory for all users. '~' is allowed
886 at the beginning to mean the user's home directory. Use this
887 option if you want to have the GNUSTEP_USER_ROOT directory in a non
888 default place for all users.
889 Example: --with-user-root='~/gnustep'
891 --with-thread-lib Specify alternate thread library
893 Some influential environment variables:
894 CC C compiler command
895 CFLAGS C compiler flags
896 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
897 nonstandard directory <lib dir>
898 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
899 headers in a nonstandard directory <include dir>
902 Use these variables to override the choices made by `configure' or to help
903 it to find libraries and programs with nonstandard names/locations.
908 if test "$ac_init_help" = "recursive"; then
909 # If there are subdirs, report their specific --help.
911 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
912 test -d $ac_dir || continue
915 if test "$ac_dir" != .; then
916 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
917 # A "../" for each directory in $ac_dir_suffix.
918 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
920 ac_dir_suffix= ac_top_builddir=
924 .) # No --srcdir option. We are building in place.
926 if test -z "$ac_top_builddir"; then
929 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
931 [\\/]* | ?:[\\/]* ) # Absolute path.
932 ac_srcdir=$srcdir$ac_dir_suffix;
933 ac_top_srcdir=$srcdir ;;
935 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
936 ac_top_srcdir=$ac_top_builddir$srcdir ;;
939 # Do not use `cd foo && pwd` to compute absolute paths, because
940 # the directories may not exist.
942 .) ac_abs_builddir="$ac_dir";;
945 .) ac_abs_builddir=`pwd`;;
946 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
947 *) ac_abs_builddir=`pwd`/"$ac_dir";;
950 case $ac_abs_builddir in
951 .) ac_abs_top_builddir=${ac_top_builddir}.;;
953 case ${ac_top_builddir}. in
954 .) ac_abs_top_builddir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
956 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
959 case $ac_abs_builddir in
960 .) ac_abs_srcdir=$ac_srcdir;;
963 .) ac_abs_srcdir=$ac_abs_builddir;;
964 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
965 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
968 case $ac_abs_builddir in
969 .) ac_abs_top_srcdir=$ac_top_srcdir;;
971 case $ac_top_srcdir in
972 .) ac_abs_top_srcdir=$ac_abs_builddir;;
973 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
974 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
979 # Check for guested configure; otherwise get Cygnus style configure.
980 if test -f $ac_srcdir/configure.gnu; then
982 $SHELL $ac_srcdir/configure.gnu --help=recursive
983 elif test -f $ac_srcdir/configure; then
985 $SHELL $ac_srcdir/configure --help=recursive
986 elif test -f $ac_srcdir/configure.ac ||
987 test -f $ac_srcdir/configure.in; then
991 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
997 test -n "$ac_init_help" && exit 0
998 if $ac_init_version; then
1001 Copyright (C) 2003 Free Software Foundation, Inc.
1002 This configure script is free software; the Free Software Foundation
1003 gives unlimited permission to copy, distribute and modify it.
1009 This file contains any messages produced by compilers while
1010 running configure, to aid debugging if configure makes a mistake.
1012 It was created by $as_me, which was
1013 generated by GNU Autoconf 2.59. Invocation command line was
1024 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1025 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1026 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1027 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1028 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1030 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1031 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1033 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1034 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1035 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1036 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1037 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1038 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1039 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1047 test -z "$as_dir" && as_dir=.
1048 echo "PATH: $as_dir"
1063 # Keep a trace of the command line.
1064 # Strip out --no-create and --no-recursion so they do not pile up.
1065 # Strip out --silent because we don't want to record it for future runs.
1066 # Also quote any args containing shell meta-characters.
1067 # Make two passes to allow for proper duplicate-argument suppression.
1072 ac_must_keep_next=false
1078 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080 | -silent | --silent | --silen | --sile | --sil)
1082 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1083 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1086 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1088 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1089 if test $ac_must_keep_next = true; then
1090 ac_must_keep_next=false # Got value, back to normal.
1093 *=* | --config-cache | -C | -disable-* | --disable-* \
1094 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1095 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1096 | -with-* | --with-* | -without-* | --without-* | --x)
1097 case "$ac_configure_args0 " in
1098 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1101 -* ) ac_must_keep_next=true ;;
1104 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1105 # Get rid of the leading space.
1111 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1112 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1114 # When interrupted or exit'd, cleanup temporary files, and complete
1115 # config.log. We remove comments because anyway the quotes in there
1116 # would cause problems or look ugly.
1117 # WARNING: Be sure not to use single quotes in there, as some shells,
1118 # such as our DU 5.0 friend, will then `close' the trap.
1119 trap 'exit_status=$?
1120 # Save into config.log some information that might help in debugging.
1125 ## ---------------- ##
1126 ## Cache variables. ##
1127 ## ---------------- ##
1130 # The following way of writing the cache mishandles newlines in values,
1133 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1136 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1137 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1141 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1148 ## ----------------- ##
1149 ## Output variables. ##
1150 ## ----------------- ##
1153 for ac_var in $ac_subst_vars
1155 eval ac_val=$`echo $ac_var`
1156 echo "$ac_var='"'"'$ac_val'"'"'"
1160 if test -n "$ac_subst_files"; then
1167 for ac_var in $ac_subst_files
1169 eval ac_val=$`echo $ac_var`
1170 echo "$ac_var='"'"'$ac_val'"'"'"
1175 if test -s confdefs.h; then
1182 sed "/^$/d" confdefs.h | sort
1185 test "$ac_signal" != 0 &&
1186 echo "$as_me: caught signal $ac_signal"
1187 echo "$as_me: exit $exit_status"
1189 rm -f core *.core &&
1190 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1193 for ac_signal in 1 2 13 15; do
1194 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1198 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1199 rm -rf conftest* confdefs.h
1200 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1203 # Predefined preprocessor variables.
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_NAME "$PACKAGE_NAME"
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_STRING "$PACKAGE_STRING"
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1230 # Let the site file select an alternate cache file if it wants to.
1231 # Prefer explicitly selected file to automatically selected ones.
1232 if test -z "$CONFIG_SITE"; then
1233 if test "x$prefix" != xNONE; then
1234 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1236 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1239 for ac_site_file in $CONFIG_SITE; do
1240 if test -r "$ac_site_file"; then
1241 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1242 echo "$as_me: loading site script $ac_site_file" >&6;}
1243 sed 's/^/| /' "$ac_site_file" >&5
1248 if test -r "$cache_file"; then
1249 # Some versions of bash will fail to source /dev/null (special
1250 # files actually), so we avoid doing that.
1251 if test -f "$cache_file"; then
1252 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1253 echo "$as_me: loading cache $cache_file" >&6;}
1255 [\\/]* | ?:[\\/]* ) . $cache_file;;
1256 *) . ./$cache_file;;
1260 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1261 echo "$as_me: creating cache $cache_file" >&6;}
1265 # Check that the precious variables saved in the cache have kept the same
1267 ac_cache_corrupted=false
1268 for ac_var in `(set) 2>&1 |
1269 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1270 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1271 eval ac_new_set=\$ac_env_${ac_var}_set
1272 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1273 eval ac_new_val="\$ac_env_${ac_var}_value"
1274 case $ac_old_set,$ac_new_set in
1276 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1277 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1278 ac_cache_corrupted=: ;;
1280 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1281 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1282 ac_cache_corrupted=: ;;
1285 if test "x$ac_old_val" != "x$ac_new_val"; then
1286 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1287 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1288 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1289 echo "$as_me: former value: $ac_old_val" >&2;}
1290 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1291 echo "$as_me: current value: $ac_new_val" >&2;}
1292 ac_cache_corrupted=:
1295 # Pass precious variables to config.status.
1296 if test "$ac_new_set" = set; then
1298 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1299 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1300 *) ac_arg=$ac_var=$ac_new_val ;;
1302 case " $ac_configure_args " in
1303 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1304 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1308 if $ac_cache_corrupted; then
1309 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1310 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1311 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1312 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1313 { (exit 1); exit 1; }; }
1317 ac_cpp='$CPP $CPPFLAGS'
1318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1342 ac_config_headers="$ac_config_headers config.h"
1345 #--------------------------------------------------------------------
1346 # Setup the library combination
1347 #--------------------------------------------------------------------
1348 targetArgument=${target}
1350 ac_cpp='$CPP $CPPFLAGS'
1351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1354 if test -n "$ac_tool_prefix"; then
1355 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1356 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1357 echo "$as_me:$LINENO: checking for $ac_word" >&5
1358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1359 if test "${ac_cv_prog_CC+set}" = set; then
1360 echo $ECHO_N "(cached) $ECHO_C" >&6
1362 if test -n "$CC"; then
1363 ac_cv_prog_CC="$CC" # Let the user override the test.
1365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1369 test -z "$as_dir" && as_dir=.
1370 for ac_exec_ext in '' $ac_executable_extensions; do
1371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1372 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1382 if test -n "$CC"; then
1383 echo "$as_me:$LINENO: result: $CC" >&5
1384 echo "${ECHO_T}$CC" >&6
1386 echo "$as_me:$LINENO: result: no" >&5
1387 echo "${ECHO_T}no" >&6
1391 if test -z "$ac_cv_prog_CC"; then
1393 # Extract the first word of "gcc", so it can be a program name with args.
1394 set dummy gcc; ac_word=$2
1395 echo "$as_me:$LINENO: checking for $ac_word" >&5
1396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1397 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1398 echo $ECHO_N "(cached) $ECHO_C" >&6
1400 if test -n "$ac_ct_CC"; then
1401 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1407 test -z "$as_dir" && as_dir=.
1408 for ac_exec_ext in '' $ac_executable_extensions; do
1409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1410 ac_cv_prog_ac_ct_CC="gcc"
1411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1419 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1420 if test -n "$ac_ct_CC"; then
1421 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1422 echo "${ECHO_T}$ac_ct_CC" >&6
1424 echo "$as_me:$LINENO: result: no" >&5
1425 echo "${ECHO_T}no" >&6
1433 if test -z "$CC"; then
1434 if test -n "$ac_tool_prefix"; then
1435 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1436 set dummy ${ac_tool_prefix}cc; ac_word=$2
1437 echo "$as_me:$LINENO: checking for $ac_word" >&5
1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439 if test "${ac_cv_prog_CC+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 if test -n "$CC"; then
1443 ac_cv_prog_CC="$CC" # Let the user override the test.
1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 test -z "$as_dir" && as_dir=.
1450 for ac_exec_ext in '' $ac_executable_extensions; do
1451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1452 ac_cv_prog_CC="${ac_tool_prefix}cc"
1453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1462 if test -n "$CC"; then
1463 echo "$as_me:$LINENO: result: $CC" >&5
1464 echo "${ECHO_T}$CC" >&6
1466 echo "$as_me:$LINENO: result: no" >&5
1467 echo "${ECHO_T}no" >&6
1471 if test -z "$ac_cv_prog_CC"; then
1473 # Extract the first word of "cc", so it can be a program name with args.
1474 set dummy cc; ac_word=$2
1475 echo "$as_me:$LINENO: checking for $ac_word" >&5
1476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 if test -n "$ac_ct_CC"; then
1481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487 test -z "$as_dir" && as_dir=.
1488 for ac_exec_ext in '' $ac_executable_extensions; do
1489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490 ac_cv_prog_ac_ct_CC="cc"
1491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1500 if test -n "$ac_ct_CC"; then
1501 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1502 echo "${ECHO_T}$ac_ct_CC" >&6
1504 echo "$as_me:$LINENO: result: no" >&5
1505 echo "${ECHO_T}no" >&6
1514 if test -z "$CC"; then
1515 # Extract the first word of "cc", so it can be a program name with args.
1516 set dummy cc; ac_word=$2
1517 echo "$as_me:$LINENO: checking for $ac_word" >&5
1518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519 if test "${ac_cv_prog_CC+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 if test -n "$CC"; then
1523 ac_cv_prog_CC="$CC" # Let the user override the test.
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1534 ac_prog_rejected=yes
1538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1544 if test $ac_prog_rejected = yes; then
1545 # We found a bogon in the path, so make sure we never use it.
1546 set dummy $ac_cv_prog_CC
1548 if test $# != 0; then
1549 # We chose a different compiler from the bogus one.
1550 # However, it has the same basename, so the bogon will be chosen
1551 # first if we set CC to just the basename; use the full file name.
1553 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1559 if test -n "$CC"; then
1560 echo "$as_me:$LINENO: result: $CC" >&5
1561 echo "${ECHO_T}$CC" >&6
1563 echo "$as_me:$LINENO: result: no" >&5
1564 echo "${ECHO_T}no" >&6
1568 if test -z "$CC"; then
1569 if test -n "$ac_tool_prefix"; then
1572 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1573 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1574 echo "$as_me:$LINENO: checking for $ac_word" >&5
1575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1576 if test "${ac_cv_prog_CC+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 if test -n "$CC"; then
1580 ac_cv_prog_CC="$CC" # Let the user override the test.
1582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586 test -z "$as_dir" && as_dir=.
1587 for ac_exec_ext in '' $ac_executable_extensions; do
1588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1589 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1599 if test -n "$CC"; then
1600 echo "$as_me:$LINENO: result: $CC" >&5
1601 echo "${ECHO_T}$CC" >&6
1603 echo "$as_me:$LINENO: result: no" >&5
1604 echo "${ECHO_T}no" >&6
1607 test -n "$CC" && break
1610 if test -z "$CC"; then
1614 # Extract the first word of "$ac_prog", so it can be a program name with args.
1615 set dummy $ac_prog; ac_word=$2
1616 echo "$as_me:$LINENO: checking for $ac_word" >&5
1617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1618 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1621 if test -n "$ac_ct_CC"; then
1622 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628 test -z "$as_dir" && as_dir=.
1629 for ac_exec_ext in '' $ac_executable_extensions; do
1630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1631 ac_cv_prog_ac_ct_CC="$ac_prog"
1632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1640 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1641 if test -n "$ac_ct_CC"; then
1642 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1643 echo "${ECHO_T}$ac_ct_CC" >&6
1645 echo "$as_me:$LINENO: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1649 test -n "$ac_ct_CC" && break
1658 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1659 See \`config.log' for more details." >&5
1660 echo "$as_me: error: no acceptable C compiler found in \$PATH
1661 See \`config.log' for more details." >&2;}
1662 { (exit 1); exit 1; }; }
1664 # Provide some information about the compiler.
1665 echo "$as_me:$LINENO:" \
1666 "checking for C compiler version" >&5
1667 ac_compiler=`set X $ac_compile; echo $2`
1668 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1669 (eval $ac_compiler --version </dev/null >&5) 2>&5
1671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1672 (exit $ac_status); }
1673 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1674 (eval $ac_compiler -v </dev/null >&5) 2>&5
1676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1677 (exit $ac_status); }
1678 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1679 (eval $ac_compiler -V </dev/null >&5) 2>&5
1681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1682 (exit $ac_status); }
1684 cat >conftest.$ac_ext <<_ACEOF
1687 cat confdefs.h >>conftest.$ac_ext
1688 cat >>conftest.$ac_ext <<_ACEOF
1689 /* end confdefs.h. */
1699 ac_clean_files_save=$ac_clean_files
1700 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1701 # Try to create an executable without -o first, disregard a.out.
1702 # It will help us diagnose broken compilers, and finding out an intuition
1704 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1705 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1706 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1707 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1708 (eval $ac_link_default) 2>&5
1710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1711 (exit $ac_status); }; then
1712 # Find the output, starting from the most likely. This scheme is
1713 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1716 # Be careful to initialize this variable, since it used to be cached.
1717 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1719 # b.out is created by i960 compilers.
1720 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1722 test -f "$ac_file" || continue
1724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1727 # This is the source file.
1730 # We found the default executable, but exeext='' is most
1734 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1735 # FIXME: I believe we export ac_cv_exeext for Libtool,
1736 # but it would be cool to find out if it's true. Does anybody
1737 # maintain Libtool? --akim.
1745 echo "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1748 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1749 See \`config.log' for more details." >&5
1750 echo "$as_me: error: C compiler cannot create executables
1751 See \`config.log' for more details." >&2;}
1752 { (exit 77); exit 77; }; }
1755 ac_exeext=$ac_cv_exeext
1756 echo "$as_me:$LINENO: result: $ac_file" >&5
1757 echo "${ECHO_T}$ac_file" >&6
1759 # Check the compiler produces executables we can run. If not, either
1760 # the compiler is broken, or we cross compile.
1761 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1762 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1763 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1764 # If not cross compiling, check that we can run a simple program.
1765 if test "$cross_compiling" != yes; then
1766 if { ac_try='./$ac_file'
1767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1771 (exit $ac_status); }; }; then
1774 if test "$cross_compiling" = maybe; then
1777 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1778 If you meant to cross compile, use \`--host'.
1779 See \`config.log' for more details." >&5
1780 echo "$as_me: error: cannot run C compiled programs.
1781 If you meant to cross compile, use \`--host'.
1782 See \`config.log' for more details." >&2;}
1783 { (exit 1); exit 1; }; }
1787 echo "$as_me:$LINENO: result: yes" >&5
1788 echo "${ECHO_T}yes" >&6
1790 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1791 ac_clean_files=$ac_clean_files_save
1792 # Check the compiler produces executables we can run. If not, either
1793 # the compiler is broken, or we cross compile.
1794 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1795 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1796 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1797 echo "${ECHO_T}$cross_compiling" >&6
1799 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1800 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1802 (eval $ac_link) 2>&5
1804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805 (exit $ac_status); }; then
1806 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1807 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1808 # work properly (i.e., refer to `conftest.exe'), while it won't with
1810 for ac_file in conftest.exe conftest conftest.*; do
1811 test -f "$ac_file" || continue
1813 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1814 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1821 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1822 See \`config.log' for more details." >&5
1823 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1824 See \`config.log' for more details." >&2;}
1825 { (exit 1); exit 1; }; }
1828 rm -f conftest$ac_cv_exeext
1829 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1830 echo "${ECHO_T}$ac_cv_exeext" >&6
1832 rm -f conftest.$ac_ext
1833 EXEEXT=$ac_cv_exeext
1835 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1836 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1837 if test "${ac_cv_objext+set}" = set; then
1838 echo $ECHO_N "(cached) $ECHO_C" >&6
1840 cat >conftest.$ac_ext <<_ACEOF
1843 cat confdefs.h >>conftest.$ac_ext
1844 cat >>conftest.$ac_ext <<_ACEOF
1845 /* end confdefs.h. */
1855 rm -f conftest.o conftest.obj
1856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1857 (eval $ac_compile) 2>&5
1859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1860 (exit $ac_status); }; then
1861 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1864 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1869 echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1872 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1873 See \`config.log' for more details." >&5
1874 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1875 See \`config.log' for more details." >&2;}
1876 { (exit 1); exit 1; }; }
1879 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1881 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1882 echo "${ECHO_T}$ac_cv_objext" >&6
1883 OBJEXT=$ac_cv_objext
1885 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1886 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1887 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1888 echo $ECHO_N "(cached) $ECHO_C" >&6
1890 cat >conftest.$ac_ext <<_ACEOF
1893 cat confdefs.h >>conftest.$ac_ext
1894 cat >>conftest.$ac_ext <<_ACEOF
1895 /* end confdefs.h. */
1908 rm -f conftest.$ac_objext
1909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1910 (eval $ac_compile) 2>conftest.er1
1912 grep -v '^ *+' conftest.er1 >conftest.err
1914 cat conftest.err >&5
1915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916 (exit $ac_status); } &&
1917 { ac_try='test -z "$ac_c_werror_flag"
1918 || test ! -s conftest.err'
1919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923 (exit $ac_status); }; } &&
1924 { ac_try='test -s conftest.$ac_objext'
1925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929 (exit $ac_status); }; }; then
1932 echo "$as_me: failed program was:" >&5
1933 sed 's/^/| /' conftest.$ac_ext >&5
1937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1938 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1941 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1942 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1943 GCC=`test $ac_compiler_gnu = yes && echo yes`
1944 ac_test_CFLAGS=${CFLAGS+set}
1945 ac_save_CFLAGS=$CFLAGS
1947 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1948 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1949 if test "${ac_cv_prog_cc_g+set}" = set; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1952 cat >conftest.$ac_ext <<_ACEOF
1955 cat confdefs.h >>conftest.$ac_ext
1956 cat >>conftest.$ac_ext <<_ACEOF
1957 /* end confdefs.h. */
1967 rm -f conftest.$ac_objext
1968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1969 (eval $ac_compile) 2>conftest.er1
1971 grep -v '^ *+' conftest.er1 >conftest.err
1973 cat conftest.err >&5
1974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975 (exit $ac_status); } &&
1976 { ac_try='test -z "$ac_c_werror_flag"
1977 || test ! -s conftest.err'
1978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982 (exit $ac_status); }; } &&
1983 { ac_try='test -s conftest.$ac_objext'
1984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988 (exit $ac_status); }; }; then
1991 echo "$as_me: failed program was:" >&5
1992 sed 's/^/| /' conftest.$ac_ext >&5
1996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1998 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1999 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2000 if test "$ac_test_CFLAGS" = set; then
2001 CFLAGS=$ac_save_CFLAGS
2002 elif test $ac_cv_prog_cc_g = yes; then
2003 if test "$GCC" = yes; then
2009 if test "$GCC" = yes; then
2015 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2016 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2017 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2020 ac_cv_prog_cc_stdc=no
2022 cat >conftest.$ac_ext <<_ACEOF
2025 cat confdefs.h >>conftest.$ac_ext
2026 cat >>conftest.$ac_ext <<_ACEOF
2027 /* end confdefs.h. */
2030 #include <sys/types.h>
2031 #include <sys/stat.h>
2032 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2033 struct buf { int x; };
2034 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2035 static char *e (p, i)
2041 static char *f (char * (*g) (char **, int), char **p, ...)
2046 s = g (p, va_arg (v,int));
2051 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2052 function prototypes and stuff, but not '\xHH' hex character constants.
2053 These don't provoke an error unfortunately, instead are silently treated
2054 as 'x'. The following induces an error, until -std1 is added to get
2055 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2056 array size at least. It's necessary to write '\x00'==0 to get something
2057 that's true only with -std1. */
2058 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2060 int test (int i, double x);
2061 struct s1 {int (*f) (int a);};
2062 struct s2 {int (*f) (double a);};
2063 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2069 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2074 # Don't try gcc -ansi; that turns off useful extensions and
2075 # breaks some systems' header files.
2076 # AIX -qlanglvl=ansi
2077 # Ultrix and OSF/1 -std1
2078 # HP-UX 10.20 and later -Ae
2079 # HP-UX older versions -Aa -D_HPUX_SOURCE
2080 # SVR4 -Xc -D__EXTENSIONS__
2081 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2083 CC="$ac_save_CC $ac_arg"
2084 rm -f conftest.$ac_objext
2085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2086 (eval $ac_compile) 2>conftest.er1
2088 grep -v '^ *+' conftest.er1 >conftest.err
2090 cat conftest.err >&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); } &&
2093 { ac_try='test -z "$ac_c_werror_flag"
2094 || test ! -s conftest.err'
2095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; } &&
2100 { ac_try='test -s conftest.$ac_objext'
2101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }; }; then
2106 ac_cv_prog_cc_stdc=$ac_arg
2109 echo "$as_me: failed program was:" >&5
2110 sed 's/^/| /' conftest.$ac_ext >&5
2113 rm -f conftest.err conftest.$ac_objext
2115 rm -f conftest.$ac_ext conftest.$ac_objext
2120 case "x$ac_cv_prog_cc_stdc" in
2122 echo "$as_me:$LINENO: result: none needed" >&5
2123 echo "${ECHO_T}none needed" >&6 ;;
2125 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2126 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2127 CC="$CC $ac_cv_prog_cc_stdc" ;;
2130 # Some people use a C++ compiler to compile C. Since we use `exit',
2131 # in C++ we need to declare it. In case someone uses the same compiler
2132 # for both compiling C and C++ we need to have the C++ compiler decide
2133 # the declaration of exit, since it's the most demanding environment.
2134 cat >conftest.$ac_ext <<_ACEOF
2139 rm -f conftest.$ac_objext
2140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2141 (eval $ac_compile) 2>conftest.er1
2143 grep -v '^ *+' conftest.er1 >conftest.err
2145 cat conftest.err >&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); } &&
2148 { ac_try='test -z "$ac_c_werror_flag"
2149 || test ! -s conftest.err'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; } &&
2155 { ac_try='test -s conftest.$ac_objext'
2156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; }; then
2161 for ac_declaration in \
2163 'extern "C" void std::exit (int) throw (); using std::exit;' \
2164 'extern "C" void std::exit (int); using std::exit;' \
2165 'extern "C" void exit (int) throw ();' \
2166 'extern "C" void exit (int);' \
2169 cat >conftest.$ac_ext <<_ACEOF
2172 cat confdefs.h >>conftest.$ac_ext
2173 cat >>conftest.$ac_ext <<_ACEOF
2174 /* end confdefs.h. */
2185 rm -f conftest.$ac_objext
2186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2187 (eval $ac_compile) 2>conftest.er1
2189 grep -v '^ *+' conftest.er1 >conftest.err
2191 cat conftest.err >&5
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); } &&
2194 { ac_try='test -z "$ac_c_werror_flag"
2195 || test ! -s conftest.err'
2196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; } &&
2201 { ac_try='test -s conftest.$ac_objext'
2202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; }; then
2209 echo "$as_me: failed program was:" >&5
2210 sed 's/^/| /' conftest.$ac_ext >&5
2214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2215 cat >conftest.$ac_ext <<_ACEOF
2218 cat confdefs.h >>conftest.$ac_ext
2219 cat >>conftest.$ac_ext <<_ACEOF
2220 /* end confdefs.h. */
2230 rm -f conftest.$ac_objext
2231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2232 (eval $ac_compile) 2>conftest.er1
2234 grep -v '^ *+' conftest.er1 >conftest.err
2236 cat conftest.err >&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); } &&
2239 { ac_try='test -z "$ac_c_werror_flag"
2240 || test ! -s conftest.err'
2241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; } &&
2246 { ac_try='test -s conftest.$ac_objext'
2247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }; }; then
2254 echo "$as_me: failed program was:" >&5
2255 sed 's/^/| /' conftest.$ac_ext >&5
2258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2261 if test -n "$ac_declaration"; then
2262 echo '#ifdef __cplusplus' >>confdefs.h
2263 echo $ac_declaration >>confdefs.h
2264 echo '#endif' >>confdefs.h
2268 echo "$as_me: failed program was:" >&5
2269 sed 's/^/| /' conftest.$ac_ext >&5
2272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2274 ac_cpp='$CPP $CPPFLAGS'
2275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2280 ac_cpp='$CPP $CPPFLAGS'
2281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2284 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2285 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2286 # On Suns, sometimes $CPP names a directory.
2287 if test -n "$CPP" && test -d "$CPP"; then
2290 if test -z "$CPP"; then
2291 if test "${ac_cv_prog_CPP+set}" = set; then
2292 echo $ECHO_N "(cached) $ECHO_C" >&6
2294 # Double quotes because CPP needs to be expanded
2295 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2298 for ac_c_preproc_warn_flag in '' yes
2300 # Use a header file that comes with gcc, so configuring glibc
2301 # with a fresh cross-compiler works.
2302 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2303 # <limits.h> exists even on freestanding compilers.
2304 # On the NeXT, cc -E runs the code through the compiler's parser,
2305 # not just through cpp. "Syntax error" is here to catch this case.
2306 cat >conftest.$ac_ext <<_ACEOF
2309 cat confdefs.h >>conftest.$ac_ext
2310 cat >>conftest.$ac_ext <<_ACEOF
2311 /* end confdefs.h. */
2313 # include <limits.h>
2315 # include <assert.h>
2319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2322 grep -v '^ *+' conftest.er1 >conftest.err
2324 cat conftest.err >&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); } >/dev/null; then
2327 if test -s conftest.err; then
2328 ac_cpp_err=$ac_c_preproc_warn_flag
2329 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2336 if test -z "$ac_cpp_err"; then
2339 echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2342 # Broken: fails on valid input.
2345 rm -f conftest.err conftest.$ac_ext
2347 # OK, works on sane cases. Now check whether non-existent headers
2348 # can be detected and how.
2349 cat >conftest.$ac_ext <<_ACEOF
2352 cat confdefs.h >>conftest.$ac_ext
2353 cat >>conftest.$ac_ext <<_ACEOF
2354 /* end confdefs.h. */
2355 #include <ac_nonexistent.h>
2357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2360 grep -v '^ *+' conftest.er1 >conftest.err
2362 cat conftest.err >&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); } >/dev/null; then
2365 if test -s conftest.err; then
2366 ac_cpp_err=$ac_c_preproc_warn_flag
2367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2374 if test -z "$ac_cpp_err"; then
2375 # Broken: success on invalid input.
2378 echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.$ac_ext >&5
2381 # Passes both tests.
2385 rm -f conftest.err conftest.$ac_ext
2388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2389 rm -f conftest.err conftest.$ac_ext
2390 if $ac_preproc_ok; then
2402 echo "$as_me:$LINENO: result: $CPP" >&5
2403 echo "${ECHO_T}$CPP" >&6
2405 for ac_c_preproc_warn_flag in '' yes
2407 # Use a header file that comes with gcc, so configuring glibc
2408 # with a fresh cross-compiler works.
2409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2410 # <limits.h> exists even on freestanding compilers.
2411 # On the NeXT, cc -E runs the code through the compiler's parser,
2412 # not just through cpp. "Syntax error" is here to catch this case.
2413 cat >conftest.$ac_ext <<_ACEOF
2416 cat confdefs.h >>conftest.$ac_ext
2417 cat >>conftest.$ac_ext <<_ACEOF
2418 /* end confdefs.h. */
2420 # include <limits.h>
2422 # include <assert.h>
2426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2429 grep -v '^ *+' conftest.er1 >conftest.err
2431 cat conftest.err >&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); } >/dev/null; then
2434 if test -s conftest.err; then
2435 ac_cpp_err=$ac_c_preproc_warn_flag
2436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2443 if test -z "$ac_cpp_err"; then
2446 echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.$ac_ext >&5
2449 # Broken: fails on valid input.
2452 rm -f conftest.err conftest.$ac_ext
2454 # OK, works on sane cases. Now check whether non-existent headers
2455 # can be detected and how.
2456 cat >conftest.$ac_ext <<_ACEOF
2459 cat confdefs.h >>conftest.$ac_ext
2460 cat >>conftest.$ac_ext <<_ACEOF
2461 /* end confdefs.h. */
2462 #include <ac_nonexistent.h>
2464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2467 grep -v '^ *+' conftest.er1 >conftest.err
2469 cat conftest.err >&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); } >/dev/null; then
2472 if test -s conftest.err; then
2473 ac_cpp_err=$ac_c_preproc_warn_flag
2474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2481 if test -z "$ac_cpp_err"; then
2482 # Broken: success on invalid input.
2485 echo "$as_me: failed program was:" >&5
2486 sed 's/^/| /' conftest.$ac_ext >&5
2488 # Passes both tests.
2492 rm -f conftest.err conftest.$ac_ext
2495 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2496 rm -f conftest.err conftest.$ac_ext
2497 if $ac_preproc_ok; then
2500 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2501 See \`config.log' for more details." >&5
2502 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2503 See \`config.log' for more details." >&2;}
2504 { (exit 1); exit 1; }; }
2508 ac_cpp='$CPP $CPPFLAGS'
2509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2514 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2515 if test -f $ac_dir/install-sh; then
2517 ac_install_sh="$ac_aux_dir/install-sh -c"
2519 elif test -f $ac_dir/install.sh; then
2521 ac_install_sh="$ac_aux_dir/install.sh -c"
2523 elif test -f $ac_dir/shtool; then
2525 ac_install_sh="$ac_aux_dir/shtool install -c"
2529 if test -z "$ac_aux_dir"; then
2530 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2531 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2532 { (exit 1); exit 1; }; }
2534 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2535 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2536 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2538 # Make sure we can run config.sub.
2539 $ac_config_sub sun4 >/dev/null 2>&1 ||
2540 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2541 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2542 { (exit 1); exit 1; }; }
2544 echo "$as_me:$LINENO: checking build system type" >&5
2545 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2546 if test "${ac_cv_build+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2549 ac_cv_build_alias=$build_alias
2550 test -z "$ac_cv_build_alias" &&
2551 ac_cv_build_alias=`$ac_config_guess`
2552 test -z "$ac_cv_build_alias" &&
2553 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2554 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2555 { (exit 1); exit 1; }; }
2556 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2557 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2558 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2559 { (exit 1); exit 1; }; }
2562 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2563 echo "${ECHO_T}$ac_cv_build" >&6
2565 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2566 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2567 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2570 echo "$as_me:$LINENO: checking host system type" >&5
2571 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2572 if test "${ac_cv_host+set}" = set; then
2573 echo $ECHO_N "(cached) $ECHO_C" >&6
2575 ac_cv_host_alias=$host_alias
2576 test -z "$ac_cv_host_alias" &&
2577 ac_cv_host_alias=$ac_cv_build_alias
2578 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2579 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2580 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2581 { (exit 1); exit 1; }; }
2584 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2585 echo "${ECHO_T}$ac_cv_host" >&6
2587 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2588 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2589 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2592 echo "$as_me:$LINENO: checking target system type" >&5
2593 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2594 if test "${ac_cv_target+set}" = set; then
2595 echo $ECHO_N "(cached) $ECHO_C" >&6
2597 ac_cv_target_alias=$target_alias
2598 test "x$ac_cv_target_alias" = "x" &&
2599 ac_cv_target_alias=$ac_cv_host_alias
2600 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2601 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2602 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2603 { (exit 1); exit 1; }; }
2606 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2607 echo "${ECHO_T}$ac_cv_target" >&6
2608 target=$ac_cv_target
2609 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2610 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2611 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2614 # The aliases save the names the user supplied, while $host etc.
2615 # will get canonicalized.
2616 test -n "$target_alias" &&
2617 test "$program_prefix$program_suffix$program_transform_name" = \
2619 program_prefix=${target_alias}-
2621 echo "$as_me:$LINENO: checking for library combo" >&5
2622 echo $ECHO_N "checking for library combo... $ECHO_C" >&6
2624 # Check whether --with-library-combo or --without-library-combo was given.
2625 if test "${with_library_combo+set}" = set; then
2626 withval="$with_library_combo"
2627 ac_cv_library_combo=$withval
2629 ac_cv_library_combo=$ac_cv_library_combo
2633 if test "$ac_cv_library_combo" = ""; then
2635 darwin*) ac_cv_library_combo=apple-apple-apple ;;
2636 nextstep4) ac_cv_library_combo=nx-nx-nx ;;
2637 openstep4) ac_cv_library_combo=nx-nx-nx ;;
2638 *) ac_cv_library_combo=gnu-gnu-gnu ;;
2642 case "$ac_cv_library_combo" in
2643 apple) ac_cv_library_combo=apple-apple-apple ;;
2644 gnu) ac_cv_library_combo=gnu-gnu-gnu ;;
2645 nx) ac_cv_library_combo=nx-nx-nx ;;
2649 echo "$as_me:$LINENO: result: $ac_cv_library_combo" >&5
2650 echo "${ECHO_T}$ac_cv_library_combo" >&6
2652 OBJC_RUNTIME_LIB=`echo $ac_cv_library_combo | awk -F- '{print $1}'`
2654 #--------------------------------------------------------------------
2655 # Check if we are using Apple cc
2656 #--------------------------------------------------------------------
2659 echo "$as_me:$LINENO: checking for apple compiler flags" >&5
2660 echo $ECHO_N "checking for apple compiler flags... $ECHO_C" >&6
2661 cc_cppprecomp=`${CC} -no-cpp-precomp 2>&1 | grep -c "unrecognized"`
2662 cc_bundle=`${CC} -bundle 2>&1 | grep -c "couldn"`
2663 # 0 means we have the flag
2664 if test $cc_cppprecomp = 0; then
2669 if test $cc_bundle = 0; then
2674 echo "$as_me:$LINENO: result: $cc_bundle" >&5
2675 echo "${ECHO_T}$cc_bundle" >&6
2679 #--------------------------------------------------------------------
2680 # specific target_os options
2681 #--------------------------------------------------------------------
2682 case "$target_os" in
2683 freebsd* | openbsd* )
2684 INCLUDES="$INCLUDES -I/usr/local/include"
2685 LIB_DIR="$LIB_DIR -L/usr/local/lib";;
2686 netbsd*) INCLUDES="$INCLUDES -I/usr/pkg/include"
2687 LIB_DIR="$LIB_DIR -Wl,-R/usr/pkg/lib -L/usr/pkg/lib";;
2690 #--------------------------------------------------------------------
2691 # Determine the host, build, and target systems
2692 #--------------------------------------------------------------------
2694 *cygwin* ) CYGWIN=yes;;
2695 *mingw32* ) MINGW32=yes;;
2703 if test "$MINGW32" = yes; then
2704 echo "hosted on mingw32 .."
2705 export INSTALL=install
2707 export CC=${CC:-gcc}
2709 export RANLIB=${RANLIB:-ranlib}
2710 export DLLTOOL=${DLLTOOL:-dlltool}
2711 elif test "$CYGWIN" = yes; then
2712 echo "hosted on cygwin .."
2713 export CC=${CC:-gcc}
2715 export RANLIB=${RANLIB:-ranlib}
2716 export DLLTOOL=${DLLTOOL:-dlltool}
2719 #--------------------------------------------------------------------
2720 # Find the binary and compile tools
2721 #--------------------------------------------------------------------
2722 if test "x$target" != "x$host"; then
2723 echo "cross compiling from $host to $target .."
2724 cross_compiling="yes"
2725 # Extract the first word of ""${targetArgument}-gcc"", so it can be a program name with args.
2726 set dummy "${targetArgument}-gcc"; ac_word=$2
2727 echo "$as_me:$LINENO: checking for $ac_word" >&5
2728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2729 if test "${ac_cv_prog_CC+set}" = set; then
2730 echo $ECHO_N "(cached) $ECHO_C" >&6
2732 if test -n "$CC"; then
2733 ac_cv_prog_CC="$CC" # Let the user override the test.
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2742 ac_cv_prog_CC=" "${targetArgument}-gcc""
2743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="gcc"
2753 if test -n "$CC"; then
2754 echo "$as_me:$LINENO: result: $CC" >&5
2755 echo "${ECHO_T}$CC" >&6
2757 echo "$as_me:$LINENO: result: no" >&5
2758 echo "${ECHO_T}no" >&6
2761 # Extract the first word of ""${targetArgument}-ranlib"", so it can be a program name with args.
2762 set dummy "${targetArgument}-ranlib"; ac_word=$2
2763 echo "$as_me:$LINENO: checking for $ac_word" >&5
2764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2765 if test "${ac_cv_prog_RANLIB+set}" = set; then
2766 echo $ECHO_N "(cached) $ECHO_C" >&6
2768 if test -n "$RANLIB"; then
2769 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778 ac_cv_prog_RANLIB=" "${targetArgument}-ranlib""
2779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib"
2788 RANLIB=$ac_cv_prog_RANLIB
2789 if test -n "$RANLIB"; then
2790 echo "$as_me:$LINENO: result: $RANLIB" >&5
2791 echo "${ECHO_T}$RANLIB" >&6
2793 echo "$as_me:$LINENO: result: no" >&5
2794 echo "${ECHO_T}no" >&6
2797 # Extract the first word of ""${targetArgument}-ar"", so it can be a program name with args.
2798 set dummy "${targetArgument}-ar"; ac_word=$2
2799 echo "$as_me:$LINENO: checking for $ac_word" >&5
2800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2801 if test "${ac_cv_prog_AR+set}" = set; then
2802 echo $ECHO_N "(cached) $ECHO_C" >&6
2804 if test -n "$AR"; then
2805 ac_cv_prog_AR="$AR" # Let the user override the test.
2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 test -z "$as_dir" && as_dir=.
2812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2814 ac_cv_prog_AR=" "${targetArgument}-ar""
2815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
2825 if test -n "$AR"; then
2826 echo "$as_me:$LINENO: result: $AR" >&5
2827 echo "${ECHO_T}$AR" >&6
2829 echo "$as_me:$LINENO: result: no" >&5
2830 echo "${ECHO_T}no" >&6
2833 # Extract the first word of ""${targetArgument}-dlltool"", so it can be a program name with args.
2834 set dummy "${targetArgument}-dlltool"; ac_word=$2
2835 echo "$as_me:$LINENO: checking for $ac_word" >&5
2836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2837 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2840 if test -n "$DLLTOOL"; then
2841 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850 ac_cv_prog_DLLTOOL=" "${targetArgument}-dlltool""
2851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="dlltool"
2860 DLLTOOL=$ac_cv_prog_DLLTOOL
2861 if test -n "$DLLTOOL"; then
2862 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
2863 echo "${ECHO_T}$DLLTOOL" >&6
2865 echo "$as_me:$LINENO: result: no" >&5
2866 echo "${ECHO_T}no" >&6
2870 # Extract the first word of "ar", so it can be a program name with args.
2871 set dummy ar; ac_word=$2
2872 echo "$as_me:$LINENO: checking for $ac_word" >&5
2873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2874 if test "${ac_cv_prog_AR+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 if test -n "$AR"; then
2878 ac_cv_prog_AR="$AR" # Let the user override the test.
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 if test -n "$AR"; then
2898 echo "$as_me:$LINENO: result: $AR" >&5
2899 echo "${ECHO_T}$AR" >&6
2901 echo "$as_me:$LINENO: result: no" >&5
2902 echo "${ECHO_T}no" >&6
2905 # Extract the first word of "dlltool", so it can be a program name with args.
2906 set dummy dlltool; ac_word=$2
2907 echo "$as_me:$LINENO: checking for $ac_word" >&5
2908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2909 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 if test -n "$DLLTOOL"; then
2913 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 test -z "$as_dir" && as_dir=.
2920 for ac_exec_ext in '' $ac_executable_extensions; do
2921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2922 ac_cv_prog_DLLTOOL="dlltool"
2923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 DLLTOOL=$ac_cv_prog_DLLTOOL
2932 if test -n "$DLLTOOL"; then
2933 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
2934 echo "${ECHO_T}$DLLTOOL" >&6
2936 echo "$as_me:$LINENO: result: no" >&5
2937 echo "${ECHO_T}no" >&6
2940 if test -n "$ac_tool_prefix"; then
2941 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2942 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2943 echo "$as_me:$LINENO: checking for $ac_word" >&5
2944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2945 if test "${ac_cv_prog_RANLIB+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 if test -n "$RANLIB"; then
2949 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2958 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 RANLIB=$ac_cv_prog_RANLIB
2968 if test -n "$RANLIB"; then
2969 echo "$as_me:$LINENO: result: $RANLIB" >&5
2970 echo "${ECHO_T}$RANLIB" >&6
2972 echo "$as_me:$LINENO: result: no" >&5
2973 echo "${ECHO_T}no" >&6
2977 if test -z "$ac_cv_prog_RANLIB"; then
2978 ac_ct_RANLIB=$RANLIB
2979 # Extract the first word of "ranlib", so it can be a program name with args.
2980 set dummy ranlib; ac_word=$2
2981 echo "$as_me:$LINENO: checking for $ac_word" >&5
2982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2983 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 if test -n "$ac_ct_RANLIB"; then
2987 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996 ac_cv_prog_ac_ct_RANLIB="ranlib"
2997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3006 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3007 if test -n "$ac_ct_RANLIB"; then
3008 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3009 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3011 echo "$as_me:$LINENO: result: no" >&5
3012 echo "${ECHO_T}no" >&6
3015 RANLIB=$ac_ct_RANLIB
3017 RANLIB="$ac_cv_prog_RANLIB"
3022 # Find a good install program. We prefer a C program (faster),
3023 # so one script is as good as another. But avoid the broken or
3024 # incompatible versions:
3025 # SysV /etc/install, /usr/sbin/install
3026 # SunOS /usr/etc/install
3027 # IRIX /sbin/install
3029 # AmigaOS /C/install, which installs bootblocks on floppy discs
3030 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3031 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3032 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3033 # OS/2's system install, which has a completely different semantic
3034 # ./install, which can be erroneously created by make from ./install.sh.
3035 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3036 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3037 if test -z "$INSTALL"; then
3038 if test "${ac_cv_path_install+set}" = set; then
3039 echo $ECHO_N "(cached) $ECHO_C" >&6
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 test -z "$as_dir" && as_dir=.
3046 # Account for people who put trailing slashes in PATH elements.
3048 ./ | .// | /cC/* | \
3049 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3050 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3053 # OSF1 and SCO ODT 3.0 have their own names for install.
3054 # Don't use installbsd from OSF since it installs stuff as root
3056 for ac_prog in ginstall scoinst install; do
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3059 if test $ac_prog = install &&
3060 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3061 # AIX install. It has an incompatible calling convention.
3063 elif test $ac_prog = install &&
3064 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3065 # program-specific install script used by HP pwplus--don't use.
3068 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3080 if test "${ac_cv_path_install+set}" = set; then
3081 INSTALL=$ac_cv_path_install
3083 # As a last resort, use the slow shell script. We don't cache a
3084 # path for INSTALL within a source directory, because that will
3085 # break other packages using the cache if that directory is
3086 # removed, or if the path is relative.
3087 INSTALL=$ac_install_sh
3090 echo "$as_me:$LINENO: result: $INSTALL" >&5
3091 echo "${ECHO_T}$INSTALL" >&6
3093 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3094 # It thinks the first close brace ends the variable substitution.
3095 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3097 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3099 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3101 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3102 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3104 if test "$LN_S" = "ln -s"; then
3105 echo "$as_me:$LINENO: result: yes" >&5
3106 echo "${ECHO_T}yes" >&6
3108 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3109 echo "${ECHO_T}no, using $LN_S" >&6
3113 for ac_prog in gnutar gtar
3115 # Extract the first word of "$ac_prog", so it can be a program name with args.
3116 set dummy $ac_prog; ac_word=$2
3117 echo "$as_me:$LINENO: checking for $ac_word" >&5
3118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3119 if test "${ac_cv_prog_TAR+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3122 if test -n "$TAR"; then
3123 ac_cv_prog_TAR="$TAR" # Let the user override the test.
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3132 ac_cv_prog_TAR="$ac_prog"
3133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 if test -n "$TAR"; then
3143 echo "$as_me:$LINENO: result: $TAR" >&5
3144 echo "${ECHO_T}$TAR" >&6
3146 echo "$as_me:$LINENO: result: no" >&5
3147 echo "${ECHO_T}no" >&6
3150 test -n "$TAR" && break
3152 test -n "$TAR" || TAR="tar"
3155 # Check whether --with-tar or --without-tar was given.
3156 if test "${with_tar+set}" = set; then
3161 # Extract the first word of "chown", so it can be a program name with args.
3162 set dummy chown; ac_word=$2
3163 echo "$as_me:$LINENO: checking for $ac_word" >&5
3164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3165 if test "${ac_cv_prog_CHOWN+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3168 if test -n "$CHOWN"; then
3169 ac_cv_prog_CHOWN="$CHOWN" # Let the user override the test.
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178 ac_cv_prog_CHOWN="chown"
3179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 test -z "$ac_cv_prog_CHOWN" && ac_cv_prog_CHOWN="none"
3188 CHOWN=$ac_cv_prog_CHOWN
3189 if test -n "$CHOWN"; then
3190 echo "$as_me:$LINENO: result: $CHOWN" >&5
3191 echo "${ECHO_T}$CHOWN" >&6
3193 echo "$as_me:$LINENO: result: no" >&5
3194 echo "${ECHO_T}no" >&6
3197 if test "$MINGW32" = no; then
3198 if test "$CHOWN" = "none"; then
3199 { { echo "$as_me:$LINENO: error: \"Could not find chown.\"" >&5
3200 echo "$as_me: error: \"Could not find chown.\"" >&2;}
3201 { (exit 1); exit 1; }; };
3205 #-------------------------------------------------------------------
3206 # GNUstep specific options follow
3207 #-------------------------------------------------------------------
3209 #--------------------------------------------------------------------
3210 # The GNUstep root directory.
3211 # The user should have the GNUSTEP_SYSTEM_ROOT environment variable
3212 # defined, but if not then we have a global default.
3213 # Also test for the C: directory, which means we're on Windows
3214 #--------------------------------------------------------------------
3215 echo "$as_me:$LINENO: checking for GNUSTEP_SYSTEM_ROOT to use" >&5
3216 echo $ECHO_N "checking for GNUSTEP_SYSTEM_ROOT to use... $ECHO_C" >&6
3218 if test "x$prefix" = "xNONE"; then
3219 prefix="$ac_default_prefix" ;
3222 # Check whether --with-system-root or --without-system-root was given.
3223 if test "${with_system_root+set}" = set; then
3224 withval="$with_system_root"
3225 ac_cv_system_root="$withval"
3227 ac_cv_system_root=yes
3230 GNUSTEP_ROOT="$prefix"
3231 root_prefix='${prefix}'
3232 if test $ac_cv_system_root = yes; then
3233 if test "x`basename $prefix`" = xSystem; then
3234 GNUSTEP_ROOT=`dirname $prefix`
3236 if test "x$prefix" = "x/"; then
3239 prefix="$prefix/System"
3242 root_prefix='${prefix}/..'
3246 echo "$as_me:$LINENO: result: $prefix" >&5
3247 echo "${ECHO_T}$prefix" >&6
3249 # Makefiles directory location is in a bit of flux now. To keep the
3250 # Makefiles dir in the previous location, reset this variable to
3251 # 'Makefiles' and regenerate configure. Note this doesn't change all
3253 MAKEFILES_SUFFIX=Library/Makefiles
3256 # HOST_INSTALL is the name of the install program in config.make so set it up
3257 # to point to the install-sh script in the GNUstep tree if no system install is
3260 if test "$INSTALL" = "$ac_install_sh"; then
3261 HOST_INSTALL="$prefix/$MAKEFILES_SUFFIX/$INSTALL"
3263 HOST_INSTALL="$INSTALL"
3266 #--------------------------------------------------------------------
3267 # Process --with-defaults-root, --with-user-root,
3268 # --with-local-root and --with-network-root
3269 #--------------------------------------------------------------------
3270 echo "$as_me:$LINENO: checking for GNUSTEP_LOCAL_ROOT to use" >&5
3271 echo $ECHO_N "checking for GNUSTEP_LOCAL_ROOT to use... $ECHO_C" >&6
3273 # Check whether --with-local-root or --without-local-root was given.
3274 if test "${with_local_root+set}" = set; then
3275 withval="$with_local_root"
3276 GNUSTEP_LOCAL_ROOT="$withval"
3278 GNUSTEP_LOCAL_ROOT="$GNUSTEP_ROOT/Local"
3281 echo "$as_me:$LINENO: result: $GNUSTEP_LOCAL_ROOT" >&5
3282 echo "${ECHO_T}$GNUSTEP_LOCAL_ROOT" >&6
3284 echo "$as_me:$LINENO: checking for GNUSTEP_NETWORK_ROOT to use" >&5
3285 echo $ECHO_N "checking for GNUSTEP_NETWORK_ROOT to use... $ECHO_C" >&6
3287 # Check whether --with-network-root or --without-network-root was given.
3288 if test "${with_network_root+set}" = set; then
3289 withval="$with_network_root"
3290 GNUSTEP_NETWORK_ROOT="$withval"
3292 # By default we disable network root, by setting GNUSTEP_NETWORK_ROOT
3293 # to be the same as GNUSTEP_LOCAL_ROOT. GNUSTEP_NETWORK_ROOT is very
3294 # rarely used, and most users prefer simpler systems with shorter
3295 # paths and shorter command lines. To turn on GNUSTEP_NETWORK_ROOT
3296 # again, you can use the --with-network-root=xxx option; pass
3297 # something like --with-network-root=/usr/GNUstep/Network on the
3298 # configure command line.
3299 GNUSTEP_NETWORK_ROOT="$GNUSTEP_LOCAL_ROOT"
3302 echo "$as_me:$LINENO: result: $GNUSTEP_NETWORK_ROOT" >&5
3303 echo "${ECHO_T}$GNUSTEP_NETWORK_ROOT" >&6
3308 echo "$as_me:$LINENO: checking for GNUSTEP_USER_ROOT to use" >&5
3309 echo $ECHO_N "checking for GNUSTEP_USER_ROOT to use... $ECHO_C" >&6
3311 # Check whether --with-user-root or --without-user-root was given.
3312 if test "${with_user_root+set}" = set; then
3313 withval="$with_user_root"
3314 GNUSTEP_USER_ROOT="$withval"
3316 # The default is to have user roots in ~/GNUstep
3317 GNUSTEP_USER_ROOT="~/GNUstep"
3320 echo "$as_me:$LINENO: result: $GNUSTEP_USER_ROOT" >&5
3321 echo "${ECHO_T}$GNUSTEP_USER_ROOT" >&6
3324 #--------------------------------------------------------------------
3325 # Is the system flattened?
3326 #--------------------------------------------------------------------
3327 echo "$as_me:$LINENO: checking for flattened directory structure" >&5
3328 echo $ECHO_N "checking for flattened directory structure... $ECHO_C" >&6
3329 # Check whether --enable-flattened or --disable-flattened was given.
3330 if test "${enable_flattened+set}" = set; then
3331 enableval="$enable_flattened"
3332 ac_cv_flattened=$enableval
3334 ac_cv_flattened="undefined"
3337 if test "$ac_cv_flattened" = "no"; then
3340 GNUSTEP_FLATTENED=yes;
3344 if test "$GNUSTEP_FLATTENED" = "yes"; then
3345 echo "$as_me:$LINENO: result: yes" >&5
3346 echo "${ECHO_T}yes" >&6;
3348 echo "$as_me:$LINENO: result: no" >&5
3349 echo "${ECHO_T}no" >&6;
3353 #--------------------------------------------------------------------
3354 # Is the system multi-platform?
3355 #--------------------------------------------------------------------
3357 # Multi-platform means that GNUstep.sh will determine the host
3358 # platform (by running config.guess) each time that it is sourced.
3359 # This is good if you are sharing your GNUstep.sh across your network
3360 # (for example, mounting the makefiles via NFS), but it requires you
3361 # to be able to run config.guess on your machine(s), which usually
3362 # requires a development environment (compiler, libc etc).
3364 # The default instead is not using multi-platform, which means the
3365 # local host os, cpu and version is hardcoded in GNUstep.sh. This
3366 # works nicely for a single machine using this gnustep-make
3367 # installation, and it works even if you don't have development
3368 # packages (gcc, binutils, libc-dev etc) installed. We had to make
3369 # this the default after end-users (with no development packages
3370 # installed) complained that binary packages wouldn't work (and the
3371 # reason turned out to be that GNUstep.sh was running config.guess
3372 # which was returning the wrong platform because the development
3373 # tools needed/used to determine the platform were not available).
3375 # Unless you know what you are doing, stick with the default, which is
3376 # also much faster when sourcing GNUstep.sh.
3378 # Check whether --enable-multi-platform or --disable-multi-platform was given.
3379 if test "${enable_multi_platform+set}" = set; then
3380 enableval="$enable_multi_platform"
3381 ac_cv_multi_platform=$enableval
3383 ac_cv_multi_platform="undefined"
3386 if test "$ac_cv_multi_platform" = "yes"; then
3387 GNUSTEP_MULTI_PLATFORM=yes;
3389 GNUSTEP_MULTI_PLATFORM=;
3393 #--------------------------------------------------------------------
3394 # Build backend bundles (on by default)
3395 #--------------------------------------------------------------------
3396 # Check whether --enable-backend-bundle or --disable-backend-bundle was given.
3397 if test "${enable_backend_bundle+set}" = set; then
3398 enableval="$enable_backend_bundle"
3399 ac_cv_backend=$enableval
3404 if test "$ac_cv_backend" = "yes"; then
3411 #--------------------------------------------------------------------
3412 # Miscellaneous flags and setup
3413 #--------------------------------------------------------------------
3414 # Strip '-g' off of CFLAGS, since debug=yes adds that anyway
3415 CFLAGS=`echo $CFLAGS | sed -e 's/-g //'`
3417 # Set location of GNUstep dirs for later use
3418 if test "$GNUSTEP_FLATTENED" = yes; then
3419 GNUSTEP_LDIR="$prefix/Library/Libraries"
3420 GNUSTEP_HDIR="$prefix/Library/Headers"
3422 clean_target_os=`$srcdir/clean_os.sh $target_os`
3423 clean_target_cpu=`$srcdir/clean_cpu.sh $target_cpu`
3424 obj_dir="$clean_target_cpu/$clean_target_os"
3425 GNUSTEP_LDIR="$prefix/Library/Libraries/$obj_dir"
3426 GNUSTEP_HDIR="$prefix/Library/Headers/${ac_cv_library_combo}"
3429 # Check to see if the libobjc library is in our GNUSTEP_SYSTEM_ROOT.
3430 # If so, there are probably other libraries that we want there also, so
3431 # leave the proper includes in CPPFLAGS and LDFLAGS
3432 echo "$as_me:$LINENO: checking for custom shared objc library" >&5
3433 echo $ECHO_N "checking for custom shared objc library... $ECHO_C" >&6
3434 if test "${gs_cv_objc_libdir+set}" = set; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 gs_cv_objc_libdir=NONE
3438 if test -f "$GNUSTEP_HDIR/objc/objc.h"; then
3439 if test -f "$GNUSTEP_LDIR/libobjc.a" -o -f "$GNUSTEP_LDIR/libobjc.so"; then
3440 gs_cv_objc_libdir="$GNUSTEP_LDIR"
3442 gs_cv_objc_libdir=NONE
3445 #gcc_shared_libobjc=`gcc -print-file-name=libobjc.so`
3446 #if test -f "$gcc_shared_libobjc"; then
3447 # gs_cv_objc_libdir=`dirname $gcc_shared_libobjc`
3452 echo "$as_me:$LINENO: result: $gs_cv_objc_libdir" >&5
3453 echo "${ECHO_T}$gs_cv_objc_libdir" >&6
3455 # The following are needed to compile the test programs
3456 if test "$gs_cv_objc_libdir" = "$GNUSTEP_LDIR"; then
3457 if test "$GNUSTEP_FLATTENED" = yes; then
3458 OBJC_CPPFLAGS="$CPPFLAGS $INCLUDES -I$prefix/Library/Headers"
3460 OBJC_CPPFLAGS="$CPPFLAGS $INCLUDES -I$prefix/Library/Headers/${ac_cv_library_combo}"
3462 OBJC_LDFLAGS="$LDFLAGS $LIB_DIR -L$gs_cv_objc_libdir"
3465 # And the following to execute them
3466 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gs_cv_objc_libdir"
3467 export LD_LIBRARY_PATH
3469 #--------------------------------------------------------------------
3470 # Miscellaneous headers (only used for compiling which_lib.c and user_home.c)
3471 #--------------------------------------------------------------------
3479 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3480 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3481 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3482 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3484 echo $ECHO_N "(cached) $ECHO_C" >&6
3486 cat >conftest.$ac_ext <<_ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h. */
3492 #include <sys/types.h>
3504 rm -f conftest.$ac_objext
3505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3506 (eval $ac_compile) 2>conftest.er1
3508 grep -v '^ *+' conftest.er1 >conftest.err
3510 cat conftest.err >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } &&
3513 { ac_try='test -z "$ac_c_werror_flag"
3514 || test ! -s conftest.err'
3515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; } &&
3520 { ac_try='test -s conftest.$ac_objext'
3521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; }; then
3526 eval "$as_ac_Header=yes"
3528 echo "$as_me: failed program was:" >&5
3529 sed 's/^/| /' conftest.$ac_ext >&5
3531 eval "$as_ac_Header=no"
3533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3536 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3538 cat >>confdefs.h <<_ACEOF
3539 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3542 ac_header_dirent=$ac_hdr; break
3546 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3547 if test $ac_header_dirent = dirent.h; then
3548 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3549 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3550 if test "${ac_cv_search_opendir+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3553 ac_func_search_save_LIBS=$LIBS
3554 ac_cv_search_opendir=no
3555 cat >conftest.$ac_ext <<_ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h. */
3562 /* Override any gcc2 internal prototype to avoid an error. */
3566 /* We use char because int might match the return type of a gcc2
3567 builtin and then its argument prototype would still apply. */
3577 rm -f conftest.$ac_objext conftest$ac_exeext
3578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3579 (eval $ac_link) 2>conftest.er1
3581 grep -v '^ *+' conftest.er1 >conftest.err
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } &&
3586 { ac_try='test -z "$ac_c_werror_flag"
3587 || test ! -s conftest.err'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; } &&
3593 { ac_try='test -s conftest$ac_exeext'
3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; }; then
3599 ac_cv_search_opendir="none required"
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3605 rm -f conftest.err conftest.$ac_objext \
3606 conftest$ac_exeext conftest.$ac_ext
3607 if test "$ac_cv_search_opendir" = no; then
3608 for ac_lib in dir; do
3609 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3610 cat >conftest.$ac_ext <<_ACEOF
3613 cat confdefs.h >>conftest.$ac_ext
3614 cat >>conftest.$ac_ext <<_ACEOF
3615 /* end confdefs.h. */
3617 /* Override any gcc2 internal prototype to avoid an error. */
3621 /* We use char because int might match the return type of a gcc2
3622 builtin and then its argument prototype would still apply. */
3632 rm -f conftest.$ac_objext conftest$ac_exeext
3633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3634 (eval $ac_link) 2>conftest.er1
3636 grep -v '^ *+' conftest.er1 >conftest.err
3638 cat conftest.err >&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); } &&
3641 { ac_try='test -z "$ac_c_werror_flag"
3642 || test ! -s conftest.err'
3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; } &&
3648 { ac_try='test -s conftest$ac_exeext'
3649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); }; }; then
3654 ac_cv_search_opendir="-l$ac_lib"
3657 echo "$as_me: failed program was:" >&5
3658 sed 's/^/| /' conftest.$ac_ext >&5
3661 rm -f conftest.err conftest.$ac_objext \
3662 conftest$ac_exeext conftest.$ac_ext
3665 LIBS=$ac_func_search_save_LIBS
3667 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3668 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3669 if test "$ac_cv_search_opendir" != no; then
3670 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3675 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3676 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3677 if test "${ac_cv_search_opendir+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 ac_func_search_save_LIBS=$LIBS
3681 ac_cv_search_opendir=no
3682 cat >conftest.$ac_ext <<_ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3689 /* Override any gcc2 internal prototype to avoid an error. */
3693 /* We use char because int might match the return type of a gcc2
3694 builtin and then its argument prototype would still apply. */
3704 rm -f conftest.$ac_objext conftest$ac_exeext
3705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3706 (eval $ac_link) 2>conftest.er1
3708 grep -v '^ *+' conftest.er1 >conftest.err
3710 cat conftest.err >&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); } &&
3713 { ac_try='test -z "$ac_c_werror_flag"
3714 || test ! -s conftest.err'
3715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }; } &&
3720 { ac_try='test -s conftest$ac_exeext'
3721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; }; then
3726 ac_cv_search_opendir="none required"
3728 echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3732 rm -f conftest.err conftest.$ac_objext \
3733 conftest$ac_exeext conftest.$ac_ext
3734 if test "$ac_cv_search_opendir" = no; then
3736 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3737 cat >conftest.$ac_ext <<_ACEOF
3740 cat confdefs.h >>conftest.$ac_ext
3741 cat >>conftest.$ac_ext <<_ACEOF
3742 /* end confdefs.h. */
3744 /* Override any gcc2 internal prototype to avoid an error. */
3748 /* We use char because int might match the return type of a gcc2
3749 builtin and then its argument prototype would still apply. */
3759 rm -f conftest.$ac_objext conftest$ac_exeext
3760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3761 (eval $ac_link) 2>conftest.er1
3763 grep -v '^ *+' conftest.er1 >conftest.err
3765 cat conftest.err >&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); } &&
3768 { ac_try='test -z "$ac_c_werror_flag"
3769 || test ! -s conftest.err'
3770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); }; } &&
3775 { ac_try='test -s conftest$ac_exeext'
3776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }; }; then
3781 ac_cv_search_opendir="-l$ac_lib"
3784 echo "$as_me: failed program was:" >&5
3785 sed 's/^/| /' conftest.$ac_ext >&5
3788 rm -f conftest.err conftest.$ac_objext \
3789 conftest$ac_exeext conftest.$ac_ext
3792 LIBS=$ac_func_search_save_LIBS
3794 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3795 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3796 if test "$ac_cv_search_opendir" != no; then
3797 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3804 echo "$as_me:$LINENO: checking for egrep" >&5
3805 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3806 if test "${ac_cv_prog_egrep+set}" = set; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3809 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3810 then ac_cv_prog_egrep='grep -E'
3811 else ac_cv_prog_egrep='egrep'
3814 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3815 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3816 EGREP=$ac_cv_prog_egrep
3819 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3820 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3821 if test "${ac_cv_header_stdc+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 cat >conftest.$ac_ext <<_ACEOF
3827 cat confdefs.h >>conftest.$ac_ext
3828 cat >>conftest.$ac_ext <<_ACEOF
3829 /* end confdefs.h. */
3843 rm -f conftest.$ac_objext
3844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3845 (eval $ac_compile) 2>conftest.er1
3847 grep -v '^ *+' conftest.er1 >conftest.err
3849 cat conftest.err >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } &&
3852 { ac_try='test -z "$ac_c_werror_flag"
3853 || test ! -s conftest.err'
3854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; } &&
3859 { ac_try='test -s conftest.$ac_objext'
3860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }; }; then
3865 ac_cv_header_stdc=yes
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3870 ac_cv_header_stdc=no
3872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3874 if test $ac_cv_header_stdc = yes; then
3875 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3876 cat >conftest.$ac_ext <<_ACEOF
3879 cat confdefs.h >>conftest.$ac_ext
3880 cat >>conftest.$ac_ext <<_ACEOF
3881 /* end confdefs.h. */
3885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3886 $EGREP "memchr" >/dev/null 2>&1; then
3889 ac_cv_header_stdc=no
3895 if test $ac_cv_header_stdc = yes; then
3896 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3897 cat >conftest.$ac_ext <<_ACEOF
3900 cat confdefs.h >>conftest.$ac_ext
3901 cat >>conftest.$ac_ext <<_ACEOF
3902 /* end confdefs.h. */
3906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3907 $EGREP "free" >/dev/null 2>&1; then
3910 ac_cv_header_stdc=no
3916 if test $ac_cv_header_stdc = yes; then
3917 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3918 if test "$cross_compiling" = yes; then
3921 cat >conftest.$ac_ext <<_ACEOF
3924 cat confdefs.h >>conftest.$ac_ext
3925 cat >>conftest.$ac_ext <<_ACEOF
3926 /* end confdefs.h. */
3928 #if ((' ' & 0x0FF) == 0x020)
3929 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3930 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3932 # define ISLOWER(c) \
3933 (('a' <= (c) && (c) <= 'i') \
3934 || ('j' <= (c) && (c) <= 'r') \
3935 || ('s' <= (c) && (c) <= 'z'))
3936 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3939 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3944 for (i = 0; i < 256; i++)
3945 if (XOR (islower (i), ISLOWER (i))
3946 || toupper (i) != TOUPPER (i))
3951 rm -f conftest$ac_exeext
3952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3953 (eval $ac_link) 2>&5
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }; }; then
3964 echo "$as_me: program exited with status $ac_status" >&5
3965 echo "$as_me: failed program was:" >&5
3966 sed 's/^/| /' conftest.$ac_ext >&5
3969 ac_cv_header_stdc=no
3971 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3975 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3976 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3977 if test $ac_cv_header_stdc = yes; then
3979 cat >>confdefs.h <<\_ACEOF
3980 #define STDC_HEADERS 1
3985 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3995 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3996 inttypes.h stdint.h unistd.h
3998 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3999 echo "$as_me:$LINENO: checking for $ac_header" >&5
4000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4004 cat >conftest.$ac_ext <<_ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4010 $ac_includes_default
4012 #include <$ac_header>
4014 rm -f conftest.$ac_objext
4015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4016 (eval $ac_compile) 2>conftest.er1
4018 grep -v '^ *+' conftest.er1 >conftest.err
4020 cat conftest.err >&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); } &&
4023 { ac_try='test -z "$ac_c_werror_flag"
4024 || test ! -s conftest.err'
4025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); }; } &&
4030 { ac_try='test -s conftest.$ac_objext'
4031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }; }; then
4036 eval "$as_ac_Header=yes"
4038 echo "$as_me: failed program was:" >&5
4039 sed 's/^/| /' conftest.$ac_ext >&5
4041 eval "$as_ac_Header=no"
4043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4048 cat >>confdefs.h <<_ACEOF
4049 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4069 for ac_header in sys/param.h sys/file.h dir.h string.h stdlib.h sys/types.h fcntl.h limits.h utime.h sys/stat.h pwd.h unistd.h
4071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4073 echo "$as_me:$LINENO: checking for $ac_header" >&5
4074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4081 # Is the header compilable?
4082 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4084 cat >conftest.$ac_ext <<_ACEOF
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h. */
4090 $ac_includes_default
4091 #include <$ac_header>
4093 rm -f conftest.$ac_objext
4094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4095 (eval $ac_compile) 2>conftest.er1
4097 grep -v '^ *+' conftest.er1 >conftest.err
4099 cat conftest.err >&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); } &&
4102 { ac_try='test -z "$ac_c_werror_flag"
4103 || test ! -s conftest.err'
4104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); }; } &&
4109 { ac_try='test -s conftest.$ac_objext'
4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }; }; then
4115 ac_header_compiler=yes
4117 echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4120 ac_header_compiler=no
4122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4123 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4124 echo "${ECHO_T}$ac_header_compiler" >&6
4126 # Is the header present?
4127 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4129 cat >conftest.$ac_ext <<_ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4135 #include <$ac_header>
4137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4140 grep -v '^ *+' conftest.er1 >conftest.err
4142 cat conftest.err >&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); } >/dev/null; then
4145 if test -s conftest.err; then
4146 ac_cpp_err=$ac_c_preproc_warn_flag
4147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4154 if test -z "$ac_cpp_err"; then
4155 ac_header_preproc=yes
4157 echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4160 ac_header_preproc=no
4162 rm -f conftest.err conftest.$ac_ext
4163 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4164 echo "${ECHO_T}$ac_header_preproc" >&6
4166 # So? What about this header?
4167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4173 ac_header_preproc=yes
4176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4179 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4183 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4190 ## ------------------------------------------ ##
4191 ## Report this to the AC_PACKAGE_NAME lists. ##
4192 ## ------------------------------------------ ##
4195 sed "s/^/$as_me: WARNING: /" >&2
4198 echo "$as_me:$LINENO: checking for $ac_header" >&5
4199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 eval "$as_ac_Header=\$ac_header_preproc"
4205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4210 cat >>confdefs.h <<_ACEOF
4211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4223 for ac_func in getpwnam getpwuid geteuid getlogin strchr
4225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4226 echo "$as_me:$LINENO: checking for $ac_func" >&5
4227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4228 if eval "test \"\${$as_ac_var+set}\" = set"; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 cat >conftest.$ac_ext <<_ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h. */
4237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4239 #define $ac_func innocuous_$ac_func
4241 /* System header to define __stub macros and hopefully few prototypes,
4242 which can conflict with char $ac_func (); below.
4243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4244 <limits.h> exists even on freestanding compilers. */
4247 # include <limits.h>
4249 # include <assert.h>
4254 /* Override any gcc2 internal prototype to avoid an error. */
4259 /* We use char because int might match the return type of a gcc2
4260 builtin and then its argument prototype would still apply. */
4262 /* The GNU C library defines this for functions which it implements
4263 to always fail with ENOSYS. Some functions are actually named
4264 something starting with __ and the normal name is an alias. */
4265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4268 char (*f) () = $ac_func;
4277 return f != $ac_func;
4282 rm -f conftest.$ac_objext conftest$ac_exeext
4283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4284 (eval $ac_link) 2>conftest.er1
4286 grep -v '^ *+' conftest.er1 >conftest.err
4288 cat conftest.err >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } &&
4291 { ac_try='test -z "$ac_c_werror_flag"
4292 || test ! -s conftest.err'
4293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; } &&
4298 { ac_try='test -s conftest$ac_exeext'
4299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; }; then
4304 eval "$as_ac_var=yes"
4306 echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4309 eval "$as_ac_var=no"
4311 rm -f conftest.err conftest.$ac_objext \
4312 conftest$ac_exeext conftest.$ac_ext
4314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4315 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4316 if test `eval echo '${'$as_ac_var'}'` = yes; then
4317 cat >>confdefs.h <<_ACEOF
4318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4325 #--------------------------------------------------------------------
4326 # Check if libobjc was compiled with thread support.
4327 #--------------------------------------------------------------------
4330 # Check whether --with-thread-lib or --without-thread-lib was given.
4331 if test "${with_thread_lib+set}" = set; then
4332 withval="$with_thread_lib"
4333 OBJC_THREAD=$withval
4340 echo "$as_me:$LINENO: checking whether objc has thread support" >&5
4341 echo $ECHO_N "checking whether objc has thread support... $ECHO_C" >&6
4342 saved_CFLAGS="$CFLAGS"
4344 CFLAGS="$CFLAGS -x objective-c -I$srcdir $OBJC_CPPFLAGS $OBJC_LDFLAGS"
4345 if test "$OBJC_RUNTIME_LIB" = "gnu"; then
4346 CFLAGS="$CFLAGS -fgnu-runtime"
4348 if test "$OBJC_RUNTIME_LIB" = "nx"; then
4349 CFLAGS="$CFLAGS -DNeXT_RUNTIME"
4351 if test "$OBJC_RUNTIME_LIB" = "apple"; then
4352 CFLAGS="$CFLAGS -DNeXT_RUNTIME"
4354 if test "$OBJC_THREAD" != ""; then
4355 LIBS="-lobjc $LIBS $OBJC_THREAD"
4356 if test "$cross_compiling" = yes; then
4359 cat >conftest.$ac_ext <<_ACEOF
4362 cat confdefs.h >>conftest.$ac_ext
4363 cat >>conftest.$ac_ext <<_ACEOF
4364 /* end confdefs.h. */
4365 #include "config_thread.m"
4367 rm -f conftest$ac_exeext
4368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4369 (eval $ac_link) 2>&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; }; then
4378 objc_threaded="$OBJC_THREAD"
4380 echo "$as_me: program exited with status $ac_status" >&5
4381 echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4387 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4389 elif test "$host_os" = linux-gnu; then
4390 LIBS="-lobjc -lpthread"
4391 if test "$cross_compiling" = yes; then
4392 objc_threaded="-lpthread"
4394 cat >conftest.$ac_ext <<_ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h. */
4400 #include "config_thread.m"
4402 rm -f conftest$ac_exeext
4403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4404 (eval $ac_link) 2>&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; }; then
4413 objc_threaded="-lpthread"
4415 echo "$as_me: program exited with status $ac_status" >&5
4416 echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4422 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4424 elif test "`echo $host_os|sed 's/[0-9].*//'|sed s/elf//`" = freebsd; then
4425 LIBS="-pthread -lobjc"
4426 if test "$cross_compiling" = yes; then
4427 objc_threaded="-pthread"
4429 cat >conftest.$ac_ext <<_ACEOF
4432 cat confdefs.h >>conftest.$ac_ext
4433 cat >>conftest.$ac_ext <<_ACEOF
4434 /* end confdefs.h. */
4435 #include "config_thread.m"
4437 rm -f conftest$ac_exeext
4438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4439 (eval $ac_link) 2>&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; }; then
4448 objc_threaded="-pthread"
4450 echo "$as_me: program exited with status $ac_status" >&5
4451 echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.$ac_ext >&5
4457 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4459 if test x"$objc_threaded" = x""; then
4460 LIBS="-lpthread -lobjc"
4461 if test "$cross_compiling" = yes; then
4462 objc_threaded="-lpthread"
4464 cat >conftest.$ac_ext <<_ACEOF
4467 cat confdefs.h >>conftest.$ac_ext
4468 cat >>conftest.$ac_ext <<_ACEOF
4469 /* end confdefs.h. */
4470 #include "config_thread.m"
4472 rm -f conftest$ac_exeext
4473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4474 (eval $ac_link) 2>&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; }; then
4483 objc_threaded="-lpthread"
4485 echo "$as_me: program exited with status $ac_status" >&5
4486 echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4492 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4495 if test x"$objc_threaded" = x""; then
4496 LIBS="-lobjc -lpcthread"
4497 if test "$cross_compiling" = yes; then
4498 objc_threaded="-lpcthread"
4500 cat >conftest.$ac_ext <<_ACEOF
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h. */
4506 #include "config_thread.m"
4508 rm -f conftest$ac_exeext
4509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4510 (eval $ac_link) 2>&5
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; }; then
4519 objc_threaded="-lpcthread"
4521 echo "$as_me: program exited with status $ac_status" >&5
4522 echo "$as_me: failed program was:" >&5
4523 sed 's/^/| /' conftest.$ac_ext >&5
4528 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4531 elif test "$MINGW32" = yes; then
4532 # Mingw doesn't need anything extra for threads
4534 if test "$cross_compiling" = yes; then
4535 objc_threaded="works"
4537 cat >conftest.$ac_ext <<_ACEOF
4540 cat confdefs.h >>conftest.$ac_ext
4541 cat >>conftest.$ac_ext <<_ACEOF
4542 /* end confdefs.h. */
4543 #include "config_thread.m"
4545 rm -f conftest$ac_exeext
4546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4547 (eval $ac_link) 2>&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); }; }; then
4556 objc_threaded="works"
4558 echo "$as_me: program exited with status $ac_status" >&5
4559 echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4565 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4569 if test "$cross_compiling" = yes; then
4572 cat >conftest.$ac_ext <<_ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4578 #include "config_thread.m"
4580 rm -f conftest$ac_exeext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4582 (eval $ac_link) 2>&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); }; }; then
4591 objc_threaded="works"
4593 echo "$as_me: program exited with status $ac_status" >&5
4594 echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4600 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4602 if test x"$objc_threaded" = x""; then
4603 LIBS="-lobjc $saved_LIBS -lpthread "
4604 if test "$cross_compiling" = yes; then
4607 cat >conftest.$ac_ext <<_ACEOF
4610 cat confdefs.h >>conftest.$ac_ext
4611 cat >>conftest.$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4613 #include "config_thread.m"
4615 rm -f conftest$ac_exeext
4616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4617 (eval $ac_link) 2>&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; }; then
4626 objc_threaded="-lpthread"
4628 echo "$as_me: program exited with status $ac_status" >&5
4629 echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4635 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4638 if test x"$objc_threaded" = x""; then
4639 # Solaris, OpenBSD/sparc
4640 LIBS="-lobjc $saved_LIBS -lpthread -lposix4"
4641 if test "$cross_compiling" = yes; then
4644 cat >conftest.$ac_ext <<_ACEOF
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h. */
4650 #include "config_thread.m"
4652 rm -f conftest$ac_exeext
4653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4654 (eval $ac_link) 2>&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); }; }; then
4663 objc_threaded="-lpthread -lposix4"
4665 echo "$as_me: program exited with status $ac_status" >&5
4666 echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4672 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4675 if test x"$objc_threaded" = x""; then
4676 LIBS="-lobjc $saved_LIBS -lthread "
4677 if test "$cross_compiling" = yes; then
4680 cat >conftest.$ac_ext <<_ACEOF
4683 cat confdefs.h >>conftest.$ac_ext
4684 cat >>conftest.$ac_ext <<_ACEOF
4685 /* end confdefs.h. */
4686 #include "config_thread.m"
4688 rm -f conftest$ac_exeext
4689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4690 (eval $ac_link) 2>&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; }; then
4699 objc_threaded="-lthread"
4701 echo "$as_me: program exited with status $ac_status" >&5
4702 echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4708 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4712 if test x"$objc_threaded" = x""; then
4713 echo "$as_me:$LINENO: result: no" >&5
4714 echo "${ECHO_T}no" >&6
4716 if test x"$objc_threaded" = x"works"; then
4719 echo "$as_me:$LINENO: result: yes: $objc_threaded" >&5
4720 echo "${ECHO_T}yes: $objc_threaded" >&6
4722 ac_cv_objc_threaded="$objc_threaded"
4726 # Do not restore LIBS and CFLAGS yet as we need to test if the
4727 # compiler supports native exceptions.
4729 #--------------------------------------------------------------------
4730 # Check if GCC supports -fobjc-exceptions, and if so, turn it on!
4731 #--------------------------------------------------------------------
4733 # Check whether --enable-native-objc-exceptions or --disable-native-objc-exceptions was given.
4734 if test "${enable_native_objc_exceptions+set}" = set; then
4735 enableval="$enable_native_objc_exceptions"
4736 USE_OBJC_EXCEPTIONS=$enableval
4738 USE_OBJC_EXCEPTIONS=no
4741 echo "$as_me:$LINENO: checking whether we should use native ObjC exceptions" >&5
4742 echo $ECHO_N "checking whether we should use native ObjC exceptions... $ECHO_C" >&6
4743 if test x"$USE_OBJC_EXCEPTIONS" = x"yes"; then
4744 # What we want to do: set USE_OBJC_EXCEPTIONS to yes if we can compile
4745 # something with @try/@catch/@finally in it.
4746 if test ! ${GCC} = "yes" ; then
4747 USE_OBJC_EXCEPTIONS=no
4748 echo "$as_me:$LINENO: result: no: compiler isn't gcc" >&5
4749 echo "${ECHO_T}no: compiler isn't gcc" >&6
4751 CFLAGS="$CFLAGS -fobjc-exceptions"
4752 if test "$cross_compiling" = yes; then
4753 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4754 See \`config.log' for more details." >&5
4755 echo "$as_me: error: cannot run test program while cross compiling
4756 See \`config.log' for more details." >&2;}
4757 { (exit 1); exit 1; }; }
4759 cat >conftest.$ac_ext <<_ACEOF
4762 #include <objc/Object.h>
4764 int main(int argc, char **argv)
4781 rm -f conftest$ac_exeext
4782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4783 (eval $ac_link) 2>&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); }; }; then
4792 USE_OBJC_EXCEPTIONS=yes
4794 echo "$as_me: program exited with status $ac_status" >&5
4795 echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.$ac_ext >&5
4799 USE_OBJC_EXCEPTIONS=no
4801 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4803 echo "$as_me:$LINENO: result: $USE_OBJC_EXCEPTIONS" >&5
4804 echo "${ECHO_T}$USE_OBJC_EXCEPTIONS" >&6
4806 if test x$USE_OBJC_EXCEPTIONS = xno; then
4807 { echo "$as_me:$LINENO: Native objective-c exceptions were requested, but the compiler" >&5
4808 echo "$as_me: Native objective-c exceptions were requested, but the compiler" >&6;}
4809 { echo "$as_me:$LINENO: doesn't support them." >&5
4810 echo "$as_me: doesn't support them." >&6;}
4811 { { echo "$as_me:$LINENO: error: compiler doesn't support native objective-c exceptions" >&5
4812 echo "$as_me: error: compiler doesn't support native objective-c exceptions" >&2;}
4813 { (exit 1); exit 1; }; }
4816 echo "$as_me:$LINENO: result: not requested by user" >&5
4817 echo "${ECHO_T}not requested by user" >&6
4822 # Restore LIBS and CFLAGS - we are going to compile C code in the next
4825 CFLAGS="$saved_CFLAGS"
4827 #--------------------------------------------------------------------
4828 # Check if compiler supports -MMD -MP to generate %.d files ...
4829 #--------------------------------------------------------------------
4831 echo "$as_me:$LINENO: checking if the compiler supports autodependencies" >&5
4832 echo $ECHO_N "checking if the compiler supports autodependencies... $ECHO_C" >&6
4834 # What we want to do: set AUTO_DEPENDENCIES to yes if gcc => 3.x
4836 if test ! ${GCC} = "yes" ; then
4837 AUTO_DEPENDENCIES=""
4838 echo "$as_me:$LINENO: result: no: it's not gcc" >&5
4839 echo "${ECHO_T}no: it's not gcc" >&6
4841 # Running gcc -dumpversion we get something like 2.95.4 or
4842 # egcs-2.91.66 or 3.0.2 or 3.1 20011211
4843 # We want to discard anything but the major number.
4844 # Explanation of the regexp -
4845 # \(^[^0-9]*\) matches beginning of line and following non numeric chars
4846 # \([0-9][0-9]*\) matches 1 or more numeric chars (this is the 2^nd
4848 # \([^0-9].*\) matches a non numeric char followed by anything
4849 # /\2/ replace the whole lot with the 2^nd subpattern
4850 gs_cv_gcc_major_version=`${CC} -dumpversion | sed "s/\([^0-9]*\)\([0-9][0-9]*\)\([^0-9].*\)/\2/"`;
4852 if test "${gs_cv_gcc_major_version}" -ge "3" ; then
4853 AUTO_DEPENDENCIES=yes
4854 echo "$as_me:$LINENO: result: yes: gcc major version is ${gs_cv_gcc_major_version}" >&5
4855 echo "${ECHO_T}yes: gcc major version is ${gs_cv_gcc_major_version}" >&6
4857 AUTO_DEPENDENCIES=""
4858 echo "$as_me:$LINENO: result: no: gcc major version is ${gs_cv_gcc_major_version}" >&5
4859 echo "${ECHO_T}no: gcc major version is ${gs_cv_gcc_major_version}" >&6
4868 #--------------------------------------------------------------------
4869 # Shall we strip makefiles upon installation ?
4870 #--------------------------------------------------------------------
4872 # Stripping makefiles removes comments and newlines from them. The
4873 # resulting stripped makefiles execute around 5% faster on average.
4874 # Too little for it to be worth for the common user who's more
4875 # interested in the comments :-) so it's disabled by default.
4876 echo "$as_me:$LINENO: checking if we should strip makefiles after installation" >&5
4877 echo $ECHO_N "checking if we should strip makefiles after installation... $ECHO_C" >&6
4878 # Check whether --enable-strip-makefiles or --disable-strip-makefiles was given.
4879 if test "${enable_strip_makefiles+set}" = set; then
4880 enableval="$enable_strip_makefiles"
4881 ac_cv_strip_makefiles=$enableval
4883 ac_cv_strip_makefiles="undefined"
4886 if test "$ac_cv_strip_makefiles" = "yes"; then
4887 GNUSTEP_STRIP_MAKEFILES=strip;
4888 echo "$as_me:$LINENO: result: yes" >&5
4889 echo "${ECHO_T}yes" >&6;
4891 GNUSTEP_STRIP_MAKEFILES=;
4892 echo "$as_me:$LINENO: result: no" >&5
4893 echo "${ECHO_T}no" >&6;
4898 #--------------------------------------------------------------------
4899 # Disable updating the obsolete directory structure
4900 #--------------------------------------------------------------------
4901 gs_move_obsolete=yes
4902 # Check whether --enable-move-obsolete or --disable-move-obsolete was given.
4903 if test "${enable_move_obsolete+set}" = set; then
4904 enableval="$enable_move_obsolete"
4905 gs_move_obsolete=$enableval
4907 gs_move_obsolete=yes
4910 if test "$gs_move_obsolete" = "yes"; then
4911 GNUSTEP_MOVE_OBSOLETE=move_obsolete;
4913 GNUSTEP_MOVE_OBSOLETE=
4914 { echo "$as_me:$LINENO: Old GNUstep directories will not be moved" >&5
4915 echo "$as_me: Old GNUstep directories will not be moved" >&6;}
4919 #--------------------------------------------------------------------
4920 # Record the version
4921 #--------------------------------------------------------------------
4922 echo "$as_me:$LINENO: checking for the version of gnustep-make we are compiling" >&5
4923 echo $ECHO_N "checking for the version of gnustep-make we are compiling... $ECHO_C" >&6
4925 echo "$as_me:$LINENO: result: $GNUSTEP_MAKE_VERSION" >&5
4926 echo "${ECHO_T}$GNUSTEP_MAKE_VERSION" >&6
4932 #-------------------------------------------------------------------
4933 # Record the 'clean' target_os, target_cpu and target_vendor
4934 #-------------------------------------------------------------------
4935 # This is just for efficiency, so that core/make/GNUmakefile does not
4936 # have to compute clean_target_os from target_os (and similar) by
4937 # running shell scripts each time you 'make' something inside
4938 # gnustep-make. We basically compute them once now, and cache them
4939 # forever. It is also used by GNUstep.sh when multi-platform is
4941 clean_target_os=`$srcdir/clean_os.sh $target_os`
4942 clean_target_cpu=`$srcdir/clean_cpu.sh $target_cpu`
4943 clean_target_vendor=`$srcdir/clean_cpu.sh $target_vendor`
4949 #--------------------------------------------------------------------
4950 # Produce the output files
4951 #--------------------------------------------------------------------
4952 ac_config_files="$ac_config_files config.make openapp debugapp opentool executable.template GNUmakefile GNUstep.sh GNUstep.csh fixpath.sh gnustep-make.spec GNUsteprc"
4954 ac_config_commands="$ac_config_commands default"
4956 cat >confcache <<\_ACEOF
4957 # This file is a shell script that caches the results of configure
4958 # tests run on this system so they can be shared between configure
4959 # scripts and configure runs, see configure's option --config-cache.
4960 # It is not useful on other systems. If it contains results you don't
4961 # want to keep, you may remove or edit it.
4963 # config.status only pays attention to the cache file if you give it
4964 # the --recheck option to rerun configure.
4966 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4967 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4972 # The following way of writing the cache mishandles newlines in values,
4973 # but we know of no workaround that is simple, portable, and efficient.
4974 # So, don't put newlines in cache variables' values.
4975 # Ultrix sh set writes to stderr and can't be redirected directly,
4976 # and sets the high bit in the cache file unless we assign to the vars.
4979 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4981 # `set' does not quote correctly, so add quotes (double-quote
4982 # substitution turns \\\\ into \\, and sed turns \\ into \).
4985 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4988 # `set' quotes correctly as required by POSIX, so do not add quotes.
4990 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4997 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4999 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5001 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5002 if test -w $cache_file; then
5003 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5004 cat confcache >$cache_file
5006 echo "not updating unwritable cache $cache_file"
5011 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5012 # Let make expand exec_prefix.
5013 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5015 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5016 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5017 # trailing colons and then remove the whole line if VPATH becomes empty
5018 # (actually we leave an empty line to preserve line numbers).
5019 if test "x$srcdir" = x.; then
5020 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5021 s/:*\$(srcdir):*/:/;
5022 s/:*\${srcdir}:*/:/;
5024 s/^\([^=]*=[ ]*\):*/\1/;
5030 DEFS=-DHAVE_CONFIG_H
5034 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5035 # 1. Remove the extension, and $U if already installed.
5036 ac_i=`echo "$ac_i" |
5037 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5039 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5040 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5044 LTLIBOBJS=$ac_ltlibobjs
5048 : ${CONFIG_STATUS=./config.status}
5049 ac_clean_files_save=$ac_clean_files
5050 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5051 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5052 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5053 cat >$CONFIG_STATUS <<_ACEOF
5055 # Generated by $as_me.
5056 # Run this file to recreate the current configuration.
5057 # Compiler output produced by configure, useful for debugging
5058 # configure, is in config.log if it exists.
5063 SHELL=\${CONFIG_SHELL-$SHELL}
5066 cat >>$CONFIG_STATUS <<\_ACEOF
5067 ## --------------------- ##
5068 ## M4sh Initialization. ##
5069 ## --------------------- ##
5071 # Be Bourne compatible
5072 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5075 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5076 # is contrary to our usage. Disable this feature.
5077 alias -g '${1+"$@"}'='"$@"'
5078 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5081 DUALCASE=1; export DUALCASE # for MKS sh
5083 # Support unset when possible.
5084 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5091 # Work around bugs in pre-3.0 UWIN ksh.
5092 $as_unset ENV MAIL MAILPATH
5099 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5100 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5101 LC_TELEPHONE LC_TIME
5103 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5104 eval $as_var=C; export $as_var
5110 # Required to use basename.
5111 if expr a : '\(a\)' >/dev/null 2>&1; then
5117 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5118 as_basename=basename
5124 # Name of the executable.
5125 as_me=`$as_basename "$0" ||
5126 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5127 X"$0" : 'X\(//\)$' \| \
5128 X"$0" : 'X\(/\)$' \| \
5129 . : '\(.\)' 2>/dev/null ||
5131 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5132 /^X\/\(\/\/\)$/{ s//\1/; q; }
5133 /^X\/\(\/\).*/{ s//\1/; q; }
5137 # PATH needs CR, and LINENO needs CR and PATH.
5138 # Avoid depending upon Character Ranges.
5139 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5140 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5141 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5142 as_cr_digits='0123456789'
5143 as_cr_alnum=$as_cr_Letters$as_cr_digits
5145 # The user is always right.
5146 if test "${PATH_SEPARATOR+set}" != set; then
5147 echo "#! /bin/sh" >conf$$.sh
5148 echo "exit 0" >>conf$$.sh
5150 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5161 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5162 test "x$as_lineno_1" != "x$as_lineno_2" &&
5163 test "x$as_lineno_3" = "x$as_lineno_2" || {
5164 # Find who we are. Look in the path if we contain no path at all
5167 *[\\/]* ) as_myself=$0 ;;
5168 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 test -z "$as_dir" && as_dir=.
5173 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5178 # We did not find ourselves, most probably we were run as `sh COMMAND'
5179 # in which case we are not to be found in the path.
5180 if test "x$as_myself" = x; then
5183 if test ! -f "$as_myself"; then
5184 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5185 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5186 { (exit 1); exit 1; }; }
5188 case $CONFIG_SHELL in
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5194 test -z "$as_dir" && as_dir=.
5195 for as_base in sh bash ksh sh5; do
5198 if ("$as_dir/$as_base" -c '
5201 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5202 test "x$as_lineno_1" != "x$as_lineno_2" &&
5203 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5204 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5205 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5206 CONFIG_SHELL=$as_dir/$as_base
5208 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5216 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5217 # uniformly replaced by the line number. The first 'sed' inserts a
5218 # line-number line before each line; the second 'sed' does the real
5219 # work. The second script uses 'N' to pair each line-number line
5220 # with the numbered line, and appends trailing '-' during
5221 # substitution so that $LINENO is not a special case at line end.
5222 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5223 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5224 sed '=' <$as_myself |
5229 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5232 s,^['$as_cr_digits']*\n,,
5234 chmod +x $as_me.lineno ||
5235 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5236 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5237 { (exit 1); exit 1; }; }
5239 # Don't try to exec as it changes $[0], causing all sort of problems
5240 # (the dirname of $[0] is not the place where we might find the
5241 # original and so on. Autoconf is especially sensible to this).
5243 # Exit status is that of the last command.
5248 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5249 *c*,-n*) ECHO_N= ECHO_C='
5251 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5252 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5255 if expr a : '\(a\)' >/dev/null 2>&1; then
5261 rm -f conf$$ conf$$.exe conf$$.file
5263 if ln -s conf$$.file conf$$ 2>/dev/null; then
5264 # We could just check for DJGPP; but this test a) works b) is more generic
5265 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5266 if test -f conf$$.exe; then
5267 # Don't use ln at all; we don't have any links
5272 elif ln conf$$.file conf$$ 2>/dev/null; then
5277 rm -f conf$$ conf$$.exe conf$$.file
5279 if mkdir -p . 2>/dev/null; then
5282 test -d ./-p && rmdir ./-p
5286 as_executable_p="test -f"
5288 # Sed expression to map a string onto a valid CPP name.
5289 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5291 # Sed expression to map a string onto a valid variable name.
5292 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5296 # We need space, tab and new line, in precisely that order.
5306 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5307 # report actual input values of CONFIG_FILES etc. instead of their
5308 # values after options handling. Logging --version etc. is OK.
5312 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5313 ## Running $as_me. ##
5318 This file was extended by $as_me, which was
5319 generated by GNU Autoconf 2.59. Invocation command line was
5321 CONFIG_FILES = $CONFIG_FILES
5322 CONFIG_HEADERS = $CONFIG_HEADERS
5323 CONFIG_LINKS = $CONFIG_LINKS
5324 CONFIG_COMMANDS = $CONFIG_COMMANDS
5328 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5332 # Files that config.status was made for.
5333 if test -n "$ac_config_files"; then
5334 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5337 if test -n "$ac_config_headers"; then
5338 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5341 if test -n "$ac_config_links"; then
5342 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5345 if test -n "$ac_config_commands"; then
5346 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5349 cat >>$CONFIG_STATUS <<\_ACEOF
5352 \`$as_me' instantiates files from templates according to the
5353 current configuration.
5355 Usage: $0 [OPTIONS] [FILE]...
5357 -h, --help print this help, then exit
5358 -V, --version print version number, then exit
5359 -q, --quiet do not print progress messages
5360 -d, --debug don't remove temporary files
5361 --recheck update $as_me by reconfiguring in the same conditions
5362 --file=FILE[:TEMPLATE]
5363 instantiate the configuration file FILE
5364 --header=FILE[:TEMPLATE]
5365 instantiate the configuration header FILE
5367 Configuration files:
5370 Configuration headers:
5373 Configuration commands:
5376 Report bugs to <bug-autoconf@gnu.org>."
5379 cat >>$CONFIG_STATUS <<_ACEOF
5382 configured by $0, generated by GNU Autoconf 2.59,
5383 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5385 Copyright (C) 2003 Free Software Foundation, Inc.
5386 This config.status script is free software; the Free Software Foundation
5387 gives unlimited permission to copy, distribute and modify it."
5392 cat >>$CONFIG_STATUS <<\_ACEOF
5393 # If no file are specified by the user, then we need to provide default
5394 # value. By we need to know if files were specified by the user.
5400 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5401 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5409 *) # This is not an option, so the user has probably given explicit
5412 ac_need_defaults=false;;
5416 # Handling of the options.
5418 cat >>$CONFIG_STATUS <<\_ACEOF
5419 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5421 --version | --vers* | -V )
5422 echo "$ac_cs_version"; exit 0 ;;
5424 # Conflict between --help and --header
5425 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5426 Try \`$0 --help' for more information." >&5
5427 echo "$as_me: error: ambiguous option: $1
5428 Try \`$0 --help' for more information." >&2;}
5429 { (exit 1); exit 1; }; };;
5430 --help | --hel | -h )
5431 echo "$ac_cs_usage"; exit 0 ;;
5432 --debug | --d* | -d )
5434 --file | --fil | --fi | --f )
5436 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5437 ac_need_defaults=false;;
5438 --header | --heade | --head | --hea )
5440 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5441 ac_need_defaults=false;;
5442 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5443 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5447 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5448 Try \`$0 --help' for more information." >&5
5449 echo "$as_me: error: unrecognized option: $1
5450 Try \`$0 --help' for more information." >&2;}
5451 { (exit 1); exit 1; }; } ;;
5453 *) ac_config_targets="$ac_config_targets $1" ;;
5459 ac_configure_extra_args=
5461 if $ac_cs_silent; then
5463 ac_configure_extra_args="$ac_configure_extra_args --silent"
5467 cat >>$CONFIG_STATUS <<_ACEOF
5468 if \$ac_cs_recheck; then
5469 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5470 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5475 cat >>$CONFIG_STATUS <<_ACEOF
5477 # INIT-COMMANDS section.
5486 cat >>$CONFIG_STATUS <<\_ACEOF
5487 for ac_config_target in $ac_config_targets
5489 case "$ac_config_target" in
5490 # Handling of arguments.
5491 "config.make" ) CONFIG_FILES="$CONFIG_FILES config.make" ;;
5492 "openapp" ) CONFIG_FILES="$CONFIG_FILES openapp" ;;
5493 "debugapp" ) CONFIG_FILES="$CONFIG_FILES debugapp" ;;
5494 "opentool" ) CONFIG_FILES="$CONFIG_FILES opentool" ;;
5495 "executable.template" ) CONFIG_FILES="$CONFIG_FILES executable.template" ;;
5496 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
5497 "GNUstep.sh" ) CONFIG_FILES="$CONFIG_FILES GNUstep.sh" ;;
5498 "GNUstep.csh" ) CONFIG_FILES="$CONFIG_FILES GNUstep.csh" ;;
5499 "fixpath.sh" ) CONFIG_FILES="$CONFIG_FILES fixpath.sh" ;;
5500 "gnustep-make.spec" ) CONFIG_FILES="$CONFIG_FILES gnustep-make.spec" ;;
5501 "GNUsteprc" ) CONFIG_FILES="$CONFIG_FILES GNUsteprc" ;;
5502 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5503 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5504 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5505 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5506 { (exit 1); exit 1; }; };;
5510 # If the user did not use the arguments to specify the items to instantiate,
5511 # then the envvar interface is used. Set only those that are not.
5512 # We use the long form for the default assignment because of an extremely
5513 # bizarre bug on SunOS 4.1.3.
5514 if $ac_need_defaults; then
5515 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5516 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5517 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5520 # Have a temporary directory for convenience. Make it in the build tree
5521 # simply because there is no reason to put it here, and in addition,
5522 # creating and moving files from /tmp can sometimes cause problems.
5523 # Create a temporary directory, and hook for its removal unless debugging.
5526 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5527 trap '{ (exit 1); exit 1; }' 1 2 13 15
5530 # Create a (secure) tmp directory for tmp files.
5533 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5534 test -n "$tmp" && test -d "$tmp"
5537 tmp=./confstat$$-$RANDOM
5538 (umask 077 && mkdir $tmp)
5541 echo "$me: cannot create a temporary directory in ." >&2
5542 { (exit 1); exit 1; }
5547 cat >>$CONFIG_STATUS <<_ACEOF
5550 # CONFIG_FILES section.
5553 # No need to generate the scripts if there are no CONFIG_FILES.
5554 # This happens for instance when ./config.status config.h
5555 if test -n "\$CONFIG_FILES"; then
5556 # Protect against being on the right side of a sed subst in config.status.
5557 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5558 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5559 s,@SHELL@,$SHELL,;t t
5560 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5561 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5562 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5563 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5564 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5565 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5566 s,@exec_prefix@,$exec_prefix,;t t
5567 s,@prefix@,$prefix,;t t
5568 s,@program_transform_name@,$program_transform_name,;t t
5569 s,@bindir@,$bindir,;t t
5570 s,@sbindir@,$sbindir,;t t
5571 s,@libexecdir@,$libexecdir,;t t
5572 s,@datadir@,$datadir,;t t
5573 s,@sysconfdir@,$sysconfdir,;t t
5574 s,@sharedstatedir@,$sharedstatedir,;t t
5575 s,@localstatedir@,$localstatedir,;t t
5576 s,@libdir@,$libdir,;t t
5577 s,@includedir@,$includedir,;t t
5578 s,@oldincludedir@,$oldincludedir,;t t
5579 s,@infodir@,$infodir,;t t
5580 s,@mandir@,$mandir,;t t
5581 s,@build_alias@,$build_alias,;t t
5582 s,@host_alias@,$host_alias,;t t
5583 s,@target_alias@,$target_alias,;t t
5585 s,@ECHO_C@,$ECHO_C,;t t
5586 s,@ECHO_N@,$ECHO_N,;t t
5587 s,@ECHO_T@,$ECHO_T,;t t
5590 s,@CFLAGS@,$CFLAGS,;t t
5591 s,@LDFLAGS@,$LDFLAGS,;t t
5592 s,@CPPFLAGS@,$CPPFLAGS,;t t
5593 s,@ac_ct_CC@,$ac_ct_CC,;t t
5594 s,@EXEEXT@,$EXEEXT,;t t
5595 s,@OBJEXT@,$OBJEXT,;t t
5597 s,@build@,$build,;t t
5598 s,@build_cpu@,$build_cpu,;t t
5599 s,@build_vendor@,$build_vendor,;t t
5600 s,@build_os@,$build_os,;t t
5602 s,@host_cpu@,$host_cpu,;t t
5603 s,@host_vendor@,$host_vendor,;t t
5604 s,@host_os@,$host_os,;t t
5605 s,@target@,$target,;t t
5606 s,@target_cpu@,$target_cpu,;t t
5607 s,@target_vendor@,$target_vendor,;t t
5608 s,@target_os@,$target_os,;t t
5609 s,@ac_cv_library_combo@,$ac_cv_library_combo,;t t
5610 s,@cc_cppprecomp@,$cc_cppprecomp,;t t
5611 s,@cc_bundle@,$cc_bundle,;t t
5612 s,@CYGWIN@,$CYGWIN,;t t
5613 s,@RANLIB@,$RANLIB,;t t
5615 s,@DLLTOOL@,$DLLTOOL,;t t
5616 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5617 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5618 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5619 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5622 s,@CHOWN@,$CHOWN,;t t
5623 s,@GNUSTEP_ROOT@,$GNUSTEP_ROOT,;t t
5624 s,@root_prefix@,$root_prefix,;t t
5625 s,@MAKEFILES_SUFFIX@,$MAKEFILES_SUFFIX,;t t
5626 s,@HOST_INSTALL@,$HOST_INSTALL,;t t
5627 s,@GNUSTEP_LOCAL_ROOT@,$GNUSTEP_LOCAL_ROOT,;t t
5628 s,@GNUSTEP_NETWORK_ROOT@,$GNUSTEP_NETWORK_ROOT,;t t
5629 s,@GNUSTEP_USER_ROOT@,$GNUSTEP_USER_ROOT,;t t
5630 s,@GNUSTEP_FLATTENED@,$GNUSTEP_FLATTENED,;t t
5631 s,@GNUSTEP_MULTI_PLATFORM@,$GNUSTEP_MULTI_PLATFORM,;t t
5632 s,@BACKEND_BUNDLE@,$BACKEND_BUNDLE,;t t
5633 s,@EGREP@,$EGREP,;t t
5634 s,@objc_threaded@,$objc_threaded,;t t
5635 s,@ac_cv_objc_threaded@,$ac_cv_objc_threaded,;t t
5636 s,@USE_OBJC_EXCEPTIONS@,$USE_OBJC_EXCEPTIONS,;t t
5637 s,@AUTO_DEPENDENCIES@,$AUTO_DEPENDENCIES,;t t
5638 s,@INCLUDES@,$INCLUDES,;t t
5639 s,@LIB_DIR@,$LIB_DIR,;t t
5640 s,@OBJCFLAGS@,$OBJCFLAGS,;t t
5641 s,@GNUSTEP_STRIP_MAKEFILES@,$GNUSTEP_STRIP_MAKEFILES,;t t
5642 s,@GNUSTEP_MOVE_OBSOLETE@,$GNUSTEP_MOVE_OBSOLETE,;t t
5643 s,@GNUSTEP_MAKE_VERSION@,$GNUSTEP_MAKE_VERSION,;t t
5644 s,@GNUSTEP_MAKE_MAJOR_VERSION@,$GNUSTEP_MAKE_MAJOR_VERSION,;t t
5645 s,@GNUSTEP_MAKE_MINOR_VERSION@,$GNUSTEP_MAKE_MINOR_VERSION,;t t
5646 s,@GNUSTEP_MAKE_SUBMINOR_VERSION@,$GNUSTEP_MAKE_SUBMINOR_VERSION,;t t
5647 s,@clean_target_os@,$clean_target_os,;t t
5648 s,@clean_target_cpu@,$clean_target_cpu,;t t
5649 s,@clean_target_vendor@,$clean_target_vendor,;t t
5650 s,@LIBOBJS@,$LIBOBJS,;t t
5651 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5656 cat >>$CONFIG_STATUS <<\_ACEOF
5657 # Split the substitutions into bite-sized pieces for seds with
5658 # small command number limits, like on Digital OSF/1 and HP-UX.
5660 ac_sed_frag=1 # Number of current file.
5661 ac_beg=1 # First line for current file.
5662 ac_end=$ac_max_sed_lines # Line after last line for current file.
5665 while $ac_more_lines; do
5666 if test $ac_beg -gt 1; then
5667 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5669 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5671 if test ! -s $tmp/subs.frag; then
5674 # The purpose of the label and of the branching condition is to
5675 # speed up the sed processing (if there are no `@' at all, there
5676 # is no need to browse any of the substitutions).
5677 # These are the two extra sed commands mentioned above.
5679 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5680 if test -z "$ac_sed_cmds"; then
5681 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5683 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5685 ac_sed_frag=`expr $ac_sed_frag + 1`
5687 ac_end=`expr $ac_end + $ac_max_sed_lines`
5690 if test -z "$ac_sed_cmds"; then
5693 fi # test -n "$CONFIG_FILES"
5696 cat >>$CONFIG_STATUS <<\_ACEOF
5697 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5698 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5700 - | *:- | *:-:* ) # input from stdin
5702 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5703 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5704 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5705 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5706 * ) ac_file_in=$ac_file.in ;;
5709 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5710 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5711 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5712 X"$ac_file" : 'X\(//\)[^/]' \| \
5713 X"$ac_file" : 'X\(//\)$' \| \
5714 X"$ac_file" : 'X\(/\)' \| \
5715 . : '\(.\)' 2>/dev/null ||
5717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5719 /^X\(\/\/\)$/{ s//\1/; q; }
5720 /^X\(\/\).*/{ s//\1/; q; }
5722 { if $as_mkdir_p; then
5727 while test ! -d "$as_dir"; do
5728 as_dirs="$as_dir $as_dirs"
5729 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5730 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5731 X"$as_dir" : 'X\(//\)[^/]' \| \
5732 X"$as_dir" : 'X\(//\)$' \| \
5733 X"$as_dir" : 'X\(/\)' \| \
5734 . : '\(.\)' 2>/dev/null ||
5736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5737 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5738 /^X\(\/\/\)$/{ s//\1/; q; }
5739 /^X\(\/\).*/{ s//\1/; q; }
5742 test ! -n "$as_dirs" || mkdir $as_dirs
5743 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5744 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5745 { (exit 1); exit 1; }; }; }
5749 if test "$ac_dir" != .; then
5750 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5751 # A "../" for each directory in $ac_dir_suffix.
5752 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5754 ac_dir_suffix= ac_top_builddir=
5758 .) # No --srcdir option. We are building in place.
5760 if test -z "$ac_top_builddir"; then
5763 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5765 [\\/]* | ?:[\\/]* ) # Absolute path.
5766 ac_srcdir=$srcdir$ac_dir_suffix;
5767 ac_top_srcdir=$srcdir ;;
5769 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5770 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5773 # Do not use `cd foo && pwd` to compute absolute paths, because
5774 # the directories may not exist.
5776 .) ac_abs_builddir="$ac_dir";;
5779 .) ac_abs_builddir=`pwd`;;
5780 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5781 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5784 case $ac_abs_builddir in
5785 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5787 case ${ac_top_builddir}. in
5788 .) ac_abs_top_builddir=$ac_abs_builddir;;
5789 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5790 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5793 case $ac_abs_builddir in
5794 .) ac_abs_srcdir=$ac_srcdir;;
5797 .) ac_abs_srcdir=$ac_abs_builddir;;
5798 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5799 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5802 case $ac_abs_builddir in
5803 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5805 case $ac_top_srcdir in
5806 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5807 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5808 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5814 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5815 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5818 if test x"$ac_file" != x-; then
5819 { echo "$as_me:$LINENO: creating $ac_file" >&5
5820 echo "$as_me: creating $ac_file" >&6;}
5823 # Let's still pretend it is `configure' which instantiates (i.e., don't
5824 # use $as_me), people would be surprised to read:
5825 # /* config.h. Generated by config.status. */
5826 if test x"$ac_file" = x-; then
5829 configure_input="$ac_file. "
5831 configure_input=$configure_input"Generated from `echo $ac_file_in |
5832 sed 's,.*/,,'` by configure."
5834 # First look for the input files in the build tree, otherwise in the
5836 ac_file_inputs=`IFS=:
5837 for f in $ac_file_in; do
5839 -) echo $tmp/stdin ;;
5841 # Absolute (can't be DOS-style, as IFS=:)
5842 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5843 echo "$as_me: error: cannot find input file: $f" >&2;}
5844 { (exit 1); exit 1; }; }
5847 if test -f "$f"; then
5850 elif test -f "$srcdir/$f"; then
5855 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5856 echo "$as_me: error: cannot find input file: $f" >&2;}
5857 { (exit 1); exit 1; }; }
5860 done` || { (exit 1); exit 1; }
5862 cat >>$CONFIG_STATUS <<_ACEOF
5866 cat >>$CONFIG_STATUS <<\_ACEOF
5868 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5869 s,@configure_input@,$configure_input,;t t
5870 s,@srcdir@,$ac_srcdir,;t t
5871 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5872 s,@top_srcdir@,$ac_top_srcdir,;t t
5873 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5874 s,@builddir@,$ac_builddir,;t t
5875 s,@abs_builddir@,$ac_abs_builddir,;t t
5876 s,@top_builddir@,$ac_top_builddir,;t t
5877 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5878 s,@INSTALL@,$ac_INSTALL,;t t
5879 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5881 if test x"$ac_file" != x-; then
5882 mv $tmp/out $ac_file
5890 cat >>$CONFIG_STATUS <<\_ACEOF
5893 # CONFIG_HEADER section.
5896 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5897 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5899 # ac_d sets the value in "#define NAME VALUE" lines.
5900 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5901 ac_dB='[ ].*$,\1#\2'
5904 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5905 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5906 ac_uB='$,\1#\2define\3'
5910 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5911 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5913 - | *:- | *:-:* ) # input from stdin
5915 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5916 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5917 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5918 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5919 * ) ac_file_in=$ac_file.in ;;
5922 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5923 echo "$as_me: creating $ac_file" >&6;}
5925 # First look for the input files in the build tree, otherwise in the
5927 ac_file_inputs=`IFS=:
5928 for f in $ac_file_in; do
5930 -) echo $tmp/stdin ;;
5932 # Absolute (can't be DOS-style, as IFS=:)
5933 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5934 echo "$as_me: error: cannot find input file: $f" >&2;}
5935 { (exit 1); exit 1; }; }
5936 # Do quote $f, to prevent DOS paths from being IFS'd.
5939 if test -f "$f"; then
5942 elif test -f "$srcdir/$f"; then
5947 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5948 echo "$as_me: error: cannot find input file: $f" >&2;}
5949 { (exit 1); exit 1; }; }
5952 done` || { (exit 1); exit 1; }
5953 # Remove the trailing spaces.
5954 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5958 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5959 # `conftest.undefs', that substitutes the proper values into
5960 # config.h.in to produce config.h. The first handles `#define'
5961 # templates, and the second `#undef' templates.
5962 # And first: Protect against being on the right side of a sed subst in
5963 # config.status. Protect against being in an unquoted here document
5965 rm -f conftest.defines conftest.undefs
5966 # Using a here document instead of a string reduces the quoting nightmare.
5967 # Putting comments in sed scripts is not portable.
5969 # `end' is used to avoid that the second main sed command (meant for
5970 # 0-ary CPP macros) applies to n-ary macro definitions.
5971 # See the Autoconf documentation for `clear'.
5972 cat >confdef2sed.sed <<\_ACEOF
5977 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5979 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5982 # If some macros were called several times there might be several times
5983 # the same #defines, which is useless. Nevertheless, we may not want to
5984 # sort them, since we want the *last* AC-DEFINE to be honored.
5985 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5986 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5987 rm -f confdef2sed.sed
5989 # This sed command replaces #undef with comments. This is necessary, for
5990 # example, in the case of _POSIX_SOURCE, which is predefined and required
5991 # on some systems where configure will not decide to define it.
5992 cat >>conftest.undefs <<\_ACEOF
5993 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5996 # Break up conftest.defines because some shells have a limit on the size
5997 # of here documents, and old seds have small limits too (100 cmds).
5998 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5999 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6000 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6001 echo ' :' >>$CONFIG_STATUS
6003 while grep . conftest.defines >/dev/null
6005 # Write a limited-size here document to $tmp/defines.sed.
6006 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6007 # Speed up: don't consider the non `#define' lines.
6008 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6009 # Work around the forget-to-reset-the-flag bug.
6010 echo 't clr' >>$CONFIG_STATUS
6011 echo ': clr' >>$CONFIG_STATUS
6012 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6014 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6018 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6019 rm -f conftest.defines
6020 mv conftest.tail conftest.defines
6022 rm -f conftest.defines
6023 echo ' fi # grep' >>$CONFIG_STATUS
6024 echo >>$CONFIG_STATUS
6026 # Break up conftest.undefs because some shells have a limit on the size
6027 # of here documents, and old seds have small limits too (100 cmds).
6028 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6030 while grep . conftest.undefs >/dev/null
6032 # Write a limited-size here document to $tmp/undefs.sed.
6033 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6034 # Speed up: don't consider the non `#undef'
6035 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6036 # Work around the forget-to-reset-the-flag bug.
6037 echo 't clr' >>$CONFIG_STATUS
6038 echo ': clr' >>$CONFIG_STATUS
6039 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6041 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6045 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6046 rm -f conftest.undefs
6047 mv conftest.tail conftest.undefs
6049 rm -f conftest.undefs
6051 cat >>$CONFIG_STATUS <<\_ACEOF
6052 # Let's still pretend it is `configure' which instantiates (i.e., don't
6053 # use $as_me), people would be surprised to read:
6054 # /* config.h. Generated by config.status. */
6055 if test x"$ac_file" = x-; then
6056 echo "/* Generated by configure. */" >$tmp/config.h
6058 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6060 cat $tmp/in >>$tmp/config.h
6062 if test x"$ac_file" != x-; then
6063 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6064 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6065 echo "$as_me: $ac_file is unchanged" >&6;}
6067 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6068 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6069 X"$ac_file" : 'X\(//\)[^/]' \| \
6070 X"$ac_file" : 'X\(//\)$' \| \
6071 X"$ac_file" : 'X\(/\)' \| \
6072 . : '\(.\)' 2>/dev/null ||
6074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6075 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6076 /^X\(\/\/\)$/{ s//\1/; q; }
6077 /^X\(\/\).*/{ s//\1/; q; }
6079 { if $as_mkdir_p; then
6084 while test ! -d "$as_dir"; do
6085 as_dirs="$as_dir $as_dirs"
6086 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6087 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6088 X"$as_dir" : 'X\(//\)[^/]' \| \
6089 X"$as_dir" : 'X\(//\)$' \| \
6090 X"$as_dir" : 'X\(/\)' \| \
6091 . : '\(.\)' 2>/dev/null ||
6093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6094 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6095 /^X\(\/\/\)$/{ s//\1/; q; }
6096 /^X\(\/\).*/{ s//\1/; q; }
6099 test ! -n "$as_dirs" || mkdir $as_dirs
6100 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6101 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6102 { (exit 1); exit 1; }; }; }
6105 mv $tmp/config.h $ac_file
6113 cat >>$CONFIG_STATUS <<\_ACEOF
6116 # CONFIG_COMMANDS section.
6118 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6119 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6120 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6121 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6122 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6123 X"$ac_dest" : 'X\(//\)[^/]' \| \
6124 X"$ac_dest" : 'X\(//\)$' \| \
6125 X"$ac_dest" : 'X\(/\)' \| \
6126 . : '\(.\)' 2>/dev/null ||
6128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6129 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6130 /^X\(\/\/\)$/{ s//\1/; q; }
6131 /^X\(\/\).*/{ s//\1/; q; }
6133 { if $as_mkdir_p; then
6138 while test ! -d "$as_dir"; do
6139 as_dirs="$as_dir $as_dirs"
6140 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6141 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6142 X"$as_dir" : 'X\(//\)[^/]' \| \
6143 X"$as_dir" : 'X\(//\)$' \| \
6144 X"$as_dir" : 'X\(/\)' \| \
6145 . : '\(.\)' 2>/dev/null ||
6147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6148 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6149 /^X\(\/\/\)$/{ s//\1/; q; }
6150 /^X\(\/\).*/{ s//\1/; q; }
6153 test ! -n "$as_dirs" || mkdir $as_dirs
6154 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6155 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6156 { (exit 1); exit 1; }; }; }
6160 if test "$ac_dir" != .; then
6161 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6162 # A "../" for each directory in $ac_dir_suffix.
6163 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6165 ac_dir_suffix= ac_top_builddir=
6169 .) # No --srcdir option. We are building in place.
6171 if test -z "$ac_top_builddir"; then
6174 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6176 [\\/]* | ?:[\\/]* ) # Absolute path.
6177 ac_srcdir=$srcdir$ac_dir_suffix;
6178 ac_top_srcdir=$srcdir ;;
6180 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6181 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6184 # Do not use `cd foo && pwd` to compute absolute paths, because
6185 # the directories may not exist.
6187 .) ac_abs_builddir="$ac_dir";;
6190 .) ac_abs_builddir=`pwd`;;
6191 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6192 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6195 case $ac_abs_builddir in
6196 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6198 case ${ac_top_builddir}. in
6199 .) ac_abs_top_builddir=$ac_abs_builddir;;
6200 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6201 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6204 case $ac_abs_builddir in
6205 .) ac_abs_srcdir=$ac_srcdir;;
6208 .) ac_abs_srcdir=$ac_abs_builddir;;
6209 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6210 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6213 case $ac_abs_builddir in
6214 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6216 case $ac_top_srcdir in
6217 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6218 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6219 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6224 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6225 echo "$as_me: executing $ac_dest commands" >&6;}
6227 default ) chmod a+x openapp debugapp opentool fixpath.sh executable.template ;;
6232 cat >>$CONFIG_STATUS <<\_ACEOF
6234 { (exit 0); exit 0; }
6236 chmod +x $CONFIG_STATUS
6237 ac_clean_files=$ac_clean_files_save
6240 # configure is writing to config.log, and then calls config.status.
6241 # config.status does its own redirection, appending to config.log.
6242 # Unfortunately, on DOS this fails, as config.log is still kept open
6243 # by configure, so config.status won't be able to write to it; its
6244 # output is simply discarded. So we exec the FD to /dev/null,
6245 # effectively closing config.log, so it can be properly (re)opened and
6246 # appended to by config.status. When coming back to configure, we
6247 # need to make the FD available again.
6248 if test "$no_create" != yes; then
6250 ac_config_status_args=
6251 test "$silent" = yes &&
6252 ac_config_status_args="$ac_config_status_args --quiet"
6254 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6256 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6257 # would make configure fail if this is the last instruction.
6258 $ac_cs_success || { (exit 1); exit 1; }