3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.14.1
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-emacs=EMACS compile with EMACS [EMACS=emacs, mule...]"
17 --with-xemacs=XEMACS compile with XEMACS [XEMACS=xemacs]"
19 --with-lispdir=DIR Where to install lisp files
20 (for XEmacs package, use --with-packagedir instead)"
22 --with-w3=DIR Specify where to find the w3 package"
24 --with-packagedir=DIR package DIR for XEmacs"
26 --with-addpath=PATH search Emacs-Lisp libraries with PATH
27 use colons to separate directory names"
29 # Initialize some variables set by options.
30 # The variables have the same names as the options, with
31 # dashes changed to underlines.
33 cache_file=./config.cache
42 program_transform_name=s,x,x,
50 bindir='${exec_prefix}/bin'
51 sbindir='${exec_prefix}/sbin'
52 libexecdir='${exec_prefix}/libexec'
53 datadir='${prefix}/share'
54 sysconfdir='${prefix}/etc'
55 sharedstatedir='${prefix}/com'
56 localstatedir='${prefix}/var'
57 libdir='${exec_prefix}/lib'
58 includedir='${prefix}/include'
59 oldincludedir='/usr/include'
60 infodir='${prefix}/info'
61 mandir='${prefix}/man'
63 # Initialize some other variables.
66 SHELL=${CONFIG_SHELL-/bin/sh}
67 # Maximum number of lines to put in a shell here document.
74 # If the previous option needs an argument, assign it.
75 if test -n "$ac_prev"; then
76 eval "$ac_prev=\$ac_option"
82 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
86 # Accept the important Cygnus configure options, so we can diagnose typos.
90 -bindir | --bindir | --bindi | --bind | --bin | --bi)
92 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
93 bindir="$ac_optarg" ;;
95 -build | --build | --buil | --bui | --bu)
97 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
100 -cache-file | --cache-file | --cache-fil | --cache-fi \
101 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
102 ac_prev=cache_file ;;
103 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
104 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
105 cache_file="$ac_optarg" ;;
107 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
109 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
111 datadir="$ac_optarg" ;;
113 -disable-* | --disable-*)
114 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
115 # Reject names that are not valid shell variable names.
116 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
117 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
120 eval "enable_${ac_feature}=no" ;;
122 -enable-* | --enable-*)
123 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
124 # Reject names that are not valid shell variable names.
125 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
126 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
133 eval "enable_${ac_feature}='$ac_optarg'" ;;
135 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
136 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
137 | --exec | --exe | --ex)
138 ac_prev=exec_prefix ;;
139 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
140 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
141 | --exec=* | --exe=* | --ex=*)
142 exec_prefix="$ac_optarg" ;;
144 -gas | --gas | --ga | --g)
145 # Obsolete; use --with-gas.
148 -help | --help | --hel | --he)
149 # Omit some internal or obsolete options to make the list less imposing.
150 # This message is too long to be a string in the A/UX 3.1 sh.
152 Usage: configure [options] [host]
153 Options: [defaults in brackets after descriptions]
155 --cache-file=FILE cache test results in FILE
156 --help print this message
157 --no-create do not create output files
158 --quiet, --silent do not print \`checking...' messages
159 --version print the version of autoconf that created configure
160 Directory and file names:
161 --prefix=PREFIX install architecture-independent files in PREFIX
163 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
165 --bindir=DIR user executables in DIR [EPREFIX/bin]
166 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
167 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
168 --datadir=DIR read-only architecture-independent data in DIR
170 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
171 --sharedstatedir=DIR modifiable architecture-independent data in DIR
173 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
174 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
175 --includedir=DIR C header files in DIR [PREFIX/include]
176 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
177 --infodir=DIR info documentation in DIR [PREFIX/info]
178 --mandir=DIR man documentation in DIR [PREFIX/man]
179 --srcdir=DIR find the sources in DIR [configure dir or ..]
180 --program-prefix=PREFIX prepend PREFIX to installed program names
181 --program-suffix=SUFFIX append SUFFIX to installed program names
182 --program-transform-name=PROGRAM
183 run sed PROGRAM on installed program names
187 --build=BUILD configure for building on BUILD [BUILD=HOST]
188 --host=HOST configure for HOST [guessed]
189 --target=TARGET configure for TARGET [TARGET=HOST]
190 Features and packages:
191 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
192 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
193 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
194 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
195 --x-includes=DIR X include files are in DIR
196 --x-libraries=DIR X library files are in DIR
198 if test -n "$ac_help"; then
199 echo "--enable and --with options recognized:$ac_help"
203 -host | --host | --hos | --ho)
205 -host=* | --host=* | --hos=* | --ho=*)
208 -includedir | --includedir | --includedi | --included | --include \
209 | --includ | --inclu | --incl | --inc)
210 ac_prev=includedir ;;
211 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
212 | --includ=* | --inclu=* | --incl=* | --inc=*)
213 includedir="$ac_optarg" ;;
215 -infodir | --infodir | --infodi | --infod | --info | --inf)
217 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
218 infodir="$ac_optarg" ;;
220 -libdir | --libdir | --libdi | --libd)
222 -libdir=* | --libdir=* | --libdi=* | --libd=*)
223 libdir="$ac_optarg" ;;
225 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
226 | --libexe | --libex | --libe)
227 ac_prev=libexecdir ;;
228 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
229 | --libexe=* | --libex=* | --libe=*)
230 libexecdir="$ac_optarg" ;;
232 -localstatedir | --localstatedir | --localstatedi | --localstated \
233 | --localstate | --localstat | --localsta | --localst \
234 | --locals | --local | --loca | --loc | --lo)
235 ac_prev=localstatedir ;;
236 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
237 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
238 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
239 localstatedir="$ac_optarg" ;;
241 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
243 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
244 mandir="$ac_optarg" ;;
247 # Obsolete; use --without-fp.
250 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
254 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
255 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
258 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
259 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
260 | --oldin | --oldi | --old | --ol | --o)
261 ac_prev=oldincludedir ;;
262 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
263 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
264 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
265 oldincludedir="$ac_optarg" ;;
267 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
269 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
270 prefix="$ac_optarg" ;;
272 -program-prefix | --program-prefix | --program-prefi | --program-pref \
273 | --program-pre | --program-pr | --program-p)
274 ac_prev=program_prefix ;;
275 -program-prefix=* | --program-prefix=* | --program-prefi=* \
276 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
277 program_prefix="$ac_optarg" ;;
279 -program-suffix | --program-suffix | --program-suffi | --program-suff \
280 | --program-suf | --program-su | --program-s)
281 ac_prev=program_suffix ;;
282 -program-suffix=* | --program-suffix=* | --program-suffi=* \
283 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
284 program_suffix="$ac_optarg" ;;
286 -program-transform-name | --program-transform-name \
287 | --program-transform-nam | --program-transform-na \
288 | --program-transform-n | --program-transform- \
289 | --program-transform | --program-transfor \
290 | --program-transfo | --program-transf \
291 | --program-trans | --program-tran \
292 | --progr-tra | --program-tr | --program-t)
293 ac_prev=program_transform_name ;;
294 -program-transform-name=* | --program-transform-name=* \
295 | --program-transform-nam=* | --program-transform-na=* \
296 | --program-transform-n=* | --program-transform-=* \
297 | --program-transform=* | --program-transfor=* \
298 | --program-transfo=* | --program-transf=* \
299 | --program-trans=* | --program-tran=* \
300 | --progr-tra=* | --program-tr=* | --program-t=*)
301 program_transform_name="$ac_optarg" ;;
303 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
304 | -silent | --silent | --silen | --sile | --sil)
307 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
309 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
311 sbindir="$ac_optarg" ;;
313 -sharedstatedir | --sharedstatedir | --sharedstatedi \
314 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
315 | --sharedst | --shareds | --shared | --share | --shar \
317 ac_prev=sharedstatedir ;;
318 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
319 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
320 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
322 sharedstatedir="$ac_optarg" ;;
324 -site | --site | --sit)
326 -site=* | --site=* | --sit=*)
329 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
331 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
332 srcdir="$ac_optarg" ;;
334 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
335 | --syscon | --sysco | --sysc | --sys | --sy)
336 ac_prev=sysconfdir ;;
337 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
338 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
339 sysconfdir="$ac_optarg" ;;
341 -target | --target | --targe | --targ | --tar | --ta | --t)
343 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
344 target="$ac_optarg" ;;
346 -v | -verbose | --verbose | --verbos | --verbo | --verb)
349 -version | --version | --versio | --versi | --vers)
350 echo "configure generated by autoconf version 2.14.1"
354 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
355 # Reject names that are not valid shell variable names.
356 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
357 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359 ac_package=`echo $ac_package| sed 's/-/_/g'`
364 eval "with_${ac_package}='$ac_optarg'" ;;
366 -without-* | --without-*)
367 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 ac_package=`echo $ac_package| sed 's/-/_/g'`
373 eval "with_${ac_package}=no" ;;
376 # Obsolete; use --with-x.
379 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
380 | --x-incl | --x-inc | --x-in | --x-i)
381 ac_prev=x_includes ;;
382 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
383 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
384 x_includes="$ac_optarg" ;;
386 -x-libraries | --x-libraries | --x-librarie | --x-librari \
387 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
388 ac_prev=x_libraries ;;
389 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
390 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
391 x_libraries="$ac_optarg" ;;
393 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
397 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
398 echo "configure: warning: $ac_option: invalid host type" 1>&2
400 if test "x$nonopt" != xNONE; then
401 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
409 if test -n "$ac_prev"; then
410 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
413 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
415 # File descriptor usage:
418 # 2 errors and warnings
419 # 3 some systems may open it to /dev/tty
420 # 4 used on the Kubota Titan
421 # 6 checking for... messages and results
422 # 5 compiler messages saved in config.log
423 if test "$silent" = yes; then
431 This file contains any messages produced by compilers while
432 running configure, to aid debugging if configure makes a mistake.
435 # Strip out --no-create and --no-recursion so they do not pile up.
436 # Also quote any args containing shell metacharacters.
441 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
442 | --no-cr | --no-c) ;;
443 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
444 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
445 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
446 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
447 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
452 # Only set these to C if already set. These must not be set unconditionally
453 # because not all systems understand e.g. LANG=C (notably SCO).
454 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
455 # Non-C LC_CTYPE values break the ctype check.
456 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
457 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
458 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
459 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
461 # confdefs.h avoids OS command line length limits that DEFS can exceed.
462 rm -rf conftest* confdefs.h
463 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
466 # A filename unique to this package, relative to the directory that
467 # configure is in, which we can look for to find out if srcdir is correct.
468 ac_unique_file=lisp/gnus.el
470 # Find the source files, if location was not specified.
471 if test -z "$srcdir"; then
472 ac_srcdir_defaulted=yes
473 # Try the directory containing this script, then its parent.
475 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
476 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
478 if test ! -r $srcdir/$ac_unique_file; then
482 ac_srcdir_defaulted=no
484 if test ! -r $srcdir/$ac_unique_file; then
485 if test "$ac_srcdir_defaulted" = yes; then
486 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
488 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
491 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
493 # Prefer explicitly selected file to automatically selected ones.
494 if test -z "$CONFIG_SITE"; then
495 if test "x$prefix" != xNONE; then
496 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
498 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
501 for ac_site_file in $CONFIG_SITE; do
502 if test -r "$ac_site_file"; then
503 echo "loading site script $ac_site_file"
508 if test -r "$cache_file"; then
509 echo "loading cache $cache_file"
510 test -f "$cache_file" && . $cache_file
512 echo "creating cache $cache_file"
517 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
518 ac_cpp='$CPP $CPPFLAGS'
519 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
520 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
521 cross_compiling=$ac_cv_prog_cc_cross
525 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
526 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
527 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
534 ac_n= ac_c='\c' ac_t=
538 echo $ac_n "defining gnus product name... $ac_c"
539 if eval "test \"\${EMACS_cv_GNUS_PRODUCT_NAME+set}\" = set"; then
540 echo $ac_n "(cached) $ac_c" 1>&6
542 EMACS_cv_GNUS_PRODUCT_NAME=t-gnus
545 GNUS_PRODUCT_NAME=${EMACS_cv_GNUS_PRODUCT_NAME}
546 echo "$ac_t""${GNUS_PRODUCT_NAME}" 1>&6
548 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
549 echo "configure:550: checking whether ${MAKE-make} sets \${MAKE}" >&5
550 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
551 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
552 echo $ac_n "(cached) $ac_c" 1>&6
554 cat > conftestmake <<\EOF
556 @echo 'ac_maketemp="${MAKE}"'
558 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
559 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
560 if test -n "$ac_maketemp"; then
561 eval ac_cv_prog_make_${ac_make}_set=yes
563 eval ac_cv_prog_make_${ac_make}_set=no
567 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
568 echo "$ac_t""yes" 1>&6
571 echo "$ac_t""no" 1>&6
572 SET_MAKE="MAKE=${MAKE-make}"
576 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
577 if test -f $ac_dir/install-sh; then
579 ac_install_sh="$ac_aux_dir/install-sh -c"
581 elif test -f $ac_dir/install.sh; then
583 ac_install_sh="$ac_aux_dir/install.sh -c"
587 if test -z "$ac_aux_dir"; then
588 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
590 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
591 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
592 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
594 # Find a good install program. We prefer a C program (faster),
595 # so one script is as good as another. But avoid the broken or
596 # incompatible versions:
597 # SysV /etc/install, /usr/sbin/install
598 # SunOS /usr/etc/install
601 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
602 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
603 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
604 # ./install, which can be erroneously created by make from ./install.sh.
605 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
606 echo "configure:607: checking for a BSD compatible install" >&5
607 if test -z "$INSTALL"; then
608 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
609 echo $ac_n "(cached) $ac_c" 1>&6
611 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
612 for ac_dir in $PATH; do
613 # Account for people who put trailing slashes in PATH elements.
615 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
617 # OSF1 and SCO ODT 3.0 have their own names for install.
618 # Don't use installbsd from OSF since it installs stuff as root
620 for ac_prog in ginstall scoinst install; do
621 if test -f $ac_dir/$ac_prog; then
622 if test $ac_prog = install &&
623 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
624 # AIX install. It has an incompatible calling convention.
626 elif test $ac_prog = install &&
627 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
628 # program-specific install script used by HP pwplus--don't use.
631 ac_cv_path_install="$ac_dir/$ac_prog -c"
642 if test "${ac_cv_path_install+set}" = set; then
643 INSTALL="$ac_cv_path_install"
645 # As a last resort, use the slow shell script. We don't cache a
646 # path for INSTALL within a source directory, because that will
647 # break other packages using the cache if that directory is
648 # removed, or if the path is relative.
649 INSTALL="$ac_install_sh"
652 echo "$ac_t""$INSTALL" 1>&6
654 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
655 # It thinks the first close brace ends the variable substitution.
656 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
658 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
660 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
662 # Extract the first word of "makeinfo", so it can be a program name with args.
663 set dummy makeinfo; ac_word=$2
664 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
665 echo "configure:666: checking for $ac_word" >&5
666 if eval "test \"\${ac_cv_prog_MAKEINFO+set}\" = set"; then
667 echo $ac_n "(cached) $ac_c" 1>&6
669 if test -n "$MAKEINFO"; then
670 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
672 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
674 for ac_dir in $ac_dummy; do
675 test -z "$ac_dir" && ac_dir=.
676 if test -f $ac_dir/$ac_word; then
677 ac_cv_prog_MAKEINFO="makeinfo"
682 test -z "$ac_cv_prog_MAKEINFO" && ac_cv_prog_MAKEINFO="no"
685 MAKEINFO="$ac_cv_prog_MAKEINFO"
686 if test -n "$MAKEINFO"; then
687 echo "$ac_t""$MAKEINFO" 1>&6
689 echo "$ac_t""no" 1>&6
693 test x$EMACS = xt && EMACS=
695 unset ac_cv_prog_EMACS; unset ac_cv_prog_XEMACS;
697 # Check whether --with-emacs or --without-emacs was given.
698 if test "${with_emacs+set}" = set; then
699 withval="$with_emacs"
700 if test x$withval = xyes -o x$withval = x; then
701 for ac_prog in emacs xemacs mule
703 # Extract the first word of "$ac_prog", so it can be a program name with args.
704 set dummy $ac_prog; ac_word=$2
705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
706 echo "configure:707: checking for $ac_word" >&5
707 if eval "test \"\${ac_cv_prog_EMACS+set}\" = set"; then
708 echo $ac_n "(cached) $ac_c" 1>&6
710 if test -n "$EMACS"; then
711 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
715 for ac_dir in $ac_dummy; do
716 test -z "$ac_dir" && ac_dir=.
717 if test -f $ac_dir/$ac_word; then
718 ac_cv_prog_EMACS="$ac_prog"
725 EMACS="$ac_cv_prog_EMACS"
726 if test -n "$EMACS"; then
727 echo "$ac_t""$EMACS" 1>&6
729 echo "$ac_t""no" 1>&6
732 test -n "$EMACS" && break
734 test -n "$EMACS" || EMACS="emacs"
737 # Extract the first word of "$withval", so it can be a program name with args.
738 set dummy $withval; ac_word=$2
739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
740 echo "configure:741: checking for $ac_word" >&5
741 if eval "test \"\${ac_cv_prog_EMACS+set}\" = set"; then
742 echo $ac_n "(cached) $ac_c" 1>&6
744 if test -n "$EMACS"; then
745 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
749 for ac_dir in $ac_dummy; do
750 test -z "$ac_dir" && ac_dir=.
751 if test -f $ac_dir/$ac_word; then
752 ac_cv_prog_EMACS="$withval"
757 test -z "$ac_cv_prog_EMACS" && ac_cv_prog_EMACS="emacs"
760 EMACS="$ac_cv_prog_EMACS"
761 if test -n "$EMACS"; then
762 echo "$ac_t""$EMACS" 1>&6
764 echo "$ac_t""no" 1>&6
770 # Check whether --with-xemacs or --without-xemacs was given.
771 if test "${with_xemacs+set}" = set; then
772 withval="$with_xemacs"
773 if test x$withval = xyes -o x$withval = x; then
774 # Extract the first word of "xemacs", so it can be a program name with args.
775 set dummy xemacs; ac_word=$2
776 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
777 echo "configure:778: checking for $ac_word" >&5
778 if eval "test \"\${ac_cv_prog_XEMACS+set}\" = set"; then
779 echo $ac_n "(cached) $ac_c" 1>&6
781 if test -n "$XEMACS"; then
782 ac_cv_prog_XEMACS="$XEMACS" # Let the user override the test.
784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
786 for ac_dir in $ac_dummy; do
787 test -z "$ac_dir" && ac_dir=.
788 if test -f $ac_dir/$ac_word; then
789 ac_cv_prog_XEMACS="xemacs"
794 test -z "$ac_cv_prog_XEMACS" && ac_cv_prog_XEMACS="xemacs"
797 XEMACS="$ac_cv_prog_XEMACS"
798 if test -n "$XEMACS"; then
799 echo "$ac_t""$XEMACS" 1>&6
801 echo "$ac_t""no" 1>&6
805 # Extract the first word of "$withval", so it can be a program name with args.
806 set dummy $withval; ac_word=$2
807 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
808 echo "configure:809: checking for $ac_word" >&5
809 if eval "test \"\${ac_cv_prog_XEMACS+set}\" = set"; then
810 echo $ac_n "(cached) $ac_c" 1>&6
812 if test -n "$XEMACS"; then
813 ac_cv_prog_XEMACS="$XEMACS" # Let the user override the test.
815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
817 for ac_dir in $ac_dummy; do
818 test -z "$ac_dir" && ac_dir=.
819 if test -f $ac_dir/$ac_word; then
820 ac_cv_prog_XEMACS="$withval"
825 test -z "$ac_cv_prog_XEMACS" && ac_cv_prog_XEMACS="xemacs"
828 XEMACS="$ac_cv_prog_XEMACS"
829 if test -n "$XEMACS"; then
830 echo "$ac_t""$XEMACS" 1>&6
832 echo "$ac_t""no" 1>&6
840 for ac_prog in emacs xemacs mule
842 # Extract the first word of "$ac_prog", so it can be a program name with args.
843 set dummy $ac_prog; ac_word=$2
844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
845 echo "configure:846: checking for $ac_word" >&5
846 if eval "test \"\${ac_cv_prog_EMACS+set}\" = set"; then
847 echo $ac_n "(cached) $ac_c" 1>&6
849 if test -n "$EMACS"; then
850 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
854 for ac_dir in $ac_dummy; do
855 test -z "$ac_dir" && ac_dir=.
856 if test -f $ac_dir/$ac_word; then
857 ac_cv_prog_EMACS="$ac_prog"
864 EMACS="$ac_cv_prog_EMACS"
865 if test -n "$EMACS"; then
866 echo "$ac_t""$EMACS" 1>&6
868 echo "$ac_t""no" 1>&6
871 test -n "$EMACS" && break
873 test -n "$EMACS" || EMACS="emacs"
880 echo $ac_n "checking what a flavor does $EMACS have""... $ac_c" 1>&6
881 echo "configure:882: checking what a flavor does $EMACS have" >&5
883 unset EMACS_cv_SYS_flavor;
886 elisp="(cond ((featurep (quote xemacs)) \"XEmacs\")\
887 ((boundp (quote MULE)) \"MULE\")\
889 if test -z ""noecho""; then
890 echo $ac_n "checking for flavor""... $ac_c" 1>&6
891 echo "configure:892: checking for flavor" >&5
893 if eval "test \"\${EMACS_cv_SYS_flavor+set}\" = set"; then
894 echo $ac_n "(cached) $ac_c" 1>&6
898 echo ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
899 eval ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
900 retval=`cat ${OUTPUT}`
901 echo "=> ${retval}" >& 5 2>&1
903 EMACS_cv_SYS_flavor=$retval
907 flavor=${EMACS_cv_SYS_flavor}
908 if test -z ""noecho""; then
909 echo "$ac_t""$flavor" 1>&6
912 case $EMACS_cv_SYS_flavor in
914 EMACS_FLAVOR=xemacs;;
920 echo "$ac_t""$EMACS_cv_SYS_flavor" 1>&6
921 if test "$prefix" = "NONE"; then
922 echo $ac_n "checking prefix for your Emacs""... $ac_c" 1>&6
923 echo "configure:924: checking prefix for your Emacs" >&5
925 elisp="(expand-file-name \"..\" invocation-directory)"
926 if test -z ""noecho""; then
927 echo $ac_n "checking for prefix""... $ac_c" 1>&6
928 echo "configure:929: checking for prefix" >&5
930 if eval "test \"\${EMACS_cv_SYS_prefix+set}\" = set"; then
931 echo $ac_n "(cached) $ac_c" 1>&6
935 echo ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
936 eval ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
937 retval=`cat ${OUTPUT}`
938 echo "=> ${retval}" >& 5 2>&1
940 EMACS_cv_SYS_prefix=$retval
944 prefix=${EMACS_cv_SYS_prefix}
945 if test -z ""noecho""; then
946 echo "$ac_t""$prefix" 1>&6
949 prefix=${EMACS_cv_SYS_prefix}
950 echo "$ac_t""$prefix" 1>&6
952 # Check whether --with-lispdir or --without-lispdir was given.
953 if test "${with_lispdir+set}" = set; then
954 withval="$with_lispdir"
958 echo $ac_n "checking where lisp files should go""... $ac_c" 1>&6
959 echo "configure:960: checking where lisp files should go" >&5
960 if test -z "$lispdir"; then
962 if test "x$theprefix" = "xNONE"; then
963 theprefix=$ac_default_prefix
965 lispdir="\$(datadir)/${EMACS_FLAVOR}/site-lisp/${GNUS_PRODUCT_NAME}"
966 for thedir in share lib; do
968 if test -d ${theprefix}/${thedir}/${EMACS_FLAVOR}/site-lisp; then
969 lispdir="\$(prefix)/${thedir}/${EMACS_FLAVOR}/site-lisp/${GNUS_PRODUCT_NAME}"
974 if test ${EMACS_FLAVOR} = xemacs; then
975 echo "$ac_t""$lispdir
976 (it will be ignored when \"make install-package[-ja]\" is done)" 1>&6
978 echo "$ac_t""$lispdir" 1>&6
983 echo $ac_n "checking for acceptable W3 version""... $ac_c" 1>&6
984 echo "configure:985: checking for acceptable W3 version" >&5
986 unset EMACS_cv_ACCEPTABLE_W3;
987 unset EMACS_cv_SYS_w3_dir;
988 unset EMACS_cv_SYS_w3_forms;
990 if eval "test \"\${EMACS_cv_ACCEPTABLE_W3+set}\" = set"; then
991 echo $ac_n "(cached) $ac_c" 1>&6
995 if test -z ""noecho""; then
996 echo $ac_n "checking for w3-form-encode-xwfu in w3_forms""... $ac_c" 1>&6
997 echo "configure:998: checking for w3-form-encode-xwfu in w3_forms" >&5
999 library=`echo w3_forms | tr _ -`
1001 elisp="(progn (fmakunbound (quote w3-form-encode-xwfu)) (condition-case nil (progn (require (quote $library)) (fboundp (quote w3-form-encode-xwfu))) (error (prog1 nil (message \"$library not found\")))))"
1002 if test -z ""noecho""; then
1003 echo $ac_n "checking for w3_forms""... $ac_c" 1>&6
1004 echo "configure:1005: checking for w3_forms" >&5
1006 if eval "test \"\${EMACS_cv_SYS_w3_forms+set}\" = set"; then
1007 echo $ac_n "(cached) $ac_c" 1>&6
1010 OUTPUT=./conftest-$$
1011 echo ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1012 eval ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1013 retval=`cat ${OUTPUT}`
1014 echo "=> ${retval}" >& 5 2>&1
1016 EMACS_cv_SYS_w3_forms=$retval
1020 w3_forms=${EMACS_cv_SYS_w3_forms}
1021 if test -z ""noecho""; then
1022 echo "$ac_t""$w3_forms" 1>&6
1025 if test "${EMACS_cv_SYS_w3_forms}" = "nil"; then
1026 EMACS_cv_SYS_w3_forms=no
1028 if test "${EMACS_cv_SYS_w3_forms}" = "t"; then
1029 EMACS_cv_SYS_w3_forms=yes
1031 HAVE_w3_forms=${EMACS_cv_SYS_w3_forms}
1033 if test -z ""noecho""; then
1034 echo "$ac_t""$HAVE_w3_forms" 1>&6
1037 if test "${HAVE_w3_forms}" = "yes"; then
1038 EMACS_cv_ACCEPTABLE_W3=yes
1040 EMACS_cv_ACCEPTABLE_W3=
1043 if test "x${EMACS_cv_ACCEPTABLE_W3}" = "xyes"; then
1045 elisp="(file-name-directory (locate-library \"w3-forms\"))"
1046 if test -z ""noecho""; then
1047 echo $ac_n "checking for w3_dir""... $ac_c" 1>&6
1048 echo "configure:1049: checking for w3_dir" >&5
1050 if eval "test \"\${EMACS_cv_SYS_w3_dir+set}\" = set"; then
1051 echo $ac_n "(cached) $ac_c" 1>&6
1054 OUTPUT=./conftest-$$
1055 echo ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1056 eval ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1057 retval=`cat ${OUTPUT}`
1058 echo "=> ${retval}" >& 5 2>&1
1060 EMACS_cv_SYS_w3_dir=$retval
1064 w3_dir=${EMACS_cv_SYS_w3_dir}
1065 if test -z ""noecho""; then
1066 echo "$ac_t""$w3_dir" 1>&6
1069 EMACS_cv_ACCEPTABLE_W3=$EMACS_cv_SYS_w3_dir
1074 # Check whether --with-w3 or --without-w3 was given.
1075 if test "${with_w3+set}" = set; then
1077 EMACS_cv_ACCEPTABLE_W3=`( cd $withval && pwd || echo "$withval" ) 2> /dev/null`
1080 W3=${EMACS_cv_ACCEPTABLE_W3}
1082 if test "x${EMACS_cv_ACCEPTABLE_W3}" = "x"; then
1083 echo "$ac_t""not found" 1>&6
1085 echo "$ac_t""${W3}" 1>&6
1088 if test ${EMACS_FLAVOR} = xemacs; then
1089 echo $ac_n "checking where the XEmacs package is""... $ac_c" 1>&6
1090 echo "configure:1091: checking where the XEmacs package is" >&5
1091 # Check whether --with-packagedir or --without-packagedir was given.
1092 if test "${with_packagedir+set}" = set; then
1093 withval="$with_packagedir"
1094 if test x$withval != xyes -a x$withval != x; then
1098 elisp="(let (package-dir)\
1099 (if (boundp (quote early-packages))\
1100 (let ((dirs (delq nil (append (if early-package-load-path\
1102 (if late-package-load-path\
1104 (if last-package-load-path\
1106 (while (and dirs (not package-dir))\
1107 (if (file-directory-p (car dirs))\
1108 (setq package-dir (car dirs)\
1109 dirs (cdr dirs))))))\
1110 (or package-dir \"\"))"
1111 if test -z ""noecho""; then
1112 echo $ac_n "checking for PACKAGEDIR""... $ac_c" 1>&6
1113 echo "configure:1114: checking for PACKAGEDIR" >&5
1115 if eval "test \"\${EMACS_cv_SYS_PACKAGEDIR+set}\" = set"; then
1116 echo $ac_n "(cached) $ac_c" 1>&6
1119 OUTPUT=./conftest-$$
1120 echo ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1121 eval ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1122 retval=`cat ${OUTPUT}`
1123 echo "=> ${retval}" >& 5 2>&1
1125 EMACS_cv_SYS_PACKAGEDIR=$retval
1129 PACKAGEDIR=${EMACS_cv_SYS_PACKAGEDIR}
1130 if test -z ""noecho""; then
1131 echo "$ac_t""$PACKAGEDIR" 1>&6
1137 elisp="(let (package-dir)\
1138 (if (boundp (quote early-packages))\
1139 (let ((dirs (delq nil (append (if early-package-load-path\
1141 (if late-package-load-path\
1143 (if last-package-load-path\
1145 (while (and dirs (not package-dir))\
1146 (if (file-directory-p (car dirs))\
1147 (setq package-dir (car dirs)\
1148 dirs (cdr dirs))))))\
1149 (or package-dir \"\"))"
1150 if test -z ""noecho""; then
1151 echo $ac_n "checking for PACKAGEDIR""... $ac_c" 1>&6
1152 echo "configure:1153: checking for PACKAGEDIR" >&5
1154 if eval "test \"\${EMACS_cv_SYS_PACKAGEDIR+set}\" = set"; then
1155 echo $ac_n "(cached) $ac_c" 1>&6
1158 OUTPUT=./conftest-$$
1159 echo ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1160 eval ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1161 retval=`cat ${OUTPUT}`
1162 echo "=> ${retval}" >& 5 2>&1
1164 EMACS_cv_SYS_PACKAGEDIR=$retval
1168 PACKAGEDIR=${EMACS_cv_SYS_PACKAGEDIR}
1169 if test -z ""noecho""; then
1170 echo "$ac_t""$PACKAGEDIR" 1>&6
1175 if test x$PACKAGEDIR = x; then
1176 echo "$ac_t""not found" 1>&6
1178 echo "$ac_t""$PACKAGEDIR" 1>&6
1184 # Check whether --with-addpath or --without-addpath was given.
1185 if test "${with_addpath+set}" = set; then
1186 withval="$with_addpath"
1187 if test x$withval != xyes -a x$withval != x; then
1188 echo $ac_n "checking where to find the additional elisp libraries""... $ac_c" 1>&6
1189 echo "configure:1190: checking where to find the additional elisp libraries" >&5
1190 ADDITIONAL_LOAD_PATH=$withval
1191 echo "$ac_t""$ADDITIONAL_LOAD_PATH" 1>&6
1194 ADDITIONAL_LOAD_PATH=
1199 cat > confcache <<\EOF
1200 # This file is a shell script that caches the results of configure
1201 # tests run on this system so they can be shared between configure
1202 # scripts and configure runs. It is not useful on other systems.
1203 # If it contains results you don't want to keep, you may remove or edit it.
1205 # By default, configure uses ./config.cache as the cache file,
1206 # creating it if it does not exist already. You can give configure
1207 # the --cache-file=FILE option to use a different cache file; that is
1208 # what configure does when it calls configure scripts in
1209 # subdirectories, so they share the cache.
1210 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1211 # config.status only pays attention to the cache file if you give it the
1212 # --recheck option to rerun configure.
1215 # The following way of writing the cache mishandles newlines in values,
1216 # but we know of no workaround that is simple, portable, and efficient.
1217 # So, don't put newlines in cache variables' values.
1218 # Ultrix sh set writes to stderr and can't be redirected directly,
1219 # and sets the high bit in the cache file unless we assign to the vars.
1221 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1223 # `set' does not quote correctly, so add quotes (double-quote substitution
1224 # turns \\\\ into \\, and sed turns \\ into \).
1226 -e "s/'/'\\\\''/g" \
1227 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1230 # `set' quotes correctly as required by POSIX, so do not add quotes.
1231 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1234 if cmp -s $cache_file confcache; then
1237 if test -w $cache_file; then
1238 echo "updating cache $cache_file"
1239 cat confcache > $cache_file
1241 echo "not updating unwritable cache $cache_file"
1246 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1248 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1249 # Let make expand exec_prefix.
1250 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1252 # Any assignment to VPATH causes Sun make to only execute
1253 # the first set of double-colon rules, so remove it if not needed.
1254 # If there is a colon in the path, we need to keep it.
1255 if test "x$srcdir" = x.; then
1256 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1259 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1261 # Transform confdefs.h into DEFS.
1262 # Protect against shell expansion while executing Makefile rules.
1263 # Protect against Makefile macro expansion.
1264 cat > conftest.defs <<\EOF
1265 s%#define \([^ ][^ ]*\) *\(.*\)%-D\1=\2%g
1266 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1271 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1275 # Without the "./", some shells look in PATH for config.status.
1276 : ${CONFIG_STATUS=./config.status}
1278 echo creating $CONFIG_STATUS
1279 rm -f $CONFIG_STATUS
1280 cat > $CONFIG_STATUS <<EOF
1282 # Generated automatically by configure.
1283 # Run this file to recreate the current configuration.
1284 # This directory was configured as follows,
1285 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1287 # $0 $ac_configure_args
1289 # Compiler output produced by configure, useful for debugging
1290 # configure, is in ./config.log if it exists.
1292 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1295 case "\$ac_option" in
1296 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1297 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1298 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1299 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1300 echo "$CONFIG_STATUS generated by autoconf version 2.14.1"
1302 -help | --help | --hel | --he | --h)
1303 echo "\$ac_cs_usage"; exit 0 ;;
1304 *) echo "\$ac_cs_usage"; exit 1 ;;
1308 ac_given_srcdir=$srcdir
1309 ac_given_INSTALL="$INSTALL"
1311 trap 'rm -fr `echo "Makefile lisp/Makefile lisp/dgnuspath.el texi/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1313 cat >> $CONFIG_STATUS <<EOF
1315 # Protect against being on the right side of a sed subst in config.status.
1316 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1317 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1321 s%@CFLAGS@%$CFLAGS%g
1322 s%@CPPFLAGS@%$CPPFLAGS%g
1323 s%@CXXFLAGS@%$CXXFLAGS%g
1324 s%@FFLAGS@%$FFLAGS%g
1326 s%@LDFLAGS@%$LDFLAGS%g
1328 s%@exec_prefix@%$exec_prefix%g
1329 s%@prefix@%$prefix%g
1330 s%@program_transform_name@%$program_transform_name%g
1331 s%@bindir@%$bindir%g
1332 s%@sbindir@%$sbindir%g
1333 s%@libexecdir@%$libexecdir%g
1334 s%@datadir@%$datadir%g
1335 s%@sysconfdir@%$sysconfdir%g
1336 s%@sharedstatedir@%$sharedstatedir%g
1337 s%@localstatedir@%$localstatedir%g
1338 s%@libdir@%$libdir%g
1339 s%@includedir@%$includedir%g
1340 s%@oldincludedir@%$oldincludedir%g
1341 s%@infodir@%$infodir%g
1342 s%@mandir@%$mandir%g
1343 s%@GNUS_PRODUCT_NAME@%$GNUS_PRODUCT_NAME%g
1344 s%@SET_MAKE@%$SET_MAKE%g
1345 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1346 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1347 s%@INSTALL_DATA@%$INSTALL_DATA%g
1348 s%@MAKEINFO@%$MAKEINFO%g
1350 s%@XEMACS@%$XEMACS%g
1351 s%@lispdir@%$lispdir%g
1352 s%@HAVE_w3_forms@%$HAVE_w3_forms%g
1354 s%@PACKAGEDIR@%$PACKAGEDIR%g
1355 s%@ADDITIONAL_LOAD_PATH@%$ADDITIONAL_LOAD_PATH%g
1360 cat >> $CONFIG_STATUS <<\EOF
1362 # Split the substitutions into bite-sized pieces for seds with
1363 # small command number limits, like on Digital OSF/1 and HP-UX.
1364 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1365 ac_file=1 # Number of current file.
1366 ac_beg=1 # First line for current file.
1367 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1370 while $ac_more_lines; do
1371 if test $ac_beg -gt 1; then
1372 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1374 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1376 if test ! -s conftest.s$ac_file; then
1378 rm -f conftest.s$ac_file
1380 if test -z "$ac_sed_cmds"; then
1381 ac_sed_cmds="sed -f conftest.s$ac_file"
1383 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1385 ac_file=`expr $ac_file + 1`
1387 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1390 if test -z "$ac_sed_cmds"; then
1395 cat >> $CONFIG_STATUS <<EOF
1397 CONFIG_FILES=\${CONFIG_FILES-"Makefile lisp/Makefile lisp/dgnuspath.el texi/Makefile"}
1399 cat >> $CONFIG_STATUS <<\EOF
1400 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1401 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1403 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1404 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1405 *) ac_file_in="${ac_file}.in" ;;
1408 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1410 # Remove last slash and all that follows it. Not all systems have dirname.
1411 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1412 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1413 # The file is in a subdirectory.
1414 test ! -d "$ac_dir" && mkdir "$ac_dir"
1415 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1416 # A "../" for each directory in $ac_dir_suffix.
1417 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1419 ac_dir_suffix= ac_dots=
1422 case "$ac_given_srcdir" in
1424 if test -z "$ac_dots"; then top_srcdir=.
1425 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1426 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1428 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1429 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1432 case "$ac_given_INSTALL" in
1433 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1434 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1437 echo creating "$ac_file"
1439 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1441 *Makefile*) ac_comsub="1i\\
1442 # $configure_input" ;;
1446 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1448 s%@configure_input@%$configure_input%g
1449 s%@srcdir@%$srcdir%g
1450 s%@top_srcdir@%$top_srcdir%g
1451 s%@INSTALL@%$INSTALL%g
1452 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1457 cat >> $CONFIG_STATUS <<EOF
1460 cat >> $CONFIG_STATUS <<\EOF
1464 chmod +x $CONFIG_STATUS
1465 rm -fr confdefs* $ac_clean_files
1466 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1