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
574 # Check whether --with-hesiod or --without-hesiod was given.
575 if test "${with_hesiod+set}" = set; then
576 withval
="$with_hesiod"
577 cat >> confdefs.h
<<\EOF
583 # Check whether --with-x-toolkit or --without-x-toolkit was given.
584 if test "${with_x_toolkit+set}" = set; then
585 withval
="$with_x_toolkit"
587 y | ye |
yes ) val
=athena
;;
589 l | lu | luc | luci | lucid
) val
=lucid
;;
590 a |
at | ath | athe | athen | athena
) val
=athena
;;
591 m | mo | mot | moti | motif
) val
=motif
;;
593 { echo "configure: error: \`--with-x-toolkit=$withval' is invalid\;
594 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
595 Currently, \`yes', \`athena' and \`lucid' are synonyms." 1>&2; exit 1; }
602 # Check whether --with-xpm or --without-xpm was given.
603 if test "${with_xpm+set}" = set; then
608 # Check whether --with-jpeg or --without-jpeg was given.
609 if test "${with_jpeg+set}" = set; then
614 # Check whether --with-tiff or --without-tiff was given.
615 if test "${with_tiff+set}" = set; then
620 # Check whether --with-gif or --without-gif was given.
621 if test "${with_gif+set}" = set; then
626 # Check whether --with-png or --without-png was given.
627 if test "${with_png+set}" = set; then
632 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
633 if test "${with_toolkit_scroll_bars+set}" = set; then
634 withval
="$with_toolkit_scroll_bars"
639 #### Make srcdir absolute, if it isn't already. It's important to
640 #### avoid running the path through pwd unnecessary, since pwd can
641 #### give you automounter prefixes, which can go away. We do all this
642 #### so Emacs can find its files when run uninstalled.
646 ## We may be able to use the $PWD environment variable to make this
647 ## absolute. But sometimes PWD is inaccurate.
648 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
650 if test "${PWD}" != "" && test "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`" ;
654 srcdir
="`(cd ${srcdir}; pwd)`"
657 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
660 #### Check if the source directory already has a configured system in it.
661 if test `pwd` != `(cd ${srcdir} && pwd)` \
662 && test -f "${srcdir}/src/config.h" ; then
663 echo "configure: warning: The directory tree \`${srcdir}' is being used
664 as a build directory right now; it has been configured in its own
665 right. To configure in another directory as well, you MUST
666 use GNU make. If you do not have GNU make, then you must
667 now do \`make distclean' in ${srcdir},
668 and then run $0 again." 1>&2
670 extrasub
='/^VPATH[ ]*=/c\
676 vpath %.in $(srcdir)\
677 vpath %.texi $(srcdir)'
680 #### Given the configuration name, set machfile and opsysfile to the
681 #### names of the m/*.h and s/*.h files we should use.
683 ### Canonicalize the configuration name.
686 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
687 if test -f $ac_dir/install-sh
; then
689 ac_install_sh
="$ac_aux_dir/install-sh -c"
691 elif test -f $ac_dir/install.sh
; then
693 ac_install_sh
="$ac_aux_dir/install.sh -c"
697 if test -z "$ac_aux_dir"; then
698 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
700 ac_config_guess
=$ac_aux_dir/config.guess
701 ac_config_sub
=$ac_aux_dir/config.sub
702 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
705 # Make sure we can run config.sub.
706 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
707 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
710 echo $ac_n "checking host system type""... $ac_c" 1>&6
711 echo "configure:712: checking host system type" >&5
714 case "$host_alias" in
718 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
719 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
721 *) host_alias
=$nonopt ;;
725 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
726 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
727 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
728 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
729 echo "$ac_t""$host" 1>&6
732 configuration
=$host_alias
735 ### If you add support for a new configuration, add code to this
736 ### switch statement to recognize your configuration name and select
737 ### the appropriate operating system and machine description files.
739 ### You would hope that you could choose an m/*.h file pretty much
740 ### based on the machine portion of the configuration name, and an s-
741 ### file based on the operating system portion. However, it turns out
742 ### that each m/*.h file is pretty manufacturer-specific - for
743 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
744 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
745 ### machines. So we basically have to have a special case for each
746 ### configuration name.
748 ### As far as handling version numbers on operating systems is
749 ### concerned, make sure things will fail in a fixable way. If
750 ### /etc/MACHINES doesn't say anything about version numbers, be
751 ### prepared to handle anything reasonably. If version numbers
752 ### matter, be sure /etc/MACHINES says something about it.
754 ### Eric Raymond says we should accept strings like "sysvr4" to mean
755 ### "System V Release 4"; he writes, "The old convention encouraged
756 ### confusion between `system' and `release' levels'."
758 machine
='' opsys
='' unported
=no
759 case "${canonical}" in
764 case "${canonical}" in
765 alpha
*-*-netbsd*) machine
=alpha
;;
766 i
[3456]86-*-netbsd*) machine
=intel386
;;
768 # This is somewhat bogus.
769 machine
=hp9000s300
;;
770 powerpc-apple-netbsd
*) machine
=macppc
;;
771 mips-
*-netbsd*) machine
=pmax
;;
772 ns32k-
*-netbsd*) machine
=ns32000
;;
773 sparc-
*-netbsd*) machine
=sparc
;;
774 vax-
*-netbsd*) machine
=vax
;;
781 case "${canonical}" in
782 alpha
*-*-openbsd*) machine
=alpha
;;
783 i386-
*-openbsd*) machine
=intel386
;;
784 m68k-
*-openbsd*) machine
=hp9000s300
;;
785 mipsel-
*-openbsd*) machine
=pmax
;;
786 ns32k-
*-openbsd*) machine
=ns32000
;;
787 sparc-
*-openbsd*) machine
=sparc
;;
788 vax-
*-openbsd*) machine
=vax
;;
793 arm-acorn-riscix1.1
* )
794 machine
=acorn opsys
=riscix1-1
796 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
797 ## This name is riscix12 instead of riscix1.2
798 ## to avoid a file name conflict on MSDOS.
799 machine
=acorn opsys
=riscix12
805 case "${canonical}" in
806 i
[345]86-*-bsdi*) machine
=intel386
;;
807 sparc-
*-bsdi*) machine
=sparc
;;
808 powerpc-
*-bsdi*) machine
=powerpc
;;
810 case "${canonical}" in
811 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
812 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
813 *-*-bsdi2* ) opsys
=bsdos2-1
;;
814 *-*-bsdi3* ) opsys
=bsdos3
;;
815 *-*-bsdi4* ) opsys
=bsdos4
;;
820 ## Strictly speaking, we need the version of the alliant operating
821 ## system to choose the right machine file, but currently the
822 ## configuration name doesn't tell us enough to choose the right
823 ## one; we need to give alliants their own operating system name to
824 ## do this right. When someone cares, they can help us.
826 machine
=alliant4 opsys
=bsd4-2
829 machine
=alliant-2800 opsys
=bsd4-3
832 ## Alpha (DEC) machines.
834 machine
=alpha opsys
=osf1
835 # This is needed to find X11R6.1 libraries for certain tests.
836 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
837 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
840 alpha
*-*-linux-gnu* )
841 machine
=alpha opsys
=gnu-linux
846 machine
=altos opsys
=usg5-2
851 machine
=amdahl opsys
=usg5-2-2
856 machine
=apollo opsys
=bsd4-3
859 ## AT&T 3b2, 3b5, 3b15, 3b20
861 machine
=att3b opsys
=usg5-2-2
864 ## AT&T 3b1 - The Mighty Unix PC!
866 machine
=7300 opsys
=usg5-2-2
871 machine
=ibmrs6000 opsys
=aix3-2
876 machine
=dpx2 opsys
=usg5-3
881 machine
=sps7 opsys
=usg5-2
884 ## CCI 5/32, 6/32 -- see "Tahoe".
887 ## I don't know what configuration name to use for this; config.sub
888 ## doesn't seem to know anything about it. Hey, Celerity users, get
890 celerity-celerity-bsd
* )
891 machine
=celerity opsys
=bsd4-2
895 ## What operating systems does this chip run that Emacs has been
899 ## We'll use the catch-all code at the bottom to guess the
904 *-convex-bsd* |
*-convex-convexos* )
905 machine
=convex opsys
=bsd4-3
906 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
907 NON_GNU_CPP
="cc -E -P"
911 i
[3456]86-cubix-sysv* )
912 machine
=intel386 opsys
=usg5-3
916 cydra
*-cydrome-sysv* )
917 machine
=cydra5 opsys
=usg5-3
920 ## Data General AViiON Machines
921 ## DG changed naming conventions with the release of 5.4.4.10, they
922 ## dropped the initial 5.4 but left the intervening R. Because of the
923 ## R this shouldn't conflict with older versions of the OS (which I
924 ## think were named like dgux4.*). In addition, DG new AViiONs series
925 ## uses either Motorola M88k or Intel Pentium CPUs.
926 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
927 machine
=aviion opsys
=dgux4
929 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
930 ## This name is dgux5-4-3 instead of dgux5-4r3
931 ## to avoid a file name conflict on MSDOS.
932 machine
=aviion opsys
=dgux5-4-3
934 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
935 machine
=aviion opsys
=dgux5-4r2
938 machine
=aviion opsys
=dgux
941 ## Data General AViiON Intel (x86) Machines
942 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
943 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
944 i
[345]86-dg-dguxR4* )
945 machine
=aviion-intel opsys
=dgux4
949 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
950 machine
=pmax opsys
=bsd4-2
952 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
953 machine
=pmax opsys
=bsd4-3
956 machine
=pmax opsys
=ultrix4-3
959 machine
=pmax opsys
=osf1
961 mips-dec-mach_bsd4.3
* )
962 machine
=pmax opsys
=mach-bsd4-3
965 ## Motorola Delta machines
966 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
967 machine
=delta opsys
=usg5-3
968 if test -z "`type gnucc | grep 'not found'`"
970 if test -s /etc
/167config
971 then CC
="gnucc -m68040"
972 else CC
="gnucc -m68881"
975 if test -z "`type gcc | grep 'not found'`"
981 m88k-motorola-sysv4
* )
982 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
983 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
984 # I hope there are not other 4.0 versions for this machine
985 # which really need usg5-4 instead.
986 machine
=delta88k opsys
=usg5-4-2
988 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
989 machine
=delta88k opsys
=usg5-3
994 machine
=dual opsys
=usg5-2
997 machine
=dual opsys
=unipl5-2
1002 machine
=elxsi opsys
=usg5-2
1007 machine
=ns16000 opsys
=umax
1010 ## The GEC 93 - apparently, this port isn't really finished yet.
1012 ## Gould Power Node and NP1
1014 machine
=gould opsys
=bsd4-2
1017 machine
=gould opsys
=bsd4-3
1020 machine
=gould-np1 opsys
=bsd4-3
1023 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1024 ## as far as Emacs is concerned).
1026 # Build needs to be different on 7.0 and later releases
1027 case "`uname -r`" in
1028 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1029 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1031 NON_GNU_CPP
="/lib/cpp"
1033 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1035 machine
=nh3000 opsys
=cxux
1037 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1038 powerpc-harris-powerunix
)
1039 machine
=nh6000 opsys
=powerunix
1040 NON_GNU_CPP
="cc -Xo -E -P"
1042 ## SR2001/SR2201 running HI-UX/MPP
1043 hppa1.1
-hitachi-hiuxmpp* )
1044 machine
=sr2k opsys
=hiuxmpp
1047 xps
*-honeywell-sysv* )
1048 machine
=xps100 opsys
=usg5-2
1051 ## HP 9000 series 200 or 300
1053 machine
=hp9000s300 opsys
=bsd4-3
1055 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1057 case "`uname -r`" in
1058 ## Someone's system reports A.B8.05 for this.
1059 ## I wonder what other possibilities there are.
1060 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1061 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1062 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1063 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
1064 *) machine
=hp9000s300 opsys
=hpux
;;
1068 ## HP 9000 series 700 and 800, running HP/UX
1070 machine
=hp800 opsys
=hpux
1073 machine
=hp800 opsys
=hpux8
1075 hppa
*-hp-hpux9shr* )
1076 machine
=hp800 opsys
=hpux9shr
1079 machine
=hp800 opsys
=hpux9
1081 hppa
*-hp-hpux1[0-9]* )
1082 machine
=hp800 opsys
=hpux10
1085 ## HP 9000 series 700 and 800, running HP/UX
1087 ## Cross-compilation? Nah!
1088 case "`uname -r`" in
1089 ## Someone's system reports A.B8.05 for this.
1090 ## I wonder what other possibilities there are.
1091 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
1092 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
1093 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
1094 *) machine
=hp800 opsys
=hpux10
;;
1098 machine
=hp800 opsys
=nextstep
1103 machine
=orion opsys
=bsd4-2
1105 clipper-orion-bsd
* )
1106 machine
=orion105 opsys
=bsd4-2
1110 i
[3456]86-ibm-aix1.1
* )
1111 machine
=ibmps2-aix opsys
=usg5-2-2
1113 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
1114 machine
=ibmps2-aix opsys
=usg5-3
1117 machine
=ibm370aix opsys
=usg5-3
1119 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
1120 machine
=ibmrs6000 opsys
=aix3-1
1122 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
1123 machine
=ibmrs6000 opsys
=aix3-2-5
1125 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
1126 machine
=ibmrs6000 opsys
=aix4-1
1128 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
1129 machine
=ibmrs6000 opsys
=aix4-2
1131 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
1132 machine
=ibmrs6000 opsys
=aix4
1134 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
1135 machine
=ibmrs6000 opsys
=aix4-1
1137 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
1138 machine
=ibmrs6000 opsys
=aix3-2
1141 machine
=ibmrt opsys
=bsd4-3
1144 machine
=ibmrt opsys
=bsd4-2
1147 machine
=ibmrt opsys
=bsd4-3
1150 machine
=ibmrt opsys
=bsd4-2
1153 machine
=ibmrt opsys
=bsd4-3
1156 machine
=ibmrt opsys
=bsd4-3
1159 machine
=ibmrt-aix opsys
=usg5-2-2
1162 ## Integrated Solutions `Optimum V'
1164 machine
=isi-ov opsys
=bsd4-2
1167 machine
=isi-ov opsys
=bsd4-3
1170 ## Intel 386 machines where we do care about the manufacturer
1171 i
[3456]86-intsys-sysv* )
1172 machine
=is386 opsys
=usg5-2-2
1176 i
[3456]86-prime-sysv* )
1177 machine
=i386 opsys
=usg5-3
1180 ## Sequent Symmetry running Dynix
1181 i
[3456]86-sequent-bsd* )
1182 machine
=symmetry opsys
=bsd4-3
1185 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
1186 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
1187 machine
=sequent-ptx opsys
=ptx4
1188 NON_GNU_CPP
=/lib
/cpp
1191 ## Sequent Symmetry running DYNIX/ptx
1192 ## Use the old cpp rather than the newer ANSI one.
1193 i
[3456]86-sequent-ptx* )
1194 machine
=sequent-ptx opsys
=ptx
1195 NON_GNU_CPP
="/lib/cpp"
1198 ## ncr machine running svr4.3.
1199 i
[3456]86-ncr-sysv4.3
)
1200 machine
=ncr386 opsys
=usg5-4-3
1203 ## Unspecified sysv on an ncr machine defaults to svr4.2.
1204 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
1205 i
[3456]86-ncr-sysv* )
1206 machine
=ncr386 opsys
=usg5-4-2
1209 ## Intel Paragon OSF/1
1211 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
1216 machine
=i860 opsys
=usg5-4
1217 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
1218 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
1221 ## Masscomp machines
1222 m68
*-masscomp-rtu* )
1223 machine
=masscomp opsys
=rtu
1226 ## Megatest machines
1227 m68
*-megatest-bsd* )
1228 machine
=mega68 opsys
=bsd4-2
1231 ## Workstations sold by MIPS
1232 ## This is not necessarily all workstations using the MIPS processor -
1233 ## Irises are produced by SGI, and DECstations by DEC.
1235 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
1236 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
1237 ## it gives for choosing between the alternatives seems to be "Use
1238 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
1239 ## the BSD world." I'll assume that these are instructions for
1240 ## handling two odd situations, and that every other situation
1241 ## should use mips.h and usg5-2-2, they being listed first.
1244 ## Fall through to the general code at the bottom to decide on the OS.
1246 mips-mips-riscos4
* )
1247 machine
=mips4 opsys
=bsd4-3
1248 NON_GNU_CC
="cc -systype bsd43"
1249 NON_GNU_CPP
="cc -systype bsd43 -E"
1251 mips-mips-riscos5
* )
1252 machine
=mips4 opsys
=riscos5
1253 NON_GNU_CC
="cc -systype bsd43"
1254 NON_GNU_CPP
="cc -systype bsd43 -E"
1257 machine
=mips opsys
=bsd4-3
1260 machine
=mips opsys
=usg5-2-2
1264 m68
*-next-* | m68k-
*-nextstep* )
1265 machine
=m68k opsys
=nextstep
1268 ## The complete machine from National Semiconductor
1270 machine
=ns32000 opsys
=usg5-2
1274 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
1275 machine
=tower32 opsys
=usg5-2-2
1277 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
1278 machine
=tower32v3 opsys
=usg5-3
1283 machine
=ews4800 opsys
=ux4800
1286 ## Nixdorf Targon 31
1287 m68
*-nixdorf-sysv* )
1288 machine
=targon31 opsys
=usg5-2-2
1293 machine
=nu opsys
=usg5-2
1298 machine
=plexus opsys
=usg5-2
1301 ## PowerPC reference platform
1302 powerpcle-
*-solaris2* )
1308 ## I don't really have any idea what sort of processor the Pyramid has,
1309 ## so I'm assuming it is its own architecture.
1310 pyramid-pyramid-bsd
* )
1311 machine
=pyramid opsys
=bsd4-2
1315 ns32k-sequent-bsd4.2
* )
1316 machine
=sequent opsys
=bsd4-2
1318 ns32k-sequent-bsd4.3
* )
1319 machine
=sequent opsys
=bsd4-3
1323 mips-siemens-sysv
* | mips-sni-sysv
*)
1324 machine
=mips-siemens opsys
=usg5-4
1325 NON_GNU_CC
=/usr
/ccs
/bin
/cc
1326 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1329 ## Silicon Graphics machines
1330 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
1332 machine
=irist opsys
=iris3-5
1334 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
1335 machine
=irist opsys
=iris3-6
1339 machine
=iris4d opsys
=irix3-3
1342 machine
=iris4d opsys
=irix4-0
1345 machine
=iris4d opsys
=irix6-5
1346 NON_GNU_CPP
=/lib
/cpp
1347 NON_GCC_TEST_OPTIONS
="-n32 -G0"
1350 machine
=iris4d opsys
=irix6-0
1351 NON_GNU_CPP
=/lib
/cpp
1352 NON_GCC_TEST_OPTIONS
=-32
1354 mips-sgi-irix5.
[01]* )
1355 machine
=iris4d opsys
=irix5-0
1357 mips-sgi-irix5
* | mips-sgi-irix
* )
1358 machine
=iris4d opsys
=irix5-2
1363 machine
=news opsys
=bsd4-2
1366 machine
=news opsys
=bsd4-3
1368 m68
*-sony-newsos3* | m68
*-sony-news3*)
1369 machine
=news opsys
=bsd4-3
1371 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
1372 machine
=news-risc opsys
=bsd4-3
1374 mips-sony-newsos6
* )
1375 machine
=news-r6 opsys
=newsos6
1378 machine
=news-risc opsys
=newsos5
1383 machine
=stride opsys
=usg5-2
1387 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
1388 machine
=sparc opsys
=gnu-linux
1391 *-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
1392 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
1393 | rs6000-
*-solaris2*)
1394 case "${canonical}" in
1395 m68
*-sunos1* ) machine
=sun1
;;
1396 m68
*-sunos2* ) machine
=sun2
;;
1397 m68
* ) machine
=sun3
;;
1398 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
1399 i
[3456]86-*-* ) machine
=intel386
;;
1400 powerpcle
* ) machine
=powerpcle
;;
1401 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
1402 sparc
* ) machine
=sparc
;;
1405 case "${canonical}" in
1406 ## The Sun386 didn't get past 4.0.
1407 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
1408 *-sunos4.0
* ) opsys
=sunos4-0
;;
1409 *-sunos4.1.
[3-9]*noshare
)
1410 ## This name is sunos413 instead of sunos4-1-3
1411 ## to avoid a file name conflict on MSDOS.
1413 NON_GNU_CPP
=/usr
/lib
/cpp
1414 NON_GCC_TEST_OPTIONS
=-Bstatic
1415 GCC_TEST_OPTIONS
=-static
1417 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
1419 NON_GNU_CPP
=/usr
/lib
/cpp
1421 *-sunos4* |
*-sunos )
1423 NON_GCC_TEST_OPTIONS
=-Bstatic
1424 GCC_TEST_OPTIONS
=-static
1426 *-sunos5.3
* |
*-solaris2.3
* )
1428 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1430 *-sunos5.4
* |
*-solaris2.4
* )
1432 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1435 *-sunos5.5
* |
*-solaris2.5
* )
1437 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1440 *-sunos5* |
*-solaris* )
1442 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1446 ## Watch out for a compiler that we know will not work.
1447 case "${canonical}" in
1448 *-solaris* |
*-sunos5* )
1449 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
1450 ## /usr/ucb/cc doesn't work;
1451 ## we should find some other compiler that does work.
1459 machine
=sparc opsys
=nextstep
1463 m68
*-tadpole-sysv* )
1464 machine
=tad68k opsys
=usg5-3
1468 tahoe-tahoe-bsd4.2
* )
1469 machine
=tahoe opsys
=bsd4-2
1471 tahoe-tahoe-bsd4.3
* )
1472 machine
=tahoe opsys
=bsd4-3
1475 ## Tandem Integrity S2
1477 machine
=tandem-s2 opsys
=usg5-3
1481 m88k-tektronix-sysv3
* )
1482 machine
=tekxd88 opsys
=usg5-3
1485 ## Tektronix 16000 box (6130?)
1486 ns16k-tektronix-bsd
* )
1487 machine
=ns16000 opsys
=bsd4-2
1490 ## src/m/tek4300.h hints that this is a m68k machine.
1491 m68
*-tektronix-bsd* )
1492 machine
=tek4300 opsys
=bsd4-3
1496 ## We seem to have lost the machine-description file titan.h!
1498 machine
=titan opsys
=usg5-3
1501 ## Ustation E30 (SS5E)
1502 m68
*-unisys-uniplus* )
1503 machine
=ustation opsystem
=unipl5-2
1509 case "${canonical}" in
1510 *-bsd4.1
* ) opsys
=bsd4-1
;;
1511 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
1512 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
1513 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
1514 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
1515 *-vms* ) opsys
=vms
;;
1521 ns16k-whitechapel-
* )
1523 ## We don't know what sort of OS runs on these; we'll let the
1524 ## operating system guessing code below try.
1529 machine
=wicat opsys
=usg5-2
1532 ## Intel 386 machines where we don't care about the manufacturer
1535 case "${canonical}" in
1536 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
1537 *-isc2.2
* ) opsys
=isc2-2
;;
1538 *-isc4.0
* ) opsys
=isc4-0
;;
1539 *-isc4.
* ) opsys
=isc4-1
1540 GCC_TEST_OPTIONS
=-posix
1541 NON_GCC_TEST_OPTIONS
=-Xp
1543 *-isc* ) opsys
=isc3-0
;;
1544 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
1545 *-esix* ) opsys
=esix
;;
1546 *-xenix* ) opsys
=xenix
;;
1547 *-linux-gnu* ) opsys
=gnu-linux
;;
1548 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
1549 *-sco3.2v5
* ) opsys
=sco5
1550 NON_GNU_CPP
=/lib
/cpp
1551 # Prevent -belf from being passed to $CPP.
1552 # /lib/cpp does not accept it.
1553 OVERRIDE_CPPFLAGS
=" "
1555 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
1556 *-386bsd* ) opsys
=386bsd
;;
1557 *-freebsd* ) opsys
=freebsd
;;
1558 *-nextstep* ) opsys
=nextstep
;;
1559 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
1563 ## m68k Linux-based GNU system
1565 machine
=m68k opsys
=gnu-linux
1568 ## Mips Linux-based GNU system
1570 machine
=mips opsys
=gnu-linux
1574 sparc-fujitsu-sysv4
* )
1575 machine
=sparc opsys
=uxpds
1576 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1581 f301-fujitsu-uxpv4.1
)
1582 machine
=f301 opsys
=uxpv
1590 ### If the code above didn't choose an operating system, just choose
1591 ### an operating system based on the configuration name. You really
1592 ### only want to use this when you have no idea what the right
1593 ### operating system is; if you know what operating systems a machine
1594 ### runs, it's cleaner to make it explicit in the case statement
1596 if test x
"${opsys}" = x
; then
1597 case "${canonical}" in
1598 *-gnu* ) opsys
=gnu
;;
1599 *-bsd4.
[01] ) opsys
=bsd4-1
;;
1600 *-bsd4.2
) opsys
=bsd4-2
;;
1601 *-bsd4.3
) opsys
=bsd4-3
;;
1602 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
1603 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
1604 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
1605 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
1606 *-sysv4.2uw
* ) opsys
=unixware
;;
1607 *-sysv4.1
* |
*-sysvr4.1
* )
1608 NON_GNU_CPP
=/usr
/lib
/cpp
1610 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
1611 if [ x
$NON_GNU_CPP = x
]; then
1612 if [ -f /usr
/ccs
/lib
/cpp
]; then
1613 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1615 NON_GNU_CPP
=/lib
/cpp
1619 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
1626 if test "x$RANLIB" = x
; then
1631 if test $unported = yes; then
1632 { echo "configure: error: Emacs hasn't been ported to \`${canonical}' systems.
1633 Check \`etc/MACHINES' for recognized configuration names." 1>&2; exit 1; }
1636 machfile
="m/${machine}.h"
1637 opsysfile
="s/${opsys}.h"
1640 #### Choose a compiler.
1641 test -n "$CC" && cc_specified
=yes
1643 # Save the value of CFLAGS that the user specified.
1644 SPECIFIED_CFLAGS
="$CFLAGS"
1647 "yes" ) CC
="gcc" GCC
=yes ;;
1648 "no" ) : ${CC=cc} ;;
1649 * ) # Extract the first word of "gcc", so it can be a program name with args.
1650 set dummy gcc
; ac_word
=$2
1651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1652 echo "configure:1653: checking for $ac_word" >&5
1653 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1654 echo $ac_n "(cached) $ac_c" 1>&6
1656 if test -n "$CC"; then
1657 ac_cv_prog_CC
="$CC" # Let the user override the test.
1659 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1661 for ac_dir
in $ac_dummy; do
1662 test -z "$ac_dir" && ac_dir
=.
1663 if test -f $ac_dir/$ac_word; then
1672 if test -n "$CC"; then
1673 echo "$ac_t""$CC" 1>&6
1675 echo "$ac_t""no" 1>&6
1678 if test -z "$CC"; then
1679 # Extract the first word of "cc", so it can be a program name with args.
1680 set dummy cc
; ac_word
=$2
1681 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1682 echo "configure:1683: checking for $ac_word" >&5
1683 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6
1686 if test -n "$CC"; then
1687 ac_cv_prog_CC
="$CC" # Let the user override the test.
1689 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1692 for ac_dir
in $ac_dummy; do
1693 test -z "$ac_dir" && ac_dir
=.
1694 if test -f $ac_dir/$ac_word; then
1695 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1696 ac_prog_rejected
=yes
1704 if test $ac_prog_rejected = yes; then
1705 # We found a bogon in the path, so make sure we never use it.
1706 set dummy
$ac_cv_prog_CC
1708 if test $# -gt 0; then
1709 # We chose a different compiler from the bogus one.
1710 # However, it has the same basename, so the bogon will be chosen
1711 # first if we set CC to just the basename; use the full file name.
1713 set dummy
"$ac_dir/$ac_word" "$@"
1721 if test -n "$CC"; then
1722 echo "$ac_t""$CC" 1>&6
1724 echo "$ac_t""no" 1>&6
1727 if test -z "$CC"; then
1728 case "`uname -s`" in
1730 # Extract the first word of "cl", so it can be a program name with args.
1731 set dummy cl
; ac_word
=$2
1732 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1733 echo "configure:1734: checking for $ac_word" >&5
1734 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1737 if test -n "$CC"; then
1738 ac_cv_prog_CC
="$CC" # Let the user override the test.
1740 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1742 for ac_dir
in $ac_dummy; do
1743 test -z "$ac_dir" && ac_dir
=.
1744 if test -f $ac_dir/$ac_word; then
1753 if test -n "$CC"; then
1754 echo "$ac_t""$CC" 1>&6
1756 echo "$ac_t""no" 1>&6
1761 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1764 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1765 echo "configure:1766: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1768 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1769 ac_cpp
='$CPP $CPPFLAGS'
1770 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1771 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1772 cross_compiling
=$ac_cv_prog_cc_cross
1774 cat > conftest.
$ac_ext << EOF
1776 #line 1777 "configure"
1777 #include "confdefs.h"
1781 if { (eval echo configure
:1782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1782 ac_cv_prog_cc_works
=yes
1783 # If we can't run a trivial program, we are probably using a cross compiler.
1784 if (.
/conftest
; exit) 2>/dev
/null
; then
1785 ac_cv_prog_cc_cross
=no
1787 ac_cv_prog_cc_cross
=yes
1790 echo "configure: failed program was:" >&5
1791 cat conftest.
$ac_ext >&5
1792 ac_cv_prog_cc_works
=no
1796 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1797 ac_cpp
='$CPP $CPPFLAGS'
1798 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1799 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1800 cross_compiling
=$ac_cv_prog_cc_cross
1802 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1803 if test $ac_cv_prog_cc_works = no
; then
1804 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1806 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1807 echo "configure:1808: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1808 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1809 cross_compiling
=$ac_cv_prog_cc_cross
1811 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1812 echo "configure:1813: checking whether we are using GNU C" >&5
1813 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1814 echo $ac_n "(cached) $ac_c" 1>&6
1816 cat > conftest.c
<<EOF
1821 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1828 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1830 if test $ac_cv_prog_gcc = yes; then
1836 ac_test_CFLAGS
="${CFLAGS+set}"
1837 ac_save_CFLAGS
="$CFLAGS"
1839 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1840 echo "configure:1841: checking whether ${CC-cc} accepts -g" >&5
1841 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1842 echo $ac_n "(cached) $ac_c" 1>&6
1844 echo 'void f(){}' > conftest.c
1845 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1854 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1855 if test "$ac_test_CFLAGS" = set; then
1856 CFLAGS
="$ac_save_CFLAGS"
1857 elif test $ac_cv_prog_cc_g = yes; then
1858 if test "$GCC" = yes; then
1864 if test "$GCC" = yes; then
1873 # On Suns, sometimes $CPP names a directory.
1874 if test -n "$CPP" && test -d "$CPP"; then
1878 #### Some systems specify a CPP to use unless we are using GCC.
1879 #### Now that we know whether we are using GCC, we can decide whether
1880 #### to use that one.
1881 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
1886 #### Some systems specify a CC to use unless we are using GCC.
1887 #### Now that we know whether we are using GCC, we can decide whether
1888 #### to use that one.
1889 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
1890 test x
$cc_specified != xyes
1895 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
1897 CC
="$CC $GCC_TEST_OPTIONS"
1900 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
1902 CC
="$CC $NON_GCC_TEST_OPTIONS"
1905 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
1907 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
1910 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
1912 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
1915 #### Some other nice autoconf tests. If you add a test here which
1916 #### should make an entry in src/config.h, don't forget to add an
1917 #### #undef clause to src/config.h.in for autoconf to modify.
1919 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1920 echo "configure:1921: checking whether ln -s works" >&5
1921 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1922 echo $ac_n "(cached) $ac_c" 1>&6
1925 if ln -s X conftestdata
2>/dev
/null
1928 ac_cv_prog_LN_S
="ln -s"
1933 LN_S
="$ac_cv_prog_LN_S"
1934 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1935 echo "$ac_t""yes" 1>&6
1937 echo "$ac_t""no" 1>&6
1940 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1941 echo "configure:1942: checking how to run the C preprocessor" >&5
1942 # On Suns, sometimes $CPP names a directory.
1943 if test -n "$CPP" && test -d "$CPP"; then
1946 if test -z "$CPP"; then
1947 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1950 # This must be in double quotes, not single quotes, because CPP may get
1951 # substituted into the Makefile and "${CC-cc}" will confuse make.
1953 # On the NeXT, cc -E runs the code through the compiler's parser,
1954 # not just through cpp.
1955 cat > conftest.
$ac_ext <<EOF
1956 #line 1957 "configure"
1957 #include "confdefs.h"
1961 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1962 { (eval echo configure
:1963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1963 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1964 if test -z "$ac_err"; then
1968 echo "configure: failed program was:" >&5
1969 cat conftest.
$ac_ext >&5
1971 CPP
="${CC-cc} -E -traditional-cpp"
1972 cat > conftest.
$ac_ext <<EOF
1973 #line 1974 "configure"
1974 #include "confdefs.h"
1978 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1979 { (eval echo configure
:1980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1980 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1981 if test -z "$ac_err"; then
1985 echo "configure: failed program was:" >&5
1986 cat conftest.
$ac_ext >&5
1988 CPP
="${CC-cc} -nologo -E"
1989 cat > conftest.
$ac_ext <<EOF
1990 #line 1991 "configure"
1991 #include "confdefs.h"
1995 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1996 { (eval echo configure
:1997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1997 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1998 if test -z "$ac_err"; then
2002 echo "configure: failed program was:" >&5
2003 cat conftest.
$ac_ext >&5
2012 ac_cv_prog_CPP
="$CPP"
2014 CPP
="$ac_cv_prog_CPP"
2016 ac_cv_prog_CPP
="$CPP"
2018 echo "$ac_t""$CPP" 1>&6
2020 # Find a good install program. We prefer a C program (faster),
2021 # so one script is as good as another. But avoid the broken or
2022 # incompatible versions:
2023 # SysV /etc/install, /usr/sbin/install
2024 # SunOS /usr/etc/install
2025 # IRIX /sbin/install
2027 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2028 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2029 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2030 # ./install, which can be erroneously created by make from ./install.sh.
2031 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2032 echo "configure:2033: checking for a BSD compatible install" >&5
2033 if test -z "$INSTALL"; then
2034 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2035 echo $ac_n "(cached) $ac_c" 1>&6
2037 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2038 for ac_dir
in $PATH; do
2039 # Account for people who put trailing slashes in PATH elements.
2041 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2043 # OSF1 and SCO ODT 3.0 have their own names for install.
2044 # Don't use installbsd from OSF since it installs stuff as root
2046 for ac_prog
in ginstall scoinst
install; do
2047 if test -f $ac_dir/$ac_prog; then
2048 if test $ac_prog = install &&
2049 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2050 # AIX install. It has an incompatible calling convention.
2053 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2064 if test "${ac_cv_path_install+set}" = set; then
2065 INSTALL
="$ac_cv_path_install"
2067 # As a last resort, use the slow shell script. We don't cache a
2068 # path for INSTALL within a source directory, because that will
2069 # break other packages using the cache if that directory is
2070 # removed, or if the path is relative.
2071 INSTALL
="$ac_install_sh"
2074 echo "$ac_t""$INSTALL" 1>&6
2076 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2077 # It thinks the first close brace ends the variable substitution.
2078 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2080 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2082 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2084 for ac_prog
in 'bison -y' byacc
2086 # Extract the first word of "$ac_prog", so it can be a program name with args.
2087 set dummy
$ac_prog; ac_word
=$2
2088 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2089 echo "configure:2090: checking for $ac_word" >&5
2090 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2091 echo $ac_n "(cached) $ac_c" 1>&6
2093 if test -n "$YACC"; then
2094 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2096 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2098 for ac_dir
in $ac_dummy; do
2099 test -z "$ac_dir" && ac_dir
=.
2100 if test -f $ac_dir/$ac_word; then
2101 ac_cv_prog_YACC
="$ac_prog"
2108 YACC
="$ac_cv_prog_YACC"
2109 if test -n "$YACC"; then
2110 echo "$ac_t""$YACC" 1>&6
2112 echo "$ac_t""no" 1>&6
2115 test -n "$YACC" && break
2117 test -n "$YACC" || YACC
="yacc"
2120 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2121 echo "configure:2122: checking for AIX" >&5
2122 cat > conftest.
$ac_ext <<EOF
2123 #line 2124 "configure"
2124 #include "confdefs.h"
2130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2131 egrep "yes" >/dev
/null
2>&1; then
2133 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
2134 #define _ALL_SOURCE 1
2139 echo "$ac_t""no" 1>&6
2145 # Sound support for GNU/Linux and the free BSDs.
2146 for ac_hdr
in machine
/soundcard.h sys
/soundcard.h
2148 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2149 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2150 echo "configure:2151: checking for $ac_hdr" >&5
2151 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&6
2154 cat > conftest.
$ac_ext <<EOF
2155 #line 2156 "configure"
2156 #include "confdefs.h"
2159 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2160 { (eval echo configure
:2161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2161 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2162 if test -z "$ac_err"; then
2164 eval "ac_cv_header_$ac_safe=yes"
2167 echo "configure: failed program was:" >&5
2168 cat conftest.
$ac_ext >&5
2170 eval "ac_cv_header_$ac_safe=no"
2174 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2175 echo "$ac_t""yes" 1>&6
2176 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2177 cat >> confdefs.h
<<EOF
2178 #define $ac_tr_hdr 1
2182 echo "$ac_t""no" 1>&6
2187 for ac_hdr
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
2188 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
2189 termcap.h stdio_ext.h
2191 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2192 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2193 echo "configure:2194: checking for $ac_hdr" >&5
2194 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2195 echo $ac_n "(cached) $ac_c" 1>&6
2197 cat > conftest.
$ac_ext <<EOF
2198 #line 2199 "configure"
2199 #include "confdefs.h"
2202 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2203 { (eval echo configure
:2204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2204 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2205 if test -z "$ac_err"; then
2207 eval "ac_cv_header_$ac_safe=yes"
2210 echo "configure: failed program was:" >&5
2211 cat conftest.
$ac_ext >&5
2213 eval "ac_cv_header_$ac_safe=no"
2217 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2218 echo "$ac_t""yes" 1>&6
2219 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2220 cat >> confdefs.h
<<EOF
2221 #define $ac_tr_hdr 1
2225 echo "$ac_t""no" 1>&6
2229 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2230 echo "configure:2231: checking for ANSI C header files" >&5
2231 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2232 echo $ac_n "(cached) $ac_c" 1>&6
2234 cat > conftest.
$ac_ext <<EOF
2235 #line 2236 "configure"
2236 #include "confdefs.h"
2242 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2243 { (eval echo configure
:2244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2244 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2245 if test -z "$ac_err"; then
2247 ac_cv_header_stdc
=yes
2250 echo "configure: failed program was:" >&5
2251 cat conftest.
$ac_ext >&5
2253 ac_cv_header_stdc
=no
2257 if test $ac_cv_header_stdc = yes; then
2258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2259 cat > conftest.
$ac_ext <<EOF
2260 #line 2261 "configure"
2261 #include "confdefs.h"
2264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2265 egrep "memchr" >/dev
/null
2>&1; then
2269 ac_cv_header_stdc
=no
2275 if test $ac_cv_header_stdc = yes; then
2276 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2277 cat > conftest.
$ac_ext <<EOF
2278 #line 2279 "configure"
2279 #include "confdefs.h"
2282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2283 egrep "free" >/dev
/null
2>&1; then
2287 ac_cv_header_stdc
=no
2293 if test $ac_cv_header_stdc = yes; then
2294 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2295 if test "$cross_compiling" = yes; then
2298 cat > conftest.
$ac_ext <<EOF
2299 #line 2300 "configure"
2300 #include "confdefs.h"
2302 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2303 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2304 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2305 int main () { int i; for (i = 0; i < 256; i++)
2306 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2310 if { (eval echo configure
:2311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2314 echo "configure: failed program was:" >&5
2315 cat conftest.
$ac_ext >&5
2317 ac_cv_header_stdc
=no
2325 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2326 if test $ac_cv_header_stdc = yes; then
2327 cat >> confdefs.h
<<\EOF
2328 #define STDC_HEADERS 1
2333 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2334 echo "configure:2335: checking whether time.h and sys/time.h may both be included" >&5
2335 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2336 echo $ac_n "(cached) $ac_c" 1>&6
2338 cat > conftest.
$ac_ext <<EOF
2339 #line 2340 "configure"
2340 #include "confdefs.h"
2341 #include <sys/types.h>
2342 #include <sys/time.h>
2348 if { (eval echo configure
:2349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2350 ac_cv_header_time
=yes
2352 echo "configure: failed program was:" >&5
2353 cat conftest.
$ac_ext >&5
2355 ac_cv_header_time
=no
2360 echo "$ac_t""$ac_cv_header_time" 1>&6
2361 if test $ac_cv_header_time = yes; then
2362 cat >> confdefs.h
<<\EOF
2363 #define TIME_WITH_SYS_TIME 1
2368 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2369 echo "configure:2370: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2370 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2371 echo $ac_n "(cached) $ac_c" 1>&6
2373 cat > conftest.
$ac_ext <<EOF
2374 #line 2375 "configure"
2375 #include "confdefs.h"
2376 #include <sys/types.h>
2378 /* NetBSD declares sys_siglist in unistd.h. */
2379 #ifdef HAVE_UNISTD_H
2383 char *msg = *(sys_siglist + 1);
2386 if { (eval echo configure
:2387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2388 ac_cv_decl_sys_siglist
=yes
2390 echo "configure: failed program was:" >&5
2391 cat conftest.
$ac_ext >&5
2393 ac_cv_decl_sys_siglist
=no
2398 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2399 if test $ac_cv_decl_sys_siglist = yes; then
2400 cat >> confdefs.h
<<\EOF
2401 #define SYS_SIGLIST_DECLARED 1
2407 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
2408 echo "configure:2409: checking for struct utimbuf" >&5
2409 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then
2410 echo $ac_n "(cached) $ac_c" 1>&6
2412 cat > conftest.
$ac_ext <<EOF
2413 #line 2414 "configure"
2414 #include "confdefs.h"
2415 #ifdef TIME_WITH_SYS_TIME
2416 #include <sys/time.h>
2419 #ifdef HAVE_SYS_TIME_H
2420 #include <sys/time.h>
2429 static struct utimbuf x; x.actime = x.modtime;
2432 if { (eval echo configure
:2433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2434 emacs_cv_struct_utimbuf
=yes
2436 echo "configure: failed program was:" >&5
2437 cat conftest.
$ac_ext >&5
2439 emacs_cv_struct_utimbuf
=no
2444 echo "$ac_t""$emacs_cv_struct_utimbuf" 1>&6
2445 if test $emacs_cv_struct_utimbuf = yes; then
2446 cat >> confdefs.h
<<\EOF
2447 #define HAVE_STRUCT_UTIMBUF 1
2452 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2453 echo "configure:2454: checking return type of signal handlers" >&5
2454 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2455 echo $ac_n "(cached) $ac_c" 1>&6
2457 cat > conftest.
$ac_ext <<EOF
2458 #line 2459 "configure"
2459 #include "confdefs.h"
2460 #include <sys/types.h>
2466 extern "C" void (*signal (int, void (*)(int)))(int);
2468 void (*signal ()) ();
2475 if { (eval echo configure
:2476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2477 ac_cv_type_signal
=void
2479 echo "configure: failed program was:" >&5
2480 cat conftest.
$ac_ext >&5
2482 ac_cv_type_signal
=int
2487 echo "$ac_t""$ac_cv_type_signal" 1>&6
2488 cat >> confdefs.h
<<EOF
2489 #define RETSIGTYPE $ac_cv_type_signal
2494 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
2495 echo "configure:2496: checking for struct timeval" >&5
2496 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then
2497 echo $ac_n "(cached) $ac_c" 1>&6
2499 cat > conftest.
$ac_ext <<EOF
2500 #line 2501 "configure"
2501 #include "confdefs.h"
2502 #ifdef TIME_WITH_SYS_TIME
2503 #include <sys/time.h>
2506 #ifdef HAVE_SYS_TIME_H
2507 #include <sys/time.h>
2513 static struct timeval x; x.tv_sec = x.tv_usec;
2516 if { (eval echo configure
:2517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2518 emacs_cv_struct_timeval
=yes
2520 echo "configure: failed program was:" >&5
2521 cat conftest.
$ac_ext >&5
2523 emacs_cv_struct_timeval
=no
2528 echo "$ac_t""$emacs_cv_struct_timeval" 1>&6
2529 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
2530 if test $emacs_cv_struct_timeval = yes; then
2531 cat >> confdefs.h
<<\EOF
2532 #define HAVE_TIMEVAL 1
2537 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2538 echo "configure:2539: checking whether struct tm is in sys/time.h or time.h" >&5
2539 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2540 echo $ac_n "(cached) $ac_c" 1>&6
2542 cat > conftest.
$ac_ext <<EOF
2543 #line 2544 "configure"
2544 #include "confdefs.h"
2545 #include <sys/types.h>
2548 struct tm *tp; tp->tm_sec;
2551 if { (eval echo configure
:2552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2553 ac_cv_struct_tm
=time.h
2555 echo "configure: failed program was:" >&5
2556 cat conftest.
$ac_ext >&5
2558 ac_cv_struct_tm
=sys
/time.h
2563 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2564 if test $ac_cv_struct_tm = sys
/time.h
; then
2565 cat >> confdefs.h
<<\EOF
2566 #define TM_IN_SYS_TIME 1
2571 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
2572 echo "configure:2573: checking for tm_zone in struct tm" >&5
2573 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
2574 echo $ac_n "(cached) $ac_c" 1>&6
2576 cat > conftest.
$ac_ext <<EOF
2577 #line 2578 "configure"
2578 #include "confdefs.h"
2579 #include <sys/types.h>
2580 #include <$ac_cv_struct_tm>
2582 struct tm tm; tm.tm_zone;
2585 if { (eval echo configure
:2586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2587 ac_cv_struct_tm_zone
=yes
2589 echo "configure: failed program was:" >&5
2590 cat conftest.
$ac_ext >&5
2592 ac_cv_struct_tm_zone
=no
2597 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
2598 if test "$ac_cv_struct_tm_zone" = yes; then
2599 cat >> confdefs.h
<<\EOF
2600 #define HAVE_TM_ZONE 1
2604 echo $ac_n "checking for tzname""... $ac_c" 1>&6
2605 echo "configure:2606: checking for tzname" >&5
2606 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
2607 echo $ac_n "(cached) $ac_c" 1>&6
2609 cat > conftest.
$ac_ext <<EOF
2610 #line 2611 "configure"
2611 #include "confdefs.h"
2613 #ifndef tzname /* For SGI. */
2614 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
2620 if { (eval echo configure
:2621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2622 ac_cv_var_tzname
=yes
2624 echo "configure: failed program was:" >&5
2625 cat conftest.
$ac_ext >&5
2632 echo "$ac_t""$ac_cv_var_tzname" 1>&6
2633 if test $ac_cv_var_tzname = yes; then
2634 cat >> confdefs.h
<<\EOF
2635 #define HAVE_TZNAME 1
2641 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
2642 echo "configure:2643: checking for tm_gmtoff in struct tm" >&5
2643 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then
2644 echo $ac_n "(cached) $ac_c" 1>&6
2646 cat > conftest.
$ac_ext <<EOF
2647 #line 2648 "configure"
2648 #include "confdefs.h"
2651 struct tm t; t.tm_gmtoff = 0
2654 if { (eval echo configure
:2655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2656 emacs_cv_tm_gmtoff
=yes
2658 echo "configure: failed program was:" >&5
2659 cat conftest.
$ac_ext >&5
2661 emacs_cv_tm_gmtoff
=no
2666 echo "$ac_t""$emacs_cv_tm_gmtoff" 1>&6
2667 if test $emacs_cv_tm_gmtoff = yes; then
2668 cat >> confdefs.h
<<\EOF
2669 #define HAVE_TM_GMTOFF 1
2674 echo $ac_n "checking for working const""... $ac_c" 1>&6
2675 echo "configure:2676: checking for working const" >&5
2676 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2677 echo $ac_n "(cached) $ac_c" 1>&6
2679 cat > conftest.
$ac_ext <<EOF
2680 #line 2681 "configure"
2681 #include "confdefs.h"
2685 /* Ultrix mips cc rejects this. */
2686 typedef int charset[2]; const charset x;
2687 /* SunOS 4.1.1 cc rejects this. */
2688 char const *const *ccp;
2690 /* NEC SVR4.0.2 mips cc rejects this. */
2691 struct point {int x, y;};
2692 static struct point const zero = {0,0};
2693 /* AIX XL C 1.02.0.0 rejects this.
2694 It does not let you subtract one const X* pointer from another in an arm
2695 of an if-expression whose if-part is not a constant expression */
2696 const char *g = "string";
2697 ccp = &g + (g ? g-g : 0);
2698 /* HPUX 7.0 cc rejects these. */
2701 ccp = (char const *const *) p;
2702 { /* SCO 3.2v4 cc rejects this. */
2704 char const *s = 0 ? (char *) 0 : (char const *) 0;
2708 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2710 const int *foo = &x[0];
2713 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2714 typedef const int *iptr;
2718 { /* AIX XL C 1.02.0.0 rejects this saying
2719 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2720 struct s { int j; const int *ap[3]; };
2721 struct s *b; b->j = 5;
2723 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2729 if { (eval echo configure
:2730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2733 echo "configure: failed program was:" >&5
2734 cat conftest.
$ac_ext >&5
2741 echo "$ac_t""$ac_cv_c_const" 1>&6
2742 if test $ac_cv_c_const = no
; then
2743 cat >> confdefs.h
<<\EOF
2750 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2751 echo "configure:2752: checking whether ${MAKE-make} sets \${MAKE}" >&5
2752 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
2753 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2754 echo $ac_n "(cached) $ac_c" 1>&6
2756 cat > conftestmake
<<\EOF
2758 @
echo 'ac_maketemp="${MAKE}"'
2760 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2761 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2762 if test -n "$ac_maketemp"; then
2763 eval ac_cv_prog_make_
${ac_make}_set
=yes
2765 eval ac_cv_prog_make_
${ac_make}_set
=no
2769 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2770 echo "$ac_t""yes" 1>&6
2773 echo "$ac_t""no" 1>&6
2774 SET_MAKE
="MAKE=${MAKE-make}"
2778 echo $ac_n "checking for long file names""... $ac_c" 1>&6
2779 echo "configure:2780: checking for long file names" >&5
2780 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
2781 echo $ac_n "(cached) $ac_c" 1>&6
2783 ac_cv_sys_long_file_names
=yes
2784 # Test for long file names in all the places we know might matter:
2785 # . the current directory, where building will happen
2786 # $prefix/lib where we will be installing things
2787 # $exec_prefix/lib likewise
2788 # eval it to expand exec_prefix.
2789 # $TMPDIR if set, where it might want to write temporary files
2790 # if $TMPDIR is not set:
2791 # /tmp where it might want to write temporary files
2794 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
2795 ac_tmpdirs
="$TMPDIR"
2797 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
2799 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
2800 test -d $ac_dir ||
continue
2801 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
2802 (echo 1 > $ac_dir/conftest9012345
) 2>/dev
/null
2803 (echo 2 > $ac_dir/conftest9012346
) 2>/dev
/null
2804 val
=`cat $ac_dir/conftest9012345 2>/dev/null`
2805 if test ! -f $ac_dir/conftest9012345 ||
test "$val" != 1; then
2806 ac_cv_sys_long_file_names
=no
2807 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
2810 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
2814 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
2815 if test $ac_cv_sys_long_file_names = yes; then
2816 cat >> confdefs.h
<<\EOF
2817 #define HAVE_LONG_FILE_NAMES 1
2823 #### Choose a window system.
2825 # If we find X, set shell vars x_includes and x_libraries to the
2826 # paths, otherwise set no_x=yes.
2827 # Uses ac_ vars as temps to allow command line to override cache and checks.
2828 # --without-x overrides everything else, but does not touch the cache.
2829 echo $ac_n "checking for X""... $ac_c" 1>&6
2830 echo "configure:2831: checking for X" >&5
2832 # Check whether --with-x or --without-x was given.
2833 if test "${with_x+set}" = set; then
2838 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2839 if test "x$with_x" = xno
; then
2840 # The user explicitly disabled X.
2843 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
2844 # Both variables are already set.
2847 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
2848 echo $ac_n "(cached) $ac_c" 1>&6
2850 # One or both of the vars are not set, and there is no cached value.
2851 ac_x_includes
=NO ac_x_libraries
=NO
2853 if mkdir conftestdir
; then
2855 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2856 cat > Imakefile
<<'EOF'
2858 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2860 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
2861 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2862 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2863 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2864 for ac_extension
in a so sl
; do
2865 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
2866 test -f $ac_im_libdir/libX11.
$ac_extension; then
2867 ac_im_usrlibdir
=$ac_im_libdir; break
2870 # Screen out bogus values from the imake configuration. They are
2871 # bogus both because they are the default anyway, and because
2872 # using them would break gcc on systems where it needs fixed includes.
2873 case "$ac_im_incroot" in
2875 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
2877 case "$ac_im_usrlibdir" in
2879 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
2886 if test "$ac_x_includes" = NO
; then
2887 # Guess where to find include files, by looking for this one X11 .h file.
2888 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
2890 # First, try using that file with no special directory specified.
2891 cat > conftest.
$ac_ext <<EOF
2892 #line 2893 "configure"
2893 #include "confdefs.h"
2894 #include <$x_direct_test_include>
2896 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2897 { (eval echo configure
:2898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2898 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2899 if test -z "$ac_err"; then
2901 # We can compile using X headers with no special include directory.
2905 echo "configure: failed program was:" >&5
2906 cat conftest.
$ac_ext >&5
2908 # Look for the header file in a standard set of common directories.
2909 # Check X11 before X11Rn because it is often a symlink to the current release.
2912 /usr
/X11R
6/include \
2913 /usr
/X11R
5/include \
2914 /usr
/X11R
4/include \
2917 /usr
/include
/X11R6 \
2918 /usr
/include
/X11R5 \
2919 /usr
/include
/X11R4 \
2921 /usr
/local
/X11
/include \
2922 /usr
/local
/X11R
6/include \
2923 /usr
/local
/X11R
5/include \
2924 /usr
/local
/X11R
4/include \
2926 /usr
/local
/include
/X11 \
2927 /usr
/local
/include
/X11R6 \
2928 /usr
/local
/include
/X11R5 \
2929 /usr
/local
/include
/X11R4 \
2933 /usr
/XFree86
/include
/X11 \
2936 /usr
/local
/include \
2937 /usr
/unsupported
/include \
2938 /usr
/athena
/include \
2939 /usr
/local
/x11r
5/include \
2940 /usr
/lpp
/Xamples
/include \
2942 /usr
/openwin
/include \
2943 /usr
/openwin
/share
/include \
2946 if test -r "$ac_dir/$x_direct_test_include"; then
2947 ac_x_includes
=$ac_dir
2953 fi # $ac_x_includes = NO
2955 if test "$ac_x_libraries" = NO
; then
2956 # Check for the libraries.
2958 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
2959 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
2961 # See if we find them without any special options.
2962 # Don't add to $LIBS permanently.
2963 ac_save_LIBS
="$LIBS"
2964 LIBS
="-l$x_direct_test_library $LIBS"
2965 cat > conftest.
$ac_ext <<EOF
2966 #line 2967 "configure"
2967 #include "confdefs.h"
2970 ${x_direct_test_function}()
2973 if { (eval echo configure
:2974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2975 LIBS
="$ac_save_LIBS"
2976 # We can link X programs with no special library path.
2979 echo "configure: failed program was:" >&5
2980 cat conftest.
$ac_ext >&5
2982 LIBS
="$ac_save_LIBS"
2983 # First see if replacing the include by lib works.
2984 # Check X11 before X11Rn because it is often a symlink to the current release.
2985 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
2996 /usr
/local
/X11
/lib \
2997 /usr
/local
/X11R
6/lib \
2998 /usr
/local
/X11R
5/lib \
2999 /usr
/local
/X11R
4/lib \
3001 /usr
/local
/lib
/X11 \
3002 /usr
/local
/lib
/X11R6 \
3003 /usr
/local
/lib
/X11R5 \
3004 /usr
/local
/lib
/X11R4 \
3008 /usr
/XFree86
/lib
/X11 \
3012 /usr
/unsupported
/lib \
3014 /usr
/local
/x11r
5/lib \
3015 /usr
/lpp
/Xamples
/lib \
3019 /usr
/openwin
/share
/lib \
3022 for ac_extension
in a so sl
; do
3023 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
3024 ac_x_libraries
=$ac_dir
3031 fi # $ac_x_libraries = NO
3033 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
3034 # Didn't find X anywhere. Cache the known absence of X.
3035 ac_cv_have_x
="have_x=no"
3037 # Record where we found X for the cache.
3038 ac_cv_have_x
="have_x=yes \
3039 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3043 eval "$ac_cv_have_x"
3046 if test "$have_x" != yes; then
3047 echo "$ac_t""$have_x" 1>&6
3050 # If each of the values was on the command line, it overrides each guess.
3051 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
3052 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
3053 # Update the cache value to reflect the command line values.
3054 ac_cv_have_x
="have_x=yes \
3055 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3056 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3059 if test "$no_x" = yes; then
3065 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
3066 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
3067 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
3068 x_default_search_path
=""
3069 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
3070 x_search_path
="${x_library}/X11/%L/%T/%N%C%S:\
3071 ${x_library}/X11/%L/%T/%N%C%S:${x_libary}/X11/%l/%T/%N%C%S:\
3072 ${x_library}/X11/%T/%N%C%S:${x_library}/X11/%L/%T/%N%S:\
3073 ${x_library}/X11/%l/%T/%N%S:${x_library}/X11/%T/%N%S"
3074 if test x
"${x_default_search_path}" = x
; then
3075 x_default_search_path
=${x_search_path}
3077 x_default_search_path
="${x_search_path}:${x_default_search_path}"
3081 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
3082 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
3085 if test x
"${x_includes}" = x
; then
3086 bitmapdir
=/usr
/include
/X11
/bitmaps
3088 # accumulate include directories that have X11 bitmap subdirectories
3090 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
3091 if test -d "${bmd}/X11/bitmaps"; then
3092 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
3093 elif test -d "${bmd}/bitmaps"; then
3094 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
3097 if test ${bmd_acc} != "dummyval"; then
3098 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
3102 case "${window_system}" in
3106 case "${with_x_toolkit}" in
3107 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
3108 motif
) USE_X_TOOLKIT
=MOTIF
;;
3109 no
) USE_X_TOOLKIT
=none
;;
3110 * ) USE_X_TOOLKIT
=maybe
;;
3120 ### If we're using X11, we should use the X menu package.
3123 yes ) HAVE_MENUS
=yes ;;
3126 if test "${opsys}" = "hpux9"; then
3127 case "${x_libraries}" in
3129 opsysfile
="s/hpux9-x11r4.h"
3134 if test "${opsys}" = "hpux9shr"; then
3135 case "${x_libraries}" in
3137 opsysfile
="s/hpux9shxr4.h"
3142 #### Extract some information from the operating system and machine files.
3144 echo "checking the machine- and system-dependent files to find out
3145 - which libraries the lib-src programs will want, and
3146 - whether the GNU malloc routines are usable" 1>&6
3147 echo "configure:3148: checking the machine- and system-dependent files to find out
3148 - which libraries the lib-src programs will want, and
3149 - whether the GNU malloc routines are usable" >&5
3151 ### First figure out CFLAGS (which we use for running the compiler here)
3152 ### and REAL_CFLAGS (which we use for real compilation).
3153 ### The two are the same except on a few systems, where they are made
3154 ### different to work around various lossages. For example,
3155 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3156 ### as implying static linking.
3158 ### If the CFLAGS env var is specified, we use that value
3159 ### instead of the default.
3161 ### It's not important that this name contain the PID; you can't run
3162 ### two configures in the same directory and have anything work
3164 tempcname
="conftest.c"
3167 #include "'${srcdir}'/src/'${opsysfile}'"
3168 #include "'${srcdir}'/src/'${machfile}'"
3169 #ifndef LIBS_MACHINE
3170 #define LIBS_MACHINE
3175 #ifndef C_SWITCH_SYSTEM
3176 #define C_SWITCH_SYSTEM
3178 #ifndef C_SWITCH_MACHINE
3179 #define C_SWITCH_MACHINE
3181 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3182 configure___ c_switch_system=C_SWITCH_SYSTEM
3183 configure___ c_switch_machine=C_SWITCH_MACHINE
3186 #define LIB_X11_LIB -lX11
3189 #ifndef LIBX11_MACHINE
3190 #define LIBX11_MACHINE
3193 #ifndef LIBX11_SYSTEM
3194 #define LIBX11_SYSTEM
3196 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3199 configure___ unexec=UNEXEC
3201 configure___ unexec=unexec.o
3204 #ifdef SYSTEM_MALLOC
3205 configure___ system_malloc=yes
3207 configure___ system_malloc=no
3210 #ifndef C_DEBUG_SWITCH
3211 #define C_DEBUG_SWITCH -g
3214 #ifndef C_OPTIMIZE_SWITCH
3215 #define C_OPTIMIZE_SWITCH -O
3218 #ifndef LD_SWITCH_MACHINE
3219 #define LD_SWITCH_MACHINE
3222 #ifndef LD_SWITCH_SYSTEM
3223 #define LD_SWITCH_SYSTEM
3226 #ifndef LD_SWITCH_X_SITE_AUX
3227 #define LD_SWITCH_X_SITE_AUX
3230 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3231 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3233 #ifdef THIS_IS_CONFIGURE
3235 /* Get the CFLAGS for tests in configure. */
3237 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3239 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3242 #else /* not THIS_IS_CONFIGURE */
3244 /* Get the CFLAGS for real compilation. */
3246 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3248 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3251 #endif /* not THIS_IS_CONFIGURE */
3254 # The value of CPP is a quoted variable reference, so we need to do this
3255 # to get its actual value...
3256 CPP
=`eval "echo $CPP"`
3257 eval `${CPP} -Isrc ${tempcname} \
3258 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3259 if test "x$SPECIFIED_CFLAGS" = x
; then
3260 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3261 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3263 REAL_CFLAGS
="$CFLAGS"
3267 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
3269 ### Compute the unexec source name from the object name.
3270 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
3272 # Do the opsystem or machine files prohibit the use of the GNU malloc?
3273 # Assume not, until told otherwise.
3276 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
3277 echo "configure:3278: checking for malloc_get_state" >&5
3278 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then
3279 echo $ac_n "(cached) $ac_c" 1>&6
3281 cat > conftest.
$ac_ext <<EOF
3282 #line 3283 "configure"
3283 #include "confdefs.h"
3284 /* System header to define __stub macros and hopefully few prototypes,
3285 which can conflict with char malloc_get_state(); below. */
3287 /* Override any gcc2 internal prototype to avoid an error. */
3288 /* We use char because int might match the return type of a gcc2
3289 builtin and then its argument prototype would still apply. */
3290 char malloc_get_state();
3294 /* The GNU C library defines this for functions which it implements
3295 to always fail with ENOSYS. Some functions are actually named
3296 something starting with __ and the normal name is an alias. */
3297 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
3305 if { (eval echo configure
:3306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3307 eval "ac_cv_func_malloc_get_state=yes"
3309 echo "configure: failed program was:" >&5
3310 cat conftest.
$ac_ext >&5
3312 eval "ac_cv_func_malloc_get_state=no"
3317 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
3318 echo "$ac_t""yes" 1>&6
3321 echo "$ac_t""no" 1>&6
3325 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3326 echo "configure:3327: checking for malloc_set_state" >&5
3327 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then
3328 echo $ac_n "(cached) $ac_c" 1>&6
3330 cat > conftest.
$ac_ext <<EOF
3331 #line 3332 "configure"
3332 #include "confdefs.h"
3333 /* System header to define __stub macros and hopefully few prototypes,
3334 which can conflict with char malloc_set_state(); below. */
3336 /* Override any gcc2 internal prototype to avoid an error. */
3337 /* We use char because int might match the return type of a gcc2
3338 builtin and then its argument prototype would still apply. */
3339 char malloc_set_state();
3343 /* The GNU C library defines this for functions which it implements
3344 to always fail with ENOSYS. Some functions are actually named
3345 something starting with __ and the normal name is an alias. */
3346 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3354 if { (eval echo configure
:3355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3356 eval "ac_cv_func_malloc_set_state=yes"
3358 echo "configure: failed program was:" >&5
3359 cat conftest.
$ac_ext >&5
3361 eval "ac_cv_func_malloc_set_state=no"
3366 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3367 echo "$ac_t""yes" 1>&6
3370 echo "$ac_t""no" 1>&6
3374 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3375 echo "configure:3376: checking whether __after_morecore_hook exists" >&5
3376 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then
3377 echo $ac_n "(cached) $ac_c" 1>&6
3379 cat > conftest.
$ac_ext <<EOF
3380 #line 3381 "configure"
3381 #include "confdefs.h"
3382 extern void (* __after_morecore_hook)();
3384 __after_morecore_hook = 0
3387 if { (eval echo configure
:3388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3389 emacs_cv_var___after_morecore_hook
=yes
3391 echo "configure: failed program was:" >&5
3392 cat conftest.
$ac_ext >&5
3394 emacs_cv_var___after_morecore_hook
=no
3399 echo "$ac_t""$emacs_cv_var___after_morecore_hook" 1>&6
3400 if test $emacs_cv_var___after_morecore_hook = no
; then
3403 if test "${system_malloc}" = "yes"; then
3406 (The GNU allocators don't work with this system configuration.)"
3408 if test "$doug_lea_malloc" = "yes" ; then
3409 if test "$GNU_MALLOC" = yes ; then
3411 (Using Doug Lea's new malloc from the GNU C Library.)"
3413 cat >> confdefs.h
<<\EOF
3414 #define DOUG_LEA_MALLOC 1
3419 if test x
"${REL_ALLOC}" = x
; then
3420 REL_ALLOC
=${GNU_MALLOC}
3426 #### Add the libraries to LIBS and check for some functions.
3428 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
3429 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
3431 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
3434 LIBS
="$libsrc_libs $LIBS"
3436 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3437 echo "configure:3438: checking for dnet_ntoa in -ldnet" >&5
3438 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3439 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3440 echo $ac_n "(cached) $ac_c" 1>&6
3442 ac_save_LIBS
="$LIBS"
3444 cat > conftest.
$ac_ext <<EOF
3445 #line 3446 "configure"
3446 #include "confdefs.h"
3447 /* Override any gcc2 internal prototype to avoid an error. */
3448 /* We use char because int might match the return type of a gcc2
3449 builtin and then its argument prototype would still apply. */
3456 if { (eval echo configure
:3457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3458 eval "ac_cv_lib_$ac_lib_var=yes"
3460 echo "configure: failed program was:" >&5
3461 cat conftest.
$ac_ext >&5
3463 eval "ac_cv_lib_$ac_lib_var=no"
3466 LIBS
="$ac_save_LIBS"
3469 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3470 echo "$ac_t""yes" 1>&6
3471 ac_tr_lib
=HAVE_LIB
`echo dnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3472 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3473 cat >> confdefs.h
<<EOF
3474 #define $ac_tr_lib 1
3480 echo "$ac_t""no" 1>&6
3484 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
3485 echo "configure:3486: checking for main in -lXbsd" >&5
3486 ac_lib_var
=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
3487 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3488 echo $ac_n "(cached) $ac_c" 1>&6
3490 ac_save_LIBS
="$LIBS"
3492 cat > conftest.
$ac_ext <<EOF
3493 #line 3494 "configure"
3494 #include "confdefs.h"
3500 if { (eval echo configure
:3501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3502 eval "ac_cv_lib_$ac_lib_var=yes"
3504 echo "configure: failed program was:" >&5
3505 cat conftest.
$ac_ext >&5
3507 eval "ac_cv_lib_$ac_lib_var=no"
3510 LIBS
="$ac_save_LIBS"
3513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3514 echo "$ac_t""yes" 1>&6
3515 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
3517 echo "$ac_t""no" 1>&6
3521 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
3522 echo "configure:3523: checking for cma_open in -lpthreads" >&5
3523 ac_lib_var
=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
3524 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3525 echo $ac_n "(cached) $ac_c" 1>&6
3527 ac_save_LIBS
="$LIBS"
3528 LIBS
="-lpthreads $LIBS"
3529 cat > conftest.
$ac_ext <<EOF
3530 #line 3531 "configure"
3531 #include "confdefs.h"
3532 /* Override any gcc2 internal prototype to avoid an error. */
3533 /* We use char because int might match the return type of a gcc2
3534 builtin and then its argument prototype would still apply. */
3541 if { (eval echo configure
:3542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3543 eval "ac_cv_lib_$ac_lib_var=yes"
3545 echo "configure: failed program was:" >&5
3546 cat conftest.
$ac_ext >&5
3548 eval "ac_cv_lib_$ac_lib_var=no"
3551 LIBS
="$ac_save_LIBS"
3554 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3555 echo "$ac_t""yes" 1>&6
3556 ac_tr_lib
=HAVE_LIB
`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3557 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3558 cat >> confdefs.h
<<EOF
3559 #define $ac_tr_lib 1
3562 LIBS
="-lpthreads $LIBS"
3565 echo "$ac_t""no" 1>&6
3569 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6
3570 echo "configure:3571: checking for XFree86 in /usr/X386" >&5
3571 if test -d /usr
/X386
/include
; then
3573 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
3577 echo "$ac_t""$HAVE_XFREE386" 1>&6
3579 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
3580 # for the tests that follow. We set it back to REAL_CFLAGS later on.
3582 if test "${HAVE_X11}" = "yes"; then
3583 DEFS
="$C_SWITCH_X_SITE $DEFS"
3584 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
3586 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
3588 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
3589 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
3590 # but it's more convenient here to set LD_RUN_PATH
3591 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
3592 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
3593 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
3597 if test "${opsys}" = "gnu-linux"; then
3598 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6
3599 echo "configure:3600: checking whether X on GNU/Linux needs -b to link" >&5
3600 cat > conftest.
$ac_ext <<EOF
3601 #line 3602 "configure"
3602 #include "confdefs.h"
3605 XOpenDisplay ("foo");
3608 if { (eval echo configure
:3609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3610 xlinux_first_failure
=no
3612 echo "configure: failed program was:" >&5
3613 cat conftest.
$ac_ext >&5
3615 xlinux_first_failure
=yes
3618 if test "${xlinux_first_failure}" = "yes"; then
3619 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
3620 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
3621 OLD_CPPFLAGS
="$CPPFLAGS"
3623 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
3624 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
3625 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
3626 LIBS
="$LIBS -b i486-linuxaout"
3627 cat > conftest.
$ac_ext <<EOF
3628 #line 3629 "configure"
3629 #include "confdefs.h"
3632 XOpenDisplay ("foo");
3635 if { (eval echo configure
:3636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3637 xlinux_second_failure
=no
3639 echo "configure: failed program was:" >&5
3640 cat conftest.
$ac_ext >&5
3642 xlinux_second_failure
=yes
3645 if test "${xlinux_second_failure}" = "yes"; then
3646 # If we get the same failure with -b, there is no use adding -b.
3647 # So take it out. This plays safe.
3648 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
3649 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
3650 CPPFLAGS
="$OLD_CPPFLAGS"
3652 echo "$ac_t""no" 1>&6
3654 echo "$ac_t""yes" 1>&6
3657 echo "$ac_t""no" 1>&6
3661 for ac_func
in XrmSetDatabase XScreenResourceString \
3662 XScreenNumberOfScreen XSetWMProtocols
3664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3665 echo "configure:3666: checking for $ac_func" >&5
3666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3667 echo $ac_n "(cached) $ac_c" 1>&6
3669 cat > conftest.
$ac_ext <<EOF
3670 #line 3671 "configure"
3671 #include "confdefs.h"
3672 /* System header to define __stub macros and hopefully few prototypes,
3673 which can conflict with char $ac_func(); below. */
3675 /* Override any gcc2 internal prototype to avoid an error. */
3676 /* We use char because int might match the return type of a gcc2
3677 builtin and then its argument prototype would still apply. */
3682 /* The GNU C library defines this for functions which it implements
3683 to always fail with ENOSYS. Some functions are actually named
3684 something starting with __ and the normal name is an alias. */
3685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3693 if { (eval echo configure
:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3695 eval "ac_cv_func_$ac_func=yes"
3697 echo "configure: failed program was:" >&5
3698 cat conftest.
$ac_ext >&5
3700 eval "ac_cv_func_$ac_func=no"
3705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3706 echo "$ac_t""yes" 1>&6
3707 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3708 cat >> confdefs.h
<<EOF
3709 #define $ac_tr_func 1
3713 echo "$ac_t""no" 1>&6
3719 if test "${window_system}" = "x11"; then
3720 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6
3721 echo "configure:3722: checking X11 version 6" >&5
3722 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then
3723 echo $ac_n "(cached) $ac_c" 1>&6
3725 cat > conftest.
$ac_ext <<EOF
3726 #line 3727 "configure"
3727 #include "confdefs.h"
3728 #include <X11/Xlib.h>
3730 #if XlibSpecificationRelease < 6
3736 if { (eval echo configure
:3737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3738 emacs_cv_x11_version_6
=yes
3740 echo "configure: failed program was:" >&5
3741 cat conftest.
$ac_ext >&5
3743 emacs_cv_x11_version_6
=no
3748 if test $emacs_cv_x11_version_6 = yes; then
3749 echo "$ac_t""6 or newer" 1>&6
3750 cat >> confdefs.h
<<\EOF
3751 #define HAVE_X11R6 1
3755 echo "$ac_t""before 6" 1>&6
3759 if test "${window_system}" = "x11"; then
3760 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6
3761 echo "configure:3762: checking X11 version 5" >&5
3762 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then
3763 echo $ac_n "(cached) $ac_c" 1>&6
3765 cat > conftest.
$ac_ext <<EOF
3766 #line 3767 "configure"
3767 #include "confdefs.h"
3768 #include <X11/Xlib.h>
3770 #if XlibSpecificationRelease < 5
3776 if { (eval echo configure
:3777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3778 emacs_cv_x11_version_5
=yes
3780 echo "configure: failed program was:" >&5
3781 cat conftest.
$ac_ext >&5
3783 emacs_cv_x11_version_5
=no
3788 if test $emacs_cv_x11_version_5 = yes; then
3789 echo "$ac_t""5 or newer" 1>&6
3791 cat >> confdefs.h
<<\EOF
3792 #define HAVE_X11R5 1
3797 echo "$ac_t""before 5" 1>&6
3801 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
3802 if test x
"${HAVE_X11R5}" = xyes
; then
3803 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6
3804 echo "configure:3805: checking X11 version 5 with Xaw" >&5
3805 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then
3806 echo $ac_n "(cached) $ac_c" 1>&6
3808 cat > conftest.
$ac_ext <<EOF
3809 #line 3810 "configure"
3810 #include "confdefs.h"
3812 #include <X11/Intrinsic.h>
3813 #include <X11/Xaw/Simple.h>
3818 if { (eval echo configure
:3819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3820 emacs_cv_x11_version_5_with_xaw
=yes
3822 echo "configure: failed program was:" >&5
3823 cat conftest.
$ac_ext >&5
3825 emacs_cv_x11_version_5_with_xaw
=no
3830 if test $emacs_cv_x11_version_5_with_xaw = yes; then
3831 echo "$ac_t""5 or newer, with Xaw; use toolkit by default" 1>&6
3834 echo "$ac_t""before 5 or no Xaw; do not use toolkit by default" 1>&6
3842 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
3844 if test "${USE_X_TOOLKIT}" != "none"; then
3845 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6
3846 echo "configure:3847: checking X11 toolkit version" >&5
3847 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then
3848 echo $ac_n "(cached) $ac_c" 1>&6
3850 cat > conftest.
$ac_ext <<EOF
3851 #line 3852 "configure"
3852 #include "confdefs.h"
3853 #include <X11/Intrinsic.h>
3855 #if XtSpecificationRelease < 6
3861 if { (eval echo configure
:3862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3863 emacs_cv_x11_toolkit_version_6
=yes
3865 echo "configure: failed program was:" >&5
3866 cat conftest.
$ac_ext >&5
3868 emacs_cv_x11_toolkit_version_6
=no
3873 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
3874 if test $emacs_cv_x11_toolkit_version_6 = yes; then
3875 echo "$ac_t""6 or newer" 1>&6
3876 cat >> confdefs.h
<<\EOF
3877 #define HAVE_X11XTR6 1
3881 echo "$ac_t""before 6" 1>&6
3885 if test x
$HAVE_X11XTR6 = xyes
; then
3886 LIBS
="-lXt -lSM -lICE $LIBS"
3890 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
3891 echo "configure:3892: checking for XmuConvertStandardSelection in -lXmu" >&5
3892 ac_lib_var
=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
3893 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3894 echo $ac_n "(cached) $ac_c" 1>&6
3896 ac_save_LIBS
="$LIBS"
3898 cat > conftest.
$ac_ext <<EOF
3899 #line 3900 "configure"
3900 #include "confdefs.h"
3901 /* Override any gcc2 internal prototype to avoid an error. */
3902 /* We use char because int might match the return type of a gcc2
3903 builtin and then its argument prototype would still apply. */
3904 char XmuConvertStandardSelection();
3907 XmuConvertStandardSelection()
3910 if { (eval echo configure
:3911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3912 eval "ac_cv_lib_$ac_lib_var=yes"
3914 echo "configure: failed program was:" >&5
3915 cat conftest.
$ac_ext >&5
3917 eval "ac_cv_lib_$ac_lib_var=no"
3920 LIBS
="$ac_save_LIBS"
3923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3924 echo "$ac_t""yes" 1>&6
3925 ac_tr_lib
=HAVE_LIB
`echo Xmu | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3926 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3927 cat >> confdefs.h
<<EOF
3928 #define $ac_tr_lib 1
3934 echo "$ac_t""no" 1>&6
3940 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
3941 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6
3942 echo "configure:3943: checking for Motif version 2.1" >&5
3943 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then
3944 echo $ac_n "(cached) $ac_c" 1>&6
3946 cat > conftest.
$ac_ext <<EOF
3947 #line 3948 "configure"
3948 #include "confdefs.h"
3951 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
3954 Motif version prior to 2.1.
3958 if { (eval echo configure
:3959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3960 emacs_cv_motif_version_2_1
=yes
3962 echo "configure: failed program was:" >&5
3963 cat conftest.
$ac_ext >&5
3965 emacs_cv_motif_version_2_1
=no
3970 echo "$ac_t""$emacs_cv_motif_version_2_1" 1>&6
3971 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
3972 if test $emacs_cv_motif_version_2_1 = yes; then
3973 cat >> confdefs.h
<<\EOF
3974 #define HAVE_MOTIF_2_1 1
3977 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6
3978 echo "configure:3979: checking for XpCreateContext in -lXp" >&5
3979 ac_lib_var
=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`
3980 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3981 echo $ac_n "(cached) $ac_c" 1>&6
3983 ac_save_LIBS
="$LIBS"
3985 cat > conftest.
$ac_ext <<EOF
3986 #line 3987 "configure"
3987 #include "confdefs.h"
3988 /* Override any gcc2 internal prototype to avoid an error. */
3989 /* We use char because int might match the return type of a gcc2
3990 builtin and then its argument prototype would still apply. */
3991 char XpCreateContext();
3997 if { (eval echo configure
:3998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3999 eval "ac_cv_lib_$ac_lib_var=yes"
4001 echo "configure: failed program was:" >&5
4002 cat conftest.
$ac_ext >&5
4004 eval "ac_cv_lib_$ac_lib_var=no"
4007 LIBS
="$ac_save_LIBS"
4010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4011 echo "$ac_t""yes" 1>&6
4012 ac_tr_lib
=HAVE_LIB
`echo Xp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4013 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4014 cat >> confdefs.h
<<EOF
4015 #define $ac_tr_lib 1
4021 echo "$ac_t""no" 1>&6
4027 ### Is -lXaw3d available?
4029 if test "${HAVE_X11}" = "yes"; then
4030 if test "${USE_X_TOOLKIT}" != "none"; then
4031 old_c_flags
="${CFLAGS}"
4032 CFLAGS
="${LD_SWITCH_X_SITE}"
4033 ac_safe
=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'`
4034 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6
4035 echo "configure:4036: checking for X11/Xaw3d/Scrollbar.h" >&5
4036 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4037 echo $ac_n "(cached) $ac_c" 1>&6
4039 cat > conftest.
$ac_ext <<EOF
4040 #line 4041 "configure"
4041 #include "confdefs.h"
4042 #include <X11/Xaw3d/Scrollbar.h>
4044 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4045 { (eval echo configure
:4046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4046 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4047 if test -z "$ac_err"; then
4049 eval "ac_cv_header_$ac_safe=yes"
4052 echo "configure: failed program was:" >&5
4053 cat conftest.
$ac_ext >&5
4055 eval "ac_cv_header_$ac_safe=no"
4059 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4060 echo "$ac_t""yes" 1>&6
4061 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
4062 echo "configure:4063: checking for XawScrollbarSetThumb in -lXaw3d" >&5
4063 ac_lib_var
=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
4064 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4065 echo $ac_n "(cached) $ac_c" 1>&6
4067 ac_save_LIBS
="$LIBS"
4068 LIBS
="-lXaw3d -lX11 $LIBS"
4069 cat > conftest.
$ac_ext <<EOF
4070 #line 4071 "configure"
4071 #include "confdefs.h"
4072 /* Override any gcc2 internal prototype to avoid an error. */
4073 /* We use char because int might match the return type of a gcc2
4074 builtin and then its argument prototype would still apply. */
4075 char XawScrollbarSetThumb();
4078 XawScrollbarSetThumb()
4081 if { (eval echo configure
:4082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4083 eval "ac_cv_lib_$ac_lib_var=yes"
4085 echo "configure: failed program was:" >&5
4086 cat conftest.
$ac_ext >&5
4088 eval "ac_cv_lib_$ac_lib_var=no"
4091 LIBS
="$ac_save_LIBS"
4094 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4095 echo "$ac_t""yes" 1>&6
4098 echo "$ac_t""no" 1>&6
4102 echo "$ac_t""no" 1>&6
4105 CFLAGS
="${old_c_flags}"
4107 if test "${HAVE_XAW3D}" = "yes"; then
4108 cat >> confdefs.h
<<\EOF
4109 #define HAVE_XAW3D 1
4117 USE_TOOLKIT_SCROLL_BARS
=no
4118 if test "${with_toolkit_scroll_bars}" != "no"; then
4119 if test "${USE_X_TOOLKIT}" != "none"; then
4120 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
4121 cat >> confdefs.h
<<\EOF
4122 #define USE_TOOLKIT_SCROLL_BARS 1
4126 USE_TOOLKIT_SCROLL_BARS
=yes
4127 elif test "${HAVE_XAW3D}" = "yes"; then
4128 cat >> confdefs.h
<<\EOF
4129 #define USE_TOOLKIT_SCROLL_BARS 1
4132 USE_TOOLKIT_SCROLL_BARS
=yes
4137 ### Use -lXpm if available, unless `--with-xpm=no'.
4139 if test "${HAVE_X11}" = "yes"; then
4140 if test "${with_xpm}" != "no"; then
4141 old_c_flags
="${CFLAGS}"
4142 CFLAGS
="${LD_SWITCH_X_SITE}"
4143 ac_safe
=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4144 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4145 echo "configure:4146: checking for X11/xpm.h" >&5
4146 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4147 echo $ac_n "(cached) $ac_c" 1>&6
4149 cat > conftest.
$ac_ext <<EOF
4150 #line 4151 "configure"
4151 #include "confdefs.h"
4152 #include <X11/xpm.h>
4154 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4155 { (eval echo configure
:4156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4156 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4157 if test -z "$ac_err"; then
4159 eval "ac_cv_header_$ac_safe=yes"
4162 echo "configure: failed program was:" >&5
4163 cat conftest.
$ac_ext >&5
4165 eval "ac_cv_header_$ac_safe=no"
4169 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4170 echo "$ac_t""yes" 1>&6
4171 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
4172 echo "configure:4173: checking for XpmReadFileToPixmap in -lXpm" >&5
4173 ac_lib_var
=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
4174 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4175 echo $ac_n "(cached) $ac_c" 1>&6
4177 ac_save_LIBS
="$LIBS"
4178 LIBS
="-lXpm -lX11 $LIBS"
4179 cat > conftest.
$ac_ext <<EOF
4180 #line 4181 "configure"
4181 #include "confdefs.h"
4182 /* Override any gcc2 internal prototype to avoid an error. */
4183 /* We use char because int might match the return type of a gcc2
4184 builtin and then its argument prototype would still apply. */
4185 char XpmReadFileToPixmap();
4188 XpmReadFileToPixmap()
4191 if { (eval echo configure
:4192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4193 eval "ac_cv_lib_$ac_lib_var=yes"
4195 echo "configure: failed program was:" >&5
4196 cat conftest.
$ac_ext >&5
4198 eval "ac_cv_lib_$ac_lib_var=no"
4201 LIBS
="$ac_save_LIBS"
4204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4205 echo "$ac_t""yes" 1>&6
4208 echo "$ac_t""no" 1>&6
4212 echo "$ac_t""no" 1>&6
4215 CFLAGS
="${old_c_flags}"
4218 if test "${HAVE_XPM}" = "yes"; then
4219 cat >> confdefs.h
<<\EOF
4226 ### Use -ljpeg if available, unless `--with-jpeg=no'.
4228 if test "${HAVE_X11}" = "yes"; then
4229 if test "${with_jpeg}" != "no"; then
4230 old_c_flags
="${CFLAGS}"
4231 CFLAGS
="${LD_SWITCH_X_SITE} ${CFLAGS}"
4232 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
4233 echo "configure:4234: checking for jpeg_destroy_compress in -ljpeg" >&5
4234 ac_lib_var
=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
4235 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4236 echo $ac_n "(cached) $ac_c" 1>&6
4238 ac_save_LIBS
="$LIBS"
4239 LIBS
="-ljpeg -lX11 $LIBS"
4240 cat > conftest.
$ac_ext <<EOF
4241 #line 4242 "configure"
4242 #include "confdefs.h"
4243 /* Override any gcc2 internal prototype to avoid an error. */
4244 /* We use char because int might match the return type of a gcc2
4245 builtin and then its argument prototype would still apply. */
4246 char jpeg_destroy_compress();
4249 jpeg_destroy_compress()
4252 if { (eval echo configure
:4253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4254 eval "ac_cv_lib_$ac_lib_var=yes"
4256 echo "configure: failed program was:" >&5
4257 cat conftest.
$ac_ext >&5
4259 eval "ac_cv_lib_$ac_lib_var=no"
4262 LIBS
="$ac_save_LIBS"
4265 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4266 echo "$ac_t""yes" 1>&6
4269 echo "$ac_t""no" 1>&6
4272 CFLAGS
="${old_c_flags}"
4275 if test "${HAVE_JPEG}" = "yes"; then
4276 cat >> confdefs.h
<<\EOF
4283 ### Use -lpng if available, unless `--with-png=no'.
4285 if test "${HAVE_X11}" = "yes"; then
4286 if test "${with_png}" != "no"; then
4287 old_c_flags
="${CFLAGS}"
4288 CFLAGS
="${LD_SWITCH_X_SITE} ${CFLAGS}"
4289 ac_safe
=`echo "png.h" | sed 'y%./+-%__p_%'`
4290 echo $ac_n "checking for png.h""... $ac_c" 1>&6
4291 echo "configure:4292: checking for png.h" >&5
4292 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4293 echo $ac_n "(cached) $ac_c" 1>&6
4295 cat > conftest.
$ac_ext <<EOF
4296 #line 4297 "configure"
4297 #include "confdefs.h"
4300 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4301 { (eval echo configure
:4302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4302 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4303 if test -z "$ac_err"; then
4305 eval "ac_cv_header_$ac_safe=yes"
4308 echo "configure: failed program was:" >&5
4309 cat conftest.
$ac_ext >&5
4311 eval "ac_cv_header_$ac_safe=no"
4315 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4316 echo "$ac_t""yes" 1>&6
4317 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6
4318 echo "configure:4319: checking for png_set_expand in -lpng" >&5
4319 ac_lib_var
=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'`
4320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4321 echo $ac_n "(cached) $ac_c" 1>&6
4323 ac_save_LIBS
="$LIBS"
4324 LIBS
="-lpng -lX11 -lz -lm $LIBS"
4325 cat > conftest.
$ac_ext <<EOF
4326 #line 4327 "configure"
4327 #include "confdefs.h"
4328 /* Override any gcc2 internal prototype to avoid an error. */
4329 /* We use char because int might match the return type of a gcc2
4330 builtin and then its argument prototype would still apply. */
4331 char png_set_expand();
4337 if { (eval echo configure
:4338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4339 eval "ac_cv_lib_$ac_lib_var=yes"
4341 echo "configure: failed program was:" >&5
4342 cat conftest.
$ac_ext >&5
4344 eval "ac_cv_lib_$ac_lib_var=no"
4347 LIBS
="$ac_save_LIBS"
4350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4351 echo "$ac_t""yes" 1>&6
4354 echo "$ac_t""no" 1>&6
4358 echo "$ac_t""no" 1>&6
4361 CFLAGS
="${old_c_flags}"
4364 if test "${HAVE_PNG}" = "yes"; then
4365 cat >> confdefs.h
<<\EOF
4372 ### Use -ltiff if available, unless `--with-tiff=no'.
4374 if test "${HAVE_X11}" = "yes"; then
4375 if test "${with_tiff}" != "no"; then
4376 old_c_flags
="${CFLAGS}"
4377 CFLAGS
="${LD_SWITCH_X_SITE} ${CFLAGS}"
4378 ac_safe
=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
4379 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
4380 echo "configure:4381: checking for tiffio.h" >&5
4381 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4382 echo $ac_n "(cached) $ac_c" 1>&6
4384 cat > conftest.
$ac_ext <<EOF
4385 #line 4386 "configure"
4386 #include "confdefs.h"
4389 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4390 { (eval echo configure
:4391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4391 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4392 if test -z "$ac_err"; then
4394 eval "ac_cv_header_$ac_safe=yes"
4397 echo "configure: failed program was:" >&5
4398 cat conftest.
$ac_ext >&5
4400 eval "ac_cv_header_$ac_safe=no"
4404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4405 echo "$ac_t""yes" 1>&6
4406 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4407 echo "configure:4408: checking for TIFFGetVersion in -ltiff" >&5
4408 ac_lib_var
=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4409 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4410 echo $ac_n "(cached) $ac_c" 1>&6
4412 ac_save_LIBS
="$LIBS"
4413 LIBS
="-ltiff -lX11 -lm $LIBS"
4414 cat > conftest.
$ac_ext <<EOF
4415 #line 4416 "configure"
4416 #include "confdefs.h"
4417 /* Override any gcc2 internal prototype to avoid an error. */
4418 /* We use char because int might match the return type of a gcc2
4419 builtin and then its argument prototype would still apply. */
4420 char TIFFGetVersion();
4426 if { (eval echo configure
:4427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4428 eval "ac_cv_lib_$ac_lib_var=yes"
4430 echo "configure: failed program was:" >&5
4431 cat conftest.
$ac_ext >&5
4433 eval "ac_cv_lib_$ac_lib_var=no"
4436 LIBS
="$ac_save_LIBS"
4439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4440 echo "$ac_t""yes" 1>&6
4443 echo "$ac_t""no" 1>&6
4447 echo "$ac_t""no" 1>&6
4450 CFLAGS
="${old_c_flags}"
4453 if test "${HAVE_TIFF}" = "yes"; then
4454 cat >> confdefs.h
<<\EOF
4461 ### Use -lgif if available, unless `--with-gif=no'.
4463 if test "${HAVE_X11}" = "yes"; then
4464 if test "${with_gif}" != "no"; then
4465 old_c_flags
="${CFLAGS}"
4466 CFLAGS
="${LD_SWITCH_X_SITE} ${CFLAGS}"
4467 ac_safe
=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
4468 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
4469 echo "configure:4470: checking for gif_lib.h" >&5
4470 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4471 echo $ac_n "(cached) $ac_c" 1>&6
4473 cat > conftest.
$ac_ext <<EOF
4474 #line 4475 "configure"
4475 #include "confdefs.h"
4476 #include <gif_lib.h>
4478 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4479 { (eval echo configure
:4480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4480 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4481 if test -z "$ac_err"; then
4483 eval "ac_cv_header_$ac_safe=yes"
4486 echo "configure: failed program was:" >&5
4487 cat conftest.
$ac_ext >&5
4489 eval "ac_cv_header_$ac_safe=no"
4493 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4494 echo "$ac_t""yes" 1>&6
4495 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
4496 echo "configure:4497: checking for DGifOpenFileName in -lungif" >&5
4497 ac_lib_var
=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4498 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4499 echo $ac_n "(cached) $ac_c" 1>&6
4501 ac_save_LIBS
="$LIBS"
4502 LIBS
="-lungif -lX11 $LIBS"
4503 cat > conftest.
$ac_ext <<EOF
4504 #line 4505 "configure"
4505 #include "confdefs.h"
4506 /* Override any gcc2 internal prototype to avoid an error. */
4507 /* We use char because int might match the return type of a gcc2
4508 builtin and then its argument prototype would still apply. */
4509 char DGifOpenFileName();
4515 if { (eval echo configure
:4516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4517 eval "ac_cv_lib_$ac_lib_var=yes"
4519 echo "configure: failed program was:" >&5
4520 cat conftest.
$ac_ext >&5
4522 eval "ac_cv_lib_$ac_lib_var=no"
4525 LIBS
="$ac_save_LIBS"
4528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4529 echo "$ac_t""yes" 1>&6
4532 echo "$ac_t""no" 1>&6
4536 echo "$ac_t""no" 1>&6
4539 CFLAGS
="${old_c_flags}"
4542 if test "${HAVE_GIF}" = "yes"; then
4543 cat >> confdefs.h
<<\EOF
4550 # If netdb.h doesn't declare h_errno, we must declare it by hand.
4551 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
4552 echo "configure:4553: checking whether netdb declares h_errno" >&5
4553 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
4554 echo $ac_n "(cached) $ac_c" 1>&6
4556 cat > conftest.
$ac_ext <<EOF
4557 #line 4558 "configure"
4558 #include "confdefs.h"
4564 if { (eval echo configure
:4565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4566 emacs_cv_netdb_declares_h_errno
=yes
4568 echo "configure: failed program was:" >&5
4569 cat conftest.
$ac_ext >&5
4571 emacs_cv_netdb_declares_h_errno
=no
4576 echo "$ac_t""$emacs_cv_netdb_declares_h_errno" 1>&6
4577 if test $emacs_cv_netdb_declares_h_errno = yes; then
4578 cat >> confdefs.h
<<\EOF
4579 #define HAVE_H_ERRNO 1
4584 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4585 # for constant arguments. Useless!
4586 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4587 echo "configure:4588: checking for working alloca.h" >&5
4588 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4589 echo $ac_n "(cached) $ac_c" 1>&6
4591 cat > conftest.
$ac_ext <<EOF
4592 #line 4593 "configure"
4593 #include "confdefs.h"
4596 char *p = alloca(2 * sizeof(int));
4599 if { (eval echo configure
:4600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4601 ac_cv_header_alloca_h
=yes
4603 echo "configure: failed program was:" >&5
4604 cat conftest.
$ac_ext >&5
4606 ac_cv_header_alloca_h
=no
4611 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4612 if test $ac_cv_header_alloca_h = yes; then
4613 cat >> confdefs.h
<<\EOF
4614 #define HAVE_ALLOCA_H 1
4619 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4620 echo "configure:4621: checking for alloca" >&5
4621 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4622 echo $ac_n "(cached) $ac_c" 1>&6
4624 cat > conftest.
$ac_ext <<EOF
4625 #line 4626 "configure"
4626 #include "confdefs.h"
4629 # define alloca __builtin_alloca
4632 # include <malloc.h>
4633 # define alloca _alloca
4636 # include <alloca.h>
4641 # ifndef alloca /* predefined by HP cc +Olibcalls */
4650 char *p = (char *) alloca(1);
4653 if { (eval echo configure
:4654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4655 ac_cv_func_alloca_works
=yes
4657 echo "configure: failed program was:" >&5
4658 cat conftest.
$ac_ext >&5
4660 ac_cv_func_alloca_works
=no
4665 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4666 if test $ac_cv_func_alloca_works = yes; then
4667 cat >> confdefs.h
<<\EOF
4668 #define HAVE_ALLOCA 1
4673 if test $ac_cv_func_alloca_works = no
; then
4674 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4675 # that cause trouble. Some versions do not even contain alloca or
4676 # contain a buggy version. If you still want to use their alloca,
4677 # use ar to extract alloca.o from them instead of compiling alloca.c.
4678 ALLOCA
=alloca.
${ac_objext}
4679 cat >> confdefs.h
<<\EOF
4684 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4685 echo "configure:4686: checking whether alloca needs Cray hooks" >&5
4686 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4687 echo $ac_n "(cached) $ac_c" 1>&6
4689 cat > conftest.
$ac_ext <<EOF
4690 #line 4691 "configure"
4691 #include "confdefs.h"
4692 #if defined(CRAY) && ! defined(CRAY2)
4699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4700 egrep "webecray" >/dev
/null
2>&1; then
4711 echo "$ac_t""$ac_cv_os_cray" 1>&6
4712 if test $ac_cv_os_cray = yes; then
4713 for ac_func
in _getb67 GETB67 getb67
; do
4714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4715 echo "configure:4716: checking for $ac_func" >&5
4716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4717 echo $ac_n "(cached) $ac_c" 1>&6
4719 cat > conftest.
$ac_ext <<EOF
4720 #line 4721 "configure"
4721 #include "confdefs.h"
4722 /* System header to define __stub macros and hopefully few prototypes,
4723 which can conflict with char $ac_func(); below. */
4725 /* Override any gcc2 internal prototype to avoid an error. */
4726 /* We use char because int might match the return type of a gcc2
4727 builtin and then its argument prototype would still apply. */
4732 /* The GNU C library defines this for functions which it implements
4733 to always fail with ENOSYS. Some functions are actually named
4734 something starting with __ and the normal name is an alias. */
4735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4743 if { (eval echo configure
:4744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4745 eval "ac_cv_func_$ac_func=yes"
4747 echo "configure: failed program was:" >&5
4748 cat conftest.
$ac_ext >&5
4750 eval "ac_cv_func_$ac_func=no"
4755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4756 echo "$ac_t""yes" 1>&6
4757 cat >> confdefs.h
<<EOF
4758 #define CRAY_STACKSEG_END $ac_func
4763 echo "$ac_t""no" 1>&6
4769 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4770 echo "configure:4771: checking stack direction for C alloca" >&5
4771 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4772 echo $ac_n "(cached) $ac_c" 1>&6
4774 if test "$cross_compiling" = yes; then
4775 ac_cv_c_stack_direction
=0
4777 cat > conftest.
$ac_ext <<EOF
4778 #line 4779 "configure"
4779 #include "confdefs.h"
4780 find_stack_direction ()
4782 static char *addr = 0;
4787 return find_stack_direction ();
4790 return (&dummy > addr) ? 1 : -1;
4794 exit (find_stack_direction() < 0);
4797 if { (eval echo configure
:4798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4799 ac_cv_c_stack_direction
=1
4801 echo "configure: failed program was:" >&5
4802 cat conftest.
$ac_ext >&5
4804 ac_cv_c_stack_direction
=-1
4811 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4812 cat >> confdefs.h
<<EOF
4813 #define STACK_DIRECTION $ac_cv_c_stack_direction
4819 # fmod, logb, and frexp are found in -lm on most systems.
4820 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
4821 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
4822 echo "configure:4823: checking for sqrt in -lm" >&5
4823 ac_lib_var
=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
4824 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4825 echo $ac_n "(cached) $ac_c" 1>&6
4827 ac_save_LIBS
="$LIBS"
4829 cat > conftest.
$ac_ext <<EOF
4830 #line 4831 "configure"
4831 #include "confdefs.h"
4832 /* Override any gcc2 internal prototype to avoid an error. */
4833 /* We use char because int might match the return type of a gcc2
4834 builtin and then its argument prototype would still apply. */
4841 if { (eval echo configure
:4842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4843 eval "ac_cv_lib_$ac_lib_var=yes"
4845 echo "configure: failed program was:" >&5
4846 cat conftest.
$ac_ext >&5
4848 eval "ac_cv_lib_$ac_lib_var=no"
4851 LIBS
="$ac_save_LIBS"
4854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4855 echo "$ac_t""yes" 1>&6
4856 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4857 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4858 cat >> confdefs.h
<<EOF
4859 #define $ac_tr_lib 1
4865 echo "$ac_t""no" 1>&6
4869 # Check for mail-locking functions in a "mail" library
4870 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
4871 echo "configure:4872: checking for maillock in -lmail" >&5
4872 ac_lib_var
=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
4873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4874 echo $ac_n "(cached) $ac_c" 1>&6
4876 ac_save_LIBS
="$LIBS"
4878 cat > conftest.
$ac_ext <<EOF
4879 #line 4880 "configure"
4880 #include "confdefs.h"
4881 /* Override any gcc2 internal prototype to avoid an error. */
4882 /* We use char because int might match the return type of a gcc2
4883 builtin and then its argument prototype would still apply. */
4890 if { (eval echo configure
:4891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4892 eval "ac_cv_lib_$ac_lib_var=yes"
4894 echo "configure: failed program was:" >&5
4895 cat conftest.
$ac_ext >&5
4897 eval "ac_cv_lib_$ac_lib_var=no"
4900 LIBS
="$ac_save_LIBS"
4903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4904 echo "$ac_t""yes" 1>&6
4905 ac_tr_lib
=HAVE_LIB
`echo mail | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4906 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4907 cat >> confdefs.h
<<EOF
4908 #define $ac_tr_lib 1
4914 echo "$ac_t""no" 1>&6
4917 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6
4918 echo "configure:4919: checking for maillock in -llockfile" >&5
4919 ac_lib_var
=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`
4920 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4921 echo $ac_n "(cached) $ac_c" 1>&6
4923 ac_save_LIBS
="$LIBS"
4924 LIBS
="-llockfile $LIBS"
4925 cat > conftest.
$ac_ext <<EOF
4926 #line 4927 "configure"
4927 #include "confdefs.h"
4928 /* Override any gcc2 internal prototype to avoid an error. */
4929 /* We use char because int might match the return type of a gcc2
4930 builtin and then its argument prototype would still apply. */
4937 if { (eval echo configure
:4938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4939 eval "ac_cv_lib_$ac_lib_var=yes"
4941 echo "configure: failed program was:" >&5
4942 cat conftest.
$ac_ext >&5
4944 eval "ac_cv_lib_$ac_lib_var=no"
4947 LIBS
="$ac_save_LIBS"
4950 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4951 echo "$ac_t""yes" 1>&6
4952 ac_tr_lib
=HAVE_LIB
`echo lockfile | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4953 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4954 cat >> confdefs.h
<<EOF
4955 #define $ac_tr_lib 1
4958 LIBS
="-llockfile $LIBS"
4961 echo "$ac_t""no" 1>&6
4964 # If we have the shared liblockfile, assume we must use it for mail
4965 # locking (e.g. Debian). If we couldn't link against liblockfile
4966 # (no liblockfile.a installed), ensure that we don't need to.
4967 if test "$ac_cv_lib_lockfile_maillock" = no
; then
4968 # Extract the first word of "liblockfile.so", so it can be a program name with args.
4969 set dummy liblockfile.so
; ac_word
=$2
4970 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4971 echo "configure:4972: checking for $ac_word" >&5
4972 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then
4973 echo $ac_n "(cached) $ac_c" 1>&6
4975 if test -n "$liblockfile"; then
4976 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
4978 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4979 ac_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
4980 for ac_dir
in $ac_dummy; do
4981 test -z "$ac_dir" && ac_dir
=.
4982 if test -f $ac_dir/$ac_word; then
4983 ac_cv_prog_liblockfile
="yes"
4988 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
4991 liblockfile
="$ac_cv_prog_liblockfile"
4992 if test -n "$liblockfile"; then
4993 echo "$ac_t""$liblockfile" 1>&6
4995 echo "$ac_t""no" 1>&6
4998 if test $ac_cv_prog_liblockfile = yes; then
4999 { echo "configure: error: Shared liblockfile found but can't link against it.
5000 This probably means that movemail could lose mail.
5001 There may be a \`development' package to install containing liblockfile." 1>&2; exit 1; }
5002 else cat >> confdefs.h
<<\EOF
5003 #define LIBMAIL -llockfile
5009 for ac_func
in touchlock
5011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5012 echo "configure:5013: checking for $ac_func" >&5
5013 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5014 echo $ac_n "(cached) $ac_c" 1>&6
5016 cat > conftest.
$ac_ext <<EOF
5017 #line 5018 "configure"
5018 #include "confdefs.h"
5019 /* System header to define __stub macros and hopefully few prototypes,
5020 which can conflict with char $ac_func(); below. */
5022 /* Override any gcc2 internal prototype to avoid an error. */
5023 /* We use char because int might match the return type of a gcc2
5024 builtin and then its argument prototype would still apply. */
5029 /* The GNU C library defines this for functions which it implements
5030 to always fail with ENOSYS. Some functions are actually named
5031 something starting with __ and the normal name is an alias. */
5032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5040 if { (eval echo configure
:5041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5042 eval "ac_cv_func_$ac_func=yes"
5044 echo "configure: failed program was:" >&5
5045 cat conftest.
$ac_ext >&5
5047 eval "ac_cv_func_$ac_func=no"
5052 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5053 echo "$ac_t""yes" 1>&6
5054 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5055 cat >> confdefs.h
<<EOF
5056 #define $ac_tr_func 1
5060 echo "$ac_t""no" 1>&6
5064 for ac_hdr
in maillock.h
5066 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5067 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5068 echo "configure:5069: checking for $ac_hdr" >&5
5069 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5070 echo $ac_n "(cached) $ac_c" 1>&6
5072 cat > conftest.
$ac_ext <<EOF
5073 #line 5074 "configure"
5074 #include "confdefs.h"
5077 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5078 { (eval echo configure
:5079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5079 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5080 if test -z "$ac_err"; then
5082 eval "ac_cv_header_$ac_safe=yes"
5085 echo "configure: failed program was:" >&5
5086 cat conftest.
$ac_ext >&5
5088 eval "ac_cv_header_$ac_safe=no"
5092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5093 echo "$ac_t""yes" 1>&6
5094 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5095 cat >> confdefs.h
<<EOF
5096 #define $ac_tr_hdr 1
5100 echo "$ac_t""no" 1>&6
5105 for ac_func
in gettimeofday gethostname getdomainname dup2 \
5106 rename closedir mkdir
rmdir sysinfo \
5107 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
5108 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
5109 utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo \
5110 __fpending ftello getloadavg mblen mbrlen strsignal
5112 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5113 echo "configure:5114: checking for $ac_func" >&5
5114 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5115 echo $ac_n "(cached) $ac_c" 1>&6
5117 cat > conftest.
$ac_ext <<EOF
5118 #line 5119 "configure"
5119 #include "confdefs.h"
5120 /* System header to define __stub macros and hopefully few prototypes,
5121 which can conflict with char $ac_func(); below. */
5123 /* Override any gcc2 internal prototype to avoid an error. */
5124 /* We use char because int might match the return type of a gcc2
5125 builtin and then its argument prototype would still apply. */
5130 /* The GNU C library defines this for functions which it implements
5131 to always fail with ENOSYS. Some functions are actually named
5132 something starting with __ and the normal name is an alias. */
5133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5141 if { (eval echo configure
:5142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5143 eval "ac_cv_func_$ac_func=yes"
5145 echo "configure: failed program was:" >&5
5146 cat conftest.
$ac_ext >&5
5148 eval "ac_cv_func_$ac_func=no"
5153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5154 echo "$ac_t""yes" 1>&6
5155 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5156 cat >> confdefs.h
<<EOF
5157 #define $ac_tr_func 1
5161 echo "$ac_t""no" 1>&6
5166 # Check this now, so that we will NOT find the above functions in ncurses.
5167 # That is because we have not set up to link ncurses in lib-src.
5168 # It's better to believe a function is not available
5169 # than to expect to find it in ncurses.
5170 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
5171 echo "configure:5172: checking for tparm in -lncurses" >&5
5172 ac_lib_var
=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
5173 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5174 echo $ac_n "(cached) $ac_c" 1>&6
5176 ac_save_LIBS
="$LIBS"
5177 LIBS
="-lncurses $LIBS"
5178 cat > conftest.
$ac_ext <<EOF
5179 #line 5180 "configure"
5180 #include "confdefs.h"
5181 /* Override any gcc2 internal prototype to avoid an error. */
5182 /* We use char because int might match the return type of a gcc2
5183 builtin and then its argument prototype would still apply. */
5190 if { (eval echo configure
:5191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5192 eval "ac_cv_lib_$ac_lib_var=yes"
5194 echo "configure: failed program was:" >&5
5195 cat conftest.
$ac_ext >&5
5197 eval "ac_cv_lib_$ac_lib_var=no"
5200 LIBS
="$ac_save_LIBS"
5203 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5204 echo "$ac_t""yes" 1>&6
5205 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5206 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5207 cat >> confdefs.h
<<EOF
5208 #define $ac_tr_lib 1
5211 LIBS
="-lncurses $LIBS"
5214 echo "$ac_t""no" 1>&6
5218 # Solaris requires -lintl if you want strerror (which calls dgettext)
5219 # to return localized messages.
5220 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
5221 echo "configure:5222: checking for dgettext in -lintl" >&5
5222 ac_lib_var
=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
5223 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5224 echo $ac_n "(cached) $ac_c" 1>&6
5226 ac_save_LIBS
="$LIBS"
5228 cat > conftest.
$ac_ext <<EOF
5229 #line 5230 "configure"
5230 #include "confdefs.h"
5231 /* Override any gcc2 internal prototype to avoid an error. */
5232 /* We use char because int might match the return type of a gcc2
5233 builtin and then its argument prototype would still apply. */
5240 if { (eval echo configure
:5241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5242 eval "ac_cv_lib_$ac_lib_var=yes"
5244 echo "configure: failed program was:" >&5
5245 cat conftest.
$ac_ext >&5
5247 eval "ac_cv_lib_$ac_lib_var=no"
5250 LIBS
="$ac_save_LIBS"
5253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5254 echo "$ac_t""yes" 1>&6
5255 ac_tr_lib
=HAVE_LIB
`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5256 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5257 cat >> confdefs.h
<<EOF
5258 #define $ac_tr_lib 1
5264 echo "$ac_t""no" 1>&6
5268 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
5269 echo "configure:5270: checking whether localtime caches TZ" >&5
5270 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
5271 echo $ac_n "(cached) $ac_c" 1>&6
5273 if test x
$ac_cv_func_tzset = xyes
; then
5274 if test "$cross_compiling" = yes; then
5275 # If we have tzset, assume the worst when cross-compiling.
5276 emacs_cv_localtime_cache
=yes
5278 cat > conftest.
$ac_ext <<EOF
5279 #line 5280 "configure"
5280 #include "confdefs.h"
5282 extern char **environ;
5286 for (to = from = environ; (*to = *from); from++)
5287 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
5290 char TZ_GMT0[] = "TZ=GMT0";
5291 char TZ_PST8[] = "TZ=PST8";
5294 time_t now = time ((time_t *) 0);
5295 int hour_GMT0, hour_unset;
5296 if (putenv (TZ_GMT0) != 0)
5298 hour_GMT0 = localtime (&now)->tm_hour;
5300 hour_unset = localtime (&now)->tm_hour;
5301 if (putenv (TZ_PST8) != 0)
5303 if (localtime (&now)->tm_hour == hour_GMT0)
5306 if (localtime (&now)->tm_hour != hour_unset)
5311 if { (eval echo configure
:5312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5313 emacs_cv_localtime_cache
=no
5315 echo "configure: failed program was:" >&5
5316 cat conftest.
$ac_ext >&5
5318 emacs_cv_localtime_cache
=yes
5324 # If we lack tzset, report that localtime does not cache TZ,
5325 # since we can't invalidate the cache if we don't have tzset.
5326 emacs_cv_localtime_cache
=no
5329 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
5330 if test $emacs_cv_localtime_cache = yes; then
5331 cat >> confdefs.h
<<\EOF
5332 #define LOCALTIME_CACHE 1
5337 if test "x$HAVE_TIMEVAL" = xyes
; then
5338 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
5339 echo "configure:5340: checking whether gettimeofday can accept two arguments" >&5
5340 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
5341 echo $ac_n "(cached) $ac_c" 1>&6
5343 cat > conftest.
$ac_ext <<EOF
5344 #line 5345 "configure"
5345 #include "confdefs.h"
5347 #ifdef TIME_WITH_SYS_TIME
5348 #include <sys/time.h>
5351 #ifdef HAVE_SYS_TIME_H
5352 #include <sys/time.h>
5360 struct timeval time;
5361 struct timezone dummy;
5362 gettimeofday (&time, &dummy);
5366 if { (eval echo configure
:5367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5368 emacs_cv_gettimeofday_two_arguments
=yes
5370 echo "configure: failed program was:" >&5
5371 cat conftest.
$ac_ext >&5
5373 emacs_cv_gettimeofday_two_arguments
=no
5378 echo "$ac_t""$emacs_cv_gettimeofday_two_arguments" 1>&6
5379 if test $emacs_cv_gettimeofday_two_arguments = no
; then
5380 cat >> confdefs.h
<<\EOF
5381 #define GETTIMEOFDAY_ONE_ARGUMENT 1
5388 echo $ac_n "checking for socket""... $ac_c" 1>&6
5389 echo "configure:5390: checking for socket" >&5
5390 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
5391 echo $ac_n "(cached) $ac_c" 1>&6
5393 cat > conftest.
$ac_ext <<EOF
5394 #line 5395 "configure"
5395 #include "confdefs.h"
5396 /* System header to define __stub macros and hopefully few prototypes,
5397 which can conflict with char socket(); below. */
5399 /* Override any gcc2 internal prototype to avoid an error. */
5400 /* We use char because int might match the return type of a gcc2
5401 builtin and then its argument prototype would still apply. */
5406 /* The GNU C library defines this for functions which it implements
5407 to always fail with ENOSYS. Some functions are actually named
5408 something starting with __ and the normal name is an alias. */
5409 #if defined (__stub_socket) || defined (__stub___socket)
5417 if { (eval echo configure
:5418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5419 eval "ac_cv_func_socket=yes"
5421 echo "configure: failed program was:" >&5
5422 cat conftest.
$ac_ext >&5
5424 eval "ac_cv_func_socket=no"
5429 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
5430 echo "$ac_t""yes" 1>&6
5433 echo "$ac_t""no" 1>&6
5437 if test $ok_so_far = yes; then
5438 ac_safe
=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
5439 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
5440 echo "configure:5441: checking for netinet/in.h" >&5
5441 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5442 echo $ac_n "(cached) $ac_c" 1>&6
5444 cat > conftest.
$ac_ext <<EOF
5445 #line 5446 "configure"
5446 #include "confdefs.h"
5447 #include <netinet/in.h>
5449 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5450 { (eval echo configure
:5451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5451 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5452 if test -z "$ac_err"; then
5454 eval "ac_cv_header_$ac_safe=yes"
5457 echo "configure: failed program was:" >&5
5458 cat conftest.
$ac_ext >&5
5460 eval "ac_cv_header_$ac_safe=no"
5464 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5465 echo "$ac_t""yes" 1>&6
5468 echo "$ac_t""no" 1>&6
5473 if test $ok_so_far = yes; then
5474 ac_safe
=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
5475 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
5476 echo "configure:5477: checking for arpa/inet.h" >&5
5477 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5478 echo $ac_n "(cached) $ac_c" 1>&6
5480 cat > conftest.
$ac_ext <<EOF
5481 #line 5482 "configure"
5482 #include "confdefs.h"
5483 #include <arpa/inet.h>
5485 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5486 { (eval echo configure
:5487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5487 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5488 if test -z "$ac_err"; then
5490 eval "ac_cv_header_$ac_safe=yes"
5493 echo "configure: failed program was:" >&5
5494 cat conftest.
$ac_ext >&5
5496 eval "ac_cv_header_$ac_safe=no"
5500 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5501 echo "$ac_t""yes" 1>&6
5504 echo "$ac_t""no" 1>&6
5509 if test $ok_so_far = yes; then
5510 cat >> confdefs.h
<<\EOF
5511 #define HAVE_INET_SOCKETS 1
5516 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
5517 cat >> confdefs.h
<<\EOF
5518 #define HAVE_AIX_SMT_EXP 1
5523 # Set up the CFLAGS for real compilation, so we can substitute it.
5524 CFLAGS
="$REAL_CFLAGS"
5526 #### Find out which version of Emacs this is.
5527 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
5528 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
5529 if test x
"${version}" = x
; then
5530 { echo "configure: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." 1>&2; exit 1; }
5533 ### Specify what sort of things we'll be editing into Makefile and config.h.
5534 ### Use configuration here uncanonicalized to avoid exceeding size limits.
5566 cat >> confdefs.h
<<EOF
5567 #define EMACS_CONFIGURATION "${canonical}"
5570 cat >> confdefs.h
<<EOF
5571 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
5574 cat >> confdefs.h
<<EOF
5575 #define config_machfile "${machfile}"
5578 cat >> confdefs.h
<<EOF
5579 #define config_opsysfile "${opsysfile}"
5582 cat >> confdefs.h
<<EOF
5583 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
5586 cat >> confdefs.h
<<EOF
5587 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
5590 cat >> confdefs.h
<<EOF
5591 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
5594 cat >> confdefs.h
<<EOF
5595 #define UNEXEC_SRC ${UNEXEC_SRC}
5599 if test "${HAVE_X_WINDOWS}" = "yes" ; then
5600 cat >> confdefs.h
<<\EOF
5601 #define HAVE_X_WINDOWS 1
5605 if test "${USE_X_TOOLKIT}" != "none" ; then
5606 cat >> confdefs.h
<<\EOF
5607 #define USE_X_TOOLKIT 1
5611 if test "${HAVE_X11}" = "yes" ; then
5612 cat >> confdefs.h
<<\EOF
5617 if test "${HAVE_XFREE386}" = "yes" ; then
5618 cat >> confdefs.h
<<\EOF
5619 #define HAVE_XFREE386 1
5623 if test "${HAVE_MENUS}" = "yes" ; then
5624 cat >> confdefs.h
<<\EOF
5625 #define HAVE_MENUS 1
5629 if test "${GNU_MALLOC}" = "yes" ; then
5630 cat >> confdefs.h
<<\EOF
5631 #define GNU_MALLOC 1
5635 if test "${REL_ALLOC}" = "yes" ; then
5636 cat >> confdefs.h
<<\EOF
5641 if test "${LISP_FLOAT_TYPE}" = "yes" ; then
5642 cat >> confdefs.h
<<\EOF
5643 #define LISP_FLOAT_TYPE 1
5648 #### Report on what we decided to do.
5650 Configured for \`${canonical}'.
5652 Where should the build process find the source code? ${srcdir}
5653 What operating system and machine description files should Emacs use?
5654 \`${opsysfile}' and \`${machfile}'
5655 What compiler should emacs be built with? ${CC} ${CFLAGS}
5656 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
5657 Should Emacs use the relocating allocator for buffers? ${REL_ALLOC}
5658 What window system should Emacs use? ${window_system}
5659 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
5661 if test -n "${x_includes}"; then
5662 echo " Where do we find X Windows header files? ${x_includes}"
5664 echo " Where do we find X Windows header files? Standard dirs"
5666 if test -n "${x_libraries}"; then
5667 echo " Where do we find X Windows libraries? ${x_libraries}"
5669 echo " Where do we find X Windows libraries? Standard dirs"
5672 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
5673 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
5674 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
5675 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
5676 echo " Does Emacs use -lungif? ${HAVE_GIF}"
5677 echo " Does Emacs use -lpng? ${HAVE_PNG}"
5678 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
5681 # Remove any trailing slashes in these variables.
5682 test "${prefix}" != NONE
&&
5683 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
5684 test "${exec_prefix}" != NONE
&&
5685 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
5688 cat > confcache
<<\EOF
5689 # This file is a shell script that caches the results of configure
5690 # tests run on this system so they can be shared between configure
5691 # scripts and configure runs. It is not useful on other systems.
5692 # If it contains results you don't want to keep, you may remove or edit it.
5694 # By default, configure uses ./config.cache as the cache file,
5695 # creating it if it does not exist already. You can give configure
5696 # the --cache-file=FILE option to use a different cache file; that is
5697 # what configure does when it calls configure scripts in
5698 # subdirectories, so they share the cache.
5699 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5700 # config.status only pays attention to the cache file if you give it the
5701 # --recheck option to rerun configure.
5704 # The following way of writing the cache mishandles newlines in values,
5705 # but we know of no workaround that is simple, portable, and efficient.
5706 # So, don't put newlines in cache variables' values.
5707 # Ultrix sh set writes to stderr and can't be redirected directly,
5708 # and sets the high bit in the cache file unless we assign to the vars.
5710 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5712 # `set' does not quote correctly, so add quotes (double-quote substitution
5713 # turns \\\\ into \\, and sed turns \\ into \).
5715 -e "s/'/'\\\\''/g" \
5716 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5719 # `set' quotes correctly as required by POSIX, so do not add quotes.
5720 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5723 if cmp -s $cache_file confcache
; then
5726 if test -w $cache_file; then
5727 echo "updating cache $cache_file"
5728 cat confcache
> $cache_file
5730 echo "not updating unwritable cache $cache_file"
5735 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5737 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5738 # Let make expand exec_prefix.
5739 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5741 # Any assignment to VPATH causes Sun make to only execute
5742 # the first set of double-colon rules, so remove it if not needed.
5743 # If there is a colon in the path, we need to keep it.
5744 if test "x$srcdir" = x.
; then
5745 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5748 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5750 DEFS
=-DHAVE_CONFIG_H
5752 # Without the "./", some shells look in PATH for config.status.
5753 : ${CONFIG_STATUS=./config.status}
5755 echo creating
$CONFIG_STATUS
5756 rm -f $CONFIG_STATUS
5757 cat > $CONFIG_STATUS <<EOF
5759 # Generated automatically by configure.
5760 # Run this file to recreate the current configuration.
5761 # This directory was configured as follows,
5762 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5764 # $0 $ac_configure_args
5766 # Compiler output produced by configure, useful for debugging
5767 # configure, is in ./config.log if it exists.
5769 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5772 case "\$ac_option" in
5773 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5774 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5775 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5776 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5777 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5779 -help | --help | --hel | --he | --h)
5780 echo "\$ac_cs_usage"; exit 0 ;;
5781 *) echo "\$ac_cs_usage"; exit 1 ;;
5785 ac_given_srcdir=$srcdir
5786 ac_given_INSTALL="$INSTALL"
5788 trap 'rm -fr `echo "Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \
5789 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \
5790 leim/Makefile src/config.h:src/config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5792 cat >> $CONFIG_STATUS <<EOF
5794 # Protect against being on the right side of a sed subst in config.status.
5795 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5796 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5800 s%@CFLAGS@%$CFLAGS%g
5801 s%@CPPFLAGS@%$CPPFLAGS%g
5802 s%@CXXFLAGS@%$CXXFLAGS%g
5803 s%@FFLAGS@%$FFLAGS%g
5805 s%@LDFLAGS@%$LDFLAGS%g
5807 s%@exec_prefix@%$exec_prefix%g
5808 s%@prefix@%$prefix%g
5809 s%@program_transform_name@%$program_transform_name%g
5810 s%@bindir@%$bindir%g
5811 s%@sbindir@%$sbindir%g
5812 s%@libexecdir@%$libexecdir%g
5813 s%@datadir@%$datadir%g
5814 s%@sysconfdir@%$sysconfdir%g
5815 s%@sharedstatedir@%$sharedstatedir%g
5816 s%@localstatedir@%$localstatedir%g
5817 s%@libdir@%$libdir%g
5818 s%@includedir@%$includedir%g
5819 s%@oldincludedir@%$oldincludedir%g
5820 s%@infodir@%$infodir%g
5821 s%@mandir@%$mandir%g
5823 s%@host_alias@%$host_alias%g
5824 s%@host_cpu@%$host_cpu%g
5825 s%@host_vendor@%$host_vendor%g
5826 s%@host_os@%$host_os%g
5830 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5831 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5832 s%@INSTALL_DATA@%$INSTALL_DATA%g
5834 s%@SET_MAKE@%$SET_MAKE%g
5835 s%@ALLOCA@%$ALLOCA%g
5836 s%@liblockfile@%$liblockfile%g
5837 s%@version@%$version%g
5838 s%@configuration@%$configuration%g
5839 s%@canonical@%$canonical%g
5840 s%@srcdir@%$srcdir%g
5841 s%@lispdir@%$lispdir%g
5842 s%@locallisppath@%$locallisppath%g
5843 s%@lisppath@%$lisppath%g
5844 s%@x_default_search_path@%$x_default_search_path%g
5845 s%@etcdir@%$etcdir%g
5846 s%@archlibdir@%$archlibdir%g
5847 s%@docdir@%$docdir%g
5848 s%@bitmapdir@%$bitmapdir%g
5849 s%@c_switch_system@%$c_switch_system%g
5850 s%@c_switch_machine@%$c_switch_machine%g
5851 s%@LD_SWITCH_X_SITE@%$LD_SWITCH_X_SITE%g
5852 s%@LD_SWITCH_X_SITE_AUX@%$LD_SWITCH_X_SITE_AUX%g
5853 s%@C_SWITCH_X_SITE@%$C_SWITCH_X_SITE%g
5854 s%@X_TOOLKIT_TYPE@%$X_TOOLKIT_TYPE%g
5855 s%@machfile@%$machfile%g
5856 s%@opsysfile@%$opsysfile%g
5857 s%@RANLIB@%$RANLIB%g
5862 cat >> $CONFIG_STATUS <<\EOF
5864 # Split the substitutions into bite-sized pieces for seds with
5865 # small command number limits, like on Digital OSF/1 and HP-UX.
5866 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5867 ac_file
=1 # Number of current file.
5868 ac_beg
=1 # First line for current file.
5869 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5872 while $ac_more_lines; do
5873 if test $ac_beg -gt 1; then
5874 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5876 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5878 if test ! -s conftest.s
$ac_file; then
5880 rm -f conftest.s
$ac_file
5882 if test -z "$ac_sed_cmds"; then
5883 ac_sed_cmds
="sed -f conftest.s$ac_file"
5885 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5887 ac_file
=`expr $ac_file + 1`
5889 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5892 if test -z "$ac_sed_cmds"; then
5897 cat >> $CONFIG_STATUS <<EOF
5899 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \
5900 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \
5903 cat >> $CONFIG_STATUS <<\EOF
5904 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5905 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5907 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5908 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5909 *) ac_file_in
="${ac_file}.in" ;;
5912 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5914 # Remove last slash and all that follows it. Not all systems have dirname.
5915 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5916 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5917 # The file is in a subdirectory.
5918 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5919 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5920 # A "../" for each directory in $ac_dir_suffix.
5921 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5923 ac_dir_suffix
= ac_dots
=
5926 case "$ac_given_srcdir" in
5928 if test -z "$ac_dots"; then top_srcdir
=.
5929 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5930 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5932 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5933 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5936 case "$ac_given_INSTALL" in
5937 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5938 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5941 echo creating
"$ac_file"
5943 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5945 *Makefile
*) ac_comsub
="1i\\
5946 # $configure_input" ;;
5950 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5952 s%@configure_input@%$configure_input%g
5953 s%@srcdir@%$srcdir%g
5954 s%@top_srcdir@%$top_srcdir%g
5955 s%@INSTALL@%$INSTALL%g
5956 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5960 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5961 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5963 # ac_d sets the value in "#define NAME VALUE" lines.
5964 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5965 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5968 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5969 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5970 ac_uB
='\([ ]\)%\1#\2define\3'
5973 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5974 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5975 ac_eB
='$%\1#\2define\3'
5979 if test "${CONFIG_HEADERS+set}" != set; then
5981 cat >> $CONFIG_STATUS <<EOF
5982 CONFIG_HEADERS="src/config.h:src/config.in"
5984 cat >> $CONFIG_STATUS <<\EOF
5986 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5987 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5989 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5990 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5991 *) ac_file_in
="${ac_file}.in" ;;
5994 echo creating
$ac_file
5996 rm -f conftest.frag conftest.
in conftest.out
5997 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5998 cat $ac_file_inputs > conftest.
in
6002 # Transform confdefs.h into a sed script conftest.vals that substitutes
6003 # the proper values into config.h.in to produce config.h. And first:
6004 # Protect against being on the right side of a sed subst in config.status.
6005 # Protect against being in an unquoted here document in config.status.
6007 cat > conftest.hdr
<<\EOF
6010 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6014 sed -n -f conftest.hdr confdefs.h > conftest.vals
6017 # This sed command replaces #undef with comments. This is necessary, for
6018 # example, in the case of _POSIX_SOURCE, which is predefined and required
6019 # on some systems where configure will not decide to define it.
6020 cat >> conftest.vals <<\EOF
6021 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6024 # Break up conftest.vals because some shells have a limit on
6025 # the size of here documents, and old seds have small limits too.
6030 ac_lines=`grep -c . conftest.vals
`
6031 # grep -c gives empty output for an empty file on some AIX systems.
6032 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6033 # Write a limited-size here document to conftest.frag.
6034 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6035 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6037 sed -f conftest.frag conftest.in > conftest.out
6039 mv conftest.out conftest.in
6041 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6043 mv conftest.tail conftest.vals
6047 cat >> $CONFIG_STATUS <<\EOF
6048 rm -f conftest.frag conftest.h
6049 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6050 cat conftest.in >> conftest.h
6052 if cmp -s $ac_file conftest.h 2>/dev/null; then
6053 echo "$ac_file is unchanged"
6056 # Remove last slash and all that follows it. Not all systems have dirname.
6057 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6058 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6059 # The file is in a subdirectory.
6060 test ! -d "$ac_dir" && mkdir "$ac_dir"
6063 mv conftest.h $ac_file
6068 cat >> $CONFIG_STATUS <<EOF
6069 CPP="$CPP" CPPFLAGS="$CPPFLAGS"
6071 cat >> $CONFIG_STATUS <<\EOF
6074 ### Make the necessary directories, if they don't exist.
6075 for dir in etc lisp ; do
6076 test -d ${dir} || mkdir ${dir}
6079 # Build src/Makefile from ${srcdir}/src/Makefile.c
6080 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
6081 # This must be done after src/config.h is built, since we rely on that file.
6083 # Now get this: Some word that is part of the ${srcdir} directory name
6084 # or the ${configuration} value might, just might, happen to be an
6085 # identifier like `sun4
' or `i386' or something
, and be predefined by
6086 # the C preprocessor to some helpful value like 1, or maybe the empty
6087 # string. Needless to say consequent macro substitutions are less
6088 # than conducive to the makefile finding the correct directory.
6089 undefs
="`echo $top_srcdir $configuration $canonical |
6090 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
6091 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
6094 echo creating src
/epaths.h
6097 echo creating lib-src
/Makefile
6099 rm -f junk.c junk1.c junk2.c
6100 sed -e '/start of cpp stuff/q' \
6101 < Makefile.c
> junk1.c
6102 sed -e '1,/start of cpp stuff/d'\
6103 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \
6104 < Makefile.c
> junk.c
6105 $CPP $undefs -I.
-I$top_srcdir/src
$CPPFLAGS junk.c | \
6106 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
6107 cat junk1.c junk2.c
> Makefile.new
6108 rm -f junk.c junk1.c junk2.c
6109 chmod 444 Makefile.new
6110 mv -f Makefile.new Makefile
6113 echo creating src
/Makefile
6115 rm -f junk.c junk1.c junk2.c
6116 sed -e '/start of cpp stuff/q' \
6117 < Makefile.c
> junk1.c
6118 sed -e '1,/start of cpp stuff/d'\
6119 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \
6120 < Makefile.c
> junk.c
6121 $CPP $undefs -I.
-I$top_srcdir/src
$CPPFLAGS junk.c | \
6122 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
6123 cat junk1.c junk2.c
> Makefile.new
6124 rm -f junk.c junk1.c junk2.c
6125 chmod 444 Makefile.new
6126 mv -f Makefile.new Makefile
6129 if test ! -f src
/.gdbinit
&& test -f $top_srcdir/src
/.gdbinit
; then
6130 echo creating src
/.gdbinit
6131 echo source $top_srcdir/src
/.gdbinit
> src
/.gdbinit
6134 # This is how we know whether to re-run configure in certain cases.
6135 touch src
/config.stamp
6140 chmod +x
$CONFIG_STATUS
6141 rm -fr confdefs
* $ac_clean_files
6142 test "$no_create" = yes ||
${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS ||
exit 1