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 PRECOMPILED_HEADERS 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
865 --enable-pch Enable precompiled headers
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
871 --with-library-combo Define the default library combination
873 --with-tar Set the name of the tar program to use
874 --without-system-root Don't use separate system root directory
876 Set the GNUSTEP_LOCAL_ROOT directory. Use this option if you want
877 to have the GNUSTEP_LOCAL_ROOT directory in a non-standard place. Example:
878 --with-local-root=/usr/local/GNUstep/Local
881 Set the GNUSTEP_NETWORK_ROOT directory. Use this option if you want
882 to have the GNUSTEP_NETWORK_ROOT directory. Example:
883 --with-network-root=/usr/local/GNUstep/Network
886 Set the GNUSTEP_USER_ROOT directory for all users. '~' is allowed
887 at the beginning to mean the user's home directory. Use this
888 option if you want to have the GNUSTEP_USER_ROOT directory in a non
889 default place for all users.
890 Example: --with-user-root='~/gnustep'
892 --with-thread-lib Specify alternate thread library
894 Some influential environment variables:
895 CC C compiler command
896 CFLAGS C compiler flags
897 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
898 nonstandard directory <lib dir>
899 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
900 headers in a nonstandard directory <include dir>
903 Use these variables to override the choices made by `configure' or to help
904 it to find libraries and programs with nonstandard names/locations.
909 if test "$ac_init_help" = "recursive"; then
910 # If there are subdirs, report their specific --help.
912 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
913 test -d $ac_dir || continue
916 if test "$ac_dir" != .; then
917 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
918 # A "../" for each directory in $ac_dir_suffix.
919 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
921 ac_dir_suffix= ac_top_builddir=
925 .) # No --srcdir option. We are building in place.
927 if test -z "$ac_top_builddir"; then
930 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
932 [\\/]* | ?:[\\/]* ) # Absolute path.
933 ac_srcdir=$srcdir$ac_dir_suffix;
934 ac_top_srcdir=$srcdir ;;
936 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
937 ac_top_srcdir=$ac_top_builddir$srcdir ;;
940 # Do not use `cd foo && pwd` to compute absolute paths, because
941 # the directories may not exist.
943 .) ac_abs_builddir="$ac_dir";;
946 .) ac_abs_builddir=`pwd`;;
947 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
948 *) ac_abs_builddir=`pwd`/"$ac_dir";;
951 case $ac_abs_builddir in
952 .) ac_abs_top_builddir=${ac_top_builddir}.;;
954 case ${ac_top_builddir}. in
955 .) ac_abs_top_builddir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
957 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
960 case $ac_abs_builddir in
961 .) ac_abs_srcdir=$ac_srcdir;;
964 .) ac_abs_srcdir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
966 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
969 case $ac_abs_builddir in
970 .) ac_abs_top_srcdir=$ac_top_srcdir;;
972 case $ac_top_srcdir in
973 .) ac_abs_top_srcdir=$ac_abs_builddir;;
974 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
975 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
980 # Check for guested configure; otherwise get Cygnus style configure.
981 if test -f $ac_srcdir/configure.gnu; then
983 $SHELL $ac_srcdir/configure.gnu --help=recursive
984 elif test -f $ac_srcdir/configure; then
986 $SHELL $ac_srcdir/configure --help=recursive
987 elif test -f $ac_srcdir/configure.ac ||
988 test -f $ac_srcdir/configure.in; then
992 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
998 test -n "$ac_init_help" && exit 0
999 if $ac_init_version; then
1002 Copyright (C) 2003 Free Software Foundation, Inc.
1003 This configure script is free software; the Free Software Foundation
1004 gives unlimited permission to copy, distribute and modify it.
1010 This file contains any messages produced by compilers while
1011 running configure, to aid debugging if configure makes a mistake.
1013 It was created by $as_me, which was
1014 generated by GNU Autoconf 2.59. Invocation command line was
1025 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1026 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1027 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1028 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1029 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1031 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1032 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1034 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1035 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1036 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1037 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1038 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1039 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1040 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1048 test -z "$as_dir" && as_dir=.
1049 echo "PATH: $as_dir"
1064 # Keep a trace of the command line.
1065 # Strip out --no-create and --no-recursion so they do not pile up.
1066 # Strip out --silent because we don't want to record it for future runs.
1067 # Also quote any args containing shell meta-characters.
1068 # Make two passes to allow for proper duplicate-argument suppression.
1073 ac_must_keep_next=false
1079 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1083 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1084 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1087 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1089 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1090 if test $ac_must_keep_next = true; then
1091 ac_must_keep_next=false # Got value, back to normal.
1094 *=* | --config-cache | -C | -disable-* | --disable-* \
1095 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1096 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1097 | -with-* | --with-* | -without-* | --without-* | --x)
1098 case "$ac_configure_args0 " in
1099 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1102 -* ) ac_must_keep_next=true ;;
1105 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1106 # Get rid of the leading space.
1112 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1113 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1115 # When interrupted or exit'd, cleanup temporary files, and complete
1116 # config.log. We remove comments because anyway the quotes in there
1117 # would cause problems or look ugly.
1118 # WARNING: Be sure not to use single quotes in there, as some shells,
1119 # such as our DU 5.0 friend, will then `close' the trap.
1120 trap 'exit_status=$?
1121 # Save into config.log some information that might help in debugging.
1126 ## ---------------- ##
1127 ## Cache variables. ##
1128 ## ---------------- ##
1131 # The following way of writing the cache mishandles newlines in values,
1134 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1137 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1142 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1149 ## ----------------- ##
1150 ## Output variables. ##
1151 ## ----------------- ##
1154 for ac_var in $ac_subst_vars
1156 eval ac_val=$`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
1161 if test -n "$ac_subst_files"; then
1168 for ac_var in $ac_subst_files
1170 eval ac_val=$`echo $ac_var`
1171 echo "$ac_var='"'"'$ac_val'"'"'"
1176 if test -s confdefs.h; then
1183 sed "/^$/d" confdefs.h | sort
1186 test "$ac_signal" != 0 &&
1187 echo "$as_me: caught signal $ac_signal"
1188 echo "$as_me: exit $exit_status"
1190 rm -f core *.core &&
1191 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1194 for ac_signal in 1 2 13 15; do
1195 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1200 rm -rf conftest* confdefs.h
1201 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1204 # Predefined preprocessor variables.
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_NAME "$PACKAGE_NAME"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_STRING "$PACKAGE_STRING"
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1231 # Let the site file select an alternate cache file if it wants to.
1232 # Prefer explicitly selected file to automatically selected ones.
1233 if test -z "$CONFIG_SITE"; then
1234 if test "x$prefix" != xNONE; then
1235 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1237 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1240 for ac_site_file in $CONFIG_SITE; do
1241 if test -r "$ac_site_file"; then
1242 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1243 echo "$as_me: loading site script $ac_site_file" >&6;}
1244 sed 's/^/| /' "$ac_site_file" >&5
1249 if test -r "$cache_file"; then
1250 # Some versions of bash will fail to source /dev/null (special
1251 # files actually), so we avoid doing that.
1252 if test -f "$cache_file"; then
1253 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1254 echo "$as_me: loading cache $cache_file" >&6;}
1256 [\\/]* | ?:[\\/]* ) . $cache_file;;
1257 *) . ./$cache_file;;
1261 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1262 echo "$as_me: creating cache $cache_file" >&6;}
1266 # Check that the precious variables saved in the cache have kept the same
1268 ac_cache_corrupted=false
1269 for ac_var in `(set) 2>&1 |
1270 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1271 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1272 eval ac_new_set=\$ac_env_${ac_var}_set
1273 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1274 eval ac_new_val="\$ac_env_${ac_var}_value"
1275 case $ac_old_set,$ac_new_set in
1277 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1278 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1279 ac_cache_corrupted=: ;;
1281 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1282 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1283 ac_cache_corrupted=: ;;
1286 if test "x$ac_old_val" != "x$ac_new_val"; then
1287 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1288 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1289 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1290 echo "$as_me: former value: $ac_old_val" >&2;}
1291 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1292 echo "$as_me: current value: $ac_new_val" >&2;}
1293 ac_cache_corrupted=:
1296 # Pass precious variables to config.status.
1297 if test "$ac_new_set" = set; then
1299 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1300 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1301 *) ac_arg=$ac_var=$ac_new_val ;;
1303 case " $ac_configure_args " in
1304 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1305 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1309 if $ac_cache_corrupted; then
1310 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1311 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1312 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1313 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1314 { (exit 1); exit 1; }; }
1318 ac_cpp='$CPP $CPPFLAGS'
1319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1343 ac_config_headers="$ac_config_headers config.h"
1346 #--------------------------------------------------------------------
1347 # Setup the library combination
1348 #--------------------------------------------------------------------
1349 targetArgument=${target}
1351 ac_cpp='$CPP $CPPFLAGS'
1352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1355 if test -n "$ac_tool_prefix"; then
1356 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1357 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1358 echo "$as_me:$LINENO: checking for $ac_word" >&5
1359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1360 if test "${ac_cv_prog_CC+set}" = set; then
1361 echo $ECHO_N "(cached) $ECHO_C" >&6
1363 if test -n "$CC"; then
1364 ac_cv_prog_CC="$CC" # Let the user override the test.
1366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1370 test -z "$as_dir" && as_dir=.
1371 for ac_exec_ext in '' $ac_executable_extensions; do
1372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1373 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1383 if test -n "$CC"; then
1384 echo "$as_me:$LINENO: result: $CC" >&5
1385 echo "${ECHO_T}$CC" >&6
1387 echo "$as_me:$LINENO: result: no" >&5
1388 echo "${ECHO_T}no" >&6
1392 if test -z "$ac_cv_prog_CC"; then
1394 # Extract the first word of "gcc", so it can be a program name with args.
1395 set dummy gcc; ac_word=$2
1396 echo "$as_me:$LINENO: checking for $ac_word" >&5
1397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1398 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1399 echo $ECHO_N "(cached) $ECHO_C" >&6
1401 if test -n "$ac_ct_CC"; then
1402 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1408 test -z "$as_dir" && as_dir=.
1409 for ac_exec_ext in '' $ac_executable_extensions; do
1410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1411 ac_cv_prog_ac_ct_CC="gcc"
1412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1420 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1421 if test -n "$ac_ct_CC"; then
1422 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1423 echo "${ECHO_T}$ac_ct_CC" >&6
1425 echo "$as_me:$LINENO: result: no" >&5
1426 echo "${ECHO_T}no" >&6
1434 if test -z "$CC"; then
1435 if test -n "$ac_tool_prefix"; then
1436 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1437 set dummy ${ac_tool_prefix}cc; ac_word=$2
1438 echo "$as_me:$LINENO: checking for $ac_word" >&5
1439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440 if test "${ac_cv_prog_CC+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1443 if test -n "$CC"; then
1444 ac_cv_prog_CC="$CC" # Let the user override the test.
1446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450 test -z "$as_dir" && as_dir=.
1451 for ac_exec_ext in '' $ac_executable_extensions; do
1452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453 ac_cv_prog_CC="${ac_tool_prefix}cc"
1454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1463 if test -n "$CC"; then
1464 echo "$as_me:$LINENO: result: $CC" >&5
1465 echo "${ECHO_T}$CC" >&6
1467 echo "$as_me:$LINENO: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1472 if test -z "$ac_cv_prog_CC"; then
1474 # Extract the first word of "cc", so it can be a program name with args.
1475 set dummy cc; ac_word=$2
1476 echo "$as_me:$LINENO: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1481 if test -n "$ac_ct_CC"; then
1482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488 test -z "$as_dir" && as_dir=.
1489 for ac_exec_ext in '' $ac_executable_extensions; do
1490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491 ac_cv_prog_ac_ct_CC="cc"
1492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1500 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1501 if test -n "$ac_ct_CC"; then
1502 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1503 echo "${ECHO_T}$ac_ct_CC" >&6
1505 echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1515 if test -z "$CC"; then
1516 # Extract the first word of "cc", so it can be a program name with args.
1517 set dummy cc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1523 if test -n "$CC"; then
1524 ac_cv_prog_CC="$CC" # Let the user override the test.
1527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531 test -z "$as_dir" && as_dir=.
1532 for ac_exec_ext in '' $ac_executable_extensions; do
1533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1534 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1535 ac_prog_rejected=yes
1539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1545 if test $ac_prog_rejected = yes; then
1546 # We found a bogon in the path, so make sure we never use it.
1547 set dummy $ac_cv_prog_CC
1549 if test $# != 0; then
1550 # We chose a different compiler from the bogus one.
1551 # However, it has the same basename, so the bogon will be chosen
1552 # first if we set CC to just the basename; use the full file name.
1554 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1560 if test -n "$CC"; then
1561 echo "$as_me:$LINENO: result: $CC" >&5
1562 echo "${ECHO_T}$CC" >&6
1564 echo "$as_me:$LINENO: result: no" >&5
1565 echo "${ECHO_T}no" >&6
1569 if test -z "$CC"; then
1570 if test -n "$ac_tool_prefix"; then
1573 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1574 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1575 echo "$as_me:$LINENO: checking for $ac_word" >&5
1576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1577 if test "${ac_cv_prog_CC+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1580 if test -n "$CC"; then
1581 ac_cv_prog_CC="$CC" # Let the user override the test.
1583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587 test -z "$as_dir" && as_dir=.
1588 for ac_exec_ext in '' $ac_executable_extensions; do
1589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1590 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1600 if test -n "$CC"; then
1601 echo "$as_me:$LINENO: result: $CC" >&5
1602 echo "${ECHO_T}$CC" >&6
1604 echo "$as_me:$LINENO: result: no" >&5
1605 echo "${ECHO_T}no" >&6
1608 test -n "$CC" && break
1611 if test -z "$CC"; then
1615 # Extract the first word of "$ac_prog", so it can be a program name with args.
1616 set dummy $ac_prog; ac_word=$2
1617 echo "$as_me:$LINENO: checking for $ac_word" >&5
1618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1620 echo $ECHO_N "(cached) $ECHO_C" >&6
1622 if test -n "$ac_ct_CC"; then
1623 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629 test -z "$as_dir" && as_dir=.
1630 for ac_exec_ext in '' $ac_executable_extensions; do
1631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1632 ac_cv_prog_ac_ct_CC="$ac_prog"
1633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1641 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1642 if test -n "$ac_ct_CC"; then
1643 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1644 echo "${ECHO_T}$ac_ct_CC" >&6
1646 echo "$as_me:$LINENO: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1650 test -n "$ac_ct_CC" && break
1659 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1660 See \`config.log' for more details." >&5
1661 echo "$as_me: error: no acceptable C compiler found in \$PATH
1662 See \`config.log' for more details." >&2;}
1663 { (exit 1); exit 1; }; }
1665 # Provide some information about the compiler.
1666 echo "$as_me:$LINENO:" \
1667 "checking for C compiler version" >&5
1668 ac_compiler=`set X $ac_compile; echo $2`
1669 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1670 (eval $ac_compiler --version </dev/null >&5) 2>&5
1672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1673 (exit $ac_status); }
1674 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1675 (eval $ac_compiler -v </dev/null >&5) 2>&5
1677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1678 (exit $ac_status); }
1679 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1680 (eval $ac_compiler -V </dev/null >&5) 2>&5
1682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1683 (exit $ac_status); }
1685 cat >conftest.$ac_ext <<_ACEOF
1688 cat confdefs.h >>conftest.$ac_ext
1689 cat >>conftest.$ac_ext <<_ACEOF
1690 /* end confdefs.h. */
1700 ac_clean_files_save=$ac_clean_files
1701 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1702 # Try to create an executable without -o first, disregard a.out.
1703 # It will help us diagnose broken compilers, and finding out an intuition
1705 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1706 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1707 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1708 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1709 (eval $ac_link_default) 2>&5
1711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1712 (exit $ac_status); }; then
1713 # Find the output, starting from the most likely. This scheme is
1714 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1717 # Be careful to initialize this variable, since it used to be cached.
1718 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1720 # b.out is created by i960 compilers.
1721 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1723 test -f "$ac_file" || continue
1725 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1728 # This is the source file.
1731 # We found the default executable, but exeext='' is most
1735 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1736 # FIXME: I believe we export ac_cv_exeext for Libtool,
1737 # but it would be cool to find out if it's true. Does anybody
1738 # maintain Libtool? --akim.
1746 echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1749 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1750 See \`config.log' for more details." >&5
1751 echo "$as_me: error: C compiler cannot create executables
1752 See \`config.log' for more details." >&2;}
1753 { (exit 77); exit 77; }; }
1756 ac_exeext=$ac_cv_exeext
1757 echo "$as_me:$LINENO: result: $ac_file" >&5
1758 echo "${ECHO_T}$ac_file" >&6
1760 # Check the compiler produces executables we can run. If not, either
1761 # the compiler is broken, or we cross compile.
1762 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1763 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1764 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1765 # If not cross compiling, check that we can run a simple program.
1766 if test "$cross_compiling" != yes; then
1767 if { ac_try='./$ac_file'
1768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1772 (exit $ac_status); }; }; then
1775 if test "$cross_compiling" = maybe; then
1778 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1779 If you meant to cross compile, use \`--host'.
1780 See \`config.log' for more details." >&5
1781 echo "$as_me: error: cannot run C compiled programs.
1782 If you meant to cross compile, use \`--host'.
1783 See \`config.log' for more details." >&2;}
1784 { (exit 1); exit 1; }; }
1788 echo "$as_me:$LINENO: result: yes" >&5
1789 echo "${ECHO_T}yes" >&6
1791 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1792 ac_clean_files=$ac_clean_files_save
1793 # Check the compiler produces executables we can run. If not, either
1794 # the compiler is broken, or we cross compile.
1795 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1796 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1797 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1798 echo "${ECHO_T}$cross_compiling" >&6
1800 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1801 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1803 (eval $ac_link) 2>&5
1805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1806 (exit $ac_status); }; then
1807 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1808 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1809 # work properly (i.e., refer to `conftest.exe'), while it won't with
1811 for ac_file in conftest.exe conftest conftest.*; do
1812 test -f "$ac_file" || continue
1814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1815 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1822 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1823 See \`config.log' for more details." >&5
1824 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1825 See \`config.log' for more details." >&2;}
1826 { (exit 1); exit 1; }; }
1829 rm -f conftest$ac_cv_exeext
1830 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1831 echo "${ECHO_T}$ac_cv_exeext" >&6
1833 rm -f conftest.$ac_ext
1834 EXEEXT=$ac_cv_exeext
1836 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1837 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1838 if test "${ac_cv_objext+set}" = set; then
1839 echo $ECHO_N "(cached) $ECHO_C" >&6
1841 cat >conftest.$ac_ext <<_ACEOF
1844 cat confdefs.h >>conftest.$ac_ext
1845 cat >>conftest.$ac_ext <<_ACEOF
1846 /* end confdefs.h. */
1856 rm -f conftest.o conftest.obj
1857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1858 (eval $ac_compile) 2>&5
1860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1861 (exit $ac_status); }; then
1862 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1865 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1870 echo "$as_me: failed program was:" >&5
1871 sed 's/^/| /' conftest.$ac_ext >&5
1873 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1874 See \`config.log' for more details." >&5
1875 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1876 See \`config.log' for more details." >&2;}
1877 { (exit 1); exit 1; }; }
1880 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1882 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1883 echo "${ECHO_T}$ac_cv_objext" >&6
1884 OBJEXT=$ac_cv_objext
1886 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1887 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1888 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1889 echo $ECHO_N "(cached) $ECHO_C" >&6
1891 cat >conftest.$ac_ext <<_ACEOF
1894 cat confdefs.h >>conftest.$ac_ext
1895 cat >>conftest.$ac_ext <<_ACEOF
1896 /* end confdefs.h. */
1909 rm -f conftest.$ac_objext
1910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1911 (eval $ac_compile) 2>conftest.er1
1913 grep -v '^ *+' conftest.er1 >conftest.err
1915 cat conftest.err >&5
1916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1917 (exit $ac_status); } &&
1918 { ac_try='test -z "$ac_c_werror_flag"
1919 || test ! -s conftest.err'
1920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1924 (exit $ac_status); }; } &&
1925 { ac_try='test -s conftest.$ac_objext'
1926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930 (exit $ac_status); }; }; then
1933 echo "$as_me: failed program was:" >&5
1934 sed 's/^/| /' conftest.$ac_ext >&5
1938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1939 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1942 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1943 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1944 GCC=`test $ac_compiler_gnu = yes && echo yes`
1945 ac_test_CFLAGS=${CFLAGS+set}
1946 ac_save_CFLAGS=$CFLAGS
1948 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1949 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1950 if test "${ac_cv_prog_cc_g+set}" = set; then
1951 echo $ECHO_N "(cached) $ECHO_C" >&6
1953 cat >conftest.$ac_ext <<_ACEOF
1956 cat confdefs.h >>conftest.$ac_ext
1957 cat >>conftest.$ac_ext <<_ACEOF
1958 /* end confdefs.h. */
1968 rm -f conftest.$ac_objext
1969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1970 (eval $ac_compile) 2>conftest.er1
1972 grep -v '^ *+' conftest.er1 >conftest.err
1974 cat conftest.err >&5
1975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976 (exit $ac_status); } &&
1977 { ac_try='test -z "$ac_c_werror_flag"
1978 || test ! -s conftest.err'
1979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983 (exit $ac_status); }; } &&
1984 { ac_try='test -s conftest.$ac_objext'
1985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1989 (exit $ac_status); }; }; then
1992 echo "$as_me: failed program was:" >&5
1993 sed 's/^/| /' conftest.$ac_ext >&5
1997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1999 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2000 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2001 if test "$ac_test_CFLAGS" = set; then
2002 CFLAGS=$ac_save_CFLAGS
2003 elif test $ac_cv_prog_cc_g = yes; then
2004 if test "$GCC" = yes; then
2010 if test "$GCC" = yes; then
2016 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2017 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2018 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 ac_cv_prog_cc_stdc=no
2023 cat >conftest.$ac_ext <<_ACEOF
2026 cat confdefs.h >>conftest.$ac_ext
2027 cat >>conftest.$ac_ext <<_ACEOF
2028 /* end confdefs.h. */
2031 #include <sys/types.h>
2032 #include <sys/stat.h>
2033 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2034 struct buf { int x; };
2035 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2036 static char *e (p, i)
2042 static char *f (char * (*g) (char **, int), char **p, ...)
2047 s = g (p, va_arg (v,int));
2052 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2053 function prototypes and stuff, but not '\xHH' hex character constants.
2054 These don't provoke an error unfortunately, instead are silently treated
2055 as 'x'. The following induces an error, until -std1 is added to get
2056 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2057 array size at least. It's necessary to write '\x00'==0 to get something
2058 that's true only with -std1. */
2059 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2061 int test (int i, double x);
2062 struct s1 {int (*f) (int a);};
2063 struct s2 {int (*f) (double a);};
2064 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2070 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2075 # Don't try gcc -ansi; that turns off useful extensions and
2076 # breaks some systems' header files.
2077 # AIX -qlanglvl=ansi
2078 # Ultrix and OSF/1 -std1
2079 # HP-UX 10.20 and later -Ae
2080 # HP-UX older versions -Aa -D_HPUX_SOURCE
2081 # SVR4 -Xc -D__EXTENSIONS__
2082 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2084 CC="$ac_save_CC $ac_arg"
2085 rm -f conftest.$ac_objext
2086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2087 (eval $ac_compile) 2>conftest.er1
2089 grep -v '^ *+' conftest.er1 >conftest.err
2091 cat conftest.err >&5
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); } &&
2094 { ac_try='test -z "$ac_c_werror_flag"
2095 || test ! -s conftest.err'
2096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }; } &&
2101 { ac_try='test -s conftest.$ac_objext'
2102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); }; }; then
2107 ac_cv_prog_cc_stdc=$ac_arg
2110 echo "$as_me: failed program was:" >&5
2111 sed 's/^/| /' conftest.$ac_ext >&5
2114 rm -f conftest.err conftest.$ac_objext
2116 rm -f conftest.$ac_ext conftest.$ac_objext
2121 case "x$ac_cv_prog_cc_stdc" in
2123 echo "$as_me:$LINENO: result: none needed" >&5
2124 echo "${ECHO_T}none needed" >&6 ;;
2126 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2127 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2128 CC="$CC $ac_cv_prog_cc_stdc" ;;
2131 # Some people use a C++ compiler to compile C. Since we use `exit',
2132 # in C++ we need to declare it. In case someone uses the same compiler
2133 # for both compiling C and C++ we need to have the C++ compiler decide
2134 # the declaration of exit, since it's the most demanding environment.
2135 cat >conftest.$ac_ext <<_ACEOF
2140 rm -f conftest.$ac_objext
2141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2142 (eval $ac_compile) 2>conftest.er1
2144 grep -v '^ *+' conftest.er1 >conftest.err
2146 cat conftest.err >&5
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); } &&
2149 { ac_try='test -z "$ac_c_werror_flag"
2150 || test ! -s conftest.err'
2151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; } &&
2156 { ac_try='test -s conftest.$ac_objext'
2157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }; }; then
2162 for ac_declaration in \
2164 'extern "C" void std::exit (int) throw (); using std::exit;' \
2165 'extern "C" void std::exit (int); using std::exit;' \
2166 'extern "C" void exit (int) throw ();' \
2167 'extern "C" void exit (int);' \
2170 cat >conftest.$ac_ext <<_ACEOF
2173 cat confdefs.h >>conftest.$ac_ext
2174 cat >>conftest.$ac_ext <<_ACEOF
2175 /* end confdefs.h. */
2186 rm -f conftest.$ac_objext
2187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2188 (eval $ac_compile) 2>conftest.er1
2190 grep -v '^ *+' conftest.er1 >conftest.err
2192 cat conftest.err >&5
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); } &&
2195 { ac_try='test -z "$ac_c_werror_flag"
2196 || test ! -s conftest.err'
2197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); }; } &&
2202 { ac_try='test -s conftest.$ac_objext'
2203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); }; }; then
2210 echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2216 cat >conftest.$ac_ext <<_ACEOF
2219 cat confdefs.h >>conftest.$ac_ext
2220 cat >>conftest.$ac_ext <<_ACEOF
2221 /* end confdefs.h. */
2231 rm -f conftest.$ac_objext
2232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2233 (eval $ac_compile) 2>conftest.er1
2235 grep -v '^ *+' conftest.er1 >conftest.err
2237 cat conftest.err >&5
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); } &&
2240 { ac_try='test -z "$ac_c_werror_flag"
2241 || test ! -s conftest.err'
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; } &&
2247 { ac_try='test -s conftest.$ac_objext'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; }; then
2255 echo "$as_me: failed program was:" >&5
2256 sed 's/^/| /' conftest.$ac_ext >&5
2259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2262 if test -n "$ac_declaration"; then
2263 echo '#ifdef __cplusplus' >>confdefs.h
2264 echo $ac_declaration >>confdefs.h
2265 echo '#endif' >>confdefs.h
2269 echo "$as_me: failed program was:" >&5
2270 sed 's/^/| /' conftest.$ac_ext >&5
2273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2275 ac_cpp='$CPP $CPPFLAGS'
2276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2281 ac_cpp='$CPP $CPPFLAGS'
2282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2285 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2286 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2287 # On Suns, sometimes $CPP names a directory.
2288 if test -n "$CPP" && test -d "$CPP"; then
2291 if test -z "$CPP"; then
2292 if test "${ac_cv_prog_CPP+set}" = set; then
2293 echo $ECHO_N "(cached) $ECHO_C" >&6
2295 # Double quotes because CPP needs to be expanded
2296 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2299 for ac_c_preproc_warn_flag in '' yes
2301 # Use a header file that comes with gcc, so configuring glibc
2302 # with a fresh cross-compiler works.
2303 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2304 # <limits.h> exists even on freestanding compilers.
2305 # On the NeXT, cc -E runs the code through the compiler's parser,
2306 # not just through cpp. "Syntax error" is here to catch this case.
2307 cat >conftest.$ac_ext <<_ACEOF
2310 cat confdefs.h >>conftest.$ac_ext
2311 cat >>conftest.$ac_ext <<_ACEOF
2312 /* end confdefs.h. */
2314 # include <limits.h>
2316 # include <assert.h>
2320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2323 grep -v '^ *+' conftest.er1 >conftest.err
2325 cat conftest.err >&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); } >/dev/null; then
2328 if test -s conftest.err; then
2329 ac_cpp_err=$ac_c_preproc_warn_flag
2330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2337 if test -z "$ac_cpp_err"; then
2340 echo "$as_me: failed program was:" >&5
2341 sed 's/^/| /' conftest.$ac_ext >&5
2343 # Broken: fails on valid input.
2346 rm -f conftest.err conftest.$ac_ext
2348 # OK, works on sane cases. Now check whether non-existent headers
2349 # can be detected and how.
2350 cat >conftest.$ac_ext <<_ACEOF
2353 cat confdefs.h >>conftest.$ac_ext
2354 cat >>conftest.$ac_ext <<_ACEOF
2355 /* end confdefs.h. */
2356 #include <ac_nonexistent.h>
2358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2361 grep -v '^ *+' conftest.er1 >conftest.err
2363 cat conftest.err >&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); } >/dev/null; then
2366 if test -s conftest.err; then
2367 ac_cpp_err=$ac_c_preproc_warn_flag
2368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2375 if test -z "$ac_cpp_err"; then
2376 # Broken: success on invalid input.
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2382 # Passes both tests.
2386 rm -f conftest.err conftest.$ac_ext
2389 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2390 rm -f conftest.err conftest.$ac_ext
2391 if $ac_preproc_ok; then
2403 echo "$as_me:$LINENO: result: $CPP" >&5
2404 echo "${ECHO_T}$CPP" >&6
2406 for ac_c_preproc_warn_flag in '' yes
2408 # Use a header file that comes with gcc, so configuring glibc
2409 # with a fresh cross-compiler works.
2410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2411 # <limits.h> exists even on freestanding compilers.
2412 # On the NeXT, cc -E runs the code through the compiler's parser,
2413 # not just through cpp. "Syntax error" is here to catch this case.
2414 cat >conftest.$ac_ext <<_ACEOF
2417 cat confdefs.h >>conftest.$ac_ext
2418 cat >>conftest.$ac_ext <<_ACEOF
2419 /* end confdefs.h. */
2421 # include <limits.h>
2423 # include <assert.h>
2427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2430 grep -v '^ *+' conftest.er1 >conftest.err
2432 cat conftest.err >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); } >/dev/null; then
2435 if test -s conftest.err; then
2436 ac_cpp_err=$ac_c_preproc_warn_flag
2437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2444 if test -z "$ac_cpp_err"; then
2447 echo "$as_me: failed program was:" >&5
2448 sed 's/^/| /' conftest.$ac_ext >&5
2450 # Broken: fails on valid input.
2453 rm -f conftest.err conftest.$ac_ext
2455 # OK, works on sane cases. Now check whether non-existent headers
2456 # can be detected and how.
2457 cat >conftest.$ac_ext <<_ACEOF
2460 cat confdefs.h >>conftest.$ac_ext
2461 cat >>conftest.$ac_ext <<_ACEOF
2462 /* end confdefs.h. */
2463 #include <ac_nonexistent.h>
2465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2468 grep -v '^ *+' conftest.er1 >conftest.err
2470 cat conftest.err >&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); } >/dev/null; then
2473 if test -s conftest.err; then
2474 ac_cpp_err=$ac_c_preproc_warn_flag
2475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2482 if test -z "$ac_cpp_err"; then
2483 # Broken: success on invalid input.
2486 echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.$ac_ext >&5
2489 # Passes both tests.
2493 rm -f conftest.err conftest.$ac_ext
2496 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2497 rm -f conftest.err conftest.$ac_ext
2498 if $ac_preproc_ok; then
2501 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2502 See \`config.log' for more details." >&5
2503 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2504 See \`config.log' for more details." >&2;}
2505 { (exit 1); exit 1; }; }
2509 ac_cpp='$CPP $CPPFLAGS'
2510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2515 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2516 if test -f $ac_dir/install-sh; then
2518 ac_install_sh="$ac_aux_dir/install-sh -c"
2520 elif test -f $ac_dir/install.sh; then
2522 ac_install_sh="$ac_aux_dir/install.sh -c"
2524 elif test -f $ac_dir/shtool; then
2526 ac_install_sh="$ac_aux_dir/shtool install -c"
2530 if test -z "$ac_aux_dir"; then
2531 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2532 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2533 { (exit 1); exit 1; }; }
2535 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2536 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2537 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2539 # Make sure we can run config.sub.
2540 $ac_config_sub sun4 >/dev/null 2>&1 ||
2541 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2542 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2543 { (exit 1); exit 1; }; }
2545 echo "$as_me:$LINENO: checking build system type" >&5
2546 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2547 if test "${ac_cv_build+set}" = set; then
2548 echo $ECHO_N "(cached) $ECHO_C" >&6
2550 ac_cv_build_alias=$build_alias
2551 test -z "$ac_cv_build_alias" &&
2552 ac_cv_build_alias=`$ac_config_guess`
2553 test -z "$ac_cv_build_alias" &&
2554 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2555 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2556 { (exit 1); exit 1; }; }
2557 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2558 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2559 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2560 { (exit 1); exit 1; }; }
2563 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2564 echo "${ECHO_T}$ac_cv_build" >&6
2566 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2567 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2568 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2571 echo "$as_me:$LINENO: checking host system type" >&5
2572 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2573 if test "${ac_cv_host+set}" = set; then
2574 echo $ECHO_N "(cached) $ECHO_C" >&6
2576 ac_cv_host_alias=$host_alias
2577 test -z "$ac_cv_host_alias" &&
2578 ac_cv_host_alias=$ac_cv_build_alias
2579 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2580 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2581 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2582 { (exit 1); exit 1; }; }
2585 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2586 echo "${ECHO_T}$ac_cv_host" >&6
2588 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2589 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2590 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2593 echo "$as_me:$LINENO: checking target system type" >&5
2594 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2595 if test "${ac_cv_target+set}" = set; then
2596 echo $ECHO_N "(cached) $ECHO_C" >&6
2598 ac_cv_target_alias=$target_alias
2599 test "x$ac_cv_target_alias" = "x" &&
2600 ac_cv_target_alias=$ac_cv_host_alias
2601 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2602 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2603 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2604 { (exit 1); exit 1; }; }
2607 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2608 echo "${ECHO_T}$ac_cv_target" >&6
2609 target=$ac_cv_target
2610 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2611 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2612 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2615 # The aliases save the names the user supplied, while $host etc.
2616 # will get canonicalized.
2617 test -n "$target_alias" &&
2618 test "$program_prefix$program_suffix$program_transform_name" = \
2620 program_prefix=${target_alias}-
2622 echo "$as_me:$LINENO: checking for library combo" >&5
2623 echo $ECHO_N "checking for library combo... $ECHO_C" >&6
2625 # Check whether --with-library-combo or --without-library-combo was given.
2626 if test "${with_library_combo+set}" = set; then
2627 withval="$with_library_combo"
2628 ac_cv_library_combo=$withval
2630 ac_cv_library_combo=$ac_cv_library_combo
2634 if test "$ac_cv_library_combo" = ""; then
2636 darwin*) ac_cv_library_combo=apple-apple-apple ;;
2637 nextstep4) ac_cv_library_combo=nx-nx-nx ;;
2638 openstep4) ac_cv_library_combo=nx-nx-nx ;;
2639 *) ac_cv_library_combo=gnu-gnu-gnu ;;
2643 case "$ac_cv_library_combo" in
2644 apple) ac_cv_library_combo=apple-apple-apple ;;
2645 gnu) ac_cv_library_combo=gnu-gnu-gnu ;;
2646 nx) ac_cv_library_combo=nx-nx-nx ;;
2650 echo "$as_me:$LINENO: result: $ac_cv_library_combo" >&5
2651 echo "${ECHO_T}$ac_cv_library_combo" >&6
2653 OBJC_RUNTIME_LIB=`echo $ac_cv_library_combo | awk -F- '{print $1}'`
2655 #--------------------------------------------------------------------
2656 # Check if we are using Apple cc
2657 #--------------------------------------------------------------------
2660 echo "$as_me:$LINENO: checking for apple compiler flags" >&5
2661 echo $ECHO_N "checking for apple compiler flags... $ECHO_C" >&6
2662 cc_cppprecomp=`${CC} -no-cpp-precomp 2>&1 | grep -c "unrecognized"`
2663 cc_bundle=`${CC} -bundle 2>&1 | grep -c "couldn"`
2664 # 0 means we have the flag
2665 if test $cc_cppprecomp = 0; then
2670 if test $cc_bundle = 0; then
2675 echo "$as_me:$LINENO: result: $cc_bundle" >&5
2676 echo "${ECHO_T}$cc_bundle" >&6
2680 #--------------------------------------------------------------------
2681 # specific target_os options
2682 #--------------------------------------------------------------------
2683 case "$target_os" in
2684 freebsd* | openbsd* )
2685 INCLUDES="$INCLUDES -I/usr/local/include"
2686 LIB_DIR="$LIB_DIR -L/usr/local/lib";;
2687 netbsd*) INCLUDES="$INCLUDES -I/usr/pkg/include"
2688 LIB_DIR="$LIB_DIR -Wl,-R/usr/pkg/lib -L/usr/pkg/lib";;
2691 #--------------------------------------------------------------------
2692 # Determine the host, build, and target systems
2693 #--------------------------------------------------------------------
2695 *cygwin* ) CYGWIN=yes;;
2696 *mingw32* ) MINGW32=yes;;
2704 if test "$MINGW32" = yes; then
2705 echo "hosted on mingw32 .."
2706 export INSTALL=install
2708 export CC=${CC:-gcc}
2710 export RANLIB=${RANLIB:-ranlib}
2711 export DLLTOOL=${DLLTOOL:-dlltool}
2712 elif test "$CYGWIN" = yes; then
2713 echo "hosted on cygwin .."
2714 export CC=${CC:-gcc}
2716 export RANLIB=${RANLIB:-ranlib}
2717 export DLLTOOL=${DLLTOOL:-dlltool}
2720 #--------------------------------------------------------------------
2721 # Find the binary and compile tools
2722 #--------------------------------------------------------------------
2723 if test "x$target" != "x$host"; then
2724 echo "cross compiling from $host to $target .."
2725 cross_compiling="yes"
2726 # Extract the first word of ""${targetArgument}-gcc"", so it can be a program name with args.
2727 set dummy "${targetArgument}-gcc"; ac_word=$2
2728 echo "$as_me:$LINENO: checking for $ac_word" >&5
2729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2730 if test "${ac_cv_prog_CC+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2733 if test -n "$CC"; then
2734 ac_cv_prog_CC="$CC" # Let the user override the test.
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2743 ac_cv_prog_CC=" "${targetArgument}-gcc""
2744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="gcc"
2754 if test -n "$CC"; then
2755 echo "$as_me:$LINENO: result: $CC" >&5
2756 echo "${ECHO_T}$CC" >&6
2758 echo "$as_me:$LINENO: result: no" >&5
2759 echo "${ECHO_T}no" >&6
2762 # Extract the first word of ""${targetArgument}-ranlib"", so it can be a program name with args.
2763 set dummy "${targetArgument}-ranlib"; ac_word=$2
2764 echo "$as_me:$LINENO: checking for $ac_word" >&5
2765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2766 if test "${ac_cv_prog_RANLIB+set}" = set; then
2767 echo $ECHO_N "(cached) $ECHO_C" >&6
2769 if test -n "$RANLIB"; then
2770 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2779 ac_cv_prog_RANLIB=" "${targetArgument}-ranlib""
2780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib"
2789 RANLIB=$ac_cv_prog_RANLIB
2790 if test -n "$RANLIB"; then
2791 echo "$as_me:$LINENO: result: $RANLIB" >&5
2792 echo "${ECHO_T}$RANLIB" >&6
2794 echo "$as_me:$LINENO: result: no" >&5
2795 echo "${ECHO_T}no" >&6
2798 # Extract the first word of ""${targetArgument}-ar"", so it can be a program name with args.
2799 set dummy "${targetArgument}-ar"; ac_word=$2
2800 echo "$as_me:$LINENO: checking for $ac_word" >&5
2801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2802 if test "${ac_cv_prog_AR+set}" = set; then
2803 echo $ECHO_N "(cached) $ECHO_C" >&6
2805 if test -n "$AR"; then
2806 ac_cv_prog_AR="$AR" # Let the user override the test.
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2815 ac_cv_prog_AR=" "${targetArgument}-ar""
2816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
2826 if test -n "$AR"; then
2827 echo "$as_me:$LINENO: result: $AR" >&5
2828 echo "${ECHO_T}$AR" >&6
2830 echo "$as_me:$LINENO: result: no" >&5
2831 echo "${ECHO_T}no" >&6
2834 # Extract the first word of ""${targetArgument}-dlltool"", so it can be a program name with args.
2835 set dummy "${targetArgument}-dlltool"; ac_word=$2
2836 echo "$as_me:$LINENO: checking for $ac_word" >&5
2837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2838 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2841 if test -n "$DLLTOOL"; then
2842 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2851 ac_cv_prog_DLLTOOL=" "${targetArgument}-dlltool""
2852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2858 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="dlltool"
2861 DLLTOOL=$ac_cv_prog_DLLTOOL
2862 if test -n "$DLLTOOL"; then
2863 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
2864 echo "${ECHO_T}$DLLTOOL" >&6
2866 echo "$as_me:$LINENO: result: no" >&5
2867 echo "${ECHO_T}no" >&6
2871 # Extract the first word of "ar", so it can be a program name with args.
2872 set dummy ar; ac_word=$2
2873 echo "$as_me:$LINENO: checking for $ac_word" >&5
2874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2875 if test "${ac_cv_prog_AR+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 if test -n "$AR"; then
2879 ac_cv_prog_AR="$AR" # Let the user override the test.
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2898 if test -n "$AR"; then
2899 echo "$as_me:$LINENO: result: $AR" >&5
2900 echo "${ECHO_T}$AR" >&6
2902 echo "$as_me:$LINENO: result: no" >&5
2903 echo "${ECHO_T}no" >&6
2906 # Extract the first word of "dlltool", so it can be a program name with args.
2907 set dummy dlltool; ac_word=$2
2908 echo "$as_me:$LINENO: checking for $ac_word" >&5
2909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2910 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 if test -n "$DLLTOOL"; then
2914 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 test -z "$as_dir" && as_dir=.
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2923 ac_cv_prog_DLLTOOL="dlltool"
2924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2932 DLLTOOL=$ac_cv_prog_DLLTOOL
2933 if test -n "$DLLTOOL"; then
2934 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
2935 echo "${ECHO_T}$DLLTOOL" >&6
2937 echo "$as_me:$LINENO: result: no" >&5
2938 echo "${ECHO_T}no" >&6
2941 if test -n "$ac_tool_prefix"; then
2942 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2943 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2944 echo "$as_me:$LINENO: checking for $ac_word" >&5
2945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2946 if test "${ac_cv_prog_RANLIB+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2949 if test -n "$RANLIB"; then
2950 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2959 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 RANLIB=$ac_cv_prog_RANLIB
2969 if test -n "$RANLIB"; then
2970 echo "$as_me:$LINENO: result: $RANLIB" >&5
2971 echo "${ECHO_T}$RANLIB" >&6
2973 echo "$as_me:$LINENO: result: no" >&5
2974 echo "${ECHO_T}no" >&6
2978 if test -z "$ac_cv_prog_RANLIB"; then
2979 ac_ct_RANLIB=$RANLIB
2980 # Extract the first word of "ranlib", so it can be a program name with args.
2981 set dummy ranlib; ac_word=$2
2982 echo "$as_me:$LINENO: checking for $ac_word" >&5
2983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2984 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 if test -n "$ac_ct_RANLIB"; then
2988 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997 ac_cv_prog_ac_ct_RANLIB="ranlib"
2998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3007 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3008 if test -n "$ac_ct_RANLIB"; then
3009 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3010 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3012 echo "$as_me:$LINENO: result: no" >&5
3013 echo "${ECHO_T}no" >&6
3016 RANLIB=$ac_ct_RANLIB
3018 RANLIB="$ac_cv_prog_RANLIB"
3023 # Find a good install program. We prefer a C program (faster),
3024 # so one script is as good as another. But avoid the broken or
3025 # incompatible versions:
3026 # SysV /etc/install, /usr/sbin/install
3027 # SunOS /usr/etc/install
3028 # IRIX /sbin/install
3030 # AmigaOS /C/install, which installs bootblocks on floppy discs
3031 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3032 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3033 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3034 # OS/2's system install, which has a completely different semantic
3035 # ./install, which can be erroneously created by make from ./install.sh.
3036 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3037 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3038 if test -z "$INSTALL"; then
3039 if test "${ac_cv_path_install+set}" = set; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 test -z "$as_dir" && as_dir=.
3047 # Account for people who put trailing slashes in PATH elements.
3049 ./ | .// | /cC/* | \
3050 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3051 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3054 # OSF1 and SCO ODT 3.0 have their own names for install.
3055 # Don't use installbsd from OSF since it installs stuff as root
3057 for ac_prog in ginstall scoinst install; do
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3060 if test $ac_prog = install &&
3061 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3062 # AIX install. It has an incompatible calling convention.
3064 elif test $ac_prog = install &&
3065 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3066 # program-specific install script used by HP pwplus--don't use.
3069 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3081 if test "${ac_cv_path_install+set}" = set; then
3082 INSTALL=$ac_cv_path_install
3084 # As a last resort, use the slow shell script. We don't cache a
3085 # path for INSTALL within a source directory, because that will
3086 # break other packages using the cache if that directory is
3087 # removed, or if the path is relative.
3088 INSTALL=$ac_install_sh
3091 echo "$as_me:$LINENO: result: $INSTALL" >&5
3092 echo "${ECHO_T}$INSTALL" >&6
3094 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3095 # It thinks the first close brace ends the variable substitution.
3096 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3098 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3100 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3102 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3103 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3105 if test "$LN_S" = "ln -s"; then
3106 echo "$as_me:$LINENO: result: yes" >&5
3107 echo "${ECHO_T}yes" >&6
3109 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3110 echo "${ECHO_T}no, using $LN_S" >&6
3114 for ac_prog in gnutar gtar
3116 # Extract the first word of "$ac_prog", so it can be a program name with args.
3117 set dummy $ac_prog; ac_word=$2
3118 echo "$as_me:$LINENO: checking for $ac_word" >&5
3119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3120 if test "${ac_cv_prog_TAR+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 if test -n "$TAR"; then
3124 ac_cv_prog_TAR="$TAR" # Let the user override the test.
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 test -z "$as_dir" && as_dir=.
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3133 ac_cv_prog_TAR="$ac_prog"
3134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3143 if test -n "$TAR"; then
3144 echo "$as_me:$LINENO: result: $TAR" >&5
3145 echo "${ECHO_T}$TAR" >&6
3147 echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6
3151 test -n "$TAR" && break
3153 test -n "$TAR" || TAR="tar"
3156 # Check whether --with-tar or --without-tar was given.
3157 if test "${with_tar+set}" = set; then
3162 # Extract the first word of "chown", so it can be a program name with args.
3163 set dummy chown; ac_word=$2
3164 echo "$as_me:$LINENO: checking for $ac_word" >&5
3165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3166 if test "${ac_cv_prog_CHOWN+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3169 if test -n "$CHOWN"; then
3170 ac_cv_prog_CHOWN="$CHOWN" # Let the user override the test.
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3179 ac_cv_prog_CHOWN="chown"
3180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 test -z "$ac_cv_prog_CHOWN" && ac_cv_prog_CHOWN="none"
3189 CHOWN=$ac_cv_prog_CHOWN
3190 if test -n "$CHOWN"; then
3191 echo "$as_me:$LINENO: result: $CHOWN" >&5
3192 echo "${ECHO_T}$CHOWN" >&6
3194 echo "$as_me:$LINENO: result: no" >&5
3195 echo "${ECHO_T}no" >&6
3198 if test "$MINGW32" = no; then
3199 if test "$CHOWN" = "none"; then
3200 { { echo "$as_me:$LINENO: error: \"Could not find chown.\"" >&5
3201 echo "$as_me: error: \"Could not find chown.\"" >&2;}
3202 { (exit 1); exit 1; }; };
3206 #-------------------------------------------------------------------
3207 # GNUstep specific options follow
3208 #-------------------------------------------------------------------
3210 #--------------------------------------------------------------------
3211 # The GNUstep root directory.
3212 # The user should have the GNUSTEP_SYSTEM_ROOT environment variable
3213 # defined, but if not then we have a global default.
3214 # Also test for the C: directory, which means we're on Windows
3215 #--------------------------------------------------------------------
3216 echo "$as_me:$LINENO: checking for GNUSTEP_SYSTEM_ROOT to use" >&5
3217 echo $ECHO_N "checking for GNUSTEP_SYSTEM_ROOT to use... $ECHO_C" >&6
3219 if test "x$prefix" = "xNONE"; then
3220 prefix="$ac_default_prefix" ;
3223 # Check whether --with-system-root or --without-system-root was given.
3224 if test "${with_system_root+set}" = set; then
3225 withval="$with_system_root"
3226 ac_cv_system_root="$withval"
3228 ac_cv_system_root=yes
3231 GNUSTEP_ROOT="$prefix"
3232 root_prefix='${prefix}'
3233 if test $ac_cv_system_root = yes; then
3234 if test "x`basename $prefix`" = xSystem; then
3235 GNUSTEP_ROOT=`dirname $prefix`
3237 if test "x$prefix" = "x/"; then
3240 prefix="$prefix/System"
3243 root_prefix='${prefix}/..'
3247 echo "$as_me:$LINENO: result: $prefix" >&5
3248 echo "${ECHO_T}$prefix" >&6
3250 # Makefiles directory location is in a bit of flux now. To keep the
3251 # Makefiles dir in the previous location, reset this variable to
3252 # 'Makefiles' and regenerate configure. Note this doesn't change all
3254 MAKEFILES_SUFFIX=Library/Makefiles
3257 # HOST_INSTALL is the name of the install program in config.make so set it up
3258 # to point to the install-sh script in the GNUstep tree if no system install is
3261 if test "$INSTALL" = "$ac_install_sh"; then
3262 HOST_INSTALL="$prefix/$MAKEFILES_SUFFIX/$INSTALL"
3264 HOST_INSTALL="$INSTALL"
3267 #--------------------------------------------------------------------
3268 # Process --with-defaults-root, --with-user-root,
3269 # --with-local-root and --with-network-root
3270 #--------------------------------------------------------------------
3271 echo "$as_me:$LINENO: checking for GNUSTEP_LOCAL_ROOT to use" >&5
3272 echo $ECHO_N "checking for GNUSTEP_LOCAL_ROOT to use... $ECHO_C" >&6
3274 # Check whether --with-local-root or --without-local-root was given.
3275 if test "${with_local_root+set}" = set; then
3276 withval="$with_local_root"
3277 GNUSTEP_LOCAL_ROOT="$withval"
3279 GNUSTEP_LOCAL_ROOT="$GNUSTEP_ROOT/Local"
3282 echo "$as_me:$LINENO: result: $GNUSTEP_LOCAL_ROOT" >&5
3283 echo "${ECHO_T}$GNUSTEP_LOCAL_ROOT" >&6
3285 echo "$as_me:$LINENO: checking for GNUSTEP_NETWORK_ROOT to use" >&5
3286 echo $ECHO_N "checking for GNUSTEP_NETWORK_ROOT to use... $ECHO_C" >&6
3288 # Check whether --with-network-root or --without-network-root was given.
3289 if test "${with_network_root+set}" = set; then
3290 withval="$with_network_root"
3291 GNUSTEP_NETWORK_ROOT="$withval"
3293 # By default we disable network root, by setting GNUSTEP_NETWORK_ROOT
3294 # to be the same as GNUSTEP_LOCAL_ROOT. GNUSTEP_NETWORK_ROOT is very
3295 # rarely used, and most users prefer simpler systems with shorter
3296 # paths and shorter command lines. To turn on GNUSTEP_NETWORK_ROOT
3297 # again, you can use the --with-network-root=xxx option; pass
3298 # something like --with-network-root=/usr/GNUstep/Network on the
3299 # configure command line.
3300 GNUSTEP_NETWORK_ROOT="$GNUSTEP_LOCAL_ROOT"
3303 echo "$as_me:$LINENO: result: $GNUSTEP_NETWORK_ROOT" >&5
3304 echo "${ECHO_T}$GNUSTEP_NETWORK_ROOT" >&6
3309 echo "$as_me:$LINENO: checking for GNUSTEP_USER_ROOT to use" >&5
3310 echo $ECHO_N "checking for GNUSTEP_USER_ROOT to use... $ECHO_C" >&6
3312 # Check whether --with-user-root or --without-user-root was given.
3313 if test "${with_user_root+set}" = set; then
3314 withval="$with_user_root"
3315 GNUSTEP_USER_ROOT="$withval"
3317 # The default is to have user roots in ~/GNUstep
3318 GNUSTEP_USER_ROOT="~/GNUstep"
3321 echo "$as_me:$LINENO: result: $GNUSTEP_USER_ROOT" >&5
3322 echo "${ECHO_T}$GNUSTEP_USER_ROOT" >&6
3325 #--------------------------------------------------------------------
3326 # Is the system flattened?
3327 #--------------------------------------------------------------------
3328 echo "$as_me:$LINENO: checking for flattened directory structure" >&5
3329 echo $ECHO_N "checking for flattened directory structure... $ECHO_C" >&6
3330 # Check whether --enable-flattened or --disable-flattened was given.
3331 if test "${enable_flattened+set}" = set; then
3332 enableval="$enable_flattened"
3333 ac_cv_flattened=$enableval
3335 ac_cv_flattened="undefined"
3338 if test "$ac_cv_flattened" = "no"; then
3341 GNUSTEP_FLATTENED=yes;
3345 if test "$GNUSTEP_FLATTENED" = "yes"; then
3346 echo "$as_me:$LINENO: result: yes" >&5
3347 echo "${ECHO_T}yes" >&6;
3349 echo "$as_me:$LINENO: result: no" >&5
3350 echo "${ECHO_T}no" >&6;
3354 #--------------------------------------------------------------------
3355 # Is the system multi-platform?
3356 #--------------------------------------------------------------------
3358 # Multi-platform means that GNUstep.sh will determine the host
3359 # platform (by running config.guess) each time that it is sourced.
3360 # This is good if you are sharing your GNUstep.sh across your network
3361 # (for example, mounting the makefiles via NFS), but it requires you
3362 # to be able to run config.guess on your machine(s), which usually
3363 # requires a development environment (compiler, libc etc).
3365 # The default instead is not using multi-platform, which means the
3366 # local host os, cpu and version is hardcoded in GNUstep.sh. This
3367 # works nicely for a single machine using this gnustep-make
3368 # installation, and it works even if you don't have development
3369 # packages (gcc, binutils, libc-dev etc) installed. We had to make
3370 # this the default after end-users (with no development packages
3371 # installed) complained that binary packages wouldn't work (and the
3372 # reason turned out to be that GNUstep.sh was running config.guess
3373 # which was returning the wrong platform because the development
3374 # tools needed/used to determine the platform were not available).
3376 # Unless you know what you are doing, stick with the default, which is
3377 # also much faster when sourcing GNUstep.sh.
3379 # Check whether --enable-multi-platform or --disable-multi-platform was given.
3380 if test "${enable_multi_platform+set}" = set; then
3381 enableval="$enable_multi_platform"
3382 ac_cv_multi_platform=$enableval
3384 ac_cv_multi_platform="undefined"
3387 if test "$ac_cv_multi_platform" = "yes"; then
3388 GNUSTEP_MULTI_PLATFORM=yes;
3390 GNUSTEP_MULTI_PLATFORM=;
3394 #--------------------------------------------------------------------
3395 # Build backend bundles (on by default)
3396 #--------------------------------------------------------------------
3397 # Check whether --enable-backend-bundle or --disable-backend-bundle was given.
3398 if test "${enable_backend_bundle+set}" = set; then
3399 enableval="$enable_backend_bundle"
3400 ac_cv_backend=$enableval
3405 if test "$ac_cv_backend" = "yes"; then
3412 #--------------------------------------------------------------------
3413 # Miscellaneous flags and setup
3414 #--------------------------------------------------------------------
3415 # Strip '-g' off of CFLAGS, since debug=yes adds that anyway
3416 CFLAGS=`echo $CFLAGS | sed -e 's/-g //'`
3418 # Set location of GNUstep dirs for later use
3419 if test "$GNUSTEP_FLATTENED" = yes; then
3420 GNUSTEP_LDIR="$prefix/Library/Libraries"
3421 GNUSTEP_HDIR="$prefix/Library/Headers"
3423 clean_target_os=`$srcdir/clean_os.sh $target_os`
3424 clean_target_cpu=`$srcdir/clean_cpu.sh $target_cpu`
3425 obj_dir="$clean_target_cpu/$clean_target_os"
3426 GNUSTEP_LDIR="$prefix/Library/Libraries/$obj_dir"
3427 GNUSTEP_HDIR="$prefix/Library/Headers/${ac_cv_library_combo}"
3430 # Check to see if the libobjc library is in our GNUSTEP_SYSTEM_ROOT.
3431 # If so, there are probably other libraries that we want there also, so
3432 # leave the proper includes in CPPFLAGS and LDFLAGS
3433 echo "$as_me:$LINENO: checking for custom shared objc library" >&5
3434 echo $ECHO_N "checking for custom shared objc library... $ECHO_C" >&6
3435 if test "${gs_cv_objc_libdir+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 gs_cv_objc_libdir=NONE
3439 if test -f "$GNUSTEP_HDIR/objc/objc.h"; then
3440 if test -f "$GNUSTEP_LDIR/libobjc.a" -o -f "$GNUSTEP_LDIR/libobjc.so" -o -f "$GNUSTEP_LDIR/libobjc.dll.a"; then
3441 gs_cv_objc_libdir="$GNUSTEP_LDIR"
3443 gs_cv_objc_libdir=NONE
3446 #gcc_shared_libobjc=`gcc -print-file-name=libobjc.so`
3447 #if test -f "$gcc_shared_libobjc"; then
3448 # gs_cv_objc_libdir=`dirname $gcc_shared_libobjc`
3453 echo "$as_me:$LINENO: result: $gs_cv_objc_libdir" >&5
3454 echo "${ECHO_T}$gs_cv_objc_libdir" >&6
3456 # The following are needed to compile the test programs
3457 if test "$gs_cv_objc_libdir" = "$GNUSTEP_LDIR"; then
3458 if test "$GNUSTEP_FLATTENED" = yes; then
3459 OBJC_CPPFLAGS="$CPPFLAGS $INCLUDES -I$prefix/Library/Headers"
3461 OBJC_CPPFLAGS="$CPPFLAGS $INCLUDES -I$prefix/Library/Headers/${ac_cv_library_combo}"
3463 OBJC_LDFLAGS="$LDFLAGS $LIB_DIR -L$gs_cv_objc_libdir"
3466 # And the following to execute them
3467 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gs_cv_objc_libdir"
3468 export LD_LIBRARY_PATH
3470 #--------------------------------------------------------------------
3471 # Miscellaneous headers (only used for compiling which_lib.c and user_home.c)
3472 #--------------------------------------------------------------------
3480 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3481 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3482 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3483 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3487 cat >conftest.$ac_ext <<_ACEOF
3490 cat confdefs.h >>conftest.$ac_ext
3491 cat >>conftest.$ac_ext <<_ACEOF
3492 /* end confdefs.h. */
3493 #include <sys/types.h>
3505 rm -f conftest.$ac_objext
3506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3507 (eval $ac_compile) 2>conftest.er1
3509 grep -v '^ *+' conftest.er1 >conftest.err
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } &&
3514 { ac_try='test -z "$ac_c_werror_flag"
3515 || test ! -s conftest.err'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; } &&
3521 { ac_try='test -s conftest.$ac_objext'
3522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; }; then
3527 eval "$as_ac_Header=yes"
3529 echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3532 eval "$as_ac_Header=no"
3534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3539 cat >>confdefs.h <<_ACEOF
3540 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3543 ac_header_dirent=$ac_hdr; break
3547 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3548 if test $ac_header_dirent = dirent.h; then
3549 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3550 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3551 if test "${ac_cv_search_opendir+set}" = set; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 ac_func_search_save_LIBS=$LIBS
3555 ac_cv_search_opendir=no
3556 cat >conftest.$ac_ext <<_ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h. */
3563 /* Override any gcc2 internal prototype to avoid an error. */
3567 /* We use char because int might match the return type of a gcc2
3568 builtin and then its argument prototype would still apply. */
3578 rm -f conftest.$ac_objext conftest$ac_exeext
3579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3580 (eval $ac_link) 2>conftest.er1
3582 grep -v '^ *+' conftest.er1 >conftest.err
3584 cat conftest.err >&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); } &&
3587 { ac_try='test -z "$ac_c_werror_flag"
3588 || test ! -s conftest.err'
3589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); }; } &&
3594 { ac_try='test -s conftest$ac_exeext'
3595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }; }; then
3600 ac_cv_search_opendir="none required"
3602 echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3606 rm -f conftest.err conftest.$ac_objext \
3607 conftest$ac_exeext conftest.$ac_ext
3608 if test "$ac_cv_search_opendir" = no; then
3609 for ac_lib in dir; do
3610 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3611 cat >conftest.$ac_ext <<_ACEOF
3614 cat confdefs.h >>conftest.$ac_ext
3615 cat >>conftest.$ac_ext <<_ACEOF
3616 /* end confdefs.h. */
3618 /* Override any gcc2 internal prototype to avoid an error. */
3622 /* We use char because int might match the return type of a gcc2
3623 builtin and then its argument prototype would still apply. */
3633 rm -f conftest.$ac_objext conftest$ac_exeext
3634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3635 (eval $ac_link) 2>conftest.er1
3637 grep -v '^ *+' conftest.er1 >conftest.err
3639 cat conftest.err >&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); } &&
3642 { ac_try='test -z "$ac_c_werror_flag"
3643 || test ! -s conftest.err'
3644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); }; } &&
3649 { ac_try='test -s conftest$ac_exeext'
3650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); }; }; then
3655 ac_cv_search_opendir="-l$ac_lib"
3658 echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3662 rm -f conftest.err conftest.$ac_objext \
3663 conftest$ac_exeext conftest.$ac_ext
3666 LIBS=$ac_func_search_save_LIBS
3668 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3669 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3670 if test "$ac_cv_search_opendir" != no; then
3671 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3676 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3677 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3678 if test "${ac_cv_search_opendir+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 ac_func_search_save_LIBS=$LIBS
3682 ac_cv_search_opendir=no
3683 cat >conftest.$ac_ext <<_ACEOF
3686 cat confdefs.h >>conftest.$ac_ext
3687 cat >>conftest.$ac_ext <<_ACEOF
3688 /* end confdefs.h. */
3690 /* Override any gcc2 internal prototype to avoid an error. */
3694 /* We use char because int might match the return type of a gcc2
3695 builtin and then its argument prototype would still apply. */
3705 rm -f conftest.$ac_objext conftest$ac_exeext
3706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3707 (eval $ac_link) 2>conftest.er1
3709 grep -v '^ *+' conftest.er1 >conftest.err
3711 cat conftest.err >&5
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } &&
3714 { ac_try='test -z "$ac_c_werror_flag"
3715 || test ! -s conftest.err'
3716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; } &&
3721 { ac_try='test -s conftest$ac_exeext'
3722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }; }; then
3727 ac_cv_search_opendir="none required"
3729 echo "$as_me: failed program was:" >&5
3730 sed 's/^/| /' conftest.$ac_ext >&5
3733 rm -f conftest.err conftest.$ac_objext \
3734 conftest$ac_exeext conftest.$ac_ext
3735 if test "$ac_cv_search_opendir" = no; then
3737 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3738 cat >conftest.$ac_ext <<_ACEOF
3741 cat confdefs.h >>conftest.$ac_ext
3742 cat >>conftest.$ac_ext <<_ACEOF
3743 /* end confdefs.h. */
3745 /* Override any gcc2 internal prototype to avoid an error. */
3749 /* We use char because int might match the return type of a gcc2
3750 builtin and then its argument prototype would still apply. */
3760 rm -f conftest.$ac_objext conftest$ac_exeext
3761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3762 (eval $ac_link) 2>conftest.er1
3764 grep -v '^ *+' conftest.er1 >conftest.err
3766 cat conftest.err >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } &&
3769 { ac_try='test -z "$ac_c_werror_flag"
3770 || test ! -s conftest.err'
3771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); }; } &&
3776 { ac_try='test -s conftest$ac_exeext'
3777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); }; }; then
3782 ac_cv_search_opendir="-l$ac_lib"
3785 echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3789 rm -f conftest.err conftest.$ac_objext \
3790 conftest$ac_exeext conftest.$ac_ext
3793 LIBS=$ac_func_search_save_LIBS
3795 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3796 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3797 if test "$ac_cv_search_opendir" != no; then
3798 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3805 echo "$as_me:$LINENO: checking for egrep" >&5
3806 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3807 if test "${ac_cv_prog_egrep+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3811 then ac_cv_prog_egrep='grep -E'
3812 else ac_cv_prog_egrep='egrep'
3815 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3816 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3817 EGREP=$ac_cv_prog_egrep
3820 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3821 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3822 if test "${ac_cv_header_stdc+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3825 cat >conftest.$ac_ext <<_ACEOF
3828 cat confdefs.h >>conftest.$ac_ext
3829 cat >>conftest.$ac_ext <<_ACEOF
3830 /* end confdefs.h. */
3844 rm -f conftest.$ac_objext
3845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3846 (eval $ac_compile) 2>conftest.er1
3848 grep -v '^ *+' conftest.er1 >conftest.err
3850 cat conftest.err >&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } &&
3853 { ac_try='test -z "$ac_c_werror_flag"
3854 || test ! -s conftest.err'
3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; } &&
3860 { ac_try='test -s conftest.$ac_objext'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3866 ac_cv_header_stdc=yes
3868 echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3871 ac_cv_header_stdc=no
3873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3875 if test $ac_cv_header_stdc = yes; then
3876 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3877 cat >conftest.$ac_ext <<_ACEOF
3880 cat confdefs.h >>conftest.$ac_ext
3881 cat >>conftest.$ac_ext <<_ACEOF
3882 /* end confdefs.h. */
3886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3887 $EGREP "memchr" >/dev/null 2>&1; then
3890 ac_cv_header_stdc=no
3896 if test $ac_cv_header_stdc = yes; then
3897 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3898 cat >conftest.$ac_ext <<_ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h. */
3907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3908 $EGREP "free" >/dev/null 2>&1; then
3911 ac_cv_header_stdc=no
3917 if test $ac_cv_header_stdc = yes; then
3918 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3919 if test "$cross_compiling" = yes; then
3922 cat >conftest.$ac_ext <<_ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3929 #if ((' ' & 0x0FF) == 0x020)
3930 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3931 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3933 # define ISLOWER(c) \
3934 (('a' <= (c) && (c) <= 'i') \
3935 || ('j' <= (c) && (c) <= 'r') \
3936 || ('s' <= (c) && (c) <= 'z'))
3937 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3940 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3945 for (i = 0; i < 256; i++)
3946 if (XOR (islower (i), ISLOWER (i))
3947 || toupper (i) != TOUPPER (i))
3952 rm -f conftest$ac_exeext
3953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3954 (eval $ac_link) 2>&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); }; }; then
3965 echo "$as_me: program exited with status $ac_status" >&5
3966 echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3970 ac_cv_header_stdc=no
3972 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3976 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3977 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3978 if test $ac_cv_header_stdc = yes; then
3980 cat >>confdefs.h <<\_ACEOF
3981 #define STDC_HEADERS 1
3986 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3996 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3997 inttypes.h stdint.h unistd.h
3999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4000 echo "$as_me:$LINENO: checking for $ac_header" >&5
4001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4003 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 cat >conftest.$ac_ext <<_ACEOF
4008 cat confdefs.h >>conftest.$ac_ext
4009 cat >>conftest.$ac_ext <<_ACEOF
4010 /* end confdefs.h. */
4011 $ac_includes_default
4013 #include <$ac_header>
4015 rm -f conftest.$ac_objext
4016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4017 (eval $ac_compile) 2>conftest.er1
4019 grep -v '^ *+' conftest.er1 >conftest.err
4021 cat conftest.err >&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); } &&
4024 { ac_try='test -z "$ac_c_werror_flag"
4025 || test ! -s conftest.err'
4026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }; } &&
4031 { ac_try='test -s conftest.$ac_objext'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; }; then
4037 eval "$as_ac_Header=yes"
4039 echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4042 eval "$as_ac_Header=no"
4044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4049 cat >>confdefs.h <<_ACEOF
4050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4070 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
4072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4074 echo "$as_me:$LINENO: checking for $ac_header" >&5
4075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4082 # Is the header compilable?
4083 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4085 cat >conftest.$ac_ext <<_ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h. */
4091 $ac_includes_default
4092 #include <$ac_header>
4094 rm -f conftest.$ac_objext
4095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4096 (eval $ac_compile) 2>conftest.er1
4098 grep -v '^ *+' conftest.er1 >conftest.err
4100 cat conftest.err >&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); } &&
4103 { ac_try='test -z "$ac_c_werror_flag"
4104 || test ! -s conftest.err'
4105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); }; } &&
4110 { ac_try='test -s conftest.$ac_objext'
4111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); }; }; then
4116 ac_header_compiler=yes
4118 echo "$as_me: failed program was:" >&5
4119 sed 's/^/| /' conftest.$ac_ext >&5
4121 ac_header_compiler=no
4123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4124 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4125 echo "${ECHO_T}$ac_header_compiler" >&6
4127 # Is the header present?
4128 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4130 cat >conftest.$ac_ext <<_ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h. */
4136 #include <$ac_header>
4138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4141 grep -v '^ *+' conftest.er1 >conftest.err
4143 cat conftest.err >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } >/dev/null; then
4146 if test -s conftest.err; then
4147 ac_cpp_err=$ac_c_preproc_warn_flag
4148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4155 if test -z "$ac_cpp_err"; then
4156 ac_header_preproc=yes
4158 echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4161 ac_header_preproc=no
4163 rm -f conftest.err conftest.$ac_ext
4164 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4165 echo "${ECHO_T}$ac_header_preproc" >&6
4167 # So? What about this header?
4168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4174 ac_header_preproc=yes
4177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4184 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4191 ## ------------------------------------------ ##
4192 ## Report this to the AC_PACKAGE_NAME lists. ##
4193 ## ------------------------------------------ ##
4196 sed "s/^/$as_me: WARNING: /" >&2
4199 echo "$as_me:$LINENO: checking for $ac_header" >&5
4200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 eval "$as_ac_Header=\$ac_header_preproc"
4206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4211 cat >>confdefs.h <<_ACEOF
4212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4224 for ac_func in getpwnam getpwuid geteuid getlogin strchr
4226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4227 echo "$as_me:$LINENO: checking for $ac_func" >&5
4228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4229 if eval "test \"\${$as_ac_var+set}\" = set"; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 cat >conftest.$ac_ext <<_ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4238 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4240 #define $ac_func innocuous_$ac_func
4242 /* System header to define __stub macros and hopefully few prototypes,
4243 which can conflict with char $ac_func (); below.
4244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4245 <limits.h> exists even on freestanding compilers. */
4248 # include <limits.h>
4250 # include <assert.h>
4255 /* Override any gcc2 internal prototype to avoid an error. */
4260 /* We use char because int might match the return type of a gcc2
4261 builtin and then its argument prototype would still apply. */
4263 /* The GNU C library defines this for functions which it implements
4264 to always fail with ENOSYS. Some functions are actually named
4265 something starting with __ and the normal name is an alias. */
4266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4269 char (*f) () = $ac_func;
4278 return f != $ac_func;
4283 rm -f conftest.$ac_objext conftest$ac_exeext
4284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4285 (eval $ac_link) 2>conftest.er1
4287 grep -v '^ *+' conftest.er1 >conftest.err
4289 cat conftest.err >&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } &&
4292 { ac_try='test -z "$ac_c_werror_flag"
4293 || test ! -s conftest.err'
4294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; } &&
4299 { ac_try='test -s conftest$ac_exeext'
4300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; }; then
4305 eval "$as_ac_var=yes"
4307 echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4310 eval "$as_ac_var=no"
4312 rm -f conftest.err conftest.$ac_objext \
4313 conftest$ac_exeext conftest.$ac_ext
4315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4317 if test `eval echo '${'$as_ac_var'}'` = yes; then
4318 cat >>confdefs.h <<_ACEOF
4319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4326 #--------------------------------------------------------------------
4327 # Check if libobjc was compiled with thread support.
4328 #--------------------------------------------------------------------
4331 # Check whether --with-thread-lib or --without-thread-lib was given.
4332 if test "${with_thread_lib+set}" = set; then
4333 withval="$with_thread_lib"
4334 OBJC_THREAD=$withval
4341 echo "$as_me:$LINENO: checking whether objc has thread support" >&5
4342 echo $ECHO_N "checking whether objc has thread support... $ECHO_C" >&6
4343 saved_CFLAGS="$CFLAGS"
4345 CFLAGS="$CFLAGS -x objective-c -I$srcdir $OBJC_CPPFLAGS $OBJC_LDFLAGS"
4346 if test "$OBJC_RUNTIME_LIB" = "gnu"; then
4347 CFLAGS="$CFLAGS -fgnu-runtime"
4349 if test "$OBJC_RUNTIME_LIB" = "nx"; then
4350 CFLAGS="$CFLAGS -DNeXT_RUNTIME"
4352 if test "$OBJC_RUNTIME_LIB" = "apple"; then
4353 CFLAGS="$CFLAGS -DNeXT_RUNTIME"
4355 if test "$OBJC_THREAD" != ""; then
4356 LIBS="-lobjc $LIBS $OBJC_THREAD"
4357 if test "$cross_compiling" = yes; then
4360 cat >conftest.$ac_ext <<_ACEOF
4363 cat confdefs.h >>conftest.$ac_ext
4364 cat >>conftest.$ac_ext <<_ACEOF
4365 /* end confdefs.h. */
4366 #include "config_thread.m"
4368 rm -f conftest$ac_exeext
4369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4370 (eval $ac_link) 2>&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; }; then
4379 objc_threaded="$OBJC_THREAD"
4381 echo "$as_me: program exited with status $ac_status" >&5
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4388 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4390 elif test "$host_os" = linux-gnu; then
4391 LIBS="-lobjc -lpthread"
4392 if test "$cross_compiling" = yes; then
4393 objc_threaded="-lpthread"
4395 cat >conftest.$ac_ext <<_ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h. */
4401 #include "config_thread.m"
4403 rm -f conftest$ac_exeext
4404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4405 (eval $ac_link) 2>&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; }; then
4414 objc_threaded="-lpthread"
4416 echo "$as_me: program exited with status $ac_status" >&5
4417 echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4423 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4425 elif test "`echo $host_os|sed 's/[0-9].*//'|sed s/elf//`" = freebsd; then
4426 LIBS="-pthread -lobjc"
4427 if test "$cross_compiling" = yes; then
4428 objc_threaded="-pthread"
4430 cat >conftest.$ac_ext <<_ACEOF
4433 cat confdefs.h >>conftest.$ac_ext
4434 cat >>conftest.$ac_ext <<_ACEOF
4435 /* end confdefs.h. */
4436 #include "config_thread.m"
4438 rm -f conftest$ac_exeext
4439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4440 (eval $ac_link) 2>&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); }; }; then
4449 objc_threaded="-pthread"
4451 echo "$as_me: program exited with status $ac_status" >&5
4452 echo "$as_me: failed program was:" >&5
4453 sed 's/^/| /' conftest.$ac_ext >&5
4458 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4460 if test x"$objc_threaded" = x""; then
4461 LIBS="-lpthread -lobjc"
4462 if test "$cross_compiling" = yes; then
4463 objc_threaded="-lpthread"
4465 cat >conftest.$ac_ext <<_ACEOF
4468 cat confdefs.h >>conftest.$ac_ext
4469 cat >>conftest.$ac_ext <<_ACEOF
4470 /* end confdefs.h. */
4471 #include "config_thread.m"
4473 rm -f conftest$ac_exeext
4474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4475 (eval $ac_link) 2>&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; }; then
4484 objc_threaded="-lpthread"
4486 echo "$as_me: program exited with status $ac_status" >&5
4487 echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4493 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4496 if test x"$objc_threaded" = x""; then
4497 LIBS="-lobjc -lpcthread"
4498 if test "$cross_compiling" = yes; then
4499 objc_threaded="-lpcthread"
4501 cat >conftest.$ac_ext <<_ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h. */
4507 #include "config_thread.m"
4509 rm -f conftest$ac_exeext
4510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4511 (eval $ac_link) 2>&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; }; then
4520 objc_threaded="-lpcthread"
4522 echo "$as_me: program exited with status $ac_status" >&5
4523 echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4529 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4532 elif test "$MINGW32" = yes; then
4533 # Mingw doesn't need anything extra for threads
4535 if test "$cross_compiling" = yes; then
4536 objc_threaded="works"
4538 cat >conftest.$ac_ext <<_ACEOF
4541 cat confdefs.h >>conftest.$ac_ext
4542 cat >>conftest.$ac_ext <<_ACEOF
4543 /* end confdefs.h. */
4544 #include "config_thread.m"
4546 rm -f conftest$ac_exeext
4547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4548 (eval $ac_link) 2>&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; }; then
4557 objc_threaded="works"
4559 echo "$as_me: program exited with status $ac_status" >&5
4560 echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4566 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4570 if test "$cross_compiling" = yes; then
4573 cat >conftest.$ac_ext <<_ACEOF
4576 cat confdefs.h >>conftest.$ac_ext
4577 cat >>conftest.$ac_ext <<_ACEOF
4578 /* end confdefs.h. */
4579 #include "config_thread.m"
4581 rm -f conftest$ac_exeext
4582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4583 (eval $ac_link) 2>&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; }; then
4592 objc_threaded="works"
4594 echo "$as_me: program exited with status $ac_status" >&5
4595 echo "$as_me: failed program was:" >&5
4596 sed 's/^/| /' conftest.$ac_ext >&5
4601 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4603 if test x"$objc_threaded" = x""; then
4604 LIBS="-lobjc $saved_LIBS -lpthread "
4605 if test "$cross_compiling" = yes; then
4608 cat >conftest.$ac_ext <<_ACEOF
4611 cat confdefs.h >>conftest.$ac_ext
4612 cat >>conftest.$ac_ext <<_ACEOF
4613 /* end confdefs.h. */
4614 #include "config_thread.m"
4616 rm -f conftest$ac_exeext
4617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4618 (eval $ac_link) 2>&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; }; then
4627 objc_threaded="-lpthread"
4629 echo "$as_me: program exited with status $ac_status" >&5
4630 echo "$as_me: failed program was:" >&5
4631 sed 's/^/| /' conftest.$ac_ext >&5
4636 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4639 if test x"$objc_threaded" = x""; then
4640 # Solaris, OpenBSD/sparc
4641 LIBS="-lobjc $saved_LIBS -lpthread -lposix4"
4642 if test "$cross_compiling" = yes; then
4645 cat >conftest.$ac_ext <<_ACEOF
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h. */
4651 #include "config_thread.m"
4653 rm -f conftest$ac_exeext
4654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4655 (eval $ac_link) 2>&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); }; }; then
4664 objc_threaded="-lpthread -lposix4"
4666 echo "$as_me: program exited with status $ac_status" >&5
4667 echo "$as_me: failed program was:" >&5
4668 sed 's/^/| /' conftest.$ac_ext >&5
4673 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4676 if test x"$objc_threaded" = x""; then
4677 LIBS="-lobjc $saved_LIBS -lthread "
4678 if test "$cross_compiling" = yes; then
4681 cat >conftest.$ac_ext <<_ACEOF
4684 cat confdefs.h >>conftest.$ac_ext
4685 cat >>conftest.$ac_ext <<_ACEOF
4686 /* end confdefs.h. */
4687 #include "config_thread.m"
4689 rm -f conftest$ac_exeext
4690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4691 (eval $ac_link) 2>&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }; }; then
4700 objc_threaded="-lthread"
4702 echo "$as_me: program exited with status $ac_status" >&5
4703 echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4709 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4713 if test x"$objc_threaded" = x""; then
4714 echo "$as_me:$LINENO: result: no" >&5
4715 echo "${ECHO_T}no" >&6
4717 if test x"$objc_threaded" = x"works"; then
4720 echo "$as_me:$LINENO: result: yes: $objc_threaded" >&5
4721 echo "${ECHO_T}yes: $objc_threaded" >&6
4723 ac_cv_objc_threaded="$objc_threaded"
4727 # Do not restore LIBS and CFLAGS yet as we need to test if the
4728 # compiler supports native exceptions.
4730 #--------------------------------------------------------------------
4731 # Check if GCC supports -fobjc-exceptions, and if so, turn it on!
4732 #--------------------------------------------------------------------
4734 # Check whether --enable-native-objc-exceptions or --disable-native-objc-exceptions was given.
4735 if test "${enable_native_objc_exceptions+set}" = set; then
4736 enableval="$enable_native_objc_exceptions"
4737 USE_OBJC_EXCEPTIONS=$enableval
4739 USE_OBJC_EXCEPTIONS=no
4742 echo "$as_me:$LINENO: checking whether we should use native ObjC exceptions" >&5
4743 echo $ECHO_N "checking whether we should use native ObjC exceptions... $ECHO_C" >&6
4744 if test x"$USE_OBJC_EXCEPTIONS" = x"yes"; then
4745 # What we want to do: set USE_OBJC_EXCEPTIONS to yes if we can compile
4746 # something with @try/@catch/@finally in it.
4747 if test ! ${GCC} = "yes" ; then
4748 USE_OBJC_EXCEPTIONS=no
4749 echo "$as_me:$LINENO: result: no: compiler isn't gcc" >&5
4750 echo "${ECHO_T}no: compiler isn't gcc" >&6
4752 CFLAGS="$CFLAGS -fobjc-exceptions"
4753 if test "$cross_compiling" = yes; then
4754 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4755 See \`config.log' for more details." >&5
4756 echo "$as_me: error: cannot run test program while cross compiling
4757 See \`config.log' for more details." >&2;}
4758 { (exit 1); exit 1; }; }
4760 cat >conftest.$ac_ext <<_ACEOF
4763 #include <objc/Object.h>
4765 int main(int argc, char **argv)
4782 rm -f conftest$ac_exeext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4784 (eval $ac_link) 2>&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); }; }; then
4793 USE_OBJC_EXCEPTIONS=yes
4795 echo "$as_me: program exited with status $ac_status" >&5
4796 echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4800 USE_OBJC_EXCEPTIONS=no
4802 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4804 echo "$as_me:$LINENO: result: $USE_OBJC_EXCEPTIONS" >&5
4805 echo "${ECHO_T}$USE_OBJC_EXCEPTIONS" >&6
4807 if test x$USE_OBJC_EXCEPTIONS = xno; then
4808 { echo "$as_me:$LINENO: Native objective-c exceptions were requested, but the compiler" >&5
4809 echo "$as_me: Native objective-c exceptions were requested, but the compiler" >&6;}
4810 { echo "$as_me:$LINENO: doesn't support them." >&5
4811 echo "$as_me: doesn't support them." >&6;}
4812 { { echo "$as_me:$LINENO: error: compiler doesn't support native objective-c exceptions" >&5
4813 echo "$as_me: error: compiler doesn't support native objective-c exceptions" >&2;}
4814 { (exit 1); exit 1; }; }
4817 echo "$as_me:$LINENO: result: not requested by user" >&5
4818 echo "${ECHO_T}not requested by user" >&6
4823 # Restore LIBS and CFLAGS - we are going to compile C code in the next
4826 CFLAGS="$saved_CFLAGS"
4828 #--------------------------------------------------------------------
4829 # Check if compiler supports -MMD -MP to generate %.d files ...
4830 #--------------------------------------------------------------------
4832 echo "$as_me:$LINENO: checking if the compiler supports autodependencies" >&5
4833 echo $ECHO_N "checking if the compiler supports autodependencies... $ECHO_C" >&6
4835 # What we want to do: set AUTO_DEPENDENCIES to yes if gcc => 3.x
4837 if test ! ${GCC} = "yes" ; then
4838 AUTO_DEPENDENCIES=""
4839 PRECOMPILED_HEADERS=""
4840 echo "$as_me:$LINENO: result: no: it's not gcc" >&5
4841 echo "${ECHO_T}no: it's not gcc" >&6
4843 # Running gcc -dumpversion we get something like 2.95.4 or
4844 # egcs-2.91.66 or 3.0.2 or 3.1 20011211
4845 # We want to discard anything but the major number.
4846 # Explanation of the regexp -
4847 # \(^[^0-9]*\) matches beginning of line and following non numeric chars
4848 # \([0-9][0-9]*\) matches 1 or more numeric chars (this is the 2^nd
4850 # \([^0-9].*\) matches a non numeric char followed by anything
4851 # /\2/ replace the whole lot with the 2^nd subpattern
4852 gs_cv_gcc_major_version=`${CC} -dumpversion | sed "s/\([^0-9]*\)\([0-9][0-9]*\)\([^0-9].*\)/\2/"`;
4854 if test "${gs_cv_gcc_major_version}" -ge "3" ; then
4855 AUTO_DEPENDENCIES=yes
4856 echo "$as_me:$LINENO: result: yes: gcc major version is ${gs_cv_gcc_major_version}" >&5
4857 echo "${ECHO_T}yes: gcc major version is ${gs_cv_gcc_major_version}" >&6
4859 AUTO_DEPENDENCIES=""
4860 PRECOMPILED_HEADERS=""
4861 echo "$as_me:$LINENO: result: no: gcc major version is ${gs_cv_gcc_major_version}" >&5
4862 echo "${ECHO_T}no: gcc major version is ${gs_cv_gcc_major_version}" >&6
4872 #--------------------------------------------------------------------
4873 # Shall we strip makefiles upon installation ?
4874 #--------------------------------------------------------------------
4876 # Stripping makefiles removes comments and newlines from them. The
4877 # resulting stripped makefiles execute around 5% faster on average.
4878 # Too little for it to be worth for the common user who's more
4879 # interested in the comments :-) so it's disabled by default.
4880 echo "$as_me:$LINENO: checking if we should strip makefiles after installation" >&5
4881 echo $ECHO_N "checking if we should strip makefiles after installation... $ECHO_C" >&6
4882 # Check whether --enable-strip-makefiles or --disable-strip-makefiles was given.
4883 if test "${enable_strip_makefiles+set}" = set; then
4884 enableval="$enable_strip_makefiles"
4885 ac_cv_strip_makefiles=$enableval
4887 ac_cv_strip_makefiles="undefined"
4890 if test "$ac_cv_strip_makefiles" = "yes"; then
4891 GNUSTEP_STRIP_MAKEFILES=strip;
4892 echo "$as_me:$LINENO: result: yes" >&5
4893 echo "${ECHO_T}yes" >&6;
4895 GNUSTEP_STRIP_MAKEFILES=;
4896 echo "$as_me:$LINENO: result: no" >&5
4897 echo "${ECHO_T}no" >&6;
4902 #--------------------------------------------------------------------
4903 # Disable updating the obsolete directory structure
4904 #--------------------------------------------------------------------
4905 gs_move_obsolete=yes
4906 # Check whether --enable-move-obsolete or --disable-move-obsolete was given.
4907 if test "${enable_move_obsolete+set}" = set; then
4908 enableval="$enable_move_obsolete"
4909 gs_move_obsolete=$enableval
4911 gs_move_obsolete=yes
4914 if test "$gs_move_obsolete" = "yes"; then
4915 GNUSTEP_MOVE_OBSOLETE=move_obsolete;
4917 GNUSTEP_MOVE_OBSOLETE=
4918 { echo "$as_me:$LINENO: Old GNUstep directories will not be moved" >&5
4919 echo "$as_me: Old GNUstep directories will not be moved" >&6;}
4923 #--------------------------------------------------------------------
4924 # Enable/disable precompiled headers
4925 #--------------------------------------------------------------------
4926 # TODO: replace with / add a check whether PCH works with the
4929 echo "$as_me:$LINENO: checking if we should enable precompiled headers (pch)" >&5
4930 echo $ECHO_N "checking if we should enable precompiled headers (pch)... $ECHO_C" >&6
4931 # Check whether --enable-pch or --disable-pch was given.
4932 if test "${enable_pch+set}" = set; then
4933 enableval="$enable_pch"
4934 gs_enable_pch=$enableval
4939 if test "$gs_enable_pch" = "yes"; then
4940 PRECOMPILED_HEADERS=yes
4941 echo "$as_me:$LINENO: result: yes" >&5
4942 echo "${ECHO_T}yes" >&6;
4944 PRECOMPILED_HEADERS=
4945 echo "$as_me:$LINENO: result: no" >&5
4946 echo "${ECHO_T}no" >&6;
4950 #--------------------------------------------------------------------
4951 # Record the version
4952 #--------------------------------------------------------------------
4953 echo "$as_me:$LINENO: checking for the version of gnustep-make we are compiling" >&5
4954 echo $ECHO_N "checking for the version of gnustep-make we are compiling... $ECHO_C" >&6
4956 echo "$as_me:$LINENO: result: $GNUSTEP_MAKE_VERSION" >&5
4957 echo "${ECHO_T}$GNUSTEP_MAKE_VERSION" >&6
4963 #-------------------------------------------------------------------
4964 # Record the 'clean' target_os, target_cpu and target_vendor
4965 #-------------------------------------------------------------------
4966 # This is just for efficiency, so that core/make/GNUmakefile does not
4967 # have to compute clean_target_os from target_os (and similar) by
4968 # running shell scripts each time you 'make' something inside
4969 # gnustep-make. We basically compute them once now, and cache them
4970 # forever. It is also used by GNUstep.sh when multi-platform is
4972 clean_target_os=`$srcdir/clean_os.sh $target_os`
4973 clean_target_cpu=`$srcdir/clean_cpu.sh $target_cpu`
4974 clean_target_vendor=`$srcdir/clean_cpu.sh $target_vendor`
4980 #--------------------------------------------------------------------
4981 # Produce the output files
4982 #--------------------------------------------------------------------
4983 ac_config_files="$ac_config_files config.make openapp debugapp opentool executable.template GNUmakefile GNUstep.sh GNUstep.csh fixpath.sh gnustep-make.spec GNUsteprc"
4985 ac_config_commands="$ac_config_commands default"
4987 cat >confcache <<\_ACEOF
4988 # This file is a shell script that caches the results of configure
4989 # tests run on this system so they can be shared between configure
4990 # scripts and configure runs, see configure's option --config-cache.
4991 # It is not useful on other systems. If it contains results you don't
4992 # want to keep, you may remove or edit it.
4994 # config.status only pays attention to the cache file if you give it
4995 # the --recheck option to rerun configure.
4997 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4998 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5003 # The following way of writing the cache mishandles newlines in values,
5004 # but we know of no workaround that is simple, portable, and efficient.
5005 # So, don't put newlines in cache variables' values.
5006 # Ultrix sh set writes to stderr and can't be redirected directly,
5007 # and sets the high bit in the cache file unless we assign to the vars.
5010 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5012 # `set' does not quote correctly, so add quotes (double-quote
5013 # substitution turns \\\\ into \\, and sed turns \\ into \).
5016 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5019 # `set' quotes correctly as required by POSIX, so do not add quotes.
5021 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5028 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5030 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5032 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5033 if test -w $cache_file; then
5034 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5035 cat confcache >$cache_file
5037 echo "not updating unwritable cache $cache_file"
5042 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5043 # Let make expand exec_prefix.
5044 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5046 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5047 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5048 # trailing colons and then remove the whole line if VPATH becomes empty
5049 # (actually we leave an empty line to preserve line numbers).
5050 if test "x$srcdir" = x.; then
5051 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5052 s/:*\$(srcdir):*/:/;
5053 s/:*\${srcdir}:*/:/;
5055 s/^\([^=]*=[ ]*\):*/\1/;
5061 DEFS=-DHAVE_CONFIG_H
5065 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5066 # 1. Remove the extension, and $U if already installed.
5067 ac_i=`echo "$ac_i" |
5068 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5070 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5071 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5075 LTLIBOBJS=$ac_ltlibobjs
5079 : ${CONFIG_STATUS=./config.status}
5080 ac_clean_files_save=$ac_clean_files
5081 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5082 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5083 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5084 cat >$CONFIG_STATUS <<_ACEOF
5086 # Generated by $as_me.
5087 # Run this file to recreate the current configuration.
5088 # Compiler output produced by configure, useful for debugging
5089 # configure, is in config.log if it exists.
5094 SHELL=\${CONFIG_SHELL-$SHELL}
5097 cat >>$CONFIG_STATUS <<\_ACEOF
5098 ## --------------------- ##
5099 ## M4sh Initialization. ##
5100 ## --------------------- ##
5102 # Be Bourne compatible
5103 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5106 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5107 # is contrary to our usage. Disable this feature.
5108 alias -g '${1+"$@"}'='"$@"'
5109 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5112 DUALCASE=1; export DUALCASE # for MKS sh
5114 # Support unset when possible.
5115 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5122 # Work around bugs in pre-3.0 UWIN ksh.
5123 $as_unset ENV MAIL MAILPATH
5130 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5131 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5132 LC_TELEPHONE LC_TIME
5134 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5135 eval $as_var=C; export $as_var
5141 # Required to use basename.
5142 if expr a : '\(a\)' >/dev/null 2>&1; then
5148 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5149 as_basename=basename
5155 # Name of the executable.
5156 as_me=`$as_basename "$0" ||
5157 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5158 X"$0" : 'X\(//\)$' \| \
5159 X"$0" : 'X\(/\)$' \| \
5160 . : '\(.\)' 2>/dev/null ||
5162 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5163 /^X\/\(\/\/\)$/{ s//\1/; q; }
5164 /^X\/\(\/\).*/{ s//\1/; q; }
5168 # PATH needs CR, and LINENO needs CR and PATH.
5169 # Avoid depending upon Character Ranges.
5170 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5171 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5172 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5173 as_cr_digits='0123456789'
5174 as_cr_alnum=$as_cr_Letters$as_cr_digits
5176 # The user is always right.
5177 if test "${PATH_SEPARATOR+set}" != set; then
5178 echo "#! /bin/sh" >conf$$.sh
5179 echo "exit 0" >>conf$$.sh
5181 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5192 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5193 test "x$as_lineno_1" != "x$as_lineno_2" &&
5194 test "x$as_lineno_3" = "x$as_lineno_2" || {
5195 # Find who we are. Look in the path if we contain no path at all
5198 *[\\/]* ) as_myself=$0 ;;
5199 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 test -z "$as_dir" && as_dir=.
5204 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5209 # We did not find ourselves, most probably we were run as `sh COMMAND'
5210 # in which case we are not to be found in the path.
5211 if test "x$as_myself" = x; then
5214 if test ! -f "$as_myself"; then
5215 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5216 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5217 { (exit 1); exit 1; }; }
5219 case $CONFIG_SHELL in
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5225 test -z "$as_dir" && as_dir=.
5226 for as_base in sh bash ksh sh5; do
5229 if ("$as_dir/$as_base" -c '
5232 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5233 test "x$as_lineno_1" != "x$as_lineno_2" &&
5234 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5235 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5236 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5237 CONFIG_SHELL=$as_dir/$as_base
5239 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5247 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5248 # uniformly replaced by the line number. The first 'sed' inserts a
5249 # line-number line before each line; the second 'sed' does the real
5250 # work. The second script uses 'N' to pair each line-number line
5251 # with the numbered line, and appends trailing '-' during
5252 # substitution so that $LINENO is not a special case at line end.
5253 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5254 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5255 sed '=' <$as_myself |
5260 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5263 s,^['$as_cr_digits']*\n,,
5265 chmod +x $as_me.lineno ||
5266 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5267 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5268 { (exit 1); exit 1; }; }
5270 # Don't try to exec as it changes $[0], causing all sort of problems
5271 # (the dirname of $[0] is not the place where we might find the
5272 # original and so on. Autoconf is especially sensible to this).
5274 # Exit status is that of the last command.
5279 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5280 *c*,-n*) ECHO_N= ECHO_C='
5282 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5283 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5286 if expr a : '\(a\)' >/dev/null 2>&1; then
5292 rm -f conf$$ conf$$.exe conf$$.file
5294 if ln -s conf$$.file conf$$ 2>/dev/null; then
5295 # We could just check for DJGPP; but this test a) works b) is more generic
5296 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5297 if test -f conf$$.exe; then
5298 # Don't use ln at all; we don't have any links
5303 elif ln conf$$.file conf$$ 2>/dev/null; then
5308 rm -f conf$$ conf$$.exe conf$$.file
5310 if mkdir -p . 2>/dev/null; then
5313 test -d ./-p && rmdir ./-p
5317 as_executable_p="test -f"
5319 # Sed expression to map a string onto a valid CPP name.
5320 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5322 # Sed expression to map a string onto a valid variable name.
5323 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5327 # We need space, tab and new line, in precisely that order.
5337 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5338 # report actual input values of CONFIG_FILES etc. instead of their
5339 # values after options handling. Logging --version etc. is OK.
5343 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5344 ## Running $as_me. ##
5349 This file was extended by $as_me, which was
5350 generated by GNU Autoconf 2.59. Invocation command line was
5352 CONFIG_FILES = $CONFIG_FILES
5353 CONFIG_HEADERS = $CONFIG_HEADERS
5354 CONFIG_LINKS = $CONFIG_LINKS
5355 CONFIG_COMMANDS = $CONFIG_COMMANDS
5359 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5363 # Files that config.status was made for.
5364 if test -n "$ac_config_files"; then
5365 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5368 if test -n "$ac_config_headers"; then
5369 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5372 if test -n "$ac_config_links"; then
5373 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5376 if test -n "$ac_config_commands"; then
5377 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5380 cat >>$CONFIG_STATUS <<\_ACEOF
5383 \`$as_me' instantiates files from templates according to the
5384 current configuration.
5386 Usage: $0 [OPTIONS] [FILE]...
5388 -h, --help print this help, then exit
5389 -V, --version print version number, then exit
5390 -q, --quiet do not print progress messages
5391 -d, --debug don't remove temporary files
5392 --recheck update $as_me by reconfiguring in the same conditions
5393 --file=FILE[:TEMPLATE]
5394 instantiate the configuration file FILE
5395 --header=FILE[:TEMPLATE]
5396 instantiate the configuration header FILE
5398 Configuration files:
5401 Configuration headers:
5404 Configuration commands:
5407 Report bugs to <bug-autoconf@gnu.org>."
5410 cat >>$CONFIG_STATUS <<_ACEOF
5413 configured by $0, generated by GNU Autoconf 2.59,
5414 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5416 Copyright (C) 2003 Free Software Foundation, Inc.
5417 This config.status script is free software; the Free Software Foundation
5418 gives unlimited permission to copy, distribute and modify it."
5423 cat >>$CONFIG_STATUS <<\_ACEOF
5424 # If no file are specified by the user, then we need to provide default
5425 # value. By we need to know if files were specified by the user.
5431 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5432 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5440 *) # This is not an option, so the user has probably given explicit
5443 ac_need_defaults=false;;
5447 # Handling of the options.
5449 cat >>$CONFIG_STATUS <<\_ACEOF
5450 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5452 --version | --vers* | -V )
5453 echo "$ac_cs_version"; exit 0 ;;
5455 # Conflict between --help and --header
5456 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5457 Try \`$0 --help' for more information." >&5
5458 echo "$as_me: error: ambiguous option: $1
5459 Try \`$0 --help' for more information." >&2;}
5460 { (exit 1); exit 1; }; };;
5461 --help | --hel | -h )
5462 echo "$ac_cs_usage"; exit 0 ;;
5463 --debug | --d* | -d )
5465 --file | --fil | --fi | --f )
5467 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5468 ac_need_defaults=false;;
5469 --header | --heade | --head | --hea )
5471 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5472 ac_need_defaults=false;;
5473 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5474 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5478 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5479 Try \`$0 --help' for more information." >&5
5480 echo "$as_me: error: unrecognized option: $1
5481 Try \`$0 --help' for more information." >&2;}
5482 { (exit 1); exit 1; }; } ;;
5484 *) ac_config_targets="$ac_config_targets $1" ;;
5490 ac_configure_extra_args=
5492 if $ac_cs_silent; then
5494 ac_configure_extra_args="$ac_configure_extra_args --silent"
5498 cat >>$CONFIG_STATUS <<_ACEOF
5499 if \$ac_cs_recheck; then
5500 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5501 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5506 cat >>$CONFIG_STATUS <<_ACEOF
5508 # INIT-COMMANDS section.
5517 cat >>$CONFIG_STATUS <<\_ACEOF
5518 for ac_config_target in $ac_config_targets
5520 case "$ac_config_target" in
5521 # Handling of arguments.
5522 "config.make" ) CONFIG_FILES="$CONFIG_FILES config.make" ;;
5523 "openapp" ) CONFIG_FILES="$CONFIG_FILES openapp" ;;
5524 "debugapp" ) CONFIG_FILES="$CONFIG_FILES debugapp" ;;
5525 "opentool" ) CONFIG_FILES="$CONFIG_FILES opentool" ;;
5526 "executable.template" ) CONFIG_FILES="$CONFIG_FILES executable.template" ;;
5527 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
5528 "GNUstep.sh" ) CONFIG_FILES="$CONFIG_FILES GNUstep.sh" ;;
5529 "GNUstep.csh" ) CONFIG_FILES="$CONFIG_FILES GNUstep.csh" ;;
5530 "fixpath.sh" ) CONFIG_FILES="$CONFIG_FILES fixpath.sh" ;;
5531 "gnustep-make.spec" ) CONFIG_FILES="$CONFIG_FILES gnustep-make.spec" ;;
5532 "GNUsteprc" ) CONFIG_FILES="$CONFIG_FILES GNUsteprc" ;;
5533 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5534 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5535 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5536 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5537 { (exit 1); exit 1; }; };;
5541 # If the user did not use the arguments to specify the items to instantiate,
5542 # then the envvar interface is used. Set only those that are not.
5543 # We use the long form for the default assignment because of an extremely
5544 # bizarre bug on SunOS 4.1.3.
5545 if $ac_need_defaults; then
5546 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5547 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5548 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5551 # Have a temporary directory for convenience. Make it in the build tree
5552 # simply because there is no reason to put it here, and in addition,
5553 # creating and moving files from /tmp can sometimes cause problems.
5554 # Create a temporary directory, and hook for its removal unless debugging.
5557 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5558 trap '{ (exit 1); exit 1; }' 1 2 13 15
5561 # Create a (secure) tmp directory for tmp files.
5564 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5565 test -n "$tmp" && test -d "$tmp"
5568 tmp=./confstat$$-$RANDOM
5569 (umask 077 && mkdir $tmp)
5572 echo "$me: cannot create a temporary directory in ." >&2
5573 { (exit 1); exit 1; }
5578 cat >>$CONFIG_STATUS <<_ACEOF
5581 # CONFIG_FILES section.
5584 # No need to generate the scripts if there are no CONFIG_FILES.
5585 # This happens for instance when ./config.status config.h
5586 if test -n "\$CONFIG_FILES"; then
5587 # Protect against being on the right side of a sed subst in config.status.
5588 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5589 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5590 s,@SHELL@,$SHELL,;t t
5591 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5592 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5593 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5594 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5595 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5596 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5597 s,@exec_prefix@,$exec_prefix,;t t
5598 s,@prefix@,$prefix,;t t
5599 s,@program_transform_name@,$program_transform_name,;t t
5600 s,@bindir@,$bindir,;t t
5601 s,@sbindir@,$sbindir,;t t
5602 s,@libexecdir@,$libexecdir,;t t
5603 s,@datadir@,$datadir,;t t
5604 s,@sysconfdir@,$sysconfdir,;t t
5605 s,@sharedstatedir@,$sharedstatedir,;t t
5606 s,@localstatedir@,$localstatedir,;t t
5607 s,@libdir@,$libdir,;t t
5608 s,@includedir@,$includedir,;t t
5609 s,@oldincludedir@,$oldincludedir,;t t
5610 s,@infodir@,$infodir,;t t
5611 s,@mandir@,$mandir,;t t
5612 s,@build_alias@,$build_alias,;t t
5613 s,@host_alias@,$host_alias,;t t
5614 s,@target_alias@,$target_alias,;t t
5616 s,@ECHO_C@,$ECHO_C,;t t
5617 s,@ECHO_N@,$ECHO_N,;t t
5618 s,@ECHO_T@,$ECHO_T,;t t
5621 s,@CFLAGS@,$CFLAGS,;t t
5622 s,@LDFLAGS@,$LDFLAGS,;t t
5623 s,@CPPFLAGS@,$CPPFLAGS,;t t
5624 s,@ac_ct_CC@,$ac_ct_CC,;t t
5625 s,@EXEEXT@,$EXEEXT,;t t
5626 s,@OBJEXT@,$OBJEXT,;t t
5628 s,@build@,$build,;t t
5629 s,@build_cpu@,$build_cpu,;t t
5630 s,@build_vendor@,$build_vendor,;t t
5631 s,@build_os@,$build_os,;t t
5633 s,@host_cpu@,$host_cpu,;t t
5634 s,@host_vendor@,$host_vendor,;t t
5635 s,@host_os@,$host_os,;t t
5636 s,@target@,$target,;t t
5637 s,@target_cpu@,$target_cpu,;t t
5638 s,@target_vendor@,$target_vendor,;t t
5639 s,@target_os@,$target_os,;t t
5640 s,@ac_cv_library_combo@,$ac_cv_library_combo,;t t
5641 s,@cc_cppprecomp@,$cc_cppprecomp,;t t
5642 s,@cc_bundle@,$cc_bundle,;t t
5643 s,@CYGWIN@,$CYGWIN,;t t
5644 s,@RANLIB@,$RANLIB,;t t
5646 s,@DLLTOOL@,$DLLTOOL,;t t
5647 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5648 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5649 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5650 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5653 s,@CHOWN@,$CHOWN,;t t
5654 s,@GNUSTEP_ROOT@,$GNUSTEP_ROOT,;t t
5655 s,@root_prefix@,$root_prefix,;t t
5656 s,@MAKEFILES_SUFFIX@,$MAKEFILES_SUFFIX,;t t
5657 s,@HOST_INSTALL@,$HOST_INSTALL,;t t
5658 s,@GNUSTEP_LOCAL_ROOT@,$GNUSTEP_LOCAL_ROOT,;t t
5659 s,@GNUSTEP_NETWORK_ROOT@,$GNUSTEP_NETWORK_ROOT,;t t
5660 s,@GNUSTEP_USER_ROOT@,$GNUSTEP_USER_ROOT,;t t
5661 s,@GNUSTEP_FLATTENED@,$GNUSTEP_FLATTENED,;t t
5662 s,@GNUSTEP_MULTI_PLATFORM@,$GNUSTEP_MULTI_PLATFORM,;t t
5663 s,@BACKEND_BUNDLE@,$BACKEND_BUNDLE,;t t
5664 s,@EGREP@,$EGREP,;t t
5665 s,@objc_threaded@,$objc_threaded,;t t
5666 s,@ac_cv_objc_threaded@,$ac_cv_objc_threaded,;t t
5667 s,@USE_OBJC_EXCEPTIONS@,$USE_OBJC_EXCEPTIONS,;t t
5668 s,@AUTO_DEPENDENCIES@,$AUTO_DEPENDENCIES,;t t
5669 s,@PRECOMPILED_HEADERS@,$PRECOMPILED_HEADERS,;t t
5670 s,@INCLUDES@,$INCLUDES,;t t
5671 s,@LIB_DIR@,$LIB_DIR,;t t
5672 s,@OBJCFLAGS@,$OBJCFLAGS,;t t
5673 s,@GNUSTEP_STRIP_MAKEFILES@,$GNUSTEP_STRIP_MAKEFILES,;t t
5674 s,@GNUSTEP_MOVE_OBSOLETE@,$GNUSTEP_MOVE_OBSOLETE,;t t
5675 s,@GNUSTEP_MAKE_VERSION@,$GNUSTEP_MAKE_VERSION,;t t
5676 s,@GNUSTEP_MAKE_MAJOR_VERSION@,$GNUSTEP_MAKE_MAJOR_VERSION,;t t
5677 s,@GNUSTEP_MAKE_MINOR_VERSION@,$GNUSTEP_MAKE_MINOR_VERSION,;t t
5678 s,@GNUSTEP_MAKE_SUBMINOR_VERSION@,$GNUSTEP_MAKE_SUBMINOR_VERSION,;t t
5679 s,@clean_target_os@,$clean_target_os,;t t
5680 s,@clean_target_cpu@,$clean_target_cpu,;t t
5681 s,@clean_target_vendor@,$clean_target_vendor,;t t
5682 s,@LIBOBJS@,$LIBOBJS,;t t
5683 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5688 cat >>$CONFIG_STATUS <<\_ACEOF
5689 # Split the substitutions into bite-sized pieces for seds with
5690 # small command number limits, like on Digital OSF/1 and HP-UX.
5692 ac_sed_frag=1 # Number of current file.
5693 ac_beg=1 # First line for current file.
5694 ac_end=$ac_max_sed_lines # Line after last line for current file.
5697 while $ac_more_lines; do
5698 if test $ac_beg -gt 1; then
5699 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5701 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5703 if test ! -s $tmp/subs.frag; then
5706 # The purpose of the label and of the branching condition is to
5707 # speed up the sed processing (if there are no `@' at all, there
5708 # is no need to browse any of the substitutions).
5709 # These are the two extra sed commands mentioned above.
5711 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5712 if test -z "$ac_sed_cmds"; then
5713 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5715 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5717 ac_sed_frag=`expr $ac_sed_frag + 1`
5719 ac_end=`expr $ac_end + $ac_max_sed_lines`
5722 if test -z "$ac_sed_cmds"; then
5725 fi # test -n "$CONFIG_FILES"
5728 cat >>$CONFIG_STATUS <<\_ACEOF
5729 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5730 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5732 - | *:- | *:-:* ) # input from stdin
5734 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5735 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5736 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5737 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5738 * ) ac_file_in=$ac_file.in ;;
5741 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5742 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5743 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5744 X"$ac_file" : 'X\(//\)[^/]' \| \
5745 X"$ac_file" : 'X\(//\)$' \| \
5746 X"$ac_file" : 'X\(/\)' \| \
5747 . : '\(.\)' 2>/dev/null ||
5749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5750 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5751 /^X\(\/\/\)$/{ s//\1/; q; }
5752 /^X\(\/\).*/{ s//\1/; q; }
5754 { if $as_mkdir_p; then
5759 while test ! -d "$as_dir"; do
5760 as_dirs="$as_dir $as_dirs"
5761 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5762 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5763 X"$as_dir" : 'X\(//\)[^/]' \| \
5764 X"$as_dir" : 'X\(//\)$' \| \
5765 X"$as_dir" : 'X\(/\)' \| \
5766 . : '\(.\)' 2>/dev/null ||
5768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5769 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5770 /^X\(\/\/\)$/{ s//\1/; q; }
5771 /^X\(\/\).*/{ s//\1/; q; }
5774 test ! -n "$as_dirs" || mkdir $as_dirs
5775 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5776 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5777 { (exit 1); exit 1; }; }; }
5781 if test "$ac_dir" != .; then
5782 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5783 # A "../" for each directory in $ac_dir_suffix.
5784 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5786 ac_dir_suffix= ac_top_builddir=
5790 .) # No --srcdir option. We are building in place.
5792 if test -z "$ac_top_builddir"; then
5795 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5797 [\\/]* | ?:[\\/]* ) # Absolute path.
5798 ac_srcdir=$srcdir$ac_dir_suffix;
5799 ac_top_srcdir=$srcdir ;;
5801 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5802 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5805 # Do not use `cd foo && pwd` to compute absolute paths, because
5806 # the directories may not exist.
5808 .) ac_abs_builddir="$ac_dir";;
5811 .) ac_abs_builddir=`pwd`;;
5812 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5813 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5816 case $ac_abs_builddir in
5817 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5819 case ${ac_top_builddir}. in
5820 .) ac_abs_top_builddir=$ac_abs_builddir;;
5821 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5822 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5825 case $ac_abs_builddir in
5826 .) ac_abs_srcdir=$ac_srcdir;;
5829 .) ac_abs_srcdir=$ac_abs_builddir;;
5830 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5831 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5834 case $ac_abs_builddir in
5835 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5837 case $ac_top_srcdir in
5838 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5839 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5840 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5846 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5847 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5850 if test x"$ac_file" != x-; then
5851 { echo "$as_me:$LINENO: creating $ac_file" >&5
5852 echo "$as_me: creating $ac_file" >&6;}
5855 # Let's still pretend it is `configure' which instantiates (i.e., don't
5856 # use $as_me), people would be surprised to read:
5857 # /* config.h. Generated by config.status. */
5858 if test x"$ac_file" = x-; then
5861 configure_input="$ac_file. "
5863 configure_input=$configure_input"Generated from `echo $ac_file_in |
5864 sed 's,.*/,,'` by configure."
5866 # First look for the input files in the build tree, otherwise in the
5868 ac_file_inputs=`IFS=:
5869 for f in $ac_file_in; do
5871 -) echo $tmp/stdin ;;
5873 # Absolute (can't be DOS-style, as IFS=:)
5874 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5875 echo "$as_me: error: cannot find input file: $f" >&2;}
5876 { (exit 1); exit 1; }; }
5879 if test -f "$f"; then
5882 elif test -f "$srcdir/$f"; then
5887 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5888 echo "$as_me: error: cannot find input file: $f" >&2;}
5889 { (exit 1); exit 1; }; }
5892 done` || { (exit 1); exit 1; }
5894 cat >>$CONFIG_STATUS <<_ACEOF
5898 cat >>$CONFIG_STATUS <<\_ACEOF
5900 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5901 s,@configure_input@,$configure_input,;t t
5902 s,@srcdir@,$ac_srcdir,;t t
5903 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5904 s,@top_srcdir@,$ac_top_srcdir,;t t
5905 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5906 s,@builddir@,$ac_builddir,;t t
5907 s,@abs_builddir@,$ac_abs_builddir,;t t
5908 s,@top_builddir@,$ac_top_builddir,;t t
5909 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5910 s,@INSTALL@,$ac_INSTALL,;t t
5911 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5913 if test x"$ac_file" != x-; then
5914 mv $tmp/out $ac_file
5922 cat >>$CONFIG_STATUS <<\_ACEOF
5925 # CONFIG_HEADER section.
5928 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5929 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5931 # ac_d sets the value in "#define NAME VALUE" lines.
5932 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5933 ac_dB='[ ].*$,\1#\2'
5936 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5937 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5938 ac_uB='$,\1#\2define\3'
5942 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5943 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5945 - | *:- | *:-:* ) # input from stdin
5947 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5948 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5949 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5950 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5951 * ) ac_file_in=$ac_file.in ;;
5954 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5955 echo "$as_me: creating $ac_file" >&6;}
5957 # First look for the input files in the build tree, otherwise in the
5959 ac_file_inputs=`IFS=:
5960 for f in $ac_file_in; do
5962 -) echo $tmp/stdin ;;
5964 # Absolute (can't be DOS-style, as IFS=:)
5965 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5966 echo "$as_me: error: cannot find input file: $f" >&2;}
5967 { (exit 1); exit 1; }; }
5968 # Do quote $f, to prevent DOS paths from being IFS'd.
5971 if test -f "$f"; then
5974 elif test -f "$srcdir/$f"; then
5979 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5980 echo "$as_me: error: cannot find input file: $f" >&2;}
5981 { (exit 1); exit 1; }; }
5984 done` || { (exit 1); exit 1; }
5985 # Remove the trailing spaces.
5986 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5990 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5991 # `conftest.undefs', that substitutes the proper values into
5992 # config.h.in to produce config.h. The first handles `#define'
5993 # templates, and the second `#undef' templates.
5994 # And first: Protect against being on the right side of a sed subst in
5995 # config.status. Protect against being in an unquoted here document
5997 rm -f conftest.defines conftest.undefs
5998 # Using a here document instead of a string reduces the quoting nightmare.
5999 # Putting comments in sed scripts is not portable.
6001 # `end' is used to avoid that the second main sed command (meant for
6002 # 0-ary CPP macros) applies to n-ary macro definitions.
6003 # See the Autoconf documentation for `clear'.
6004 cat >confdef2sed.sed <<\_ACEOF
6009 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6011 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6014 # If some macros were called several times there might be several times
6015 # the same #defines, which is useless. Nevertheless, we may not want to
6016 # sort them, since we want the *last* AC-DEFINE to be honored.
6017 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6018 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6019 rm -f confdef2sed.sed
6021 # This sed command replaces #undef with comments. This is necessary, for
6022 # example, in the case of _POSIX_SOURCE, which is predefined and required
6023 # on some systems where configure will not decide to define it.
6024 cat >>conftest.undefs <<\_ACEOF
6025 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6028 # Break up conftest.defines because some shells have a limit on the size
6029 # of here documents, and old seds have small limits too (100 cmds).
6030 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6031 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6032 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6033 echo ' :' >>$CONFIG_STATUS
6035 while grep . conftest.defines >/dev/null
6037 # Write a limited-size here document to $tmp/defines.sed.
6038 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6039 # Speed up: don't consider the non `#define' lines.
6040 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6041 # Work around the forget-to-reset-the-flag bug.
6042 echo 't clr' >>$CONFIG_STATUS
6043 echo ': clr' >>$CONFIG_STATUS
6044 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6046 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6050 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6051 rm -f conftest.defines
6052 mv conftest.tail conftest.defines
6054 rm -f conftest.defines
6055 echo ' fi # grep' >>$CONFIG_STATUS
6056 echo >>$CONFIG_STATUS
6058 # Break up conftest.undefs because some shells have a limit on the size
6059 # of here documents, and old seds have small limits too (100 cmds).
6060 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6062 while grep . conftest.undefs >/dev/null
6064 # Write a limited-size here document to $tmp/undefs.sed.
6065 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6066 # Speed up: don't consider the non `#undef'
6067 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6068 # Work around the forget-to-reset-the-flag bug.
6069 echo 't clr' >>$CONFIG_STATUS
6070 echo ': clr' >>$CONFIG_STATUS
6071 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6073 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6077 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6078 rm -f conftest.undefs
6079 mv conftest.tail conftest.undefs
6081 rm -f conftest.undefs
6083 cat >>$CONFIG_STATUS <<\_ACEOF
6084 # Let's still pretend it is `configure' which instantiates (i.e., don't
6085 # use $as_me), people would be surprised to read:
6086 # /* config.h. Generated by config.status. */
6087 if test x"$ac_file" = x-; then
6088 echo "/* Generated by configure. */" >$tmp/config.h
6090 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6092 cat $tmp/in >>$tmp/config.h
6094 if test x"$ac_file" != x-; then
6095 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6096 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6097 echo "$as_me: $ac_file is unchanged" >&6;}
6099 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6100 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6101 X"$ac_file" : 'X\(//\)[^/]' \| \
6102 X"$ac_file" : 'X\(//\)$' \| \
6103 X"$ac_file" : 'X\(/\)' \| \
6104 . : '\(.\)' 2>/dev/null ||
6106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6107 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6108 /^X\(\/\/\)$/{ s//\1/; q; }
6109 /^X\(\/\).*/{ s//\1/; q; }
6111 { if $as_mkdir_p; then
6116 while test ! -d "$as_dir"; do
6117 as_dirs="$as_dir $as_dirs"
6118 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6119 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6120 X"$as_dir" : 'X\(//\)[^/]' \| \
6121 X"$as_dir" : 'X\(//\)$' \| \
6122 X"$as_dir" : 'X\(/\)' \| \
6123 . : '\(.\)' 2>/dev/null ||
6125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6126 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6127 /^X\(\/\/\)$/{ s//\1/; q; }
6128 /^X\(\/\).*/{ s//\1/; q; }
6131 test ! -n "$as_dirs" || mkdir $as_dirs
6132 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6133 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6134 { (exit 1); exit 1; }; }; }
6137 mv $tmp/config.h $ac_file
6145 cat >>$CONFIG_STATUS <<\_ACEOF
6148 # CONFIG_COMMANDS section.
6150 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6151 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6152 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6153 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6154 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6155 X"$ac_dest" : 'X\(//\)[^/]' \| \
6156 X"$ac_dest" : 'X\(//\)$' \| \
6157 X"$ac_dest" : 'X\(/\)' \| \
6158 . : '\(.\)' 2>/dev/null ||
6160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6161 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6162 /^X\(\/\/\)$/{ s//\1/; q; }
6163 /^X\(\/\).*/{ s//\1/; q; }
6165 { if $as_mkdir_p; then
6170 while test ! -d "$as_dir"; do
6171 as_dirs="$as_dir $as_dirs"
6172 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6173 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6174 X"$as_dir" : 'X\(//\)[^/]' \| \
6175 X"$as_dir" : 'X\(//\)$' \| \
6176 X"$as_dir" : 'X\(/\)' \| \
6177 . : '\(.\)' 2>/dev/null ||
6179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6180 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6181 /^X\(\/\/\)$/{ s//\1/; q; }
6182 /^X\(\/\).*/{ s//\1/; q; }
6185 test ! -n "$as_dirs" || mkdir $as_dirs
6186 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6187 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6188 { (exit 1); exit 1; }; }; }
6192 if test "$ac_dir" != .; then
6193 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6194 # A "../" for each directory in $ac_dir_suffix.
6195 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6197 ac_dir_suffix= ac_top_builddir=
6201 .) # No --srcdir option. We are building in place.
6203 if test -z "$ac_top_builddir"; then
6206 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6208 [\\/]* | ?:[\\/]* ) # Absolute path.
6209 ac_srcdir=$srcdir$ac_dir_suffix;
6210 ac_top_srcdir=$srcdir ;;
6212 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6213 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6216 # Do not use `cd foo && pwd` to compute absolute paths, because
6217 # the directories may not exist.
6219 .) ac_abs_builddir="$ac_dir";;
6222 .) ac_abs_builddir=`pwd`;;
6223 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6224 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6227 case $ac_abs_builddir in
6228 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6230 case ${ac_top_builddir}. in
6231 .) ac_abs_top_builddir=$ac_abs_builddir;;
6232 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6233 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6236 case $ac_abs_builddir in
6237 .) ac_abs_srcdir=$ac_srcdir;;
6240 .) ac_abs_srcdir=$ac_abs_builddir;;
6241 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6242 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6245 case $ac_abs_builddir in
6246 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6248 case $ac_top_srcdir in
6249 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6250 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6251 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6256 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6257 echo "$as_me: executing $ac_dest commands" >&6;}
6259 default ) chmod a+x openapp debugapp opentool fixpath.sh executable.template ;;
6264 cat >>$CONFIG_STATUS <<\_ACEOF
6266 { (exit 0); exit 0; }
6268 chmod +x $CONFIG_STATUS
6269 ac_clean_files=$ac_clean_files_save
6272 # configure is writing to config.log, and then calls config.status.
6273 # config.status does its own redirection, appending to config.log.
6274 # Unfortunately, on DOS this fails, as config.log is still kept open
6275 # by configure, so config.status won't be able to write to it; its
6276 # output is simply discarded. So we exec the FD to /dev/null,
6277 # effectively closing config.log, so it can be properly (re)opened and
6278 # appended to by config.status. When coming back to configure, we
6279 # need to make the FD available again.
6280 if test "$no_create" != yes; then
6282 ac_config_status_args=
6283 test "$silent" = yes &&
6284 ac_config_status_args="$ac_config_status_args --quiet"
6286 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6288 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6289 # would make configure fail if this is the last instruction.
6290 $ac_cs_success || { (exit 1); exit 1; }