3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-emacs=EMACS compile with EMACS [EMACS=emacs, xemacs...]"
17 --with-lispdir=DIR emacs lisp files go to DIR [guessed]"
19 --with-addpath=PATH search Emacs-Lisp libraries with PATH
20 use colons to separate directory names"
22 --with-xemacs=XEMACS compile with XEMACS [XEMACS=xemacs]"
24 --with-packagedir=DIR package DIR for XEmacs [guessed]"
26 # Initialize some variables set by options.
27 # The variables have the same names as the options, with
28 # dashes changed to underlines.
30 cache_file=./config.cache
39 program_transform_name=s,x,x,
47 bindir='${exec_prefix}/bin'
48 sbindir='${exec_prefix}/sbin'
49 libexecdir='${exec_prefix}/libexec'
50 datadir='${prefix}/share'
51 sysconfdir='${prefix}/etc'
52 sharedstatedir='${prefix}/com'
53 localstatedir='${prefix}/var'
54 libdir='${exec_prefix}/lib'
55 includedir='${prefix}/include'
56 oldincludedir='/usr/include'
57 infodir='${prefix}/info'
58 mandir='${prefix}/man'
60 # Initialize some other variables.
63 SHELL=${CONFIG_SHELL-/bin/sh}
64 # Maximum number of lines to put in a shell here document.
71 # If the previous option needs an argument, assign it.
72 if test -n "$ac_prev"; then
73 eval "$ac_prev=\$ac_option"
79 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
83 # Accept the important Cygnus configure options, so we can diagnose typos.
87 -bindir | --bindir | --bindi | --bind | --bin | --bi)
89 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
90 bindir="$ac_optarg" ;;
92 -build | --build | --buil | --bui | --bu)
94 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
97 -cache-file | --cache-file | --cache-fil | --cache-fi \
98 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
100 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
101 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
102 cache_file="$ac_optarg" ;;
104 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
106 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
108 datadir="$ac_optarg" ;;
110 -disable-* | --disable-*)
111 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
112 # Reject names that are not valid shell variable names.
113 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
114 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
116 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
117 eval "enable_${ac_feature}=no" ;;
119 -enable-* | --enable-*)
120 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
121 # Reject names that are not valid shell variable names.
122 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
123 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130 eval "enable_${ac_feature}='$ac_optarg'" ;;
132 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
133 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
134 | --exec | --exe | --ex)
135 ac_prev=exec_prefix ;;
136 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
137 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
138 | --exec=* | --exe=* | --ex=*)
139 exec_prefix="$ac_optarg" ;;
141 -gas | --gas | --ga | --g)
142 # Obsolete; use --with-gas.
145 -help | --help | --hel | --he)
146 # Omit some internal or obsolete options to make the list less imposing.
147 # This message is too long to be a string in the A/UX 3.1 sh.
149 Usage: configure [options] [host]
150 Options: [defaults in brackets after descriptions]
152 --cache-file=FILE cache test results in FILE
153 --help print this message
154 --no-create do not create output files
155 --quiet, --silent do not print \`checking...' messages
156 --version print the version of autoconf that created configure
157 Directory and file names:
158 --prefix=PREFIX install architecture-independent files in PREFIX
160 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
162 --bindir=DIR user executables in DIR [EPREFIX/bin]
163 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
164 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
165 --datadir=DIR read-only architecture-independent data in DIR
167 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
168 --sharedstatedir=DIR modifiable architecture-independent data in DIR
170 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
171 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
172 --includedir=DIR C header files in DIR [PREFIX/include]
173 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
174 --infodir=DIR info documentation in DIR [PREFIX/info]
175 --mandir=DIR man documentation in DIR [PREFIX/man]
176 --srcdir=DIR find the sources in DIR [configure dir or ..]
177 --program-prefix=PREFIX prepend PREFIX to installed program names
178 --program-suffix=SUFFIX append SUFFIX to installed program names
179 --program-transform-name=PROGRAM
180 run sed PROGRAM on installed program names
184 --build=BUILD configure for building on BUILD [BUILD=HOST]
185 --host=HOST configure for HOST [guessed]
186 --target=TARGET configure for TARGET [TARGET=HOST]
187 Features and packages:
188 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
189 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
190 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
191 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
192 --x-includes=DIR X include files are in DIR
193 --x-libraries=DIR X library files are in DIR
195 if test -n "$ac_help"; then
196 echo "--enable and --with options recognized:$ac_help"
200 -host | --host | --hos | --ho)
202 -host=* | --host=* | --hos=* | --ho=*)
205 -includedir | --includedir | --includedi | --included | --include \
206 | --includ | --inclu | --incl | --inc)
207 ac_prev=includedir ;;
208 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
209 | --includ=* | --inclu=* | --incl=* | --inc=*)
210 includedir="$ac_optarg" ;;
212 -infodir | --infodir | --infodi | --infod | --info | --inf)
214 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
215 infodir="$ac_optarg" ;;
217 -libdir | --libdir | --libdi | --libd)
219 -libdir=* | --libdir=* | --libdi=* | --libd=*)
220 libdir="$ac_optarg" ;;
222 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
223 | --libexe | --libex | --libe)
224 ac_prev=libexecdir ;;
225 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
226 | --libexe=* | --libex=* | --libe=*)
227 libexecdir="$ac_optarg" ;;
229 -localstatedir | --localstatedir | --localstatedi | --localstated \
230 | --localstate | --localstat | --localsta | --localst \
231 | --locals | --local | --loca | --loc | --lo)
232 ac_prev=localstatedir ;;
233 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
234 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
235 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
236 localstatedir="$ac_optarg" ;;
238 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
240 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
241 mandir="$ac_optarg" ;;
244 # Obsolete; use --without-fp.
247 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
251 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
252 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
255 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
256 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
257 | --oldin | --oldi | --old | --ol | --o)
258 ac_prev=oldincludedir ;;
259 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
260 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
261 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
262 oldincludedir="$ac_optarg" ;;
264 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
266 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
267 prefix="$ac_optarg" ;;
269 -program-prefix | --program-prefix | --program-prefi | --program-pref \
270 | --program-pre | --program-pr | --program-p)
271 ac_prev=program_prefix ;;
272 -program-prefix=* | --program-prefix=* | --program-prefi=* \
273 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
274 program_prefix="$ac_optarg" ;;
276 -program-suffix | --program-suffix | --program-suffi | --program-suff \
277 | --program-suf | --program-su | --program-s)
278 ac_prev=program_suffix ;;
279 -program-suffix=* | --program-suffix=* | --program-suffi=* \
280 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
281 program_suffix="$ac_optarg" ;;
283 -program-transform-name | --program-transform-name \
284 | --program-transform-nam | --program-transform-na \
285 | --program-transform-n | --program-transform- \
286 | --program-transform | --program-transfor \
287 | --program-transfo | --program-transf \
288 | --program-trans | --program-tran \
289 | --progr-tra | --program-tr | --program-t)
290 ac_prev=program_transform_name ;;
291 -program-transform-name=* | --program-transform-name=* \
292 | --program-transform-nam=* | --program-transform-na=* \
293 | --program-transform-n=* | --program-transform-=* \
294 | --program-transform=* | --program-transfor=* \
295 | --program-transfo=* | --program-transf=* \
296 | --program-trans=* | --program-tran=* \
297 | --progr-tra=* | --program-tr=* | --program-t=*)
298 program_transform_name="$ac_optarg" ;;
300 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
301 | -silent | --silent | --silen | --sile | --sil)
304 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
306 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
308 sbindir="$ac_optarg" ;;
310 -sharedstatedir | --sharedstatedir | --sharedstatedi \
311 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
312 | --sharedst | --shareds | --shared | --share | --shar \
314 ac_prev=sharedstatedir ;;
315 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
316 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
317 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
319 sharedstatedir="$ac_optarg" ;;
321 -site | --site | --sit)
323 -site=* | --site=* | --sit=*)
326 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
328 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
329 srcdir="$ac_optarg" ;;
331 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
332 | --syscon | --sysco | --sysc | --sys | --sy)
333 ac_prev=sysconfdir ;;
334 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
335 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
336 sysconfdir="$ac_optarg" ;;
338 -target | --target | --targe | --targ | --tar | --ta | --t)
340 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
341 target="$ac_optarg" ;;
343 -v | -verbose | --verbose | --verbos | --verbo | --verb)
346 -version | --version | --versio | --versi | --vers)
347 echo "configure generated by autoconf version 2.13"
351 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
352 # Reject names that are not valid shell variable names.
353 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
354 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
356 ac_package=`echo $ac_package| sed 's/-/_/g'`
361 eval "with_${ac_package}='$ac_optarg'" ;;
363 -without-* | --without-*)
364 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
365 # Reject names that are not valid shell variable names.
366 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
367 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369 ac_package=`echo $ac_package| sed 's/-/_/g'`
370 eval "with_${ac_package}=no" ;;
373 # Obsolete; use --with-x.
376 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
377 | --x-incl | --x-inc | --x-in | --x-i)
378 ac_prev=x_includes ;;
379 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
380 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
381 x_includes="$ac_optarg" ;;
383 -x-libraries | --x-libraries | --x-librarie | --x-librari \
384 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
385 ac_prev=x_libraries ;;
386 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
387 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
388 x_libraries="$ac_optarg" ;;
390 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
394 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
395 echo "configure: warning: $ac_option: invalid host type" 1>&2
397 if test "x$nonopt" != xNONE; then
398 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
406 if test -n "$ac_prev"; then
407 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
410 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
412 # File descriptor usage:
415 # 2 errors and warnings
416 # 3 some systems may open it to /dev/tty
417 # 4 used on the Kubota Titan
418 # 6 checking for... messages and results
419 # 5 compiler messages saved in config.log
420 if test "$silent" = yes; then
428 This file contains any messages produced by compilers while
429 running configure, to aid debugging if configure makes a mistake.
432 # Strip out --no-create and --no-recursion so they do not pile up.
433 # Also quote any args containing shell metacharacters.
438 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
439 | --no-cr | --no-c) ;;
440 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
441 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
442 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
443 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
444 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
449 # Only set these to C if already set. These must not be set unconditionally
450 # because not all systems understand e.g. LANG=C (notably SCO).
451 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
452 # Non-C LC_CTYPE values break the ctype check.
453 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
454 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
455 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
456 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
458 # confdefs.h avoids OS command line length limits that DEFS can exceed.
459 rm -rf conftest* confdefs.h
460 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
463 # A filename unique to this package, relative to the directory that
464 # configure is in, which we can look for to find out if srcdir is correct.
465 ac_unique_file=lisp/gnus.el
467 # Find the source files, if location was not specified.
468 if test -z "$srcdir"; then
469 ac_srcdir_defaulted=yes
470 # Try the directory containing this script, then its parent.
472 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
473 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
475 if test ! -r $srcdir/$ac_unique_file; then
479 ac_srcdir_defaulted=no
481 if test ! -r $srcdir/$ac_unique_file; then
482 if test "$ac_srcdir_defaulted" = yes; then
483 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
485 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
488 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
490 # Prefer explicitly selected file to automatically selected ones.
491 if test -z "$CONFIG_SITE"; then
492 if test "x$prefix" != xNONE; then
493 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
495 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
498 for ac_site_file in $CONFIG_SITE; do
499 if test -r "$ac_site_file"; then
500 echo "loading site script $ac_site_file"
505 if test -r "$cache_file"; then
506 echo "loading cache $cache_file"
509 echo "creating cache $cache_file"
514 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
515 ac_cpp='$CPP $CPPFLAGS'
516 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
517 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
518 cross_compiling=$ac_cv_prog_cc_cross
522 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
523 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
524 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
531 ac_n= ac_c='\c' ac_t=
535 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
536 echo "configure:537: checking whether ${MAKE-make} sets \${MAKE}" >&5
537 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
538 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
539 echo $ac_n "(cached) $ac_c" 1>&6
541 cat > conftestmake <<\EOF
543 @echo 'ac_maketemp="${MAKE}"'
545 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
546 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
547 if test -n "$ac_maketemp"; then
548 eval ac_cv_prog_make_${ac_make}_set=yes
550 eval ac_cv_prog_make_${ac_make}_set=no
554 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
555 echo "$ac_t""yes" 1>&6
558 echo "$ac_t""no" 1>&6
559 SET_MAKE="MAKE=${MAKE-make}"
563 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
564 if test -f $ac_dir/install-sh; then
566 ac_install_sh="$ac_aux_dir/install-sh -c"
568 elif test -f $ac_dir/install.sh; then
570 ac_install_sh="$ac_aux_dir/install.sh -c"
574 if test -z "$ac_aux_dir"; then
575 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
577 ac_config_guess=$ac_aux_dir/config.guess
578 ac_config_sub=$ac_aux_dir/config.sub
579 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
581 # Find a good install program. We prefer a C program (faster),
582 # so one script is as good as another. But avoid the broken or
583 # incompatible versions:
584 # SysV /etc/install, /usr/sbin/install
585 # SunOS /usr/etc/install
588 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
589 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
590 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
591 # ./install, which can be erroneously created by make from ./install.sh.
592 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
593 echo "configure:594: checking for a BSD compatible install" >&5
594 if test -z "$INSTALL"; then
595 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
596 echo $ac_n "(cached) $ac_c" 1>&6
598 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
599 for ac_dir in $PATH; do
600 # Account for people who put trailing slashes in PATH elements.
602 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
604 # OSF1 and SCO ODT 3.0 have their own names for install.
605 # Don't use installbsd from OSF since it installs stuff as root
607 for ac_prog in ginstall scoinst install; do
608 if test -f $ac_dir/$ac_prog; then
609 if test $ac_prog = install &&
610 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
611 # AIX install. It has an incompatible calling convention.
614 ac_cv_path_install="$ac_dir/$ac_prog -c"
625 if test "${ac_cv_path_install+set}" = set; then
626 INSTALL="$ac_cv_path_install"
628 # As a last resort, use the slow shell script. We don't cache a
629 # path for INSTALL within a source directory, because that will
630 # break other packages using the cache if that directory is
631 # removed, or if the path is relative.
632 INSTALL="$ac_install_sh"
635 echo "$ac_t""$INSTALL" 1>&6
637 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
638 # It thinks the first close brace ends the variable substitution.
639 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
641 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
643 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
645 # Check whether --with-emacs or --without-emacs was given.
646 if test "${with_emacs+set}" = set; then
647 withval="$with_emacs"
650 no) { echo "configure: error: emacs is not available" 1>&2; exit 1; } ;;
651 *) EMACS=${withval} ;;
657 if test "x$EMACS" = "xt" -o "x$EMACS" = x; then
658 for ac_prog in emacs xemacs mule
660 # Extract the first word of "$ac_prog", so it can be a program name with args.
661 set dummy $ac_prog; ac_word=$2
662 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
663 echo "configure:664: checking for $ac_word" >&5
664 if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then
665 echo $ac_n "(cached) $ac_c" 1>&6
669 ac_cv_path_EMACS="$EMACS" # Let the user override the test with a path.
672 ac_cv_path_EMACS="$EMACS" # Let the user override the test with a dos path.
675 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
677 for ac_dir in $ac_dummy; do
678 test -z "$ac_dir" && ac_dir=.
679 if test -f $ac_dir/$ac_word; then
680 ac_cv_path_EMACS="$ac_dir/$ac_word"
688 EMACS="$ac_cv_path_EMACS"
689 if test -n "$EMACS"; then
690 echo "$ac_t""$EMACS" 1>&6
692 echo "$ac_t""no" 1>&6
695 test -n "$EMACS" && break
697 test -n "$EMACS" || EMACS="no"
699 if test $EMACS = no; then
700 { echo "configure: error: you should install Emacs first" 1>&2; exit 1; }
703 echo $ac_n "checking where emacs files are in""... $ac_c" 1>&6
704 echo "configure:705: checking where emacs files are in" >&5
705 EMACS_BASENAME="`echo x$EMACS | sed -e 's/x//' -e 's/^.*\///'`"
706 if test "x$emacsdir" = x; then
707 if test "x$prefix" = "xNONE"; then
708 prefix=$ac_default_prefix
710 emacsdir="\$(datadir)/emacs"
711 case "$EMACS_BASENAME" in
713 if test -d $prefix/lib/emacs; then
714 emacsdir="$prefix/lib/emacs"
716 if test -d $prefix/share/emacs; then
717 emacsdir="$prefix/share/emacs"
721 if test -d $prefix/lib/xemacs; then
722 emacsdir="$prefix/lib/xemacs"
724 if test -d $prefix/share/xemacs; then
725 emacsdir="$prefix/share/xemacs"
729 if test -d $prefix/lib/emacs; then
730 emacsdir="$prefix/lib/emacs"
732 if test -d $prefix/share/emacs; then
733 emacsdir="$prefix/share/emacs"
735 if test -d $prefix/lib/mule; then
736 emacsdir="$prefix/lib/mule"
738 if test -d $prefix/share/mule; then
739 emacsdir="$prefix/share/mule"
744 echo "$ac_t""$emacsdir" 1>&6
746 # Check whether --with-lispdir or --without-lispdir was given.
747 if test "${with_lispdir+set}" = set; then
748 withval="$with_lispdir"
751 no) { echo "configure: error: lispdir is not available" 1>&2; exit 1; } ;;
752 *) lispdir=${withval} ;;
758 echo $ac_n "checking where .elc files should go""... $ac_c" 1>&6
759 echo "configure:760: checking where .elc files should go" >&5
760 if test "x$lispdir" = x; then
761 lispdir="$emacsdir/site-lisp"
762 if test -d $emacsdir/lisp; then
763 lispdir="$emacsdir/lisp"
765 case "$EMACS_BASENAME" in
767 lispdir="$lispdir/tgnus"
771 echo "$ac_t""$lispdir" 1>&6
773 # Extract the first word of "makeinfo", so it can be a program name with args.
774 set dummy makeinfo; ac_word=$2
775 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
776 echo "configure:777: checking for $ac_word" >&5
777 if eval "test \"`echo '$''{'ac_cv_path_MAKEINFO'+set}'`\" = set"; then
778 echo $ac_n "(cached) $ac_c" 1>&6
782 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
785 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a dos path.
788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
790 for ac_dir in $ac_dummy; do
791 test -z "$ac_dir" && ac_dir=.
792 if test -f $ac_dir/$ac_word; then
793 ac_cv_path_MAKEINFO="$ac_dir/$ac_word"
798 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
802 MAKEINFO="$ac_cv_path_MAKEINFO"
803 if test -n "$MAKEINFO"; then
804 echo "$ac_t""$MAKEINFO" 1>&6
806 echo "$ac_t""no" 1>&6
810 ADDITIONAL_LOAD_PATH=
811 # Check whether --with-addpath or --without-addpath was given.
812 if test "${with_addpath+set}" = set; then
813 withval="$with_addpath"
814 ADDITIONAL_LOAD_PATH=$with_addpath
820 # Check whether --with-xemacs or --without-xemacs was given.
821 if test "${with_xemacs+set}" = set; then
822 withval="$with_xemacs"
829 # Check whether --with-packagedir or --without-packagedir was given.
830 if test "${with_packagedir+set}" = set; then
831 withval="$with_packagedir"
832 PACKAGEDIR=$with_packagedir
838 cat > confcache <<\EOF
839 # This file is a shell script that caches the results of configure
840 # tests run on this system so they can be shared between configure
841 # scripts and configure runs. It is not useful on other systems.
842 # If it contains results you don't want to keep, you may remove or edit it.
844 # By default, configure uses ./config.cache as the cache file,
845 # creating it if it does not exist already. You can give configure
846 # the --cache-file=FILE option to use a different cache file; that is
847 # what configure does when it calls configure scripts in
848 # subdirectories, so they share the cache.
849 # Giving --cache-file=/dev/null disables caching, for debugging configure.
850 # config.status only pays attention to the cache file if you give it the
851 # --recheck option to rerun configure.
854 # The following way of writing the cache mishandles newlines in values,
855 # but we know of no workaround that is simple, portable, and efficient.
856 # So, don't put newlines in cache variables' values.
857 # Ultrix sh set writes to stderr and can't be redirected directly,
858 # and sets the high bit in the cache file unless we assign to the vars.
860 case `(ac_space=' '; set | grep ac_space) 2>&1` in
862 # `set' does not quote correctly, so add quotes (double-quote substitution
863 # turns \\\\ into \\, and sed turns \\ into \).
866 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
869 # `set' quotes correctly as required by POSIX, so do not add quotes.
870 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
873 if cmp -s $cache_file confcache; then
876 if test -w $cache_file; then
877 echo "updating cache $cache_file"
878 cat confcache > $cache_file
880 echo "not updating unwritable cache $cache_file"
885 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
887 test "x$prefix" = xNONE && prefix=$ac_default_prefix
888 # Let make expand exec_prefix.
889 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
891 # Any assignment to VPATH causes Sun make to only execute
892 # the first set of double-colon rules, so remove it if not needed.
893 # If there is a colon in the path, we need to keep it.
894 if test "x$srcdir" = x.; then
895 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
898 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
900 # Transform confdefs.h into DEFS.
901 # Protect against shell expansion while executing Makefile rules.
902 # Protect against Makefile macro expansion.
903 cat > conftest.defs <<\EOF
904 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
905 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
910 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
914 # Without the "./", some shells look in PATH for config.status.
915 : ${CONFIG_STATUS=./config.status}
917 echo creating $CONFIG_STATUS
919 cat > $CONFIG_STATUS <<EOF
921 # Generated automatically by configure.
922 # Run this file to recreate the current configuration.
923 # This directory was configured as follows,
924 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
926 # $0 $ac_configure_args
928 # Compiler output produced by configure, useful for debugging
929 # configure, is in ./config.log if it exists.
931 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
934 case "\$ac_option" in
935 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
936 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
937 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
938 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
939 echo "$CONFIG_STATUS generated by autoconf version 2.13"
941 -help | --help | --hel | --he | --h)
942 echo "\$ac_cs_usage"; exit 0 ;;
943 *) echo "\$ac_cs_usage"; exit 1 ;;
947 ac_given_srcdir=$srcdir
948 ac_given_INSTALL="$INSTALL"
950 trap 'rm -fr `echo "Makefile lisp/Makefile lisp/dgnuspath.el texi/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
952 cat >> $CONFIG_STATUS <<EOF
954 # Protect against being on the right side of a sed subst in config.status.
955 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
956 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
961 s%@CPPFLAGS@%$CPPFLAGS%g
962 s%@CXXFLAGS@%$CXXFLAGS%g
965 s%@LDFLAGS@%$LDFLAGS%g
967 s%@exec_prefix@%$exec_prefix%g
969 s%@program_transform_name@%$program_transform_name%g
971 s%@sbindir@%$sbindir%g
972 s%@libexecdir@%$libexecdir%g
973 s%@datadir@%$datadir%g
974 s%@sysconfdir@%$sysconfdir%g
975 s%@sharedstatedir@%$sharedstatedir%g
976 s%@localstatedir@%$localstatedir%g
978 s%@includedir@%$includedir%g
979 s%@oldincludedir@%$oldincludedir%g
980 s%@infodir@%$infodir%g
982 s%@SET_MAKE@%$SET_MAKE%g
983 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
984 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
985 s%@INSTALL_DATA@%$INSTALL_DATA%g
987 s%@emacsdir@%$emacsdir%g
988 s%@lispdir@%$lispdir%g
989 s%@MAKEINFO@%$MAKEINFO%g
990 s%@ADDITIONAL_LOAD_PATH@%$ADDITIONAL_LOAD_PATH%g
992 s%@PACKAGEDIR@%$PACKAGEDIR%g
997 cat >> $CONFIG_STATUS <<\EOF
999 # Split the substitutions into bite-sized pieces for seds with
1000 # small command number limits, like on Digital OSF/1 and HP-UX.
1001 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1002 ac_file=1 # Number of current file.
1003 ac_beg=1 # First line for current file.
1004 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1007 while $ac_more_lines; do
1008 if test $ac_beg -gt 1; then
1009 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1011 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1013 if test ! -s conftest.s$ac_file; then
1015 rm -f conftest.s$ac_file
1017 if test -z "$ac_sed_cmds"; then
1018 ac_sed_cmds="sed -f conftest.s$ac_file"
1020 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1022 ac_file=`expr $ac_file + 1`
1024 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1027 if test -z "$ac_sed_cmds"; then
1032 cat >> $CONFIG_STATUS <<EOF
1034 CONFIG_FILES=\${CONFIG_FILES-"Makefile lisp/Makefile lisp/dgnuspath.el texi/Makefile"}
1036 cat >> $CONFIG_STATUS <<\EOF
1037 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1038 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1040 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1041 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1042 *) ac_file_in="${ac_file}.in" ;;
1045 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1047 # Remove last slash and all that follows it. Not all systems have dirname.
1048 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1049 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1050 # The file is in a subdirectory.
1051 test ! -d "$ac_dir" && mkdir "$ac_dir"
1052 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1053 # A "../" for each directory in $ac_dir_suffix.
1054 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1056 ac_dir_suffix= ac_dots=
1059 case "$ac_given_srcdir" in
1061 if test -z "$ac_dots"; then top_srcdir=.
1062 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1063 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1065 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1066 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1069 case "$ac_given_INSTALL" in
1070 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1071 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1074 echo creating "$ac_file"
1076 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1078 *Makefile*) ac_comsub="1i\\
1079 # $configure_input" ;;
1083 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1085 s%@configure_input@%$configure_input%g
1086 s%@srcdir@%$srcdir%g
1087 s%@top_srcdir@%$top_srcdir%g
1088 s%@INSTALL@%$INSTALL%g
1089 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1094 cat >> $CONFIG_STATUS <<EOF
1097 cat >> $CONFIG_STATUS <<\EOF
1101 chmod +x $CONFIG_STATUS
1102 rm -fr confdefs* $ac_clean_files
1103 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1