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-xemacs Use XEmacs to build"
17 --with-emacs Use Emacs to build"
19 --with-lispdir=DIR Where to install lisp files"
21 --with-etcdir=DIR Where to install etc files"
23 --with-url=DIR Specify where to find the url package"
25 --with-w3=DIR Specify where to find the w3 package"
27 # Initialize some variables set by options.
28 # The variables have the same names as the options, with
29 # dashes changed to underlines.
31 cache_file=./config.cache
40 program_transform_name=s,x,x,
48 bindir='${exec_prefix}/bin'
49 sbindir='${exec_prefix}/sbin'
50 libexecdir='${exec_prefix}/libexec'
51 datadir='${prefix}/share'
52 sysconfdir='${prefix}/etc'
53 sharedstatedir='${prefix}/com'
54 localstatedir='${prefix}/var'
55 libdir='${exec_prefix}/lib'
56 includedir='${prefix}/include'
57 oldincludedir='/usr/include'
58 infodir='${prefix}/info'
59 mandir='${prefix}/man'
61 # Initialize some other variables.
64 SHELL=${CONFIG_SHELL-/bin/sh}
65 # Maximum number of lines to put in a shell here document.
72 # If the previous option needs an argument, assign it.
73 if test -n "$ac_prev"; then
74 eval "$ac_prev=\$ac_option"
80 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
84 # Accept the important Cygnus configure options, so we can diagnose typos.
88 -bindir | --bindir | --bindi | --bind | --bin | --bi)
90 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
91 bindir="$ac_optarg" ;;
93 -build | --build | --buil | --bui | --bu)
95 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
98 -cache-file | --cache-file | --cache-fil | --cache-fi \
99 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
100 ac_prev=cache_file ;;
101 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
102 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
103 cache_file="$ac_optarg" ;;
105 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
107 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
109 datadir="$ac_optarg" ;;
111 -disable-* | --disable-*)
112 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
113 # Reject names that are not valid shell variable names.
114 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
115 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118 eval "enable_${ac_feature}=no" ;;
120 -enable-* | --enable-*)
121 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}='$ac_optarg'" ;;
133 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
134 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
135 | --exec | --exe | --ex)
136 ac_prev=exec_prefix ;;
137 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
138 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
139 | --exec=* | --exe=* | --ex=*)
140 exec_prefix="$ac_optarg" ;;
142 -gas | --gas | --ga | --g)
143 # Obsolete; use --with-gas.
146 -help | --help | --hel | --he)
147 # Omit some internal or obsolete options to make the list less imposing.
148 # This message is too long to be a string in the A/UX 3.1 sh.
150 Usage: configure [options] [host]
151 Options: [defaults in brackets after descriptions]
153 --cache-file=FILE cache test results in FILE
154 --help print this message
155 --no-create do not create output files
156 --quiet, --silent do not print \`checking...' messages
157 --version print the version of autoconf that created configure
158 Directory and file names:
159 --prefix=PREFIX install architecture-independent files in PREFIX
161 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
163 --bindir=DIR user executables in DIR [EPREFIX/bin]
164 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
165 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
166 --datadir=DIR read-only architecture-independent data in DIR
168 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
169 --sharedstatedir=DIR modifiable architecture-independent data in DIR
171 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
172 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
173 --includedir=DIR C header files in DIR [PREFIX/include]
174 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
175 --infodir=DIR info documentation in DIR [PREFIX/info]
176 --mandir=DIR man documentation in DIR [PREFIX/man]
177 --srcdir=DIR find the sources in DIR [configure dir or ..]
178 --program-prefix=PREFIX prepend PREFIX to installed program names
179 --program-suffix=SUFFIX append SUFFIX to installed program names
180 --program-transform-name=PROGRAM
181 run sed PROGRAM on installed program names
185 --build=BUILD configure for building on BUILD [BUILD=HOST]
186 --host=HOST configure for HOST [guessed]
187 --target=TARGET configure for TARGET [TARGET=HOST]
188 Features and packages:
189 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
190 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
191 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
192 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
193 --x-includes=DIR X include files are in DIR
194 --x-libraries=DIR X library files are in DIR
196 if test -n "$ac_help"; then
197 echo "--enable and --with options recognized:$ac_help"
201 -host | --host | --hos | --ho)
203 -host=* | --host=* | --hos=* | --ho=*)
206 -includedir | --includedir | --includedi | --included | --include \
207 | --includ | --inclu | --incl | --inc)
208 ac_prev=includedir ;;
209 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
210 | --includ=* | --inclu=* | --incl=* | --inc=*)
211 includedir="$ac_optarg" ;;
213 -infodir | --infodir | --infodi | --infod | --info | --inf)
215 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
216 infodir="$ac_optarg" ;;
218 -libdir | --libdir | --libdi | --libd)
220 -libdir=* | --libdir=* | --libdi=* | --libd=*)
221 libdir="$ac_optarg" ;;
223 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
224 | --libexe | --libex | --libe)
225 ac_prev=libexecdir ;;
226 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
227 | --libexe=* | --libex=* | --libe=*)
228 libexecdir="$ac_optarg" ;;
230 -localstatedir | --localstatedir | --localstatedi | --localstated \
231 | --localstate | --localstat | --localsta | --localst \
232 | --locals | --local | --loca | --loc | --lo)
233 ac_prev=localstatedir ;;
234 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
235 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
236 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
237 localstatedir="$ac_optarg" ;;
239 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
241 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
242 mandir="$ac_optarg" ;;
245 # Obsolete; use --without-fp.
248 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
252 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
253 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
256 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
257 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
258 | --oldin | --oldi | --old | --ol | --o)
259 ac_prev=oldincludedir ;;
260 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
261 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
262 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
263 oldincludedir="$ac_optarg" ;;
265 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
267 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
268 prefix="$ac_optarg" ;;
270 -program-prefix | --program-prefix | --program-prefi | --program-pref \
271 | --program-pre | --program-pr | --program-p)
272 ac_prev=program_prefix ;;
273 -program-prefix=* | --program-prefix=* | --program-prefi=* \
274 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
275 program_prefix="$ac_optarg" ;;
277 -program-suffix | --program-suffix | --program-suffi | --program-suff \
278 | --program-suf | --program-su | --program-s)
279 ac_prev=program_suffix ;;
280 -program-suffix=* | --program-suffix=* | --program-suffi=* \
281 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
282 program_suffix="$ac_optarg" ;;
284 -program-transform-name | --program-transform-name \
285 | --program-transform-nam | --program-transform-na \
286 | --program-transform-n | --program-transform- \
287 | --program-transform | --program-transfor \
288 | --program-transfo | --program-transf \
289 | --program-trans | --program-tran \
290 | --progr-tra | --program-tr | --program-t)
291 ac_prev=program_transform_name ;;
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 program_transform_name="$ac_optarg" ;;
301 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
302 | -silent | --silent | --silen | --sile | --sil)
305 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
307 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
309 sbindir="$ac_optarg" ;;
311 -sharedstatedir | --sharedstatedir | --sharedstatedi \
312 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
313 | --sharedst | --shareds | --shared | --share | --shar \
315 ac_prev=sharedstatedir ;;
316 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
317 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
318 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
320 sharedstatedir="$ac_optarg" ;;
322 -site | --site | --sit)
324 -site=* | --site=* | --sit=*)
327 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
329 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
330 srcdir="$ac_optarg" ;;
332 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
333 | --syscon | --sysco | --sysc | --sys | --sy)
334 ac_prev=sysconfdir ;;
335 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
336 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
337 sysconfdir="$ac_optarg" ;;
339 -target | --target | --targe | --targ | --tar | --ta | --t)
341 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
342 target="$ac_optarg" ;;
344 -v | -verbose | --verbose | --verbos | --verbo | --verb)
347 -version | --version | --versio | --versi | --vers)
348 echo "configure generated by autoconf version 2.13"
352 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
353 # Reject names that are not valid shell variable names.
354 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
355 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357 ac_package=`echo $ac_package| sed 's/-/_/g'`
362 eval "with_${ac_package}='$ac_optarg'" ;;
364 -without-* | --without-*)
365 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 ac_package=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}=no" ;;
374 # Obsolete; use --with-x.
377 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
378 | --x-incl | --x-inc | --x-in | --x-i)
379 ac_prev=x_includes ;;
380 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
381 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
382 x_includes="$ac_optarg" ;;
384 -x-libraries | --x-libraries | --x-librarie | --x-librari \
385 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
386 ac_prev=x_libraries ;;
387 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
388 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
389 x_libraries="$ac_optarg" ;;
391 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
395 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
396 echo "configure: warning: $ac_option: invalid host type" 1>&2
398 if test "x$nonopt" != xNONE; then
399 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
407 if test -n "$ac_prev"; then
408 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
411 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
413 # File descriptor usage:
416 # 2 errors and warnings
417 # 3 some systems may open it to /dev/tty
418 # 4 used on the Kubota Titan
419 # 6 checking for... messages and results
420 # 5 compiler messages saved in config.log
421 if test "$silent" = yes; then
429 This file contains any messages produced by compilers while
430 running configure, to aid debugging if configure makes a mistake.
433 # Strip out --no-create and --no-recursion so they do not pile up.
434 # Also quote any args containing shell metacharacters.
439 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
440 | --no-cr | --no-c) ;;
441 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
442 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
443 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
444 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
445 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
450 # Only set these to C if already set. These must not be set unconditionally
451 # because not all systems understand e.g. LANG=C (notably SCO).
452 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
453 # Non-C LC_CTYPE values break the ctype check.
454 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
455 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
456 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
457 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
459 # confdefs.h avoids OS command line length limits that DEFS can exceed.
460 rm -rf conftest* confdefs.h
461 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
464 # A filename unique to this package, relative to the directory that
465 # configure is in, which we can look for to find out if srcdir is correct.
466 ac_unique_file=lisp/gnus.el
468 # Find the source files, if location was not specified.
469 if test -z "$srcdir"; then
470 ac_srcdir_defaulted=yes
471 # Try the directory containing this script, then its parent.
473 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
474 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
476 if test ! -r $srcdir/$ac_unique_file; then
480 ac_srcdir_defaulted=no
482 if test ! -r $srcdir/$ac_unique_file; then
483 if test "$ac_srcdir_defaulted" = yes; then
484 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
486 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
489 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
491 # Prefer explicitly selected file to automatically selected ones.
492 if test -z "$CONFIG_SITE"; then
493 if test "x$prefix" != xNONE; then
494 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
496 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
499 for ac_site_file in $CONFIG_SITE; do
500 if test -r "$ac_site_file"; then
501 echo "loading site script $ac_site_file"
506 if test -r "$cache_file"; then
507 echo "loading cache $cache_file"
510 echo "creating cache $cache_file"
515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
516 ac_cpp='$CPP $CPPFLAGS'
517 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
518 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
519 cross_compiling=$ac_cv_prog_cc_cross
523 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
524 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
525 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
532 ac_n= ac_c='\c' ac_t=
536 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
537 echo "configure:538: checking whether ${MAKE-make} sets \${MAKE}" >&5
538 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
539 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
540 echo $ac_n "(cached) $ac_c" 1>&6
542 cat > conftestmake <<\EOF
544 @echo 'ac_maketemp="${MAKE}"'
546 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
547 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
548 if test -n "$ac_maketemp"; then
549 eval ac_cv_prog_make_${ac_make}_set=yes
551 eval ac_cv_prog_make_${ac_make}_set=no
555 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
556 echo "$ac_t""yes" 1>&6
559 echo "$ac_t""no" 1>&6
560 SET_MAKE="MAKE=${MAKE-make}"
564 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
565 if test -f $ac_dir/install-sh; then
567 ac_install_sh="$ac_aux_dir/install-sh -c"
569 elif test -f $ac_dir/install.sh; then
571 ac_install_sh="$ac_aux_dir/install.sh -c"
575 if test -z "$ac_aux_dir"; then
576 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
578 ac_config_guess=$ac_aux_dir/config.guess
579 ac_config_sub=$ac_aux_dir/config.sub
580 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
582 # Find a good install program. We prefer a C program (faster),
583 # so one script is as good as another. But avoid the broken or
584 # incompatible versions:
585 # SysV /etc/install, /usr/sbin/install
586 # SunOS /usr/etc/install
589 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
590 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
591 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
592 # ./install, which can be erroneously created by make from ./install.sh.
593 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
594 echo "configure:595: checking for a BSD compatible install" >&5
595 if test -z "$INSTALL"; then
596 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
597 echo $ac_n "(cached) $ac_c" 1>&6
599 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
600 for ac_dir in $PATH; do
601 # Account for people who put trailing slashes in PATH elements.
603 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
605 # OSF1 and SCO ODT 3.0 have their own names for install.
606 # Don't use installbsd from OSF since it installs stuff as root
608 for ac_prog in ginstall scoinst install; do
609 if test -f $ac_dir/$ac_prog; then
610 if test $ac_prog = install &&
611 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
612 # AIX install. It has an incompatible calling convention.
615 ac_cv_path_install="$ac_dir/$ac_prog -c"
626 if test "${ac_cv_path_install+set}" = set; then
627 INSTALL="$ac_cv_path_install"
629 # As a last resort, use the slow shell script. We don't cache a
630 # path for INSTALL within a source directory, because that will
631 # break other packages using the cache if that directory is
632 # removed, or if the path is relative.
633 INSTALL="$ac_install_sh"
636 echo "$ac_t""$INSTALL" 1>&6
638 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
639 # It thinks the first close brace ends the variable substitution.
640 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
642 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
644 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
647 if test "${EMACS}" = "t"; then
651 # Check whether --with-xemacs or --without-xemacs was given.
652 if test "${with_xemacs+set}" = set; then
653 withval="$with_xemacs"
654 if test "${withval}" = "yes"; then EMACS=xemacs; else EMACS=${withval}; fi
657 # Check whether --with-emacs or --without-emacs was given.
658 if test "${with_emacs+set}" = set; then
659 withval="$with_emacs"
660 if test "${withval}" = "yes"; then EMACS=emacs; else EMACS=${withval}; fi
663 # Extract the first word of "makeinfo", so it can be a program name with args.
664 set dummy makeinfo; ac_word=$2
665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
666 echo "configure:667: checking for $ac_word" >&5
667 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
668 echo $ac_n "(cached) $ac_c" 1>&6
670 if test -n "$MAKEINFO"; then
671 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
673 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
675 for ac_dir in $ac_dummy; do
676 test -z "$ac_dir" && ac_dir=.
677 if test -f $ac_dir/$ac_word; then
678 ac_cv_prog_MAKEINFO="makeinfo"
683 test -z "$ac_cv_prog_MAKEINFO" && ac_cv_prog_MAKEINFO="no"
686 MAKEINFO="$ac_cv_prog_MAKEINFO"
687 if test -n "$MAKEINFO"; then
688 echo "$ac_t""$MAKEINFO" 1>&6
690 echo "$ac_t""no" 1>&6
694 # Extract the first word of "emacs", so it can be a program name with args.
695 set dummy emacs; ac_word=$2
696 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
697 echo "configure:698: checking for $ac_word" >&5
698 if eval "test \"`echo '$''{'ac_cv_prog_EMACS'+set}'`\" = set"; then
699 echo $ac_n "(cached) $ac_c" 1>&6
701 if test -n "$EMACS"; then
702 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
706 for ac_dir in $ac_dummy; do
707 test -z "$ac_dir" && ac_dir=.
708 if test -f $ac_dir/$ac_word; then
709 ac_cv_prog_EMACS="emacs"
714 test -z "$ac_cv_prog_EMACS" && ac_cv_prog_EMACS="xemacs"
717 EMACS="$ac_cv_prog_EMACS"
718 if test -n "$EMACS"; then
719 echo "$ac_t""$EMACS" 1>&6
721 echo "$ac_t""no" 1>&6
727 echo $ac_n "checking if $EMACS is really XEmacs""... $ac_c" 1>&6
728 echo "configure:729: checking if $EMACS is really XEmacs" >&5
730 elisp="(if (string-match \"XEmacs\" emacs-version) \"yes\" \"no\") "
731 if test -z ""noecho""; then
732 echo $ac_n "checking for xemacsp""... $ac_c" 1>&6
733 echo "configure:734: checking for xemacsp" >&5
735 if eval "test \"`echo '$''{'EMACS_cv_SYS_xemacsp'+set}'`\" = set"; then
736 echo $ac_n "(cached) $ac_c" 1>&6
740 echo ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1
741 ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x 'ignore) (prin1-to-string x)) nil \"${OUTPUT}\"nil 5))" >& 5 2>&1
742 retval=`cat ${OUTPUT}`
743 echo "=> ${retval}" >& 5 2>&1
745 EMACS_cv_SYS_xemacsp=$retval
749 xemacsp=${EMACS_cv_SYS_xemacsp}
750 if test -z ""noecho""; then
751 echo "$ac_t""$xemacsp" 1>&6
754 XEMACS=${EMACS_cv_SYS_xemacsp}
756 if test "$XEMACS" = "yes"; then
759 echo "$ac_t""$XEMACS" 1>&6
763 if test "$prefix" = "NONE"; then
764 echo $ac_n "checking prefix for your Emacs""... $ac_c" 1>&6
765 echo "configure:766: checking prefix for your Emacs" >&5
767 elisp="(expand-file-name \"..\" invocation-directory)"
768 if test -z ""noecho""; then
769 echo $ac_n "checking for prefix""... $ac_c" 1>&6
770 echo "configure:771: checking for prefix" >&5
772 if eval "test \"`echo '$''{'EMACS_cv_SYS_prefix'+set}'`\" = set"; then
773 echo $ac_n "(cached) $ac_c" 1>&6
777 echo ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1
778 ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x 'ignore) (prin1-to-string x)) nil \"${OUTPUT}\"nil 5))" >& 5 2>&1
779 retval=`cat ${OUTPUT}`
780 echo "=> ${retval}" >& 5 2>&1
782 EMACS_cv_SYS_prefix=$retval
786 prefix=${EMACS_cv_SYS_prefix}
787 if test -z ""noecho""; then
788 echo "$ac_t""$prefix" 1>&6
791 prefix=${EMACS_cv_SYS_prefix}
792 echo "$ac_t""$prefix" 1>&6
794 # Check whether --with-lispdir or --without-lispdir was given.
795 if test "${with_lispdir+set}" = set; then
796 withval="$with_lispdir"
800 echo $ac_n "checking where .elc files should go""... $ac_c" 1>&6
801 echo "configure:802: checking where .elc files should go" >&5
802 if test -z "$lispdir"; then
804 if test "x$theprefix" = "xNONE"; then
805 theprefix=$ac_default_prefix
807 lispdir="\$(datadir)/${EMACS_FLAVOR}/site-lisp"
808 for thedir in share lib; do
810 if test -d ${theprefix}/${thedir}/${EMACS_FLAVOR}/site-lisp; then
811 lispdir="\$(prefix)/${thedir}/${EMACS_FLAVOR}/site-lisp"
816 echo "$ac_t""$lispdir" 1>&6
820 # Check whether --with-etcdir or --without-etcdir was given.
821 if test "${with_etcdir+set}" = set; then
822 withval="$with_etcdir"
826 echo $ac_n "checking where etc files should go""... $ac_c" 1>&6
827 echo "configure:828: checking where etc files should go" >&5
828 if test -z "$etcdir"; then
829 etcdir="\$(lispdir)/../etc"
831 echo "$ac_t""$etcdir" 1>&6
835 echo $ac_n "checking for acceptable URL version""... $ac_c" 1>&6
836 echo "configure:837: checking for acceptable URL version" >&5
837 if eval "test \"`echo '$''{'EMACS_cv_ACCEPTABLE_URL'+set}'`\" = set"; then
838 echo $ac_n "(cached) $ac_c" 1>&6
842 if test -z ""noecho""; then
843 echo $ac_n "checking for url-retrieve in url""... $ac_c" 1>&6
844 echo "configure:845: checking for url-retrieve in url" >&5
846 library=`echo url | tr _ -`
848 elisp="(progn (fmakunbound 'url-retrieve) (condition-case nil (progn (require '$library) (fboundp 'url-retrieve)) (error (prog1 nil (message \"$library not found\")))))"
849 if test -z ""noecho""; then
850 echo $ac_n "checking for url""... $ac_c" 1>&6
851 echo "configure:852: checking for url" >&5
853 if eval "test \"`echo '$''{'EMACS_cv_SYS_url'+set}'`\" = set"; then
854 echo $ac_n "(cached) $ac_c" 1>&6
858 echo ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1
859 ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x 'ignore) (prin1-to-string x)) nil \"${OUTPUT}\"nil 5))" >& 5 2>&1
860 retval=`cat ${OUTPUT}`
861 echo "=> ${retval}" >& 5 2>&1
863 EMACS_cv_SYS_url=$retval
867 url=${EMACS_cv_SYS_url}
868 if test -z ""noecho""; then
869 echo "$ac_t""$url" 1>&6
872 if test "${EMACS_cv_SYS_url}" = "nil"; then
875 if test "${EMACS_cv_SYS_url}" = "t"; then
878 HAVE_url=${EMACS_cv_SYS_url}
880 if test -z ""noecho""; then
881 echo "$ac_t""$HAVE_url" 1>&6
884 if test "${HAVE_url}" = "yes"; then
885 EMACS_cv_ACCEPTABLE_URL=yes
887 EMACS_cv_ACCEPTABLE_URL=no
890 if test "${EMACS_cv_ACCEPTABLE_URL}" = "yes"; then
892 elisp="(file-name-directory (locate-library \"url\"))"
893 if test -z ""noecho""; then
894 echo $ac_n "checking for url_dir""... $ac_c" 1>&6
895 echo "configure:896: checking for url_dir" >&5
897 if eval "test \"`echo '$''{'EMACS_cv_SYS_url_dir'+set}'`\" = set"; then
898 echo $ac_n "(cached) $ac_c" 1>&6
902 echo ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1
903 ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x 'ignore) (prin1-to-string x)) nil \"${OUTPUT}\"nil 5))" >& 5 2>&1
904 retval=`cat ${OUTPUT}`
905 echo "=> ${retval}" >& 5 2>&1
907 EMACS_cv_SYS_url_dir=$retval
911 url_dir=${EMACS_cv_SYS_url_dir}
912 if test -z ""noecho""; then
913 echo "$ac_t""$url_dir" 1>&6
916 EMACS_cv_ACCEPTABLE_URL=$EMACS_cv_SYS_url_dir
921 # Check whether --with-url or --without-url was given.
922 if test "${with_url+set}" = set; then
924 EMACS_cv_ACCEPTABLE_URL=`( cd $withval && pwd || echo "$withval" ) 2> /dev/null`
927 URL=${EMACS_cv_ACCEPTABLE_URL}
929 echo "$ac_t"""${URL}"" 1>&6
932 echo $ac_n "checking for acceptable W3 version""... $ac_c" 1>&6
933 echo "configure:934: checking for acceptable W3 version" >&5
934 if eval "test \"`echo '$''{'EMACS_cv_ACCEPTABLE_W3'+set}'`\" = set"; then
935 echo $ac_n "(cached) $ac_c" 1>&6
939 if test -z ""noecho""; then
940 echo $ac_n "checking for w3-form-encode-xwfu in w3_forms""... $ac_c" 1>&6
941 echo "configure:942: checking for w3-form-encode-xwfu in w3_forms" >&5
943 library=`echo w3_forms | tr _ -`
945 elisp="(progn (fmakunbound 'w3-form-encode-xwfu) (condition-case nil (progn (require '$library) (fboundp 'w3-form-encode-xwfu)) (error (prog1 nil (message \"$library not found\")))))"
946 if test -z ""noecho""; then
947 echo $ac_n "checking for w3_forms""... $ac_c" 1>&6
948 echo "configure:949: checking for w3_forms" >&5
950 if eval "test \"`echo '$''{'EMACS_cv_SYS_w3_forms'+set}'`\" = set"; then
951 echo $ac_n "(cached) $ac_c" 1>&6
955 echo ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1
956 ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x 'ignore) (prin1-to-string x)) nil \"${OUTPUT}\"nil 5))" >& 5 2>&1
957 retval=`cat ${OUTPUT}`
958 echo "=> ${retval}" >& 5 2>&1
960 EMACS_cv_SYS_w3_forms=$retval
964 w3_forms=${EMACS_cv_SYS_w3_forms}
965 if test -z ""noecho""; then
966 echo "$ac_t""$w3_forms" 1>&6
969 if test "${EMACS_cv_SYS_w3_forms}" = "nil"; then
970 EMACS_cv_SYS_w3_forms=no
972 if test "${EMACS_cv_SYS_w3_forms}" = "t"; then
973 EMACS_cv_SYS_w3_forms=yes
975 HAVE_w3_forms=${EMACS_cv_SYS_w3_forms}
977 if test -z ""noecho""; then
978 echo "$ac_t""$HAVE_w3_forms" 1>&6
981 if test "${HAVE_w3_forms}" = "yes"; then
982 EMACS_cv_ACCEPTABLE_W3=yes
984 EMACS_cv_ACCEPTABLE_W3=no
987 if test "${EMACS_cv_ACCEPTABLE_W3}" = "yes"; then
989 elisp="(file-name-directory (locate-library \"w3-forms\"))"
990 if test -z ""noecho""; then
991 echo $ac_n "checking for w3_dir""... $ac_c" 1>&6
992 echo "configure:993: checking for w3_dir" >&5
994 if eval "test \"`echo '$''{'EMACS_cv_SYS_w3_dir'+set}'`\" = set"; then
995 echo $ac_n "(cached) $ac_c" 1>&6
999 echo ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1
1000 ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x 'ignore) (prin1-to-string x)) nil \"${OUTPUT}\"nil 5))" >& 5 2>&1
1001 retval=`cat ${OUTPUT}`
1002 echo "=> ${retval}" >& 5 2>&1
1004 EMACS_cv_SYS_w3_dir=$retval
1008 w3_dir=${EMACS_cv_SYS_w3_dir}
1009 if test -z ""noecho""; then
1010 echo "$ac_t""$w3_dir" 1>&6
1013 EMACS_cv_ACCEPTABLE_W3=$EMACS_cv_SYS_w3_dir
1018 # Check whether --with-w3 or --without-w3 was given.
1019 if test "${with_w3+set}" = set; then
1021 EMACS_cv_ACCEPTABLE_W3=`( cd $withval && pwd || echo "$withval" ) 2> /dev/null`
1024 W3=${EMACS_cv_ACCEPTABLE_W3}
1026 echo "$ac_t"""${W3}"" 1>&6
1030 cat > confcache <<\EOF
1031 # This file is a shell script that caches the results of configure
1032 # tests run on this system so they can be shared between configure
1033 # scripts and configure runs. It is not useful on other systems.
1034 # If it contains results you don't want to keep, you may remove or edit it.
1036 # By default, configure uses ./config.cache as the cache file,
1037 # creating it if it does not exist already. You can give configure
1038 # the --cache-file=FILE option to use a different cache file; that is
1039 # what configure does when it calls configure scripts in
1040 # subdirectories, so they share the cache.
1041 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1042 # config.status only pays attention to the cache file if you give it the
1043 # --recheck option to rerun configure.
1046 # The following way of writing the cache mishandles newlines in values,
1047 # but we know of no workaround that is simple, portable, and efficient.
1048 # So, don't put newlines in cache variables' values.
1049 # Ultrix sh set writes to stderr and can't be redirected directly,
1050 # and sets the high bit in the cache file unless we assign to the vars.
1052 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1054 # `set' does not quote correctly, so add quotes (double-quote substitution
1055 # turns \\\\ into \\, and sed turns \\ into \).
1057 -e "s/'/'\\\\''/g" \
1058 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1061 # `set' quotes correctly as required by POSIX, so do not add quotes.
1062 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1065 if cmp -s $cache_file confcache; then
1068 if test -w $cache_file; then
1069 echo "updating cache $cache_file"
1070 cat confcache > $cache_file
1072 echo "not updating unwritable cache $cache_file"
1077 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1079 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1080 # Let make expand exec_prefix.
1081 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1083 # Any assignment to VPATH causes Sun make to only execute
1084 # the first set of double-colon rules, so remove it if not needed.
1085 # If there is a colon in the path, we need to keep it.
1086 if test "x$srcdir" = x.; then
1087 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1090 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1092 # Transform confdefs.h into DEFS.
1093 # Protect against shell expansion while executing Makefile rules.
1094 # Protect against Makefile macro expansion.
1095 cat > conftest.defs <<\EOF
1096 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1097 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1102 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1106 # Without the "./", some shells look in PATH for config.status.
1107 : ${CONFIG_STATUS=./config.status}
1109 echo creating $CONFIG_STATUS
1110 rm -f $CONFIG_STATUS
1111 cat > $CONFIG_STATUS <<EOF
1113 # Generated automatically by configure.
1114 # Run this file to recreate the current configuration.
1115 # This directory was configured as follows,
1116 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1118 # $0 $ac_configure_args
1120 # Compiler output produced by configure, useful for debugging
1121 # configure, is in ./config.log if it exists.
1123 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1126 case "\$ac_option" in
1127 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1128 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1129 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1130 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1131 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1133 -help | --help | --hel | --he | --h)
1134 echo "\$ac_cs_usage"; exit 0 ;;
1135 *) echo "\$ac_cs_usage"; exit 1 ;;
1139 ac_given_srcdir=$srcdir
1140 ac_given_INSTALL="$INSTALL"
1142 trap 'rm -fr `echo "Makefile lisp/Makefile texi/Makefile etc/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1144 cat >> $CONFIG_STATUS <<EOF
1146 # Protect against being on the right side of a sed subst in config.status.
1147 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1148 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1152 s%@CFLAGS@%$CFLAGS%g
1153 s%@CPPFLAGS@%$CPPFLAGS%g
1154 s%@CXXFLAGS@%$CXXFLAGS%g
1155 s%@FFLAGS@%$FFLAGS%g
1157 s%@LDFLAGS@%$LDFLAGS%g
1159 s%@exec_prefix@%$exec_prefix%g
1160 s%@prefix@%$prefix%g
1161 s%@program_transform_name@%$program_transform_name%g
1162 s%@bindir@%$bindir%g
1163 s%@sbindir@%$sbindir%g
1164 s%@libexecdir@%$libexecdir%g
1165 s%@datadir@%$datadir%g
1166 s%@sysconfdir@%$sysconfdir%g
1167 s%@sharedstatedir@%$sharedstatedir%g
1168 s%@localstatedir@%$localstatedir%g
1169 s%@libdir@%$libdir%g
1170 s%@includedir@%$includedir%g
1171 s%@oldincludedir@%$oldincludedir%g
1172 s%@infodir@%$infodir%g
1173 s%@mandir@%$mandir%g
1174 s%@SET_MAKE@%$SET_MAKE%g
1175 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1176 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1177 s%@INSTALL_DATA@%$INSTALL_DATA%g
1178 s%@MAKEINFO@%$MAKEINFO%g
1180 s%@XEMACS@%$XEMACS%g
1181 s%@EMACS_FLAVOR@%$EMACS_FLAVOR%g
1182 s%@lispdir@%$lispdir%g
1183 s%@etcdir@%$etcdir%g
1184 s%@HAVE_url@%$HAVE_url%g
1186 s%@HAVE_w3_forms@%$HAVE_w3_forms%g
1192 cat >> $CONFIG_STATUS <<\EOF
1194 # Split the substitutions into bite-sized pieces for seds with
1195 # small command number limits, like on Digital OSF/1 and HP-UX.
1196 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1197 ac_file=1 # Number of current file.
1198 ac_beg=1 # First line for current file.
1199 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1202 while $ac_more_lines; do
1203 if test $ac_beg -gt 1; then
1204 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1206 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1208 if test ! -s conftest.s$ac_file; then
1210 rm -f conftest.s$ac_file
1212 if test -z "$ac_sed_cmds"; then
1213 ac_sed_cmds="sed -f conftest.s$ac_file"
1215 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1217 ac_file=`expr $ac_file + 1`
1219 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1222 if test -z "$ac_sed_cmds"; then
1227 cat >> $CONFIG_STATUS <<EOF
1229 CONFIG_FILES=\${CONFIG_FILES-"Makefile lisp/Makefile texi/Makefile etc/Makefile"}
1231 cat >> $CONFIG_STATUS <<\EOF
1232 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1233 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1235 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1236 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1237 *) ac_file_in="${ac_file}.in" ;;
1240 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1242 # Remove last slash and all that follows it. Not all systems have dirname.
1243 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1244 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1245 # The file is in a subdirectory.
1246 test ! -d "$ac_dir" && mkdir "$ac_dir"
1247 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1248 # A "../" for each directory in $ac_dir_suffix.
1249 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1251 ac_dir_suffix= ac_dots=
1254 case "$ac_given_srcdir" in
1256 if test -z "$ac_dots"; then top_srcdir=.
1257 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1258 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1260 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1261 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1264 case "$ac_given_INSTALL" in
1265 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1266 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1269 echo creating "$ac_file"
1271 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1273 *Makefile*) ac_comsub="1i\\
1274 # $configure_input" ;;
1278 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1280 s%@configure_input@%$configure_input%g
1281 s%@srcdir@%$srcdir%g
1282 s%@top_srcdir@%$top_srcdir%g
1283 s%@INSTALL@%$INSTALL%g
1284 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1289 cat >> $CONFIG_STATUS <<EOF
1292 cat >> $CONFIG_STATUS <<\EOF
1296 chmod +x $CONFIG_STATUS
1297 rm -fr confdefs* $ac_clean_files
1298 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1