3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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-kerberos support Kerberos-authenticated POP"
21 --with-kerberos5 support Kerberos version 5 authenticated POP"
23 --with-hesiod support Hesiod to get the POP server host"
25 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)"
27 --with-xpm use -lXpm for displaying XPM images"
29 --with-jpeg use -ljpeg for displaying JPEG images"
31 --with-tiff use -ltiff for displaying TIFF images"
33 --with-gif use -lungif for displaying GIF images"
35 --with-png use -lpng for displaying PNG images"
37 --without-toolkit-scroll-bars don't use Motif or Xaw3d scroll bars"
39 --with-x use the X Window System"
41 # Initialize some variables set by options.
42 # The variables have the same names as the options, with
43 # dashes changed to underlines.
45 cache_file
=.
/config.cache
54 program_transform_name
=s
,x
,x
,
62 bindir
='${exec_prefix}/bin'
63 sbindir
='${exec_prefix}/sbin'
64 libexecdir
='${exec_prefix}/libexec'
65 datadir
='${prefix}/share'
66 sysconfdir
='${prefix}/etc'
67 sharedstatedir
='${prefix}/com'
68 localstatedir
='${prefix}/var'
69 libdir
='${exec_prefix}/lib'
70 includedir
='${prefix}/include'
71 oldincludedir
='/usr/include'
72 infodir
='${prefix}/info'
73 mandir
='${prefix}/man'
75 # Initialize some other variables.
78 # Maximum number of lines to put in a shell here document.
85 # If the previous option needs an argument, assign it.
86 if test -n "$ac_prev"; then
87 eval "$ac_prev=\$ac_option"
93 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
97 # Accept the important Cygnus configure options, so we can diagnose typos.
101 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
103 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
104 bindir
="$ac_optarg" ;;
106 -build |
--build |
--buil |
--bui |
--bu)
108 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
109 build
="$ac_optarg" ;;
111 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
112 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
113 ac_prev
=cache_file
;;
114 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
115 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
116 cache_file
="$ac_optarg" ;;
118 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
120 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
122 datadir
="$ac_optarg" ;;
124 -disable-* |
--disable-*)
125 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}=no" ;;
133 -enable-* |
--enable-*)
134 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
135 # Reject names that are not valid shell variable names.
136 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
139 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
144 eval "enable_${ac_feature}='$ac_optarg'" ;;
146 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
147 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
148 |
--exec |
--exe |
--ex)
149 ac_prev
=exec_prefix
;;
150 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
151 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
152 |
--exec=* |
--exe=* |
--ex=*)
153 exec_prefix
="$ac_optarg" ;;
155 -gas |
--gas |
--ga |
--g)
156 # Obsolete; use --with-gas.
159 -help |
--help |
--hel |
--he)
160 # Omit some internal or obsolete options to make the list less imposing.
161 # This message is too long to be a string in the A/UX 3.1 sh.
163 Usage: configure [options] [host]
164 Options: [defaults in brackets after descriptions]
166 --cache-file=FILE cache test results in FILE
167 --help print this message
168 --no-create do not create output files
169 --quiet, --silent do not print \`checking...' messages
170 --version print the version of autoconf that created configure
171 Directory and file names:
172 --prefix=PREFIX install architecture-independent files in PREFIX
174 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
176 --bindir=DIR user executables in DIR [EPREFIX/bin]
177 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
178 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
179 --datadir=DIR read-only architecture-independent data in DIR
181 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
182 --sharedstatedir=DIR modifiable architecture-independent data in DIR
184 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
185 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
186 --includedir=DIR C header files in DIR [PREFIX/include]
187 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
188 --infodir=DIR info documentation in DIR [PREFIX/info]
189 --mandir=DIR man documentation in DIR [PREFIX/man]
190 --srcdir=DIR find the sources in DIR [configure dir or ..]
191 --program-prefix=PREFIX prepend PREFIX to installed program names
192 --program-suffix=SUFFIX append SUFFIX to installed program names
193 --program-transform-name=PROGRAM
194 run sed PROGRAM on installed program names
198 --build=BUILD configure for building on BUILD [BUILD=HOST]
199 --host=HOST configure for HOST [guessed]
200 --target=TARGET configure for TARGET [TARGET=HOST]
201 Features and packages:
202 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
203 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
204 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
205 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
206 --x-includes=DIR X include files are in DIR
207 --x-libraries=DIR X library files are in DIR
209 if test -n "$ac_help"; then
210 echo "--enable and --with options recognized:$ac_help"
214 -host |
--host |
--hos |
--ho)
216 -host=* |
--host=* |
--hos=* |
--ho=*)
219 -includedir |
--includedir |
--includedi |
--included |
--include \
220 |
--includ |
--inclu |
--incl |
--inc)
221 ac_prev
=includedir
;;
222 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
223 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
224 includedir
="$ac_optarg" ;;
226 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
228 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
229 infodir
="$ac_optarg" ;;
231 -libdir |
--libdir |
--libdi |
--libd)
233 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
234 libdir
="$ac_optarg" ;;
236 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
237 |
--libexe |
--libex |
--libe)
238 ac_prev
=libexecdir
;;
239 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
240 |
--libexe=* |
--libex=* |
--libe=*)
241 libexecdir
="$ac_optarg" ;;
243 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
244 |
--localstate |
--localstat |
--localsta |
--localst \
245 |
--locals |
--local |
--loca |
--loc |
--lo)
246 ac_prev
=localstatedir
;;
247 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
248 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
249 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
250 localstatedir
="$ac_optarg" ;;
252 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
254 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
255 mandir
="$ac_optarg" ;;
258 # Obsolete; use --without-fp.
261 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
265 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
266 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
269 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
270 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
271 |
--oldin |
--oldi |
--old |
--ol |
--o)
272 ac_prev
=oldincludedir
;;
273 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
274 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
275 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
276 oldincludedir
="$ac_optarg" ;;
278 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
280 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
281 prefix
="$ac_optarg" ;;
283 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
284 |
--program-pre |
--program-pr |
--program-p)
285 ac_prev
=program_prefix
;;
286 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
287 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
288 program_prefix
="$ac_optarg" ;;
290 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
291 |
--program-suf |
--program-su |
--program-s)
292 ac_prev
=program_suffix
;;
293 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
294 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
295 program_suffix
="$ac_optarg" ;;
297 -program-transform-name |
--program-transform-name \
298 |
--program-transform-nam |
--program-transform-na \
299 |
--program-transform-n |
--program-transform- \
300 |
--program-transform |
--program-transfor \
301 |
--program-transfo |
--program-transf \
302 |
--program-trans |
--program-tran \
303 |
--progr-tra |
--program-tr |
--program-t)
304 ac_prev
=program_transform_name
;;
305 -program-transform-name=* |
--program-transform-name=* \
306 |
--program-transform-nam=* |
--program-transform-na=* \
307 |
--program-transform-n=* |
--program-transform-=* \
308 |
--program-transform=* |
--program-transfor=* \
309 |
--program-transfo=* |
--program-transf=* \
310 |
--program-trans=* |
--program-tran=* \
311 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
312 program_transform_name
="$ac_optarg" ;;
314 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
315 |
-silent |
--silent |
--silen |
--sile |
--sil)
318 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
320 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
322 sbindir
="$ac_optarg" ;;
324 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
325 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
326 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
328 ac_prev
=sharedstatedir
;;
329 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
330 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
331 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
333 sharedstatedir
="$ac_optarg" ;;
335 -site |
--site |
--sit)
337 -site=* |
--site=* |
--sit=*)
340 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
342 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
343 srcdir
="$ac_optarg" ;;
345 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
346 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
347 ac_prev
=sysconfdir
;;
348 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
349 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
350 sysconfdir
="$ac_optarg" ;;
352 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
354 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
355 target
="$ac_optarg" ;;
357 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
360 -version |
--version |
--versio |
--versi |
--vers)
361 echo "configure generated by autoconf version 2.12"
365 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 ac_package
=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}='$ac_optarg'" ;;
377 -without-* |
--without-*)
378 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 ac_package
=`echo $ac_package| sed 's/-/_/g'`
384 eval "with_${ac_package}=no" ;;
387 # Obsolete; use --with-x.
390 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
391 |
--x-incl |
--x-inc |
--x-in |
--x-i)
392 ac_prev
=x_includes
;;
393 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
394 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
395 x_includes
="$ac_optarg" ;;
397 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
398 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
399 ac_prev
=x_libraries
;;
400 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
401 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
402 x_libraries
="$ac_optarg" ;;
404 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
408 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
409 echo "configure: warning: $ac_option: invalid host type" 1>&2
411 if test "x$nonopt" != xNONE
; then
412 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
420 if test -n "$ac_prev"; then
421 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
424 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
426 # File descriptor usage:
429 # 2 errors and warnings
430 # 3 some systems may open it to /dev/tty
431 # 4 used on the Kubota Titan
432 # 6 checking for... messages and results
433 # 5 compiler messages saved in config.log
434 if test "$silent" = yes; then
442 This file contains any messages produced by compilers while
443 running configure, to aid debugging if configure makes a mistake.
446 # Strip out --no-create and --no-recursion so they do not pile up.
447 # Also quote any args containing shell metacharacters.
452 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
453 |
--no-cr |
--no-c) ;;
454 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
455 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
456 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
457 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
458 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
463 # Only set these to C if already set. These must not be set unconditionally
464 # because not all systems understand e.g. LANG=C (notably SCO).
465 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
466 # Non-C LC_CTYPE values break the ctype check.
467 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
468 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
469 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
470 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
472 # confdefs.h avoids OS command line length limits that DEFS can exceed.
473 rm -rf conftest
* confdefs.h
474 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
477 # A filename unique to this package, relative to the directory that
478 # configure is in, which we can look for to find out if srcdir is correct.
479 ac_unique_file
=src
/lisp.h
481 # Find the source files, if location was not specified.
482 if test -z "$srcdir"; then
483 ac_srcdir_defaulted
=yes
484 # Try the directory containing this script, then its parent.
486 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
487 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
489 if test ! -r $srcdir/$ac_unique_file; then
493 ac_srcdir_defaulted
=no
495 if test ! -r $srcdir/$ac_unique_file; then
496 if test "$ac_srcdir_defaulted" = yes; then
497 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
499 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
502 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
504 # Prefer explicitly selected file to automatically selected ones.
505 if test -z "$CONFIG_SITE"; then
506 if test "x$prefix" != xNONE
; then
507 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
509 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
512 for ac_site_file
in $CONFIG_SITE; do
513 if test -r "$ac_site_file"; then
514 echo "loading site script $ac_site_file"
519 if test -r "$cache_file"; then
520 echo "loading cache $cache_file"
523 echo "creating cache $cache_file"
528 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
529 ac_cpp
='$CPP $CPPFLAGS'
530 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
531 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
532 cross_compiling
=$ac_cv_prog_cc_cross
534 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
535 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
536 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
543 ac_n
= ac_c
='\c' ac_t
=
549 lispdir
='${datadir}/emacs/${version}/lisp'
550 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
551 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
552 lisppath
='${locallisppath}:${lispdir}'
553 etcdir
='${datadir}/emacs/${version}/etc'
554 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
555 docdir
='${datadir}/emacs/${version}/etc'
557 # Check whether --with-gcc or --without-gcc was given.
558 if test "${with_gcc+set}" = set; then
563 # Check whether --with-pop or --without-pop was given.
564 if test "${with_pop+set}" = set; then
566 if test "$withval" = yes; then
567 cat >> confdefs.h
<<\EOF
568 #define MAIL_USE_POP 1
574 cat >> confdefs.h
<<\EOF
575 #define MAIL_USE_POP 1
580 # Check whether --with-kerberos or --without-kerberos was given.
581 if test "${with_kerberos+set}" = set; then
582 withval
="$with_kerberos"
583 cat >> confdefs.h
<<\EOF
589 # Check whether --with-kerberos5 or --without-kerberos5 was given.
590 if test "${with_kerberos5+set}" = set; then
591 withval
="$with_kerberos5"
592 if test "${with_kerberos5+set}" = set; then
593 if test "${with_kerberos+set}" != set; then
595 cat >> confdefs.h
<<\EOF
601 cat >> confdefs.h
<<\EOF
607 # Check whether --with-hesiod or --without-hesiod was given.
608 if test "${with_hesiod+set}" = set; then
609 withval
="$with_hesiod"
610 cat >> confdefs.h
<<\EOF
616 # Check whether --with-x-toolkit or --without-x-toolkit was given.
617 if test "${with_x_toolkit+set}" = set; then
618 withval
="$with_x_toolkit"
620 y | ye |
yes ) val
=athena
;;
622 l | lu | luc | luci | lucid
) val
=lucid
;;
623 a |
at | ath | athe | athen | athena
) val
=athena
;;
624 m | mo | mot | moti | motif
) val
=motif
;;
626 { echo "configure: error: \`--with-x-toolkit=$withval' is invalid\;
627 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
628 Currently, \`yes', \`athena' and \`lucid' are synonyms." 1>&2; exit 1; }
635 # Check whether --with-xpm or --without-xpm was given.
636 if test "${with_xpm+set}" = set; then
641 # Check whether --with-jpeg or --without-jpeg was given.
642 if test "${with_jpeg+set}" = set; then
647 # Check whether --with-tiff or --without-tiff was given.
648 if test "${with_tiff+set}" = set; then
653 # Check whether --with-gif or --without-gif was given.
654 if test "${with_gif+set}" = set; then
659 # Check whether --with-png or --without-png was given.
660 if test "${with_png+set}" = set; then
665 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
666 if test "${with_toolkit_scroll_bars+set}" = set; then
667 withval
="$with_toolkit_scroll_bars"
672 #### Make srcdir absolute, if it isn't already. It's important to
673 #### avoid running the path through pwd unnecessary, since pwd can
674 #### give you automounter prefixes, which can go away. We do all this
675 #### so Emacs can find its files when run uninstalled.
679 ## We may be able to use the $PWD environment variable to make this
680 ## absolute. But sometimes PWD is inaccurate.
681 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
683 if test "${PWD}" != "" && test "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`" ;
687 srcdir
="`(cd ${srcdir}; pwd)`"
690 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
693 #### Check if the source directory already has a configured system in it.
694 if test `pwd` != `(cd ${srcdir} && pwd)` \
695 && test -f "${srcdir}/src/config.h" ; then
696 echo "configure: warning: The directory tree \`${srcdir}' is being used
697 as a build directory right now; it has been configured in its own
698 right. To configure in another directory as well, you MUST
699 use GNU make. If you do not have GNU make, then you must
700 now do \`make distclean' in ${srcdir},
701 and then run $0 again." 1>&2
703 extrasub
='/^VPATH[ ]*=/c\
709 vpath %.in $(srcdir)\
710 vpath %.texi $(srcdir)'
713 #### Given the configuration name, set machfile and opsysfile to the
714 #### names of the m/*.h and s/*.h files we should use.
716 ### Canonicalize the configuration name.
719 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
720 if test -f $ac_dir/install-sh
; then
722 ac_install_sh
="$ac_aux_dir/install-sh -c"
724 elif test -f $ac_dir/install.sh
; then
726 ac_install_sh
="$ac_aux_dir/install.sh -c"
730 if test -z "$ac_aux_dir"; then
731 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
733 ac_config_guess
=$ac_aux_dir/config.guess
734 ac_config_sub
=$ac_aux_dir/config.sub
735 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
738 # Make sure we can run config.sub.
739 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
740 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
743 echo $ac_n "checking host system type""... $ac_c" 1>&6
744 echo "configure:745: checking host system type" >&5
747 case "$host_alias" in
751 if host_alias
=`$ac_config_guess`; then :
752 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
754 *) host_alias
=$nonopt ;;
758 host=`$ac_config_sub $host_alias`
759 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
760 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
761 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
762 echo "$ac_t""$host" 1>&6
765 configuration
=$host_alias
768 ### If you add support for a new configuration, add code to this
769 ### switch statement to recognize your configuration name and select
770 ### the appropriate operating system and machine description files.
772 ### You would hope that you could choose an m/*.h file pretty much
773 ### based on the machine portion of the configuration name, and an s-
774 ### file based on the operating system portion. However, it turns out
775 ### that each m/*.h file is pretty manufacturer-specific - for
776 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
777 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
778 ### machines. So we basically have to have a special case for each
779 ### configuration name.
781 ### As far as handling version numbers on operating systems is
782 ### concerned, make sure things will fail in a fixable way. If
783 ### /etc/MACHINES doesn't say anything about version numbers, be
784 ### prepared to handle anything reasonably. If version numbers
785 ### matter, be sure /etc/MACHINES says something about it.
787 ### Eric Raymond says we should accept strings like "sysvr4" to mean
788 ### "System V Release 4"; he writes, "The old convention encouraged
789 ### confusion between `system' and `release' levels'."
791 machine
='' opsys
='' unported
=no
792 case "${canonical}" in
797 case "${canonical}" in
798 alpha
*-*-netbsd*) machine
=alpha
;;
799 i
[3456]86-*-netbsd*) machine
=intel386
;;
801 # This is somewhat bogus.
802 machine
=hp9000s300
;;
803 powerpc-apple-netbsd
*) machine
=macppc
;;
804 mips-
*-netbsd*) machine
=pmax
;;
805 ns32k-
*-netbsd*) machine
=ns32000
;;
806 sparc-
*-netbsd*) machine
=sparc
;;
807 vax-
*-netbsd*) machine
=vax
;;
814 case "${canonical}" in
815 alpha
*-*-openbsd*) machine
=alpha
;;
816 i386-
*-openbsd*) machine
=intel386
;;
817 m68k-
*-openbsd*) machine
=hp9000s300
;;
818 mipsel-
*-openbsd*) machine
=pmax
;;
819 ns32k-
*-openbsd*) machine
=ns32000
;;
820 sparc-
*-openbsd*) machine
=sparc
;;
821 vax-
*-openbsd*) machine
=vax
;;
826 arm-acorn-riscix1.1
* )
827 machine
=acorn opsys
=riscix1-1
829 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
830 ## This name is riscix12 instead of riscix1.2
831 ## to avoid a file name conflict on MSDOS.
832 machine
=acorn opsys
=riscix12
838 case "${canonical}" in
839 i
[345]86-*-bsdi*) machine
=intel386
;;
840 sparc-
*-bsdi*) machine
=sparc
;;
841 powerpc-
*-bsdi*) machine
=powerpc
;;
843 case "${canonical}" in
844 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
845 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
846 *-*-bsdi2* ) opsys
=bsdos2-1
;;
847 *-*-bsdi3* ) opsys
=bsdos3
;;
848 *-*-bsdi4* ) opsys
=bsdos4
;;
853 ## Strictly speaking, we need the version of the alliant operating
854 ## system to choose the right machine file, but currently the
855 ## configuration name doesn't tell us enough to choose the right
856 ## one; we need to give alliants their own operating system name to
857 ## do this right. When someone cares, they can help us.
859 machine
=alliant4 opsys
=bsd4-2
862 machine
=alliant-2800 opsys
=bsd4-3
865 ## Alpha (DEC) machines.
867 machine
=alpha opsys
=osf1
868 # This is needed to find X11R6.1 libraries for certain tests.
869 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
870 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
873 alpha
*-*-linux-gnu* )
874 machine
=alpha opsys
=gnu-linux
879 machine
=altos opsys
=usg5-2
884 machine
=amdahl opsys
=usg5-2-2
889 machine
=apollo opsys
=bsd4-3
894 machine
=arm opsys
=gnu-linux
897 ## AT&T 3b2, 3b5, 3b15, 3b20
899 machine
=att3b opsys
=usg5-2-2
902 ## AT&T 3b1 - The Mighty Unix PC!
904 machine
=7300 opsys
=usg5-2-2
909 machine
=ibmrs6000 opsys
=aix3-2
914 machine
=dpx2 opsys
=usg5-3
919 machine
=sps7 opsys
=usg5-2
922 ## CCI 5/32, 6/32 -- see "Tahoe".
925 ## I don't know what configuration name to use for this; config.sub
926 ## doesn't seem to know anything about it. Hey, Celerity users, get
928 celerity-celerity-bsd
* )
929 machine
=celerity opsys
=bsd4-2
933 ## What operating systems does this chip run that Emacs has been
937 ## We'll use the catch-all code at the bottom to guess the
942 *-convex-bsd* |
*-convex-convexos* )
943 machine
=convex opsys
=bsd4-3
944 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
945 NON_GNU_CPP
="cc -E -P"
949 i
[3456]86-cubix-sysv* )
950 machine
=intel386 opsys
=usg5-3
954 cydra
*-cydrome-sysv* )
955 machine
=cydra5 opsys
=usg5-3
958 ## Data General AViiON Machines
959 ## DG changed naming conventions with the release of 5.4.4.10, they
960 ## dropped the initial 5.4 but left the intervening R. Because of the
961 ## R this shouldn't conflict with older versions of the OS (which I
962 ## think were named like dgux4.*). In addition, DG new AViiONs series
963 ## uses either Motorola M88k or Intel Pentium CPUs.
964 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
965 machine
=aviion opsys
=dgux4
967 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
968 ## This name is dgux5-4-3 instead of dgux5-4r3
969 ## to avoid a file name conflict on MSDOS.
970 machine
=aviion opsys
=dgux5-4-3
972 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
973 machine
=aviion opsys
=dgux5-4r2
976 machine
=aviion opsys
=dgux
979 ## Data General AViiON Intel (x86) Machines
980 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
981 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
982 i
[345]86-dg-dguxR4* )
983 machine
=aviion-intel opsys
=dgux4
987 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
988 machine
=pmax opsys
=bsd4-2
990 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
991 machine
=pmax opsys
=bsd4-3
994 machine
=pmax opsys
=ultrix4-3
997 machine
=pmax opsys
=osf1
999 mips-dec-mach_bsd4.3
* )
1000 machine
=pmax opsys
=mach-bsd4-3
1003 ## Motorola Delta machines
1004 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1005 machine
=delta opsys
=usg5-3
1006 if test -z "`type gnucc | grep 'not found'`"
1008 if test -s /etc
/167config
1009 then CC
="gnucc -m68040"
1010 else CC
="gnucc -m68881"
1013 if test -z "`type gcc | grep 'not found'`"
1019 m88k-motorola-sysv4
* )
1020 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1021 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1022 # I hope there are not other 4.0 versions for this machine
1023 # which really need usg5-4 instead.
1024 machine
=delta88k opsys
=usg5-4-2
1026 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1027 machine
=delta88k opsys
=usg5-3
1032 machine
=dual opsys
=usg5-2
1034 m68
*-dual-uniplus* )
1035 machine
=dual opsys
=unipl5-2
1040 machine
=elxsi opsys
=usg5-2
1045 machine
=ns16000 opsys
=umax
1048 ## The GEC 93 - apparently, this port isn't really finished yet.
1050 ## Gould Power Node and NP1
1052 machine
=gould opsys
=bsd4-2
1055 machine
=gould opsys
=bsd4-3
1058 machine
=gould-np1 opsys
=bsd4-3
1061 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1062 ## as far as Emacs is concerned).
1064 # Build needs to be different on 7.0 and later releases
1065 case "`uname -r`" in
1066 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1067 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1069 NON_GNU_CPP
="/lib/cpp"
1071 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1073 machine
=nh3000 opsys
=cxux
1075 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1076 powerpc-harris-powerunix
)
1077 machine
=nh6000 opsys
=powerunix
1078 NON_GNU_CPP
="cc -Xo -E -P"
1080 ## SR2001/SR2201 running HI-UX/MPP
1081 hppa1.1
-hitachi-hiuxmpp* )
1082 machine
=sr2k opsys
=hiuxmpp
1085 xps
*-honeywell-sysv* )
1086 machine
=xps100 opsys
=usg5-2
1089 ## HP 9000 series 200 or 300
1091 machine
=hp9000s300 opsys
=bsd4-3
1093 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1095 case "`uname -r`" in
1096 ## Someone's system reports A.B8.05 for this.
1097 ## I wonder what other possibilities there are.
1098 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1099 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1100 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1101 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
1102 *) machine
=hp9000s300 opsys
=hpux
;;
1106 ## HP 9000 series 700 and 800, running HP/UX
1108 machine
=hp800 opsys
=hpux
1111 machine
=hp800 opsys
=hpux8
1113 hppa
*-hp-hpux9shr* )
1114 machine
=hp800 opsys
=hpux9shr
1117 machine
=hp800 opsys
=hpux9
1119 hppa
*-hp-hpux1[0-9]* )
1120 machine
=hp800 opsys
=hpux10
1123 ## HP 9000 series 700 and 800, running HP/UX
1125 ## Cross-compilation? Nah!
1126 case "`uname -r`" in
1127 ## Someone's system reports A.B8.05 for this.
1128 ## I wonder what other possibilities there are.
1129 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
1130 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
1131 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
1132 *) machine
=hp800 opsys
=hpux10
;;
1136 machine
=hp800 opsys
=nextstep
1141 machine
=orion opsys
=bsd4-2
1143 clipper-orion-bsd
* )
1144 machine
=orion105 opsys
=bsd4-2
1148 i
[3456]86-ibm-aix1.1
* )
1149 machine
=ibmps2-aix opsys
=usg5-2-2
1151 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
1152 machine
=ibmps2-aix opsys
=usg5-3
1155 machine
=ibm370aix opsys
=usg5-3
1157 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
1158 machine
=ibmrs6000 opsys
=aix3-1
1160 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
1161 machine
=ibmrs6000 opsys
=aix3-2-5
1163 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
1164 machine
=ibmrs6000 opsys
=aix4-1
1166 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
1167 machine
=ibmrs6000 opsys
=aix4-2
1169 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
1170 machine
=ibmrs6000 opsys
=aix4
1172 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
1173 machine
=ibmrs6000 opsys
=aix4-1
1175 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
1176 machine
=ibmrs6000 opsys
=aix3-2
1179 machine
=ibmrt opsys
=bsd4-3
1182 machine
=ibmrt opsys
=bsd4-2
1185 machine
=ibmrt opsys
=bsd4-3
1188 machine
=ibmrt opsys
=bsd4-2
1191 machine
=ibmrt opsys
=bsd4-3
1194 machine
=ibmrt opsys
=bsd4-3
1197 machine
=ibmrt-aix opsys
=usg5-2-2
1200 ## Integrated Solutions `Optimum V'
1202 machine
=isi-ov opsys
=bsd4-2
1205 machine
=isi-ov opsys
=bsd4-3
1208 ## Intel 386 machines where we do care about the manufacturer
1209 i
[3456]86-intsys-sysv* )
1210 machine
=is386 opsys
=usg5-2-2
1214 i
[3456]86-prime-sysv* )
1215 machine
=i386 opsys
=usg5-3
1218 ## Sequent Symmetry running Dynix
1219 i
[3456]86-sequent-bsd* )
1220 machine
=symmetry opsys
=bsd4-3
1223 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
1224 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
1225 machine
=sequent-ptx opsys
=ptx4
1226 NON_GNU_CPP
=/lib
/cpp
1229 ## Sequent Symmetry running DYNIX/ptx
1230 ## Use the old cpp rather than the newer ANSI one.
1231 i
[3456]86-sequent-ptx* )
1232 machine
=sequent-ptx opsys
=ptx
1233 NON_GNU_CPP
="/lib/cpp"
1236 ## ncr machine running svr4.3.
1237 i
[3456]86-ncr-sysv4.3
)
1238 machine
=ncr386 opsys
=usg5-4-3
1241 ## Unspecified sysv on an ncr machine defaults to svr4.2.
1242 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
1243 i
[3456]86-ncr-sysv* )
1244 machine
=ncr386 opsys
=usg5-4-2
1247 ## Intel Paragon OSF/1
1249 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
1254 machine
=i860 opsys
=usg5-4
1255 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
1256 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
1259 ## Masscomp machines
1260 m68
*-masscomp-rtu* )
1261 machine
=masscomp opsys
=rtu
1264 ## Megatest machines
1265 m68
*-megatest-bsd* )
1266 machine
=mega68 opsys
=bsd4-2
1269 ## Workstations sold by MIPS
1270 ## This is not necessarily all workstations using the MIPS processor -
1271 ## Irises are produced by SGI, and DECstations by DEC.
1273 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
1274 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
1275 ## it gives for choosing between the alternatives seems to be "Use
1276 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
1277 ## the BSD world." I'll assume that these are instructions for
1278 ## handling two odd situations, and that every other situation
1279 ## should use mips.h and usg5-2-2, they being listed first.
1282 ## Fall through to the general code at the bottom to decide on the OS.
1284 mips-mips-riscos4
* )
1285 machine
=mips4 opsys
=bsd4-3
1286 NON_GNU_CC
="cc -systype bsd43"
1287 NON_GNU_CPP
="cc -systype bsd43 -E"
1289 mips-mips-riscos5
* )
1290 machine
=mips4 opsys
=riscos5
1291 NON_GNU_CC
="cc -systype bsd43"
1292 NON_GNU_CPP
="cc -systype bsd43 -E"
1295 machine
=mips opsys
=bsd4-3
1298 machine
=mips opsys
=usg5-2-2
1302 m68
*-next-* | m68k-
*-nextstep* )
1303 machine
=m68k opsys
=nextstep
1306 ## The complete machine from National Semiconductor
1308 machine
=ns32000 opsys
=usg5-2
1312 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
1313 machine
=tower32 opsys
=usg5-2-2
1315 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
1316 machine
=tower32v3 opsys
=usg5-3
1321 machine
=ews4800 opsys
=ux4800
1324 ## Nixdorf Targon 31
1325 m68
*-nixdorf-sysv* )
1326 machine
=targon31 opsys
=usg5-2-2
1331 machine
=nu opsys
=usg5-2
1336 machine
=plexus opsys
=usg5-2
1339 ## PowerPC reference platform
1340 powerpcle-
*-solaris2* )
1346 ## I don't really have any idea what sort of processor the Pyramid has,
1347 ## so I'm assuming it is its own architecture.
1348 pyramid-pyramid-bsd
* )
1349 machine
=pyramid opsys
=bsd4-2
1353 ns32k-sequent-bsd4.2
* )
1354 machine
=sequent opsys
=bsd4-2
1356 ns32k-sequent-bsd4.3
* )
1357 machine
=sequent opsys
=bsd4-3
1361 mips-siemens-sysv
* | mips-sni-sysv
*)
1362 machine
=mips-siemens opsys
=usg5-4
1363 NON_GNU_CC
=/usr
/ccs
/bin
/cc
1364 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1367 ## Silicon Graphics machines
1368 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
1370 machine
=irist opsys
=iris3-5
1372 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
1373 machine
=irist opsys
=iris3-6
1377 machine
=iris4d opsys
=irix3-3
1380 machine
=iris4d opsys
=irix4-0
1383 machine
=iris4d opsys
=irix6-5
1384 # Without defining _LANGUAGE_C, things get masked out in the headers
1385 # so that, for instance, grepping for `free' in stdlib.h fails and
1386 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
1387 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
1388 NON_GCC_TEST_OPTIONS
="-n32 -G0 -D_LANGUAGE_C"
1391 machine
=iris4d opsys
=irix6-0
1392 # It's not clear whether -D_LANGUAGE_C is necessary as for 6.5,
1393 # but presumably it does no harm.
1394 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
1395 NON_GCC_TEST_OPTIONS
=-32
1397 mips-sgi-irix5.
[01]* )
1398 machine
=iris4d opsys
=irix5-0
1400 mips-sgi-irix5
* | mips-sgi-irix
* )
1401 machine
=iris4d opsys
=irix5-2
1406 machine
=news opsys
=bsd4-2
1409 machine
=news opsys
=bsd4-3
1411 m68
*-sony-newsos3* | m68
*-sony-news3*)
1412 machine
=news opsys
=bsd4-3
1414 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
1415 machine
=news-risc opsys
=bsd4-3
1417 mips-sony-newsos6
* )
1418 machine
=news-r6 opsys
=newsos6
1421 machine
=news-risc opsys
=newsos5
1426 machine
=stride opsys
=usg5-2
1430 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
1431 machine
=sparc opsys
=gnu-linux
1434 *-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
1435 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
1436 | rs6000-
*-solaris2*)
1437 case "${canonical}" in
1438 m68
*-sunos1* ) machine
=sun1
;;
1439 m68
*-sunos2* ) machine
=sun2
;;
1440 m68
* ) machine
=sun3
;;
1441 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
1442 i
[3456]86-*-* ) machine
=intel386
;;
1443 powerpcle
* ) machine
=powerpcle
;;
1444 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
1445 sparc
* ) machine
=sparc
;;
1448 case "${canonical}" in
1449 ## The Sun386 didn't get past 4.0.
1450 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
1451 *-sunos4.0
* ) opsys
=sunos4-0
;;
1452 *-sunos4.1.
[3-9]*noshare
)
1453 ## This name is sunos413 instead of sunos4-1-3
1454 ## to avoid a file name conflict on MSDOS.
1456 NON_GNU_CPP
=/usr
/lib
/cpp
1457 NON_GCC_TEST_OPTIONS
=-Bstatic
1458 GCC_TEST_OPTIONS
=-static
1460 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
1462 NON_GNU_CPP
=/usr
/lib
/cpp
1464 *-sunos4* |
*-sunos )
1466 NON_GCC_TEST_OPTIONS
=-Bstatic
1467 GCC_TEST_OPTIONS
=-static
1469 *-sunos5.3
* |
*-solaris2.3
* )
1471 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1473 *-sunos5.4
* |
*-solaris2.4
* )
1475 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1478 *-sunos5.5
* |
*-solaris2.5
* )
1480 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1483 *-sunos5* |
*-solaris* )
1485 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1489 ## Watch out for a compiler that we know will not work.
1490 case "${canonical}" in
1491 *-solaris* |
*-sunos5* )
1492 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
1493 ## /usr/ucb/cc doesn't work;
1494 ## we should find some other compiler that does work.
1502 machine
=sparc opsys
=nextstep
1506 m68
*-tadpole-sysv* )
1507 machine
=tad68k opsys
=usg5-3
1511 tahoe-tahoe-bsd4.2
* )
1512 machine
=tahoe opsys
=bsd4-2
1514 tahoe-tahoe-bsd4.3
* )
1515 machine
=tahoe opsys
=bsd4-3
1518 ## Tandem Integrity S2
1520 machine
=tandem-s2 opsys
=usg5-3
1524 m88k-tektronix-sysv3
* )
1525 machine
=tekxd88 opsys
=usg5-3
1528 ## Tektronix 16000 box (6130?)
1529 ns16k-tektronix-bsd
* )
1530 machine
=ns16000 opsys
=bsd4-2
1533 ## src/m/tek4300.h hints that this is a m68k machine.
1534 m68
*-tektronix-bsd* )
1535 machine
=tek4300 opsys
=bsd4-3
1539 ## We seem to have lost the machine-description file titan.h!
1541 machine
=titan opsys
=usg5-3
1544 ## Ustation E30 (SS5E)
1545 m68
*-unisys-uniplus* )
1546 machine
=ustation opsystem
=unipl5-2
1552 case "${canonical}" in
1553 *-bsd4.1
* ) opsys
=bsd4-1
;;
1554 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
1555 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
1556 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
1557 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
1558 *-vms* ) opsys
=vms
;;
1564 ns16k-whitechapel-
* )
1566 ## We don't know what sort of OS runs on these; we'll let the
1567 ## operating system guessing code below try.
1572 machine
=wicat opsys
=usg5-2
1575 ## Intel 386 machines where we don't care about the manufacturer
1578 case "${canonical}" in
1579 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
1580 *-isc2.2
* ) opsys
=isc2-2
;;
1581 *-isc4.0
* ) opsys
=isc4-0
;;
1582 *-isc4.
* ) opsys
=isc4-1
1583 GCC_TEST_OPTIONS
=-posix
1584 NON_GCC_TEST_OPTIONS
=-Xp
1586 *-isc* ) opsys
=isc3-0
;;
1587 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
1588 *-esix* ) opsys
=esix
;;
1589 *-xenix* ) opsys
=xenix
;;
1590 *-linux-gnu* ) opsys
=gnu-linux
;;
1591 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
1592 *-sco3.2v5
* ) opsys
=sco5
1593 NON_GNU_CPP
=/lib
/cpp
1594 # Prevent -belf from being passed to $CPP.
1595 # /lib/cpp does not accept it.
1596 OVERRIDE_CPPFLAGS
=" "
1598 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
1599 *-386bsd* ) opsys
=386bsd
;;
1600 *-freebsd* ) opsys
=freebsd
;;
1601 *-nextstep* ) opsys
=nextstep
;;
1602 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
1606 ## m68k Linux-based GNU system
1608 machine
=m68k opsys
=gnu-linux
1611 ## Mips Linux-based GNU system
1613 machine
=mips opsys
=gnu-linux
1617 sparc-fujitsu-sysv4
* )
1618 machine
=sparc opsys
=uxpds
1619 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1624 f301-fujitsu-uxpv4.1
)
1625 machine
=f301 opsys
=uxpv
1633 ### If the code above didn't choose an operating system, just choose
1634 ### an operating system based on the configuration name. You really
1635 ### only want to use this when you have no idea what the right
1636 ### operating system is; if you know what operating systems a machine
1637 ### runs, it's cleaner to make it explicit in the case statement
1639 if test x
"${opsys}" = x
; then
1640 case "${canonical}" in
1641 *-gnu* ) opsys
=gnu
;;
1642 *-bsd4.
[01] ) opsys
=bsd4-1
;;
1643 *-bsd4.2
) opsys
=bsd4-2
;;
1644 *-bsd4.3
) opsys
=bsd4-3
;;
1645 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
1646 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
1647 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
1648 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
1649 *-sysv4.2uw
* ) opsys
=unixware
;;
1650 *-sysv4.1
* |
*-sysvr4.1
* )
1651 NON_GNU_CPP
=/usr
/lib
/cpp
1653 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
1654 if [ x
$NON_GNU_CPP = x
]; then
1655 if [ -f /usr
/ccs
/lib
/cpp
]; then
1656 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1658 NON_GNU_CPP
=/lib
/cpp
1662 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
1669 if test "x$RANLIB" = x
; then
1674 if test $unported = yes; then
1675 { echo "configure: error: Emacs hasn't been ported to \`${canonical}' systems.
1676 Check \`etc/MACHINES' for recognized configuration names." 1>&2; exit 1; }
1679 machfile
="m/${machine}.h"
1680 opsysfile
="s/${opsys}.h"
1683 #### Choose a compiler.
1684 test -n "$CC" && cc_specified
=yes
1686 # Save the value of CFLAGS that the user specified.
1687 SPECIFIED_CFLAGS
="$CFLAGS"
1690 "yes" ) CC
="gcc" GCC
=yes ;;
1691 "no" ) : ${CC=cc} ;;
1692 * ) # Extract the first word of "gcc", so it can be a program name with args.
1693 set dummy gcc
; ac_word
=$2
1694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1695 echo "configure:1696: checking for $ac_word" >&5
1696 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1697 echo $ac_n "(cached) $ac_c" 1>&6
1699 if test -n "$CC"; then
1700 ac_cv_prog_CC
="$CC" # Let the user override the test.
1702 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1703 for ac_dir
in $PATH; do
1704 test -z "$ac_dir" && ac_dir
=.
1705 if test -f $ac_dir/$ac_word; then
1714 if test -n "$CC"; then
1715 echo "$ac_t""$CC" 1>&6
1717 echo "$ac_t""no" 1>&6
1720 if test -z "$CC"; then
1721 # Extract the first word of "cc", so it can be a program name with args.
1722 set dummy cc
; ac_word
=$2
1723 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1724 echo "configure:1725: checking for $ac_word" >&5
1725 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1726 echo $ac_n "(cached) $ac_c" 1>&6
1728 if test -n "$CC"; then
1729 ac_cv_prog_CC
="$CC" # Let the user override the test.
1731 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1733 for ac_dir
in $PATH; do
1734 test -z "$ac_dir" && ac_dir
=.
1735 if test -f $ac_dir/$ac_word; then
1736 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1737 ac_prog_rejected
=yes
1745 if test $ac_prog_rejected = yes; then
1746 # We found a bogon in the path, so make sure we never use it.
1747 set dummy
$ac_cv_prog_CC
1749 if test $# -gt 0; then
1750 # We chose a different compiler from the bogus one.
1751 # However, it has the same basename, so the bogon will be chosen
1752 # first if we set CC to just the basename; use the full file name.
1754 set dummy
"$ac_dir/$ac_word" "$@"
1762 if test -n "$CC"; then
1763 echo "$ac_t""$CC" 1>&6
1765 echo "$ac_t""no" 1>&6
1768 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1771 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1772 echo "configure:1773: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1775 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1776 ac_cpp
='$CPP $CPPFLAGS'
1777 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1778 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1779 cross_compiling
=$ac_cv_prog_cc_cross
1781 cat > conftest.
$ac_ext <<EOF
1782 #line 1783 "configure"
1783 #include "confdefs.h"
1786 if { (eval echo configure
:1787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1787 ac_cv_prog_cc_works
=yes
1788 # If we can't run a trivial program, we are probably using a cross compiler.
1789 if (.
/conftest
; exit) 2>/dev
/null
; then
1790 ac_cv_prog_cc_cross
=no
1792 ac_cv_prog_cc_cross
=yes
1795 echo "configure: failed program was:" >&5
1796 cat conftest.
$ac_ext >&5
1797 ac_cv_prog_cc_works
=no
1801 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1802 if test $ac_cv_prog_cc_works = no
; then
1803 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1805 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1806 echo "configure:1807: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1807 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1808 cross_compiling
=$ac_cv_prog_cc_cross
1810 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1811 echo "configure:1812: checking whether we are using GNU C" >&5
1812 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1813 echo $ac_n "(cached) $ac_c" 1>&6
1815 cat > conftest.c
<<EOF
1820 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1827 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1829 if test $ac_cv_prog_gcc = yes; then
1831 ac_test_CFLAGS
="${CFLAGS+set}"
1832 ac_save_CFLAGS
="$CFLAGS"
1834 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1835 echo "configure:1836: checking whether ${CC-cc} accepts -g" >&5
1836 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1837 echo $ac_n "(cached) $ac_c" 1>&6
1839 echo 'void f(){}' > conftest.c
1840 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1849 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1850 if test "$ac_test_CFLAGS" = set; then
1851 CFLAGS
="$ac_save_CFLAGS"
1852 elif test $ac_cv_prog_cc_g = yes; then
1859 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1864 # On Suns, sometimes $CPP names a directory.
1865 if test -n "$CPP" && test -d "$CPP"; then
1869 #### Some systems specify a CPP to use unless we are using GCC.
1870 #### Now that we know whether we are using GCC, we can decide whether
1871 #### to use that one.
1872 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
1877 #### Some systems specify a CC to use unless we are using GCC.
1878 #### Now that we know whether we are using GCC, we can decide whether
1879 #### to use that one.
1880 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
1881 test x
$cc_specified != xyes
1886 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
1888 CC
="$CC $GCC_TEST_OPTIONS"
1891 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
1893 CC
="$CC $NON_GCC_TEST_OPTIONS"
1896 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
1898 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
1901 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
1903 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
1906 #### Some other nice autoconf tests. If you add a test here which
1907 #### should make an entry in src/config.h, don't forget to add an
1908 #### #undef clause to src/config.h.in for autoconf to modify.
1910 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1911 echo "configure:1912: checking whether ln -s works" >&5
1912 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1916 if ln -s X conftestdata
2>/dev
/null
1919 ac_cv_prog_LN_S
="ln -s"
1924 LN_S
="$ac_cv_prog_LN_S"
1925 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1926 echo "$ac_t""yes" 1>&6
1928 echo "$ac_t""no" 1>&6
1931 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1932 echo "configure:1933: checking how to run the C preprocessor" >&5
1933 # On Suns, sometimes $CPP names a directory.
1934 if test -n "$CPP" && test -d "$CPP"; then
1937 if test -z "$CPP"; then
1938 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1939 echo $ac_n "(cached) $ac_c" 1>&6
1941 # This must be in double quotes, not single quotes, because CPP may get
1942 # substituted into the Makefile and "${CC-cc}" will confuse make.
1944 # On the NeXT, cc -E runs the code through the compiler's parser,
1945 # not just through cpp.
1946 cat > conftest.
$ac_ext <<EOF
1947 #line 1948 "configure"
1948 #include "confdefs.h"
1952 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1953 { (eval echo configure
:1954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1954 ac_err
=`grep -v '^ *+' conftest.out`
1955 if test -z "$ac_err"; then
1959 echo "configure: failed program was:" >&5
1960 cat conftest.
$ac_ext >&5
1962 CPP
="${CC-cc} -E -traditional-cpp"
1963 cat > conftest.
$ac_ext <<EOF
1964 #line 1965 "configure"
1965 #include "confdefs.h"
1969 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1970 { (eval echo configure
:1971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1971 ac_err
=`grep -v '^ *+' conftest.out`
1972 if test -z "$ac_err"; then
1976 echo "configure: failed program was:" >&5
1977 cat conftest.
$ac_ext >&5
1984 ac_cv_prog_CPP
="$CPP"
1986 CPP
="$ac_cv_prog_CPP"
1988 ac_cv_prog_CPP
="$CPP"
1990 echo "$ac_t""$CPP" 1>&6
1992 # Find a good install program. We prefer a C program (faster),
1993 # so one script is as good as another. But avoid the broken or
1994 # incompatible versions:
1995 # SysV /etc/install, /usr/sbin/install
1996 # SunOS /usr/etc/install
1997 # IRIX /sbin/install
1999 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2000 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2001 # ./install, which can be erroneously created by make from ./install.sh.
2002 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2003 echo "configure:2004: checking for a BSD compatible install" >&5
2004 if test -z "$INSTALL"; then
2005 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2006 echo $ac_n "(cached) $ac_c" 1>&6
2008 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
2009 for ac_dir
in $PATH; do
2010 # Account for people who put trailing slashes in PATH elements.
2012 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2014 # OSF1 and SCO ODT 3.0 have their own names for install.
2015 for ac_prog
in ginstall installbsd scoinst
install; do
2016 if test -f $ac_dir/$ac_prog; then
2017 if test $ac_prog = install &&
2018 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2019 # AIX install. It has an incompatible calling convention.
2020 # OSF/1 installbsd also uses dspmsg, but is usable.
2023 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2034 if test "${ac_cv_path_install+set}" = set; then
2035 INSTALL
="$ac_cv_path_install"
2037 # As a last resort, use the slow shell script. We don't cache a
2038 # path for INSTALL within a source directory, because that will
2039 # break other packages using the cache if that directory is
2040 # removed, or if the path is relative.
2041 INSTALL
="$ac_install_sh"
2044 echo "$ac_t""$INSTALL" 1>&6
2046 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2047 # It thinks the first close brace ends the variable substitution.
2048 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2050 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2052 for ac_prog
in 'bison -y' byacc
2054 # Extract the first word of "$ac_prog", so it can be a program name with args.
2055 set dummy
$ac_prog; ac_word
=$2
2056 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2057 echo "configure:2058: checking for $ac_word" >&5
2058 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2059 echo $ac_n "(cached) $ac_c" 1>&6
2061 if test -n "$YACC"; then
2062 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2064 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2065 for ac_dir
in $PATH; do
2066 test -z "$ac_dir" && ac_dir
=.
2067 if test -f $ac_dir/$ac_word; then
2068 ac_cv_prog_YACC
="$ac_prog"
2075 YACC
="$ac_cv_prog_YACC"
2076 if test -n "$YACC"; then
2077 echo "$ac_t""$YACC" 1>&6
2079 echo "$ac_t""no" 1>&6
2082 test -n "$YACC" && break
2084 test -n "$YACC" || YACC
="yacc"
2087 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2088 echo "configure:2089: checking for AIX" >&5
2089 cat > conftest.
$ac_ext <<EOF
2090 #line 2091 "configure"
2091 #include "confdefs.h"
2097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2098 egrep "yes" >/dev
/null
2>&1; then
2100 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
2101 #define _ALL_SOURCE 1
2106 echo "$ac_t""no" 1>&6
2112 # Sound support for GNU/Linux and the free BSDs.
2113 for ac_hdr
in machine
/soundcard.h sys
/soundcard.h
2115 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2116 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2117 echo "configure:2118: checking for $ac_hdr" >&5
2118 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2119 echo $ac_n "(cached) $ac_c" 1>&6
2121 cat > conftest.
$ac_ext <<EOF
2122 #line 2123 "configure"
2123 #include "confdefs.h"
2126 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2127 { (eval echo configure
:2128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2128 ac_err
=`grep -v '^ *+' conftest.out`
2129 if test -z "$ac_err"; then
2131 eval "ac_cv_header_$ac_safe=yes"
2134 echo "configure: failed program was:" >&5
2135 cat conftest.
$ac_ext >&5
2137 eval "ac_cv_header_$ac_safe=no"
2141 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2142 echo "$ac_t""yes" 1>&6
2143 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2144 cat >> confdefs.h
<<EOF
2145 #define $ac_tr_hdr 1
2149 echo "$ac_t""no" 1>&6
2154 for ac_hdr
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
2155 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
2156 termcap.h stdio_ext.h
2158 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2159 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2160 echo "configure:2161: checking for $ac_hdr" >&5
2161 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6
2164 cat > conftest.
$ac_ext <<EOF
2165 #line 2166 "configure"
2166 #include "confdefs.h"
2169 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2170 { (eval echo configure
:2171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2171 ac_err
=`grep -v '^ *+' conftest.out`
2172 if test -z "$ac_err"; then
2174 eval "ac_cv_header_$ac_safe=yes"
2177 echo "configure: failed program was:" >&5
2178 cat conftest.
$ac_ext >&5
2180 eval "ac_cv_header_$ac_safe=no"
2184 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2185 echo "$ac_t""yes" 1>&6
2186 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2187 cat >> confdefs.h
<<EOF
2188 #define $ac_tr_hdr 1
2192 echo "$ac_t""no" 1>&6
2196 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2197 echo "configure:2198: checking for ANSI C header files" >&5
2198 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2199 echo $ac_n "(cached) $ac_c" 1>&6
2201 cat > conftest.
$ac_ext <<EOF
2202 #line 2203 "configure"
2203 #include "confdefs.h"
2209 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2210 { (eval echo configure
:2211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2211 ac_err
=`grep -v '^ *+' conftest.out`
2212 if test -z "$ac_err"; then
2214 ac_cv_header_stdc
=yes
2217 echo "configure: failed program was:" >&5
2218 cat conftest.
$ac_ext >&5
2220 ac_cv_header_stdc
=no
2224 if test $ac_cv_header_stdc = yes; then
2225 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2226 cat > conftest.
$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2232 egrep "memchr" >/dev
/null
2>&1; then
2236 ac_cv_header_stdc
=no
2242 if test $ac_cv_header_stdc = yes; then
2243 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2244 cat > conftest.
$ac_ext <<EOF
2245 #line 2246 "configure"
2246 #include "confdefs.h"
2249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2250 egrep "free" >/dev
/null
2>&1; then
2254 ac_cv_header_stdc
=no
2260 if test $ac_cv_header_stdc = yes; then
2261 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2262 if test "$cross_compiling" = yes; then
2265 cat > conftest.
$ac_ext <<EOF
2266 #line 2267 "configure"
2267 #include "confdefs.h"
2269 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2270 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2271 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2272 int main () { int i; for (i = 0; i < 256; i++)
2273 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2277 if { (eval echo configure
:2278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2281 echo "configure: failed program was:" >&5
2282 cat conftest.
$ac_ext >&5
2284 ac_cv_header_stdc
=no
2292 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2293 if test $ac_cv_header_stdc = yes; then
2294 cat >> confdefs.h
<<\EOF
2295 #define STDC_HEADERS 1
2300 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2301 echo "configure:2302: checking whether time.h and sys/time.h may both be included" >&5
2302 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6
2305 cat > conftest.
$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2308 #include <sys/types.h>
2309 #include <sys/time.h>
2315 if { (eval echo configure
:2316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2317 ac_cv_header_time
=yes
2319 echo "configure: failed program was:" >&5
2320 cat conftest.
$ac_ext >&5
2322 ac_cv_header_time
=no
2327 echo "$ac_t""$ac_cv_header_time" 1>&6
2328 if test $ac_cv_header_time = yes; then
2329 cat >> confdefs.h
<<\EOF
2330 #define TIME_WITH_SYS_TIME 1
2335 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2336 echo "configure:2337: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2337 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2338 echo $ac_n "(cached) $ac_c" 1>&6
2340 cat > conftest.
$ac_ext <<EOF
2341 #line 2342 "configure"
2342 #include "confdefs.h"
2343 #include <sys/types.h>
2345 /* NetBSD declares sys_siglist in unistd.h. */
2346 #ifdef HAVE_UNISTD_H
2350 char *msg = *(sys_siglist + 1);
2353 if { (eval echo configure
:2354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2355 ac_cv_decl_sys_siglist
=yes
2357 echo "configure: failed program was:" >&5
2358 cat conftest.
$ac_ext >&5
2360 ac_cv_decl_sys_siglist
=no
2365 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2366 if test $ac_cv_decl_sys_siglist = yes; then
2367 cat >> confdefs.h
<<\EOF
2368 #define SYS_SIGLIST_DECLARED 1
2374 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
2375 echo "configure:2376: checking for struct utimbuf" >&5
2376 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then
2377 echo $ac_n "(cached) $ac_c" 1>&6
2379 cat > conftest.
$ac_ext <<EOF
2380 #line 2381 "configure"
2381 #include "confdefs.h"
2382 #ifdef TIME_WITH_SYS_TIME
2383 #include <sys/time.h>
2386 #ifdef HAVE_SYS_TIME_H
2387 #include <sys/time.h>
2396 static struct utimbuf x; x.actime = x.modtime;
2399 if { (eval echo configure
:2400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2401 emacs_cv_struct_utimbuf
=yes
2403 echo "configure: failed program was:" >&5
2404 cat conftest.
$ac_ext >&5
2406 emacs_cv_struct_utimbuf
=no
2411 echo "$ac_t""$emacs_cv_struct_utimbuf" 1>&6
2412 if test $emacs_cv_struct_utimbuf = yes; then
2413 cat >> confdefs.h
<<\EOF
2414 #define HAVE_STRUCT_UTIMBUF 1
2419 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2420 echo "configure:2421: checking return type of signal handlers" >&5
2421 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2422 echo $ac_n "(cached) $ac_c" 1>&6
2424 cat > conftest.
$ac_ext <<EOF
2425 #line 2426 "configure"
2426 #include "confdefs.h"
2427 #include <sys/types.h>
2433 extern "C" void (*signal (int, void (*)(int)))(int);
2435 void (*signal ()) ();
2442 if { (eval echo configure
:2443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2444 ac_cv_type_signal
=void
2446 echo "configure: failed program was:" >&5
2447 cat conftest.
$ac_ext >&5
2449 ac_cv_type_signal
=int
2454 echo "$ac_t""$ac_cv_type_signal" 1>&6
2455 cat >> confdefs.h
<<EOF
2456 #define RETSIGTYPE $ac_cv_type_signal
2461 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
2462 echo "configure:2463: checking for struct timeval" >&5
2463 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then
2464 echo $ac_n "(cached) $ac_c" 1>&6
2466 cat > conftest.
$ac_ext <<EOF
2467 #line 2468 "configure"
2468 #include "confdefs.h"
2469 #ifdef TIME_WITH_SYS_TIME
2470 #include <sys/time.h>
2473 #ifdef HAVE_SYS_TIME_H
2474 #include <sys/time.h>
2480 static struct timeval x; x.tv_sec = x.tv_usec;
2483 if { (eval echo configure
:2484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2485 emacs_cv_struct_timeval
=yes
2487 echo "configure: failed program was:" >&5
2488 cat conftest.
$ac_ext >&5
2490 emacs_cv_struct_timeval
=no
2495 echo "$ac_t""$emacs_cv_struct_timeval" 1>&6
2496 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
2497 if test $emacs_cv_struct_timeval = yes; then
2498 cat >> confdefs.h
<<\EOF
2499 #define HAVE_TIMEVAL 1
2504 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2505 echo "configure:2506: checking whether struct tm is in sys/time.h or time.h" >&5
2506 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2507 echo $ac_n "(cached) $ac_c" 1>&6
2509 cat > conftest.
$ac_ext <<EOF
2510 #line 2511 "configure"
2511 #include "confdefs.h"
2512 #include <sys/types.h>
2515 struct tm *tp; tp->tm_sec;
2518 if { (eval echo configure
:2519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2520 ac_cv_struct_tm
=time.h
2522 echo "configure: failed program was:" >&5
2523 cat conftest.
$ac_ext >&5
2525 ac_cv_struct_tm
=sys
/time.h
2530 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2531 if test $ac_cv_struct_tm = sys
/time.h
; then
2532 cat >> confdefs.h
<<\EOF
2533 #define TM_IN_SYS_TIME 1
2538 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
2539 echo "configure:2540: checking for tm_zone in struct tm" >&5
2540 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
2541 echo $ac_n "(cached) $ac_c" 1>&6
2543 cat > conftest.
$ac_ext <<EOF
2544 #line 2545 "configure"
2545 #include "confdefs.h"
2546 #include <sys/types.h>
2547 #include <$ac_cv_struct_tm>
2549 struct tm tm; tm.tm_zone;
2552 if { (eval echo configure
:2553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2554 ac_cv_struct_tm_zone
=yes
2556 echo "configure: failed program was:" >&5
2557 cat conftest.
$ac_ext >&5
2559 ac_cv_struct_tm_zone
=no
2564 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
2565 if test "$ac_cv_struct_tm_zone" = yes; then
2566 cat >> confdefs.h
<<\EOF
2567 #define HAVE_TM_ZONE 1
2571 echo $ac_n "checking for tzname""... $ac_c" 1>&6
2572 echo "configure:2573: checking for tzname" >&5
2573 if eval "test \"`echo '$''{'ac_cv_var_tzname'+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"
2580 #ifndef tzname /* For SGI. */
2581 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
2587 if { (eval echo configure
:2588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2589 ac_cv_var_tzname
=yes
2591 echo "configure: failed program was:" >&5
2592 cat conftest.
$ac_ext >&5
2599 echo "$ac_t""$ac_cv_var_tzname" 1>&6
2600 if test $ac_cv_var_tzname = yes; then
2601 cat >> confdefs.h
<<\EOF
2602 #define HAVE_TZNAME 1
2608 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
2609 echo "configure:2610: checking for tm_gmtoff in struct tm" >&5
2610 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then
2611 echo $ac_n "(cached) $ac_c" 1>&6
2613 cat > conftest.
$ac_ext <<EOF
2614 #line 2615 "configure"
2615 #include "confdefs.h"
2618 struct tm t; t.tm_gmtoff = 0
2621 if { (eval echo configure
:2622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2623 emacs_cv_tm_gmtoff
=yes
2625 echo "configure: failed program was:" >&5
2626 cat conftest.
$ac_ext >&5
2628 emacs_cv_tm_gmtoff
=no
2633 echo "$ac_t""$emacs_cv_tm_gmtoff" 1>&6
2634 if test $emacs_cv_tm_gmtoff = yes; then
2635 cat >> confdefs.h
<<\EOF
2636 #define HAVE_TM_GMTOFF 1
2641 echo $ac_n "checking for working const""... $ac_c" 1>&6
2642 echo "configure:2643: checking for working const" >&5
2643 if eval "test \"`echo '$''{'ac_cv_c_const'+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"
2652 /* Ultrix mips cc rejects this. */
2653 typedef int charset[2]; const charset x;
2654 /* SunOS 4.1.1 cc rejects this. */
2655 char const *const *ccp;
2657 /* NEC SVR4.0.2 mips cc rejects this. */
2658 struct point {int x, y;};
2659 static struct point const zero = {0,0};
2660 /* AIX XL C 1.02.0.0 rejects this.
2661 It does not let you subtract one const X* pointer from another in an arm
2662 of an if-expression whose if-part is not a constant expression */
2663 const char *g = "string";
2664 ccp = &g + (g ? g-g : 0);
2665 /* HPUX 7.0 cc rejects these. */
2668 ccp = (char const *const *) p;
2669 { /* SCO 3.2v4 cc rejects this. */
2671 char const *s = 0 ? (char *) 0 : (char const *) 0;
2675 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2677 const int *foo = &x[0];
2680 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2681 typedef const int *iptr;
2685 { /* AIX XL C 1.02.0.0 rejects this saying
2686 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2687 struct s { int j; const int *ap[3]; };
2688 struct s *b; b->j = 5;
2690 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2696 if { (eval echo configure
:2697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2700 echo "configure: failed program was:" >&5
2701 cat conftest.
$ac_ext >&5
2708 echo "$ac_t""$ac_cv_c_const" 1>&6
2709 if test $ac_cv_c_const = no
; then
2710 cat >> confdefs.h
<<\EOF
2717 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2718 echo "configure:2719: checking whether ${MAKE-make} sets \${MAKE}" >&5
2719 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
2720 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2721 echo $ac_n "(cached) $ac_c" 1>&6
2723 cat > conftestmake
<<\EOF
2725 @
echo 'ac_maketemp="${MAKE}"'
2727 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2728 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2729 if test -n "$ac_maketemp"; then
2730 eval ac_cv_prog_make_
${ac_make}_set
=yes
2732 eval ac_cv_prog_make_
${ac_make}_set
=no
2736 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2737 echo "$ac_t""yes" 1>&6
2740 echo "$ac_t""no" 1>&6
2741 SET_MAKE
="MAKE=${MAKE-make}"
2745 echo $ac_n "checking for long file names""... $ac_c" 1>&6
2746 echo "configure:2747: checking for long file names" >&5
2747 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
2748 echo $ac_n "(cached) $ac_c" 1>&6
2750 ac_cv_sys_long_file_names
=yes
2751 # Test for long file names in all the places we know might matter:
2752 # . the current directory, where building will happen
2753 # $prefix/lib where we will be installing things
2754 # $exec_prefix/lib likewise
2755 # eval it to expand exec_prefix.
2756 # $TMPDIR if set, where it might want to write temporary files
2757 # if $TMPDIR is not set:
2758 # /tmp where it might want to write temporary files
2761 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
2762 ac_tmpdirs
="$TMPDIR"
2764 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
2766 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
2767 test -d $ac_dir ||
continue
2768 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
2769 (echo 1 > $ac_dir/conftest9012345
) 2>/dev
/null
2770 (echo 2 > $ac_dir/conftest9012346
) 2>/dev
/null
2771 val
=`cat $ac_dir/conftest9012345 2>/dev/null`
2772 if test ! -f $ac_dir/conftest9012345 ||
test "$val" != 1; then
2773 ac_cv_sys_long_file_names
=no
2774 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
2777 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
2781 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
2782 if test $ac_cv_sys_long_file_names = yes; then
2783 cat >> confdefs.h
<<\EOF
2784 #define HAVE_LONG_FILE_NAMES 1
2790 #### Choose a window system.
2792 # If we find X, set shell vars x_includes and x_libraries to the
2793 # paths, otherwise set no_x=yes.
2794 # Uses ac_ vars as temps to allow command line to override cache and checks.
2795 # --without-x overrides everything else, but does not touch the cache.
2796 echo $ac_n "checking for X""... $ac_c" 1>&6
2797 echo "configure:2798: checking for X" >&5
2799 # Check whether --with-x or --without-x was given.
2800 if test "${with_x+set}" = set; then
2805 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2806 if test "x$with_x" = xno
; then
2807 # The user explicitly disabled X.
2810 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
2811 # Both variables are already set.
2814 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
2815 echo $ac_n "(cached) $ac_c" 1>&6
2817 # One or both of the vars are not set, and there is no cached value.
2818 ac_x_includes
=NO ac_x_libraries
=NO
2820 if mkdir conftestdir
; then
2822 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2823 cat > Imakefile
<<'EOF'
2825 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2827 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
2828 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2829 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2830 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2831 for ac_extension
in a so sl
; do
2832 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
2833 test -f $ac_im_libdir/libX11.
$ac_extension; then
2834 ac_im_usrlibdir
=$ac_im_libdir; break
2837 # Screen out bogus values from the imake configuration. They are
2838 # bogus both because they are the default anyway, and because
2839 # using them would break gcc on systems where it needs fixed includes.
2840 case "$ac_im_incroot" in
2842 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
2844 case "$ac_im_usrlibdir" in
2846 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
2853 if test "$ac_x_includes" = NO
; then
2854 # Guess where to find include files, by looking for this one X11 .h file.
2855 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
2857 # First, try using that file with no special directory specified.
2858 cat > conftest.
$ac_ext <<EOF
2859 #line 2860 "configure"
2860 #include "confdefs.h"
2861 #include <$x_direct_test_include>
2863 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2864 { (eval echo configure
:2865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2865 ac_err
=`grep -v '^ *+' conftest.out`
2866 if test -z "$ac_err"; then
2868 # We can compile using X headers with no special include directory.
2872 echo "configure: failed program was:" >&5
2873 cat conftest.
$ac_ext >&5
2875 # Look for the header file in a standard set of common directories.
2876 # Check X11 before X11Rn because it is often a symlink to the current release.
2879 /usr
/X11R
6/include \
2880 /usr
/X11R
5/include \
2881 /usr
/X11R
4/include \
2884 /usr
/include
/X11R6 \
2885 /usr
/include
/X11R5 \
2886 /usr
/include
/X11R4 \
2888 /usr
/local
/X11
/include \
2889 /usr
/local
/X11R
6/include \
2890 /usr
/local
/X11R
5/include \
2891 /usr
/local
/X11R
4/include \
2893 /usr
/local
/include
/X11 \
2894 /usr
/local
/include
/X11R6 \
2895 /usr
/local
/include
/X11R5 \
2896 /usr
/local
/include
/X11R4 \
2900 /usr
/XFree86
/include
/X11 \
2903 /usr
/local
/include \
2904 /usr
/unsupported
/include \
2905 /usr
/athena
/include \
2906 /usr
/local
/x11r
5/include \
2907 /usr
/lpp
/Xamples
/include \
2909 /usr
/openwin
/include \
2910 /usr
/openwin
/share
/include \
2913 if test -r "$ac_dir/$x_direct_test_include"; then
2914 ac_x_includes
=$ac_dir
2920 fi # $ac_x_includes = NO
2922 if test "$ac_x_libraries" = NO
; then
2923 # Check for the libraries.
2925 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
2926 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
2928 # See if we find them without any special options.
2929 # Don't add to $LIBS permanently.
2930 ac_save_LIBS
="$LIBS"
2931 LIBS
="-l$x_direct_test_library $LIBS"
2932 cat > conftest.
$ac_ext <<EOF
2933 #line 2934 "configure"
2934 #include "confdefs.h"
2937 ${x_direct_test_function}()
2940 if { (eval echo configure
:2941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2942 LIBS
="$ac_save_LIBS"
2943 # We can link X programs with no special library path.
2946 echo "configure: failed program was:" >&5
2947 cat conftest.
$ac_ext >&5
2949 LIBS
="$ac_save_LIBS"
2950 # First see if replacing the include by lib works.
2951 # Check X11 before X11Rn because it is often a symlink to the current release.
2952 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
2963 /usr
/local
/X11
/lib \
2964 /usr
/local
/X11R
6/lib \
2965 /usr
/local
/X11R
5/lib \
2966 /usr
/local
/X11R
4/lib \
2968 /usr
/local
/lib
/X11 \
2969 /usr
/local
/lib
/X11R6 \
2970 /usr
/local
/lib
/X11R5 \
2971 /usr
/local
/lib
/X11R4 \
2975 /usr
/XFree86
/lib
/X11 \
2979 /usr
/unsupported
/lib \
2981 /usr
/local
/x11r
5/lib \
2982 /usr
/lpp
/Xamples
/lib \
2986 /usr
/openwin
/share
/lib \
2989 for ac_extension
in a so sl
; do
2990 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
2991 ac_x_libraries
=$ac_dir
2998 fi # $ac_x_libraries = NO
3000 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
3001 # Didn't find X anywhere. Cache the known absence of X.
3002 ac_cv_have_x
="have_x=no"
3004 # Record where we found X for the cache.
3005 ac_cv_have_x
="have_x=yes \
3006 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3010 eval "$ac_cv_have_x"
3013 if test "$have_x" != yes; then
3014 echo "$ac_t""$have_x" 1>&6
3017 # If each of the values was on the command line, it overrides each guess.
3018 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
3019 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
3020 # Update the cache value to reflect the command line values.
3021 ac_cv_have_x
="have_x=yes \
3022 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3023 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3026 if test "$no_x" = yes; then
3032 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
3033 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
3034 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
3035 x_default_search_path
=""
3036 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
3037 x_search_path
="${x_library}/X11/%L/%T/%N%C%S:\
3038 ${x_library}/X11/%L/%T/%N%C%S:${x_libary}/X11/%l/%T/%N%C%S:\
3039 ${x_library}/X11/%T/%N%C%S:${x_library}/X11/%L/%T/%N%S:\
3040 ${x_library}/X11/%l/%T/%N%S:${x_library}/X11/%T/%N%S"
3041 if test x
"${x_default_search_path}" = x
; then
3042 x_default_search_path
=${x_search_path}
3044 x_default_search_path
="${x_search_path}:${x_default_search_path}"
3048 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
3049 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
3052 if test x
"${x_includes}" = x
; then
3053 bitmapdir
=/usr
/include
/X11
/bitmaps
3055 # accumulate include directories that have X11 bitmap subdirectories
3057 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
3058 if test -d "${bmd}/X11/bitmaps"; then
3059 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
3061 if test -d "${bmd}/bitmaps"; then
3062 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
3065 if test ${bmd_acc} != "dummyval"; then
3066 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
3070 case "${window_system}" in
3074 case "${with_x_toolkit}" in
3075 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
3076 motif
) USE_X_TOOLKIT
=MOTIF
;;
3077 no
) USE_X_TOOLKIT
=none
;;
3078 * ) USE_X_TOOLKIT
=maybe
;;
3088 ### If we're using X11, we should use the X menu package.
3091 yes ) HAVE_MENUS
=yes ;;
3094 if test "${opsys}" = "hpux9"; then
3095 case "${x_libraries}" in
3097 opsysfile
="s/hpux9-x11r4.h"
3102 if test "${opsys}" = "hpux9shr"; then
3103 case "${x_libraries}" in
3105 opsysfile
="s/hpux9shxr4.h"
3110 #### Extract some information from the operating system and machine files.
3112 echo "checking the machine- and system-dependent files to find out
3113 - which libraries the lib-src programs will want, and
3114 - whether the GNU malloc routines are usable" 1>&6
3115 echo "configure:3116: checking the machine- and system-dependent files to find out
3116 - which libraries the lib-src programs will want, and
3117 - whether the GNU malloc routines are usable" >&5
3119 ### First figure out CFLAGS (which we use for running the compiler here)
3120 ### and REAL_CFLAGS (which we use for real compilation).
3121 ### The two are the same except on a few systems, where they are made
3122 ### different to work around various lossages. For example,
3123 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3124 ### as implying static linking.
3126 ### If the CFLAGS env var is specified, we use that value
3127 ### instead of the default.
3129 ### It's not important that this name contain the PID; you can't run
3130 ### two configures in the same directory and have anything work
3132 tempcname
="conftest.c"
3135 #include "'${srcdir}'/src/'${opsysfile}'"
3136 #include "'${srcdir}'/src/'${machfile}'"
3137 #ifndef LIBS_MACHINE
3138 #define LIBS_MACHINE
3143 #ifndef C_SWITCH_SYSTEM
3144 #define C_SWITCH_SYSTEM
3146 #ifndef C_SWITCH_MACHINE
3147 #define C_SWITCH_MACHINE
3149 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3150 configure___ c_switch_system=C_SWITCH_SYSTEM
3151 configure___ c_switch_machine=C_SWITCH_MACHINE
3154 #define LIB_X11_LIB -lX11
3157 #ifndef LIBX11_MACHINE
3158 #define LIBX11_MACHINE
3161 #ifndef LIBX11_SYSTEM
3162 #define LIBX11_SYSTEM
3164 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3167 configure___ unexec=UNEXEC
3169 configure___ unexec=unexec.o
3172 #ifdef SYSTEM_MALLOC
3173 configure___ system_malloc=yes
3175 configure___ system_malloc=no
3178 #ifndef C_DEBUG_SWITCH
3179 #define C_DEBUG_SWITCH -g
3182 #ifndef C_OPTIMIZE_SWITCH
3183 #define C_OPTIMIZE_SWITCH -O
3186 #ifndef LD_SWITCH_MACHINE
3187 #define LD_SWITCH_MACHINE
3190 #ifndef LD_SWITCH_SYSTEM
3191 #define LD_SWITCH_SYSTEM
3194 #ifndef LD_SWITCH_X_SITE_AUX
3195 #define LD_SWITCH_X_SITE_AUX
3198 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3199 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3201 #ifdef THIS_IS_CONFIGURE
3203 /* Get the CFLAGS for tests in configure. */
3205 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3207 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3210 #else /* not THIS_IS_CONFIGURE */
3212 /* Get the CFLAGS for real compilation. */
3214 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3216 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3219 #endif /* not THIS_IS_CONFIGURE */
3222 # The value of CPP is a quoted variable reference, so we need to do this
3223 # to get its actual value...
3224 CPP
=`eval "echo $CPP"`
3225 eval `${CPP} -Isrc ${tempcname} \
3226 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3227 if test "x$SPECIFIED_CFLAGS" = x
; then
3228 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3229 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3231 REAL_CFLAGS
="$CFLAGS"
3235 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
3237 ### Compute the unexec source name from the object name.
3238 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
3240 # Do the opsystem or machine files prohibit the use of the GNU malloc?
3241 # Assume not, until told otherwise.
3244 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
3245 echo "configure:3246: checking for malloc_get_state" >&5
3246 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then
3247 echo $ac_n "(cached) $ac_c" 1>&6
3249 cat > conftest.
$ac_ext <<EOF
3250 #line 3251 "configure"
3251 #include "confdefs.h"
3252 /* System header to define __stub macros and hopefully few prototypes,
3253 which can conflict with char malloc_get_state(); below. */
3255 /* Override any gcc2 internal prototype to avoid an error. */
3256 /* We use char because int might match the return type of a gcc2
3257 builtin and then its argument prototype would still apply. */
3258 char malloc_get_state();
3262 /* The GNU C library defines this for functions which it implements
3263 to always fail with ENOSYS. Some functions are actually named
3264 something starting with __ and the normal name is an alias. */
3265 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
3273 if { (eval echo configure
:3274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3275 eval "ac_cv_func_malloc_get_state=yes"
3277 echo "configure: failed program was:" >&5
3278 cat conftest.
$ac_ext >&5
3280 eval "ac_cv_func_malloc_get_state=no"
3285 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
3286 echo "$ac_t""yes" 1>&6
3289 echo "$ac_t""no" 1>&6
3293 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3294 echo "configure:3295: checking for malloc_set_state" >&5
3295 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then
3296 echo $ac_n "(cached) $ac_c" 1>&6
3298 cat > conftest.
$ac_ext <<EOF
3299 #line 3300 "configure"
3300 #include "confdefs.h"
3301 /* System header to define __stub macros and hopefully few prototypes,
3302 which can conflict with char malloc_set_state(); below. */
3304 /* Override any gcc2 internal prototype to avoid an error. */
3305 /* We use char because int might match the return type of a gcc2
3306 builtin and then its argument prototype would still apply. */
3307 char malloc_set_state();
3311 /* The GNU C library defines this for functions which it implements
3312 to always fail with ENOSYS. Some functions are actually named
3313 something starting with __ and the normal name is an alias. */
3314 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3322 if { (eval echo configure
:3323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3324 eval "ac_cv_func_malloc_set_state=yes"
3326 echo "configure: failed program was:" >&5
3327 cat conftest.
$ac_ext >&5
3329 eval "ac_cv_func_malloc_set_state=no"
3334 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3335 echo "$ac_t""yes" 1>&6
3338 echo "$ac_t""no" 1>&6
3342 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3343 echo "configure:3344: checking whether __after_morecore_hook exists" >&5
3344 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then
3345 echo $ac_n "(cached) $ac_c" 1>&6
3347 cat > conftest.
$ac_ext <<EOF
3348 #line 3349 "configure"
3349 #include "confdefs.h"
3350 extern void (* __after_morecore_hook)();
3352 __after_morecore_hook = 0
3355 if { (eval echo configure
:3356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3357 emacs_cv_var___after_morecore_hook
=yes
3359 echo "configure: failed program was:" >&5
3360 cat conftest.
$ac_ext >&5
3362 emacs_cv_var___after_morecore_hook
=no
3367 echo "$ac_t""$emacs_cv_var___after_morecore_hook" 1>&6
3368 if test $emacs_cv_var___after_morecore_hook = no
; then
3371 if test "${system_malloc}" = "yes"; then
3374 (The GNU allocators don't work with this system configuration.)"
3376 if test "$doug_lea_malloc" = "yes" ; then
3377 if test "$GNU_MALLOC" = yes ; then
3379 (Using Doug Lea's new malloc from the GNU C Library.)"
3381 cat >> confdefs.h
<<\EOF
3382 #define DOUG_LEA_MALLOC 1
3387 if test x
"${REL_ALLOC}" = x
; then
3388 REL_ALLOC
=${GNU_MALLOC}
3394 #### Add the libraries to LIBS and check for some functions.
3396 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
3397 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
3399 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
3402 LIBS
="$libsrc_libs $LIBS"
3404 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3405 echo "configure:3406: checking for dnet_ntoa in -ldnet" >&5
3406 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3407 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3410 ac_save_LIBS
="$LIBS"
3412 cat > conftest.
$ac_ext <<EOF
3413 #line 3414 "configure"
3414 #include "confdefs.h"
3415 /* Override any gcc2 internal prototype to avoid an error. */
3416 /* We use char because int might match the return type of a gcc2
3417 builtin and then its argument prototype would still apply. */
3424 if { (eval echo configure
:3425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3426 eval "ac_cv_lib_$ac_lib_var=yes"
3428 echo "configure: failed program was:" >&5
3429 cat conftest.
$ac_ext >&5
3431 eval "ac_cv_lib_$ac_lib_var=no"
3434 LIBS
="$ac_save_LIBS"
3437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3438 echo "$ac_t""yes" 1>&6
3439 ac_tr_lib
=HAVE_LIB
`echo dnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3440 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3441 cat >> confdefs.h
<<EOF
3442 #define $ac_tr_lib 1
3448 echo "$ac_t""no" 1>&6
3452 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
3453 echo "configure:3454: checking for main in -lXbsd" >&5
3454 ac_lib_var
=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
3455 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3456 echo $ac_n "(cached) $ac_c" 1>&6
3458 ac_save_LIBS
="$LIBS"
3460 cat > conftest.
$ac_ext <<EOF
3461 #line 3462 "configure"
3462 #include "confdefs.h"
3468 if { (eval echo configure
:3469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3470 eval "ac_cv_lib_$ac_lib_var=yes"
3472 echo "configure: failed program was:" >&5
3473 cat conftest.
$ac_ext >&5
3475 eval "ac_cv_lib_$ac_lib_var=no"
3478 LIBS
="$ac_save_LIBS"
3481 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3482 echo "$ac_t""yes" 1>&6
3483 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
3485 echo "$ac_t""no" 1>&6
3489 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
3490 echo "configure:3491: checking for cma_open in -lpthreads" >&5
3491 ac_lib_var
=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
3492 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3493 echo $ac_n "(cached) $ac_c" 1>&6
3495 ac_save_LIBS
="$LIBS"
3496 LIBS
="-lpthreads $LIBS"
3497 cat > conftest.
$ac_ext <<EOF
3498 #line 3499 "configure"
3499 #include "confdefs.h"
3500 /* Override any gcc2 internal prototype to avoid an error. */
3501 /* We use char because int might match the return type of a gcc2
3502 builtin and then its argument prototype would still apply. */
3509 if { (eval echo configure
:3510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3511 eval "ac_cv_lib_$ac_lib_var=yes"
3513 echo "configure: failed program was:" >&5
3514 cat conftest.
$ac_ext >&5
3516 eval "ac_cv_lib_$ac_lib_var=no"
3519 LIBS
="$ac_save_LIBS"
3522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3523 echo "$ac_t""yes" 1>&6
3524 ac_tr_lib
=HAVE_LIB
`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3525 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3526 cat >> confdefs.h
<<EOF
3527 #define $ac_tr_lib 1
3530 LIBS
="-lpthreads $LIBS"
3533 echo "$ac_t""no" 1>&6
3537 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6
3538 echo "configure:3539: checking for XFree86 in /usr/X386" >&5
3539 if test -d /usr
/X386
/include
; then
3541 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
3545 echo "$ac_t""$HAVE_XFREE386" 1>&6
3547 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
3548 # for the tests that follow. We set it back to REAL_CFLAGS later on.
3550 if test "${HAVE_X11}" = "yes"; then
3551 DEFS
="$C_SWITCH_X_SITE $DEFS"
3552 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
3554 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
3556 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
3557 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
3558 # but it's more convenient here to set LD_RUN_PATH
3559 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
3560 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
3561 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
3565 if test "${opsys}" = "gnu-linux"; then
3566 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6
3567 echo "configure:3568: checking whether X on GNU/Linux needs -b to link" >&5
3568 cat > conftest.
$ac_ext <<EOF
3569 #line 3570 "configure"
3570 #include "confdefs.h"
3573 XOpenDisplay ("foo");
3576 if { (eval echo configure
:3577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3578 xlinux_first_failure
=no
3580 echo "configure: failed program was:" >&5
3581 cat conftest.
$ac_ext >&5
3583 xlinux_first_failure
=yes
3586 if test "${xlinux_first_failure}" = "yes"; then
3587 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
3588 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
3589 OLD_CPPFLAGS
="$CPPFLAGS"
3591 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
3592 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
3593 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
3594 LIBS
="$LIBS -b i486-linuxaout"
3595 cat > conftest.
$ac_ext <<EOF
3596 #line 3597 "configure"
3597 #include "confdefs.h"
3600 XOpenDisplay ("foo");
3603 if { (eval echo configure
:3604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3605 xlinux_second_failure
=no
3607 echo "configure: failed program was:" >&5
3608 cat conftest.
$ac_ext >&5
3610 xlinux_second_failure
=yes
3613 if test "${xlinux_second_failure}" = "yes"; then
3614 # If we get the same failure with -b, there is no use adding -b.
3615 # So take it out. This plays safe.
3616 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
3617 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
3618 CPPFLAGS
="$OLD_CPPFLAGS"
3620 echo "$ac_t""no" 1>&6
3622 echo "$ac_t""yes" 1>&6
3625 echo "$ac_t""no" 1>&6
3629 for ac_func
in XrmSetDatabase XScreenResourceString \
3630 XScreenNumberOfScreen XSetWMProtocols
3632 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3633 echo "configure:3634: checking for $ac_func" >&5
3634 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3635 echo $ac_n "(cached) $ac_c" 1>&6
3637 cat > conftest.
$ac_ext <<EOF
3638 #line 3639 "configure"
3639 #include "confdefs.h"
3640 /* System header to define __stub macros and hopefully few prototypes,
3641 which can conflict with char $ac_func(); below. */
3643 /* Override any gcc2 internal prototype to avoid an error. */
3644 /* We use char because int might match the return type of a gcc2
3645 builtin and then its argument prototype would still apply. */
3650 /* The GNU C library defines this for functions which it implements
3651 to always fail with ENOSYS. Some functions are actually named
3652 something starting with __ and the normal name is an alias. */
3653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3661 if { (eval echo configure
:3662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3663 eval "ac_cv_func_$ac_func=yes"
3665 echo "configure: failed program was:" >&5
3666 cat conftest.
$ac_ext >&5
3668 eval "ac_cv_func_$ac_func=no"
3673 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3674 echo "$ac_t""yes" 1>&6
3675 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3676 cat >> confdefs.h
<<EOF
3677 #define $ac_tr_func 1
3681 echo "$ac_t""no" 1>&6
3687 if test "${window_system}" = "x11"; then
3688 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6
3689 echo "configure:3690: checking X11 version 6" >&5
3690 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then
3691 echo $ac_n "(cached) $ac_c" 1>&6
3693 cat > conftest.
$ac_ext <<EOF
3694 #line 3695 "configure"
3695 #include "confdefs.h"
3696 #include <X11/Xlib.h>
3698 #if XlibSpecificationRelease < 6
3704 if { (eval echo configure
:3705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3706 emacs_cv_x11_version_6
=yes
3708 echo "configure: failed program was:" >&5
3709 cat conftest.
$ac_ext >&5
3711 emacs_cv_x11_version_6
=no
3716 if test $emacs_cv_x11_version_6 = yes; then
3717 echo "$ac_t""6 or newer" 1>&6
3718 cat >> confdefs.h
<<\EOF
3719 #define HAVE_X11R6 1
3723 echo "$ac_t""before 6" 1>&6
3727 if test "${window_system}" = "x11"; then
3728 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6
3729 echo "configure:3730: checking X11 version 5" >&5
3730 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then
3731 echo $ac_n "(cached) $ac_c" 1>&6
3733 cat > conftest.
$ac_ext <<EOF
3734 #line 3735 "configure"
3735 #include "confdefs.h"
3736 #include <X11/Xlib.h>
3738 #if XlibSpecificationRelease < 5
3744 if { (eval echo configure
:3745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3746 emacs_cv_x11_version_5
=yes
3748 echo "configure: failed program was:" >&5
3749 cat conftest.
$ac_ext >&5
3751 emacs_cv_x11_version_5
=no
3756 if test $emacs_cv_x11_version_5 = yes; then
3757 echo "$ac_t""5 or newer" 1>&6
3759 cat >> confdefs.h
<<\EOF
3760 #define HAVE_X11R5 1
3765 echo "$ac_t""before 5" 1>&6
3769 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
3770 if test x
"${HAVE_X11R5}" = xyes
; then
3771 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6
3772 echo "configure:3773: checking X11 version 5 with Xaw" >&5
3773 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then
3774 echo $ac_n "(cached) $ac_c" 1>&6
3776 cat > conftest.
$ac_ext <<EOF
3777 #line 3778 "configure"
3778 #include "confdefs.h"
3780 #include <X11/Intrinsic.h>
3781 #include <X11/Xaw/Simple.h>
3786 if { (eval echo configure
:3787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3788 emacs_cv_x11_version_5_with_xaw
=yes
3790 echo "configure: failed program was:" >&5
3791 cat conftest.
$ac_ext >&5
3793 emacs_cv_x11_version_5_with_xaw
=no
3798 if test $emacs_cv_x11_version_5_with_xaw = yes; then
3799 echo "$ac_t""5 or newer, with Xaw; use toolkit by default" 1>&6
3802 echo "$ac_t""before 5 or no Xaw; do not use toolkit by default" 1>&6
3810 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
3812 if test "${USE_X_TOOLKIT}" != "none"; then
3813 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6
3814 echo "configure:3815: checking X11 toolkit version" >&5
3815 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then
3816 echo $ac_n "(cached) $ac_c" 1>&6
3818 cat > conftest.
$ac_ext <<EOF
3819 #line 3820 "configure"
3820 #include "confdefs.h"
3821 #include <X11/Intrinsic.h>
3823 #if XtSpecificationRelease < 6
3829 if { (eval echo configure
:3830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3831 emacs_cv_x11_toolkit_version_6
=yes
3833 echo "configure: failed program was:" >&5
3834 cat conftest.
$ac_ext >&5
3836 emacs_cv_x11_toolkit_version_6
=no
3841 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
3842 if test $emacs_cv_x11_toolkit_version_6 = yes; then
3843 echo "$ac_t""6 or newer" 1>&6
3844 cat >> confdefs.h
<<\EOF
3845 #define HAVE_X11XTR6 1
3849 echo "$ac_t""before 6" 1>&6
3853 if test x
$HAVE_X11XTR6 = xyes
; then
3854 LIBS
="-lXt -lSM -lICE $LIBS"
3858 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
3859 echo "configure:3860: checking for XmuConvertStandardSelection in -lXmu" >&5
3860 ac_lib_var
=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
3861 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3862 echo $ac_n "(cached) $ac_c" 1>&6
3864 ac_save_LIBS
="$LIBS"
3866 cat > conftest.
$ac_ext <<EOF
3867 #line 3868 "configure"
3868 #include "confdefs.h"
3869 /* Override any gcc2 internal prototype to avoid an error. */
3870 /* We use char because int might match the return type of a gcc2
3871 builtin and then its argument prototype would still apply. */
3872 char XmuConvertStandardSelection();
3875 XmuConvertStandardSelection()
3878 if { (eval echo configure
:3879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3880 eval "ac_cv_lib_$ac_lib_var=yes"
3882 echo "configure: failed program was:" >&5
3883 cat conftest.
$ac_ext >&5
3885 eval "ac_cv_lib_$ac_lib_var=no"
3888 LIBS
="$ac_save_LIBS"
3891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3892 echo "$ac_t""yes" 1>&6
3893 ac_tr_lib
=HAVE_LIB
`echo Xmu | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3894 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3895 cat >> confdefs.h
<<EOF
3896 #define $ac_tr_lib 1
3902 echo "$ac_t""no" 1>&6
3908 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
3909 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6
3910 echo "configure:3911: checking for Motif version 2.1" >&5
3911 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then
3912 echo $ac_n "(cached) $ac_c" 1>&6
3914 cat > conftest.
$ac_ext <<EOF
3915 #line 3916 "configure"
3916 #include "confdefs.h"
3919 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
3922 Motif version prior to 2.1.
3926 if { (eval echo configure
:3927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3928 emacs_cv_motif_version_2_1
=yes
3930 echo "configure: failed program was:" >&5
3931 cat conftest.
$ac_ext >&5
3933 emacs_cv_motif_version_2_1
=no
3938 echo "$ac_t""$emacs_cv_motif_version_2_1" 1>&6
3939 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
3940 if test $emacs_cv_motif_version_2_1 = yes; then
3941 cat >> confdefs.h
<<\EOF
3942 #define HAVE_MOTIF_2_1 1
3945 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6
3946 echo "configure:3947: checking for XpCreateContext in -lXp" >&5
3947 ac_lib_var
=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`
3948 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3949 echo $ac_n "(cached) $ac_c" 1>&6
3951 ac_save_LIBS
="$LIBS"
3953 cat > conftest.
$ac_ext <<EOF
3954 #line 3955 "configure"
3955 #include "confdefs.h"
3956 /* Override any gcc2 internal prototype to avoid an error. */
3957 /* We use char because int might match the return type of a gcc2
3958 builtin and then its argument prototype would still apply. */
3959 char XpCreateContext();
3965 if { (eval echo configure
:3966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3967 eval "ac_cv_lib_$ac_lib_var=yes"
3969 echo "configure: failed program was:" >&5
3970 cat conftest.
$ac_ext >&5
3972 eval "ac_cv_lib_$ac_lib_var=no"
3975 LIBS
="$ac_save_LIBS"
3978 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3979 echo "$ac_t""yes" 1>&6
3980 ac_tr_lib
=HAVE_LIB
`echo Xp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3981 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3982 cat >> confdefs.h
<<EOF
3983 #define $ac_tr_lib 1
3989 echo "$ac_t""no" 1>&6
3995 ### Is -lXaw3d available?
3997 if test "${HAVE_X11}" = "yes"; then
3998 if test "${USE_X_TOOLKIT}" != "none"; then
3999 old_c_flags
="${CFLAGS}"
4000 CFLAGS
="${LD_SWITCH_X_SITE}"
4001 ac_safe
=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'`
4002 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6
4003 echo "configure:4004: checking for X11/Xaw3d/Scrollbar.h" >&5
4004 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4005 echo $ac_n "(cached) $ac_c" 1>&6
4007 cat > conftest.
$ac_ext <<EOF
4008 #line 4009 "configure"
4009 #include "confdefs.h"
4010 #include <X11/Xaw3d/Scrollbar.h>
4012 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4013 { (eval echo configure
:4014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4014 ac_err
=`grep -v '^ *+' conftest.out`
4015 if test -z "$ac_err"; then
4017 eval "ac_cv_header_$ac_safe=yes"
4020 echo "configure: failed program was:" >&5
4021 cat conftest.
$ac_ext >&5
4023 eval "ac_cv_header_$ac_safe=no"
4027 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4028 echo "$ac_t""yes" 1>&6
4029 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
4030 echo "configure:4031: checking for XawScrollbarSetThumb in -lXaw3d" >&5
4031 ac_lib_var
=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
4032 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4033 echo $ac_n "(cached) $ac_c" 1>&6
4035 ac_save_LIBS
="$LIBS"
4036 LIBS
="-lXaw3d -lX11 $LIBS"
4037 cat > conftest.
$ac_ext <<EOF
4038 #line 4039 "configure"
4039 #include "confdefs.h"
4040 /* Override any gcc2 internal prototype to avoid an error. */
4041 /* We use char because int might match the return type of a gcc2
4042 builtin and then its argument prototype would still apply. */
4043 char XawScrollbarSetThumb();
4046 XawScrollbarSetThumb()
4049 if { (eval echo configure
:4050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4051 eval "ac_cv_lib_$ac_lib_var=yes"
4053 echo "configure: failed program was:" >&5
4054 cat conftest.
$ac_ext >&5
4056 eval "ac_cv_lib_$ac_lib_var=no"
4059 LIBS
="$ac_save_LIBS"
4062 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4063 echo "$ac_t""yes" 1>&6
4066 echo "$ac_t""no" 1>&6
4070 echo "$ac_t""no" 1>&6
4073 CFLAGS
="${old_c_flags}"
4075 if test "${HAVE_XAW3D}" = "yes"; then
4076 cat >> confdefs.h
<<\EOF
4077 #define HAVE_XAW3D 1
4085 USE_TOOLKIT_SCROLL_BARS
=no
4086 if test "${with_toolkit_scroll_bars}" != "no"; then
4087 if test "${USE_X_TOOLKIT}" != "none"; then
4088 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
4089 cat >> confdefs.h
<<\EOF
4090 #define USE_TOOLKIT_SCROLL_BARS 1
4094 USE_TOOLKIT_SCROLL_BARS
=yes
4095 elif test "${HAVE_XAW3D}" = "yes"; then
4096 cat >> confdefs.h
<<\EOF
4097 #define USE_TOOLKIT_SCROLL_BARS 1
4100 USE_TOOLKIT_SCROLL_BARS
=yes
4105 ### Use -lXpm if available, unless `--with-xpm=no'.
4107 if test "${HAVE_X11}" = "yes"; then
4108 if test "${with_xpm}" != "no"; then
4109 old_c_flags
="${CFLAGS}"
4110 CFLAGS
="${LD_SWITCH_X_SITE}"
4111 ac_safe
=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4112 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4113 echo "configure:4114: checking for X11/xpm.h" >&5
4114 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4115 echo $ac_n "(cached) $ac_c" 1>&6
4117 cat > conftest.
$ac_ext <<EOF
4118 #line 4119 "configure"
4119 #include "confdefs.h"
4120 #include <X11/xpm.h>
4122 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4123 { (eval echo configure
:4124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4124 ac_err
=`grep -v '^ *+' conftest.out`
4125 if test -z "$ac_err"; then
4127 eval "ac_cv_header_$ac_safe=yes"
4130 echo "configure: failed program was:" >&5
4131 cat conftest.
$ac_ext >&5
4133 eval "ac_cv_header_$ac_safe=no"
4137 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4138 echo "$ac_t""yes" 1>&6
4139 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
4140 echo "configure:4141: checking for XpmReadFileToPixmap in -lXpm" >&5
4141 ac_lib_var
=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
4142 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4143 echo $ac_n "(cached) $ac_c" 1>&6
4145 ac_save_LIBS
="$LIBS"
4146 LIBS
="-lXpm -lX11 $LIBS"
4147 cat > conftest.
$ac_ext <<EOF
4148 #line 4149 "configure"
4149 #include "confdefs.h"
4150 /* Override any gcc2 internal prototype to avoid an error. */
4151 /* We use char because int might match the return type of a gcc2
4152 builtin and then its argument prototype would still apply. */
4153 char XpmReadFileToPixmap();
4156 XpmReadFileToPixmap()
4159 if { (eval echo configure
:4160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4161 eval "ac_cv_lib_$ac_lib_var=yes"
4163 echo "configure: failed program was:" >&5
4164 cat conftest.
$ac_ext >&5
4166 eval "ac_cv_lib_$ac_lib_var=no"
4169 LIBS
="$ac_save_LIBS"
4172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4173 echo "$ac_t""yes" 1>&6
4176 echo "$ac_t""no" 1>&6
4180 echo "$ac_t""no" 1>&6
4183 CFLAGS
="${old_c_flags}"
4186 if test "${HAVE_XPM}" = "yes"; then
4187 cat >> confdefs.h
<<\EOF
4194 ### Use -ljpeg if available, unless `--with-jpeg=no'.
4196 if test "${HAVE_X11}" = "yes"; then
4197 if test "${with_jpeg}" != "no"; then
4198 old_c_flags
="${CFLAGS}"
4199 CFLAGS
="${LD_SWITCH_X_SITE} ${CFLAGS}"
4200 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
4201 echo "configure:4202: checking for jpeg_destroy_compress in -ljpeg" >&5
4202 ac_lib_var
=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
4203 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4204 echo $ac_n "(cached) $ac_c" 1>&6
4206 ac_save_LIBS
="$LIBS"
4207 LIBS
="-ljpeg -lX11 $LIBS"
4208 cat > conftest.
$ac_ext <<EOF
4209 #line 4210 "configure"
4210 #include "confdefs.h"
4211 /* Override any gcc2 internal prototype to avoid an error. */
4212 /* We use char because int might match the return type of a gcc2
4213 builtin and then its argument prototype would still apply. */
4214 char jpeg_destroy_compress();
4217 jpeg_destroy_compress()
4220 if { (eval echo configure
:4221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4222 eval "ac_cv_lib_$ac_lib_var=yes"
4224 echo "configure: failed program was:" >&5
4225 cat conftest.
$ac_ext >&5
4227 eval "ac_cv_lib_$ac_lib_var=no"
4230 LIBS
="$ac_save_LIBS"
4233 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4234 echo "$ac_t""yes" 1>&6
4237 echo "$ac_t""no" 1>&6
4240 CFLAGS
="${old_c_flags}"
4243 if test "${HAVE_JPEG}" = "yes"; then
4244 cat >> confdefs.h
<<\EOF
4251 ### Use -lpng if available, unless `--with-png=no'.
4253 if test "${HAVE_X11}" = "yes"; then
4254 if test "${with_png}" != "no"; then
4255 old_c_flags
="${CFLAGS}"
4256 CFLAGS
="${LD_SWITCH_X_SITE} ${CFLAGS}"
4257 ac_safe
=`echo "png.h" | sed 'y%./+-%__p_%'`
4258 echo $ac_n "checking for png.h""... $ac_c" 1>&6
4259 echo "configure:4260: checking for png.h" >&5
4260 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4261 echo $ac_n "(cached) $ac_c" 1>&6
4263 cat > conftest.
$ac_ext <<EOF
4264 #line 4265 "configure"
4265 #include "confdefs.h"
4268 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4269 { (eval echo configure
:4270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4270 ac_err
=`grep -v '^ *+' conftest.out`
4271 if test -z "$ac_err"; then
4273 eval "ac_cv_header_$ac_safe=yes"
4276 echo "configure: failed program was:" >&5
4277 cat conftest.
$ac_ext >&5
4279 eval "ac_cv_header_$ac_safe=no"
4283 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4284 echo "$ac_t""yes" 1>&6
4285 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6
4286 echo "configure:4287: checking for png_set_expand in -lpng" >&5
4287 ac_lib_var
=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'`
4288 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4289 echo $ac_n "(cached) $ac_c" 1>&6
4291 ac_save_LIBS
="$LIBS"
4292 LIBS
="-lpng -lX11 -lz -lm $LIBS"
4293 cat > conftest.
$ac_ext <<EOF
4294 #line 4295 "configure"
4295 #include "confdefs.h"
4296 /* Override any gcc2 internal prototype to avoid an error. */
4297 /* We use char because int might match the return type of a gcc2
4298 builtin and then its argument prototype would still apply. */
4299 char png_set_expand();
4305 if { (eval echo configure
:4306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4307 eval "ac_cv_lib_$ac_lib_var=yes"
4309 echo "configure: failed program was:" >&5
4310 cat conftest.
$ac_ext >&5
4312 eval "ac_cv_lib_$ac_lib_var=no"
4315 LIBS
="$ac_save_LIBS"
4318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4319 echo "$ac_t""yes" 1>&6
4322 echo "$ac_t""no" 1>&6
4326 echo "$ac_t""no" 1>&6
4329 CFLAGS
="${old_c_flags}"
4332 if test "${HAVE_PNG}" = "yes"; then
4333 cat >> confdefs.h
<<\EOF
4340 ### Use -ltiff if available, unless `--with-tiff=no'.
4342 if test "${HAVE_X11}" = "yes"; then
4343 if test "${with_tiff}" != "no"; then
4344 old_c_flags
="${CFLAGS}"
4345 CFLAGS
="${LD_SWITCH_X_SITE} ${CFLAGS}"
4346 ac_safe
=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
4347 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
4348 echo "configure:4349: checking for tiffio.h" >&5
4349 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4350 echo $ac_n "(cached) $ac_c" 1>&6
4352 cat > conftest.
$ac_ext <<EOF
4353 #line 4354 "configure"
4354 #include "confdefs.h"
4357 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4358 { (eval echo configure
:4359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4359 ac_err
=`grep -v '^ *+' conftest.out`
4360 if test -z "$ac_err"; then
4362 eval "ac_cv_header_$ac_safe=yes"
4365 echo "configure: failed program was:" >&5
4366 cat conftest.
$ac_ext >&5
4368 eval "ac_cv_header_$ac_safe=no"
4372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4373 echo "$ac_t""yes" 1>&6
4374 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4375 echo "configure:4376: checking for TIFFGetVersion in -ltiff" >&5
4376 ac_lib_var
=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4377 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4378 echo $ac_n "(cached) $ac_c" 1>&6
4380 ac_save_LIBS
="$LIBS"
4381 LIBS
="-ltiff -lX11 -lm $LIBS"
4382 cat > conftest.
$ac_ext <<EOF
4383 #line 4384 "configure"
4384 #include "confdefs.h"
4385 /* Override any gcc2 internal prototype to avoid an error. */
4386 /* We use char because int might match the return type of a gcc2
4387 builtin and then its argument prototype would still apply. */
4388 char TIFFGetVersion();
4394 if { (eval echo configure
:4395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4396 eval "ac_cv_lib_$ac_lib_var=yes"
4398 echo "configure: failed program was:" >&5
4399 cat conftest.
$ac_ext >&5
4401 eval "ac_cv_lib_$ac_lib_var=no"
4404 LIBS
="$ac_save_LIBS"
4407 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4408 echo "$ac_t""yes" 1>&6
4411 echo "$ac_t""no" 1>&6
4415 echo "$ac_t""no" 1>&6
4418 CFLAGS
="${old_c_flags}"
4421 if test "${HAVE_TIFF}" = "yes"; then
4422 cat >> confdefs.h
<<\EOF
4429 ### Use -lgif if available, unless `--with-gif=no'.
4431 if test "${HAVE_X11}" = "yes"; then
4432 if test "${with_gif}" != "no"; then
4433 old_c_flags
="${CFLAGS}"
4434 CFLAGS
="${LD_SWITCH_X_SITE} ${CFLAGS}"
4435 ac_safe
=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
4436 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
4437 echo "configure:4438: checking for gif_lib.h" >&5
4438 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4439 echo $ac_n "(cached) $ac_c" 1>&6
4441 cat > conftest.
$ac_ext <<EOF
4442 #line 4443 "configure"
4443 #include "confdefs.h"
4444 #include <gif_lib.h>
4446 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4447 { (eval echo configure
:4448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4448 ac_err
=`grep -v '^ *+' conftest.out`
4449 if test -z "$ac_err"; then
4451 eval "ac_cv_header_$ac_safe=yes"
4454 echo "configure: failed program was:" >&5
4455 cat conftest.
$ac_ext >&5
4457 eval "ac_cv_header_$ac_safe=no"
4461 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4462 echo "$ac_t""yes" 1>&6
4463 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
4464 echo "configure:4465: checking for DGifOpenFileName in -lungif" >&5
4465 ac_lib_var
=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4466 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4467 echo $ac_n "(cached) $ac_c" 1>&6
4469 ac_save_LIBS
="$LIBS"
4470 LIBS
="-lungif -lX11 $LIBS"
4471 cat > conftest.
$ac_ext <<EOF
4472 #line 4473 "configure"
4473 #include "confdefs.h"
4474 /* Override any gcc2 internal prototype to avoid an error. */
4475 /* We use char because int might match the return type of a gcc2
4476 builtin and then its argument prototype would still apply. */
4477 char DGifOpenFileName();
4483 if { (eval echo configure
:4484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4485 eval "ac_cv_lib_$ac_lib_var=yes"
4487 echo "configure: failed program was:" >&5
4488 cat conftest.
$ac_ext >&5
4490 eval "ac_cv_lib_$ac_lib_var=no"
4493 LIBS
="$ac_save_LIBS"
4496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4497 echo "$ac_t""yes" 1>&6
4500 echo "$ac_t""no" 1>&6
4504 echo "$ac_t""no" 1>&6
4507 CFLAGS
="${old_c_flags}"
4510 if test "${HAVE_GIF}" = "yes"; then
4511 cat >> confdefs.h
<<\EOF
4518 # If netdb.h doesn't declare h_errno, we must declare it by hand.
4519 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
4520 echo "configure:4521: checking whether netdb declares h_errno" >&5
4521 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
4522 echo $ac_n "(cached) $ac_c" 1>&6
4524 cat > conftest.
$ac_ext <<EOF
4525 #line 4526 "configure"
4526 #include "confdefs.h"
4532 if { (eval echo configure
:4533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4534 emacs_cv_netdb_declares_h_errno
=yes
4536 echo "configure: failed program was:" >&5
4537 cat conftest.
$ac_ext >&5
4539 emacs_cv_netdb_declares_h_errno
=no
4544 echo "$ac_t""$emacs_cv_netdb_declares_h_errno" 1>&6
4545 if test $emacs_cv_netdb_declares_h_errno = yes; then
4546 cat >> confdefs.h
<<\EOF
4547 #define HAVE_H_ERRNO 1
4552 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4553 # for constant arguments. Useless!
4554 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4555 echo "configure:4556: checking for working alloca.h" >&5
4556 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4557 echo $ac_n "(cached) $ac_c" 1>&6
4559 cat > conftest.
$ac_ext <<EOF
4560 #line 4561 "configure"
4561 #include "confdefs.h"
4564 char *p = alloca(2 * sizeof(int));
4567 if { (eval echo configure
:4568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4569 ac_cv_header_alloca_h
=yes
4571 echo "configure: failed program was:" >&5
4572 cat conftest.
$ac_ext >&5
4574 ac_cv_header_alloca_h
=no
4579 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4580 if test $ac_cv_header_alloca_h = yes; then
4581 cat >> confdefs.h
<<\EOF
4582 #define HAVE_ALLOCA_H 1
4587 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4588 echo "configure:4589: checking for alloca" >&5
4589 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4590 echo $ac_n "(cached) $ac_c" 1>&6
4592 cat > conftest.
$ac_ext <<EOF
4593 #line 4594 "configure"
4594 #include "confdefs.h"
4597 # define alloca __builtin_alloca
4600 # include <alloca.h>
4605 # ifndef alloca /* predefined by HP cc +Olibcalls */
4613 char *p = (char *) alloca(1);
4616 if { (eval echo configure
:4617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4618 ac_cv_func_alloca_works
=yes
4620 echo "configure: failed program was:" >&5
4621 cat conftest.
$ac_ext >&5
4623 ac_cv_func_alloca_works
=no
4628 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4629 if test $ac_cv_func_alloca_works = yes; then
4630 cat >> confdefs.h
<<\EOF
4631 #define HAVE_ALLOCA 1
4636 if test $ac_cv_func_alloca_works = no
; then
4637 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4638 # that cause trouble. Some versions do not even contain alloca or
4639 # contain a buggy version. If you still want to use their alloca,
4640 # use ar to extract alloca.o from them instead of compiling alloca.c.
4642 cat >> confdefs.h
<<\EOF
4647 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4648 echo "configure:4649: checking whether alloca needs Cray hooks" >&5
4649 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4650 echo $ac_n "(cached) $ac_c" 1>&6
4652 cat > conftest.
$ac_ext <<EOF
4653 #line 4654 "configure"
4654 #include "confdefs.h"
4655 #if defined(CRAY) && ! defined(CRAY2)
4662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4663 egrep "webecray" >/dev
/null
2>&1; then
4674 echo "$ac_t""$ac_cv_os_cray" 1>&6
4675 if test $ac_cv_os_cray = yes; then
4676 for ac_func
in _getb67 GETB67 getb67
; do
4677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4678 echo "configure:4679: checking for $ac_func" >&5
4679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4680 echo $ac_n "(cached) $ac_c" 1>&6
4682 cat > conftest.
$ac_ext <<EOF
4683 #line 4684 "configure"
4684 #include "confdefs.h"
4685 /* System header to define __stub macros and hopefully few prototypes,
4686 which can conflict with char $ac_func(); below. */
4688 /* Override any gcc2 internal prototype to avoid an error. */
4689 /* We use char because int might match the return type of a gcc2
4690 builtin and then its argument prototype would still apply. */
4695 /* The GNU C library defines this for functions which it implements
4696 to always fail with ENOSYS. Some functions are actually named
4697 something starting with __ and the normal name is an alias. */
4698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4706 if { (eval echo configure
:4707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4708 eval "ac_cv_func_$ac_func=yes"
4710 echo "configure: failed program was:" >&5
4711 cat conftest.
$ac_ext >&5
4713 eval "ac_cv_func_$ac_func=no"
4718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4719 echo "$ac_t""yes" 1>&6
4720 cat >> confdefs.h
<<EOF
4721 #define CRAY_STACKSEG_END $ac_func
4726 echo "$ac_t""no" 1>&6
4732 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4733 echo "configure:4734: checking stack direction for C alloca" >&5
4734 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4735 echo $ac_n "(cached) $ac_c" 1>&6
4737 if test "$cross_compiling" = yes; then
4738 ac_cv_c_stack_direction
=0
4740 cat > conftest.
$ac_ext <<EOF
4741 #line 4742 "configure"
4742 #include "confdefs.h"
4743 find_stack_direction ()
4745 static char *addr = 0;
4750 return find_stack_direction ();
4753 return (&dummy > addr) ? 1 : -1;
4757 exit (find_stack_direction() < 0);
4760 if { (eval echo configure
:4761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4762 ac_cv_c_stack_direction
=1
4764 echo "configure: failed program was:" >&5
4765 cat conftest.
$ac_ext >&5
4767 ac_cv_c_stack_direction
=-1
4774 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4775 cat >> confdefs.h
<<EOF
4776 #define STACK_DIRECTION $ac_cv_c_stack_direction
4782 # fmod, logb, and frexp are found in -lm on most systems.
4783 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
4784 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
4785 echo "configure:4786: checking for sqrt in -lm" >&5
4786 ac_lib_var
=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
4787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4788 echo $ac_n "(cached) $ac_c" 1>&6
4790 ac_save_LIBS
="$LIBS"
4792 cat > conftest.
$ac_ext <<EOF
4793 #line 4794 "configure"
4794 #include "confdefs.h"
4795 /* Override any gcc2 internal prototype to avoid an error. */
4796 /* We use char because int might match the return type of a gcc2
4797 builtin and then its argument prototype would still apply. */
4804 if { (eval echo configure
:4805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4806 eval "ac_cv_lib_$ac_lib_var=yes"
4808 echo "configure: failed program was:" >&5
4809 cat conftest.
$ac_ext >&5
4811 eval "ac_cv_lib_$ac_lib_var=no"
4814 LIBS
="$ac_save_LIBS"
4817 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4818 echo "$ac_t""yes" 1>&6
4819 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4820 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4821 cat >> confdefs.h
<<EOF
4822 #define $ac_tr_lib 1
4828 echo "$ac_t""no" 1>&6
4832 # Check for mail-locking functions in a "mail" library
4833 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
4834 echo "configure:4835: checking for maillock in -lmail" >&5
4835 ac_lib_var
=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
4836 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4837 echo $ac_n "(cached) $ac_c" 1>&6
4839 ac_save_LIBS
="$LIBS"
4841 cat > conftest.
$ac_ext <<EOF
4842 #line 4843 "configure"
4843 #include "confdefs.h"
4844 /* Override any gcc2 internal prototype to avoid an error. */
4845 /* We use char because int might match the return type of a gcc2
4846 builtin and then its argument prototype would still apply. */
4853 if { (eval echo configure
:4854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4855 eval "ac_cv_lib_$ac_lib_var=yes"
4857 echo "configure: failed program was:" >&5
4858 cat conftest.
$ac_ext >&5
4860 eval "ac_cv_lib_$ac_lib_var=no"
4863 LIBS
="$ac_save_LIBS"
4866 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4867 echo "$ac_t""yes" 1>&6
4868 ac_tr_lib
=HAVE_LIB
`echo mail | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4869 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4870 cat >> confdefs.h
<<EOF
4871 #define $ac_tr_lib 1
4877 echo "$ac_t""no" 1>&6
4880 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6
4881 echo "configure:4882: checking for maillock in -llockfile" >&5
4882 ac_lib_var
=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`
4883 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4884 echo $ac_n "(cached) $ac_c" 1>&6
4886 ac_save_LIBS
="$LIBS"
4887 LIBS
="-llockfile $LIBS"
4888 cat > conftest.
$ac_ext <<EOF
4889 #line 4890 "configure"
4890 #include "confdefs.h"
4891 /* Override any gcc2 internal prototype to avoid an error. */
4892 /* We use char because int might match the return type of a gcc2
4893 builtin and then its argument prototype would still apply. */
4900 if { (eval echo configure
:4901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4902 eval "ac_cv_lib_$ac_lib_var=yes"
4904 echo "configure: failed program was:" >&5
4905 cat conftest.
$ac_ext >&5
4907 eval "ac_cv_lib_$ac_lib_var=no"
4910 LIBS
="$ac_save_LIBS"
4913 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4914 echo "$ac_t""yes" 1>&6
4915 ac_tr_lib
=HAVE_LIB
`echo lockfile | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4916 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4917 cat >> confdefs.h
<<EOF
4918 #define $ac_tr_lib 1
4921 LIBS
="-llockfile $LIBS"
4924 echo "$ac_t""no" 1>&6
4927 # If we have the shared liblockfile, assume we must use it for mail
4928 # locking (e.g. Debian). If we couldn't link against liblockfile
4929 # (no liblockfile.a installed), ensure that we don't need to.
4930 if test "$ac_cv_lib_lockfile_maillock" = no
; then
4931 # Extract the first word of "liblockfile.so", so it can be a program name with args.
4932 set dummy liblockfile.so
; ac_word
=$2
4933 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4934 echo "configure:4935: checking for $ac_word" >&5
4935 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then
4936 echo $ac_n "(cached) $ac_c" 1>&6
4938 if test -n "$liblockfile"; then
4939 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
4941 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4942 for ac_dir
in /usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH$ac_dummy; do
4943 test -z "$ac_dir" && ac_dir
=.
4944 if test -f $ac_dir/$ac_word; then
4945 ac_cv_prog_liblockfile
="yes"
4950 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
4953 liblockfile
="$ac_cv_prog_liblockfile"
4954 if test -n "$liblockfile"; then
4955 echo "$ac_t""$liblockfile" 1>&6
4957 echo "$ac_t""no" 1>&6
4960 if test $ac_cv_prog_liblockfile = yes; then
4961 { echo "configure: error: Shared liblockfile found but can't link against it.
4962 This probably means that movemail could lose mail.
4963 There may be a \`development' package to install containing liblockfile." 1>&2; exit 1; }
4964 else cat >> confdefs.h
<<\EOF
4965 #define LIBMAIL -llockfile
4971 for ac_func
in touchlock
4973 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4974 echo "configure:4975: checking for $ac_func" >&5
4975 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4976 echo $ac_n "(cached) $ac_c" 1>&6
4978 cat > conftest.
$ac_ext <<EOF
4979 #line 4980 "configure"
4980 #include "confdefs.h"
4981 /* System header to define __stub macros and hopefully few prototypes,
4982 which can conflict with char $ac_func(); below. */
4984 /* Override any gcc2 internal prototype to avoid an error. */
4985 /* We use char because int might match the return type of a gcc2
4986 builtin and then its argument prototype would still apply. */
4991 /* The GNU C library defines this for functions which it implements
4992 to always fail with ENOSYS. Some functions are actually named
4993 something starting with __ and the normal name is an alias. */
4994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5002 if { (eval echo configure
:5003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5004 eval "ac_cv_func_$ac_func=yes"
5006 echo "configure: failed program was:" >&5
5007 cat conftest.
$ac_ext >&5
5009 eval "ac_cv_func_$ac_func=no"
5014 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5015 echo "$ac_t""yes" 1>&6
5016 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5017 cat >> confdefs.h
<<EOF
5018 #define $ac_tr_func 1
5022 echo "$ac_t""no" 1>&6
5026 for ac_hdr
in maillock.h
5028 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5029 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5030 echo "configure:5031: checking for $ac_hdr" >&5
5031 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5032 echo $ac_n "(cached) $ac_c" 1>&6
5034 cat > conftest.
$ac_ext <<EOF
5035 #line 5036 "configure"
5036 #include "confdefs.h"
5039 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5040 { (eval echo configure
:5041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5041 ac_err
=`grep -v '^ *+' conftest.out`
5042 if test -z "$ac_err"; then
5044 eval "ac_cv_header_$ac_safe=yes"
5047 echo "configure: failed program was:" >&5
5048 cat conftest.
$ac_ext >&5
5050 eval "ac_cv_header_$ac_safe=no"
5054 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5055 echo "$ac_t""yes" 1>&6
5056 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5057 cat >> confdefs.h
<<EOF
5058 #define $ac_tr_hdr 1
5062 echo "$ac_t""no" 1>&6
5067 for ac_func
in gettimeofday gethostname getdomainname dup2 \
5068 rename closedir mkdir
rmdir sysinfo \
5069 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
5070 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
5071 utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo \
5072 __fpending ftello getloadavg mblen mbrlen strsignal setitimer ualarm
5074 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5075 echo "configure:5076: checking for $ac_func" >&5
5076 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5077 echo $ac_n "(cached) $ac_c" 1>&6
5079 cat > conftest.
$ac_ext <<EOF
5080 #line 5081 "configure"
5081 #include "confdefs.h"
5082 /* System header to define __stub macros and hopefully few prototypes,
5083 which can conflict with char $ac_func(); below. */
5085 /* Override any gcc2 internal prototype to avoid an error. */
5086 /* We use char because int might match the return type of a gcc2
5087 builtin and then its argument prototype would still apply. */
5092 /* The GNU C library defines this for functions which it implements
5093 to always fail with ENOSYS. Some functions are actually named
5094 something starting with __ and the normal name is an alias. */
5095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5103 if { (eval echo configure
:5104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5105 eval "ac_cv_func_$ac_func=yes"
5107 echo "configure: failed program was:" >&5
5108 cat conftest.
$ac_ext >&5
5110 eval "ac_cv_func_$ac_func=no"
5115 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5116 echo "$ac_t""yes" 1>&6
5117 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5118 cat >> confdefs.h
<<EOF
5119 #define $ac_tr_func 1
5123 echo "$ac_t""no" 1>&6
5128 # Check this now, so that we will NOT find the above functions in ncurses.
5129 # That is because we have not set up to link ncurses in lib-src.
5130 # It's better to believe a function is not available
5131 # than to expect to find it in ncurses.
5132 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
5133 echo "configure:5134: checking for tparm in -lncurses" >&5
5134 ac_lib_var
=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
5135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5136 echo $ac_n "(cached) $ac_c" 1>&6
5138 ac_save_LIBS
="$LIBS"
5139 LIBS
="-lncurses $LIBS"
5140 cat > conftest.
$ac_ext <<EOF
5141 #line 5142 "configure"
5142 #include "confdefs.h"
5143 /* Override any gcc2 internal prototype to avoid an error. */
5144 /* We use char because int might match the return type of a gcc2
5145 builtin and then its argument prototype would still apply. */
5152 if { (eval echo configure
:5153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5154 eval "ac_cv_lib_$ac_lib_var=yes"
5156 echo "configure: failed program was:" >&5
5157 cat conftest.
$ac_ext >&5
5159 eval "ac_cv_lib_$ac_lib_var=no"
5162 LIBS
="$ac_save_LIBS"
5165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5166 echo "$ac_t""yes" 1>&6
5167 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5168 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5169 cat >> confdefs.h
<<EOF
5170 #define $ac_tr_lib 1
5173 LIBS
="-lncurses $LIBS"
5176 echo "$ac_t""no" 1>&6
5180 # These tell us which Kerberos-related libraries to use.
5181 if test "${with_kerberos+set}" = set; then
5182 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
5183 echo "configure:5184: checking for com_err in -lcom_err" >&5
5184 ac_lib_var
=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
5185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5186 echo $ac_n "(cached) $ac_c" 1>&6
5188 ac_save_LIBS
="$LIBS"
5189 LIBS
="-lcom_err $LIBS"
5190 cat > conftest.
$ac_ext <<EOF
5191 #line 5192 "configure"
5192 #include "confdefs.h"
5193 /* Override any gcc2 internal prototype to avoid an error. */
5194 /* We use char because int might match the return type of a gcc2
5195 builtin and then its argument prototype would still apply. */
5202 if { (eval echo configure
:5203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5204 eval "ac_cv_lib_$ac_lib_var=yes"
5206 echo "configure: failed program was:" >&5
5207 cat conftest.
$ac_ext >&5
5209 eval "ac_cv_lib_$ac_lib_var=no"
5212 LIBS
="$ac_save_LIBS"
5215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5216 echo "$ac_t""yes" 1>&6
5217 ac_tr_lib
=HAVE_LIB
`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5218 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5219 cat >> confdefs.h
<<EOF
5220 #define $ac_tr_lib 1
5223 LIBS
="-lcom_err $LIBS"
5226 echo "$ac_t""no" 1>&6
5229 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6
5230 echo "configure:5231: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
5231 ac_lib_var
=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
5232 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5233 echo $ac_n "(cached) $ac_c" 1>&6
5235 ac_save_LIBS
="$LIBS"
5236 LIBS
="-lk5crypto $LIBS"
5237 cat > conftest.
$ac_ext <<EOF
5238 #line 5239 "configure"
5239 #include "confdefs.h"
5240 /* Override any gcc2 internal prototype to avoid an error. */
5241 /* We use char because int might match the return type of a gcc2
5242 builtin and then its argument prototype would still apply. */
5243 char mit_des_cbc_encrypt();
5246 mit_des_cbc_encrypt()
5249 if { (eval echo configure
:5250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5251 eval "ac_cv_lib_$ac_lib_var=yes"
5253 echo "configure: failed program was:" >&5
5254 cat conftest.
$ac_ext >&5
5256 eval "ac_cv_lib_$ac_lib_var=no"
5259 LIBS
="$ac_save_LIBS"
5262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5263 echo "$ac_t""yes" 1>&6
5264 ac_tr_lib
=HAVE_LIB
`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5265 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5266 cat >> confdefs.h
<<EOF
5267 #define $ac_tr_lib 1
5270 LIBS
="-lk5crypto $LIBS"
5273 echo "$ac_t""no" 1>&6
5276 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
5277 echo "configure:5278: checking for mit_des_cbc_encrypt in -lcrypto" >&5
5278 ac_lib_var
=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
5279 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5280 echo $ac_n "(cached) $ac_c" 1>&6
5282 ac_save_LIBS
="$LIBS"
5283 LIBS
="-lcrypto $LIBS"
5284 cat > conftest.
$ac_ext <<EOF
5285 #line 5286 "configure"
5286 #include "confdefs.h"
5287 /* Override any gcc2 internal prototype to avoid an error. */
5288 /* We use char because int might match the return type of a gcc2
5289 builtin and then its argument prototype would still apply. */
5290 char mit_des_cbc_encrypt();
5293 mit_des_cbc_encrypt()
5296 if { (eval echo configure
:5297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5298 eval "ac_cv_lib_$ac_lib_var=yes"
5300 echo "configure: failed program was:" >&5
5301 cat conftest.
$ac_ext >&5
5303 eval "ac_cv_lib_$ac_lib_var=no"
5306 LIBS
="$ac_save_LIBS"
5309 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5310 echo "$ac_t""yes" 1>&6
5311 ac_tr_lib
=HAVE_LIB
`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5312 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5313 cat >> confdefs.h
<<EOF
5314 #define $ac_tr_lib 1
5317 LIBS
="-lcrypto $LIBS"
5320 echo "$ac_t""no" 1>&6
5323 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6
5324 echo "configure:5325: checking for krb5_init_context in -lkrb5" >&5
5325 ac_lib_var
=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'`
5326 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5327 echo $ac_n "(cached) $ac_c" 1>&6
5329 ac_save_LIBS
="$LIBS"
5331 cat > conftest.
$ac_ext <<EOF
5332 #line 5333 "configure"
5333 #include "confdefs.h"
5334 /* Override any gcc2 internal prototype to avoid an error. */
5335 /* We use char because int might match the return type of a gcc2
5336 builtin and then its argument prototype would still apply. */
5337 char krb5_init_context();
5343 if { (eval echo configure
:5344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5345 eval "ac_cv_lib_$ac_lib_var=yes"
5347 echo "configure: failed program was:" >&5
5348 cat conftest.
$ac_ext >&5
5350 eval "ac_cv_lib_$ac_lib_var=no"
5353 LIBS
="$ac_save_LIBS"
5356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5357 echo "$ac_t""yes" 1>&6
5358 ac_tr_lib
=HAVE_LIB
`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5359 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5360 cat >> confdefs.h
<<EOF
5361 #define $ac_tr_lib 1
5367 echo "$ac_t""no" 1>&6
5370 if test "${with_kerberos5+set}" != set; then
5371 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6
5372 echo "configure:5373: checking for des_cbc_encrypt in -ldes425" >&5
5373 ac_lib_var
=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
5374 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5375 echo $ac_n "(cached) $ac_c" 1>&6
5377 ac_save_LIBS
="$LIBS"
5378 LIBS
="-ldes425 $LIBS"
5379 cat > conftest.
$ac_ext <<EOF
5380 #line 5381 "configure"
5381 #include "confdefs.h"
5382 /* Override any gcc2 internal prototype to avoid an error. */
5383 /* We use char because int might match the return type of a gcc2
5384 builtin and then its argument prototype would still apply. */
5385 char des_cbc_encrypt();
5391 if { (eval echo configure
:5392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5393 eval "ac_cv_lib_$ac_lib_var=yes"
5395 echo "configure: failed program was:" >&5
5396 cat conftest.
$ac_ext >&5
5398 eval "ac_cv_lib_$ac_lib_var=no"
5401 LIBS
="$ac_save_LIBS"
5404 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5405 echo "$ac_t""yes" 1>&6
5406 ac_tr_lib
=HAVE_LIB
`echo des425 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5407 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5408 cat >> confdefs.h
<<EOF
5409 #define $ac_tr_lib 1
5412 LIBS
="-ldes425 $LIBS"
5415 echo "$ac_t""no" 1>&6
5416 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6
5417 echo "configure:5418: checking for des_cbc_encrypt in -ldes" >&5
5418 ac_lib_var
=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
5419 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5420 echo $ac_n "(cached) $ac_c" 1>&6
5422 ac_save_LIBS
="$LIBS"
5424 cat > conftest.
$ac_ext <<EOF
5425 #line 5426 "configure"
5426 #include "confdefs.h"
5427 /* Override any gcc2 internal prototype to avoid an error. */
5428 /* We use char because int might match the return type of a gcc2
5429 builtin and then its argument prototype would still apply. */
5430 char des_cbc_encrypt();
5436 if { (eval echo configure
:5437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5438 eval "ac_cv_lib_$ac_lib_var=yes"
5440 echo "configure: failed program was:" >&5
5441 cat conftest.
$ac_ext >&5
5443 eval "ac_cv_lib_$ac_lib_var=no"
5446 LIBS
="$ac_save_LIBS"
5449 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5450 echo "$ac_t""yes" 1>&6
5451 ac_tr_lib
=HAVE_LIB
`echo des | sed -e 's/^a-zA-Z0-9_/_/g' \
5452 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5453 cat >> confdefs.h
<<EOF
5454 #define $ac_tr_lib 1
5460 echo "$ac_t""no" 1>&6
5465 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6
5466 echo "configure:5467: checking for krb_get_cred in -lkrb4" >&5
5467 ac_lib_var
=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'`
5468 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5469 echo $ac_n "(cached) $ac_c" 1>&6
5471 ac_save_LIBS
="$LIBS"
5473 cat > conftest.
$ac_ext <<EOF
5474 #line 5475 "configure"
5475 #include "confdefs.h"
5476 /* Override any gcc2 internal prototype to avoid an error. */
5477 /* We use char because int might match the return type of a gcc2
5478 builtin and then its argument prototype would still apply. */
5479 char krb_get_cred();
5485 if { (eval echo configure
:5486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5487 eval "ac_cv_lib_$ac_lib_var=yes"
5489 echo "configure: failed program was:" >&5
5490 cat conftest.
$ac_ext >&5
5492 eval "ac_cv_lib_$ac_lib_var=no"
5495 LIBS
="$ac_save_LIBS"
5498 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5499 echo "$ac_t""yes" 1>&6
5500 ac_tr_lib
=HAVE_LIB
`echo krb4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5501 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5502 cat >> confdefs.h
<<EOF
5503 #define $ac_tr_lib 1
5509 echo "$ac_t""no" 1>&6
5510 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6
5511 echo "configure:5512: checking for krb_get_cred in -lkrb" >&5
5512 ac_lib_var
=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'`
5513 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5514 echo $ac_n "(cached) $ac_c" 1>&6
5516 ac_save_LIBS
="$LIBS"
5518 cat > conftest.
$ac_ext <<EOF
5519 #line 5520 "configure"
5520 #include "confdefs.h"
5521 /* Override any gcc2 internal prototype to avoid an error. */
5522 /* We use char because int might match the return type of a gcc2
5523 builtin and then its argument prototype would still apply. */
5524 char krb_get_cred();
5530 if { (eval echo configure
:5531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5532 eval "ac_cv_lib_$ac_lib_var=yes"
5534 echo "configure: failed program was:" >&5
5535 cat conftest.
$ac_ext >&5
5537 eval "ac_cv_lib_$ac_lib_var=no"
5540 LIBS
="$ac_save_LIBS"
5543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5544 echo "$ac_t""yes" 1>&6
5545 ac_tr_lib
=HAVE_LIB
`echo krb | sed -e 's/^a-zA-Z0-9_/_/g' \
5546 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5547 cat >> confdefs.h
<<EOF
5548 #define $ac_tr_lib 1
5554 echo "$ac_t""no" 1>&6
5561 if test "${with_kerberos5+set}" = set; then
5562 for ac_hdr
in krb5.h
5564 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5565 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5566 echo "configure:5567: checking for $ac_hdr" >&5
5567 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5568 echo $ac_n "(cached) $ac_c" 1>&6
5570 cat > conftest.
$ac_ext <<EOF
5571 #line 5572 "configure"
5572 #include "confdefs.h"
5575 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5576 { (eval echo configure
:5577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5577 ac_err
=`grep -v '^ *+' conftest.out`
5578 if test -z "$ac_err"; then
5580 eval "ac_cv_header_$ac_safe=yes"
5583 echo "configure: failed program was:" >&5
5584 cat conftest.
$ac_ext >&5
5586 eval "ac_cv_header_$ac_safe=no"
5590 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5591 echo "$ac_t""yes" 1>&6
5592 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5593 cat >> confdefs.h
<<EOF
5594 #define $ac_tr_hdr 1
5598 echo "$ac_t""no" 1>&6
5605 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5606 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5607 echo "configure:5608: checking for $ac_hdr" >&5
5608 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5609 echo $ac_n "(cached) $ac_c" 1>&6
5611 cat > conftest.
$ac_ext <<EOF
5612 #line 5613 "configure"
5613 #include "confdefs.h"
5616 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5617 { (eval echo configure
:5618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5618 ac_err
=`grep -v '^ *+' conftest.out`
5619 if test -z "$ac_err"; then
5621 eval "ac_cv_header_$ac_safe=yes"
5624 echo "configure: failed program was:" >&5
5625 cat conftest.
$ac_ext >&5
5627 eval "ac_cv_header_$ac_safe=no"
5631 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5632 echo "$ac_t""yes" 1>&6
5633 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5634 cat >> confdefs.h
<<EOF
5635 #define $ac_tr_hdr 1
5639 echo "$ac_t""no" 1>&6
5640 for ac_hdr
in kerberosIV
/des.h
5642 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5643 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5644 echo "configure:5645: checking for $ac_hdr" >&5
5645 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5646 echo $ac_n "(cached) $ac_c" 1>&6
5648 cat > conftest.
$ac_ext <<EOF
5649 #line 5650 "configure"
5650 #include "confdefs.h"
5653 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5654 { (eval echo configure
:5655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5655 ac_err
=`grep -v '^ *+' conftest.out`
5656 if test -z "$ac_err"; then
5658 eval "ac_cv_header_$ac_safe=yes"
5661 echo "configure: failed program was:" >&5
5662 cat conftest.
$ac_ext >&5
5664 eval "ac_cv_header_$ac_safe=no"
5668 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5669 echo "$ac_t""yes" 1>&6
5670 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5671 cat >> confdefs.h
<<EOF
5672 #define $ac_tr_hdr 1
5676 echo "$ac_t""no" 1>&6
5677 for ac_hdr
in kerberos
/des.h
5679 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5680 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5681 echo "configure:5682: checking for $ac_hdr" >&5
5682 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5683 echo $ac_n "(cached) $ac_c" 1>&6
5685 cat > conftest.
$ac_ext <<EOF
5686 #line 5687 "configure"
5687 #include "confdefs.h"
5690 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5691 { (eval echo configure
:5692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5692 ac_err
=`grep -v '^ *+' conftest.out`
5693 if test -z "$ac_err"; then
5695 eval "ac_cv_header_$ac_safe=yes"
5698 echo "configure: failed program was:" >&5
5699 cat conftest.
$ac_ext >&5
5701 eval "ac_cv_header_$ac_safe=no"
5705 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5706 echo "$ac_t""yes" 1>&6
5707 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5708 cat >> confdefs.h
<<EOF
5709 #define $ac_tr_hdr 1
5713 echo "$ac_t""no" 1>&6
5725 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5726 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5727 echo "configure:5728: checking for $ac_hdr" >&5
5728 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5729 echo $ac_n "(cached) $ac_c" 1>&6
5731 cat > conftest.
$ac_ext <<EOF
5732 #line 5733 "configure"
5733 #include "confdefs.h"
5736 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5737 { (eval echo configure
:5738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5738 ac_err
=`grep -v '^ *+' conftest.out`
5739 if test -z "$ac_err"; then
5741 eval "ac_cv_header_$ac_safe=yes"
5744 echo "configure: failed program was:" >&5
5745 cat conftest.
$ac_ext >&5
5747 eval "ac_cv_header_$ac_safe=no"
5751 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5752 echo "$ac_t""yes" 1>&6
5753 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5754 cat >> confdefs.h
<<EOF
5755 #define $ac_tr_hdr 1
5759 echo "$ac_t""no" 1>&6
5760 for ac_hdr
in kerberosIV
/krb.h
5762 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5763 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5764 echo "configure:5765: checking for $ac_hdr" >&5
5765 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5766 echo $ac_n "(cached) $ac_c" 1>&6
5768 cat > conftest.
$ac_ext <<EOF
5769 #line 5770 "configure"
5770 #include "confdefs.h"
5773 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5774 { (eval echo configure
:5775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5775 ac_err
=`grep -v '^ *+' conftest.out`
5776 if test -z "$ac_err"; then
5778 eval "ac_cv_header_$ac_safe=yes"
5781 echo "configure: failed program was:" >&5
5782 cat conftest.
$ac_ext >&5
5784 eval "ac_cv_header_$ac_safe=no"
5788 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5789 echo "$ac_t""yes" 1>&6
5790 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5791 cat >> confdefs.h
<<EOF
5792 #define $ac_tr_hdr 1
5796 echo "$ac_t""no" 1>&6
5797 for ac_hdr
in kerberos
/krb.h
5799 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5800 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5801 echo "configure:5802: checking for $ac_hdr" >&5
5802 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5803 echo $ac_n "(cached) $ac_c" 1>&6
5805 cat > conftest.
$ac_ext <<EOF
5806 #line 5807 "configure"
5807 #include "confdefs.h"
5810 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5811 { (eval echo configure
:5812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5812 ac_err
=`grep -v '^ *+' conftest.out`
5813 if test -z "$ac_err"; then
5815 eval "ac_cv_header_$ac_safe=yes"
5818 echo "configure: failed program was:" >&5
5819 cat conftest.
$ac_ext >&5
5821 eval "ac_cv_header_$ac_safe=no"
5825 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5826 echo "$ac_t""yes" 1>&6
5827 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5828 cat >> confdefs.h
<<EOF
5829 #define $ac_tr_hdr 1
5833 echo "$ac_t""no" 1>&6
5844 for ac_hdr
in com_err.h
5846 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5847 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5848 echo "configure:5849: checking for $ac_hdr" >&5
5849 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5850 echo $ac_n "(cached) $ac_c" 1>&6
5852 cat > conftest.
$ac_ext <<EOF
5853 #line 5854 "configure"
5854 #include "confdefs.h"
5857 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5858 { (eval echo configure
:5859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5859 ac_err
=`grep -v '^ *+' conftest.out`
5860 if test -z "$ac_err"; then
5862 eval "ac_cv_header_$ac_safe=yes"
5865 echo "configure: failed program was:" >&5
5866 cat conftest.
$ac_ext >&5
5868 eval "ac_cv_header_$ac_safe=no"
5872 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5873 echo "$ac_t""yes" 1>&6
5874 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5875 cat >> confdefs.h
<<EOF
5876 #define $ac_tr_hdr 1
5880 echo "$ac_t""no" 1>&6
5886 # Solaris requires -lintl if you want strerror (which calls dgettext)
5887 # to return localized messages.
5888 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
5889 echo "configure:5890: checking for dgettext in -lintl" >&5
5890 ac_lib_var
=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
5891 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5892 echo $ac_n "(cached) $ac_c" 1>&6
5894 ac_save_LIBS
="$LIBS"
5896 cat > conftest.
$ac_ext <<EOF
5897 #line 5898 "configure"
5898 #include "confdefs.h"
5899 /* Override any gcc2 internal prototype to avoid an error. */
5900 /* We use char because int might match the return type of a gcc2
5901 builtin and then its argument prototype would still apply. */
5908 if { (eval echo configure
:5909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5910 eval "ac_cv_lib_$ac_lib_var=yes"
5912 echo "configure: failed program was:" >&5
5913 cat conftest.
$ac_ext >&5
5915 eval "ac_cv_lib_$ac_lib_var=no"
5918 LIBS
="$ac_save_LIBS"
5921 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5922 echo "$ac_t""yes" 1>&6
5923 ac_tr_lib
=HAVE_LIB
`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5924 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5925 cat >> confdefs.h
<<EOF
5926 #define $ac_tr_lib 1
5932 echo "$ac_t""no" 1>&6
5936 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
5937 echo "configure:5938: checking whether localtime caches TZ" >&5
5938 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
5939 echo $ac_n "(cached) $ac_c" 1>&6
5941 if test x
$ac_cv_func_tzset = xyes
; then
5942 if test "$cross_compiling" = yes; then
5943 # If we have tzset, assume the worst when cross-compiling.
5944 emacs_cv_localtime_cache
=yes
5946 cat > conftest.
$ac_ext <<EOF
5947 #line 5948 "configure"
5948 #include "confdefs.h"
5950 extern char **environ;
5954 for (to = from = environ; (*to = *from); from++)
5955 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
5958 char TZ_GMT0[] = "TZ=GMT0";
5959 char TZ_PST8[] = "TZ=PST8";
5962 time_t now = time ((time_t *) 0);
5963 int hour_GMT0, hour_unset;
5964 if (putenv (TZ_GMT0) != 0)
5966 hour_GMT0 = localtime (&now)->tm_hour;
5968 hour_unset = localtime (&now)->tm_hour;
5969 if (putenv (TZ_PST8) != 0)
5971 if (localtime (&now)->tm_hour == hour_GMT0)
5974 if (localtime (&now)->tm_hour != hour_unset)
5979 if { (eval echo configure
:5980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5981 emacs_cv_localtime_cache
=no
5983 echo "configure: failed program was:" >&5
5984 cat conftest.
$ac_ext >&5
5986 emacs_cv_localtime_cache
=yes
5992 # If we lack tzset, report that localtime does not cache TZ,
5993 # since we can't invalidate the cache if we don't have tzset.
5994 emacs_cv_localtime_cache
=no
5997 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
5998 if test $emacs_cv_localtime_cache = yes; then
5999 cat >> confdefs.h
<<\EOF
6000 #define LOCALTIME_CACHE 1
6005 if test "x$HAVE_TIMEVAL" = xyes
; then
6006 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
6007 echo "configure:6008: checking whether gettimeofday can accept two arguments" >&5
6008 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
6009 echo $ac_n "(cached) $ac_c" 1>&6
6011 cat > conftest.
$ac_ext <<EOF
6012 #line 6013 "configure"
6013 #include "confdefs.h"
6015 #ifdef TIME_WITH_SYS_TIME
6016 #include <sys/time.h>
6019 #ifdef HAVE_SYS_TIME_H
6020 #include <sys/time.h>
6028 struct timeval time;
6029 struct timezone dummy;
6030 gettimeofday (&time, &dummy);
6034 if { (eval echo configure
:6035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6036 emacs_cv_gettimeofday_two_arguments
=yes
6038 echo "configure: failed program was:" >&5
6039 cat conftest.
$ac_ext >&5
6041 emacs_cv_gettimeofday_two_arguments
=no
6046 echo "$ac_t""$emacs_cv_gettimeofday_two_arguments" 1>&6
6047 if test $emacs_cv_gettimeofday_two_arguments = no
; then
6048 cat >> confdefs.h
<<\EOF
6049 #define GETTIMEOFDAY_ONE_ARGUMENT 1
6056 echo $ac_n "checking for socket""... $ac_c" 1>&6
6057 echo "configure:6058: checking for socket" >&5
6058 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
6059 echo $ac_n "(cached) $ac_c" 1>&6
6061 cat > conftest.
$ac_ext <<EOF
6062 #line 6063 "configure"
6063 #include "confdefs.h"
6064 /* System header to define __stub macros and hopefully few prototypes,
6065 which can conflict with char socket(); below. */
6067 /* Override any gcc2 internal prototype to avoid an error. */
6068 /* We use char because int might match the return type of a gcc2
6069 builtin and then its argument prototype would still apply. */
6074 /* The GNU C library defines this for functions which it implements
6075 to always fail with ENOSYS. Some functions are actually named
6076 something starting with __ and the normal name is an alias. */
6077 #if defined (__stub_socket) || defined (__stub___socket)
6085 if { (eval echo configure
:6086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6087 eval "ac_cv_func_socket=yes"
6089 echo "configure: failed program was:" >&5
6090 cat conftest.
$ac_ext >&5
6092 eval "ac_cv_func_socket=no"
6097 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
6098 echo "$ac_t""yes" 1>&6
6101 echo "$ac_t""no" 1>&6
6105 if test $ok_so_far = yes; then
6106 ac_safe
=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
6107 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
6108 echo "configure:6109: checking for netinet/in.h" >&5
6109 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6110 echo $ac_n "(cached) $ac_c" 1>&6
6112 cat > conftest.
$ac_ext <<EOF
6113 #line 6114 "configure"
6114 #include "confdefs.h"
6115 #include <netinet/in.h>
6117 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6118 { (eval echo configure
:6119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6119 ac_err
=`grep -v '^ *+' conftest.out`
6120 if test -z "$ac_err"; then
6122 eval "ac_cv_header_$ac_safe=yes"
6125 echo "configure: failed program was:" >&5
6126 cat conftest.
$ac_ext >&5
6128 eval "ac_cv_header_$ac_safe=no"
6132 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6133 echo "$ac_t""yes" 1>&6
6136 echo "$ac_t""no" 1>&6
6141 if test $ok_so_far = yes; then
6142 ac_safe
=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
6143 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
6144 echo "configure:6145: checking for arpa/inet.h" >&5
6145 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6146 echo $ac_n "(cached) $ac_c" 1>&6
6148 cat > conftest.
$ac_ext <<EOF
6149 #line 6150 "configure"
6150 #include "confdefs.h"
6151 #include <arpa/inet.h>
6153 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6154 { (eval echo configure
:6155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6155 ac_err
=`grep -v '^ *+' conftest.out`
6156 if test -z "$ac_err"; then
6158 eval "ac_cv_header_$ac_safe=yes"
6161 echo "configure: failed program was:" >&5
6162 cat conftest.
$ac_ext >&5
6164 eval "ac_cv_header_$ac_safe=no"
6168 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6169 echo "$ac_t""yes" 1>&6
6172 echo "$ac_t""no" 1>&6
6177 if test $ok_so_far = yes; then
6178 cat >> confdefs.h
<<\EOF
6179 #define HAVE_INET_SOCKETS 1
6184 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
6185 cat >> confdefs.h
<<\EOF
6186 #define HAVE_AIX_SMT_EXP 1
6191 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6
6192 echo "configure:6193: checking whether system supports dynamic ptys" >&5
6193 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
6194 echo "$ac_t""yes" 1>&6
6195 cat >> confdefs.h
<<\EOF
6196 #define HAVE_DEV_PTMX 1
6200 echo "$ac_t""no" 1>&6
6203 # Set up the CFLAGS for real compilation, so we can substitute it.
6204 CFLAGS
="$REAL_CFLAGS"
6206 #### Find out which version of Emacs this is.
6207 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
6208 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
6209 if test x
"${version}" = x
; then
6210 { echo "configure: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." 1>&2; exit 1; }
6213 ### Specify what sort of things we'll be editing into Makefile and config.h.
6214 ### Use configuration here uncanonicalized to avoid exceeding size limits.
6246 cat >> confdefs.h
<<EOF
6247 #define EMACS_CONFIGURATION "${canonical}"
6250 cat >> confdefs.h
<<EOF
6251 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
6254 cat >> confdefs.h
<<EOF
6255 #define config_machfile "${machfile}"
6258 cat >> confdefs.h
<<EOF
6259 #define config_opsysfile "${opsysfile}"
6262 cat >> confdefs.h
<<EOF
6263 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
6266 cat >> confdefs.h
<<EOF
6267 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
6270 cat >> confdefs.h
<<EOF
6271 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
6274 cat >> confdefs.h
<<EOF
6275 #define UNEXEC_SRC ${UNEXEC_SRC}
6279 if test "${HAVE_X_WINDOWS}" = "yes" ; then
6280 cat >> confdefs.h
<<\EOF
6281 #define HAVE_X_WINDOWS 1
6285 if test "${USE_X_TOOLKIT}" != "none" ; then
6286 cat >> confdefs.h
<<\EOF
6287 #define USE_X_TOOLKIT 1
6291 if test "${HAVE_X11}" = "yes" ; then
6292 cat >> confdefs.h
<<\EOF
6297 if test "${HAVE_XFREE386}" = "yes" ; then
6298 cat >> confdefs.h
<<\EOF
6299 #define HAVE_XFREE386 1
6303 if test "${HAVE_MENUS}" = "yes" ; then
6304 cat >> confdefs.h
<<\EOF
6305 #define HAVE_MENUS 1
6309 if test "${GNU_MALLOC}" = "yes" ; then
6310 cat >> confdefs.h
<<\EOF
6311 #define GNU_MALLOC 1
6315 if test "${REL_ALLOC}" = "yes" ; then
6316 cat >> confdefs.h
<<\EOF
6321 if test "${LISP_FLOAT_TYPE}" = "yes" ; then
6322 cat >> confdefs.h
<<\EOF
6323 #define LISP_FLOAT_TYPE 1
6328 #### Report on what we decided to do.
6330 Configured for \`${canonical}'.
6332 Where should the build process find the source code? ${srcdir}
6333 What operating system and machine description files should Emacs use?
6334 \`${opsysfile}' and \`${machfile}'
6335 What compiler should emacs be built with? ${CC} ${CFLAGS}
6336 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
6337 Should Emacs use the relocating allocator for buffers? ${REL_ALLOC}
6338 What window system should Emacs use? ${window_system}
6339 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
6341 if test -n "${x_includes}"; then
6342 echo " Where do we find X Windows header files? ${x_includes}"
6344 echo " Where do we find X Windows header files? Standard dirs"
6346 if test -n "${x_libraries}"; then
6347 echo " Where do we find X Windows libraries? ${x_libraries}"
6349 echo " Where do we find X Windows libraries? Standard dirs"
6352 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
6353 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
6354 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
6355 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
6356 echo " Does Emacs use -lungif? ${HAVE_GIF}"
6357 echo " Does Emacs use -lpng? ${HAVE_PNG}"
6358 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
6361 # Remove any trailing slashes in these variables.
6362 test "${prefix}" != NONE
&&
6363 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
6364 test "${exec_prefix}" != NONE
&&
6365 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
6368 cat > confcache
<<\EOF
6369 # This file is a shell script that caches the results of configure
6370 # tests run on this system so they can be shared between configure
6371 # scripts and configure runs. It is not useful on other systems.
6372 # If it contains results you don't want to keep, you may remove or edit it.
6374 # By default, configure uses ./config.cache as the cache file,
6375 # creating it if it does not exist already. You can give configure
6376 # the --cache-file=FILE option to use a different cache file; that is
6377 # what configure does when it calls configure scripts in
6378 # subdirectories, so they share the cache.
6379 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6380 # config.status only pays attention to the cache file if you give it the
6381 # --recheck option to rerun configure.
6384 # The following way of writing the cache mishandles newlines in values,
6385 # but we know of no workaround that is simple, portable, and efficient.
6386 # So, don't put newlines in cache variables' values.
6387 # Ultrix sh set writes to stderr and can't be redirected directly,
6388 # and sets the high bit in the cache file unless we assign to the vars.
6390 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6392 # `set' does not quote correctly, so add quotes (double-quote substitution
6393 # turns \\\\ into \\, and sed turns \\ into \).
6395 -e "s/'/'\\\\''/g" \
6396 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6399 # `set' quotes correctly as required by POSIX, so do not add quotes.
6400 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6403 if cmp -s $cache_file confcache
; then
6406 if test -w $cache_file; then
6407 echo "updating cache $cache_file"
6408 cat confcache
> $cache_file
6410 echo "not updating unwritable cache $cache_file"
6415 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6417 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6418 # Let make expand exec_prefix.
6419 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6421 # Any assignment to VPATH causes Sun make to only execute
6422 # the first set of double-colon rules, so remove it if not needed.
6423 # If there is a colon in the path, we need to keep it.
6424 if test "x$srcdir" = x.
; then
6425 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6428 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6430 DEFS
=-DHAVE_CONFIG_H
6432 # Without the "./", some shells look in PATH for config.status.
6433 : ${CONFIG_STATUS=./config.status}
6435 echo creating
$CONFIG_STATUS
6436 rm -f $CONFIG_STATUS
6437 cat > $CONFIG_STATUS <<EOF
6439 # Generated automatically by configure.
6440 # Run this file to recreate the current configuration.
6441 # This directory was configured as follows,
6442 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6444 # $0 $ac_configure_args
6446 # Compiler output produced by configure, useful for debugging
6447 # configure, is in ./config.log if it exists.
6449 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6452 case "\$ac_option" in
6453 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6454 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6455 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6456 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6457 echo "$CONFIG_STATUS generated by autoconf version 2.12"
6459 -help | --help | --hel | --he | --h)
6460 echo "\$ac_cs_usage"; exit 0 ;;
6461 *) echo "\$ac_cs_usage"; exit 1 ;;
6465 ac_given_srcdir=$srcdir
6466 ac_given_INSTALL="$INSTALL"
6468 trap 'rm -fr `echo "Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \
6469 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \
6470 leim/Makefile src/config.h:src/config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6472 cat >> $CONFIG_STATUS <<EOF
6474 # Protect against being on the right side of a sed subst in config.status.
6475 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6476 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6479 s%@CFLAGS@%$CFLAGS%g
6480 s%@CPPFLAGS@%$CPPFLAGS%g
6481 s%@CXXFLAGS@%$CXXFLAGS%g
6483 s%@LDFLAGS@%$LDFLAGS%g
6485 s%@exec_prefix@%$exec_prefix%g
6486 s%@prefix@%$prefix%g
6487 s%@program_transform_name@%$program_transform_name%g
6488 s%@bindir@%$bindir%g
6489 s%@sbindir@%$sbindir%g
6490 s%@libexecdir@%$libexecdir%g
6491 s%@datadir@%$datadir%g
6492 s%@sysconfdir@%$sysconfdir%g
6493 s%@sharedstatedir@%$sharedstatedir%g
6494 s%@localstatedir@%$localstatedir%g
6495 s%@libdir@%$libdir%g
6496 s%@includedir@%$includedir%g
6497 s%@oldincludedir@%$oldincludedir%g
6498 s%@infodir@%$infodir%g
6499 s%@mandir@%$mandir%g
6501 s%@host_alias@%$host_alias%g
6502 s%@host_cpu@%$host_cpu%g
6503 s%@host_vendor@%$host_vendor%g
6504 s%@host_os@%$host_os%g
6508 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6509 s%@INSTALL_DATA@%$INSTALL_DATA%g
6511 s%@SET_MAKE@%$SET_MAKE%g
6512 s%@ALLOCA@%$ALLOCA%g
6513 s%@liblockfile@%$liblockfile%g
6514 s%@version@%$version%g
6515 s%@configuration@%$configuration%g
6516 s%@canonical@%$canonical%g
6517 s%@srcdir@%$srcdir%g
6518 s%@lispdir@%$lispdir%g
6519 s%@locallisppath@%$locallisppath%g
6520 s%@lisppath@%$lisppath%g
6521 s%@x_default_search_path@%$x_default_search_path%g
6522 s%@etcdir@%$etcdir%g
6523 s%@archlibdir@%$archlibdir%g
6524 s%@docdir@%$docdir%g
6525 s%@bitmapdir@%$bitmapdir%g
6526 s%@c_switch_system@%$c_switch_system%g
6527 s%@c_switch_machine@%$c_switch_machine%g
6528 s%@LD_SWITCH_X_SITE@%$LD_SWITCH_X_SITE%g
6529 s%@LD_SWITCH_X_SITE_AUX@%$LD_SWITCH_X_SITE_AUX%g
6530 s%@C_SWITCH_X_SITE@%$C_SWITCH_X_SITE%g
6531 s%@X_TOOLKIT_TYPE@%$X_TOOLKIT_TYPE%g
6532 s%@machfile@%$machfile%g
6533 s%@opsysfile@%$opsysfile%g
6534 s%@RANLIB@%$RANLIB%g
6539 cat >> $CONFIG_STATUS <<\EOF
6541 # Split the substitutions into bite-sized pieces for seds with
6542 # small command number limits, like on Digital OSF/1 and HP-UX.
6543 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6544 ac_file
=1 # Number of current file.
6545 ac_beg
=1 # First line for current file.
6546 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6549 while $ac_more_lines; do
6550 if test $ac_beg -gt 1; then
6551 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6553 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6555 if test ! -s conftest.s
$ac_file; then
6557 rm -f conftest.s
$ac_file
6559 if test -z "$ac_sed_cmds"; then
6560 ac_sed_cmds
="sed -f conftest.s$ac_file"
6562 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6564 ac_file
=`expr $ac_file + 1`
6566 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6569 if test -z "$ac_sed_cmds"; then
6574 cat >> $CONFIG_STATUS <<EOF
6576 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \
6577 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \
6580 cat >> $CONFIG_STATUS <<\EOF
6581 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6582 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6584 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6585 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6586 *) ac_file_in
="${ac_file}.in" ;;
6589 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6591 # Remove last slash and all that follows it. Not all systems have dirname.
6592 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6593 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6594 # The file is in a subdirectory.
6595 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6596 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6597 # A "../" for each directory in $ac_dir_suffix.
6598 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6600 ac_dir_suffix
= ac_dots
=
6603 case "$ac_given_srcdir" in
6605 if test -z "$ac_dots"; then top_srcdir
=.
6606 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6607 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6609 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6610 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6613 case "$ac_given_INSTALL" in
6614 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6615 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6618 echo creating
"$ac_file"
6620 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6622 *Makefile
*) ac_comsub
="1i\\
6623 # $configure_input" ;;
6627 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6629 s%@configure_input@%$configure_input%g
6630 s%@srcdir@%$srcdir%g
6631 s%@top_srcdir@%$top_srcdir%g
6632 s%@INSTALL@%$INSTALL%g
6633 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6637 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6638 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6640 # ac_d sets the value in "#define NAME VALUE" lines.
6641 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6642 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6645 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6646 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6647 ac_uB
='\([ ]\)%\1#\2define\3'
6650 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6651 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6652 ac_eB
='$%\1#\2define\3'
6656 if test "${CONFIG_HEADERS+set}" != set; then
6658 cat >> $CONFIG_STATUS <<EOF
6659 CONFIG_HEADERS="src/config.h:src/config.in"
6661 cat >> $CONFIG_STATUS <<\EOF
6663 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6664 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6666 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6667 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6668 *) ac_file_in
="${ac_file}.in" ;;
6671 echo creating
$ac_file
6673 rm -f conftest.frag conftest.
in conftest.out
6674 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6675 cat $ac_file_inputs > conftest.
in
6679 # Transform confdefs.h into a sed script conftest.vals that substitutes
6680 # the proper values into config.h.in to produce config.h. And first:
6681 # Protect against being on the right side of a sed subst in config.status.
6682 # Protect against being in an unquoted here document in config.status.
6684 cat > conftest.hdr
<<\EOF
6687 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6691 sed -n -f conftest.hdr confdefs.h > conftest.vals
6694 # This sed command replaces #undef with comments. This is necessary, for
6695 # example, in the case of _POSIX_SOURCE, which is predefined and required
6696 # on some systems where configure will not decide to define it.
6697 cat >> conftest.vals <<\EOF
6698 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6701 # Break up conftest.vals because some shells have a limit on
6702 # the size of here documents, and old seds have small limits too.
6707 ac_lines=`grep -c . conftest.vals
`
6708 # grep -c gives empty output for an empty file on some AIX systems.
6709 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6710 # Write a limited-size here document to conftest.frag.
6711 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6712 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6714 sed -f conftest.frag conftest.in > conftest.out
6716 mv conftest.out conftest.in
6718 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6720 mv conftest.tail conftest.vals
6724 cat >> $CONFIG_STATUS <<\EOF
6725 rm -f conftest.frag conftest.h
6726 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6727 cat conftest.in >> conftest.h
6729 if cmp -s $ac_file conftest.h 2>/dev/null; then
6730 echo "$ac_file is unchanged"
6733 # Remove last slash and all that follows it. Not all systems have dirname.
6734 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6735 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6736 # The file is in a subdirectory.
6737 test ! -d "$ac_dir" && mkdir "$ac_dir"
6740 mv conftest.h $ac_file
6745 cat >> $CONFIG_STATUS <<EOF
6746 CPP="$CPP" CPPFLAGS="$CPPFLAGS"
6748 cat >> $CONFIG_STATUS <<\EOF
6751 ### Make the necessary directories, if they don't exist.
6752 for dir in etc lisp ; do
6753 test -d ${dir} || mkdir ${dir}
6756 # Build src/Makefile from ${srcdir}/src/Makefile.c
6757 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
6758 # This must be done after src/config.h is built, since we rely on that file.
6760 # Now get this: Some word that is part of the ${srcdir} directory name
6761 # or the ${configuration} value might, just might, happen to be an
6762 # identifier like `sun4
' or `i386' or something
, and be predefined by
6763 # the C preprocessor to some helpful value like 1, or maybe the empty
6764 # string. Needless to say consequent macro substitutions are less
6765 # than conducive to the makefile finding the correct directory.
6766 undefs
="`echo $top_srcdir $configuration $canonical |
6767 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
6768 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
6771 echo creating src
/epaths.h
6774 echo creating lib-src
/Makefile
6776 rm -f junk.c junk1.c junk2.c
6777 sed -e '/start of cpp stuff/q' \
6778 < Makefile.c
> junk1.c
6779 sed -e '1,/start of cpp stuff/d'\
6780 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \
6781 < Makefile.c
> junk.c
6782 $CPP $undefs -I.
-I$top_srcdir/src
$CPPFLAGS junk.c | \
6783 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
6784 cat junk1.c junk2.c
> Makefile.new
6785 rm -f junk.c junk1.c junk2.c
6786 chmod 444 Makefile.new
6787 mv -f Makefile.new Makefile
6790 echo creating src
/Makefile
6792 rm -f junk.c junk1.c junk2.c
6793 sed -e '/start of cpp stuff/q' \
6794 < Makefile.c
> junk1.c
6795 sed -e '1,/start of cpp stuff/d'\
6796 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \
6797 < Makefile.c
> junk.c
6798 $CPP $undefs -I.
-I$top_srcdir/src
$CPPFLAGS junk.c | \
6799 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
6800 cat junk1.c junk2.c
> Makefile.new
6801 rm -f junk.c junk1.c junk2.c
6802 chmod 444 Makefile.new
6803 mv -f Makefile.new Makefile
6806 if test ! -f src
/.gdbinit
&& test -f $top_srcdir/src
/.gdbinit
; then
6807 echo creating src
/.gdbinit
6808 echo source $top_srcdir/src
/.gdbinit
> src
/.gdbinit
6811 # This is how we know whether to re-run configure in certain cases.
6812 touch src
/config.stamp
6817 chmod +x
$CONFIG_STATUS
6818 rm -fr confdefs
* $ac_clean_files
6819 test "$no_create" = yes ||
${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS ||
exit 1