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 --without-gcc don't use GCC to compile Emacs if GCC is found"
17 --without-pop don't support POP mail retrieval with movemail"
19 --with-hesiod support Hesiod to get the POP server host"
21 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)"
23 --with-xpm use -lXpm for displaying XPM images"
25 --with-jpeg use -ljpeg for displaying JPEG images"
27 --with-tiff use -ltiff for displaying TIFF images"
29 --with-gif use -lungif for displaying GIF images"
31 --with-png use -lpng for displaying PNG images"
33 --without-toolkit-scroll-bars don't use Motif or Xaw3d scroll bars"
35 --with-x use the X Window System"
37 # Initialize some variables set by options.
38 # The variables have the same names as the options, with
39 # dashes changed to underlines.
41 cache_file
=.
/config.cache
50 program_transform_name
=s
,x
,x
,
58 bindir
='${exec_prefix}/bin'
59 sbindir
='${exec_prefix}/sbin'
60 libexecdir
='${exec_prefix}/libexec'
61 datadir
='${prefix}/share'
62 sysconfdir
='${prefix}/etc'
63 sharedstatedir
='${prefix}/com'
64 localstatedir
='${prefix}/var'
65 libdir
='${exec_prefix}/lib'
66 includedir
='${prefix}/include'
67 oldincludedir
='/usr/include'
68 infodir
='${prefix}/info'
69 mandir
='${prefix}/man'
71 # Initialize some other variables.
74 SHELL
=${CONFIG_SHELL-/bin/sh}
75 # Maximum number of lines to put in a shell here document.
82 # If the previous option needs an argument, assign it.
83 if test -n "$ac_prev"; then
84 eval "$ac_prev=\$ac_option"
90 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
94 # Accept the important Cygnus configure options, so we can diagnose typos.
98 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
100 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
101 bindir
="$ac_optarg" ;;
103 -build |
--build |
--buil |
--bui |
--bu)
105 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
106 build
="$ac_optarg" ;;
108 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
109 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
110 ac_prev
=cache_file
;;
111 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
112 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
113 cache_file
="$ac_optarg" ;;
115 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
117 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
119 datadir
="$ac_optarg" ;;
121 -disable-* |
--disable-*)
122 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
128 eval "enable_${ac_feature}=no" ;;
130 -enable-* |
--enable-*)
131 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
141 eval "enable_${ac_feature}='$ac_optarg'" ;;
143 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
144 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
145 |
--exec |
--exe |
--ex)
146 ac_prev
=exec_prefix
;;
147 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
148 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
149 |
--exec=* |
--exe=* |
--ex=*)
150 exec_prefix
="$ac_optarg" ;;
152 -gas |
--gas |
--ga |
--g)
153 # Obsolete; use --with-gas.
156 -help |
--help |
--hel |
--he)
157 # Omit some internal or obsolete options to make the list less imposing.
158 # This message is too long to be a string in the A/UX 3.1 sh.
160 Usage: configure [options] [host]
161 Options: [defaults in brackets after descriptions]
163 --cache-file=FILE cache test results in FILE
164 --help print this message
165 --no-create do not create output files
166 --quiet, --silent do not print \`checking...' messages
167 --version print the version of autoconf that created configure
168 Directory and file names:
169 --prefix=PREFIX install architecture-independent files in PREFIX
171 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
173 --bindir=DIR user executables in DIR [EPREFIX/bin]
174 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
175 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
176 --datadir=DIR read-only architecture-independent data in DIR
178 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
179 --sharedstatedir=DIR modifiable architecture-independent data in DIR
181 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
182 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
183 --includedir=DIR C header files in DIR [PREFIX/include]
184 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
185 --infodir=DIR info documentation in DIR [PREFIX/info]
186 --mandir=DIR man documentation in DIR [PREFIX/man]
187 --srcdir=DIR find the sources in DIR [configure dir or ..]
188 --program-prefix=PREFIX prepend PREFIX to installed program names
189 --program-suffix=SUFFIX append SUFFIX to installed program names
190 --program-transform-name=PROGRAM
191 run sed PROGRAM on installed program names
195 --build=BUILD configure for building on BUILD [BUILD=HOST]
196 --host=HOST configure for HOST [guessed]
197 --target=TARGET configure for TARGET [TARGET=HOST]
198 Features and packages:
199 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
200 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
201 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
202 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
203 --x-includes=DIR X include files are in DIR
204 --x-libraries=DIR X library files are in DIR
206 if test -n "$ac_help"; then
207 echo "--enable and --with options recognized:$ac_help"
211 -host |
--host |
--hos |
--ho)
213 -host=* |
--host=* |
--hos=* |
--ho=*)
216 -includedir |
--includedir |
--includedi |
--included |
--include \
217 |
--includ |
--inclu |
--incl |
--inc)
218 ac_prev
=includedir
;;
219 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
220 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
221 includedir
="$ac_optarg" ;;
223 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
225 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
226 infodir
="$ac_optarg" ;;
228 -libdir |
--libdir |
--libdi |
--libd)
230 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
231 libdir
="$ac_optarg" ;;
233 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
234 |
--libexe |
--libex |
--libe)
235 ac_prev
=libexecdir
;;
236 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
237 |
--libexe=* |
--libex=* |
--libe=*)
238 libexecdir
="$ac_optarg" ;;
240 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
241 |
--localstate |
--localstat |
--localsta |
--localst \
242 |
--locals |
--local |
--loca |
--loc |
--lo)
243 ac_prev
=localstatedir
;;
244 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
245 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
246 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
247 localstatedir
="$ac_optarg" ;;
249 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
251 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
252 mandir
="$ac_optarg" ;;
255 # Obsolete; use --without-fp.
258 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
262 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
263 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
266 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
267 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
268 |
--oldin |
--oldi |
--old |
--ol |
--o)
269 ac_prev
=oldincludedir
;;
270 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
271 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
272 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
273 oldincludedir
="$ac_optarg" ;;
275 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
277 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
278 prefix
="$ac_optarg" ;;
280 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
281 |
--program-pre |
--program-pr |
--program-p)
282 ac_prev
=program_prefix
;;
283 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
284 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
285 program_prefix
="$ac_optarg" ;;
287 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
288 |
--program-suf |
--program-su |
--program-s)
289 ac_prev
=program_suffix
;;
290 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
291 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
292 program_suffix
="$ac_optarg" ;;
294 -program-transform-name |
--program-transform-name \
295 |
--program-transform-nam |
--program-transform-na \
296 |
--program-transform-n |
--program-transform- \
297 |
--program-transform |
--program-transfor \
298 |
--program-transfo |
--program-transf \
299 |
--program-trans |
--program-tran \
300 |
--progr-tra |
--program-tr |
--program-t)
301 ac_prev
=program_transform_name
;;
302 -program-transform-name=* |
--program-transform-name=* \
303 |
--program-transform-nam=* |
--program-transform-na=* \
304 |
--program-transform-n=* |
--program-transform-=* \
305 |
--program-transform=* |
--program-transfor=* \
306 |
--program-transfo=* |
--program-transf=* \
307 |
--program-trans=* |
--program-tran=* \
308 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
309 program_transform_name
="$ac_optarg" ;;
311 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
312 |
-silent |
--silent |
--silen |
--sile |
--sil)
315 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
317 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
319 sbindir
="$ac_optarg" ;;
321 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
322 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
323 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
325 ac_prev
=sharedstatedir
;;
326 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
327 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
328 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
330 sharedstatedir
="$ac_optarg" ;;
332 -site |
--site |
--sit)
334 -site=* |
--site=* |
--sit=*)
337 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
339 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
340 srcdir
="$ac_optarg" ;;
342 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
343 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
344 ac_prev
=sysconfdir
;;
345 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
346 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
347 sysconfdir
="$ac_optarg" ;;
349 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
351 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
352 target
="$ac_optarg" ;;
354 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
357 -version |
--version |
--versio |
--versi |
--vers)
358 echo "configure generated by autoconf version 2.13"
362 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
363 # Reject names that are not valid shell variable names.
364 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
365 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367 ac_package
=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}='$ac_optarg'" ;;
374 -without-* |
--without-*)
375 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
376 # Reject names that are not valid shell variable names.
377 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
378 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
380 ac_package
=`echo $ac_package| sed 's/-/_/g'`
381 eval "with_${ac_package}=no" ;;
384 # Obsolete; use --with-x.
387 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
388 |
--x-incl |
--x-inc |
--x-in |
--x-i)
389 ac_prev
=x_includes
;;
390 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
391 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
392 x_includes
="$ac_optarg" ;;
394 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
395 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
396 ac_prev
=x_libraries
;;
397 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
398 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
399 x_libraries
="$ac_optarg" ;;
401 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
405 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
406 echo "configure: warning: $ac_option: invalid host type" 1>&2
408 if test "x$nonopt" != xNONE
; then
409 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
417 if test -n "$ac_prev"; then
418 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
421 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
423 # File descriptor usage:
426 # 2 errors and warnings
427 # 3 some systems may open it to /dev/tty
428 # 4 used on the Kubota Titan
429 # 6 checking for... messages and results
430 # 5 compiler messages saved in config.log
431 if test "$silent" = yes; then
439 This file contains any messages produced by compilers while
440 running configure, to aid debugging if configure makes a mistake.
443 # Strip out --no-create and --no-recursion so they do not pile up.
444 # Also quote any args containing shell metacharacters.
449 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
450 |
--no-cr |
--no-c) ;;
451 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
452 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
453 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
454 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
455 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
460 # Only set these to C if already set. These must not be set unconditionally
461 # because not all systems understand e.g. LANG=C (notably SCO).
462 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
463 # Non-C LC_CTYPE values break the ctype check.
464 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
465 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
466 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
467 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
469 # confdefs.h avoids OS command line length limits that DEFS can exceed.
470 rm -rf conftest
* confdefs.h
471 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
474 # A filename unique to this package, relative to the directory that
475 # configure is in, which we can look for to find out if srcdir is correct.
476 ac_unique_file
=src
/lisp.h
478 # Find the source files, if location was not specified.
479 if test -z "$srcdir"; then
480 ac_srcdir_defaulted
=yes
481 # Try the directory containing this script, then its parent.
483 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
484 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
486 if test ! -r $srcdir/$ac_unique_file; then
490 ac_srcdir_defaulted
=no
492 if test ! -r $srcdir/$ac_unique_file; then
493 if test "$ac_srcdir_defaulted" = yes; then
494 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
496 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
499 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
501 # Prefer explicitly selected file to automatically selected ones.
502 if test -z "$CONFIG_SITE"; then
503 if test "x$prefix" != xNONE
; then
504 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
506 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
509 for ac_site_file
in $CONFIG_SITE; do
510 if test -r "$ac_site_file"; then
511 echo "loading site script $ac_site_file"
516 if test -r "$cache_file"; then
517 echo "loading cache $cache_file"
520 echo "creating cache $cache_file"
525 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
526 ac_cpp
='$CPP $CPPFLAGS'
527 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
528 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
529 cross_compiling
=$ac_cv_prog_cc_cross
533 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
534 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
535 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
542 ac_n
= ac_c
='\c' ac_t
=
548 lispdir
='${datadir}/emacs/${version}/lisp'
549 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
550 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
551 lisppath
='${locallisppath}:${lispdir}'
552 etcdir
='${datadir}/emacs/${version}/etc'
553 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
554 docdir
='${datadir}/emacs/${version}/etc'
556 # Check whether --with-gcc or --without-gcc was given.
557 if test "${with_gcc+set}" = set; then
562 # Check whether --with-pop or --without-pop was given.
563 if test "${with_pop+set}" = set; then
565 if test "$withval" = yes; then
566 cat >> confdefs.h
<<\EOF
567 #define MAIL_USE_POP 1
573 cat >> confdefs.h
<<\EOF
574 #define MAIL_USE_POP 1
579 # Check whether --with-hesiod or --without-hesiod was given.
580 if test "${with_hesiod+set}" = set; then
581 withval
="$with_hesiod"
582 cat >> confdefs.h
<<\EOF
588 # Check whether --with-x-toolkit or --without-x-toolkit was given.
589 if test "${with_x_toolkit+set}" = set; then
590 withval
="$with_x_toolkit"
592 y | ye |
yes ) val
=athena
;;
594 l | lu | luc | luci | lucid
) val
=lucid
;;
595 a |
at | ath | athe | athen | athena
) val
=athena
;;
596 m | mo | mot | moti | motif
) val
=motif
;;
598 { echo "configure: error: \`--with-x-toolkit=$withval' is invalid\;
599 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
600 Currently, \`yes', \`athena' and \`lucid' are synonyms." 1>&2; exit 1; }
607 # Check whether --with-xpm or --without-xpm was given.
608 if test "${with_xpm+set}" = set; then
613 # Check whether --with-jpeg or --without-jpeg was given.
614 if test "${with_jpeg+set}" = set; then
619 # Check whether --with-tiff or --without-tiff was given.
620 if test "${with_tiff+set}" = set; then
625 # Check whether --with-gif or --without-gif was given.
626 if test "${with_gif+set}" = set; then
631 # Check whether --with-png or --without-png was given.
632 if test "${with_png+set}" = set; then
637 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
638 if test "${with_toolkit_scroll_bars+set}" = set; then
639 withval
="$with_toolkit_scroll_bars"
644 #### Make srcdir absolute, if it isn't already. It's important to
645 #### avoid running the path through pwd unnecessary, since pwd can
646 #### give you automounter prefixes, which can go away. We do all this
647 #### so Emacs can find its files when run uninstalled.
651 ## We may be able to use the $PWD environment variable to make this
652 ## absolute. But sometimes PWD is inaccurate.
653 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
655 if test "${PWD}" != "" && test "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`" ;
659 srcdir
="`(cd ${srcdir}; pwd)`"
662 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
665 #### Check if the source directory already has a configured system in it.
666 if test `pwd` != `(cd ${srcdir} && pwd)` \
667 && test -f "${srcdir}/src/config.h" ; then
668 echo "configure: warning: The directory tree \`${srcdir}' is being used
669 as a build directory right now; it has been configured in its own
670 right. To configure in another directory as well, you MUST
671 use GNU make. If you do not have GNU make, then you must
672 now do \`make distclean' in ${srcdir},
673 and then run $0 again." 1>&2
675 extrasub
='/^VPATH[ ]*=/c\
681 vpath %.in $(srcdir)\
682 vpath %.texi $(srcdir)'
685 #### Given the configuration name, set machfile and opsysfile to the
686 #### names of the m/*.h and s/*.h files we should use.
688 ### Canonicalize the configuration name.
691 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
692 if test -f $ac_dir/install-sh
; then
694 ac_install_sh
="$ac_aux_dir/install-sh -c"
696 elif test -f $ac_dir/install.sh
; then
698 ac_install_sh
="$ac_aux_dir/install.sh -c"
702 if test -z "$ac_aux_dir"; then
703 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
705 ac_config_guess
=$ac_aux_dir/config.guess
706 ac_config_sub
=$ac_aux_dir/config.sub
707 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
710 # Make sure we can run config.sub.
711 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
712 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
715 echo $ac_n "checking host system type""... $ac_c" 1>&6
716 echo "configure:717: checking host system type" >&5
719 case "$host_alias" in
723 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
724 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
726 *) host_alias
=$nonopt ;;
730 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
731 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
732 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
733 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
734 echo "$ac_t""$host" 1>&6
737 configuration
=$host_alias
740 ### If you add support for a new configuration, add code to this
741 ### switch statement to recognize your configuration name and select
742 ### the appropriate operating system and machine description files.
744 ### You would hope that you could choose an m/*.h file pretty much
745 ### based on the machine portion of the configuration name, and an s-
746 ### file based on the operating system portion. However, it turns out
747 ### that each m/*.h file is pretty manufacturer-specific - for
748 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
749 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
750 ### machines. So we basically have to have a special case for each
751 ### configuration name.
753 ### As far as handling version numbers on operating systems is
754 ### concerned, make sure things will fail in a fixable way. If
755 ### /etc/MACHINES doesn't say anything about version numbers, be
756 ### prepared to handle anything reasonably. If version numbers
757 ### matter, be sure /etc/MACHINES says something about it.
759 ### Eric Raymond says we should accept strings like "sysvr4" to mean
760 ### "System V Release 4"; he writes, "The old convention encouraged
761 ### confusion between `system' and `release' levels'."
763 machine
='' opsys
='' unported
=no
764 case "${canonical}" in
769 case "${canonical}" in
770 alpha
*-*-netbsd*) machine
=alpha
;;
771 i
[3456]86-*-netbsd*) machine
=intel386
;;
773 # This is somewhat bogus.
774 machine
=hp9000s300
;;
775 powerpc-apple-netbsd
*) machine
=macppc
;;
776 mips-
*-netbsd*) machine
=pmax
;;
777 ns32k-
*-netbsd*) machine
=ns32000
;;
778 sparc-
*-netbsd*) machine
=sparc
;;
779 vax-
*-netbsd*) machine
=vax
;;
786 case "${canonical}" in
787 alpha
*-*-openbsd*) machine
=alpha
;;
788 i386-
*-openbsd*) machine
=intel386
;;
789 m68k-
*-openbsd*) machine
=hp9000s300
;;
790 mipsel-
*-openbsd*) machine
=pmax
;;
791 ns32k-
*-openbsd*) machine
=ns32000
;;
792 sparc-
*-openbsd*) machine
=sparc
;;
793 vax-
*-openbsd*) machine
=vax
;;
798 arm-acorn-riscix1.1
* )
799 machine
=acorn opsys
=riscix1-1
801 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
802 ## This name is riscix12 instead of riscix1.2
803 ## to avoid a file name conflict on MSDOS.
804 machine
=acorn opsys
=riscix12
810 case "${canonical}" in
811 i
[345]86-*-bsdi*) machine
=intel386
;;
812 sparc-
*-bsdi*) machine
=sparc
;;
813 powerpc-
*-bsdi*) machine
=powerpc
;;
815 case "${canonical}" in
816 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
817 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
818 *-*-bsdi2* ) opsys
=bsdos2-1
;;
819 *-*-bsdi3* ) opsys
=bsdos3
;;
820 *-*-bsdi4* ) opsys
=bsdos4
;;
825 ## Strictly speaking, we need the version of the alliant operating
826 ## system to choose the right machine file, but currently the
827 ## configuration name doesn't tell us enough to choose the right
828 ## one; we need to give alliants their own operating system name to
829 ## do this right. When someone cares, they can help us.
831 machine
=alliant4 opsys
=bsd4-2
834 machine
=alliant-2800 opsys
=bsd4-3
837 ## Alpha (DEC) machines.
839 machine
=alpha opsys
=osf1
840 # This is needed to find X11R6.1 libraries for certain tests.
841 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
842 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
845 alpha
*-*-linux-gnu* )
846 machine
=alpha opsys
=gnu-linux
851 machine
=altos opsys
=usg5-2
856 machine
=amdahl opsys
=usg5-2-2
861 machine
=apollo opsys
=bsd4-3
864 ## AT&T 3b2, 3b5, 3b15, 3b20
866 machine
=att3b opsys
=usg5-2-2
869 ## AT&T 3b1 - The Mighty Unix PC!
871 machine
=7300 opsys
=usg5-2-2
876 machine
=ibmrs6000 opsys
=aix3-2
881 machine
=dpx2 opsys
=usg5-3
886 machine
=sps7 opsys
=usg5-2
889 ## CCI 5/32, 6/32 -- see "Tahoe".
892 ## I don't know what configuration name to use for this; config.sub
893 ## doesn't seem to know anything about it. Hey, Celerity users, get
895 celerity-celerity-bsd
* )
896 machine
=celerity opsys
=bsd4-2
900 ## What operating systems does this chip run that Emacs has been
904 ## We'll use the catch-all code at the bottom to guess the
909 *-convex-bsd* |
*-convex-convexos* )
910 machine
=convex opsys
=bsd4-3
911 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
912 NON_GNU_CPP
="cc -E -P"
916 i
[3456]86-cubix-sysv* )
917 machine
=intel386 opsys
=usg5-3
921 cydra
*-cydrome-sysv* )
922 machine
=cydra5 opsys
=usg5-3
925 ## Data General AViiON Machines
926 ## DG changed naming conventions with the release of 5.4.4.10, they
927 ## dropped the initial 5.4 but left the intervening R. Because of the
928 ## R this shouldn't conflict with older versions of the OS (which I
929 ## think were named like dgux4.*). In addition, DG new AViiONs series
930 ## uses either Motorola M88k or Intel Pentium CPUs.
931 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
932 machine
=aviion opsys
=dgux4
934 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
935 ## This name is dgux5-4-3 instead of dgux5-4r3
936 ## to avoid a file name conflict on MSDOS.
937 machine
=aviion opsys
=dgux5-4-3
939 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
940 machine
=aviion opsys
=dgux5-4r2
943 machine
=aviion opsys
=dgux
946 ## Data General AViiON Intel (x86) Machines
947 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
948 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
949 i
[345]86-dg-dguxR4* )
950 machine
=aviion-intel opsys
=dgux4
954 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
955 machine
=pmax opsys
=bsd4-2
957 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
958 machine
=pmax opsys
=bsd4-3
961 machine
=pmax opsys
=ultrix4-3
964 machine
=pmax opsys
=osf1
966 mips-dec-mach_bsd4.3
* )
967 machine
=pmax opsys
=mach-bsd4-3
970 ## Motorola Delta machines
971 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
972 machine
=delta opsys
=usg5-3
973 if test -z "`type gnucc | grep 'not found'`"
975 if test -s /etc
/167config
976 then CC
="gnucc -m68040"
977 else CC
="gnucc -m68881"
980 if test -z "`type gcc | grep 'not found'`"
986 m88k-motorola-sysv4
* )
987 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
988 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
989 # I hope there are not other 4.0 versions for this machine
990 # which really need usg5-4 instead.
991 machine
=delta88k opsys
=usg5-4-2
993 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
994 machine
=delta88k opsys
=usg5-3
999 machine
=dual opsys
=usg5-2
1001 m68
*-dual-uniplus* )
1002 machine
=dual opsys
=unipl5-2
1007 machine
=elxsi opsys
=usg5-2
1012 machine
=ns16000 opsys
=umax
1015 ## The GEC 93 - apparently, this port isn't really finished yet.
1017 ## Gould Power Node and NP1
1019 machine
=gould opsys
=bsd4-2
1022 machine
=gould opsys
=bsd4-3
1025 machine
=gould-np1 opsys
=bsd4-3
1028 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1029 ## as far as Emacs is concerned).
1031 # Build needs to be different on 7.0 and later releases
1032 case "`uname -r`" in
1033 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1034 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1036 NON_GNU_CPP
="/lib/cpp"
1038 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1040 machine
=nh3000 opsys
=cxux
1042 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1043 powerpc-harris-powerunix
)
1044 machine
=nh6000 opsys
=powerunix
1045 NON_GNU_CPP
="cc -Xo -E -P"
1047 ## SR2001/SR2201 running HI-UX/MPP
1048 hppa1.1
-hitachi-hiuxmpp* )
1049 machine
=sr2k opsys
=hiuxmpp
1052 xps
*-honeywell-sysv* )
1053 machine
=xps100 opsys
=usg5-2
1056 ## HP 9000 series 200 or 300
1058 machine
=hp9000s300 opsys
=bsd4-3
1060 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1062 case "`uname -r`" in
1063 ## Someone's system reports A.B8.05 for this.
1064 ## I wonder what other possibilities there are.
1065 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1066 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1067 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1068 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
1069 *) machine
=hp9000s300 opsys
=hpux
;;
1073 ## HP 9000 series 700 and 800, running HP/UX
1075 machine
=hp800 opsys
=hpux
1078 machine
=hp800 opsys
=hpux8
1080 hppa
*-hp-hpux9shr* )
1081 machine
=hp800 opsys
=hpux9shr
1084 machine
=hp800 opsys
=hpux9
1086 hppa
*-hp-hpux1[0-9]* )
1087 machine
=hp800 opsys
=hpux10
1090 ## HP 9000 series 700 and 800, running HP/UX
1092 ## Cross-compilation? Nah!
1093 case "`uname -r`" in
1094 ## Someone's system reports A.B8.05 for this.
1095 ## I wonder what other possibilities there are.
1096 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
1097 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
1098 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
1099 *) machine
=hp800 opsys
=hpux10
;;
1103 machine
=hp800 opsys
=nextstep
1108 machine
=orion opsys
=bsd4-2
1110 clipper-orion-bsd
* )
1111 machine
=orion105 opsys
=bsd4-2
1115 i
[3456]86-ibm-aix1.1
* )
1116 machine
=ibmps2-aix opsys
=usg5-2-2
1118 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
1119 machine
=ibmps2-aix opsys
=usg5-3
1122 machine
=ibm370aix opsys
=usg5-3
1124 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
1125 machine
=ibmrs6000 opsys
=aix3-1
1127 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
1128 machine
=ibmrs6000 opsys
=aix3-2-5
1130 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
1131 machine
=ibmrs6000 opsys
=aix4-1
1133 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
1134 machine
=ibmrs6000 opsys
=aix4-2
1136 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
1137 machine
=ibmrs6000 opsys
=aix4
1139 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
1140 machine
=ibmrs6000 opsys
=aix4-1
1142 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
1143 machine
=ibmrs6000 opsys
=aix3-2
1146 machine
=ibmrt opsys
=bsd4-3
1149 machine
=ibmrt opsys
=bsd4-2
1152 machine
=ibmrt opsys
=bsd4-3
1155 machine
=ibmrt opsys
=bsd4-2
1158 machine
=ibmrt opsys
=bsd4-3
1161 machine
=ibmrt opsys
=bsd4-3
1164 machine
=ibmrt-aix opsys
=usg5-2-2
1167 ## Integrated Solutions `Optimum V'
1169 machine
=isi-ov opsys
=bsd4-2
1172 machine
=isi-ov opsys
=bsd4-3
1175 ## Intel 386 machines where we do care about the manufacturer
1176 i
[3456]86-intsys-sysv* )
1177 machine
=is386 opsys
=usg5-2-2
1181 i
[3456]86-prime-sysv* )
1182 machine
=i386 opsys
=usg5-3
1185 ## Sequent Symmetry running Dynix
1186 i
[3456]86-sequent-bsd* )
1187 machine
=symmetry opsys
=bsd4-3
1190 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
1191 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
1192 machine
=sequent-ptx opsys
=ptx4
1193 NON_GNU_CPP
=/lib
/cpp
1196 ## Sequent Symmetry running DYNIX/ptx
1197 ## Use the old cpp rather than the newer ANSI one.
1198 i
[3456]86-sequent-ptx* )
1199 machine
=sequent-ptx opsys
=ptx
1200 NON_GNU_CPP
="/lib/cpp"
1203 ## ncr machine running svr4.3.
1204 i
[3456]86-ncr-sysv4.3
)
1205 machine
=ncr386 opsys
=usg5-4-3
1208 ## Unspecified sysv on an ncr machine defaults to svr4.2.
1209 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
1210 i
[3456]86-ncr-sysv* )
1211 machine
=ncr386 opsys
=usg5-4-2
1214 ## Intel Paragon OSF/1
1216 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
1221 machine
=i860 opsys
=usg5-4
1222 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
1223 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
1226 ## Masscomp machines
1227 m68
*-masscomp-rtu* )
1228 machine
=masscomp opsys
=rtu
1231 ## Megatest machines
1232 m68
*-megatest-bsd* )
1233 machine
=mega68 opsys
=bsd4-2
1236 ## Workstations sold by MIPS
1237 ## This is not necessarily all workstations using the MIPS processor -
1238 ## Irises are produced by SGI, and DECstations by DEC.
1240 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
1241 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
1242 ## it gives for choosing between the alternatives seems to be "Use
1243 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
1244 ## the BSD world." I'll assume that these are instructions for
1245 ## handling two odd situations, and that every other situation
1246 ## should use mips.h and usg5-2-2, they being listed first.
1249 ## Fall through to the general code at the bottom to decide on the OS.
1251 mips-mips-riscos4
* )
1252 machine
=mips4 opsys
=bsd4-3
1253 NON_GNU_CC
="cc -systype bsd43"
1254 NON_GNU_CPP
="cc -systype bsd43 -E"
1256 mips-mips-riscos5
* )
1257 machine
=mips4 opsys
=riscos5
1258 NON_GNU_CC
="cc -systype bsd43"
1259 NON_GNU_CPP
="cc -systype bsd43 -E"
1262 machine
=mips opsys
=bsd4-3
1265 machine
=mips opsys
=usg5-2-2
1269 m68
*-next-* | m68k-
*-nextstep* )
1270 machine
=m68k opsys
=nextstep
1273 ## The complete machine from National Semiconductor
1275 machine
=ns32000 opsys
=usg5-2
1279 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
1280 machine
=tower32 opsys
=usg5-2-2
1282 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
1283 machine
=tower32v3 opsys
=usg5-3
1288 machine
=ews4800 opsys
=ux4800
1291 ## Nixdorf Targon 31
1292 m68
*-nixdorf-sysv* )
1293 machine
=targon31 opsys
=usg5-2-2
1298 machine
=nu opsys
=usg5-2
1303 machine
=plexus opsys
=usg5-2
1306 ## PowerPC reference platform
1307 powerpcle-
*-solaris2* )
1313 ## I don't really have any idea what sort of processor the Pyramid has,
1314 ## so I'm assuming it is its own architecture.
1315 pyramid-pyramid-bsd
* )
1316 machine
=pyramid opsys
=bsd4-2
1320 ns32k-sequent-bsd4.2
* )
1321 machine
=sequent opsys
=bsd4-2
1323 ns32k-sequent-bsd4.3
* )
1324 machine
=sequent opsys
=bsd4-3
1328 mips-siemens-sysv
* | mips-sni-sysv
*)
1329 machine
=mips-siemens opsys
=usg5-4
1330 NON_GNU_CC
=/usr
/ccs
/bin
/cc
1331 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1334 ## Silicon Graphics machines
1335 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
1337 machine
=irist opsys
=iris3-5
1339 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
1340 machine
=irist opsys
=iris3-6
1344 machine
=iris4d opsys
=irix3-3
1347 machine
=iris4d opsys
=irix4-0
1350 machine
=iris4d opsys
=irix6-5
1351 # Without defining _LANGUAGE_C, things get masked out in the headers
1352 # so that, for instance, grepping for `free' in stdlib.h fails and
1353 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
1354 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
1355 NON_GCC_TEST_OPTIONS
="-n32 -G0 -D_LANGUAGE_C"
1358 machine
=iris4d opsys
=irix6-0
1359 # It's not clear whether -D_LANGUAGE_C is necessary as for 6.5,
1360 # but presumably it does no harm.
1361 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
1362 NON_GCC_TEST_OPTIONS
=-32
1364 mips-sgi-irix5.
[01]* )
1365 machine
=iris4d opsys
=irix5-0
1367 mips-sgi-irix5
* | mips-sgi-irix
* )
1368 machine
=iris4d opsys
=irix5-2
1373 machine
=news opsys
=bsd4-2
1376 machine
=news opsys
=bsd4-3
1378 m68
*-sony-newsos3* | m68
*-sony-news3*)
1379 machine
=news opsys
=bsd4-3
1381 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
1382 machine
=news-risc opsys
=bsd4-3
1384 mips-sony-newsos6
* )
1385 machine
=news-r6 opsys
=newsos6
1388 machine
=news-risc opsys
=newsos5
1393 machine
=stride opsys
=usg5-2
1397 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
1398 machine
=sparc opsys
=gnu-linux
1401 *-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
1402 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
1403 | rs6000-
*-solaris2*)
1404 case "${canonical}" in
1405 m68
*-sunos1* ) machine
=sun1
;;
1406 m68
*-sunos2* ) machine
=sun2
;;
1407 m68
* ) machine
=sun3
;;
1408 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
1409 i
[3456]86-*-* ) machine
=intel386
;;
1410 powerpcle
* ) machine
=powerpcle
;;
1411 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
1412 sparc
* ) machine
=sparc
;;
1415 case "${canonical}" in
1416 ## The Sun386 didn't get past 4.0.
1417 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
1418 *-sunos4.0
* ) opsys
=sunos4-0
;;
1419 *-sunos4.1.
[3-9]*noshare
)
1420 ## This name is sunos413 instead of sunos4-1-3
1421 ## to avoid a file name conflict on MSDOS.
1423 NON_GNU_CPP
=/usr
/lib
/cpp
1424 NON_GCC_TEST_OPTIONS
=-Bstatic
1425 GCC_TEST_OPTIONS
=-static
1427 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
1429 NON_GNU_CPP
=/usr
/lib
/cpp
1431 *-sunos4* |
*-sunos )
1433 NON_GCC_TEST_OPTIONS
=-Bstatic
1434 GCC_TEST_OPTIONS
=-static
1436 *-sunos5.3
* |
*-solaris2.3
* )
1438 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1440 *-sunos5.4
* |
*-solaris2.4
* )
1442 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1445 *-sunos5.5
* |
*-solaris2.5
* )
1447 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1450 *-sunos5* |
*-solaris* )
1452 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1456 ## Watch out for a compiler that we know will not work.
1457 case "${canonical}" in
1458 *-solaris* |
*-sunos5* )
1459 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
1460 ## /usr/ucb/cc doesn't work;
1461 ## we should find some other compiler that does work.
1469 machine
=sparc opsys
=nextstep
1473 m68
*-tadpole-sysv* )
1474 machine
=tad68k opsys
=usg5-3
1478 tahoe-tahoe-bsd4.2
* )
1479 machine
=tahoe opsys
=bsd4-2
1481 tahoe-tahoe-bsd4.3
* )
1482 machine
=tahoe opsys
=bsd4-3
1485 ## Tandem Integrity S2
1487 machine
=tandem-s2 opsys
=usg5-3
1491 m88k-tektronix-sysv3
* )
1492 machine
=tekxd88 opsys
=usg5-3
1495 ## Tektronix 16000 box (6130?)
1496 ns16k-tektronix-bsd
* )
1497 machine
=ns16000 opsys
=bsd4-2
1500 ## src/m/tek4300.h hints that this is a m68k machine.
1501 m68
*-tektronix-bsd* )
1502 machine
=tek4300 opsys
=bsd4-3
1506 ## We seem to have lost the machine-description file titan.h!
1508 machine
=titan opsys
=usg5-3
1511 ## Ustation E30 (SS5E)
1512 m68
*-unisys-uniplus* )
1513 machine
=ustation opsystem
=unipl5-2
1519 case "${canonical}" in
1520 *-bsd4.1
* ) opsys
=bsd4-1
;;
1521 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
1522 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
1523 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
1524 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
1525 *-vms* ) opsys
=vms
;;
1531 ns16k-whitechapel-
* )
1533 ## We don't know what sort of OS runs on these; we'll let the
1534 ## operating system guessing code below try.
1539 machine
=wicat opsys
=usg5-2
1542 ## Intel 386 machines where we don't care about the manufacturer
1545 case "${canonical}" in
1546 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
1547 *-isc2.2
* ) opsys
=isc2-2
;;
1548 *-isc4.0
* ) opsys
=isc4-0
;;
1549 *-isc4.
* ) opsys
=isc4-1
1550 GCC_TEST_OPTIONS
=-posix
1551 NON_GCC_TEST_OPTIONS
=-Xp
1553 *-isc* ) opsys
=isc3-0
;;
1554 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
1555 *-esix* ) opsys
=esix
;;
1556 *-xenix* ) opsys
=xenix
;;
1557 *-linux-gnu* ) opsys
=gnu-linux
;;
1558 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
1559 *-sco3.2v5
* ) opsys
=sco5
1560 NON_GNU_CPP
=/lib
/cpp
1561 # Prevent -belf from being passed to $CPP.
1562 # /lib/cpp does not accept it.
1563 OVERRIDE_CPPFLAGS
=" "
1565 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
1566 *-386bsd* ) opsys
=386bsd
;;
1567 *-freebsd* ) opsys
=freebsd
;;
1568 *-nextstep* ) opsys
=nextstep
;;
1569 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
1573 ## m68k Linux-based GNU system
1575 machine
=m68k opsys
=gnu-linux
1578 ## Mips Linux-based GNU system
1580 machine
=mips opsys
=gnu-linux
1584 sparc-fujitsu-sysv4
* )
1585 machine
=sparc opsys
=uxpds
1586 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1591 f301-fujitsu-uxpv4.1
)
1592 machine
=f301 opsys
=uxpv
1600 ### If the code above didn't choose an operating system, just choose
1601 ### an operating system based on the configuration name. You really
1602 ### only want to use this when you have no idea what the right
1603 ### operating system is; if you know what operating systems a machine
1604 ### runs, it's cleaner to make it explicit in the case statement
1606 if test x
"${opsys}" = x
; then
1607 case "${canonical}" in
1608 *-gnu* ) opsys
=gnu
;;
1609 *-bsd4.
[01] ) opsys
=bsd4-1
;;
1610 *-bsd4.2
) opsys
=bsd4-2
;;
1611 *-bsd4.3
) opsys
=bsd4-3
;;
1612 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
1613 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
1614 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
1615 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
1616 *-sysv4.2uw
* ) opsys
=unixware
;;
1617 *-sysv4.1
* |
*-sysvr4.1
* )
1618 NON_GNU_CPP
=/usr
/lib
/cpp
1620 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
1621 if [ x
$NON_GNU_CPP = x
]; then
1622 if [ -f /usr
/ccs
/lib
/cpp
]; then
1623 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1625 NON_GNU_CPP
=/lib
/cpp
1629 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
1636 if test "x$RANLIB" = x
; then
1641 if test $unported = yes; then
1642 { echo "configure: error: Emacs hasn't been ported to \`${canonical}' systems.
1643 Check \`etc/MACHINES' for recognized configuration names." 1>&2; exit 1; }
1646 machfile
="m/${machine}.h"
1647 opsysfile
="s/${opsys}.h"
1650 #### Choose a compiler.
1651 test -n "$CC" && cc_specified
=yes
1653 # Save the value of CFLAGS that the user specified.
1654 SPECIFIED_CFLAGS
="$CFLAGS"
1657 "yes" ) CC
="gcc" GCC
=yes ;;
1658 "no" ) : ${CC=cc} ;;
1659 * ) # Extract the first word of "gcc", so it can be a program name with args.
1660 set dummy gcc
; ac_word
=$2
1661 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1662 echo "configure:1663: checking for $ac_word" >&5
1663 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1664 echo $ac_n "(cached) $ac_c" 1>&6
1666 if test -n "$CC"; then
1667 ac_cv_prog_CC
="$CC" # Let the user override the test.
1669 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1671 for ac_dir
in $ac_dummy; do
1672 test -z "$ac_dir" && ac_dir
=.
1673 if test -f $ac_dir/$ac_word; then
1682 if test -n "$CC"; then
1683 echo "$ac_t""$CC" 1>&6
1685 echo "$ac_t""no" 1>&6
1688 if test -z "$CC"; then
1689 # Extract the first word of "cc", so it can be a program name with args.
1690 set dummy cc
; ac_word
=$2
1691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1692 echo "configure:1693: checking for $ac_word" >&5
1693 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1694 echo $ac_n "(cached) $ac_c" 1>&6
1696 if test -n "$CC"; then
1697 ac_cv_prog_CC
="$CC" # Let the user override the test.
1699 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1702 for ac_dir
in $ac_dummy; do
1703 test -z "$ac_dir" && ac_dir
=.
1704 if test -f $ac_dir/$ac_word; then
1705 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1706 ac_prog_rejected
=yes
1714 if test $ac_prog_rejected = yes; then
1715 # We found a bogon in the path, so make sure we never use it.
1716 set dummy
$ac_cv_prog_CC
1718 if test $# -gt 0; then
1719 # We chose a different compiler from the bogus one.
1720 # However, it has the same basename, so the bogon will be chosen
1721 # first if we set CC to just the basename; use the full file name.
1723 set dummy
"$ac_dir/$ac_word" "$@"
1731 if test -n "$CC"; then
1732 echo "$ac_t""$CC" 1>&6
1734 echo "$ac_t""no" 1>&6
1737 if test -z "$CC"; then
1738 case "`uname -s`" in
1740 # Extract the first word of "cl", so it can be a program name with args.
1741 set dummy cl
; ac_word
=$2
1742 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1743 echo "configure:1744: checking for $ac_word" >&5
1744 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1745 echo $ac_n "(cached) $ac_c" 1>&6
1747 if test -n "$CC"; then
1748 ac_cv_prog_CC
="$CC" # Let the user override the test.
1750 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1752 for ac_dir
in $ac_dummy; do
1753 test -z "$ac_dir" && ac_dir
=.
1754 if test -f $ac_dir/$ac_word; then
1763 if test -n "$CC"; then
1764 echo "$ac_t""$CC" 1>&6
1766 echo "$ac_t""no" 1>&6
1771 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1774 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1775 echo "configure:1776: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1778 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1779 ac_cpp
='$CPP $CPPFLAGS'
1780 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1781 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1782 cross_compiling
=$ac_cv_prog_cc_cross
1784 cat > conftest.
$ac_ext << EOF
1786 #line 1787 "configure"
1787 #include "confdefs.h"
1791 if { (eval echo configure
:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1792 ac_cv_prog_cc_works
=yes
1793 # If we can't run a trivial program, we are probably using a cross compiler.
1794 if (.
/conftest
; exit) 2>/dev
/null
; then
1795 ac_cv_prog_cc_cross
=no
1797 ac_cv_prog_cc_cross
=yes
1800 echo "configure: failed program was:" >&5
1801 cat conftest.
$ac_ext >&5
1802 ac_cv_prog_cc_works
=no
1806 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1807 ac_cpp
='$CPP $CPPFLAGS'
1808 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1809 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1810 cross_compiling
=$ac_cv_prog_cc_cross
1812 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1813 if test $ac_cv_prog_cc_works = no
; then
1814 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1816 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1817 echo "configure:1818: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1818 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1819 cross_compiling
=$ac_cv_prog_cc_cross
1821 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1822 echo "configure:1823: checking whether we are using GNU C" >&5
1823 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1824 echo $ac_n "(cached) $ac_c" 1>&6
1826 cat > conftest.c
<<EOF
1831 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1838 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1840 if test $ac_cv_prog_gcc = yes; then
1846 ac_test_CFLAGS
="${CFLAGS+set}"
1847 ac_save_CFLAGS
="$CFLAGS"
1849 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1850 echo "configure:1851: checking whether ${CC-cc} accepts -g" >&5
1851 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1852 echo $ac_n "(cached) $ac_c" 1>&6
1854 echo 'void f(){}' > conftest.c
1855 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1864 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1865 if test "$ac_test_CFLAGS" = set; then
1866 CFLAGS
="$ac_save_CFLAGS"
1867 elif test $ac_cv_prog_cc_g = yes; then
1868 if test "$GCC" = yes; then
1874 if test "$GCC" = yes; then
1883 # On Suns, sometimes $CPP names a directory.
1884 if test -n "$CPP" && test -d "$CPP"; then
1888 #### Some systems specify a CPP to use unless we are using GCC.
1889 #### Now that we know whether we are using GCC, we can decide whether
1890 #### to use that one.
1891 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
1896 #### Some systems specify a CC to use unless we are using GCC.
1897 #### Now that we know whether we are using GCC, we can decide whether
1898 #### to use that one.
1899 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
1900 test x
$cc_specified != xyes
1905 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
1907 CC
="$CC $GCC_TEST_OPTIONS"
1910 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
1912 CC
="$CC $NON_GCC_TEST_OPTIONS"
1915 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
1917 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
1920 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
1922 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
1925 #### Some other nice autoconf tests. If you add a test here which
1926 #### should make an entry in src/config.h, don't forget to add an
1927 #### #undef clause to src/config.h.in for autoconf to modify.
1929 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1930 echo "configure:1931: checking whether ln -s works" >&5
1931 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1932 echo $ac_n "(cached) $ac_c" 1>&6
1935 if ln -s X conftestdata
2>/dev
/null
1938 ac_cv_prog_LN_S
="ln -s"
1943 LN_S
="$ac_cv_prog_LN_S"
1944 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1945 echo "$ac_t""yes" 1>&6
1947 echo "$ac_t""no" 1>&6
1950 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1951 echo "configure:1952: checking how to run the C preprocessor" >&5
1952 # On Suns, sometimes $CPP names a directory.
1953 if test -n "$CPP" && test -d "$CPP"; then
1956 if test -z "$CPP"; then
1957 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1958 echo $ac_n "(cached) $ac_c" 1>&6
1960 # This must be in double quotes, not single quotes, because CPP may get
1961 # substituted into the Makefile and "${CC-cc}" will confuse make.
1963 # On the NeXT, cc -E runs the code through the compiler's parser,
1964 # not just through cpp.
1965 cat > conftest.
$ac_ext <<EOF
1966 #line 1967 "configure"
1967 #include "confdefs.h"
1971 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1972 { (eval echo configure
:1973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1973 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1974 if test -z "$ac_err"; then
1978 echo "configure: failed program was:" >&5
1979 cat conftest.
$ac_ext >&5
1981 CPP
="${CC-cc} -E -traditional-cpp"
1982 cat > conftest.
$ac_ext <<EOF
1983 #line 1984 "configure"
1984 #include "confdefs.h"
1988 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1989 { (eval echo configure
:1990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1990 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1991 if test -z "$ac_err"; then
1995 echo "configure: failed program was:" >&5
1996 cat conftest.
$ac_ext >&5
1998 CPP
="${CC-cc} -nologo -E"
1999 cat > conftest.
$ac_ext <<EOF
2000 #line 2001 "configure"
2001 #include "confdefs.h"
2005 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2006 { (eval echo configure
:2007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2007 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2008 if test -z "$ac_err"; then
2012 echo "configure: failed program was:" >&5
2013 cat conftest.
$ac_ext >&5
2022 ac_cv_prog_CPP
="$CPP"
2024 CPP
="$ac_cv_prog_CPP"
2026 ac_cv_prog_CPP
="$CPP"
2028 echo "$ac_t""$CPP" 1>&6
2030 # Find a good install program. We prefer a C program (faster),
2031 # so one script is as good as another. But avoid the broken or
2032 # incompatible versions:
2033 # SysV /etc/install, /usr/sbin/install
2034 # SunOS /usr/etc/install
2035 # IRIX /sbin/install
2037 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2038 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2039 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2040 # ./install, which can be erroneously created by make from ./install.sh.
2041 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2042 echo "configure:2043: checking for a BSD compatible install" >&5
2043 if test -z "$INSTALL"; then
2044 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2045 echo $ac_n "(cached) $ac_c" 1>&6
2047 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2048 for ac_dir
in $PATH; do
2049 # Account for people who put trailing slashes in PATH elements.
2051 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2053 # OSF1 and SCO ODT 3.0 have their own names for install.
2054 # Don't use installbsd from OSF since it installs stuff as root
2056 for ac_prog
in ginstall scoinst
install; do
2057 if test -f $ac_dir/$ac_prog; then
2058 if test $ac_prog = install &&
2059 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2060 # AIX install. It has an incompatible calling convention.
2063 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2074 if test "${ac_cv_path_install+set}" = set; then
2075 INSTALL
="$ac_cv_path_install"
2077 # As a last resort, use the slow shell script. We don't cache a
2078 # path for INSTALL within a source directory, because that will
2079 # break other packages using the cache if that directory is
2080 # removed, or if the path is relative.
2081 INSTALL
="$ac_install_sh"
2084 echo "$ac_t""$INSTALL" 1>&6
2086 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2087 # It thinks the first close brace ends the variable substitution.
2088 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2090 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2092 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2094 for ac_prog
in 'bison -y' byacc
2096 # Extract the first word of "$ac_prog", so it can be a program name with args.
2097 set dummy
$ac_prog; ac_word
=$2
2098 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2099 echo "configure:2100: checking for $ac_word" >&5
2100 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2101 echo $ac_n "(cached) $ac_c" 1>&6
2103 if test -n "$YACC"; then
2104 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2106 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2108 for ac_dir
in $ac_dummy; do
2109 test -z "$ac_dir" && ac_dir
=.
2110 if test -f $ac_dir/$ac_word; then
2111 ac_cv_prog_YACC
="$ac_prog"
2118 YACC
="$ac_cv_prog_YACC"
2119 if test -n "$YACC"; then
2120 echo "$ac_t""$YACC" 1>&6
2122 echo "$ac_t""no" 1>&6
2125 test -n "$YACC" && break
2127 test -n "$YACC" || YACC
="yacc"
2130 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2131 echo "configure:2132: checking for AIX" >&5
2132 cat > conftest.
$ac_ext <<EOF
2133 #line 2134 "configure"
2134 #include "confdefs.h"
2140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2141 egrep "yes" >/dev
/null
2>&1; then
2143 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
2144 #define _ALL_SOURCE 1
2149 echo "$ac_t""no" 1>&6
2155 # Sound support for GNU/Linux and the free BSDs.
2156 for ac_hdr
in machine
/soundcard.h sys
/soundcard.h
2158 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2159 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2160 echo "configure:2161: checking for $ac_hdr" >&5
2161 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6
2164 cat > conftest.
$ac_ext <<EOF
2165 #line 2166 "configure"
2166 #include "confdefs.h"
2169 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2170 { (eval echo configure
:2171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2171 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2172 if test -z "$ac_err"; then
2174 eval "ac_cv_header_$ac_safe=yes"
2177 echo "configure: failed program was:" >&5
2178 cat conftest.
$ac_ext >&5
2180 eval "ac_cv_header_$ac_safe=no"
2184 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2185 echo "$ac_t""yes" 1>&6
2186 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2187 cat >> confdefs.h
<<EOF
2188 #define $ac_tr_hdr 1
2192 echo "$ac_t""no" 1>&6
2197 for ac_hdr
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
2198 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
2199 termcap.h stdio_ext.h
2201 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2202 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2203 echo "configure:2204: checking for $ac_hdr" >&5
2204 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2205 echo $ac_n "(cached) $ac_c" 1>&6
2207 cat > conftest.
$ac_ext <<EOF
2208 #line 2209 "configure"
2209 #include "confdefs.h"
2212 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2213 { (eval echo configure
:2214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2214 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2215 if test -z "$ac_err"; then
2217 eval "ac_cv_header_$ac_safe=yes"
2220 echo "configure: failed program was:" >&5
2221 cat conftest.
$ac_ext >&5
2223 eval "ac_cv_header_$ac_safe=no"
2227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2228 echo "$ac_t""yes" 1>&6
2229 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2230 cat >> confdefs.h
<<EOF
2231 #define $ac_tr_hdr 1
2235 echo "$ac_t""no" 1>&6
2239 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2240 echo "configure:2241: checking for ANSI C header files" >&5
2241 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2242 echo $ac_n "(cached) $ac_c" 1>&6
2244 cat > conftest.
$ac_ext <<EOF
2245 #line 2246 "configure"
2246 #include "confdefs.h"
2252 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2253 { (eval echo configure
:2254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2254 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2255 if test -z "$ac_err"; then
2257 ac_cv_header_stdc
=yes
2260 echo "configure: failed program was:" >&5
2261 cat conftest.
$ac_ext >&5
2263 ac_cv_header_stdc
=no
2267 if test $ac_cv_header_stdc = yes; then
2268 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2269 cat > conftest.
$ac_ext <<EOF
2270 #line 2271 "configure"
2271 #include "confdefs.h"
2274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2275 egrep "memchr" >/dev
/null
2>&1; then
2279 ac_cv_header_stdc
=no
2285 if test $ac_cv_header_stdc = yes; then
2286 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2287 cat > conftest.
$ac_ext <<EOF
2288 #line 2289 "configure"
2289 #include "confdefs.h"
2292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2293 egrep "free" >/dev
/null
2>&1; then
2297 ac_cv_header_stdc
=no
2303 if test $ac_cv_header_stdc = yes; then
2304 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2305 if test "$cross_compiling" = yes; then
2308 cat > conftest.
$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2312 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2313 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2315 int main () { int i; for (i = 0; i < 256; i++)
2316 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2320 if { (eval echo configure
:2321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2324 echo "configure: failed program was:" >&5
2325 cat conftest.
$ac_ext >&5
2327 ac_cv_header_stdc
=no
2335 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2336 if test $ac_cv_header_stdc = yes; then
2337 cat >> confdefs.h
<<\EOF
2338 #define STDC_HEADERS 1
2343 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2344 echo "configure:2345: checking whether time.h and sys/time.h may both be included" >&5
2345 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2346 echo $ac_n "(cached) $ac_c" 1>&6
2348 cat > conftest.
$ac_ext <<EOF
2349 #line 2350 "configure"
2350 #include "confdefs.h"
2351 #include <sys/types.h>
2352 #include <sys/time.h>
2358 if { (eval echo configure
:2359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2360 ac_cv_header_time
=yes
2362 echo "configure: failed program was:" >&5
2363 cat conftest.
$ac_ext >&5
2365 ac_cv_header_time
=no
2370 echo "$ac_t""$ac_cv_header_time" 1>&6
2371 if test $ac_cv_header_time = yes; then
2372 cat >> confdefs.h
<<\EOF
2373 #define TIME_WITH_SYS_TIME 1
2378 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2379 echo "configure:2380: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2380 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2381 echo $ac_n "(cached) $ac_c" 1>&6
2383 cat > conftest.
$ac_ext <<EOF
2384 #line 2385 "configure"
2385 #include "confdefs.h"
2386 #include <sys/types.h>
2388 /* NetBSD declares sys_siglist in unistd.h. */
2389 #ifdef HAVE_UNISTD_H
2393 char *msg = *(sys_siglist + 1);
2396 if { (eval echo configure
:2397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2398 ac_cv_decl_sys_siglist
=yes
2400 echo "configure: failed program was:" >&5
2401 cat conftest.
$ac_ext >&5
2403 ac_cv_decl_sys_siglist
=no
2408 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2409 if test $ac_cv_decl_sys_siglist = yes; then
2410 cat >> confdefs.h
<<\EOF
2411 #define SYS_SIGLIST_DECLARED 1
2417 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
2418 echo "configure:2419: checking for struct utimbuf" >&5
2419 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then
2420 echo $ac_n "(cached) $ac_c" 1>&6
2422 cat > conftest.
$ac_ext <<EOF
2423 #line 2424 "configure"
2424 #include "confdefs.h"
2425 #ifdef TIME_WITH_SYS_TIME
2426 #include <sys/time.h>
2429 #ifdef HAVE_SYS_TIME_H
2430 #include <sys/time.h>
2439 static struct utimbuf x; x.actime = x.modtime;
2442 if { (eval echo configure
:2443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2444 emacs_cv_struct_utimbuf
=yes
2446 echo "configure: failed program was:" >&5
2447 cat conftest.
$ac_ext >&5
2449 emacs_cv_struct_utimbuf
=no
2454 echo "$ac_t""$emacs_cv_struct_utimbuf" 1>&6
2455 if test $emacs_cv_struct_utimbuf = yes; then
2456 cat >> confdefs.h
<<\EOF
2457 #define HAVE_STRUCT_UTIMBUF 1
2462 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2463 echo "configure:2464: checking return type of signal handlers" >&5
2464 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2465 echo $ac_n "(cached) $ac_c" 1>&6
2467 cat > conftest.
$ac_ext <<EOF
2468 #line 2469 "configure"
2469 #include "confdefs.h"
2470 #include <sys/types.h>
2476 extern "C" void (*signal (int, void (*)(int)))(int);
2478 void (*signal ()) ();
2485 if { (eval echo configure
:2486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2487 ac_cv_type_signal
=void
2489 echo "configure: failed program was:" >&5
2490 cat conftest.
$ac_ext >&5
2492 ac_cv_type_signal
=int
2497 echo "$ac_t""$ac_cv_type_signal" 1>&6
2498 cat >> confdefs.h
<<EOF
2499 #define RETSIGTYPE $ac_cv_type_signal
2504 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
2505 echo "configure:2506: checking for struct timeval" >&5
2506 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then
2507 echo $ac_n "(cached) $ac_c" 1>&6
2509 cat > conftest.
$ac_ext <<EOF
2510 #line 2511 "configure"
2511 #include "confdefs.h"
2512 #ifdef TIME_WITH_SYS_TIME
2513 #include <sys/time.h>
2516 #ifdef HAVE_SYS_TIME_H
2517 #include <sys/time.h>
2523 static struct timeval x; x.tv_sec = x.tv_usec;
2526 if { (eval echo configure
:2527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2528 emacs_cv_struct_timeval
=yes
2530 echo "configure: failed program was:" >&5
2531 cat conftest.
$ac_ext >&5
2533 emacs_cv_struct_timeval
=no
2538 echo "$ac_t""$emacs_cv_struct_timeval" 1>&6
2539 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
2540 if test $emacs_cv_struct_timeval = yes; then
2541 cat >> confdefs.h
<<\EOF
2542 #define HAVE_TIMEVAL 1
2547 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2548 echo "configure:2549: checking whether struct tm is in sys/time.h or time.h" >&5
2549 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2550 echo $ac_n "(cached) $ac_c" 1>&6
2552 cat > conftest.
$ac_ext <<EOF
2553 #line 2554 "configure"
2554 #include "confdefs.h"
2555 #include <sys/types.h>
2558 struct tm *tp; tp->tm_sec;
2561 if { (eval echo configure
:2562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2563 ac_cv_struct_tm
=time.h
2565 echo "configure: failed program was:" >&5
2566 cat conftest.
$ac_ext >&5
2568 ac_cv_struct_tm
=sys
/time.h
2573 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2574 if test $ac_cv_struct_tm = sys
/time.h
; then
2575 cat >> confdefs.h
<<\EOF
2576 #define TM_IN_SYS_TIME 1
2581 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
2582 echo "configure:2583: checking for tm_zone in struct tm" >&5
2583 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
2584 echo $ac_n "(cached) $ac_c" 1>&6
2586 cat > conftest.
$ac_ext <<EOF
2587 #line 2588 "configure"
2588 #include "confdefs.h"
2589 #include <sys/types.h>
2590 #include <$ac_cv_struct_tm>
2592 struct tm tm; tm.tm_zone;
2595 if { (eval echo configure
:2596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2597 ac_cv_struct_tm_zone
=yes
2599 echo "configure: failed program was:" >&5
2600 cat conftest.
$ac_ext >&5
2602 ac_cv_struct_tm_zone
=no
2607 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
2608 if test "$ac_cv_struct_tm_zone" = yes; then
2609 cat >> confdefs.h
<<\EOF
2610 #define HAVE_TM_ZONE 1
2614 echo $ac_n "checking for tzname""... $ac_c" 1>&6
2615 echo "configure:2616: checking for tzname" >&5
2616 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
2617 echo $ac_n "(cached) $ac_c" 1>&6
2619 cat > conftest.
$ac_ext <<EOF
2620 #line 2621 "configure"
2621 #include "confdefs.h"
2623 #ifndef tzname /* For SGI. */
2624 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
2630 if { (eval echo configure
:2631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2632 ac_cv_var_tzname
=yes
2634 echo "configure: failed program was:" >&5
2635 cat conftest.
$ac_ext >&5
2642 echo "$ac_t""$ac_cv_var_tzname" 1>&6
2643 if test $ac_cv_var_tzname = yes; then
2644 cat >> confdefs.h
<<\EOF
2645 #define HAVE_TZNAME 1
2651 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
2652 echo "configure:2653: checking for tm_gmtoff in struct tm" >&5
2653 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then
2654 echo $ac_n "(cached) $ac_c" 1>&6
2656 cat > conftest.
$ac_ext <<EOF
2657 #line 2658 "configure"
2658 #include "confdefs.h"
2661 struct tm t; t.tm_gmtoff = 0
2664 if { (eval echo configure
:2665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2666 emacs_cv_tm_gmtoff
=yes
2668 echo "configure: failed program was:" >&5
2669 cat conftest.
$ac_ext >&5
2671 emacs_cv_tm_gmtoff
=no
2676 echo "$ac_t""$emacs_cv_tm_gmtoff" 1>&6
2677 if test $emacs_cv_tm_gmtoff = yes; then
2678 cat >> confdefs.h
<<\EOF
2679 #define HAVE_TM_GMTOFF 1
2684 echo $ac_n "checking for working const""... $ac_c" 1>&6
2685 echo "configure:2686: checking for working const" >&5
2686 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2687 echo $ac_n "(cached) $ac_c" 1>&6
2689 cat > conftest.
$ac_ext <<EOF
2690 #line 2691 "configure"
2691 #include "confdefs.h"
2695 /* Ultrix mips cc rejects this. */
2696 typedef int charset[2]; const charset x;
2697 /* SunOS 4.1.1 cc rejects this. */
2698 char const *const *ccp;
2700 /* NEC SVR4.0.2 mips cc rejects this. */
2701 struct point {int x, y;};
2702 static struct point const zero = {0,0};
2703 /* AIX XL C 1.02.0.0 rejects this.
2704 It does not let you subtract one const X* pointer from another in an arm
2705 of an if-expression whose if-part is not a constant expression */
2706 const char *g = "string";
2707 ccp = &g + (g ? g-g : 0);
2708 /* HPUX 7.0 cc rejects these. */
2711 ccp = (char const *const *) p;
2712 { /* SCO 3.2v4 cc rejects this. */
2714 char const *s = 0 ? (char *) 0 : (char const *) 0;
2718 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2720 const int *foo = &x[0];
2723 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2724 typedef const int *iptr;
2728 { /* AIX XL C 1.02.0.0 rejects this saying
2729 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2730 struct s { int j; const int *ap[3]; };
2731 struct s *b; b->j = 5;
2733 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2739 if { (eval echo configure
:2740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2743 echo "configure: failed program was:" >&5
2744 cat conftest.
$ac_ext >&5
2751 echo "$ac_t""$ac_cv_c_const" 1>&6
2752 if test $ac_cv_c_const = no
; then
2753 cat >> confdefs.h
<<\EOF
2760 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2761 echo "configure:2762: checking whether ${MAKE-make} sets \${MAKE}" >&5
2762 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
2763 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2764 echo $ac_n "(cached) $ac_c" 1>&6
2766 cat > conftestmake
<<\EOF
2768 @
echo 'ac_maketemp="${MAKE}"'
2770 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2771 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2772 if test -n "$ac_maketemp"; then
2773 eval ac_cv_prog_make_
${ac_make}_set
=yes
2775 eval ac_cv_prog_make_
${ac_make}_set
=no
2779 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2780 echo "$ac_t""yes" 1>&6
2783 echo "$ac_t""no" 1>&6
2784 SET_MAKE
="MAKE=${MAKE-make}"
2788 echo $ac_n "checking for long file names""... $ac_c" 1>&6
2789 echo "configure:2790: checking for long file names" >&5
2790 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
2791 echo $ac_n "(cached) $ac_c" 1>&6
2793 ac_cv_sys_long_file_names
=yes
2794 # Test for long file names in all the places we know might matter:
2795 # . the current directory, where building will happen
2796 # $prefix/lib where we will be installing things
2797 # $exec_prefix/lib likewise
2798 # eval it to expand exec_prefix.
2799 # $TMPDIR if set, where it might want to write temporary files
2800 # if $TMPDIR is not set:
2801 # /tmp where it might want to write temporary files
2804 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
2805 ac_tmpdirs
="$TMPDIR"
2807 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
2809 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
2810 test -d $ac_dir ||
continue
2811 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
2812 (echo 1 > $ac_dir/conftest9012345
) 2>/dev
/null
2813 (echo 2 > $ac_dir/conftest9012346
) 2>/dev
/null
2814 val
=`cat $ac_dir/conftest9012345 2>/dev/null`
2815 if test ! -f $ac_dir/conftest9012345 ||
test "$val" != 1; then
2816 ac_cv_sys_long_file_names
=no
2817 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
2820 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
2824 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
2825 if test $ac_cv_sys_long_file_names = yes; then
2826 cat >> confdefs.h
<<\EOF
2827 #define HAVE_LONG_FILE_NAMES 1
2833 #### Choose a window system.
2835 # If we find X, set shell vars x_includes and x_libraries to the
2836 # paths, otherwise set no_x=yes.
2837 # Uses ac_ vars as temps to allow command line to override cache and checks.
2838 # --without-x overrides everything else, but does not touch the cache.
2839 echo $ac_n "checking for X""... $ac_c" 1>&6
2840 echo "configure:2841: checking for X" >&5
2842 # Check whether --with-x or --without-x was given.
2843 if test "${with_x+set}" = set; then
2848 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2849 if test "x$with_x" = xno
; then
2850 # The user explicitly disabled X.
2853 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
2854 # Both variables are already set.
2857 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
2858 echo $ac_n "(cached) $ac_c" 1>&6
2860 # One or both of the vars are not set, and there is no cached value.
2861 ac_x_includes
=NO ac_x_libraries
=NO
2863 if mkdir conftestdir
; then
2865 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2866 cat > Imakefile
<<'EOF'
2868 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2870 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
2871 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2872 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2873 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2874 for ac_extension
in a so sl
; do
2875 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
2876 test -f $ac_im_libdir/libX11.
$ac_extension; then
2877 ac_im_usrlibdir
=$ac_im_libdir; break
2880 # Screen out bogus values from the imake configuration. They are
2881 # bogus both because they are the default anyway, and because
2882 # using them would break gcc on systems where it needs fixed includes.
2883 case "$ac_im_incroot" in
2885 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
2887 case "$ac_im_usrlibdir" in
2889 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
2896 if test "$ac_x_includes" = NO
; then
2897 # Guess where to find include files, by looking for this one X11 .h file.
2898 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
2900 # First, try using that file with no special directory specified.
2901 cat > conftest.
$ac_ext <<EOF
2902 #line 2903 "configure"
2903 #include "confdefs.h"
2904 #include <$x_direct_test_include>
2906 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2907 { (eval echo configure
:2908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2908 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2909 if test -z "$ac_err"; then
2911 # We can compile using X headers with no special include directory.
2915 echo "configure: failed program was:" >&5
2916 cat conftest.
$ac_ext >&5
2918 # Look for the header file in a standard set of common directories.
2919 # Check X11 before X11Rn because it is often a symlink to the current release.
2922 /usr
/X11R
6/include \
2923 /usr
/X11R
5/include \
2924 /usr
/X11R
4/include \
2927 /usr
/include
/X11R6 \
2928 /usr
/include
/X11R5 \
2929 /usr
/include
/X11R4 \
2931 /usr
/local
/X11
/include \
2932 /usr
/local
/X11R
6/include \
2933 /usr
/local
/X11R
5/include \
2934 /usr
/local
/X11R
4/include \
2936 /usr
/local
/include
/X11 \
2937 /usr
/local
/include
/X11R6 \
2938 /usr
/local
/include
/X11R5 \
2939 /usr
/local
/include
/X11R4 \
2943 /usr
/XFree86
/include
/X11 \
2946 /usr
/local
/include \
2947 /usr
/unsupported
/include \
2948 /usr
/athena
/include \
2949 /usr
/local
/x11r
5/include \
2950 /usr
/lpp
/Xamples
/include \
2952 /usr
/openwin
/include \
2953 /usr
/openwin
/share
/include \
2956 if test -r "$ac_dir/$x_direct_test_include"; then
2957 ac_x_includes
=$ac_dir
2963 fi # $ac_x_includes = NO
2965 if test "$ac_x_libraries" = NO
; then
2966 # Check for the libraries.
2968 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
2969 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
2971 # See if we find them without any special options.
2972 # Don't add to $LIBS permanently.
2973 ac_save_LIBS
="$LIBS"
2974 LIBS
="-l$x_direct_test_library $LIBS"
2975 cat > conftest.
$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2980 ${x_direct_test_function}()
2983 if { (eval echo configure
:2984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2985 LIBS
="$ac_save_LIBS"
2986 # We can link X programs with no special library path.
2989 echo "configure: failed program was:" >&5
2990 cat conftest.
$ac_ext >&5
2992 LIBS
="$ac_save_LIBS"
2993 # First see if replacing the include by lib works.
2994 # Check X11 before X11Rn because it is often a symlink to the current release.
2995 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
3006 /usr
/local
/X11
/lib \
3007 /usr
/local
/X11R
6/lib \
3008 /usr
/local
/X11R
5/lib \
3009 /usr
/local
/X11R
4/lib \
3011 /usr
/local
/lib
/X11 \
3012 /usr
/local
/lib
/X11R6 \
3013 /usr
/local
/lib
/X11R5 \
3014 /usr
/local
/lib
/X11R4 \
3018 /usr
/XFree86
/lib
/X11 \
3022 /usr
/unsupported
/lib \
3024 /usr
/local
/x11r
5/lib \
3025 /usr
/lpp
/Xamples
/lib \
3029 /usr
/openwin
/share
/lib \
3032 for ac_extension
in a so sl
; do
3033 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
3034 ac_x_libraries
=$ac_dir
3041 fi # $ac_x_libraries = NO
3043 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
3044 # Didn't find X anywhere. Cache the known absence of X.
3045 ac_cv_have_x
="have_x=no"
3047 # Record where we found X for the cache.
3048 ac_cv_have_x
="have_x=yes \
3049 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3053 eval "$ac_cv_have_x"
3056 if test "$have_x" != yes; then
3057 echo "$ac_t""$have_x" 1>&6
3060 # If each of the values was on the command line, it overrides each guess.
3061 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
3062 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
3063 # Update the cache value to reflect the command line values.
3064 ac_cv_have_x
="have_x=yes \
3065 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3066 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3069 if test "$no_x" = yes; then
3075 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
3076 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
3077 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
3078 x_default_search_path
=""
3079 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
3080 x_search_path
="${x_library}/X11/%L/%T/%N%C%S:\
3081 ${x_library}/X11/%L/%T/%N%C%S:${x_libary}/X11/%l/%T/%N%C%S:\
3082 ${x_library}/X11/%T/%N%C%S:${x_library}/X11/%L/%T/%N%S:\
3083 ${x_library}/X11/%l/%T/%N%S:${x_library}/X11/%T/%N%S"
3084 if test x
"${x_default_search_path}" = x
; then
3085 x_default_search_path
=${x_search_path}
3087 x_default_search_path
="${x_search_path}:${x_default_search_path}"
3091 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
3092 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
3095 if test x
"${x_includes}" = x
; then
3096 bitmapdir
=/usr
/include
/X11
/bitmaps
3098 # accumulate include directories that have X11 bitmap subdirectories
3100 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
3101 if test -d "${bmd}/X11/bitmaps"; then
3102 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
3104 if test -d "${bmd}/bitmaps"; then
3105 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
3108 if test ${bmd_acc} != "dummyval"; then
3109 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
3113 case "${window_system}" in
3117 case "${with_x_toolkit}" in
3118 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
3119 motif
) USE_X_TOOLKIT
=MOTIF
;;
3120 no
) USE_X_TOOLKIT
=none
;;
3121 * ) USE_X_TOOLKIT
=maybe
;;
3131 ### If we're using X11, we should use the X menu package.
3134 yes ) HAVE_MENUS
=yes ;;
3137 if test "${opsys}" = "hpux9"; then
3138 case "${x_libraries}" in
3140 opsysfile
="s/hpux9-x11r4.h"
3145 if test "${opsys}" = "hpux9shr"; then
3146 case "${x_libraries}" in
3148 opsysfile
="s/hpux9shxr4.h"
3153 #### Extract some information from the operating system and machine files.
3155 echo "checking the machine- and system-dependent files to find out
3156 - which libraries the lib-src programs will want, and
3157 - whether the GNU malloc routines are usable" 1>&6
3158 echo "configure:3159: checking the machine- and system-dependent files to find out
3159 - which libraries the lib-src programs will want, and
3160 - whether the GNU malloc routines are usable" >&5
3162 ### First figure out CFLAGS (which we use for running the compiler here)
3163 ### and REAL_CFLAGS (which we use for real compilation).
3164 ### The two are the same except on a few systems, where they are made
3165 ### different to work around various lossages. For example,
3166 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3167 ### as implying static linking.
3169 ### If the CFLAGS env var is specified, we use that value
3170 ### instead of the default.
3172 ### It's not important that this name contain the PID; you can't run
3173 ### two configures in the same directory and have anything work
3175 tempcname
="conftest.c"
3178 #include "'${srcdir}'/src/'${opsysfile}'"
3179 #include "'${srcdir}'/src/'${machfile}'"
3180 #ifndef LIBS_MACHINE
3181 #define LIBS_MACHINE
3186 #ifndef C_SWITCH_SYSTEM
3187 #define C_SWITCH_SYSTEM
3189 #ifndef C_SWITCH_MACHINE
3190 #define C_SWITCH_MACHINE
3192 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3193 configure___ c_switch_system=C_SWITCH_SYSTEM
3194 configure___ c_switch_machine=C_SWITCH_MACHINE
3197 #define LIB_X11_LIB -lX11
3200 #ifndef LIBX11_MACHINE
3201 #define LIBX11_MACHINE
3204 #ifndef LIBX11_SYSTEM
3205 #define LIBX11_SYSTEM
3207 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3210 configure___ unexec=UNEXEC
3212 configure___ unexec=unexec.o
3215 #ifdef SYSTEM_MALLOC
3216 configure___ system_malloc=yes
3218 configure___ system_malloc=no
3221 #ifndef C_DEBUG_SWITCH
3222 #define C_DEBUG_SWITCH -g
3225 #ifndef C_OPTIMIZE_SWITCH
3226 #define C_OPTIMIZE_SWITCH -O
3229 #ifndef LD_SWITCH_MACHINE
3230 #define LD_SWITCH_MACHINE
3233 #ifndef LD_SWITCH_SYSTEM
3234 #define LD_SWITCH_SYSTEM
3237 #ifndef LD_SWITCH_X_SITE_AUX
3238 #define LD_SWITCH_X_SITE_AUX
3241 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3242 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3244 #ifdef THIS_IS_CONFIGURE
3246 /* Get the CFLAGS for tests in configure. */
3248 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3250 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3253 #else /* not THIS_IS_CONFIGURE */
3255 /* Get the CFLAGS for real compilation. */
3257 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3259 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3262 #endif /* not THIS_IS_CONFIGURE */
3265 # The value of CPP is a quoted variable reference, so we need to do this
3266 # to get its actual value...
3267 CPP
=`eval "echo $CPP"`
3268 eval `${CPP} -Isrc ${tempcname} \
3269 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3270 if test "x$SPECIFIED_CFLAGS" = x
; then
3271 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3272 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3274 REAL_CFLAGS
="$CFLAGS"
3278 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
3280 ### Compute the unexec source name from the object name.
3281 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
3283 # Do the opsystem or machine files prohibit the use of the GNU malloc?
3284 # Assume not, until told otherwise.
3287 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
3288 echo "configure:3289: checking for malloc_get_state" >&5
3289 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then
3290 echo $ac_n "(cached) $ac_c" 1>&6
3292 cat > conftest.
$ac_ext <<EOF
3293 #line 3294 "configure"
3294 #include "confdefs.h"
3295 /* System header to define __stub macros and hopefully few prototypes,
3296 which can conflict with char malloc_get_state(); below. */
3298 /* Override any gcc2 internal prototype to avoid an error. */
3299 /* We use char because int might match the return type of a gcc2
3300 builtin and then its argument prototype would still apply. */
3301 char malloc_get_state();
3306 /* The GNU C library defines this for functions which it implements
3307 to always fail with ENOSYS. Some functions are actually named
3308 something starting with __ and the normal name is an alias. */
3309 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
3312 f = malloc_get_state;
3317 if { (eval echo configure
:3318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3319 eval "ac_cv_func_malloc_get_state=yes"
3321 echo "configure: failed program was:" >&5
3322 cat conftest.
$ac_ext >&5
3324 eval "ac_cv_func_malloc_get_state=no"
3329 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
3330 echo "$ac_t""yes" 1>&6
3333 echo "$ac_t""no" 1>&6
3337 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3338 echo "configure:3339: checking for malloc_set_state" >&5
3339 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then
3340 echo $ac_n "(cached) $ac_c" 1>&6
3342 cat > conftest.
$ac_ext <<EOF
3343 #line 3344 "configure"
3344 #include "confdefs.h"
3345 /* System header to define __stub macros and hopefully few prototypes,
3346 which can conflict with char malloc_set_state(); below. */
3348 /* Override any gcc2 internal prototype to avoid an error. */
3349 /* We use char because int might match the return type of a gcc2
3350 builtin and then its argument prototype would still apply. */
3351 char malloc_set_state();
3356 /* The GNU C library defines this for functions which it implements
3357 to always fail with ENOSYS. Some functions are actually named
3358 something starting with __ and the normal name is an alias. */
3359 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3362 f = malloc_set_state;
3367 if { (eval echo configure
:3368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3369 eval "ac_cv_func_malloc_set_state=yes"
3371 echo "configure: failed program was:" >&5
3372 cat conftest.
$ac_ext >&5
3374 eval "ac_cv_func_malloc_set_state=no"
3379 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3380 echo "$ac_t""yes" 1>&6
3383 echo "$ac_t""no" 1>&6
3387 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3388 echo "configure:3389: checking whether __after_morecore_hook exists" >&5
3389 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then
3390 echo $ac_n "(cached) $ac_c" 1>&6
3392 cat > conftest.
$ac_ext <<EOF
3393 #line 3394 "configure"
3394 #include "confdefs.h"
3395 extern void (* __after_morecore_hook)();
3397 __after_morecore_hook = 0
3400 if { (eval echo configure
:3401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3402 emacs_cv_var___after_morecore_hook
=yes
3404 echo "configure: failed program was:" >&5
3405 cat conftest.
$ac_ext >&5
3407 emacs_cv_var___after_morecore_hook
=no
3412 echo "$ac_t""$emacs_cv_var___after_morecore_hook" 1>&6
3413 if test $emacs_cv_var___after_morecore_hook = no
; then
3416 if test "${system_malloc}" = "yes"; then
3419 (The GNU allocators don't work with this system configuration.)"
3421 if test "$doug_lea_malloc" = "yes" ; then
3422 if test "$GNU_MALLOC" = yes ; then
3424 (Using Doug Lea's new malloc from the GNU C Library.)"
3426 cat >> confdefs.h
<<\EOF
3427 #define DOUG_LEA_MALLOC 1
3432 if test x
"${REL_ALLOC}" = x
; then
3433 REL_ALLOC
=${GNU_MALLOC}
3439 #### Add the libraries to LIBS and check for some functions.
3441 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
3442 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
3444 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
3447 LIBS
="$libsrc_libs $LIBS"
3449 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3450 echo "configure:3451: checking for dnet_ntoa in -ldnet" >&5
3451 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3452 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3453 echo $ac_n "(cached) $ac_c" 1>&6
3455 ac_save_LIBS
="$LIBS"
3457 cat > conftest.
$ac_ext <<EOF
3458 #line 3459 "configure"
3459 #include "confdefs.h"
3460 /* Override any gcc2 internal prototype to avoid an error. */
3461 /* We use char because int might match the return type of a gcc2
3462 builtin and then its argument prototype would still apply. */
3469 if { (eval echo configure
:3470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3471 eval "ac_cv_lib_$ac_lib_var=yes"
3473 echo "configure: failed program was:" >&5
3474 cat conftest.
$ac_ext >&5
3476 eval "ac_cv_lib_$ac_lib_var=no"
3479 LIBS
="$ac_save_LIBS"
3482 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3483 echo "$ac_t""yes" 1>&6
3484 ac_tr_lib
=HAVE_LIB
`echo dnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3485 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3486 cat >> confdefs.h
<<EOF
3487 #define $ac_tr_lib 1
3493 echo "$ac_t""no" 1>&6
3497 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
3498 echo "configure:3499: checking for main in -lXbsd" >&5
3499 ac_lib_var
=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
3500 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3501 echo $ac_n "(cached) $ac_c" 1>&6
3503 ac_save_LIBS
="$LIBS"
3505 cat > conftest.
$ac_ext <<EOF
3506 #line 3507 "configure"
3507 #include "confdefs.h"
3513 if { (eval echo configure
:3514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3515 eval "ac_cv_lib_$ac_lib_var=yes"
3517 echo "configure: failed program was:" >&5
3518 cat conftest.
$ac_ext >&5
3520 eval "ac_cv_lib_$ac_lib_var=no"
3523 LIBS
="$ac_save_LIBS"
3526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3527 echo "$ac_t""yes" 1>&6
3528 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
3530 echo "$ac_t""no" 1>&6
3534 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
3535 echo "configure:3536: checking for cma_open in -lpthreads" >&5
3536 ac_lib_var
=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
3537 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3538 echo $ac_n "(cached) $ac_c" 1>&6
3540 ac_save_LIBS
="$LIBS"
3541 LIBS
="-lpthreads $LIBS"
3542 cat > conftest.
$ac_ext <<EOF
3543 #line 3544 "configure"
3544 #include "confdefs.h"
3545 /* Override any gcc2 internal prototype to avoid an error. */
3546 /* We use char because int might match the return type of a gcc2
3547 builtin and then its argument prototype would still apply. */
3554 if { (eval echo configure
:3555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3556 eval "ac_cv_lib_$ac_lib_var=yes"
3558 echo "configure: failed program was:" >&5
3559 cat conftest.
$ac_ext >&5
3561 eval "ac_cv_lib_$ac_lib_var=no"
3564 LIBS
="$ac_save_LIBS"
3567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3568 echo "$ac_t""yes" 1>&6
3569 ac_tr_lib
=HAVE_LIB
`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3570 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3571 cat >> confdefs.h
<<EOF
3572 #define $ac_tr_lib 1
3575 LIBS
="-lpthreads $LIBS"
3578 echo "$ac_t""no" 1>&6
3582 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6
3583 echo "configure:3584: checking for XFree86 in /usr/X386" >&5
3584 if test -d /usr
/X386
/include
; then
3586 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
3590 echo "$ac_t""$HAVE_XFREE386" 1>&6
3592 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
3593 # for the tests that follow. We set it back to REAL_CFLAGS later on.
3595 if test "${HAVE_X11}" = "yes"; then
3596 DEFS
="$C_SWITCH_X_SITE $DEFS"
3597 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
3599 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
3601 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
3602 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
3603 # but it's more convenient here to set LD_RUN_PATH
3604 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
3605 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
3606 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
3610 if test "${opsys}" = "gnu-linux"; then
3611 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6
3612 echo "configure:3613: checking whether X on GNU/Linux needs -b to link" >&5
3613 cat > conftest.
$ac_ext <<EOF
3614 #line 3615 "configure"
3615 #include "confdefs.h"
3618 XOpenDisplay ("foo");
3621 if { (eval echo configure
:3622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3623 xlinux_first_failure
=no
3625 echo "configure: failed program was:" >&5
3626 cat conftest.
$ac_ext >&5
3628 xlinux_first_failure
=yes
3631 if test "${xlinux_first_failure}" = "yes"; then
3632 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
3633 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
3634 OLD_CPPFLAGS
="$CPPFLAGS"
3636 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
3637 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
3638 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
3639 LIBS
="$LIBS -b i486-linuxaout"
3640 cat > conftest.
$ac_ext <<EOF
3641 #line 3642 "configure"
3642 #include "confdefs.h"
3645 XOpenDisplay ("foo");
3648 if { (eval echo configure
:3649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3650 xlinux_second_failure
=no
3652 echo "configure: failed program was:" >&5
3653 cat conftest.
$ac_ext >&5
3655 xlinux_second_failure
=yes
3658 if test "${xlinux_second_failure}" = "yes"; then
3659 # If we get the same failure with -b, there is no use adding -b.
3660 # So take it out. This plays safe.
3661 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
3662 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
3663 CPPFLAGS
="$OLD_CPPFLAGS"
3665 echo "$ac_t""no" 1>&6
3667 echo "$ac_t""yes" 1>&6
3670 echo "$ac_t""no" 1>&6
3674 for ac_func
in XrmSetDatabase XScreenResourceString \
3675 XScreenNumberOfScreen XSetWMProtocols
3677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3678 echo "configure:3679: checking for $ac_func" >&5
3679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3680 echo $ac_n "(cached) $ac_c" 1>&6
3682 cat > conftest.
$ac_ext <<EOF
3683 #line 3684 "configure"
3684 #include "confdefs.h"
3685 /* System header to define __stub macros and hopefully few prototypes,
3686 which can conflict with char $ac_func(); below. */
3688 /* Override any gcc2 internal prototype to avoid an error. */
3689 /* We use char because int might match the return type of a gcc2
3690 builtin and then its argument prototype would still apply. */
3696 /* The GNU C library defines this for functions which it implements
3697 to always fail with ENOSYS. Some functions are actually named
3698 something starting with __ and the normal name is an alias. */
3699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3707 if { (eval echo configure
:3708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3709 eval "ac_cv_func_$ac_func=yes"
3711 echo "configure: failed program was:" >&5
3712 cat conftest.
$ac_ext >&5
3714 eval "ac_cv_func_$ac_func=no"
3719 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3720 echo "$ac_t""yes" 1>&6
3721 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3722 cat >> confdefs.h
<<EOF
3723 #define $ac_tr_func 1
3727 echo "$ac_t""no" 1>&6
3733 if test "${window_system}" = "x11"; then
3734 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6
3735 echo "configure:3736: checking X11 version 6" >&5
3736 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then
3737 echo $ac_n "(cached) $ac_c" 1>&6
3739 cat > conftest.
$ac_ext <<EOF
3740 #line 3741 "configure"
3741 #include "confdefs.h"
3742 #include <X11/Xlib.h>
3744 #if XlibSpecificationRelease < 6
3750 if { (eval echo configure
:3751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3752 emacs_cv_x11_version_6
=yes
3754 echo "configure: failed program was:" >&5
3755 cat conftest.
$ac_ext >&5
3757 emacs_cv_x11_version_6
=no
3762 if test $emacs_cv_x11_version_6 = yes; then
3763 echo "$ac_t""6 or newer" 1>&6
3764 cat >> confdefs.h
<<\EOF
3765 #define HAVE_X11R6 1
3769 echo "$ac_t""before 6" 1>&6
3773 if test "${window_system}" = "x11"; then
3774 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6
3775 echo "configure:3776: checking X11 version 5" >&5
3776 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then
3777 echo $ac_n "(cached) $ac_c" 1>&6
3779 cat > conftest.
$ac_ext <<EOF
3780 #line 3781 "configure"
3781 #include "confdefs.h"
3782 #include <X11/Xlib.h>
3784 #if XlibSpecificationRelease < 5
3790 if { (eval echo configure
:3791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3792 emacs_cv_x11_version_5
=yes
3794 echo "configure: failed program was:" >&5
3795 cat conftest.
$ac_ext >&5
3797 emacs_cv_x11_version_5
=no
3802 if test $emacs_cv_x11_version_5 = yes; then
3803 echo "$ac_t""5 or newer" 1>&6
3805 cat >> confdefs.h
<<\EOF
3806 #define HAVE_X11R5 1
3811 echo "$ac_t""before 5" 1>&6
3815 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
3816 if test x
"${HAVE_X11R5}" = xyes
; then
3817 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6
3818 echo "configure:3819: checking X11 version 5 with Xaw" >&5
3819 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then
3820 echo $ac_n "(cached) $ac_c" 1>&6
3822 cat > conftest.
$ac_ext <<EOF
3823 #line 3824 "configure"
3824 #include "confdefs.h"
3826 #include <X11/Intrinsic.h>
3827 #include <X11/Xaw/Simple.h>
3832 if { (eval echo configure
:3833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3834 emacs_cv_x11_version_5_with_xaw
=yes
3836 echo "configure: failed program was:" >&5
3837 cat conftest.
$ac_ext >&5
3839 emacs_cv_x11_version_5_with_xaw
=no
3844 if test $emacs_cv_x11_version_5_with_xaw = yes; then
3845 echo "$ac_t""5 or newer, with Xaw; use toolkit by default" 1>&6
3848 echo "$ac_t""before 5 or no Xaw; do not use toolkit by default" 1>&6
3856 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
3858 if test "${USE_X_TOOLKIT}" != "none"; then
3859 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6
3860 echo "configure:3861: checking X11 toolkit version" >&5
3861 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then
3862 echo $ac_n "(cached) $ac_c" 1>&6
3864 cat > conftest.
$ac_ext <<EOF
3865 #line 3866 "configure"
3866 #include "confdefs.h"
3867 #include <X11/Intrinsic.h>
3869 #if XtSpecificationRelease < 6
3875 if { (eval echo configure
:3876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3877 emacs_cv_x11_toolkit_version_6
=yes
3879 echo "configure: failed program was:" >&5
3880 cat conftest.
$ac_ext >&5
3882 emacs_cv_x11_toolkit_version_6
=no
3887 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
3888 if test $emacs_cv_x11_toolkit_version_6 = yes; then
3889 echo "$ac_t""6 or newer" 1>&6
3890 cat >> confdefs.h
<<\EOF
3891 #define HAVE_X11XTR6 1
3895 echo "$ac_t""before 6" 1>&6
3899 if test x
$HAVE_X11XTR6 = xyes
; then
3900 LIBS
="-lXt -lSM -lICE $LIBS"
3904 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
3905 echo "configure:3906: checking for XmuConvertStandardSelection in -lXmu" >&5
3906 ac_lib_var
=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
3907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3908 echo $ac_n "(cached) $ac_c" 1>&6
3910 ac_save_LIBS
="$LIBS"
3912 cat > conftest.
$ac_ext <<EOF
3913 #line 3914 "configure"
3914 #include "confdefs.h"
3915 /* Override any gcc2 internal prototype to avoid an error. */
3916 /* We use char because int might match the return type of a gcc2
3917 builtin and then its argument prototype would still apply. */
3918 char XmuConvertStandardSelection();
3921 XmuConvertStandardSelection()
3924 if { (eval echo configure
:3925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3926 eval "ac_cv_lib_$ac_lib_var=yes"
3928 echo "configure: failed program was:" >&5
3929 cat conftest.
$ac_ext >&5
3931 eval "ac_cv_lib_$ac_lib_var=no"
3934 LIBS
="$ac_save_LIBS"
3937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3938 echo "$ac_t""yes" 1>&6
3939 ac_tr_lib
=HAVE_LIB
`echo Xmu | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3940 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3941 cat >> confdefs.h
<<EOF
3942 #define $ac_tr_lib 1
3948 echo "$ac_t""no" 1>&6
3954 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
3955 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6
3956 echo "configure:3957: checking for Motif version 2.1" >&5
3957 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then
3958 echo $ac_n "(cached) $ac_c" 1>&6
3960 cat > conftest.
$ac_ext <<EOF
3961 #line 3962 "configure"
3962 #include "confdefs.h"
3965 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
3968 Motif version prior to 2.1.
3972 if { (eval echo configure
:3973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3974 emacs_cv_motif_version_2_1
=yes
3976 echo "configure: failed program was:" >&5
3977 cat conftest.
$ac_ext >&5
3979 emacs_cv_motif_version_2_1
=no
3984 echo "$ac_t""$emacs_cv_motif_version_2_1" 1>&6
3985 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
3986 if test $emacs_cv_motif_version_2_1 = yes; then
3987 cat >> confdefs.h
<<\EOF
3988 #define HAVE_MOTIF_2_1 1
3991 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6
3992 echo "configure:3993: checking for XpCreateContext in -lXp" >&5
3993 ac_lib_var
=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`
3994 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3995 echo $ac_n "(cached) $ac_c" 1>&6
3997 ac_save_LIBS
="$LIBS"
3999 cat > conftest.
$ac_ext <<EOF
4000 #line 4001 "configure"
4001 #include "confdefs.h"
4002 /* Override any gcc2 internal prototype to avoid an error. */
4003 /* We use char because int might match the return type of a gcc2
4004 builtin and then its argument prototype would still apply. */
4005 char XpCreateContext();
4011 if { (eval echo configure
:4012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4013 eval "ac_cv_lib_$ac_lib_var=yes"
4015 echo "configure: failed program was:" >&5
4016 cat conftest.
$ac_ext >&5
4018 eval "ac_cv_lib_$ac_lib_var=no"
4021 LIBS
="$ac_save_LIBS"
4024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4025 echo "$ac_t""yes" 1>&6
4026 ac_tr_lib
=HAVE_LIB
`echo Xp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4027 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4028 cat >> confdefs.h
<<EOF
4029 #define $ac_tr_lib 1
4035 echo "$ac_t""no" 1>&6
4041 ### Is -lXaw3d available?
4043 if test "${HAVE_X11}" = "yes"; then
4044 if test "${USE_X_TOOLKIT}" != "none"; then
4045 old_c_flags
="${CFLAGS}"
4046 CFLAGS
="${LD_SWITCH_X_SITE}"
4047 ac_safe
=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'`
4048 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6
4049 echo "configure:4050: checking for X11/Xaw3d/Scrollbar.h" >&5
4050 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4051 echo $ac_n "(cached) $ac_c" 1>&6
4053 cat > conftest.
$ac_ext <<EOF
4054 #line 4055 "configure"
4055 #include "confdefs.h"
4056 #include <X11/Xaw3d/Scrollbar.h>
4058 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4059 { (eval echo configure
:4060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4060 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4061 if test -z "$ac_err"; then
4063 eval "ac_cv_header_$ac_safe=yes"
4066 echo "configure: failed program was:" >&5
4067 cat conftest.
$ac_ext >&5
4069 eval "ac_cv_header_$ac_safe=no"
4073 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4074 echo "$ac_t""yes" 1>&6
4075 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
4076 echo "configure:4077: checking for XawScrollbarSetThumb in -lXaw3d" >&5
4077 ac_lib_var
=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
4078 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4079 echo $ac_n "(cached) $ac_c" 1>&6
4081 ac_save_LIBS
="$LIBS"
4082 LIBS
="-lXaw3d -lX11 $LIBS"
4083 cat > conftest.
$ac_ext <<EOF
4084 #line 4085 "configure"
4085 #include "confdefs.h"
4086 /* Override any gcc2 internal prototype to avoid an error. */
4087 /* We use char because int might match the return type of a gcc2
4088 builtin and then its argument prototype would still apply. */
4089 char XawScrollbarSetThumb();
4092 XawScrollbarSetThumb()
4095 if { (eval echo configure
:4096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4097 eval "ac_cv_lib_$ac_lib_var=yes"
4099 echo "configure: failed program was:" >&5
4100 cat conftest.
$ac_ext >&5
4102 eval "ac_cv_lib_$ac_lib_var=no"
4105 LIBS
="$ac_save_LIBS"
4108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4109 echo "$ac_t""yes" 1>&6
4112 echo "$ac_t""no" 1>&6
4116 echo "$ac_t""no" 1>&6
4119 CFLAGS
="${old_c_flags}"
4121 if test "${HAVE_XAW3D}" = "yes"; then
4122 cat >> confdefs.h
<<\EOF
4123 #define HAVE_XAW3D 1
4131 USE_TOOLKIT_SCROLL_BARS
=no
4132 if test "${with_toolkit_scroll_bars}" != "no"; then
4133 if test "${USE_X_TOOLKIT}" != "none"; then
4134 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
4135 cat >> confdefs.h
<<\EOF
4136 #define USE_TOOLKIT_SCROLL_BARS 1
4140 USE_TOOLKIT_SCROLL_BARS
=yes
4141 elif test "${HAVE_XAW3D}" = "yes"; then
4142 cat >> confdefs.h
<<\EOF
4143 #define USE_TOOLKIT_SCROLL_BARS 1
4146 USE_TOOLKIT_SCROLL_BARS
=yes
4151 ### Use -lXpm if available, unless `--with-xpm=no'.
4153 if test "${HAVE_X11}" = "yes"; then
4154 if test "${with_xpm}" != "no"; then
4155 old_c_flags
="${CFLAGS}"
4156 CFLAGS
="${LD_SWITCH_X_SITE}"
4157 ac_safe
=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4158 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4159 echo "configure:4160: checking for X11/xpm.h" >&5
4160 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4161 echo $ac_n "(cached) $ac_c" 1>&6
4163 cat > conftest.
$ac_ext <<EOF
4164 #line 4165 "configure"
4165 #include "confdefs.h"
4166 #include <X11/xpm.h>
4168 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4169 { (eval echo configure
:4170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4170 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4171 if test -z "$ac_err"; then
4173 eval "ac_cv_header_$ac_safe=yes"
4176 echo "configure: failed program was:" >&5
4177 cat conftest.
$ac_ext >&5
4179 eval "ac_cv_header_$ac_safe=no"
4183 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4184 echo "$ac_t""yes" 1>&6
4185 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
4186 echo "configure:4187: checking for XpmReadFileToPixmap in -lXpm" >&5
4187 ac_lib_var
=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
4188 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4189 echo $ac_n "(cached) $ac_c" 1>&6
4191 ac_save_LIBS
="$LIBS"
4192 LIBS
="-lXpm -lX11 $LIBS"
4193 cat > conftest.
$ac_ext <<EOF
4194 #line 4195 "configure"
4195 #include "confdefs.h"
4196 /* Override any gcc2 internal prototype to avoid an error. */
4197 /* We use char because int might match the return type of a gcc2
4198 builtin and then its argument prototype would still apply. */
4199 char XpmReadFileToPixmap();
4202 XpmReadFileToPixmap()
4205 if { (eval echo configure
:4206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4207 eval "ac_cv_lib_$ac_lib_var=yes"
4209 echo "configure: failed program was:" >&5
4210 cat conftest.
$ac_ext >&5
4212 eval "ac_cv_lib_$ac_lib_var=no"
4215 LIBS
="$ac_save_LIBS"
4218 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4219 echo "$ac_t""yes" 1>&6
4222 echo "$ac_t""no" 1>&6
4226 echo "$ac_t""no" 1>&6
4229 CFLAGS
="${old_c_flags}"
4232 if test "${HAVE_XPM}" = "yes"; then
4233 cat >> confdefs.h
<<\EOF
4240 ### Use -ljpeg if available, unless `--with-jpeg=no'.
4242 if test "${HAVE_X11}" = "yes"; then
4243 if test "${with_jpeg}" != "no"; then
4244 old_c_flags
="${CFLAGS}"
4245 CFLAGS
="${LD_SWITCH_X_SITE} ${CFLAGS}"
4246 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
4247 echo "configure:4248: checking for jpeg_destroy_compress in -ljpeg" >&5
4248 ac_lib_var
=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
4249 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4250 echo $ac_n "(cached) $ac_c" 1>&6
4252 ac_save_LIBS
="$LIBS"
4253 LIBS
="-ljpeg -lX11 $LIBS"
4254 cat > conftest.
$ac_ext <<EOF
4255 #line 4256 "configure"
4256 #include "confdefs.h"
4257 /* Override any gcc2 internal prototype to avoid an error. */
4258 /* We use char because int might match the return type of a gcc2
4259 builtin and then its argument prototype would still apply. */
4260 char jpeg_destroy_compress();
4263 jpeg_destroy_compress()
4266 if { (eval echo configure
:4267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4268 eval "ac_cv_lib_$ac_lib_var=yes"
4270 echo "configure: failed program was:" >&5
4271 cat conftest.
$ac_ext >&5
4273 eval "ac_cv_lib_$ac_lib_var=no"
4276 LIBS
="$ac_save_LIBS"
4279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4280 echo "$ac_t""yes" 1>&6
4283 echo "$ac_t""no" 1>&6
4286 CFLAGS
="${old_c_flags}"
4289 if test "${HAVE_JPEG}" = "yes"; then
4290 cat >> confdefs.h
<<\EOF
4297 ### Use -lpng if available, unless `--with-png=no'.
4299 if test "${HAVE_X11}" = "yes"; then
4300 if test "${with_png}" != "no"; then
4301 old_c_flags
="${CFLAGS}"
4302 CFLAGS
="${LD_SWITCH_X_SITE} ${CFLAGS}"
4303 ac_safe
=`echo "png.h" | sed 'y%./+-%__p_%'`
4304 echo $ac_n "checking for png.h""... $ac_c" 1>&6
4305 echo "configure:4306: checking for png.h" >&5
4306 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4307 echo $ac_n "(cached) $ac_c" 1>&6
4309 cat > conftest.
$ac_ext <<EOF
4310 #line 4311 "configure"
4311 #include "confdefs.h"
4314 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4315 { (eval echo configure
:4316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4316 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4317 if test -z "$ac_err"; then
4319 eval "ac_cv_header_$ac_safe=yes"
4322 echo "configure: failed program was:" >&5
4323 cat conftest.
$ac_ext >&5
4325 eval "ac_cv_header_$ac_safe=no"
4329 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4330 echo "$ac_t""yes" 1>&6
4331 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6
4332 echo "configure:4333: checking for png_set_expand in -lpng" >&5
4333 ac_lib_var
=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'`
4334 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4335 echo $ac_n "(cached) $ac_c" 1>&6
4337 ac_save_LIBS
="$LIBS"
4338 LIBS
="-lpng -lX11 -lz -lm $LIBS"
4339 cat > conftest.
$ac_ext <<EOF
4340 #line 4341 "configure"
4341 #include "confdefs.h"
4342 /* Override any gcc2 internal prototype to avoid an error. */
4343 /* We use char because int might match the return type of a gcc2
4344 builtin and then its argument prototype would still apply. */
4345 char png_set_expand();
4351 if { (eval echo configure
:4352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4353 eval "ac_cv_lib_$ac_lib_var=yes"
4355 echo "configure: failed program was:" >&5
4356 cat conftest.
$ac_ext >&5
4358 eval "ac_cv_lib_$ac_lib_var=no"
4361 LIBS
="$ac_save_LIBS"
4364 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4365 echo "$ac_t""yes" 1>&6
4368 echo "$ac_t""no" 1>&6
4372 echo "$ac_t""no" 1>&6
4375 CFLAGS
="${old_c_flags}"
4378 if test "${HAVE_PNG}" = "yes"; then
4379 cat >> confdefs.h
<<\EOF
4386 ### Use -ltiff if available, unless `--with-tiff=no'.
4388 if test "${HAVE_X11}" = "yes"; then
4389 if test "${with_tiff}" != "no"; then
4390 old_c_flags
="${CFLAGS}"
4391 CFLAGS
="${LD_SWITCH_X_SITE} ${CFLAGS}"
4392 ac_safe
=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
4393 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
4394 echo "configure:4395: checking for tiffio.h" >&5
4395 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4396 echo $ac_n "(cached) $ac_c" 1>&6
4398 cat > conftest.
$ac_ext <<EOF
4399 #line 4400 "configure"
4400 #include "confdefs.h"
4403 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4404 { (eval echo configure
:4405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4405 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4406 if test -z "$ac_err"; then
4408 eval "ac_cv_header_$ac_safe=yes"
4411 echo "configure: failed program was:" >&5
4412 cat conftest.
$ac_ext >&5
4414 eval "ac_cv_header_$ac_safe=no"
4418 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4419 echo "$ac_t""yes" 1>&6
4420 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4421 echo "configure:4422: checking for TIFFGetVersion in -ltiff" >&5
4422 ac_lib_var
=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4423 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4424 echo $ac_n "(cached) $ac_c" 1>&6
4426 ac_save_LIBS
="$LIBS"
4427 LIBS
="-ltiff -lX11 -lm $LIBS"
4428 cat > conftest.
$ac_ext <<EOF
4429 #line 4430 "configure"
4430 #include "confdefs.h"
4431 /* Override any gcc2 internal prototype to avoid an error. */
4432 /* We use char because int might match the return type of a gcc2
4433 builtin and then its argument prototype would still apply. */
4434 char TIFFGetVersion();
4440 if { (eval echo configure
:4441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4442 eval "ac_cv_lib_$ac_lib_var=yes"
4444 echo "configure: failed program was:" >&5
4445 cat conftest.
$ac_ext >&5
4447 eval "ac_cv_lib_$ac_lib_var=no"
4450 LIBS
="$ac_save_LIBS"
4453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4454 echo "$ac_t""yes" 1>&6
4457 echo "$ac_t""no" 1>&6
4461 echo "$ac_t""no" 1>&6
4464 CFLAGS
="${old_c_flags}"
4467 if test "${HAVE_TIFF}" = "yes"; then
4468 cat >> confdefs.h
<<\EOF
4475 ### Use -lgif if available, unless `--with-gif=no'.
4477 if test "${HAVE_X11}" = "yes"; then
4478 if test "${with_gif}" != "no"; then
4479 old_c_flags
="${CFLAGS}"
4480 CFLAGS
="${LD_SWITCH_X_SITE} ${CFLAGS}"
4481 ac_safe
=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
4482 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
4483 echo "configure:4484: checking for gif_lib.h" >&5
4484 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4485 echo $ac_n "(cached) $ac_c" 1>&6
4487 cat > conftest.
$ac_ext <<EOF
4488 #line 4489 "configure"
4489 #include "confdefs.h"
4490 #include <gif_lib.h>
4492 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4493 { (eval echo configure
:4494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4494 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4495 if test -z "$ac_err"; then
4497 eval "ac_cv_header_$ac_safe=yes"
4500 echo "configure: failed program was:" >&5
4501 cat conftest.
$ac_ext >&5
4503 eval "ac_cv_header_$ac_safe=no"
4507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4508 echo "$ac_t""yes" 1>&6
4509 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
4510 echo "configure:4511: checking for DGifOpenFileName in -lungif" >&5
4511 ac_lib_var
=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4513 echo $ac_n "(cached) $ac_c" 1>&6
4515 ac_save_LIBS
="$LIBS"
4516 LIBS
="-lungif -lX11 $LIBS"
4517 cat > conftest.
$ac_ext <<EOF
4518 #line 4519 "configure"
4519 #include "confdefs.h"
4520 /* Override any gcc2 internal prototype to avoid an error. */
4521 /* We use char because int might match the return type of a gcc2
4522 builtin and then its argument prototype would still apply. */
4523 char DGifOpenFileName();
4529 if { (eval echo configure
:4530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4531 eval "ac_cv_lib_$ac_lib_var=yes"
4533 echo "configure: failed program was:" >&5
4534 cat conftest.
$ac_ext >&5
4536 eval "ac_cv_lib_$ac_lib_var=no"
4539 LIBS
="$ac_save_LIBS"
4542 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4543 echo "$ac_t""yes" 1>&6
4546 echo "$ac_t""no" 1>&6
4550 echo "$ac_t""no" 1>&6
4553 CFLAGS
="${old_c_flags}"
4556 if test "${HAVE_GIF}" = "yes"; then
4557 cat >> confdefs.h
<<\EOF
4564 # If netdb.h doesn't declare h_errno, we must declare it by hand.
4565 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
4566 echo "configure:4567: checking whether netdb declares h_errno" >&5
4567 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
4568 echo $ac_n "(cached) $ac_c" 1>&6
4570 cat > conftest.
$ac_ext <<EOF
4571 #line 4572 "configure"
4572 #include "confdefs.h"
4578 if { (eval echo configure
:4579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4580 emacs_cv_netdb_declares_h_errno
=yes
4582 echo "configure: failed program was:" >&5
4583 cat conftest.
$ac_ext >&5
4585 emacs_cv_netdb_declares_h_errno
=no
4590 echo "$ac_t""$emacs_cv_netdb_declares_h_errno" 1>&6
4591 if test $emacs_cv_netdb_declares_h_errno = yes; then
4592 cat >> confdefs.h
<<\EOF
4593 #define HAVE_H_ERRNO 1
4598 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4599 # for constant arguments. Useless!
4600 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4601 echo "configure:4602: checking for working alloca.h" >&5
4602 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4603 echo $ac_n "(cached) $ac_c" 1>&6
4605 cat > conftest.
$ac_ext <<EOF
4606 #line 4607 "configure"
4607 #include "confdefs.h"
4610 char *p = alloca(2 * sizeof(int));
4613 if { (eval echo configure
:4614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4615 ac_cv_header_alloca_h
=yes
4617 echo "configure: failed program was:" >&5
4618 cat conftest.
$ac_ext >&5
4620 ac_cv_header_alloca_h
=no
4625 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4626 if test $ac_cv_header_alloca_h = yes; then
4627 cat >> confdefs.h
<<\EOF
4628 #define HAVE_ALLOCA_H 1
4633 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4634 echo "configure:4635: checking for alloca" >&5
4635 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4636 echo $ac_n "(cached) $ac_c" 1>&6
4638 cat > conftest.
$ac_ext <<EOF
4639 #line 4640 "configure"
4640 #include "confdefs.h"
4643 # define alloca __builtin_alloca
4646 # include <malloc.h>
4647 # define alloca _alloca
4650 # include <alloca.h>
4655 # ifndef alloca /* predefined by HP cc +Olibcalls */
4664 char *p = (char *) alloca(1);
4667 if { (eval echo configure
:4668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4669 ac_cv_func_alloca_works
=yes
4671 echo "configure: failed program was:" >&5
4672 cat conftest.
$ac_ext >&5
4674 ac_cv_func_alloca_works
=no
4679 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4680 if test $ac_cv_func_alloca_works = yes; then
4681 cat >> confdefs.h
<<\EOF
4682 #define HAVE_ALLOCA 1
4687 if test $ac_cv_func_alloca_works = no
; then
4688 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4689 # that cause trouble. Some versions do not even contain alloca or
4690 # contain a buggy version. If you still want to use their alloca,
4691 # use ar to extract alloca.o from them instead of compiling alloca.c.
4692 ALLOCA
=alloca.
${ac_objext}
4693 cat >> confdefs.h
<<\EOF
4698 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4699 echo "configure:4700: checking whether alloca needs Cray hooks" >&5
4700 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4701 echo $ac_n "(cached) $ac_c" 1>&6
4703 cat > conftest.
$ac_ext <<EOF
4704 #line 4705 "configure"
4705 #include "confdefs.h"
4706 #if defined(CRAY) && ! defined(CRAY2)
4713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4714 egrep "webecray" >/dev
/null
2>&1; then
4725 echo "$ac_t""$ac_cv_os_cray" 1>&6
4726 if test $ac_cv_os_cray = yes; then
4727 for ac_func
in _getb67 GETB67 getb67
; do
4728 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4729 echo "configure:4730: checking for $ac_func" >&5
4730 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4731 echo $ac_n "(cached) $ac_c" 1>&6
4733 cat > conftest.
$ac_ext <<EOF
4734 #line 4735 "configure"
4735 #include "confdefs.h"
4736 /* System header to define __stub macros and hopefully few prototypes,
4737 which can conflict with char $ac_func(); below. */
4739 /* Override any gcc2 internal prototype to avoid an error. */
4740 /* We use char because int might match the return type of a gcc2
4741 builtin and then its argument prototype would still apply. */
4747 /* The GNU C library defines this for functions which it implements
4748 to always fail with ENOSYS. Some functions are actually named
4749 something starting with __ and the normal name is an alias. */
4750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4758 if { (eval echo configure
:4759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4760 eval "ac_cv_func_$ac_func=yes"
4762 echo "configure: failed program was:" >&5
4763 cat conftest.
$ac_ext >&5
4765 eval "ac_cv_func_$ac_func=no"
4770 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4771 echo "$ac_t""yes" 1>&6
4772 cat >> confdefs.h
<<EOF
4773 #define CRAY_STACKSEG_END $ac_func
4778 echo "$ac_t""no" 1>&6
4784 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4785 echo "configure:4786: checking stack direction for C alloca" >&5
4786 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4787 echo $ac_n "(cached) $ac_c" 1>&6
4789 if test "$cross_compiling" = yes; then
4790 ac_cv_c_stack_direction
=0
4792 cat > conftest.
$ac_ext <<EOF
4793 #line 4794 "configure"
4794 #include "confdefs.h"
4795 find_stack_direction ()
4797 static char *addr = 0;
4802 return find_stack_direction ();
4805 return (&dummy > addr) ? 1 : -1;
4809 exit (find_stack_direction() < 0);
4812 if { (eval echo configure
:4813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4814 ac_cv_c_stack_direction
=1
4816 echo "configure: failed program was:" >&5
4817 cat conftest.
$ac_ext >&5
4819 ac_cv_c_stack_direction
=-1
4826 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4827 cat >> confdefs.h
<<EOF
4828 #define STACK_DIRECTION $ac_cv_c_stack_direction
4834 # fmod, logb, and frexp are found in -lm on most systems.
4835 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
4836 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
4837 echo "configure:4838: checking for sqrt in -lm" >&5
4838 ac_lib_var
=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
4839 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4840 echo $ac_n "(cached) $ac_c" 1>&6
4842 ac_save_LIBS
="$LIBS"
4844 cat > conftest.
$ac_ext <<EOF
4845 #line 4846 "configure"
4846 #include "confdefs.h"
4847 /* Override any gcc2 internal prototype to avoid an error. */
4848 /* We use char because int might match the return type of a gcc2
4849 builtin and then its argument prototype would still apply. */
4856 if { (eval echo configure
:4857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4858 eval "ac_cv_lib_$ac_lib_var=yes"
4860 echo "configure: failed program was:" >&5
4861 cat conftest.
$ac_ext >&5
4863 eval "ac_cv_lib_$ac_lib_var=no"
4866 LIBS
="$ac_save_LIBS"
4869 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4870 echo "$ac_t""yes" 1>&6
4871 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4872 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4873 cat >> confdefs.h
<<EOF
4874 #define $ac_tr_lib 1
4880 echo "$ac_t""no" 1>&6
4884 # Check for mail-locking functions in a "mail" library
4885 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
4886 echo "configure:4887: checking for maillock in -lmail" >&5
4887 ac_lib_var
=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
4888 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4889 echo $ac_n "(cached) $ac_c" 1>&6
4891 ac_save_LIBS
="$LIBS"
4893 cat > conftest.
$ac_ext <<EOF
4894 #line 4895 "configure"
4895 #include "confdefs.h"
4896 /* Override any gcc2 internal prototype to avoid an error. */
4897 /* We use char because int might match the return type of a gcc2
4898 builtin and then its argument prototype would still apply. */
4905 if { (eval echo configure
:4906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4907 eval "ac_cv_lib_$ac_lib_var=yes"
4909 echo "configure: failed program was:" >&5
4910 cat conftest.
$ac_ext >&5
4912 eval "ac_cv_lib_$ac_lib_var=no"
4915 LIBS
="$ac_save_LIBS"
4918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4919 echo "$ac_t""yes" 1>&6
4920 ac_tr_lib
=HAVE_LIB
`echo mail | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4921 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4922 cat >> confdefs.h
<<EOF
4923 #define $ac_tr_lib 1
4929 echo "$ac_t""no" 1>&6
4932 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6
4933 echo "configure:4934: checking for maillock in -llockfile" >&5
4934 ac_lib_var
=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`
4935 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4936 echo $ac_n "(cached) $ac_c" 1>&6
4938 ac_save_LIBS
="$LIBS"
4939 LIBS
="-llockfile $LIBS"
4940 cat > conftest.
$ac_ext <<EOF
4941 #line 4942 "configure"
4942 #include "confdefs.h"
4943 /* Override any gcc2 internal prototype to avoid an error. */
4944 /* We use char because int might match the return type of a gcc2
4945 builtin and then its argument prototype would still apply. */
4952 if { (eval echo configure
:4953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4954 eval "ac_cv_lib_$ac_lib_var=yes"
4956 echo "configure: failed program was:" >&5
4957 cat conftest.
$ac_ext >&5
4959 eval "ac_cv_lib_$ac_lib_var=no"
4962 LIBS
="$ac_save_LIBS"
4965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4966 echo "$ac_t""yes" 1>&6
4967 ac_tr_lib
=HAVE_LIB
`echo lockfile | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4968 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4969 cat >> confdefs.h
<<EOF
4970 #define $ac_tr_lib 1
4973 LIBS
="-llockfile $LIBS"
4976 echo "$ac_t""no" 1>&6
4979 # If we have the shared liblockfile, assume we must use it for mail
4980 # locking (e.g. Debian). If we couldn't link against liblockfile
4981 # (no liblockfile.a installed), ensure that we don't need to.
4982 if test "$ac_cv_lib_lockfile_maillock" = no
; then
4983 # Extract the first word of "liblockfile.so", so it can be a program name with args.
4984 set dummy liblockfile.so
; ac_word
=$2
4985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4986 echo "configure:4987: checking for $ac_word" >&5
4987 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then
4988 echo $ac_n "(cached) $ac_c" 1>&6
4990 if test -n "$liblockfile"; then
4991 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
4993 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4994 ac_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
4995 for ac_dir
in $ac_dummy; do
4996 test -z "$ac_dir" && ac_dir
=.
4997 if test -f $ac_dir/$ac_word; then
4998 ac_cv_prog_liblockfile
="yes"
5003 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
5006 liblockfile
="$ac_cv_prog_liblockfile"
5007 if test -n "$liblockfile"; then
5008 echo "$ac_t""$liblockfile" 1>&6
5010 echo "$ac_t""no" 1>&6
5013 if test $ac_cv_prog_liblockfile = yes; then
5014 { echo "configure: error: Shared liblockfile found but can't link against it.
5015 This probably means that movemail could lose mail.
5016 There may be a \`development' package to install containing liblockfile." 1>&2; exit 1; }
5017 else cat >> confdefs.h
<<\EOF
5018 #define LIBMAIL -llockfile
5024 for ac_func
in touchlock
5026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5027 echo "configure:5028: checking for $ac_func" >&5
5028 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5029 echo $ac_n "(cached) $ac_c" 1>&6
5031 cat > conftest.
$ac_ext <<EOF
5032 #line 5033 "configure"
5033 #include "confdefs.h"
5034 /* System header to define __stub macros and hopefully few prototypes,
5035 which can conflict with char $ac_func(); below. */
5037 /* Override any gcc2 internal prototype to avoid an error. */
5038 /* We use char because int might match the return type of a gcc2
5039 builtin and then its argument prototype would still apply. */
5045 /* The GNU C library defines this for functions which it implements
5046 to always fail with ENOSYS. Some functions are actually named
5047 something starting with __ and the normal name is an alias. */
5048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5056 if { (eval echo configure
:5057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5058 eval "ac_cv_func_$ac_func=yes"
5060 echo "configure: failed program was:" >&5
5061 cat conftest.
$ac_ext >&5
5063 eval "ac_cv_func_$ac_func=no"
5068 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5069 echo "$ac_t""yes" 1>&6
5070 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5071 cat >> confdefs.h
<<EOF
5072 #define $ac_tr_func 1
5076 echo "$ac_t""no" 1>&6
5080 for ac_hdr
in maillock.h
5082 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5083 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5084 echo "configure:5085: checking for $ac_hdr" >&5
5085 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5086 echo $ac_n "(cached) $ac_c" 1>&6
5088 cat > conftest.
$ac_ext <<EOF
5089 #line 5090 "configure"
5090 #include "confdefs.h"
5093 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5094 { (eval echo configure
:5095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5095 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5096 if test -z "$ac_err"; then
5098 eval "ac_cv_header_$ac_safe=yes"
5101 echo "configure: failed program was:" >&5
5102 cat conftest.
$ac_ext >&5
5104 eval "ac_cv_header_$ac_safe=no"
5108 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5109 echo "$ac_t""yes" 1>&6
5110 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5111 cat >> confdefs.h
<<EOF
5112 #define $ac_tr_hdr 1
5116 echo "$ac_t""no" 1>&6
5121 for ac_func
in gettimeofday gethostname getdomainname dup2 \
5122 rename closedir mkdir
rmdir sysinfo \
5123 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
5124 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
5125 utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo \
5126 __fpending ftello getloadavg mblen mbrlen strsignal
5128 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5129 echo "configure:5130: checking for $ac_func" >&5
5130 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5131 echo $ac_n "(cached) $ac_c" 1>&6
5133 cat > conftest.
$ac_ext <<EOF
5134 #line 5135 "configure"
5135 #include "confdefs.h"
5136 /* System header to define __stub macros and hopefully few prototypes,
5137 which can conflict with char $ac_func(); below. */
5139 /* Override any gcc2 internal prototype to avoid an error. */
5140 /* We use char because int might match the return type of a gcc2
5141 builtin and then its argument prototype would still apply. */
5147 /* The GNU C library defines this for functions which it implements
5148 to always fail with ENOSYS. Some functions are actually named
5149 something starting with __ and the normal name is an alias. */
5150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5158 if { (eval echo configure
:5159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5160 eval "ac_cv_func_$ac_func=yes"
5162 echo "configure: failed program was:" >&5
5163 cat conftest.
$ac_ext >&5
5165 eval "ac_cv_func_$ac_func=no"
5170 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5171 echo "$ac_t""yes" 1>&6
5172 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5173 cat >> confdefs.h
<<EOF
5174 #define $ac_tr_func 1
5178 echo "$ac_t""no" 1>&6
5183 # Check this now, so that we will NOT find the above functions in ncurses.
5184 # That is because we have not set up to link ncurses in lib-src.
5185 # It's better to believe a function is not available
5186 # than to expect to find it in ncurses.
5187 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
5188 echo "configure:5189: checking for tparm in -lncurses" >&5
5189 ac_lib_var
=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
5190 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5191 echo $ac_n "(cached) $ac_c" 1>&6
5193 ac_save_LIBS
="$LIBS"
5194 LIBS
="-lncurses $LIBS"
5195 cat > conftest.
$ac_ext <<EOF
5196 #line 5197 "configure"
5197 #include "confdefs.h"
5198 /* Override any gcc2 internal prototype to avoid an error. */
5199 /* We use char because int might match the return type of a gcc2
5200 builtin and then its argument prototype would still apply. */
5207 if { (eval echo configure
:5208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5209 eval "ac_cv_lib_$ac_lib_var=yes"
5211 echo "configure: failed program was:" >&5
5212 cat conftest.
$ac_ext >&5
5214 eval "ac_cv_lib_$ac_lib_var=no"
5217 LIBS
="$ac_save_LIBS"
5220 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5221 echo "$ac_t""yes" 1>&6
5222 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5223 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5224 cat >> confdefs.h
<<EOF
5225 #define $ac_tr_lib 1
5228 LIBS
="-lncurses $LIBS"
5231 echo "$ac_t""no" 1>&6
5235 # Solaris requires -lintl if you want strerror (which calls dgettext)
5236 # to return localized messages.
5237 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
5238 echo "configure:5239: checking for dgettext in -lintl" >&5
5239 ac_lib_var
=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
5240 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5241 echo $ac_n "(cached) $ac_c" 1>&6
5243 ac_save_LIBS
="$LIBS"
5245 cat > conftest.
$ac_ext <<EOF
5246 #line 5247 "configure"
5247 #include "confdefs.h"
5248 /* Override any gcc2 internal prototype to avoid an error. */
5249 /* We use char because int might match the return type of a gcc2
5250 builtin and then its argument prototype would still apply. */
5257 if { (eval echo configure
:5258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5259 eval "ac_cv_lib_$ac_lib_var=yes"
5261 echo "configure: failed program was:" >&5
5262 cat conftest.
$ac_ext >&5
5264 eval "ac_cv_lib_$ac_lib_var=no"
5267 LIBS
="$ac_save_LIBS"
5270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5271 echo "$ac_t""yes" 1>&6
5272 ac_tr_lib
=HAVE_LIB
`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5273 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5274 cat >> confdefs.h
<<EOF
5275 #define $ac_tr_lib 1
5281 echo "$ac_t""no" 1>&6
5285 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
5286 echo "configure:5287: checking whether localtime caches TZ" >&5
5287 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
5288 echo $ac_n "(cached) $ac_c" 1>&6
5290 if test x
$ac_cv_func_tzset = xyes
; then
5291 if test "$cross_compiling" = yes; then
5292 # If we have tzset, assume the worst when cross-compiling.
5293 emacs_cv_localtime_cache
=yes
5295 cat > conftest.
$ac_ext <<EOF
5296 #line 5297 "configure"
5297 #include "confdefs.h"
5299 extern char **environ;
5303 for (to = from = environ; (*to = *from); from++)
5304 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
5307 char TZ_GMT0[] = "TZ=GMT0";
5308 char TZ_PST8[] = "TZ=PST8";
5311 time_t now = time ((time_t *) 0);
5312 int hour_GMT0, hour_unset;
5313 if (putenv (TZ_GMT0) != 0)
5315 hour_GMT0 = localtime (&now)->tm_hour;
5317 hour_unset = localtime (&now)->tm_hour;
5318 if (putenv (TZ_PST8) != 0)
5320 if (localtime (&now)->tm_hour == hour_GMT0)
5323 if (localtime (&now)->tm_hour != hour_unset)
5328 if { (eval echo configure
:5329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5330 emacs_cv_localtime_cache
=no
5332 echo "configure: failed program was:" >&5
5333 cat conftest.
$ac_ext >&5
5335 emacs_cv_localtime_cache
=yes
5341 # If we lack tzset, report that localtime does not cache TZ,
5342 # since we can't invalidate the cache if we don't have tzset.
5343 emacs_cv_localtime_cache
=no
5346 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
5347 if test $emacs_cv_localtime_cache = yes; then
5348 cat >> confdefs.h
<<\EOF
5349 #define LOCALTIME_CACHE 1
5354 if test "x$HAVE_TIMEVAL" = xyes
; then
5355 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
5356 echo "configure:5357: checking whether gettimeofday can accept two arguments" >&5
5357 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
5358 echo $ac_n "(cached) $ac_c" 1>&6
5360 cat > conftest.
$ac_ext <<EOF
5361 #line 5362 "configure"
5362 #include "confdefs.h"
5364 #ifdef TIME_WITH_SYS_TIME
5365 #include <sys/time.h>
5368 #ifdef HAVE_SYS_TIME_H
5369 #include <sys/time.h>
5377 struct timeval time;
5378 struct timezone dummy;
5379 gettimeofday (&time, &dummy);
5383 if { (eval echo configure
:5384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5385 emacs_cv_gettimeofday_two_arguments
=yes
5387 echo "configure: failed program was:" >&5
5388 cat conftest.
$ac_ext >&5
5390 emacs_cv_gettimeofday_two_arguments
=no
5395 echo "$ac_t""$emacs_cv_gettimeofday_two_arguments" 1>&6
5396 if test $emacs_cv_gettimeofday_two_arguments = no
; then
5397 cat >> confdefs.h
<<\EOF
5398 #define GETTIMEOFDAY_ONE_ARGUMENT 1
5405 echo $ac_n "checking for socket""... $ac_c" 1>&6
5406 echo "configure:5407: checking for socket" >&5
5407 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
5408 echo $ac_n "(cached) $ac_c" 1>&6
5410 cat > conftest.
$ac_ext <<EOF
5411 #line 5412 "configure"
5412 #include "confdefs.h"
5413 /* System header to define __stub macros and hopefully few prototypes,
5414 which can conflict with char socket(); below. */
5416 /* Override any gcc2 internal prototype to avoid an error. */
5417 /* We use char because int might match the return type of a gcc2
5418 builtin and then its argument prototype would still apply. */
5424 /* The GNU C library defines this for functions which it implements
5425 to always fail with ENOSYS. Some functions are actually named
5426 something starting with __ and the normal name is an alias. */
5427 #if defined (__stub_socket) || defined (__stub___socket)
5435 if { (eval echo configure
:5436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5437 eval "ac_cv_func_socket=yes"
5439 echo "configure: failed program was:" >&5
5440 cat conftest.
$ac_ext >&5
5442 eval "ac_cv_func_socket=no"
5447 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
5448 echo "$ac_t""yes" 1>&6
5451 echo "$ac_t""no" 1>&6
5455 if test $ok_so_far = yes; then
5456 ac_safe
=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
5457 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
5458 echo "configure:5459: checking for netinet/in.h" >&5
5459 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5460 echo $ac_n "(cached) $ac_c" 1>&6
5462 cat > conftest.
$ac_ext <<EOF
5463 #line 5464 "configure"
5464 #include "confdefs.h"
5465 #include <netinet/in.h>
5467 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5468 { (eval echo configure
:5469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5469 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5470 if test -z "$ac_err"; then
5472 eval "ac_cv_header_$ac_safe=yes"
5475 echo "configure: failed program was:" >&5
5476 cat conftest.
$ac_ext >&5
5478 eval "ac_cv_header_$ac_safe=no"
5482 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5483 echo "$ac_t""yes" 1>&6
5486 echo "$ac_t""no" 1>&6
5491 if test $ok_so_far = yes; then
5492 ac_safe
=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
5493 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
5494 echo "configure:5495: checking for arpa/inet.h" >&5
5495 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5496 echo $ac_n "(cached) $ac_c" 1>&6
5498 cat > conftest.
$ac_ext <<EOF
5499 #line 5500 "configure"
5500 #include "confdefs.h"
5501 #include <arpa/inet.h>
5503 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5504 { (eval echo configure
:5505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5505 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5506 if test -z "$ac_err"; then
5508 eval "ac_cv_header_$ac_safe=yes"
5511 echo "configure: failed program was:" >&5
5512 cat conftest.
$ac_ext >&5
5514 eval "ac_cv_header_$ac_safe=no"
5518 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5519 echo "$ac_t""yes" 1>&6
5522 echo "$ac_t""no" 1>&6
5527 if test $ok_so_far = yes; then
5528 cat >> confdefs.h
<<\EOF
5529 #define HAVE_INET_SOCKETS 1
5534 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
5535 cat >> confdefs.h
<<\EOF
5536 #define HAVE_AIX_SMT_EXP 1
5541 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6
5542 echo "configure:5543: checking whether system supports dynamic ptys" >&5
5543 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
5544 echo "$ac_t""yes" 1>&6
5545 cat >> confdefs.h
<<\EOF
5546 #define HAVE_DEV_PTMX 1
5550 echo "$ac_t""no" 1>&6
5553 # Set up the CFLAGS for real compilation, so we can substitute it.
5554 CFLAGS
="$REAL_CFLAGS"
5556 #### Find out which version of Emacs this is.
5557 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
5558 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
5559 if test x
"${version}" = x
; then
5560 { echo "configure: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." 1>&2; exit 1; }
5563 ### Specify what sort of things we'll be editing into Makefile and config.h.
5564 ### Use configuration here uncanonicalized to avoid exceeding size limits.
5596 cat >> confdefs.h
<<EOF
5597 #define EMACS_CONFIGURATION "${canonical}"
5600 cat >> confdefs.h
<<EOF
5601 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
5604 cat >> confdefs.h
<<EOF
5605 #define config_machfile "${machfile}"
5608 cat >> confdefs.h
<<EOF
5609 #define config_opsysfile "${opsysfile}"
5612 cat >> confdefs.h
<<EOF
5613 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
5616 cat >> confdefs.h
<<EOF
5617 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
5620 cat >> confdefs.h
<<EOF
5621 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
5624 cat >> confdefs.h
<<EOF
5625 #define UNEXEC_SRC ${UNEXEC_SRC}
5629 if test "${HAVE_X_WINDOWS}" = "yes" ; then
5630 cat >> confdefs.h
<<\EOF
5631 #define HAVE_X_WINDOWS 1
5635 if test "${USE_X_TOOLKIT}" != "none" ; then
5636 cat >> confdefs.h
<<\EOF
5637 #define USE_X_TOOLKIT 1
5641 if test "${HAVE_X11}" = "yes" ; then
5642 cat >> confdefs.h
<<\EOF
5647 if test "${HAVE_XFREE386}" = "yes" ; then
5648 cat >> confdefs.h
<<\EOF
5649 #define HAVE_XFREE386 1
5653 if test "${HAVE_MENUS}" = "yes" ; then
5654 cat >> confdefs.h
<<\EOF
5655 #define HAVE_MENUS 1
5659 if test "${GNU_MALLOC}" = "yes" ; then
5660 cat >> confdefs.h
<<\EOF
5661 #define GNU_MALLOC 1
5665 if test "${REL_ALLOC}" = "yes" ; then
5666 cat >> confdefs.h
<<\EOF
5671 if test "${LISP_FLOAT_TYPE}" = "yes" ; then
5672 cat >> confdefs.h
<<\EOF
5673 #define LISP_FLOAT_TYPE 1
5678 #### Report on what we decided to do.
5680 Configured for \`${canonical}'.
5682 Where should the build process find the source code? ${srcdir}
5683 What operating system and machine description files should Emacs use?
5684 \`${opsysfile}' and \`${machfile}'
5685 What compiler should emacs be built with? ${CC} ${CFLAGS}
5686 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
5687 Should Emacs use the relocating allocator for buffers? ${REL_ALLOC}
5688 What window system should Emacs use? ${window_system}
5689 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
5691 if test -n "${x_includes}"; then
5692 echo " Where do we find X Windows header files? ${x_includes}"
5694 echo " Where do we find X Windows header files? Standard dirs"
5696 if test -n "${x_libraries}"; then
5697 echo " Where do we find X Windows libraries? ${x_libraries}"
5699 echo " Where do we find X Windows libraries? Standard dirs"
5702 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
5703 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
5704 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
5705 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
5706 echo " Does Emacs use -lungif? ${HAVE_GIF}"
5707 echo " Does Emacs use -lpng? ${HAVE_PNG}"
5708 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
5711 # Remove any trailing slashes in these variables.
5712 test "${prefix}" != NONE
&&
5713 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
5714 test "${exec_prefix}" != NONE
&&
5715 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
5718 cat > confcache
<<\EOF
5719 # This file is a shell script that caches the results of configure
5720 # tests run on this system so they can be shared between configure
5721 # scripts and configure runs. It is not useful on other systems.
5722 # If it contains results you don't want to keep, you may remove or edit it.
5724 # By default, configure uses ./config.cache as the cache file,
5725 # creating it if it does not exist already. You can give configure
5726 # the --cache-file=FILE option to use a different cache file; that is
5727 # what configure does when it calls configure scripts in
5728 # subdirectories, so they share the cache.
5729 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5730 # config.status only pays attention to the cache file if you give it the
5731 # --recheck option to rerun configure.
5734 # The following way of writing the cache mishandles newlines in values,
5735 # but we know of no workaround that is simple, portable, and efficient.
5736 # So, don't put newlines in cache variables' values.
5737 # Ultrix sh set writes to stderr and can't be redirected directly,
5738 # and sets the high bit in the cache file unless we assign to the vars.
5740 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5742 # `set' does not quote correctly, so add quotes (double-quote substitution
5743 # turns \\\\ into \\, and sed turns \\ into \).
5745 -e "s/'/'\\\\''/g" \
5746 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5749 # `set' quotes correctly as required by POSIX, so do not add quotes.
5750 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5753 if cmp -s $cache_file confcache
; then
5756 if test -w $cache_file; then
5757 echo "updating cache $cache_file"
5758 cat confcache
> $cache_file
5760 echo "not updating unwritable cache $cache_file"
5765 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5767 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5768 # Let make expand exec_prefix.
5769 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5771 # Any assignment to VPATH causes Sun make to only execute
5772 # the first set of double-colon rules, so remove it if not needed.
5773 # If there is a colon in the path, we need to keep it.
5774 if test "x$srcdir" = x.
; then
5775 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5778 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5780 DEFS
=-DHAVE_CONFIG_H
5782 # Without the "./", some shells look in PATH for config.status.
5783 : ${CONFIG_STATUS=./config.status}
5785 echo creating
$CONFIG_STATUS
5786 rm -f $CONFIG_STATUS
5787 cat > $CONFIG_STATUS <<EOF
5789 # Generated automatically by configure.
5790 # Run this file to recreate the current configuration.
5791 # This directory was configured as follows,
5792 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5794 # $0 $ac_configure_args
5796 # Compiler output produced by configure, useful for debugging
5797 # configure, is in ./config.log if it exists.
5799 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5802 case "\$ac_option" in
5803 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5804 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5805 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5806 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5807 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5809 -help | --help | --hel | --he | --h)
5810 echo "\$ac_cs_usage"; exit 0 ;;
5811 *) echo "\$ac_cs_usage"; exit 1 ;;
5815 ac_given_srcdir=$srcdir
5816 ac_given_INSTALL="$INSTALL"
5818 trap 'rm -fr `echo "Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \
5819 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \
5820 leim/Makefile src/config.h:src/config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5822 cat >> $CONFIG_STATUS <<EOF
5824 # Protect against being on the right side of a sed subst in config.status.
5825 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5826 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5830 s%@CFLAGS@%$CFLAGS%g
5831 s%@CPPFLAGS@%$CPPFLAGS%g
5832 s%@CXXFLAGS@%$CXXFLAGS%g
5833 s%@FFLAGS@%$FFLAGS%g
5835 s%@LDFLAGS@%$LDFLAGS%g
5837 s%@exec_prefix@%$exec_prefix%g
5838 s%@prefix@%$prefix%g
5839 s%@program_transform_name@%$program_transform_name%g
5840 s%@bindir@%$bindir%g
5841 s%@sbindir@%$sbindir%g
5842 s%@libexecdir@%$libexecdir%g
5843 s%@datadir@%$datadir%g
5844 s%@sysconfdir@%$sysconfdir%g
5845 s%@sharedstatedir@%$sharedstatedir%g
5846 s%@localstatedir@%$localstatedir%g
5847 s%@libdir@%$libdir%g
5848 s%@includedir@%$includedir%g
5849 s%@oldincludedir@%$oldincludedir%g
5850 s%@infodir@%$infodir%g
5851 s%@mandir@%$mandir%g
5853 s%@host_alias@%$host_alias%g
5854 s%@host_cpu@%$host_cpu%g
5855 s%@host_vendor@%$host_vendor%g
5856 s%@host_os@%$host_os%g
5860 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5861 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5862 s%@INSTALL_DATA@%$INSTALL_DATA%g
5864 s%@SET_MAKE@%$SET_MAKE%g
5865 s%@ALLOCA@%$ALLOCA%g
5866 s%@liblockfile@%$liblockfile%g
5867 s%@version@%$version%g
5868 s%@configuration@%$configuration%g
5869 s%@canonical@%$canonical%g
5870 s%@srcdir@%$srcdir%g
5871 s%@lispdir@%$lispdir%g
5872 s%@locallisppath@%$locallisppath%g
5873 s%@lisppath@%$lisppath%g
5874 s%@x_default_search_path@%$x_default_search_path%g
5875 s%@etcdir@%$etcdir%g
5876 s%@archlibdir@%$archlibdir%g
5877 s%@docdir@%$docdir%g
5878 s%@bitmapdir@%$bitmapdir%g
5879 s%@c_switch_system@%$c_switch_system%g
5880 s%@c_switch_machine@%$c_switch_machine%g
5881 s%@LD_SWITCH_X_SITE@%$LD_SWITCH_X_SITE%g
5882 s%@LD_SWITCH_X_SITE_AUX@%$LD_SWITCH_X_SITE_AUX%g
5883 s%@C_SWITCH_X_SITE@%$C_SWITCH_X_SITE%g
5884 s%@X_TOOLKIT_TYPE@%$X_TOOLKIT_TYPE%g
5885 s%@machfile@%$machfile%g
5886 s%@opsysfile@%$opsysfile%g
5887 s%@RANLIB@%$RANLIB%g
5892 cat >> $CONFIG_STATUS <<\EOF
5894 # Split the substitutions into bite-sized pieces for seds with
5895 # small command number limits, like on Digital OSF/1 and HP-UX.
5896 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5897 ac_file
=1 # Number of current file.
5898 ac_beg
=1 # First line for current file.
5899 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5902 while $ac_more_lines; do
5903 if test $ac_beg -gt 1; then
5904 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5906 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5908 if test ! -s conftest.s
$ac_file; then
5910 rm -f conftest.s
$ac_file
5912 if test -z "$ac_sed_cmds"; then
5913 ac_sed_cmds
="sed -f conftest.s$ac_file"
5915 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5917 ac_file
=`expr $ac_file + 1`
5919 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5922 if test -z "$ac_sed_cmds"; then
5927 cat >> $CONFIG_STATUS <<EOF
5929 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \
5930 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \
5933 cat >> $CONFIG_STATUS <<\EOF
5934 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5935 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5937 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5938 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5939 *) ac_file_in
="${ac_file}.in" ;;
5942 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5944 # Remove last slash and all that follows it. Not all systems have dirname.
5945 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5946 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5947 # The file is in a subdirectory.
5948 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5949 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5950 # A "../" for each directory in $ac_dir_suffix.
5951 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5953 ac_dir_suffix
= ac_dots
=
5956 case "$ac_given_srcdir" in
5958 if test -z "$ac_dots"; then top_srcdir
=.
5959 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5960 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5962 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5963 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5966 case "$ac_given_INSTALL" in
5967 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5968 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5971 echo creating
"$ac_file"
5973 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5975 *Makefile
*) ac_comsub
="1i\\
5976 # $configure_input" ;;
5980 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5982 s%@configure_input@%$configure_input%g
5983 s%@srcdir@%$srcdir%g
5984 s%@top_srcdir@%$top_srcdir%g
5985 s%@INSTALL@%$INSTALL%g
5986 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5990 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5991 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5993 # ac_d sets the value in "#define NAME VALUE" lines.
5994 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5995 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5998 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5999 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6000 ac_uB
='\([ ]\)%\1#\2define\3'
6003 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6004 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6005 ac_eB
='$%\1#\2define\3'
6009 if test "${CONFIG_HEADERS+set}" != set; then
6011 cat >> $CONFIG_STATUS <<EOF
6012 CONFIG_HEADERS="src/config.h:src/config.in"
6014 cat >> $CONFIG_STATUS <<\EOF
6016 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6017 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6019 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6020 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6021 *) ac_file_in
="${ac_file}.in" ;;
6024 echo creating
$ac_file
6026 rm -f conftest.frag conftest.
in conftest.out
6027 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6028 cat $ac_file_inputs > conftest.
in
6032 # Transform confdefs.h into a sed script conftest.vals that substitutes
6033 # the proper values into config.h.in to produce config.h. And first:
6034 # Protect against being on the right side of a sed subst in config.status.
6035 # Protect against being in an unquoted here document in config.status.
6037 cat > conftest.hdr
<<\EOF
6040 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6044 sed -n -f conftest.hdr confdefs.h > conftest.vals
6047 # This sed command replaces #undef with comments. This is necessary, for
6048 # example, in the case of _POSIX_SOURCE, which is predefined and required
6049 # on some systems where configure will not decide to define it.
6050 cat >> conftest.vals <<\EOF
6051 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6054 # Break up conftest.vals because some shells have a limit on
6055 # the size of here documents, and old seds have small limits too.
6060 ac_lines=`grep -c . conftest.vals
`
6061 # grep -c gives empty output for an empty file on some AIX systems.
6062 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6063 # Write a limited-size here document to conftest.frag.
6064 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6065 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6067 sed -f conftest.frag conftest.in > conftest.out
6069 mv conftest.out conftest.in
6071 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6073 mv conftest.tail conftest.vals
6077 cat >> $CONFIG_STATUS <<\EOF
6078 rm -f conftest.frag conftest.h
6079 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6080 cat conftest.in >> conftest.h
6082 if cmp -s $ac_file conftest.h 2>/dev/null; then
6083 echo "$ac_file is unchanged"
6086 # Remove last slash and all that follows it. Not all systems have dirname.
6087 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6088 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6089 # The file is in a subdirectory.
6090 test ! -d "$ac_dir" && mkdir "$ac_dir"
6093 mv conftest.h $ac_file
6098 cat >> $CONFIG_STATUS <<EOF
6099 CPP="$CPP" CPPFLAGS="$CPPFLAGS"
6101 cat >> $CONFIG_STATUS <<\EOF
6104 ### Make the necessary directories, if they don't exist.
6105 for dir in etc lisp ; do
6106 test -d ${dir} || mkdir ${dir}
6109 # Build src/Makefile from ${srcdir}/src/Makefile.c
6110 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
6111 # This must be done after src/config.h is built, since we rely on that file.
6113 # Now get this: Some word that is part of the ${srcdir} directory name
6114 # or the ${configuration} value might, just might, happen to be an
6115 # identifier like `sun4
' or `i386' or something
, and be predefined by
6116 # the C preprocessor to some helpful value like 1, or maybe the empty
6117 # string. Needless to say consequent macro substitutions are less
6118 # than conducive to the makefile finding the correct directory.
6119 undefs
="`echo $top_srcdir $configuration $canonical |
6120 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
6121 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
6124 echo creating src
/epaths.h
6127 echo creating lib-src
/Makefile
6129 rm -f junk.c junk1.c junk2.c
6130 sed -e '/start of cpp stuff/q' \
6131 < Makefile.c
> junk1.c
6132 sed -e '1,/start of cpp stuff/d'\
6133 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \
6134 < Makefile.c
> junk.c
6135 $CPP $undefs -I.
-I$top_srcdir/src
$CPPFLAGS junk.c | \
6136 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
6137 cat junk1.c junk2.c
> Makefile.new
6138 rm -f junk.c junk1.c junk2.c
6139 chmod 444 Makefile.new
6140 mv -f Makefile.new Makefile
6143 echo creating src
/Makefile
6145 rm -f junk.c junk1.c junk2.c
6146 sed -e '/start of cpp stuff/q' \
6147 < Makefile.c
> junk1.c
6148 sed -e '1,/start of cpp stuff/d'\
6149 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \
6150 < Makefile.c
> junk.c
6151 $CPP $undefs -I.
-I$top_srcdir/src
$CPPFLAGS junk.c | \
6152 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
6153 cat junk1.c junk2.c
> Makefile.new
6154 rm -f junk.c junk1.c junk2.c
6155 chmod 444 Makefile.new
6156 mv -f Makefile.new Makefile
6159 if test ! -f src
/.gdbinit
&& test -f $top_srcdir/src
/.gdbinit
; then
6160 echo creating src
/.gdbinit
6161 echo source $top_srcdir/src
/.gdbinit
> src
/.gdbinit
6164 # This is how we know whether to re-run configure in certain cases.
6165 touch src
/config.stamp
6170 chmod +x
$CONFIG_STATUS
6171 rm -fr confdefs
* $ac_clean_files
6172 test "$no_create" = yes ||
${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS ||
exit 1