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-etcdir=DIR Where to install etc files"
24 --with-url=DIR Specify where to find the url package"
26 --with-w3=DIR Specify where to find the w3 package"
28 --with-fonts Assume all fonts required are available"
30 --with-packagedir=DIR package DIR for XEmacs"
32 --with-addpath=PATH search Emacs-Lisp libraries with PATH
33 use colons to separate directory names"
35 # Initialize some variables set by options.
36 # The variables have the same names as the options, with
37 # dashes changed to underlines.
39 cache_file=./config.cache
48 program_transform_name=s,x,x,
56 bindir='${exec_prefix}/bin'
57 sbindir='${exec_prefix}/sbin'
58 libexecdir='${exec_prefix}/libexec'
59 datadir='${prefix}/share'
60 sysconfdir='${prefix}/etc'
61 sharedstatedir='${prefix}/com'
62 localstatedir='${prefix}/var'
63 libdir='${exec_prefix}/lib'
64 includedir='${prefix}/include'
65 oldincludedir='/usr/include'
66 infodir='${prefix}/info'
67 mandir='${prefix}/man'
69 # Initialize some other variables.
72 SHELL=${CONFIG_SHELL-/bin/sh}
73 # Maximum number of lines to put in a shell here document.
80 # If the previous option needs an argument, assign it.
81 if test -n "$ac_prev"; then
82 eval "$ac_prev=\$ac_option"
88 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
92 # Accept the important Cygnus configure options, so we can diagnose typos.
96 -bindir | --bindir | --bindi | --bind | --bin | --bi)
98 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
99 bindir="$ac_optarg" ;;
101 -build | --build | --buil | --bui | --bu)
103 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
104 build="$ac_optarg" ;;
106 -cache-file | --cache-file | --cache-fil | --cache-fi \
107 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
108 ac_prev=cache_file ;;
109 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
110 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
111 cache_file="$ac_optarg" ;;
113 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
115 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
117 datadir="$ac_optarg" ;;
119 -disable-* | --disable-*)
120 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
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'`
126 eval "enable_${ac_feature}=no" ;;
128 -enable-* | --enable-*)
129 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
130 # Reject names that are not valid shell variable names.
131 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
139 eval "enable_${ac_feature}='$ac_optarg'" ;;
141 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
142 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
143 | --exec | --exe | --ex)
144 ac_prev=exec_prefix ;;
145 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
146 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
147 | --exec=* | --exe=* | --ex=*)
148 exec_prefix="$ac_optarg" ;;
150 -gas | --gas | --ga | --g)
151 # Obsolete; use --with-gas.
154 -help | --help | --hel | --he)
155 # Omit some internal or obsolete options to make the list less imposing.
156 # This message is too long to be a string in the A/UX 3.1 sh.
158 Usage: configure [options] [host]
159 Options: [defaults in brackets after descriptions]
161 --cache-file=FILE cache test results in FILE
162 --help print this message
163 --no-create do not create output files
164 --quiet, --silent do not print \`checking...' messages
165 --version print the version of autoconf that created configure
166 Directory and file names:
167 --prefix=PREFIX install architecture-independent files in PREFIX
169 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
171 --bindir=DIR user executables in DIR [EPREFIX/bin]
172 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
173 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
174 --datadir=DIR read-only architecture-independent data in DIR
176 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
177 --sharedstatedir=DIR modifiable architecture-independent data in DIR
179 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
180 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
181 --includedir=DIR C header files in DIR [PREFIX/include]
182 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
183 --infodir=DIR info documentation in DIR [PREFIX/info]
184 --mandir=DIR man documentation in DIR [PREFIX/man]
185 --srcdir=DIR find the sources in DIR [configure dir or ..]
186 --program-prefix=PREFIX prepend PREFIX to installed program names
187 --program-suffix=SUFFIX append SUFFIX to installed program names
188 --program-transform-name=PROGRAM
189 run sed PROGRAM on installed program names
193 --build=BUILD configure for building on BUILD [BUILD=HOST]
194 --host=HOST configure for HOST [guessed]
195 --target=TARGET configure for TARGET [TARGET=HOST]
196 Features and packages:
197 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
198 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
199 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
200 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
201 --x-includes=DIR X include files are in DIR
202 --x-libraries=DIR X library files are in DIR
204 if test -n "$ac_help"; then
205 echo "--enable and --with options recognized:$ac_help"
209 -host | --host | --hos | --ho)
211 -host=* | --host=* | --hos=* | --ho=*)
214 -includedir | --includedir | --includedi | --included | --include \
215 | --includ | --inclu | --incl | --inc)
216 ac_prev=includedir ;;
217 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
218 | --includ=* | --inclu=* | --incl=* | --inc=*)
219 includedir="$ac_optarg" ;;
221 -infodir | --infodir | --infodi | --infod | --info | --inf)
223 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
224 infodir="$ac_optarg" ;;
226 -libdir | --libdir | --libdi | --libd)
228 -libdir=* | --libdir=* | --libdi=* | --libd=*)
229 libdir="$ac_optarg" ;;
231 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
232 | --libexe | --libex | --libe)
233 ac_prev=libexecdir ;;
234 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
235 | --libexe=* | --libex=* | --libe=*)
236 libexecdir="$ac_optarg" ;;
238 -localstatedir | --localstatedir | --localstatedi | --localstated \
239 | --localstate | --localstat | --localsta | --localst \
240 | --locals | --local | --loca | --loc | --lo)
241 ac_prev=localstatedir ;;
242 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
243 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
244 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
245 localstatedir="$ac_optarg" ;;
247 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
249 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
250 mandir="$ac_optarg" ;;
253 # Obsolete; use --without-fp.
256 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
260 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
261 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
264 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
265 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
266 | --oldin | --oldi | --old | --ol | --o)
267 ac_prev=oldincludedir ;;
268 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
269 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
270 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
271 oldincludedir="$ac_optarg" ;;
273 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
275 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
276 prefix="$ac_optarg" ;;
278 -program-prefix | --program-prefix | --program-prefi | --program-pref \
279 | --program-pre | --program-pr | --program-p)
280 ac_prev=program_prefix ;;
281 -program-prefix=* | --program-prefix=* | --program-prefi=* \
282 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
283 program_prefix="$ac_optarg" ;;
285 -program-suffix | --program-suffix | --program-suffi | --program-suff \
286 | --program-suf | --program-su | --program-s)
287 ac_prev=program_suffix ;;
288 -program-suffix=* | --program-suffix=* | --program-suffi=* \
289 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
290 program_suffix="$ac_optarg" ;;
292 -program-transform-name | --program-transform-name \
293 | --program-transform-nam | --program-transform-na \
294 | --program-transform-n | --program-transform- \
295 | --program-transform | --program-transfor \
296 | --program-transfo | --program-transf \
297 | --program-trans | --program-tran \
298 | --progr-tra | --program-tr | --program-t)
299 ac_prev=program_transform_name ;;
300 -program-transform-name=* | --program-transform-name=* \
301 | --program-transform-nam=* | --program-transform-na=* \
302 | --program-transform-n=* | --program-transform-=* \
303 | --program-transform=* | --program-transfor=* \
304 | --program-transfo=* | --program-transf=* \
305 | --program-trans=* | --program-tran=* \
306 | --progr-tra=* | --program-tr=* | --program-t=*)
307 program_transform_name="$ac_optarg" ;;
309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
310 | -silent | --silent | --silen | --sile | --sil)
313 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
315 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
317 sbindir="$ac_optarg" ;;
319 -sharedstatedir | --sharedstatedir | --sharedstatedi \
320 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
321 | --sharedst | --shareds | --shared | --share | --shar \
323 ac_prev=sharedstatedir ;;
324 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
325 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
326 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
328 sharedstatedir="$ac_optarg" ;;
330 -site | --site | --sit)
332 -site=* | --site=* | --sit=*)
335 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
337 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
338 srcdir="$ac_optarg" ;;
340 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
341 | --syscon | --sysco | --sysc | --sys | --sy)
342 ac_prev=sysconfdir ;;
343 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
344 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
345 sysconfdir="$ac_optarg" ;;
347 -target | --target | --targe | --targ | --tar | --ta | --t)
349 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
350 target="$ac_optarg" ;;
352 -v | -verbose | --verbose | --verbos | --verbo | --verb)
355 -version | --version | --versio | --versi | --vers)
356 echo "configure generated by autoconf version 2.14.1"
360 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365 ac_package=`echo $ac_package| sed 's/-/_/g'`
370 eval "with_${ac_package}='$ac_optarg'" ;;
372 -without-* | --without-*)
373 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
374 # Reject names that are not valid shell variable names.
375 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
376 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
378 ac_package=`echo $ac_package| sed 's/-/_/g'`
379 eval "with_${ac_package}=no" ;;
382 # Obsolete; use --with-x.
385 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
386 | --x-incl | --x-inc | --x-in | --x-i)
387 ac_prev=x_includes ;;
388 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
389 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
390 x_includes="$ac_optarg" ;;
392 -x-libraries | --x-libraries | --x-librarie | --x-librari \
393 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
394 ac_prev=x_libraries ;;
395 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
396 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
397 x_libraries="$ac_optarg" ;;
399 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
403 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
404 echo "configure: warning: $ac_option: invalid host type" 1>&2
406 if test "x$nonopt" != xNONE; then
407 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
415 if test -n "$ac_prev"; then
416 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
419 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
421 # File descriptor usage:
424 # 2 errors and warnings
425 # 3 some systems may open it to /dev/tty
426 # 4 used on the Kubota Titan
427 # 6 checking for... messages and results
428 # 5 compiler messages saved in config.log
429 if test "$silent" = yes; then
437 This file contains any messages produced by compilers while
438 running configure, to aid debugging if configure makes a mistake.
441 # Strip out --no-create and --no-recursion so they do not pile up.
442 # Also quote any args containing shell metacharacters.
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448 | --no-cr | --no-c) ;;
449 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
450 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
451 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
452 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
453 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
458 # Only set these to C if already set. These must not be set unconditionally
459 # because not all systems understand e.g. LANG=C (notably SCO).
460 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
461 # Non-C LC_CTYPE values break the ctype check.
462 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
463 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
464 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
465 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
467 # confdefs.h avoids OS command line length limits that DEFS can exceed.
468 rm -rf conftest* confdefs.h
469 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
472 # A filename unique to this package, relative to the directory that
473 # configure is in, which we can look for to find out if srcdir is correct.
474 ac_unique_file=lisp/gnus.el
476 # Find the source files, if location was not specified.
477 if test -z "$srcdir"; then
478 ac_srcdir_defaulted=yes
479 # Try the directory containing this script, then its parent.
481 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
482 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
484 if test ! -r $srcdir/$ac_unique_file; then
488 ac_srcdir_defaulted=no
490 if test ! -r $srcdir/$ac_unique_file; then
491 if test "$ac_srcdir_defaulted" = yes; then
492 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
494 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
497 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
499 # Prefer explicitly selected file to automatically selected ones.
500 if test -z "$CONFIG_SITE"; then
501 if test "x$prefix" != xNONE; then
502 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
504 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
507 for ac_site_file in $CONFIG_SITE; do
508 if test -r "$ac_site_file"; then
509 echo "loading site script $ac_site_file"
514 if test -r "$cache_file"; then
515 echo "loading cache $cache_file"
516 test -f "$cache_file" && . $cache_file
518 echo "creating cache $cache_file"
523 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
524 ac_cpp='$CPP $CPPFLAGS'
525 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
526 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
527 cross_compiling=$ac_cv_prog_cc_cross
531 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
532 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
533 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
540 ac_n= ac_c='\c' ac_t=
544 echo $ac_n "defining gnus product name... $ac_c"
545 if eval "test \"\${EMACS_cv_GNUS_PRODUCT_NAME+set}\" = set"; then
546 echo $ac_n "(cached) $ac_c" 1>&6
548 EMACS_cv_GNUS_PRODUCT_NAME=t-gnus
551 GNUS_PRODUCT_NAME=${EMACS_cv_GNUS_PRODUCT_NAME}
552 echo "$ac_t""${GNUS_PRODUCT_NAME}" 1>&6
554 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
555 echo "configure:556: checking whether ${MAKE-make} sets \${MAKE}" >&5
556 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
557 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
558 echo $ac_n "(cached) $ac_c" 1>&6
560 cat > conftestmake <<\EOF
562 @echo 'ac_maketemp="${MAKE}"'
564 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
565 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
566 if test -n "$ac_maketemp"; then
567 eval ac_cv_prog_make_${ac_make}_set=yes
569 eval ac_cv_prog_make_${ac_make}_set=no
573 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
574 echo "$ac_t""yes" 1>&6
577 echo "$ac_t""no" 1>&6
578 SET_MAKE="MAKE=${MAKE-make}"
582 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
583 if test -f $ac_dir/install-sh; then
585 ac_install_sh="$ac_aux_dir/install-sh -c"
587 elif test -f $ac_dir/install.sh; then
589 ac_install_sh="$ac_aux_dir/install.sh -c"
593 if test -z "$ac_aux_dir"; then
594 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
596 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
597 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
598 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
600 # Find a good install program. We prefer a C program (faster),
601 # so one script is as good as another. But avoid the broken or
602 # incompatible versions:
603 # SysV /etc/install, /usr/sbin/install
604 # SunOS /usr/etc/install
607 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
608 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
609 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
610 # ./install, which can be erroneously created by make from ./install.sh.
611 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
612 echo "configure:613: checking for a BSD compatible install" >&5
613 if test -z "$INSTALL"; then
614 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
615 echo $ac_n "(cached) $ac_c" 1>&6
617 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
618 for ac_dir in $PATH; do
619 # Account for people who put trailing slashes in PATH elements.
621 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
623 # OSF1 and SCO ODT 3.0 have their own names for install.
624 # Don't use installbsd from OSF since it installs stuff as root
626 for ac_prog in ginstall scoinst install; do
627 if test -f $ac_dir/$ac_prog; then
628 if test $ac_prog = install &&
629 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
630 # AIX install. It has an incompatible calling convention.
632 elif test $ac_prog = install &&
633 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
634 # program-specific install script used by HP pwplus--don't use.
637 ac_cv_path_install="$ac_dir/$ac_prog -c"
648 if test "${ac_cv_path_install+set}" = set; then
649 INSTALL="$ac_cv_path_install"
651 # As a last resort, use the slow shell script. We don't cache a
652 # path for INSTALL within a source directory, because that will
653 # break other packages using the cache if that directory is
654 # removed, or if the path is relative.
655 INSTALL="$ac_install_sh"
658 echo "$ac_t""$INSTALL" 1>&6
660 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
661 # It thinks the first close brace ends the variable substitution.
662 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
664 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
666 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
668 # Extract the first word of "makeinfo", so it can be a program name with args.
669 set dummy makeinfo; ac_word=$2
670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
671 echo "configure:672: checking for $ac_word" >&5
672 if eval "test \"\${ac_cv_prog_MAKEINFO+set}\" = set"; then
673 echo $ac_n "(cached) $ac_c" 1>&6
675 if test -n "$MAKEINFO"; then
676 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
678 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
680 for ac_dir in $ac_dummy; do
681 test -z "$ac_dir" && ac_dir=.
682 if test -f $ac_dir/$ac_word; then
683 ac_cv_prog_MAKEINFO="makeinfo"
688 test -z "$ac_cv_prog_MAKEINFO" && ac_cv_prog_MAKEINFO="no"
691 MAKEINFO="$ac_cv_prog_MAKEINFO"
692 if test -n "$MAKEINFO"; then
693 echo "$ac_t""$MAKEINFO" 1>&6
695 echo "$ac_t""no" 1>&6
699 test "$EMACS" = t && EMACS=
701 unset ac_cv_prog_EMACS; unset ac_cv_prog_XEMACS;
703 # Check whether --with-emacs or --without-emacs was given.
704 if test "${with_emacs+set}" = set; then
705 withval="$with_emacs"
706 if test "$withval" = yes -o -z "$withval"; then
707 for ac_prog in emacs xemacs mule
709 # Extract the first word of "$ac_prog", so it can be a program name with args.
710 set dummy $ac_prog; ac_word=$2
711 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
712 echo "configure:713: checking for $ac_word" >&5
713 if eval "test \"\${ac_cv_prog_EMACS+set}\" = set"; then
714 echo $ac_n "(cached) $ac_c" 1>&6
716 if test -n "$EMACS"; then
717 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
719 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
721 for ac_dir in $ac_dummy; do
722 test -z "$ac_dir" && ac_dir=.
723 if test -f $ac_dir/$ac_word; then
724 ac_cv_prog_EMACS="$ac_prog"
731 EMACS="$ac_cv_prog_EMACS"
732 if test -n "$EMACS"; then
733 echo "$ac_t""$EMACS" 1>&6
735 echo "$ac_t""no" 1>&6
738 test -n "$EMACS" && break
740 test -n "$EMACS" || EMACS="emacs"
743 # Extract the first word of "$withval", so it can be a program name with args.
744 set dummy $withval; ac_word=$2
745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
746 echo "configure:747: checking for $ac_word" >&5
747 if eval "test \"\${ac_cv_prog_EMACS+set}\" = set"; then
748 echo $ac_n "(cached) $ac_c" 1>&6
750 if test -n "$EMACS"; then
751 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
755 for ac_dir in $ac_dummy; do
756 test -z "$ac_dir" && ac_dir=.
757 if test -f $ac_dir/$ac_word; then
758 ac_cv_prog_EMACS="$withval"
763 test -z "$ac_cv_prog_EMACS" && ac_cv_prog_EMACS="emacs"
766 EMACS="$ac_cv_prog_EMACS"
767 if test -n "$EMACS"; then
768 echo "$ac_t""$EMACS" 1>&6
770 echo "$ac_t""no" 1>&6
776 # Check whether --with-xemacs or --without-xemacs was given.
777 if test "${with_xemacs+set}" = set; then
778 withval="$with_xemacs"
779 if test "$withval" = yes -o -z "$withval"; then
780 # Extract the first word of "xemacs", so it can be a program name with args.
781 set dummy xemacs; ac_word=$2
782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
783 echo "configure:784: checking for $ac_word" >&5
784 if eval "test \"\${ac_cv_prog_XEMACS+set}\" = set"; then
785 echo $ac_n "(cached) $ac_c" 1>&6
787 if test -n "$XEMACS"; then
788 ac_cv_prog_XEMACS="$XEMACS" # Let the user override the test.
790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
792 for ac_dir in $ac_dummy; do
793 test -z "$ac_dir" && ac_dir=.
794 if test -f $ac_dir/$ac_word; then
795 ac_cv_prog_XEMACS="xemacs"
800 test -z "$ac_cv_prog_XEMACS" && ac_cv_prog_XEMACS="xemacs"
803 XEMACS="$ac_cv_prog_XEMACS"
804 if test -n "$XEMACS"; then
805 echo "$ac_t""$XEMACS" 1>&6
807 echo "$ac_t""no" 1>&6
811 # Extract the first word of "$withval", so it can be a program name with args.
812 set dummy $withval; ac_word=$2
813 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
814 echo "configure:815: checking for $ac_word" >&5
815 if eval "test \"\${ac_cv_prog_XEMACS+set}\" = set"; then
816 echo $ac_n "(cached) $ac_c" 1>&6
818 if test -n "$XEMACS"; then
819 ac_cv_prog_XEMACS="$XEMACS" # Let the user override the test.
821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
823 for ac_dir in $ac_dummy; do
824 test -z "$ac_dir" && ac_dir=.
825 if test -f $ac_dir/$ac_word; then
826 ac_cv_prog_XEMACS="$withval"
831 test -z "$ac_cv_prog_XEMACS" && ac_cv_prog_XEMACS="xemacs"
834 XEMACS="$ac_cv_prog_XEMACS"
835 if test -n "$XEMACS"; then
836 echo "$ac_t""$XEMACS" 1>&6
838 echo "$ac_t""no" 1>&6
845 test -z "$EMACS" && for ac_prog in emacs xemacs mule
847 # Extract the first word of "$ac_prog", so it can be a program name with args.
848 set dummy $ac_prog; ac_word=$2
849 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
850 echo "configure:851: checking for $ac_word" >&5
851 if eval "test \"\${ac_cv_prog_EMACS+set}\" = set"; then
852 echo $ac_n "(cached) $ac_c" 1>&6
854 if test -n "$EMACS"; then
855 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
857 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
859 for ac_dir in $ac_dummy; do
860 test -z "$ac_dir" && ac_dir=.
861 if test -f $ac_dir/$ac_word; then
862 ac_cv_prog_EMACS="$ac_prog"
869 EMACS="$ac_cv_prog_EMACS"
870 if test -n "$EMACS"; then
871 echo "$ac_t""$EMACS" 1>&6
873 echo "$ac_t""no" 1>&6
876 test -n "$EMACS" && break
878 test -n "$EMACS" || EMACS="emacs"
885 echo $ac_n "checking what a flavor does $EMACS have""... $ac_c" 1>&6
886 echo "configure:887: checking what a flavor does $EMACS have" >&5
888 unset EMACS_cv_SYS_flavor;
891 elisp="(cond ((featurep (quote xemacs)) \"XEmacs\")\
892 ((boundp (quote MULE)) \"MULE\")\
894 if test -z ""noecho""; then
895 echo $ac_n "checking for flavor""... $ac_c" 1>&6
896 echo "configure:897: checking for flavor" >&5
898 if eval "test \"\${EMACS_cv_SYS_flavor+set}\" = set"; then
899 echo $ac_n "(cached) $ac_c" 1>&6
903 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
904 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
905 retval=`cat ${OUTPUT}`
906 echo "=> ${retval}" >& 5 2>&1
908 EMACS_cv_SYS_flavor=$retval
912 flavor=${EMACS_cv_SYS_flavor}
913 if test -z ""noecho""; then
914 echo "$ac_t""$flavor" 1>&6
917 case $EMACS_cv_SYS_flavor in
919 EMACS_FLAVOR=xemacs;;
925 echo "$ac_t""$EMACS_cv_SYS_flavor" 1>&6
926 if test "$prefix" = NONE; then
927 echo $ac_n "checking prefix for your Emacs""... $ac_c" 1>&6
928 echo "configure:929: checking prefix for your Emacs" >&5
930 elisp="(expand-file-name \"..\" invocation-directory)"
931 if test -z ""noecho""; then
932 echo $ac_n "checking for prefix""... $ac_c" 1>&6
933 echo "configure:934: checking for prefix" >&5
935 if eval "test \"\${EMACS_cv_SYS_prefix+set}\" = set"; then
936 echo $ac_n "(cached) $ac_c" 1>&6
940 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
941 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
942 retval=`cat ${OUTPUT}`
943 echo "=> ${retval}" >& 5 2>&1
945 EMACS_cv_SYS_prefix=$retval
949 prefix=${EMACS_cv_SYS_prefix}
950 if test -z ""noecho""; then
951 echo "$ac_t""$prefix" 1>&6
954 prefix=${EMACS_cv_SYS_prefix}
955 echo "$ac_t""$prefix" 1>&6
957 # Check whether --with-lispdir or --without-lispdir was given.
958 if test "${with_lispdir+set}" = set; then
959 withval="$with_lispdir"
963 echo $ac_n "checking where lisp files should go""... $ac_c" 1>&6
964 echo "configure:965: checking where lisp files should go" >&5
965 if test -z "$lispdir"; then
967 if test "$theprefix" = NONE; then
968 theprefix=$ac_default_prefix
970 if test "$EMACS_FLAVOR" = "xemacs"; then
971 lispdir="\$(datadir)/${EMACS_FLAVOR}/site-packages/lisp/${GNUS_PRODUCT_NAME}"
973 lispdir="\$(datadir)/${EMACS_FLAVOR}/site-lisp/${GNUS_PRODUCT_NAME}"
975 for thedir in share lib; do
977 if test -d ${theprefix}/${thedir}/${EMACS_FLAVOR}/site-lisp; then
978 if test "$EMACS_FLAVOR" = "xemacs"; then
979 lispdir="\$(prefix)/${thedir}/${EMACS_FLAVOR}/site-packages/lisp/${GNUS_PRODUCT_NAME}"
981 lispdir="\$(prefix)/${thedir}/${EMACS_FLAVOR}/site-lisp/${GNUS_PRODUCT_NAME}"
987 if test ${EMACS_FLAVOR} = xemacs; then
988 echo "$ac_t""$lispdir
989 (it will be ignored when \"make install-package[-ja]\" is done)" 1>&6
991 echo "$ac_t""$lispdir" 1>&6
996 # Check whether --with-etcdir or --without-etcdir was given.
997 if test "${with_etcdir+set}" = set; then
998 withval="$with_etcdir"
1002 echo $ac_n "checking where etc files should go""... $ac_c" 1>&6
1003 echo "configure:1004: checking where etc files should go" >&5
1004 if test -z "$etcdir"; then
1005 if test "$EMACS_FLAVOR" = "xemacs"; then
1006 etcdir="\$(lispdir)/../../etc"
1008 etcdir="\$(lispdir)/../etc"
1011 echo "$ac_t""$etcdir" 1>&6
1015 echo $ac_n "checking where the TeXinfo docs should go""... $ac_c" 1>&6
1016 echo "configure:1017: checking where the TeXinfo docs should go" >&5
1017 if test "$infodir" = "\${prefix}/info"; then
1018 if test "$EMACS_FLAVOR" = "xemacs"; then
1019 info_dir="\$(prefix)/${thedir}/${EMACS_FLAVOR}/site-packages/info"
1021 info_dir="\$(prefix)/info"
1026 echo "$ac_t""$info_dir" 1>&6
1030 echo $ac_n "checking for acceptable URL version""... $ac_c" 1>&6
1031 echo "configure:1032: checking for acceptable URL version" >&5
1033 unset EMACS_cv_ACCEPTABLE_URL;
1034 unset EMACS_cv_SYS_url_dir;
1035 unset EMACS_cv_SYS_url;
1037 if eval "test \"\${EMACS_cv_ACCEPTABLE_URL+set}\" = set"; then
1038 echo $ac_n "(cached) $ac_c" 1>&6
1042 if test -z ""noecho""; then
1043 echo $ac_n "checking for url-retrieve in url""... $ac_c" 1>&6
1044 echo "configure:1045: checking for url-retrieve in url" >&5
1046 library=`echo url | tr _ -`
1048 elisp="(progn (fmakunbound (quote url-retrieve)) (condition-case nil (progn (require (quote $library)) (fboundp (quote url-retrieve))) (error (prog1 nil (message \"$library not found\")))))"
1049 if test -z ""noecho""; then
1050 echo $ac_n "checking for url""... $ac_c" 1>&6
1051 echo "configure:1052: checking for url" >&5
1053 if eval "test \"\${EMACS_cv_SYS_url+set}\" = set"; then
1054 echo $ac_n "(cached) $ac_c" 1>&6
1057 OUTPUT=./conftest-$$
1058 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
1059 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
1060 retval=`cat ${OUTPUT}`
1061 echo "=> ${retval}" >& 5 2>&1
1063 EMACS_cv_SYS_url=$retval
1067 url=${EMACS_cv_SYS_url}
1068 if test -z ""noecho""; then
1069 echo "$ac_t""$url" 1>&6
1072 if test "${EMACS_cv_SYS_url}" = nil; then
1075 if test "${EMACS_cv_SYS_url}" = t; then
1076 EMACS_cv_SYS_url=yes
1078 HAVE_url=${EMACS_cv_SYS_url}
1080 if test -z ""noecho""; then
1081 echo "$ac_t""$HAVE_url" 1>&6
1084 if test "${HAVE_url}" = yes; then
1085 EMACS_cv_ACCEPTABLE_URL=yes
1087 EMACS_cv_ACCEPTABLE_URL=
1090 if test "${EMACS_cv_ACCEPTABLE_URL}" = yes; then
1092 elisp="(file-name-directory (locate-library \"url\"))"
1093 if test -z ""noecho""; then
1094 echo $ac_n "checking for url_dir""... $ac_c" 1>&6
1095 echo "configure:1096: checking for url_dir" >&5
1097 if eval "test \"\${EMACS_cv_SYS_url_dir+set}\" = set"; then
1098 echo $ac_n "(cached) $ac_c" 1>&6
1101 OUTPUT=./conftest-$$
1102 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
1103 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
1104 retval=`cat ${OUTPUT}`
1105 echo "=> ${retval}" >& 5 2>&1
1107 EMACS_cv_SYS_url_dir=$retval
1111 url_dir=${EMACS_cv_SYS_url_dir}
1112 if test -z ""noecho""; then
1113 echo "$ac_t""$url_dir" 1>&6
1116 EMACS_cv_ACCEPTABLE_URL=$EMACS_cv_SYS_url_dir
1121 # Check whether --with-url or --without-url was given.
1122 if test "${with_url+set}" = set; then
1124 EMACS_cv_ACCEPTABLE_URL=`( cd $withval && pwd || echo "$withval" ) 2> /dev/null`
1127 URL=${EMACS_cv_ACCEPTABLE_URL}
1129 if test -z "${EMACS_cv_ACCEPTABLE_URL}"; then
1130 echo "$ac_t""not found" 1>&6
1132 echo "$ac_t"""${URL}"" 1>&6
1136 echo $ac_n "checking for acceptable W3 version""... $ac_c" 1>&6
1137 echo "configure:1138: checking for acceptable W3 version" >&5
1139 unset EMACS_cv_ACCEPTABLE_W3;
1140 unset EMACS_cv_SYS_w3_dir;
1141 unset EMACS_cv_SYS_w3_forms;
1143 if eval "test \"\${EMACS_cv_ACCEPTABLE_W3+set}\" = set"; then
1144 echo $ac_n "(cached) $ac_c" 1>&6
1148 if test -z ""noecho""; then
1149 echo $ac_n "checking for w3-form-encode-xwfu in w3_forms""... $ac_c" 1>&6
1150 echo "configure:1151: checking for w3-form-encode-xwfu in w3_forms" >&5
1152 library=`echo w3_forms | tr _ -`
1154 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\")))))"
1155 if test -z ""noecho""; then
1156 echo $ac_n "checking for w3_forms""... $ac_c" 1>&6
1157 echo "configure:1158: checking for w3_forms" >&5
1159 if eval "test \"\${EMACS_cv_SYS_w3_forms+set}\" = set"; then
1160 echo $ac_n "(cached) $ac_c" 1>&6
1163 OUTPUT=./conftest-$$
1164 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
1165 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
1166 retval=`cat ${OUTPUT}`
1167 echo "=> ${retval}" >& 5 2>&1
1169 EMACS_cv_SYS_w3_forms=$retval
1173 w3_forms=${EMACS_cv_SYS_w3_forms}
1174 if test -z ""noecho""; then
1175 echo "$ac_t""$w3_forms" 1>&6
1178 if test "${EMACS_cv_SYS_w3_forms}" = nil; then
1179 EMACS_cv_SYS_w3_forms=no
1181 if test "${EMACS_cv_SYS_w3_forms}" = t; then
1182 EMACS_cv_SYS_w3_forms=yes
1184 HAVE_w3_forms=${EMACS_cv_SYS_w3_forms}
1186 if test -z ""noecho""; then
1187 echo "$ac_t""$HAVE_w3_forms" 1>&6
1190 if test "${HAVE_w3_forms}" = yes; then
1191 EMACS_cv_ACCEPTABLE_W3=yes
1193 EMACS_cv_ACCEPTABLE_W3=
1196 if test "${EMACS_cv_ACCEPTABLE_W3}" = yes; then
1198 elisp="(file-name-directory (locate-library \"w3-forms\"))"
1199 if test -z ""noecho""; then
1200 echo $ac_n "checking for w3_dir""... $ac_c" 1>&6
1201 echo "configure:1202: checking for w3_dir" >&5
1203 if eval "test \"\${EMACS_cv_SYS_w3_dir+set}\" = set"; then
1204 echo $ac_n "(cached) $ac_c" 1>&6
1207 OUTPUT=./conftest-$$
1208 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
1209 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
1210 retval=`cat ${OUTPUT}`
1211 echo "=> ${retval}" >& 5 2>&1
1213 EMACS_cv_SYS_w3_dir=$retval
1217 w3_dir=${EMACS_cv_SYS_w3_dir}
1218 if test -z ""noecho""; then
1219 echo "$ac_t""$w3_dir" 1>&6
1222 EMACS_cv_ACCEPTABLE_W3=$EMACS_cv_SYS_w3_dir
1227 # Check whether --with-w3 or --without-w3 was given.
1228 if test "${with_w3+set}" = set; then
1230 EMACS_cv_ACCEPTABLE_W3=`( cd $withval && pwd || echo "$withval" ) 2> /dev/null`
1233 W3=${EMACS_cv_ACCEPTABLE_W3}
1235 if test -z "${EMACS_cv_ACCEPTABLE_W3}"; then
1236 echo "$ac_t""not found" 1>&6
1238 echo "$ac_t""${W3}" 1>&6
1242 test "$LATEX" = t && LATEX=
1243 test "$LATEX" || for ac_prog in latex
1245 # Extract the first word of "$ac_prog", so it can be a program name with args.
1246 set dummy $ac_prog; ac_word=$2
1247 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1248 echo "configure:1249: checking for $ac_word" >&5
1249 if eval "test \"\${ac_cv_path_LATEX+set}\" = set"; then
1250 echo $ac_n "(cached) $ac_c" 1>&6
1254 ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
1257 ac_cv_path_LATEX="$LATEX" # Let the user override the test with a dos path.
1260 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1262 for ac_dir in $ac_dummy; do
1263 test -z "$ac_dir" && ac_dir=.
1264 if test -f $ac_dir/$ac_word; then
1265 ac_cv_path_LATEX="$ac_dir/$ac_word"
1273 LATEX="$ac_cv_path_LATEX"
1274 if test -n "$LATEX"; then
1275 echo "$ac_t""$LATEX" 1>&6
1277 echo "$ac_t""no" 1>&6
1280 test -n "$LATEX" && break
1282 test -n "$LATEX" || LATEX="no"
1284 echo $ac_n "checking for available fonts""... $ac_c" 1>&6
1285 echo "configure:1286: checking for available fonts" >&5
1286 # Check whether --with-fonts or --without-fonts was given.
1287 if test "${with_fonts+set}" = set; then
1288 withval="$with_fonts"
1289 USE_FONTS="$withval"
1292 WITH_FONTS_bembo='%'
1293 WITHOUT_FONTS_bembo=
1298 if test -z "${USE_FONTS}"; then
1299 if test "${LATEX}" = no; then
1302 OUTPUT=./conftest-$$
1303 echo '\nonstopmode\documentclass{article}\usepackage{bembo}\begin{document}\end{document}' > ${OUTPUT}
1304 if ${LATEX} ${OUTPUT} </dev/null >& 5 2>&1 ; then
1305 if test -z "${USE_FONTS}"; then
1306 USE_FONTS="Adobe Bembo"
1308 USE_FONTS="${USE_FONTS}, Adobe Bembo"
1311 WITHOUT_FONTS_bembo='%'
1313 echo '\nonstopmode\documentclass{article}\begin{document}{\fontfamily{pfu}\fontsize{10pt}{10}\selectfont test}\end{document}' > ${OUTPUT}
1314 if retval=`${LATEX} ${OUTPUT} </dev/null 2>& 5`; then
1315 if echo "$retval" | grep 'Some font shapes were not available' >& 5 2>&1 ; then
1318 if test -z "${USE_FONTS}"; then
1319 USE_FONTS="Adobe Futura"
1321 USE_FONTS="${USE_FONTS}, Adobe Futura"
1324 WITHOUT_FONTS_pfu='%'
1327 echo '\nonstopmode\documentclass{article}\begin{document}{\fontfamily{bcr}\fontsize{10pt}{10}\selectfont test}\end{document}' > ${OUTPUT}
1328 if retval=`${LATEX} ${OUTPUT} </dev/null 2>& 5`; then
1329 if echo "$retval" | grep 'Some font shapes were not available' >& 5 2>&1 ; then
1332 if test -z "${USE_FONTS}"; then
1333 USE_FONTS="Bitstream Courier"
1335 USE_FONTS="${USE_FONTS}, Bitstream Courier"
1338 WITHOUT_FONTS_bcr='%'
1341 rm -f ${OUTPUT} ${OUTPUT}.aux ${OUTPUT}.log ${OUTPUT}.dvi
1343 elif test "${USE_FONTS}" = yes ; then
1345 WITHOUT_FONTS_bembo='%'
1347 WITHOUT_FONTS_pfu='%'
1349 WITHOUT_FONTS_bcr='%'
1357 if test -z "${USE_FONTS}" ; then
1360 USE_FONTS=`echo "${USE_FONTS}" | sed 's/,\([^,]*\)$/ and\1/'`
1361 echo "$ac_t"""${USE_FONTS}"" 1>&6
1362 if test "${USE_FONTS}" = yes ; then
1363 USE_FONTS='Set in Adobe Bembo, Adobe Futura and Bitstream Courier.'
1364 elif test "${USE_FONTS}" = no ; then
1367 USE_FONTS="Set in ${USE_FONTS}."
1371 if test ${EMACS_FLAVOR} = xemacs; then
1372 echo $ac_n "checking where the XEmacs package is""... $ac_c" 1>&6
1373 echo "configure:1374: checking where the XEmacs package is" >&5
1374 # Check whether --with-packagedir or --without-packagedir was given.
1375 if test "${with_packagedir+set}" = set; then
1376 withval="$with_packagedir"
1377 if test "$withval" != yes -a -n "$withval"; then
1381 elisp="(let (package-dir)\
1382 (if (boundp (quote early-packages))\
1383 (let ((dirs (delq nil (append (if early-package-load-path\
1385 (if late-package-load-path\
1387 (if last-package-load-path\
1389 (while (and dirs (not package-dir))\
1390 (if (file-directory-p (car dirs))\
1391 (setq package-dir (car dirs)\
1392 dirs (cdr dirs))))))\
1393 (or package-dir \"\"))"
1394 if test -z ""noecho""; then
1395 echo $ac_n "checking for PACKAGEDIR""... $ac_c" 1>&6
1396 echo "configure:1397: checking for PACKAGEDIR" >&5
1398 if eval "test \"\${EMACS_cv_SYS_PACKAGEDIR+set}\" = set"; then
1399 echo $ac_n "(cached) $ac_c" 1>&6
1402 OUTPUT=./conftest-$$
1403 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
1404 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
1405 retval=`cat ${OUTPUT}`
1406 echo "=> ${retval}" >& 5 2>&1
1408 EMACS_cv_SYS_PACKAGEDIR=$retval
1412 PACKAGEDIR=${EMACS_cv_SYS_PACKAGEDIR}
1413 if test -z ""noecho""; then
1414 echo "$ac_t""$PACKAGEDIR" 1>&6
1420 elisp="(let (package-dir)\
1421 (if (boundp (quote early-packages))\
1422 (let ((dirs (delq nil (append (if early-package-load-path\
1424 (if late-package-load-path\
1426 (if last-package-load-path\
1428 (while (and dirs (not package-dir))\
1429 (if (file-directory-p (car dirs))\
1430 (setq package-dir (car dirs)\
1431 dirs (cdr dirs))))))\
1432 (or package-dir \"\"))"
1433 if test -z ""noecho""; then
1434 echo $ac_n "checking for PACKAGEDIR""... $ac_c" 1>&6
1435 echo "configure:1436: checking for PACKAGEDIR" >&5
1437 if eval "test \"\${EMACS_cv_SYS_PACKAGEDIR+set}\" = set"; then
1438 echo $ac_n "(cached) $ac_c" 1>&6
1441 OUTPUT=./conftest-$$
1442 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
1443 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
1444 retval=`cat ${OUTPUT}`
1445 echo "=> ${retval}" >& 5 2>&1
1447 EMACS_cv_SYS_PACKAGEDIR=$retval
1451 PACKAGEDIR=${EMACS_cv_SYS_PACKAGEDIR}
1452 if test -z ""noecho""; then
1453 echo "$ac_t""$PACKAGEDIR" 1>&6
1458 if test -z "$PACKAGEDIR"; then
1459 echo "$ac_t""not found" 1>&6
1461 echo "$ac_t""$PACKAGEDIR" 1>&6
1467 # Check whether --with-addpath or --without-addpath was given.
1468 if test "${with_addpath+set}" = set; then
1469 withval="$with_addpath"
1470 if test "$withval" != yes -a -n "$withval"; then
1471 echo $ac_n "checking where to find the additional elisp libraries""... $ac_c" 1>&6
1472 echo "configure:1473: checking where to find the additional elisp libraries" >&5
1473 ADDITIONAL_LOAD_PATH=$withval
1474 echo "$ac_t""$ADDITIONAL_LOAD_PATH" 1>&6
1477 ADDITIONAL_LOAD_PATH=
1482 cat > confcache <<\EOF
1483 # This file is a shell script that caches the results of configure
1484 # tests run on this system so they can be shared between configure
1485 # scripts and configure runs. It is not useful on other systems.
1486 # If it contains results you don't want to keep, you may remove or edit it.
1488 # By default, configure uses ./config.cache as the cache file,
1489 # creating it if it does not exist already. You can give configure
1490 # the --cache-file=FILE option to use a different cache file; that is
1491 # what configure does when it calls configure scripts in
1492 # subdirectories, so they share the cache.
1493 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1494 # config.status only pays attention to the cache file if you give it the
1495 # --recheck option to rerun configure.
1498 # The following way of writing the cache mishandles newlines in values,
1499 # but we know of no workaround that is simple, portable, and efficient.
1500 # So, don't put newlines in cache variables' values.
1501 # Ultrix sh set writes to stderr and can't be redirected directly,
1502 # and sets the high bit in the cache file unless we assign to the vars.
1504 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1506 # `set' does not quote correctly, so add quotes (double-quote substitution
1507 # turns \\\\ into \\, and sed turns \\ into \).
1509 -e "s/'/'\\\\''/g" \
1510 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1513 # `set' quotes correctly as required by POSIX, so do not add quotes.
1514 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1517 if cmp -s $cache_file confcache; then
1520 if test -w $cache_file; then
1521 echo "updating cache $cache_file"
1522 cat confcache > $cache_file
1524 echo "not updating unwritable cache $cache_file"
1529 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1531 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1532 # Let make expand exec_prefix.
1533 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1535 # Any assignment to VPATH causes Sun make to only execute
1536 # the first set of double-colon rules, so remove it if not needed.
1537 # If there is a colon in the path, we need to keep it.
1538 if test "x$srcdir" = x.; then
1539 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1542 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1544 # Transform confdefs.h into DEFS.
1545 # Protect against shell expansion while executing Makefile rules.
1546 # Protect against Makefile macro expansion.
1547 cat > conftest.defs <<\EOF
1548 s%#define \([^ ][^ ]*\) *\(.*\)%-D\1=\2%g
1549 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1554 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1558 # Without the "./", some shells look in PATH for config.status.
1559 : ${CONFIG_STATUS=./config.status}
1561 echo creating $CONFIG_STATUS
1562 rm -f $CONFIG_STATUS
1563 cat > $CONFIG_STATUS <<EOF
1565 # Generated automatically by configure.
1566 # Run this file to recreate the current configuration.
1567 # This directory was configured as follows,
1568 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1570 # $0 $ac_configure_args
1572 # Compiler output produced by configure, useful for debugging
1573 # configure, is in ./config.log if it exists.
1575 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1578 case "\$ac_option" in
1579 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1580 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1581 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1582 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1583 echo "$CONFIG_STATUS generated by autoconf version 2.14.1"
1585 -help | --help | --hel | --he | --h)
1586 echo "\$ac_cs_usage"; exit 0 ;;
1587 *) echo "\$ac_cs_usage"; exit 1 ;;
1591 ac_given_srcdir=$srcdir
1592 ac_given_INSTALL="$INSTALL"
1594 trap 'rm -fr `echo "Makefile etc/Makefile lisp/Makefile texi/Makefile \
1595 texi/gnusconfig.tex texi/ps/Makefile lisp/dgnuspath.el" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1597 cat >> $CONFIG_STATUS <<EOF
1599 # Protect against being on the right side of a sed subst in config.status.
1600 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1601 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1605 s%@CFLAGS@%$CFLAGS%g
1606 s%@CPPFLAGS@%$CPPFLAGS%g
1607 s%@CXXFLAGS@%$CXXFLAGS%g
1608 s%@FFLAGS@%$FFLAGS%g
1610 s%@LDFLAGS@%$LDFLAGS%g
1612 s%@exec_prefix@%$exec_prefix%g
1613 s%@prefix@%$prefix%g
1614 s%@program_transform_name@%$program_transform_name%g
1615 s%@bindir@%$bindir%g
1616 s%@sbindir@%$sbindir%g
1617 s%@libexecdir@%$libexecdir%g
1618 s%@datadir@%$datadir%g
1619 s%@sysconfdir@%$sysconfdir%g
1620 s%@sharedstatedir@%$sharedstatedir%g
1621 s%@localstatedir@%$localstatedir%g
1622 s%@libdir@%$libdir%g
1623 s%@includedir@%$includedir%g
1624 s%@oldincludedir@%$oldincludedir%g
1625 s%@infodir@%$infodir%g
1626 s%@mandir@%$mandir%g
1627 s%@GNUS_PRODUCT_NAME@%$GNUS_PRODUCT_NAME%g
1628 s%@SET_MAKE@%$SET_MAKE%g
1629 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1630 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1631 s%@INSTALL_DATA@%$INSTALL_DATA%g
1632 s%@MAKEINFO@%$MAKEINFO%g
1634 s%@XEMACS@%$XEMACS%g
1635 s%@lispdir@%$lispdir%g
1636 s%@etcdir@%$etcdir%g
1637 s%@info_dir@%$info_dir%g
1638 s%@HAVE_url@%$HAVE_url%g
1640 s%@HAVE_w3_forms@%$HAVE_w3_forms%g
1643 s%@WITH_FONTS_bembo@%$WITH_FONTS_bembo%g
1644 s%@WITHOUT_FONTS_bembo@%$WITHOUT_FONTS_bembo%g
1645 s%@WITH_FONTS_pfu@%$WITH_FONTS_pfu%g
1646 s%@WITHOUT_FONTS_pfu@%$WITHOUT_FONTS_pfu%g
1647 s%@WITH_FONTS_bcr@%$WITH_FONTS_bcr%g
1648 s%@WITHOUT_FONTS_bcr@%$WITHOUT_FONTS_bcr%g
1649 s%@USE_FONTS@%$USE_FONTS%g
1650 s%@PACKAGEDIR@%$PACKAGEDIR%g
1651 s%@ADDITIONAL_LOAD_PATH@%$ADDITIONAL_LOAD_PATH%g
1656 cat >> $CONFIG_STATUS <<\EOF
1658 # Split the substitutions into bite-sized pieces for seds with
1659 # small command number limits, like on Digital OSF/1 and HP-UX.
1660 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1661 ac_file=1 # Number of current file.
1662 ac_beg=1 # First line for current file.
1663 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1666 while $ac_more_lines; do
1667 if test $ac_beg -gt 1; then
1668 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1670 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1672 if test ! -s conftest.s$ac_file; then
1674 rm -f conftest.s$ac_file
1676 if test -z "$ac_sed_cmds"; then
1677 ac_sed_cmds="sed -f conftest.s$ac_file"
1679 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1681 ac_file=`expr $ac_file + 1`
1683 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1686 if test -z "$ac_sed_cmds"; then
1691 cat >> $CONFIG_STATUS <<EOF
1693 CONFIG_FILES=\${CONFIG_FILES-"Makefile etc/Makefile lisp/Makefile texi/Makefile \
1694 texi/gnusconfig.tex texi/ps/Makefile lisp/dgnuspath.el"}
1696 cat >> $CONFIG_STATUS <<\EOF
1697 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1698 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1700 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1701 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1702 *) ac_file_in="${ac_file}.in" ;;
1705 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1707 # Remove last slash and all that follows it. Not all systems have dirname.
1708 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1709 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1710 # The file is in a subdirectory.
1711 test ! -d "$ac_dir" && mkdir "$ac_dir"
1712 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1713 # A "../" for each directory in $ac_dir_suffix.
1714 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1716 ac_dir_suffix= ac_dots=
1719 case "$ac_given_srcdir" in
1721 if test -z "$ac_dots"; then top_srcdir=.
1722 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1723 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1725 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1726 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1729 case "$ac_given_INSTALL" in
1730 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1731 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1734 echo creating "$ac_file"
1736 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1738 *Makefile*) ac_comsub="1i\\
1739 # $configure_input" ;;
1743 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1745 s%@configure_input@%$configure_input%g
1746 s%@srcdir@%$srcdir%g
1747 s%@top_srcdir@%$top_srcdir%g
1748 s%@INSTALL@%$INSTALL%g
1749 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1754 cat >> $CONFIG_STATUS <<EOF
1757 cat >> $CONFIG_STATUS <<\EOF
1761 chmod +x $CONFIG_STATUS
1762 rm -fr confdefs* $ac_clean_files
1763 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1