3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --without-gcc don't use GCC to compile Emacs if GCC is found"
17 --without-pop don't support POP mail retrieval with movemail"
19 --with-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
38 don't use Motif or Xaw3d scroll bars"
40 --without-xim don't use X11 XIM"
42 --disable-largefile omit support for large files"
44 --with-x use the X Window System"
46 # Initialize some variables set by options.
47 # The variables have the same names as the options, with
48 # dashes changed to underlines.
50 cache_file
=.
/config.cache
59 program_transform_name
=s
,x
,x
,
67 bindir
='${exec_prefix}/bin'
68 sbindir
='${exec_prefix}/sbin'
69 libexecdir
='${exec_prefix}/libexec'
70 datadir
='${prefix}/share'
71 sysconfdir
='${prefix}/etc'
72 sharedstatedir
='${prefix}/com'
73 localstatedir
='${prefix}/var'
74 libdir
='${exec_prefix}/lib'
75 includedir
='${prefix}/include'
76 oldincludedir
='/usr/include'
77 infodir
='${prefix}/info'
78 mandir
='${prefix}/man'
80 # Initialize some other variables.
83 SHELL
=${CONFIG_SHELL-/bin/sh}
84 # Maximum number of lines to put in a shell here document.
91 # If the previous option needs an argument, assign it.
92 if test -n "$ac_prev"; then
93 eval "$ac_prev=\$ac_option"
99 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
103 # Accept the important Cygnus configure options, so we can diagnose typos.
107 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
109 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
110 bindir
="$ac_optarg" ;;
112 -build |
--build |
--buil |
--bui |
--bu)
114 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
115 build
="$ac_optarg" ;;
117 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
118 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
119 ac_prev
=cache_file
;;
120 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
121 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
122 cache_file
="$ac_optarg" ;;
124 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
126 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
128 datadir
="$ac_optarg" ;;
130 -disable-* |
--disable-*)
131 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}=no" ;;
139 -enable-* |
--enable-*)
140 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
141 # Reject names that are not valid shell variable names.
142 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
145 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
150 eval "enable_${ac_feature}='$ac_optarg'" ;;
152 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
153 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
154 |
--exec |
--exe |
--ex)
155 ac_prev
=exec_prefix
;;
156 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
157 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
158 |
--exec=* |
--exe=* |
--ex=*)
159 exec_prefix
="$ac_optarg" ;;
161 -gas |
--gas |
--ga |
--g)
162 # Obsolete; use --with-gas.
165 -help |
--help |
--hel |
--he)
166 # Omit some internal or obsolete options to make the list less imposing.
167 # This message is too long to be a string in the A/UX 3.1 sh.
169 Usage: configure [options] [host]
170 Options: [defaults in brackets after descriptions]
172 --cache-file=FILE cache test results in FILE
173 --help print this message
174 --no-create do not create output files
175 --quiet, --silent do not print \`checking...' messages
176 --version print the version of autoconf that created configure
177 Directory and file names:
178 --prefix=PREFIX install architecture-independent files in PREFIX
180 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
182 --bindir=DIR user executables in DIR [EPREFIX/bin]
183 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
184 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
185 --datadir=DIR read-only architecture-independent data in DIR
187 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
188 --sharedstatedir=DIR modifiable architecture-independent data in DIR
190 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
191 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
192 --includedir=DIR C header files in DIR [PREFIX/include]
193 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
194 --infodir=DIR info documentation in DIR [PREFIX/info]
195 --mandir=DIR man documentation in DIR [PREFIX/man]
196 --srcdir=DIR find the sources in DIR [configure dir or ..]
197 --program-prefix=PREFIX prepend PREFIX to installed program names
198 --program-suffix=SUFFIX append SUFFIX to installed program names
199 --program-transform-name=PROGRAM
200 run sed PROGRAM on installed program names
204 --build=BUILD configure for building on BUILD [BUILD=HOST]
205 --host=HOST configure for HOST [guessed]
206 --target=TARGET configure for TARGET [TARGET=HOST]
207 Features and packages:
208 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
209 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
210 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
211 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
212 --x-includes=DIR X include files are in DIR
213 --x-libraries=DIR X library files are in DIR
215 if test -n "$ac_help"; then
216 echo "--enable and --with options recognized:$ac_help"
220 -host |
--host |
--hos |
--ho)
222 -host=* |
--host=* |
--hos=* |
--ho=*)
225 -includedir |
--includedir |
--includedi |
--included |
--include \
226 |
--includ |
--inclu |
--incl |
--inc)
227 ac_prev
=includedir
;;
228 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
229 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
230 includedir
="$ac_optarg" ;;
232 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
234 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
235 infodir
="$ac_optarg" ;;
237 -libdir |
--libdir |
--libdi |
--libd)
239 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
240 libdir
="$ac_optarg" ;;
242 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
243 |
--libexe |
--libex |
--libe)
244 ac_prev
=libexecdir
;;
245 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
246 |
--libexe=* |
--libex=* |
--libe=*)
247 libexecdir
="$ac_optarg" ;;
249 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
250 |
--localstate |
--localstat |
--localsta |
--localst \
251 |
--locals |
--local |
--loca |
--loc |
--lo)
252 ac_prev
=localstatedir
;;
253 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
254 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
255 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
256 localstatedir
="$ac_optarg" ;;
258 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
260 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
261 mandir
="$ac_optarg" ;;
264 # Obsolete; use --without-fp.
267 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
271 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
272 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
275 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
276 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
277 |
--oldin |
--oldi |
--old |
--ol |
--o)
278 ac_prev
=oldincludedir
;;
279 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
280 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
281 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
282 oldincludedir
="$ac_optarg" ;;
284 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
286 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
287 prefix
="$ac_optarg" ;;
289 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
290 |
--program-pre |
--program-pr |
--program-p)
291 ac_prev
=program_prefix
;;
292 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
293 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
294 program_prefix
="$ac_optarg" ;;
296 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
297 |
--program-suf |
--program-su |
--program-s)
298 ac_prev
=program_suffix
;;
299 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
300 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
301 program_suffix
="$ac_optarg" ;;
303 -program-transform-name |
--program-transform-name \
304 |
--program-transform-nam |
--program-transform-na \
305 |
--program-transform-n |
--program-transform- \
306 |
--program-transform |
--program-transfor \
307 |
--program-transfo |
--program-transf \
308 |
--program-trans |
--program-tran \
309 |
--progr-tra |
--program-tr |
--program-t)
310 ac_prev
=program_transform_name
;;
311 -program-transform-name=* |
--program-transform-name=* \
312 |
--program-transform-nam=* |
--program-transform-na=* \
313 |
--program-transform-n=* |
--program-transform-=* \
314 |
--program-transform=* |
--program-transfor=* \
315 |
--program-transfo=* |
--program-transf=* \
316 |
--program-trans=* |
--program-tran=* \
317 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
318 program_transform_name
="$ac_optarg" ;;
320 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
321 |
-silent |
--silent |
--silen |
--sile |
--sil)
324 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
326 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
328 sbindir
="$ac_optarg" ;;
330 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
331 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
332 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
334 ac_prev
=sharedstatedir
;;
335 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
336 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
337 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
339 sharedstatedir
="$ac_optarg" ;;
341 -site |
--site |
--sit)
343 -site=* |
--site=* |
--sit=*)
346 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
348 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
349 srcdir
="$ac_optarg" ;;
351 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
352 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
353 ac_prev
=sysconfdir
;;
354 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
355 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
356 sysconfdir
="$ac_optarg" ;;
358 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
360 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
361 target
="$ac_optarg" ;;
363 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
366 -version |
--version |
--versio |
--versi |
--vers)
367 echo "configure generated by autoconf version 2.13"
371 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 ac_package
=`echo $ac_package| sed 's/-/_/g'`
381 eval "with_${ac_package}='$ac_optarg'" ;;
383 -without-* |
--without-*)
384 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
385 # Reject names that are not valid shell variable names.
386 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
389 ac_package
=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}=no" ;;
393 # Obsolete; use --with-x.
396 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
397 |
--x-incl |
--x-inc |
--x-in |
--x-i)
398 ac_prev
=x_includes
;;
399 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
400 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
401 x_includes
="$ac_optarg" ;;
403 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
404 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
405 ac_prev
=x_libraries
;;
406 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
407 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
408 x_libraries
="$ac_optarg" ;;
410 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
414 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
415 echo "configure: warning: $ac_option: invalid host type" 1>&2
417 if test "x$nonopt" != xNONE
; then
418 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
426 if test -n "$ac_prev"; then
427 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
430 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
432 # File descriptor usage:
435 # 2 errors and warnings
436 # 3 some systems may open it to /dev/tty
437 # 4 used on the Kubota Titan
438 # 6 checking for... messages and results
439 # 5 compiler messages saved in config.log
440 if test "$silent" = yes; then
448 This file contains any messages produced by compilers while
449 running configure, to aid debugging if configure makes a mistake.
452 # Strip out --no-create and --no-recursion so they do not pile up.
453 # Also quote any args containing shell metacharacters.
458 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
459 |
--no-cr |
--no-c) ;;
460 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
461 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
462 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
463 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
464 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
469 # Only set these to C if already set. These must not be set unconditionally
470 # because not all systems understand e.g. LANG=C (notably SCO).
471 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
472 # Non-C LC_CTYPE values break the ctype check.
473 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
474 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
475 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
476 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
478 # confdefs.h avoids OS command line length limits that DEFS can exceed.
479 rm -rf conftest
* confdefs.h
480 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
483 # A filename unique to this package, relative to the directory that
484 # configure is in, which we can look for to find out if srcdir is correct.
485 ac_unique_file
=src
/lisp.h
487 # Find the source files, if location was not specified.
488 if test -z "$srcdir"; then
489 ac_srcdir_defaulted
=yes
490 # Try the directory containing this script, then its parent.
492 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
493 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
495 if test ! -r $srcdir/$ac_unique_file; then
499 ac_srcdir_defaulted
=no
501 if test ! -r $srcdir/$ac_unique_file; then
502 if test "$ac_srcdir_defaulted" = yes; then
503 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
505 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
508 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
510 # Prefer explicitly selected file to automatically selected ones.
511 if test -z "$CONFIG_SITE"; then
512 if test "x$prefix" != xNONE
; then
513 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
515 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
518 for ac_site_file
in $CONFIG_SITE; do
519 if test -r "$ac_site_file"; then
520 echo "loading site script $ac_site_file"
525 if test -r "$cache_file"; then
526 echo "loading cache $cache_file"
529 echo "creating cache $cache_file"
534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
535 ac_cpp
='$CPP $CPPFLAGS'
536 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
537 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
538 cross_compiling
=$ac_cv_prog_cc_cross
542 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
543 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
544 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
551 ac_n
= ac_c
='\c' ac_t
=
557 lispdir
='${datadir}/emacs/${version}/lisp'
558 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
559 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
560 lisppath
='${locallisppath}:${lispdir}'
561 etcdir
='${datadir}/emacs/${version}/etc'
562 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
563 docdir
='${datadir}/emacs/${version}/etc'
565 # Check whether --with-gcc or --without-gcc was given.
566 if test "${with_gcc+set}" = set; then
571 # Check whether --with-pop or --without-pop was given.
572 if test "${with_pop+set}" = set; then
574 if test "$withval" = yes; then
575 cat >> confdefs.h
<<\EOF
576 #define MAIL_USE_POP 1
582 cat >> confdefs.h
<<\EOF
583 #define MAIL_USE_POP 1
588 # Check whether --with-kerberos or --without-kerberos was given.
589 if test "${with_kerberos+set}" = set; then
590 withval
="$with_kerberos"
591 cat >> confdefs.h
<<\EOF
597 # Check whether --with-kerberos5 or --without-kerberos5 was given.
598 if test "${with_kerberos5+set}" = set; then
599 withval
="$with_kerberos5"
600 if test "${with_kerberos5+set}" = set; then
601 if test "${with_kerberos+set}" != set; then
603 cat >> confdefs.h
<<\EOF
609 cat >> confdefs.h
<<\EOF
615 # Check whether --with-hesiod or --without-hesiod was given.
616 if test "${with_hesiod+set}" = set; then
617 withval
="$with_hesiod"
618 cat >> confdefs.h
<<\EOF
624 # Check whether --with-x-toolkit or --without-x-toolkit was given.
625 if test "${with_x_toolkit+set}" = set; then
626 withval
="$with_x_toolkit"
628 y | ye |
yes ) val
=athena
;;
630 l | lu | luc | luci | lucid
) val
=lucid
;;
631 a |
at | ath | athe | athen | athena
) val
=athena
;;
632 m | mo | mot | moti | motif
) val
=motif
;;
634 { echo "configure: error: \`--with-x-toolkit=$withval' is invalid\;
635 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
636 Currently, \`yes', \`athena' and \`lucid' are synonyms." 1>&2; exit 1; }
643 # Check whether --with-xpm or --without-xpm was given.
644 if test "${with_xpm+set}" = set; then
649 # Check whether --with-jpeg or --without-jpeg was given.
650 if test "${with_jpeg+set}" = set; then
655 # Check whether --with-tiff or --without-tiff was given.
656 if test "${with_tiff+set}" = set; then
661 # Check whether --with-gif or --without-gif was given.
662 if test "${with_gif+set}" = set; then
667 # Check whether --with-png or --without-png was given.
668 if test "${with_png+set}" = set; then
673 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
674 if test "${with_toolkit_scroll_bars+set}" = set; then
675 withval
="$with_toolkit_scroll_bars"
679 # Check whether --with-xim or --without-xim was given.
680 if test "${with_xim+set}" = set; then
686 #### Make srcdir absolute, if it isn't already. It's important to
687 #### avoid running the path through pwd unnecessarily, since pwd can
688 #### give you automounter prefixes, which can go away. We do all this
689 #### so Emacs can find its files when run uninstalled.
690 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
695 ## We may be able to use the $PWD environment variable to make this
696 ## absolute. But sometimes PWD is inaccurate.
697 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".${PWD}" ;
701 srcdir
="`(cd ${srcdir}; pwd)`"
704 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
707 #### Check if the source directory already has a configured system in it.
708 if test `pwd` != `(cd ${srcdir} && pwd)` \
709 && test -f "${srcdir}/src/config.h" ; then
710 echo "configure: warning: The directory tree \`${srcdir}' is being used
711 as a build directory right now; it has been configured in its own
712 right. To configure in another directory as well, you MUST
713 use GNU make. If you do not have GNU make, then you must
714 now do \`make distclean' in ${srcdir},
715 and then run $0 again." 1>&2
717 extrasub
='/^VPATH[ ]*=/c\
723 vpath %.in $(srcdir)\
724 vpath %.texi $(srcdir)'
727 #### Given the configuration name, set machfile and opsysfile to the
728 #### names of the m/*.h and s/*.h files we should use.
730 ### Canonicalize the configuration name.
733 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
734 if test -f $ac_dir/install-sh
; then
736 ac_install_sh
="$ac_aux_dir/install-sh -c"
738 elif test -f $ac_dir/install.sh
; then
740 ac_install_sh
="$ac_aux_dir/install.sh -c"
744 if test -z "$ac_aux_dir"; then
745 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
747 ac_config_guess
=$ac_aux_dir/config.guess
748 ac_config_sub
=$ac_aux_dir/config.sub
749 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
752 # Make sure we can run config.sub.
753 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
754 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
757 echo $ac_n "checking host system type""... $ac_c" 1>&6
758 echo "configure:759: checking host system type" >&5
761 case "$host_alias" in
765 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
766 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
768 *) host_alias
=$nonopt ;;
772 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
773 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
774 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
775 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
776 echo "$ac_t""$host" 1>&6
779 configuration
=$host_alias
782 ### If you add support for a new configuration, add code to this
783 ### switch statement to recognize your configuration name and select
784 ### the appropriate operating system and machine description files.
786 ### You would hope that you could choose an m/*.h file pretty much
787 ### based on the machine portion of the configuration name, and an s-
788 ### file based on the operating system portion. However, it turns out
789 ### that each m/*.h file is pretty manufacturer-specific - for
790 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
791 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
792 ### machines. So we basically have to have a special case for each
793 ### configuration name.
795 ### As far as handling version numbers on operating systems is
796 ### concerned, make sure things will fail in a fixable way. If
797 ### /etc/MACHINES doesn't say anything about version numbers, be
798 ### prepared to handle anything reasonably. If version numbers
799 ### matter, be sure /etc/MACHINES says something about it.
801 ### Eric Raymond says we should accept strings like "sysvr4" to mean
802 ### "System V Release 4"; he writes, "The old convention encouraged
803 ### confusion between `system' and `release' levels'."
805 machine
='' opsys
='' unported
=no
806 case "${canonical}" in
811 case "${canonical}" in
812 alpha
*-*-netbsd*) machine
=alpha
;;
813 i
[3456]86-*-netbsd*) machine
=intel386
;;
815 # This is somewhat bogus.
816 machine
=hp9000s300
;;
817 powerpc-apple-netbsd
*) machine
=macppc
;;
818 mips-
*-netbsd*) machine
=pmax
;;
819 mipsel-
*-netbsd*) machine
=pmax
;;
820 ns32k-
*-netbsd*) machine
=ns32000
;;
821 powerpc-
*-netbsd*) machine
=macppc
;;
822 sparc
*-*-netbsd*) machine
=sparc
;;
823 vax-
*-netbsd*) machine
=vax
;;
824 arm-
*-netbsd*) machine
=arm
;;
831 case "${canonical}" in
832 alpha
*-*-openbsd*) machine
=alpha
;;
833 i386-
*-openbsd*) machine
=intel386
;;
834 m68k-
*-openbsd*) machine
=hp9000s300
;;
835 mipsel-
*-openbsd*) machine
=pmax
;;
836 ns32k-
*-openbsd*) machine
=ns32000
;;
837 sparc-
*-openbsd*) machine
=sparc
;;
838 vax-
*-openbsd*) machine
=vax
;;
843 arm-acorn-riscix1.1
* )
844 machine
=acorn opsys
=riscix1-1
846 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
847 ## This name is riscix12 instead of riscix1.2
848 ## to avoid a file name conflict on MSDOS.
849 machine
=acorn opsys
=riscix12
855 case "${canonical}" in
856 i
[345]86-*-bsdi*) machine
=intel386
;;
857 sparc-
*-bsdi*) machine
=sparc
;;
858 powerpc-
*-bsdi*) machine
=macppc
;;
860 case "${canonical}" in
861 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
862 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
863 *-*-bsdi2* ) opsys
=bsdos2-1
;;
864 *-*-bsdi3* ) opsys
=bsdos3
;;
865 *-*-bsdi[45]* ) opsys
=bsdos4
;;
870 ## Strictly speaking, we need the version of the alliant operating
871 ## system to choose the right machine file, but currently the
872 ## configuration name doesn't tell us enough to choose the right
873 ## one; we need to give alliants their own operating system name to
874 ## do this right. When someone cares, they can help us.
876 machine
=alliant4 opsys
=bsd4-2
879 machine
=alliant-2800 opsys
=bsd4-3
882 ## Alpha (DEC) machines.
884 machine
=alpha opsys
=osf1
885 # This is needed to find X11R6.1 libraries for certain tests.
886 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
887 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
888 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
889 # due to non-traditional preprocessing with the current compiler
890 # defaults. OSF 4 can also have that compiler version, and there
891 # seems always to have been a usable /usr/bin/cpp.
892 NON_GNU_CPP
=/usr
/bin
/cpp
893 case "${canonical}" in
894 alpha
*-dec-osf[5-9]*)
899 alpha
*-*-linux-gnu* )
900 machine
=alpha opsys
=gnu-linux
904 machine
=arm opsys
=gnu-linux
909 machine
=macppc opsys
=gnu-linux
914 machine
=altos opsys
=usg5-2
919 machine
=amdahl opsys
=usg5-2-2
924 machine
=apollo opsys
=bsd4-3
927 ## AT&T 3b2, 3b5, 3b15, 3b20
929 machine
=att3b opsys
=usg5-2-2
932 ## AT&T 3b1 - The Mighty Unix PC!
934 machine
=7300 opsys
=usg5-2-2
939 machine
=ibmrs6000 opsys
=aix3-2
944 machine
=dpx2 opsys
=usg5-3
949 machine
=sps7 opsys
=usg5-2
952 ## CCI 5/32, 6/32 -- see "Tahoe".
955 ## I don't know what configuration name to use for this; config.sub
956 ## doesn't seem to know anything about it. Hey, Celerity users, get
958 celerity-celerity-bsd
* )
959 machine
=celerity opsys
=bsd4-2
963 ## What operating systems does this chip run that Emacs has been
967 ## We'll use the catch-all code at the bottom to guess the
972 *-convex-bsd* |
*-convex-convexos* )
973 machine
=convex opsys
=bsd4-3
974 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
975 NON_GNU_CPP
="cc -E -P"
979 i
[3456]86-cubix-sysv* )
980 machine
=intel386 opsys
=usg5-3
984 cydra
*-cydrome-sysv* )
985 machine
=cydra5 opsys
=usg5-3
988 ## Data General AViiON Machines
989 ## DG changed naming conventions with the release of 5.4.4.10, they
990 ## dropped the initial 5.4 but left the intervening R. Because of the
991 ## R this shouldn't conflict with older versions of the OS (which I
992 ## think were named like dgux4.*). In addition, DG new AViiONs series
993 ## uses either Motorola M88k or Intel Pentium CPUs.
994 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
995 machine
=aviion opsys
=dgux4
997 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
998 ## This name is dgux5-4-3 instead of dgux5-4r3
999 ## to avoid a file name conflict on MSDOS.
1000 machine
=aviion opsys
=dgux5-4-3
1002 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1003 machine
=aviion opsys
=dgux5-4r2
1006 machine
=aviion opsys
=dgux
1009 ## Data General AViiON Intel (x86) Machines
1010 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1011 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1012 i
[345]86-dg-dguxR4* )
1013 machine
=aviion-intel opsys
=dgux4
1017 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1018 machine
=pmax opsys
=bsd4-2
1020 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1021 machine
=pmax opsys
=bsd4-3
1024 machine
=pmax opsys
=ultrix4-3
1027 machine
=pmax opsys
=osf1
1029 mips-dec-mach_bsd4.3
* )
1030 machine
=pmax opsys
=mach-bsd4-3
1033 ## Motorola Delta machines
1034 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1035 machine
=delta opsys
=usg5-3
1036 if test -z "`type gnucc | grep 'not found'`"
1038 if test -s /etc
/167config
1039 then CC
="gnucc -m68040"
1040 else CC
="gnucc -m68881"
1043 if test -z "`type gcc | grep 'not found'`"
1049 m88k-motorola-sysv4
* )
1050 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1051 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1052 # I hope there are not other 4.0 versions for this machine
1053 # which really need usg5-4 instead.
1054 machine
=delta88k opsys
=usg5-4-2
1056 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1057 machine
=delta88k opsys
=usg5-3
1062 machine
=dual opsys
=usg5-2
1064 m68
*-dual-uniplus* )
1065 machine
=dual opsys
=unipl5-2
1070 machine
=elxsi opsys
=usg5-2
1075 machine
=ns16000 opsys
=umax
1078 ## The GEC 63 - apparently, this port isn't really finished yet.
1079 # I'm sure we finished off the last of the machines, though. -- fx
1081 ## Gould Power Node and NP1
1083 machine
=gould opsys
=bsd4-2
1086 machine
=gould opsys
=bsd4-3
1089 machine
=gould-np1 opsys
=bsd4-3
1092 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1093 ## as far as Emacs is concerned).
1095 # Build needs to be different on 7.0 and later releases
1096 case "`uname -r`" in
1097 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1098 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1100 NON_GNU_CPP
="/lib/cpp"
1102 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1104 machine
=nh3000 opsys
=cxux
1106 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1107 powerpc-harris-powerunix
)
1108 machine
=nh6000 opsys
=powerunix
1109 NON_GNU_CPP
="cc -Xo -E -P"
1111 ## SR2001/SR2201 running HI-UX/MPP
1112 hppa1.1
-hitachi-hiuxmpp* )
1113 machine
=sr2k opsys
=hiuxmpp
1115 hppa1.1
-hitachi-hiuxwe2* )
1116 machine
=sr2k opsys
=hiuxwe2
1119 xps
*-honeywell-sysv* )
1120 machine
=xps100 opsys
=usg5-2
1123 ## HP 9000 series 200 or 300
1125 machine
=hp9000s300 opsys
=bsd4-3
1127 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1129 case "`uname -r`" in
1130 ## Someone's system reports A.B8.05 for this.
1131 ## I wonder what other possibilities there are.
1132 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1133 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1134 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1135 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
1136 *) machine
=hp9000s300 opsys
=hpux
;;
1140 ## HP 9000 series 700 and 800, running HP/UX
1142 machine
=hp800 opsys
=hpux
1145 machine
=hp800 opsys
=hpux8
1147 hppa
*-hp-hpux9shr* )
1148 machine
=hp800 opsys
=hpux9shr
1151 machine
=hp800 opsys
=hpux9
1155 machine
=hp800 opsys
=hpux10
1157 hppa
*-hp-hpux1[1-9]* )
1158 machine
=hp800 opsys
=hpux11
1161 ## HP 9000 series 700 and 800, running HP/UX
1163 ## Cross-compilation? Nah!
1164 case "`uname -r`" in
1165 ## Someone's system reports A.B8.05 for this.
1166 ## I wonder what other possibilities there are.
1167 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
1168 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
1169 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
1170 *) machine
=hp800 opsys
=hpux10
;;
1174 machine
=hp800 opsys
=nextstep
1179 machine
=orion opsys
=bsd4-2
1181 clipper-orion-bsd
* )
1182 machine
=orion105 opsys
=bsd4-2
1186 i
[3456]86-ibm-aix1.1
* )
1187 machine
=ibmps2-aix opsys
=usg5-2-2
1189 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
1190 machine
=ibmps2-aix opsys
=usg5-3
1193 machine
=ibm370aix opsys
=usg5-3
1195 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
1196 machine
=ibmrs6000 opsys
=aix3-1
1198 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
1199 machine
=ibmrs6000 opsys
=aix3-2-5
1201 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
1202 machine
=ibmrs6000 opsys
=aix4-1
1204 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
1205 machine
=ibmrs6000 opsys
=aix4-2
1207 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
1208 machine
=ibmrs6000 opsys
=aix4
1210 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
1211 machine
=ibmrs6000 opsys
=aix4-1
1213 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
1214 machine
=ibmrs6000 opsys
=aix3-2
1217 machine
=ibmrt opsys
=bsd4-3
1220 machine
=ibmrt opsys
=bsd4-2
1223 machine
=ibmrt opsys
=bsd4-3
1226 machine
=ibmrt opsys
=bsd4-2
1229 machine
=ibmrt opsys
=bsd4-3
1232 machine
=ibmrt opsys
=bsd4-3
1235 machine
=ibmrt-aix opsys
=usg5-2-2
1238 ## Integrated Solutions `Optimum V'
1240 machine
=isi-ov opsys
=bsd4-2
1243 machine
=isi-ov opsys
=bsd4-3
1246 ## Intel 386 machines where we do care about the manufacturer
1247 i
[3456]86-intsys-sysv* )
1248 machine
=is386 opsys
=usg5-2-2
1252 i
[3456]86-prime-sysv* )
1253 machine
=i386 opsys
=usg5-3
1256 ## Sequent Symmetry running Dynix
1257 i
[3456]86-sequent-bsd* )
1258 machine
=symmetry opsys
=bsd4-3
1261 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
1262 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
1263 machine
=sequent-ptx opsys
=ptx4
1264 NON_GNU_CPP
=/lib
/cpp
1267 ## Sequent Symmetry running DYNIX/ptx
1268 ## Use the old cpp rather than the newer ANSI one.
1269 i
[3456]86-sequent-ptx* )
1270 machine
=sequent-ptx opsys
=ptx
1271 NON_GNU_CPP
="/lib/cpp"
1274 ## ncr machine running svr4.3.
1275 i
[3456]86-ncr-sysv4.3
)
1276 machine
=ncr386 opsys
=usg5-4-3
1279 ## Unspecified sysv on an ncr machine defaults to svr4.2.
1280 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
1281 i
[3456]86-ncr-sysv* )
1282 machine
=ncr386 opsys
=usg5-4-2
1285 ## Intel Paragon OSF/1
1287 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
1292 machine
=i860 opsys
=usg5-4
1293 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
1294 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
1297 ## Macintosh PowerPC
1298 powerpc
*-*-linux-gnu* )
1299 machine
=macppc opsys
=gnu-linux
1302 ## Masscomp machines
1303 m68
*-masscomp-rtu* )
1304 machine
=masscomp opsys
=rtu
1307 ## Megatest machines
1308 m68
*-megatest-bsd* )
1309 machine
=mega68 opsys
=bsd4-2
1312 ## Workstations sold by MIPS
1313 ## This is not necessarily all workstations using the MIPS processor -
1314 ## Irises are produced by SGI, and DECstations by DEC.
1316 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
1317 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
1318 ## it gives for choosing between the alternatives seems to be "Use
1319 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
1320 ## the BSD world." I'll assume that these are instructions for
1321 ## handling two odd situations, and that every other situation
1322 ## should use mips.h and usg5-2-2, they being listed first.
1325 ## Fall through to the general code at the bottom to decide on the OS.
1327 mips-mips-riscos4
* )
1328 machine
=mips4 opsys
=bsd4-3
1329 NON_GNU_CC
="cc -systype bsd43"
1330 NON_GNU_CPP
="cc -systype bsd43 -E"
1332 mips-mips-riscos5
* )
1333 machine
=mips4 opsys
=riscos5
1334 NON_GNU_CC
="cc -systype bsd43"
1335 NON_GNU_CPP
="cc -systype bsd43 -E"
1338 machine
=mips opsys
=bsd4-3
1341 machine
=mips opsys
=usg5-2-2
1345 m68
*-next-* | m68k-
*-nextstep* )
1346 machine
=m68k opsys
=nextstep
1349 ## The complete machine from National Semiconductor
1351 machine
=ns32000 opsys
=usg5-2
1355 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
1356 machine
=tower32 opsys
=usg5-2-2
1358 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
1359 machine
=tower32v3 opsys
=usg5-3
1364 machine
=ews4800 opsys
=ux4800
1367 ## Nixdorf Targon 31
1368 m68
*-nixdorf-sysv* )
1369 machine
=targon31 opsys
=usg5-2-2
1374 machine
=nu opsys
=usg5-2
1379 machine
=plexus opsys
=usg5-2
1382 ## PowerPC reference platform
1383 powerpcle-
*-solaris2* )
1389 ## I don't really have any idea what sort of processor the Pyramid has,
1390 ## so I'm assuming it is its own architecture.
1391 pyramid-pyramid-bsd
* )
1392 machine
=pyramid opsys
=bsd4-2
1396 ns32k-sequent-bsd4.2
* )
1397 machine
=sequent opsys
=bsd4-2
1399 ns32k-sequent-bsd4.3
* )
1400 machine
=sequent opsys
=bsd4-3
1404 mips-siemens-sysv
* | mips-sni-sysv
*)
1405 machine
=mips-siemens opsys
=usg5-4
1406 NON_GNU_CC
=/usr
/ccs
/bin
/cc
1407 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1410 ## Silicon Graphics machines
1411 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
1413 machine
=irist opsys
=iris3-5
1415 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
1416 machine
=irist opsys
=iris3-6
1420 machine
=iris4d opsys
=irix3-3
1423 machine
=iris4d opsys
=irix4-0
1426 machine
=iris4d opsys
=irix6-5
1427 # Without defining _LANGUAGE_C, things get masked out in the headers
1428 # so that, for instance, grepping for `free' in stdlib.h fails and
1429 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
1430 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
1431 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
1434 machine
=iris4d opsys
=irix6-0
1435 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
1436 # but presumably it does no harm.
1437 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
1438 # -32 probably isn't necessary in later v.6s -- anyone know which?
1439 NON_GCC_TEST_OPTIONS
=-32
1441 mips-sgi-irix5.
[01]* )
1442 machine
=iris4d opsys
=irix5-0
1444 mips-sgi-irix5
* | mips-sgi-irix
* )
1445 machine
=iris4d opsys
=irix5-2
1450 machine
=news opsys
=bsd4-2
1453 machine
=news opsys
=bsd4-3
1455 m68
*-sony-newsos3* | m68
*-sony-news3*)
1456 machine
=news opsys
=bsd4-3
1458 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
1459 machine
=news-risc opsys
=bsd4-3
1461 mips-sony-newsos6
* )
1462 machine
=news-r6 opsys
=newsos6
1465 machine
=news-risc opsys
=newsos5
1470 machine
=stride opsys
=usg5-2
1474 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
1475 machine
=sparc opsys
=gnu-linux
1478 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
1479 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
1480 | rs6000-
*-solaris2*)
1481 case "${canonical}" in
1482 m68
*-sunos1* ) machine
=sun1
;;
1483 m68
*-sunos2* ) machine
=sun2
;;
1484 m68
* ) machine
=sun3
;;
1485 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
1486 i
[3456]86-*-* ) machine
=intel386
;;
1487 powerpcle
* ) machine
=powerpcle
;;
1488 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
1489 sparc
* ) machine
=sparc
;;
1492 case "${canonical}" in
1493 ## The Sun386 didn't get past 4.0.
1494 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
1495 *-sunos4.0
* ) opsys
=sunos4-0
;;
1496 *-sunos4.1.
[3-9]*noshare
)
1497 ## This name is sunos413 instead of sunos4-1-3
1498 ## to avoid a file name conflict on MSDOS.
1500 NON_GNU_CPP
=/usr
/lib
/cpp
1501 NON_GCC_TEST_OPTIONS
=-Bstatic
1502 GCC_TEST_OPTIONS
=-static
1504 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
1506 NON_GNU_CPP
=/usr
/lib
/cpp
1508 *-sunos4* |
*-sunos )
1510 NON_GCC_TEST_OPTIONS
=-Bstatic
1511 GCC_TEST_OPTIONS
=-static
1513 *-sunos5.3
* |
*-solaris2.3
* )
1515 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1517 *-sunos5.4
* |
*-solaris2.4
* )
1519 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1522 *-sunos5.5
* |
*-solaris2.5
* )
1524 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1527 *-sunos5* |
*-solaris* )
1529 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1533 ## Watch out for a compiler that we know will not work.
1534 case "${canonical}" in
1535 *-solaris* |
*-sunos5* )
1536 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
1537 ## /usr/ucb/cc doesn't work;
1538 ## we should find some other compiler that does work.
1546 machine
=sparc opsys
=nextstep
1550 m68
*-tadpole-sysv* )
1551 machine
=tad68k opsys
=usg5-3
1555 tahoe-tahoe-bsd4.2
* )
1556 machine
=tahoe opsys
=bsd4-2
1558 tahoe-tahoe-bsd4.3
* )
1559 machine
=tahoe opsys
=bsd4-3
1562 ## Tandem Integrity S2
1564 machine
=tandem-s2 opsys
=usg5-3
1568 m88k-tektronix-sysv3
* )
1569 machine
=tekxd88 opsys
=usg5-3
1572 ## Tektronix 16000 box (6130?)
1573 ns16k-tektronix-bsd
* )
1574 machine
=ns16000 opsys
=bsd4-2
1577 ## src/m/tek4300.h hints that this is a m68k machine.
1578 m68
*-tektronix-bsd* )
1579 machine
=tek4300 opsys
=bsd4-3
1583 ## We seem to have lost the machine-description file titan.h!
1585 machine
=titan opsys
=usg5-3
1588 ## Ustation E30 (SS5E)
1589 m68
*-unisys-uniplus* )
1590 machine
=ustation opsystem
=unipl5-2
1596 case "${canonical}" in
1597 *-bsd4.1
* ) opsys
=bsd4-1
;;
1598 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
1599 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
1600 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
1601 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
1602 *-vms* ) opsys
=vms
;;
1608 ns16k-whitechapel-
* )
1610 ## We don't know what sort of OS runs on these; we'll let the
1611 ## operating system guessing code below try.
1616 machine
=wicat opsys
=usg5-2
1621 machine
=ia64 opsys
=gnu-linux
1624 ## Intel 386 machines where we don't care about the manufacturer
1627 case "${canonical}" in
1628 *-lynxos* ) opsys
=lynxos
;;
1629 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
1630 *-isc2.2
* ) opsys
=isc2-2
;;
1631 *-isc4.0
* ) opsys
=isc4-0
;;
1632 *-isc4.
* ) opsys
=isc4-1
1633 GCC_TEST_OPTIONS
=-posix
1634 NON_GCC_TEST_OPTIONS
=-Xp
1636 *-isc* ) opsys
=isc3-0
;;
1637 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
1638 *-esix* ) opsys
=esix
;;
1639 *-xenix* ) opsys
=xenix
;;
1640 *-linux-gnu* ) opsys
=gnu-linux
;;
1641 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
1642 *-sco3.2v5
* ) opsys
=sco5
1643 NON_GNU_CPP
=/lib
/cpp
1644 # Prevent -belf from being passed to $CPP.
1645 # /lib/cpp does not accept it.
1646 OVERRIDE_CPPFLAGS
=" "
1648 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
1649 *-386bsd* ) opsys
=386bsd
;;
1650 *-freebsd* ) opsys
=freebsd
;;
1651 *-nextstep* ) opsys
=nextstep
;;
1652 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
1656 ## m68k Linux-based GNU system
1658 machine
=m68k opsys
=gnu-linux
1661 ## Mips Linux-based GNU system
1663 machine
=mips opsys
=gnu-linux
1667 sparc-fujitsu-sysv4
* )
1668 machine
=sparc opsys
=uxpds
1669 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1674 f301-fujitsu-uxpv4.1
)
1675 machine
=f301 opsys
=uxpv
1683 ### If the code above didn't choose an operating system, just choose
1684 ### an operating system based on the configuration name. You really
1685 ### only want to use this when you have no idea what the right
1686 ### operating system is; if you know what operating systems a machine
1687 ### runs, it's cleaner to make it explicit in the case statement
1689 if test x
"${opsys}" = x
; then
1690 case "${canonical}" in
1691 *-gnu* ) opsys
=gnu
;;
1692 *-bsd4.
[01] ) opsys
=bsd4-1
;;
1693 *-bsd4.2
) opsys
=bsd4-2
;;
1694 *-bsd4.3
) opsys
=bsd4-3
;;
1695 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
1696 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
1697 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
1698 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
1699 *-sysv4.2uw
* ) opsys
=unixware
;;
1700 *-sysv4.1
* |
*-sysvr4.1
* )
1701 NON_GNU_CPP
=/usr
/lib
/cpp
1703 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
1704 if [ x
$NON_GNU_CPP = x
]; then
1705 if [ -f /usr
/ccs
/lib
/cpp
]; then
1706 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1708 NON_GNU_CPP
=/lib
/cpp
1712 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
1720 if test $unported = yes; then
1721 { echo "configure: error: Emacs hasn't been ported to \`${canonical}' systems.
1722 Check \`etc/MACHINES' for recognized configuration names." 1>&2; exit 1; }
1725 machfile
="m/${machine}.h"
1726 opsysfile
="s/${opsys}.h"
1729 #### Choose a compiler.
1730 test -n "$CC" && cc_specified
=yes
1732 # Save the value of CFLAGS that the user specified.
1733 SPECIFIED_CFLAGS
="$CFLAGS"
1736 "yes" ) CC
="gcc" GCC
=yes ;;
1737 "no" ) : ${CC=cc} ;;
1738 * ) # Extract the first word of "gcc", so it can be a program name with args.
1739 set dummy gcc
; ac_word
=$2
1740 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1741 echo "configure:1742: checking for $ac_word" >&5
1742 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1743 echo $ac_n "(cached) $ac_c" 1>&6
1745 if test -n "$CC"; then
1746 ac_cv_prog_CC
="$CC" # Let the user override the test.
1748 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1750 for ac_dir
in $ac_dummy; do
1751 test -z "$ac_dir" && ac_dir
=.
1752 if test -f $ac_dir/$ac_word; then
1761 if test -n "$CC"; then
1762 echo "$ac_t""$CC" 1>&6
1764 echo "$ac_t""no" 1>&6
1767 if test -z "$CC"; then
1768 # Extract the first word of "cc", so it can be a program name with args.
1769 set dummy cc
; ac_word
=$2
1770 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1771 echo "configure:1772: checking for $ac_word" >&5
1772 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1773 echo $ac_n "(cached) $ac_c" 1>&6
1775 if test -n "$CC"; then
1776 ac_cv_prog_CC
="$CC" # Let the user override the test.
1778 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1781 for ac_dir
in $ac_dummy; do
1782 test -z "$ac_dir" && ac_dir
=.
1783 if test -f $ac_dir/$ac_word; then
1784 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1785 ac_prog_rejected
=yes
1793 if test $ac_prog_rejected = yes; then
1794 # We found a bogon in the path, so make sure we never use it.
1795 set dummy
$ac_cv_prog_CC
1797 if test $# -gt 0; then
1798 # We chose a different compiler from the bogus one.
1799 # However, it has the same basename, so the bogon will be chosen
1800 # first if we set CC to just the basename; use the full file name.
1802 set dummy
"$ac_dir/$ac_word" "$@"
1810 if test -n "$CC"; then
1811 echo "$ac_t""$CC" 1>&6
1813 echo "$ac_t""no" 1>&6
1816 if test -z "$CC"; then
1817 case "`uname -s`" in
1819 # Extract the first word of "cl", so it can be a program name with args.
1820 set dummy cl
; ac_word
=$2
1821 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1822 echo "configure:1823: checking for $ac_word" >&5
1823 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1824 echo $ac_n "(cached) $ac_c" 1>&6
1826 if test -n "$CC"; then
1827 ac_cv_prog_CC
="$CC" # Let the user override the test.
1829 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1831 for ac_dir
in $ac_dummy; do
1832 test -z "$ac_dir" && ac_dir
=.
1833 if test -f $ac_dir/$ac_word; then
1842 if test -n "$CC"; then
1843 echo "$ac_t""$CC" 1>&6
1845 echo "$ac_t""no" 1>&6
1850 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1853 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1854 echo "configure:1855: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1857 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1858 ac_cpp
='$CPP $CPPFLAGS'
1859 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1860 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1861 cross_compiling
=$ac_cv_prog_cc_cross
1863 cat > conftest.
$ac_ext << EOF
1865 #line 1866 "configure"
1866 #include "confdefs.h"
1870 if { (eval echo configure
:1871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1871 ac_cv_prog_cc_works
=yes
1872 # If we can't run a trivial program, we are probably using a cross compiler.
1873 if (.
/conftest
; exit) 2>/dev
/null
; then
1874 ac_cv_prog_cc_cross
=no
1876 ac_cv_prog_cc_cross
=yes
1879 echo "configure: failed program was:" >&5
1880 cat conftest.
$ac_ext >&5
1881 ac_cv_prog_cc_works
=no
1885 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1886 ac_cpp
='$CPP $CPPFLAGS'
1887 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1888 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1889 cross_compiling
=$ac_cv_prog_cc_cross
1891 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1892 if test $ac_cv_prog_cc_works = no
; then
1893 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1895 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1896 echo "configure:1897: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1897 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1898 cross_compiling
=$ac_cv_prog_cc_cross
1900 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1901 echo "configure:1902: checking whether we are using GNU C" >&5
1902 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1903 echo $ac_n "(cached) $ac_c" 1>&6
1905 cat > conftest.c
<<EOF
1910 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1917 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1919 if test $ac_cv_prog_gcc = yes; then
1925 ac_test_CFLAGS
="${CFLAGS+set}"
1926 ac_save_CFLAGS
="$CFLAGS"
1928 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1929 echo "configure:1930: checking whether ${CC-cc} accepts -g" >&5
1930 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1931 echo $ac_n "(cached) $ac_c" 1>&6
1933 echo 'void f(){}' > conftest.c
1934 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1943 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1944 if test "$ac_test_CFLAGS" = set; then
1945 CFLAGS
="$ac_save_CFLAGS"
1946 elif test $ac_cv_prog_cc_g = yes; then
1947 if test "$GCC" = yes; then
1953 if test "$GCC" = yes; then
1962 # On Suns, sometimes $CPP names a directory.
1963 if test -n "$CPP" && test -d "$CPP"; then
1967 #### Some systems specify a CPP to use unless we are using GCC.
1968 #### Now that we know whether we are using GCC, we can decide whether
1969 #### to use that one.
1970 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
1975 #### Some systems specify a CC to use unless we are using GCC.
1976 #### Now that we know whether we are using GCC, we can decide whether
1977 #### to use that one.
1978 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
1979 test x
$cc_specified != xyes
1984 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
1986 CC
="$CC $GCC_TEST_OPTIONS"
1989 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
1991 CC
="$CC $NON_GCC_TEST_OPTIONS"
1994 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
1996 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
1999 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
2001 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
2004 #### Some other nice autoconf tests. If you add a test here which
2005 #### should make an entry in src/config.h, don't forget to add an
2006 #### #undef clause to src/config.h.in for autoconf to modify.
2008 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2009 echo "configure:2010: checking whether ln -s works" >&5
2010 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2014 if ln -s X conftestdata
2>/dev
/null
2017 ac_cv_prog_LN_S
="ln -s"
2022 LN_S
="$ac_cv_prog_LN_S"
2023 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2024 echo "$ac_t""yes" 1>&6
2026 echo "$ac_t""no" 1>&6
2029 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2030 echo "configure:2031: checking how to run the C preprocessor" >&5
2031 # On Suns, sometimes $CPP names a directory.
2032 if test -n "$CPP" && test -d "$CPP"; then
2035 if test -z "$CPP"; then
2036 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2037 echo $ac_n "(cached) $ac_c" 1>&6
2039 # This must be in double quotes, not single quotes, because CPP may get
2040 # substituted into the Makefile and "${CC-cc}" will confuse make.
2042 # On the NeXT, cc -E runs the code through the compiler's parser,
2043 # not just through cpp.
2044 cat > conftest.
$ac_ext <<EOF
2045 #line 2046 "configure"
2046 #include "confdefs.h"
2050 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2051 { (eval echo configure
:2052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2052 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2053 if test -z "$ac_err"; then
2057 echo "configure: failed program was:" >&5
2058 cat conftest.
$ac_ext >&5
2060 CPP
="${CC-cc} -E -traditional-cpp"
2061 cat > conftest.
$ac_ext <<EOF
2062 #line 2063 "configure"
2063 #include "confdefs.h"
2067 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2068 { (eval echo configure
:2069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2069 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2070 if test -z "$ac_err"; then
2074 echo "configure: failed program was:" >&5
2075 cat conftest.
$ac_ext >&5
2077 CPP
="${CC-cc} -nologo -E"
2078 cat > conftest.
$ac_ext <<EOF
2079 #line 2080 "configure"
2080 #include "confdefs.h"
2084 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2085 { (eval echo configure
:2086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2086 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2087 if test -z "$ac_err"; then
2091 echo "configure: failed program was:" >&5
2092 cat conftest.
$ac_ext >&5
2101 ac_cv_prog_CPP
="$CPP"
2103 CPP
="$ac_cv_prog_CPP"
2105 ac_cv_prog_CPP
="$CPP"
2107 echo "$ac_t""$CPP" 1>&6
2109 # Find a good install program. We prefer a C program (faster),
2110 # so one script is as good as another. But avoid the broken or
2111 # incompatible versions:
2112 # SysV /etc/install, /usr/sbin/install
2113 # SunOS /usr/etc/install
2114 # IRIX /sbin/install
2116 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2117 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2118 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2119 # ./install, which can be erroneously created by make from ./install.sh.
2120 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2121 echo "configure:2122: checking for a BSD compatible install" >&5
2122 if test -z "$INSTALL"; then
2123 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2124 echo $ac_n "(cached) $ac_c" 1>&6
2126 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2127 for ac_dir
in $PATH; do
2128 # Account for people who put trailing slashes in PATH elements.
2130 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2132 # OSF1 and SCO ODT 3.0 have their own names for install.
2133 # Don't use installbsd from OSF since it installs stuff as root
2135 for ac_prog
in ginstall scoinst
install; do
2136 if test -f $ac_dir/$ac_prog; then
2137 if test $ac_prog = install &&
2138 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2139 # AIX install. It has an incompatible calling convention.
2142 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2153 if test "${ac_cv_path_install+set}" = set; then
2154 INSTALL
="$ac_cv_path_install"
2156 # As a last resort, use the slow shell script. We don't cache a
2157 # path for INSTALL within a source directory, because that will
2158 # break other packages using the cache if that directory is
2159 # removed, or if the path is relative.
2160 INSTALL
="$ac_install_sh"
2163 echo "$ac_t""$INSTALL" 1>&6
2165 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2166 # It thinks the first close brace ends the variable substitution.
2167 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2169 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2171 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2173 for ac_prog
in 'bison -y' byacc
2175 # Extract the first word of "$ac_prog", so it can be a program name with args.
2176 set dummy
$ac_prog; ac_word
=$2
2177 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2178 echo "configure:2179: checking for $ac_word" >&5
2179 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2180 echo $ac_n "(cached) $ac_c" 1>&6
2182 if test -n "$YACC"; then
2183 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2185 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2187 for ac_dir
in $ac_dummy; do
2188 test -z "$ac_dir" && ac_dir
=.
2189 if test -f $ac_dir/$ac_word; then
2190 ac_cv_prog_YACC
="$ac_prog"
2197 YACC
="$ac_cv_prog_YACC"
2198 if test -n "$YACC"; then
2199 echo "$ac_t""$YACC" 1>&6
2201 echo "$ac_t""no" 1>&6
2204 test -n "$YACC" && break
2206 test -n "$YACC" || YACC
="yacc"
2208 if test "x$RANLIB" = x
; then
2209 # Extract the first word of "ranlib", so it can be a program name with args.
2210 set dummy ranlib
; ac_word
=$2
2211 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2212 echo "configure:2213: checking for $ac_word" >&5
2213 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
2216 if test -n "$RANLIB"; then
2217 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2219 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2221 for ac_dir
in $ac_dummy; do
2222 test -z "$ac_dir" && ac_dir
=.
2223 if test -f $ac_dir/$ac_word; then
2224 ac_cv_prog_RANLIB
="ranlib"
2229 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2232 RANLIB
="$ac_cv_prog_RANLIB"
2233 if test -n "$RANLIB"; then
2234 echo "$ac_t""$RANLIB" 1>&6
2236 echo "$ac_t""no" 1>&6
2241 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2242 echo "configure:2243: checking for AIX" >&5
2243 cat > conftest.
$ac_ext <<EOF
2244 #line 2245 "configure"
2245 #include "confdefs.h"
2251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2252 egrep "yes" >/dev
/null
2>&1; then
2254 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
2255 #define _ALL_SOURCE 1
2260 echo "$ac_t""no" 1>&6
2266 #### Extract some information from the operating system and machine files.
2268 echo "checking the machine- and system-dependent files to find out
2269 - which libraries the lib-src programs will want, and
2270 - whether the GNU malloc routines are usable" 1>&6
2271 echo "configure:2272: checking the machine- and system-dependent files to find out
2272 - which libraries the lib-src programs will want, and
2273 - whether the GNU malloc routines are usable" >&5
2275 ### First figure out CFLAGS (which we use for running the compiler here)
2276 ### and REAL_CFLAGS (which we use for real compilation).
2277 ### The two are the same except on a few systems, where they are made
2278 ### different to work around various lossages. For example,
2279 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
2280 ### as implying static linking.
2282 ### If the CFLAGS env var is specified, we use that value
2283 ### instead of the default.
2285 ### It's not important that this name contain the PID; you can't run
2286 ### two configures in the same directory and have anything work
2288 tempcname
="conftest.c"
2291 #include "'${srcdir}'/src/'${opsysfile}'"
2292 #include "'${srcdir}'/src/'${machfile}'"
2293 #ifndef LIBS_MACHINE
2294 #define LIBS_MACHINE
2299 #ifndef C_SWITCH_SYSTEM
2300 #define C_SWITCH_SYSTEM
2302 #ifndef C_SWITCH_MACHINE
2303 #define C_SWITCH_MACHINE
2305 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
2306 configure___ c_switch_system=C_SWITCH_SYSTEM
2307 configure___ c_switch_machine=C_SWITCH_MACHINE
2310 #define LIB_X11_LIB -lX11
2313 #ifndef LIBX11_MACHINE
2314 #define LIBX11_MACHINE
2317 #ifndef LIBX11_SYSTEM
2318 #define LIBX11_SYSTEM
2320 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
2323 configure___ unexec=UNEXEC
2325 configure___ unexec=unexec.o
2328 #ifdef SYSTEM_MALLOC
2329 configure___ system_malloc=yes
2331 configure___ system_malloc=no
2334 #ifdef USE_MMAP_FOR_BUFFERS
2335 configure___ use_mmap_for_buffers=yes
2337 configure___ use_mmap_for_buffers=no
2340 #ifndef C_DEBUG_SWITCH
2341 #define C_DEBUG_SWITCH -g
2344 #ifndef C_OPTIMIZE_SWITCH
2346 #define C_OPTIMIZE_SWITCH -O2
2348 #define C_OPTIMIZE_SWITCH -O
2352 #ifndef LD_SWITCH_MACHINE
2353 #define LD_SWITCH_MACHINE
2356 #ifndef LD_SWITCH_SYSTEM
2357 #define LD_SWITCH_SYSTEM
2360 #ifndef LD_SWITCH_X_SITE_AUX
2361 #define LD_SWITCH_X_SITE_AUX
2364 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2365 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2367 #ifdef THIS_IS_CONFIGURE
2369 /* Get the CFLAGS for tests in configure. */
2371 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
2373 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
2376 #else /* not THIS_IS_CONFIGURE */
2378 /* Get the CFLAGS for real compilation. */
2380 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
2382 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
2385 #endif /* not THIS_IS_CONFIGURE */
2388 # The value of CPP is a quoted variable reference, so we need to do this
2389 # to get its actual value...
2390 CPP
=`eval "echo $CPP"`
2391 eval `${CPP} -Isrc ${tempcname} \
2392 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
2393 if test "x$SPECIFIED_CFLAGS" = x
; then
2394 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
2395 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
2397 REAL_CFLAGS
="$CFLAGS"
2401 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
2403 ### Make sure subsequent tests use flags consistent with the build flags.
2405 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
2406 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
2408 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
2412 # Check whether --enable-largefile or --disable-largefile was given.
2413 if test "${enable_largefile+set}" = set; then
2414 enableval
="$enable_largefile"
2418 if test "$enable_largefile" != no
; then
2420 echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
2421 echo "configure:2422: checking for special C compiler options needed for large files" >&5
2422 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then
2423 echo $ac_n "(cached) $ac_c" 1>&6
2425 ac_cv_sys_largefile_CC
=no
2426 if test "$GCC" != yes; then
2427 # IRIX 6.2 and later do not support large files by default,
2428 # so use the C compiler's -n32 option if that helps.
2429 cat > conftest.
$ac_ext <<EOF
2430 #line 2431 "configure"
2431 #include "confdefs.h"
2432 #include <sys/types.h>
2433 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
2439 if { (eval echo configure
:2440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2442 echo "configure: failed program was:" >&5
2443 cat conftest.
$ac_ext >&5
2447 cat > conftest.
$ac_ext <<EOF
2448 #line 2449 "configure"
2449 #include "confdefs.h"
2450 #include <sys/types.h>
2451 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
2457 if { (eval echo configure
:2458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2459 ac_cv_sys_largefile_CC
=' -n32'
2461 echo "configure: failed program was:" >&5
2462 cat conftest.
$ac_ext >&5
2471 echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6
2472 if test "$ac_cv_sys_largefile_CC" != no
; then
2473 CC
="$CC$ac_cv_sys_largefile_CC"
2476 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
2477 echo "configure:2478: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2478 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2481 ac_cv_sys_file_offset_bits
=no
2482 cat > conftest.
$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2485 #include <sys/types.h>
2486 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
2492 if { (eval echo configure
:2493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2495 echo "configure: failed program was:" >&5
2496 cat conftest.
$ac_ext >&5
2498 cat > conftest.
$ac_ext <<EOF
2499 #line 2500 "configure"
2500 #include "confdefs.h"
2501 #define _FILE_OFFSET_BITS 64
2502 #include <sys/types.h>
2503 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
2510 if { (eval echo configure
:2511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2512 ac_cv_sys_file_offset_bits
=64
2514 echo "configure: failed program was:" >&5
2515 cat conftest.
$ac_ext >&5
2522 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
2523 if test "$ac_cv_sys_file_offset_bits" != no
; then
2524 cat >> confdefs.h
<<EOF
2525 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2529 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
2530 echo "configure:2531: checking for _LARGE_FILES value needed for large files" >&5
2531 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
2532 echo $ac_n "(cached) $ac_c" 1>&6
2534 ac_cv_sys_large_files
=no
2535 cat > conftest.
$ac_ext <<EOF
2536 #line 2537 "configure"
2537 #include "confdefs.h"
2543 if { (eval echo configure
:2544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2546 echo "configure: failed program was:" >&5
2547 cat conftest.
$ac_ext >&5
2549 cat > conftest.
$ac_ext <<EOF
2550 #line 2551 "configure"
2551 #include "confdefs.h"
2552 #define _LARGE_FILES 1
2559 if { (eval echo configure
:2560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2561 ac_cv_sys_large_files
=1
2563 echo "configure: failed program was:" >&5
2564 cat conftest.
$ac_ext >&5
2571 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
2572 if test "$ac_cv_sys_large_files" != no
; then
2573 cat >> confdefs.h
<<EOF
2574 #define _LARGE_FILES $ac_cv_sys_large_files
2581 # Sound support for GNU/Linux and the free BSDs.
2582 for ac_hdr
in machine
/soundcard.h sys
/soundcard.h soundcard.h
2584 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2585 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2586 echo "configure:2587: checking for $ac_hdr" >&5
2587 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2588 echo $ac_n "(cached) $ac_c" 1>&6
2590 cat > conftest.
$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2595 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2596 { (eval echo configure
:2597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2597 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2598 if test -z "$ac_err"; then
2600 eval "ac_cv_header_$ac_safe=yes"
2603 echo "configure: failed program was:" >&5
2604 cat conftest.
$ac_ext >&5
2606 eval "ac_cv_header_$ac_safe=no"
2610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2611 echo "$ac_t""yes" 1>&6
2612 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2613 cat >> confdefs.h
<<EOF
2614 #define $ac_tr_hdr 1
2618 echo "$ac_t""no" 1>&6
2622 # Emulation library used on NetBSD.
2623 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2624 echo "configure:2625: checking for _oss_ioctl in -lossaudio" >&5
2625 ac_lib_var
=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2626 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2627 echo $ac_n "(cached) $ac_c" 1>&6
2629 ac_save_LIBS
="$LIBS"
2630 LIBS
="-lossaudio $LIBS"
2631 cat > conftest.
$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2634 /* Override any gcc2 internal prototype to avoid an error. */
2635 /* We use char because int might match the return type of a gcc2
2636 builtin and then its argument prototype would still apply. */
2643 if { (eval echo configure
:2644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2645 eval "ac_cv_lib_$ac_lib_var=yes"
2647 echo "configure: failed program was:" >&5
2648 cat conftest.
$ac_ext >&5
2650 eval "ac_cv_lib_$ac_lib_var=no"
2653 LIBS
="$ac_save_LIBS"
2656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2657 echo "$ac_t""yes" 1>&6
2660 echo "$ac_t""no" 1>&6
2666 for ac_hdr
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
2667 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
2668 termcap.h stdio_ext.h fcntl.h term.h
strings.h
2670 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2671 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2672 echo "configure:2673: checking for $ac_hdr" >&5
2673 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2674 echo $ac_n "(cached) $ac_c" 1>&6
2676 cat > conftest.
$ac_ext <<EOF
2677 #line 2678 "configure"
2678 #include "confdefs.h"
2681 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2682 { (eval echo configure
:2683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2683 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2684 if test -z "$ac_err"; then
2686 eval "ac_cv_header_$ac_safe=yes"
2689 echo "configure: failed program was:" >&5
2690 cat conftest.
$ac_ext >&5
2692 eval "ac_cv_header_$ac_safe=no"
2696 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2697 echo "$ac_t""yes" 1>&6
2698 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2699 cat >> confdefs.h
<<EOF
2700 #define $ac_tr_hdr 1
2704 echo "$ac_t""no" 1>&6
2708 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2709 echo "configure:2710: checking for ANSI C header files" >&5
2710 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6
2713 cat > conftest.
$ac_ext <<EOF
2714 #line 2715 "configure"
2715 #include "confdefs.h"
2721 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2722 { (eval echo configure
:2723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2723 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2724 if test -z "$ac_err"; then
2726 ac_cv_header_stdc
=yes
2729 echo "configure: failed program was:" >&5
2730 cat conftest.
$ac_ext >&5
2732 ac_cv_header_stdc
=no
2736 if test $ac_cv_header_stdc = yes; then
2737 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2738 cat > conftest.
$ac_ext <<EOF
2739 #line 2740 "configure"
2740 #include "confdefs.h"
2743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2744 egrep "memchr" >/dev
/null
2>&1; then
2748 ac_cv_header_stdc
=no
2754 if test $ac_cv_header_stdc = yes; then
2755 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2756 cat > conftest.
$ac_ext <<EOF
2757 #line 2758 "configure"
2758 #include "confdefs.h"
2761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2762 egrep "free" >/dev
/null
2>&1; then
2766 ac_cv_header_stdc
=no
2772 if test $ac_cv_header_stdc = yes; then
2773 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2774 if test "$cross_compiling" = yes; then
2777 cat > conftest.
$ac_ext <<EOF
2778 #line 2779 "configure"
2779 #include "confdefs.h"
2781 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2782 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2783 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2784 int main () { int i; for (i = 0; i < 256; i++)
2785 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2789 if { (eval echo configure
:2790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2793 echo "configure: failed program was:" >&5
2794 cat conftest.
$ac_ext >&5
2796 ac_cv_header_stdc
=no
2804 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2805 if test $ac_cv_header_stdc = yes; then
2806 cat >> confdefs.h
<<\EOF
2807 #define STDC_HEADERS 1
2812 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2813 echo "configure:2814: checking whether time.h and sys/time.h may both be included" >&5
2814 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2815 echo $ac_n "(cached) $ac_c" 1>&6
2817 cat > conftest.
$ac_ext <<EOF
2818 #line 2819 "configure"
2819 #include "confdefs.h"
2820 #include <sys/types.h>
2821 #include <sys/time.h>
2827 if { (eval echo configure
:2828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2829 ac_cv_header_time
=yes
2831 echo "configure: failed program was:" >&5
2832 cat conftest.
$ac_ext >&5
2834 ac_cv_header_time
=no
2839 echo "$ac_t""$ac_cv_header_time" 1>&6
2840 if test $ac_cv_header_time = yes; then
2841 cat >> confdefs.h
<<\EOF
2842 #define TIME_WITH_SYS_TIME 1
2847 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2848 echo "configure:2849: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2849 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2850 echo $ac_n "(cached) $ac_c" 1>&6
2852 cat > conftest.
$ac_ext <<EOF
2853 #line 2854 "configure"
2854 #include "confdefs.h"
2855 #include <sys/types.h>
2857 /* NetBSD declares sys_siglist in unistd.h. */
2858 #ifdef HAVE_UNISTD_H
2862 char *msg = *(sys_siglist + 1);
2865 if { (eval echo configure
:2866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2867 ac_cv_decl_sys_siglist
=yes
2869 echo "configure: failed program was:" >&5
2870 cat conftest.
$ac_ext >&5
2872 ac_cv_decl_sys_siglist
=no
2877 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2878 if test $ac_cv_decl_sys_siglist = yes; then
2879 cat >> confdefs.h
<<\EOF
2880 #define SYS_SIGLIST_DECLARED 1
2885 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2886 echo "configure:2887: checking for sys/wait.h that is POSIX.1 compatible" >&5
2887 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2888 echo $ac_n "(cached) $ac_c" 1>&6
2890 cat > conftest.
$ac_ext <<EOF
2891 #line 2892 "configure"
2892 #include "confdefs.h"
2893 #include <sys/types.h>
2894 #include <sys/wait.h>
2896 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2899 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2904 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2907 if { (eval echo configure
:2908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2909 ac_cv_header_sys_wait_h
=yes
2911 echo "configure: failed program was:" >&5
2912 cat conftest.
$ac_ext >&5
2914 ac_cv_header_sys_wait_h
=no
2919 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2920 if test $ac_cv_header_sys_wait_h = yes; then
2921 cat >> confdefs.h
<<\EOF
2922 #define HAVE_SYS_WAIT_H 1
2928 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
2929 echo "configure:2930: checking for struct utimbuf" >&5
2930 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then
2931 echo $ac_n "(cached) $ac_c" 1>&6
2933 cat > conftest.
$ac_ext <<EOF
2934 #line 2935 "configure"
2935 #include "confdefs.h"
2936 #ifdef TIME_WITH_SYS_TIME
2937 #include <sys/time.h>
2940 #ifdef HAVE_SYS_TIME_H
2941 #include <sys/time.h>
2950 static struct utimbuf x; x.actime = x.modtime;
2953 if { (eval echo configure
:2954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2955 emacs_cv_struct_utimbuf
=yes
2957 echo "configure: failed program was:" >&5
2958 cat conftest.
$ac_ext >&5
2960 emacs_cv_struct_utimbuf
=no
2965 echo "$ac_t""$emacs_cv_struct_utimbuf" 1>&6
2966 if test $emacs_cv_struct_utimbuf = yes; then
2967 cat >> confdefs.h
<<\EOF
2968 #define HAVE_STRUCT_UTIMBUF 1
2973 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2974 echo "configure:2975: checking return type of signal handlers" >&5
2975 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2976 echo $ac_n "(cached) $ac_c" 1>&6
2978 cat > conftest.
$ac_ext <<EOF
2979 #line 2980 "configure"
2980 #include "confdefs.h"
2981 #include <sys/types.h>
2987 extern "C" void (*signal (int, void (*)(int)))(int);
2989 void (*signal ()) ();
2996 if { (eval echo configure
:2997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2998 ac_cv_type_signal
=void
3000 echo "configure: failed program was:" >&5
3001 cat conftest.
$ac_ext >&5
3003 ac_cv_type_signal
=int
3008 echo "$ac_t""$ac_cv_type_signal" 1>&6
3009 cat >> confdefs.h
<<EOF
3010 #define RETSIGTYPE $ac_cv_type_signal
3015 echo $ac_n "checking for speed_t""... $ac_c" 1>&6
3016 echo "configure:3017: checking for speed_t" >&5
3017 if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then
3018 echo $ac_n "(cached) $ac_c" 1>&6
3020 cat > conftest.
$ac_ext <<EOF
3021 #line 3022 "configure"
3022 #include "confdefs.h"
3023 #include <termios.h>
3028 if { (eval echo configure
:3029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3030 emacs_cv_speed_t
=yes
3032 echo "configure: failed program was:" >&5
3033 cat conftest.
$ac_ext >&5
3038 echo "$ac_t""$emacs_cv_speed_t" 1>&6
3039 if test $emacs_cv_speed_t = yes; then
3040 cat >> confdefs.h
<<\EOF
3041 #define HAVE_SPEED_T 1
3046 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3047 echo "configure:3048: checking for struct timeval" >&5
3048 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then
3049 echo $ac_n "(cached) $ac_c" 1>&6
3051 cat > conftest.
$ac_ext <<EOF
3052 #line 3053 "configure"
3053 #include "confdefs.h"
3054 #ifdef TIME_WITH_SYS_TIME
3055 #include <sys/time.h>
3058 #ifdef HAVE_SYS_TIME_H
3059 #include <sys/time.h>
3065 static struct timeval x; x.tv_sec = x.tv_usec;
3068 if { (eval echo configure
:3069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3070 emacs_cv_struct_timeval
=yes
3072 echo "configure: failed program was:" >&5
3073 cat conftest.
$ac_ext >&5
3075 emacs_cv_struct_timeval
=no
3080 echo "$ac_t""$emacs_cv_struct_timeval" 1>&6
3081 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
3082 if test $emacs_cv_struct_timeval = yes; then
3083 cat >> confdefs.h
<<\EOF
3084 #define HAVE_TIMEVAL 1
3089 echo $ac_n "checking for struct exception""... $ac_c" 1>&6
3090 echo "configure:3091: checking for struct exception" >&5
3091 if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then
3092 echo $ac_n "(cached) $ac_c" 1>&6
3094 cat > conftest.
$ac_ext <<EOF
3095 #line 3096 "configure"
3096 #include "confdefs.h"
3099 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
3102 if { (eval echo configure
:3103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3104 emacs_cv_struct_exception
=yes
3106 echo "configure: failed program was:" >&5
3107 cat conftest.
$ac_ext >&5
3109 emacs_cv_struct_exception
=no
3114 echo "$ac_t""$emacs_cv_struct_exception" 1>&6
3115 HAVE_EXCEPTION
=$emacs_cv_struct_exception
3116 if test $emacs_cv_struct_exception != yes; then
3117 cat >> confdefs.h
<<\EOF
3118 #define NO_MATHERR 1
3123 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3124 echo "configure:3125: checking whether struct tm is in sys/time.h or time.h" >&5
3125 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3126 echo $ac_n "(cached) $ac_c" 1>&6
3128 cat > conftest.
$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3131 #include <sys/types.h>
3134 struct tm *tp; tp->tm_sec;
3137 if { (eval echo configure
:3138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3139 ac_cv_struct_tm
=time.h
3141 echo "configure: failed program was:" >&5
3142 cat conftest.
$ac_ext >&5
3144 ac_cv_struct_tm
=sys
/time.h
3149 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3150 if test $ac_cv_struct_tm = sys
/time.h
; then
3151 cat >> confdefs.h
<<\EOF
3152 #define TM_IN_SYS_TIME 1
3157 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3158 echo "configure:3159: checking for tm_zone in struct tm" >&5
3159 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
3160 echo $ac_n "(cached) $ac_c" 1>&6
3162 cat > conftest.
$ac_ext <<EOF
3163 #line 3164 "configure"
3164 #include "confdefs.h"
3165 #include <sys/types.h>
3166 #include <$ac_cv_struct_tm>
3168 struct tm tm; tm.tm_zone;
3171 if { (eval echo configure
:3172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3173 ac_cv_struct_tm_zone
=yes
3175 echo "configure: failed program was:" >&5
3176 cat conftest.
$ac_ext >&5
3178 ac_cv_struct_tm_zone
=no
3183 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3184 if test "$ac_cv_struct_tm_zone" = yes; then
3185 cat >> confdefs.h
<<\EOF
3186 #define HAVE_TM_ZONE 1
3190 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3191 echo "configure:3192: checking for tzname" >&5
3192 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3193 echo $ac_n "(cached) $ac_c" 1>&6
3195 cat > conftest.
$ac_ext <<EOF
3196 #line 3197 "configure"
3197 #include "confdefs.h"
3199 #ifndef tzname /* For SGI. */
3200 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3206 if { (eval echo configure
:3207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3208 ac_cv_var_tzname
=yes
3210 echo "configure: failed program was:" >&5
3211 cat conftest.
$ac_ext >&5
3218 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3219 if test $ac_cv_var_tzname = yes; then
3220 cat >> confdefs.h
<<\EOF
3221 #define HAVE_TZNAME 1
3227 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
3228 echo "configure:3229: checking for tm_gmtoff in struct tm" >&5
3229 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then
3230 echo $ac_n "(cached) $ac_c" 1>&6
3232 cat > conftest.
$ac_ext <<EOF
3233 #line 3234 "configure"
3234 #include "confdefs.h"
3237 struct tm t; t.tm_gmtoff = 0
3240 if { (eval echo configure
:3241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3242 emacs_cv_tm_gmtoff
=yes
3244 echo "configure: failed program was:" >&5
3245 cat conftest.
$ac_ext >&5
3247 emacs_cv_tm_gmtoff
=no
3252 echo "$ac_t""$emacs_cv_tm_gmtoff" 1>&6
3253 if test $emacs_cv_tm_gmtoff = yes; then
3254 cat >> confdefs.h
<<\EOF
3255 #define HAVE_TM_GMTOFF 1
3261 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3262 echo "configure:3263: checking for ${CC-cc} option to accept ANSI C" >&5
3263 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
3264 echo $ac_n "(cached) $ac_c" 1>&6
3266 ac_cv_prog_cc_stdc
=no
3268 # Don't try gcc -ansi; that turns off useful extensions and
3269 # breaks some systems' header files.
3270 # AIX -qlanglvl=ansi
3271 # Ultrix and OSF/1 -std1
3272 # HP-UX 10.20 and later -Ae
3273 # HP-UX older versions -Aa -D_HPUX_SOURCE
3274 # SVR4 -Xc -D__EXTENSIONS__
3275 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3277 CC
="$ac_save_CC $ac_arg"
3278 cat > conftest.
$ac_ext <<EOF
3279 #line 3280 "configure"
3280 #include "confdefs.h"
3283 #include <sys/types.h>
3284 #include <sys/stat.h>
3285 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3286 struct buf { int x; };
3287 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3288 static char *e (p, i)
3294 static char *f (char * (*g) (char **, int), char **p, ...)
3299 s = g (p, va_arg (v,int));
3303 int test (int i, double x);
3304 struct s1 {int (*f) (int a);};
3305 struct s2 {int (*f) (double a);};
3306 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3310 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3313 if { (eval echo configure
:3314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3315 ac_cv_prog_cc_stdc
="$ac_arg"; break
3317 echo "configure: failed program was:" >&5
3318 cat conftest.
$ac_ext >&5
3326 case "x$ac_cv_prog_cc_stdc" in
3328 echo "$ac_t""none needed" 1>&6 ;;
3330 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
3331 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3334 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
3335 echo "configure:3336: checking for function prototypes" >&5
3336 if test "$ac_cv_prog_cc_stdc" != no
; then
3337 echo "$ac_t""yes" 1>&6
3338 cat >> confdefs.h
<<\EOF
3339 #define PROTOTYPES 1
3343 echo "$ac_t""no" 1>&6
3346 echo $ac_n "checking for working volatile""... $ac_c" 1>&6
3347 echo "configure:3348: checking for working volatile" >&5
3348 if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then
3349 echo $ac_n "(cached) $ac_c" 1>&6
3351 cat > conftest.
$ac_ext <<EOF
3352 #line 3353 "configure"
3353 #include "confdefs.h"
3361 if { (eval echo configure
:3362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3363 ac_cv_c_volatile
=yes
3365 echo "configure: failed program was:" >&5
3366 cat conftest.
$ac_ext >&5
3373 echo "$ac_t""$ac_cv_c_volatile" 1>&6
3374 if test $ac_cv_c_volatile = no
; then
3375 cat >> confdefs.h
<<\EOF
3381 echo $ac_n "checking for working const""... $ac_c" 1>&6
3382 echo "configure:3383: checking for working const" >&5
3383 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3384 echo $ac_n "(cached) $ac_c" 1>&6
3386 cat > conftest.
$ac_ext <<EOF
3387 #line 3388 "configure"
3388 #include "confdefs.h"
3392 /* Ultrix mips cc rejects this. */
3393 typedef int charset[2]; const charset x;
3394 /* SunOS 4.1.1 cc rejects this. */
3395 char const *const *ccp;
3397 /* NEC SVR4.0.2 mips cc rejects this. */
3398 struct point {int x, y;};
3399 static struct point const zero = {0,0};
3400 /* AIX XL C 1.02.0.0 rejects this.
3401 It does not let you subtract one const X* pointer from another in an arm
3402 of an if-expression whose if-part is not a constant expression */
3403 const char *g = "string";
3404 ccp = &g + (g ? g-g : 0);
3405 /* HPUX 7.0 cc rejects these. */
3408 ccp = (char const *const *) p;
3409 { /* SCO 3.2v4 cc rejects this. */
3411 char const *s = 0 ? (char *) 0 : (char const *) 0;
3415 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3417 const int *foo = &x[0];
3420 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3421 typedef const int *iptr;
3425 { /* AIX XL C 1.02.0.0 rejects this saying
3426 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3427 struct s { int j; const int *ap[3]; };
3428 struct s *b; b->j = 5;
3430 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3436 if { (eval echo configure
:3437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3440 echo "configure: failed program was:" >&5
3441 cat conftest.
$ac_ext >&5
3448 echo "$ac_t""$ac_cv_c_const" 1>&6
3449 if test $ac_cv_c_const = no
; then
3450 cat >> confdefs.h
<<\EOF
3456 echo $ac_n "checking for void * support""... $ac_c" 1>&6
3457 echo "configure:3458: checking for void * support" >&5
3458 if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then
3459 echo $ac_n "(cached) $ac_c" 1>&6
3461 cat > conftest.
$ac_ext <<EOF
3462 #line 3463 "configure"
3463 #include "confdefs.h"
3469 if { (eval echo configure
:3470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3471 emacs_cv_void_star
=yes
3473 echo "configure: failed program was:" >&5
3474 cat conftest.
$ac_ext >&5
3476 emacs_cv_void_star
=no
3481 echo "$ac_t""$emacs_cv_void_star" 1>&6
3482 if test $emacs_cv_void_star = yes; then
3483 cat >> confdefs.h
<<\EOF
3484 #define POINTER_TYPE void
3488 cat >> confdefs.h
<<\EOF
3489 #define POINTER_TYPE char
3494 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3495 echo "configure:3496: checking whether ${MAKE-make} sets \${MAKE}" >&5
3496 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
3497 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3498 echo $ac_n "(cached) $ac_c" 1>&6
3500 cat > conftestmake
<<\EOF
3502 @
echo 'ac_maketemp="${MAKE}"'
3504 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3505 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3506 if test -n "$ac_maketemp"; then
3507 eval ac_cv_prog_make_
${ac_make}_set
=yes
3509 eval ac_cv_prog_make_
${ac_make}_set
=no
3513 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3514 echo "$ac_t""yes" 1>&6
3517 echo "$ac_t""no" 1>&6
3518 SET_MAKE
="MAKE=${MAKE-make}"
3522 echo $ac_n "checking for long file names""... $ac_c" 1>&6
3523 echo "configure:3524: checking for long file names" >&5
3524 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
3525 echo $ac_n "(cached) $ac_c" 1>&6
3527 ac_cv_sys_long_file_names
=yes
3528 # Test for long file names in all the places we know might matter:
3529 # . the current directory, where building will happen
3530 # $prefix/lib where we will be installing things
3531 # $exec_prefix/lib likewise
3532 # eval it to expand exec_prefix.
3533 # $TMPDIR if set, where it might want to write temporary files
3534 # if $TMPDIR is not set:
3535 # /tmp where it might want to write temporary files
3538 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3539 ac_tmpdirs
="$TMPDIR"
3541 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
3543 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3544 test -d $ac_dir ||
continue
3545 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
3546 (echo 1 > $ac_dir/conftest9012345
) 2>/dev
/null
3547 (echo 2 > $ac_dir/conftest9012346
) 2>/dev
/null
3548 val
=`cat $ac_dir/conftest9012345 2>/dev/null`
3549 if test ! -f $ac_dir/conftest9012345 ||
test "$val" != 1; then
3550 ac_cv_sys_long_file_names
=no
3551 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
3554 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
3558 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
3559 if test $ac_cv_sys_long_file_names = yes; then
3560 cat >> confdefs.h
<<\EOF
3561 #define HAVE_LONG_FILE_NAMES 1
3567 #### Choose a window system.
3569 # If we find X, set shell vars x_includes and x_libraries to the
3570 # paths, otherwise set no_x=yes.
3571 # Uses ac_ vars as temps to allow command line to override cache and checks.
3572 # --without-x overrides everything else, but does not touch the cache.
3573 echo $ac_n "checking for X""... $ac_c" 1>&6
3574 echo "configure:3575: checking for X" >&5
3576 # Check whether --with-x or --without-x was given.
3577 if test "${with_x+set}" = set; then
3582 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3583 if test "x$with_x" = xno
; then
3584 # The user explicitly disabled X.
3587 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
3588 # Both variables are already set.
3591 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3592 echo $ac_n "(cached) $ac_c" 1>&6
3594 # One or both of the vars are not set, and there is no cached value.
3595 ac_x_includes
=NO ac_x_libraries
=NO
3597 if mkdir conftestdir
; then
3599 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3600 cat > Imakefile
<<'EOF'
3602 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3604 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
3605 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3606 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3607 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3608 for ac_extension
in a so sl
; do
3609 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
3610 test -f $ac_im_libdir/libX11.
$ac_extension; then
3611 ac_im_usrlibdir
=$ac_im_libdir; break
3614 # Screen out bogus values from the imake configuration. They are
3615 # bogus both because they are the default anyway, and because
3616 # using them would break gcc on systems where it needs fixed includes.
3617 case "$ac_im_incroot" in
3619 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
3621 case "$ac_im_usrlibdir" in
3623 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
3630 if test "$ac_x_includes" = NO
; then
3631 # Guess where to find include files, by looking for this one X11 .h file.
3632 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
3634 # First, try using that file with no special directory specified.
3635 cat > conftest.
$ac_ext <<EOF
3636 #line 3637 "configure"
3637 #include "confdefs.h"
3638 #include <$x_direct_test_include>
3640 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3641 { (eval echo configure
:3642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3642 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3643 if test -z "$ac_err"; then
3645 # We can compile using X headers with no special include directory.
3649 echo "configure: failed program was:" >&5
3650 cat conftest.
$ac_ext >&5
3652 # Look for the header file in a standard set of common directories.
3653 # Check X11 before X11Rn because it is often a symlink to the current release.
3656 /usr
/X11R
6/include \
3657 /usr
/X11R
5/include \
3658 /usr
/X11R
4/include \
3661 /usr
/include
/X11R6 \
3662 /usr
/include
/X11R5 \
3663 /usr
/include
/X11R4 \
3665 /usr
/local
/X11
/include \
3666 /usr
/local
/X11R
6/include \
3667 /usr
/local
/X11R
5/include \
3668 /usr
/local
/X11R
4/include \
3670 /usr
/local
/include
/X11 \
3671 /usr
/local
/include
/X11R6 \
3672 /usr
/local
/include
/X11R5 \
3673 /usr
/local
/include
/X11R4 \
3677 /usr
/XFree86
/include
/X11 \
3680 /usr
/local
/include \
3681 /usr
/unsupported
/include \
3682 /usr
/athena
/include \
3683 /usr
/local
/x11r
5/include \
3684 /usr
/lpp
/Xamples
/include \
3686 /usr
/openwin
/include \
3687 /usr
/openwin
/share
/include \
3690 if test -r "$ac_dir/$x_direct_test_include"; then
3691 ac_x_includes
=$ac_dir
3697 fi # $ac_x_includes = NO
3699 if test "$ac_x_libraries" = NO
; then
3700 # Check for the libraries.
3702 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
3703 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
3705 # See if we find them without any special options.
3706 # Don't add to $LIBS permanently.
3707 ac_save_LIBS
="$LIBS"
3708 LIBS
="-l$x_direct_test_library $LIBS"
3709 cat > conftest.
$ac_ext <<EOF
3710 #line 3711 "configure"
3711 #include "confdefs.h"
3714 ${x_direct_test_function}()
3717 if { (eval echo configure
:3718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3719 LIBS
="$ac_save_LIBS"
3720 # We can link X programs with no special library path.
3723 echo "configure: failed program was:" >&5
3724 cat conftest.
$ac_ext >&5
3726 LIBS
="$ac_save_LIBS"
3727 # First see if replacing the include by lib works.
3728 # Check X11 before X11Rn because it is often a symlink to the current release.
3729 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
3740 /usr
/local
/X11
/lib \
3741 /usr
/local
/X11R
6/lib \
3742 /usr
/local
/X11R
5/lib \
3743 /usr
/local
/X11R
4/lib \
3745 /usr
/local
/lib
/X11 \
3746 /usr
/local
/lib
/X11R6 \
3747 /usr
/local
/lib
/X11R5 \
3748 /usr
/local
/lib
/X11R4 \
3752 /usr
/XFree86
/lib
/X11 \
3756 /usr
/unsupported
/lib \
3758 /usr
/local
/x11r
5/lib \
3759 /usr
/lpp
/Xamples
/lib \
3763 /usr
/openwin
/share
/lib \
3766 for ac_extension
in a so sl
; do
3767 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
3768 ac_x_libraries
=$ac_dir
3775 fi # $ac_x_libraries = NO
3777 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
3778 # Didn't find X anywhere. Cache the known absence of X.
3779 ac_cv_have_x
="have_x=no"
3781 # Record where we found X for the cache.
3782 ac_cv_have_x
="have_x=yes \
3783 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3787 eval "$ac_cv_have_x"
3790 if test "$have_x" != yes; then
3791 echo "$ac_t""$have_x" 1>&6
3794 # If each of the values was on the command line, it overrides each guess.
3795 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
3796 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
3797 # Update the cache value to reflect the command line values.
3798 ac_cv_have_x
="have_x=yes \
3799 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3800 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3803 if test "$no_x" = yes; then
3809 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
3810 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
3811 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
3812 x_default_search_path
=""
3813 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
3815 ${x_library}/X11/%L/%T/%N%C%S:\
3816 ${x_library}/X11/%l/%T/%N%C%S:\
3817 ${x_library}/X11/%T/%N%C%S:\
3818 ${x_library}/X11/%L/%T/%N%S:\
3819 ${x_library}/X11/%l/%T/%N%S:\
3820 ${x_library}/X11/%T/%N%S"
3821 if test x
"${x_default_search_path}" = x
; then
3822 x_default_search_path
=${x_search_path}
3824 x_default_search_path
="${x_search_path}:${x_default_search_path}"
3828 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
3829 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
3832 if test x
"${x_includes}" = x
; then
3833 bitmapdir
=/usr
/include
/X11
/bitmaps
3835 # accumulate include directories that have X11 bitmap subdirectories
3837 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
3838 if test -d "${bmd}/X11/bitmaps"; then
3839 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
3841 if test -d "${bmd}/bitmaps"; then
3842 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
3845 if test ${bmd_acc} != "dummyval"; then
3846 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
3850 case "${window_system}" in
3854 case "${with_x_toolkit}" in
3855 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
3856 motif
) USE_X_TOOLKIT
=MOTIF
;;
3857 no
) USE_X_TOOLKIT
=none
;;
3858 * ) USE_X_TOOLKIT
=maybe
;;
3868 ### If we're using X11, we should use the X menu package.
3871 yes ) HAVE_MENUS
=yes ;;
3874 if test "${opsys}" = "hpux9"; then
3875 case "${x_libraries}" in
3877 opsysfile
="s/hpux9-x11r4.h"
3882 if test "${opsys}" = "hpux9shr"; then
3883 case "${x_libraries}" in
3885 opsysfile
="s/hpux9shxr4.h"
3890 ### Compute the unexec source name from the object name.
3891 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
3893 # Do the opsystem or machine files prohibit the use of the GNU malloc?
3894 # Assume not, until told otherwise.
3897 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
3898 echo "configure:3899: checking for malloc_get_state" >&5
3899 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then
3900 echo $ac_n "(cached) $ac_c" 1>&6
3902 cat > conftest.
$ac_ext <<EOF
3903 #line 3904 "configure"
3904 #include "confdefs.h"
3905 /* System header to define __stub macros and hopefully few prototypes,
3906 which can conflict with char malloc_get_state(); below. */
3908 /* Override any gcc2 internal prototype to avoid an error. */
3909 /* We use char because int might match the return type of a gcc2
3910 builtin and then its argument prototype would still apply. */
3911 char malloc_get_state();
3915 /* The GNU C library defines this for functions which it implements
3916 to always fail with ENOSYS. Some functions are actually named
3917 something starting with __ and the normal name is an alias. */
3918 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
3926 if { (eval echo configure
:3927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3928 eval "ac_cv_func_malloc_get_state=yes"
3930 echo "configure: failed program was:" >&5
3931 cat conftest.
$ac_ext >&5
3933 eval "ac_cv_func_malloc_get_state=no"
3938 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
3939 echo "$ac_t""yes" 1>&6
3942 echo "$ac_t""no" 1>&6
3946 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3947 echo "configure:3948: checking for malloc_set_state" >&5
3948 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then
3949 echo $ac_n "(cached) $ac_c" 1>&6
3951 cat > conftest.
$ac_ext <<EOF
3952 #line 3953 "configure"
3953 #include "confdefs.h"
3954 /* System header to define __stub macros and hopefully few prototypes,
3955 which can conflict with char malloc_set_state(); below. */
3957 /* Override any gcc2 internal prototype to avoid an error. */
3958 /* We use char because int might match the return type of a gcc2
3959 builtin and then its argument prototype would still apply. */
3960 char malloc_set_state();
3964 /* The GNU C library defines this for functions which it implements
3965 to always fail with ENOSYS. Some functions are actually named
3966 something starting with __ and the normal name is an alias. */
3967 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3975 if { (eval echo configure
:3976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3977 eval "ac_cv_func_malloc_set_state=yes"
3979 echo "configure: failed program was:" >&5
3980 cat conftest.
$ac_ext >&5
3982 eval "ac_cv_func_malloc_set_state=no"
3987 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3988 echo "$ac_t""yes" 1>&6
3991 echo "$ac_t""no" 1>&6
3995 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3996 echo "configure:3997: checking whether __after_morecore_hook exists" >&5
3997 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then
3998 echo $ac_n "(cached) $ac_c" 1>&6
4000 cat > conftest.
$ac_ext <<EOF
4001 #line 4002 "configure"
4002 #include "confdefs.h"
4003 extern void (* __after_morecore_hook)();
4005 __after_morecore_hook = 0
4008 if { (eval echo configure
:4009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4010 emacs_cv_var___after_morecore_hook
=yes
4012 echo "configure: failed program was:" >&5
4013 cat conftest.
$ac_ext >&5
4015 emacs_cv_var___after_morecore_hook
=no
4020 echo "$ac_t""$emacs_cv_var___after_morecore_hook" 1>&6
4021 if test $emacs_cv_var___after_morecore_hook = no
; then
4024 if test "${system_malloc}" = "yes"; then
4027 (The GNU allocators don't work with this system configuration.)"
4029 if test "$doug_lea_malloc" = "yes" ; then
4030 if test "$GNU_MALLOC" = yes ; then
4032 (Using Doug Lea's new malloc from the GNU C Library.)"
4034 cat >> confdefs.h
<<\EOF
4035 #define DOUG_LEA_MALLOC 1
4040 if test x
"${REL_ALLOC}" = x
; then
4041 REL_ALLOC
=${GNU_MALLOC}
4045 for ac_hdr
in stdlib.h unistd.h sys
/stat.h
4047 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4048 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4049 echo "configure:4050: checking for $ac_hdr" >&5
4050 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4051 echo $ac_n "(cached) $ac_c" 1>&6
4053 cat > conftest.
$ac_ext <<EOF
4054 #line 4055 "configure"
4055 #include "confdefs.h"
4058 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4059 { (eval echo configure
:4060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4060 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4061 if test -z "$ac_err"; then
4063 eval "ac_cv_header_$ac_safe=yes"
4066 echo "configure: failed program was:" >&5
4067 cat conftest.
$ac_ext >&5
4069 eval "ac_cv_header_$ac_safe=no"
4073 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4074 echo "$ac_t""yes" 1>&6
4075 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4076 cat >> confdefs.h
<<EOF
4077 #define $ac_tr_hdr 1
4081 echo "$ac_t""no" 1>&6
4085 for ac_func
in getpagesize
4087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4088 echo "configure:4089: checking for $ac_func" >&5
4089 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4090 echo $ac_n "(cached) $ac_c" 1>&6
4092 cat > conftest.
$ac_ext <<EOF
4093 #line 4094 "configure"
4094 #include "confdefs.h"
4095 /* System header to define __stub macros and hopefully few prototypes,
4096 which can conflict with char $ac_func(); below. */
4098 /* Override any gcc2 internal prototype to avoid an error. */
4099 /* We use char because int might match the return type of a gcc2
4100 builtin and then its argument prototype would still apply. */
4105 /* The GNU C library defines this for functions which it implements
4106 to always fail with ENOSYS. Some functions are actually named
4107 something starting with __ and the normal name is an alias. */
4108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4116 if { (eval echo configure
:4117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4118 eval "ac_cv_func_$ac_func=yes"
4120 echo "configure: failed program was:" >&5
4121 cat conftest.
$ac_ext >&5
4123 eval "ac_cv_func_$ac_func=no"
4128 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4129 echo "$ac_t""yes" 1>&6
4130 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4131 cat >> confdefs.h
<<EOF
4132 #define $ac_tr_func 1
4136 echo "$ac_t""no" 1>&6
4140 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4141 echo "configure:4142: checking for working mmap" >&5
4142 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
4143 echo $ac_n "(cached) $ac_c" 1>&6
4145 if test "$cross_compiling" = yes; then
4146 ac_cv_func_mmap_fixed_mapped
=no
4148 cat > conftest.
$ac_ext <<EOF
4149 #line 4150 "configure"
4150 #include "confdefs.h"
4151 /* Thanks to Mike Haertel and Jim Avera for this test.
4152 Here is a matrix of mmap possibilities:
4153 mmap private not fixed
4154 mmap private fixed at somewhere currently unmapped
4155 mmap private fixed at somewhere already mapped
4156 mmap shared not fixed
4157 mmap shared fixed at somewhere currently unmapped
4158 mmap shared fixed at somewhere already mapped
4159 For private mappings, we should verify that changes cannot be read()
4160 back from the file, nor mmap's back from the file at a different
4161 address. (There have been systems where private was not correctly
4162 implemented like the infamous i386 svr4.0, and systems where the
4163 VM page cache was not coherent with the file system buffer cache
4164 like early versions of FreeBSD and possibly contemporary NetBSD.)
4165 For shared mappings, we should conversely verify that changes get
4166 propogated back to all the places they're supposed to be.
4168 Grep wants private fixed already mapped.
4169 The main things grep needs to know about mmap are:
4170 * does it exist and is it safe to write into the mmap'd area
4171 * how to use it (BSD variants) */
4172 #include <sys/types.h>
4174 #include <sys/mman.h>
4176 #if STDC_HEADERS || HAVE_STDLIB_H
4177 # include <stdlib.h>
4182 # include <unistd.h>
4185 # include <sys/stat.h>
4188 /* This mess was copied from the GNU getpagesize.h. */
4189 #if !HAVE_GETPAGESIZE
4190 /* Assume that all systems that can run configure have sys/param.h. */
4191 # if !HAVE_SYS_PARAM_H
4192 # define HAVE_SYS_PARAM_H 1
4195 # ifdef _SC_PAGESIZE
4196 # define getpagesize() sysconf(_SC_PAGESIZE)
4197 # else /* no _SC_PAGESIZE */
4198 # if HAVE_SYS_PARAM_H
4199 # include <sys/param.h>
4200 # ifdef EXEC_PAGESIZE
4201 # define getpagesize() EXEC_PAGESIZE
4202 # else /* no EXEC_PAGESIZE */
4204 # define getpagesize() NBPG * CLSIZE
4207 # endif /* no CLSIZE */
4208 # else /* no NBPG */
4210 # define getpagesize() NBPC
4211 # else /* no NBPC */
4213 # define getpagesize() PAGESIZE
4214 # endif /* PAGESIZE */
4215 # endif /* no NBPC */
4216 # endif /* no NBPG */
4217 # endif /* no EXEC_PAGESIZE */
4218 # else /* no HAVE_SYS_PARAM_H */
4219 # define getpagesize() 8192 /* punt totally */
4220 # endif /* no HAVE_SYS_PARAM_H */
4221 # endif /* no _SC_PAGESIZE */
4223 #endif /* no HAVE_GETPAGESIZE */
4228 char *data, *data2, *data3;
4232 pagesize = getpagesize ();
4234 /* First, make a file with some known garbage in it. */
4235 data = (char *) malloc (pagesize);
4238 for (i = 0; i < pagesize; ++i)
4239 *(data + i) = rand ();
4241 fd = creat ("conftestmmap", 0600);
4244 if (write (fd, data, pagesize) != pagesize)
4248 /* Next, try to mmap the file at a fixed address which already has
4249 something else allocated at it. If we can, also make sure that
4250 we see the same garbage. */
4251 fd = open ("conftestmmap", O_RDWR);
4254 data2 = (char *) malloc (2 * pagesize);
4257 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4258 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4259 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4261 for (i = 0; i < pagesize; ++i)
4262 if (*(data + i) != *(data2 + i))
4265 /* Finally, make sure that changes to the mapped area do not
4266 percolate back to the file as seen by read(). (This is a bug on
4267 some variants of i386 svr4.0.) */
4268 for (i = 0; i < pagesize; ++i)
4269 *(data2 + i) = *(data2 + i) + 1;
4270 data3 = (char *) malloc (pagesize);
4273 if (read (fd, data3, pagesize) != pagesize)
4275 for (i = 0; i < pagesize; ++i)
4276 if (*(data + i) != *(data3 + i))
4279 unlink ("conftestmmap");
4283 if { (eval echo configure
:4284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4285 ac_cv_func_mmap_fixed_mapped
=yes
4287 echo "configure: failed program was:" >&5
4288 cat conftest.
$ac_ext >&5
4290 ac_cv_func_mmap_fixed_mapped
=no
4297 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
4298 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4299 cat >> confdefs.h
<<\EOF
4305 if test $use_mmap_for_buffers = yes; then
4309 LIBS
="$libsrc_libs $LIBS"
4311 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4312 echo "configure:4313: checking for dnet_ntoa in -ldnet" >&5
4313 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4314 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4315 echo $ac_n "(cached) $ac_c" 1>&6
4317 ac_save_LIBS
="$LIBS"
4319 cat > conftest.
$ac_ext <<EOF
4320 #line 4321 "configure"
4321 #include "confdefs.h"
4322 /* Override any gcc2 internal prototype to avoid an error. */
4323 /* We use char because int might match the return type of a gcc2
4324 builtin and then its argument prototype would still apply. */
4331 if { (eval echo configure
:4332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4333 eval "ac_cv_lib_$ac_lib_var=yes"
4335 echo "configure: failed program was:" >&5
4336 cat conftest.
$ac_ext >&5
4338 eval "ac_cv_lib_$ac_lib_var=no"
4341 LIBS
="$ac_save_LIBS"
4344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4345 echo "$ac_t""yes" 1>&6
4346 ac_tr_lib
=HAVE_LIB
`echo dnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4347 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4348 cat >> confdefs.h
<<EOF
4349 #define $ac_tr_lib 1
4355 echo "$ac_t""no" 1>&6
4359 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
4360 echo "configure:4361: checking for main in -lXbsd" >&5
4361 ac_lib_var
=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
4362 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4363 echo $ac_n "(cached) $ac_c" 1>&6
4365 ac_save_LIBS
="$LIBS"
4367 cat > conftest.
$ac_ext <<EOF
4368 #line 4369 "configure"
4369 #include "confdefs.h"
4375 if { (eval echo configure
:4376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4377 eval "ac_cv_lib_$ac_lib_var=yes"
4379 echo "configure: failed program was:" >&5
4380 cat conftest.
$ac_ext >&5
4382 eval "ac_cv_lib_$ac_lib_var=no"
4385 LIBS
="$ac_save_LIBS"
4388 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4389 echo "$ac_t""yes" 1>&6
4390 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
4392 echo "$ac_t""no" 1>&6
4396 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4397 echo "configure:4398: checking for cma_open in -lpthreads" >&5
4398 ac_lib_var
=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4399 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4400 echo $ac_n "(cached) $ac_c" 1>&6
4402 ac_save_LIBS
="$LIBS"
4403 LIBS
="-lpthreads $LIBS"
4404 cat > conftest.
$ac_ext <<EOF
4405 #line 4406 "configure"
4406 #include "confdefs.h"
4407 /* Override any gcc2 internal prototype to avoid an error. */
4408 /* We use char because int might match the return type of a gcc2
4409 builtin and then its argument prototype would still apply. */
4416 if { (eval echo configure
:4417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4418 eval "ac_cv_lib_$ac_lib_var=yes"
4420 echo "configure: failed program was:" >&5
4421 cat conftest.
$ac_ext >&5
4423 eval "ac_cv_lib_$ac_lib_var=no"
4426 LIBS
="$ac_save_LIBS"
4429 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4430 echo "$ac_t""yes" 1>&6
4431 ac_tr_lib
=HAVE_LIB
`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4432 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4433 cat >> confdefs.h
<<EOF
4434 #define $ac_tr_lib 1
4437 LIBS
="-lpthreads $LIBS"
4440 echo "$ac_t""no" 1>&6
4444 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6
4445 echo "configure:4446: checking for XFree86 in /usr/X386" >&5
4446 if test -d /usr
/X386
/include
; then
4448 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
4452 echo "$ac_t""$HAVE_XFREE386" 1>&6
4454 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
4455 # for the tests that follow. We set it back to REAL_CFLAGS later on.
4457 REAL_CPPFLAGS
="$CPPFLAGS"
4459 if test "${HAVE_X11}" = "yes"; then
4460 DEFS
="$C_SWITCH_X_SITE $DEFS"
4461 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
4463 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
4464 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
4466 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
4467 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
4468 # but it's more convenient here to set LD_RUN_PATH
4469 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
4470 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
4471 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
4475 if test "${opsys}" = "gnu-linux"; then
4476 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6
4477 echo "configure:4478: checking whether X on GNU/Linux needs -b to link" >&5
4478 cat > conftest.
$ac_ext <<EOF
4479 #line 4480 "configure"
4480 #include "confdefs.h"
4483 XOpenDisplay ("foo");
4486 if { (eval echo configure
:4487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4488 xlinux_first_failure
=no
4490 echo "configure: failed program was:" >&5
4491 cat conftest.
$ac_ext >&5
4493 xlinux_first_failure
=yes
4496 if test "${xlinux_first_failure}" = "yes"; then
4497 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
4498 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
4499 OLD_CPPFLAGS
="$CPPFLAGS"
4501 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
4502 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
4503 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
4504 LIBS
="$LIBS -b i486-linuxaout"
4505 cat > conftest.
$ac_ext <<EOF
4506 #line 4507 "configure"
4507 #include "confdefs.h"
4510 XOpenDisplay ("foo");
4513 if { (eval echo configure
:4514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4515 xlinux_second_failure
=no
4517 echo "configure: failed program was:" >&5
4518 cat conftest.
$ac_ext >&5
4520 xlinux_second_failure
=yes
4523 if test "${xlinux_second_failure}" = "yes"; then
4524 # If we get the same failure with -b, there is no use adding -b.
4525 # So take it out. This plays safe.
4526 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
4527 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
4528 CPPFLAGS
="$OLD_CPPFLAGS"
4530 echo "$ac_t""no" 1>&6
4532 echo "$ac_t""yes" 1>&6
4535 echo "$ac_t""no" 1>&6
4539 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
4540 # header files included from there.
4541 echo $ac_n "checking for Xkb""... $ac_c" 1>&6
4542 echo "configure:4543: checking for Xkb" >&5
4543 cat > conftest.
$ac_ext <<EOF
4544 #line 4545 "configure"
4545 #include "confdefs.h"
4546 #include <X11/Xlib.h>
4547 #include <X11/XKBlib.h>
4549 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
4552 if { (eval echo configure
:4553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4556 echo "configure: failed program was:" >&5
4557 cat conftest.
$ac_ext >&5
4562 echo "$ac_t""$emacs_xkb" 1>&6
4563 if test $emacs_xkb = yes; then
4564 cat >> confdefs.h
<<\EOF
4565 #define HAVE_XKBGETKEYBOARD 1
4570 for ac_func
in XrmSetDatabase XScreenResourceString \
4571 XScreenNumberOfScreen XSetWMProtocols
4573 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4574 echo "configure:4575: checking for $ac_func" >&5
4575 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4576 echo $ac_n "(cached) $ac_c" 1>&6
4578 cat > conftest.
$ac_ext <<EOF
4579 #line 4580 "configure"
4580 #include "confdefs.h"
4581 /* System header to define __stub macros and hopefully few prototypes,
4582 which can conflict with char $ac_func(); below. */
4584 /* Override any gcc2 internal prototype to avoid an error. */
4585 /* We use char because int might match the return type of a gcc2
4586 builtin and then its argument prototype would still apply. */
4591 /* The GNU C library defines this for functions which it implements
4592 to always fail with ENOSYS. Some functions are actually named
4593 something starting with __ and the normal name is an alias. */
4594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4602 if { (eval echo configure
:4603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4604 eval "ac_cv_func_$ac_func=yes"
4606 echo "configure: failed program was:" >&5
4607 cat conftest.
$ac_ext >&5
4609 eval "ac_cv_func_$ac_func=no"
4614 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4615 echo "$ac_t""yes" 1>&6
4616 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4617 cat >> confdefs.h
<<EOF
4618 #define $ac_tr_func 1
4622 echo "$ac_t""no" 1>&6
4628 if test "${window_system}" = "x11"; then
4629 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6
4630 echo "configure:4631: checking X11 version 6" >&5
4631 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then
4632 echo $ac_n "(cached) $ac_c" 1>&6
4634 cat > conftest.
$ac_ext <<EOF
4635 #line 4636 "configure"
4636 #include "confdefs.h"
4637 #include <X11/Xlib.h>
4639 #if XlibSpecificationRelease < 6
4645 if { (eval echo configure
:4646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4647 emacs_cv_x11_version_6
=yes
4649 echo "configure: failed program was:" >&5
4650 cat conftest.
$ac_ext >&5
4652 emacs_cv_x11_version_6
=no
4657 if test $emacs_cv_x11_version_6 = yes; then
4658 echo "$ac_t""6 or newer" 1>&6
4659 cat >> confdefs.h
<<\EOF
4660 #define HAVE_X11R6 1
4664 echo "$ac_t""before 6" 1>&6
4668 if test "${window_system}" = "x11"; then
4669 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6
4670 echo "configure:4671: checking X11 version 5" >&5
4671 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then
4672 echo $ac_n "(cached) $ac_c" 1>&6
4674 cat > conftest.
$ac_ext <<EOF
4675 #line 4676 "configure"
4676 #include "confdefs.h"
4677 #include <X11/Xlib.h>
4679 #if XlibSpecificationRelease < 5
4685 if { (eval echo configure
:4686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4687 emacs_cv_x11_version_5
=yes
4689 echo "configure: failed program was:" >&5
4690 cat conftest.
$ac_ext >&5
4692 emacs_cv_x11_version_5
=no
4697 if test $emacs_cv_x11_version_5 = yes; then
4698 echo "$ac_t""5 or newer" 1>&6
4700 cat >> confdefs.h
<<\EOF
4701 #define HAVE_X11R5 1
4706 echo "$ac_t""before 5" 1>&6
4710 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
4711 if test x
"${HAVE_X11R5}" = xyes
; then
4712 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6
4713 echo "configure:4714: checking X11 version 5 with Xaw" >&5
4714 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then
4715 echo $ac_n "(cached) $ac_c" 1>&6
4717 cat > conftest.
$ac_ext <<EOF
4718 #line 4719 "configure"
4719 #include "confdefs.h"
4721 #include <X11/Intrinsic.h>
4722 #include <X11/Xaw/Simple.h>
4727 if { (eval echo configure
:4728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4729 emacs_cv_x11_version_5_with_xaw
=yes
4731 echo "configure: failed program was:" >&5
4732 cat conftest.
$ac_ext >&5
4734 emacs_cv_x11_version_5_with_xaw
=no
4739 if test $emacs_cv_x11_version_5_with_xaw = yes; then
4740 echo "$ac_t""5 or newer, with Xaw; use toolkit by default" 1>&6
4743 echo "$ac_t""before 5 or no Xaw; do not use toolkit by default" 1>&6
4751 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
4753 if test "${USE_X_TOOLKIT}" != "none"; then
4754 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6
4755 echo "configure:4756: checking X11 toolkit version" >&5
4756 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then
4757 echo $ac_n "(cached) $ac_c" 1>&6
4759 cat > conftest.
$ac_ext <<EOF
4760 #line 4761 "configure"
4761 #include "confdefs.h"
4762 #include <X11/Intrinsic.h>
4764 #if XtSpecificationRelease < 6
4770 if { (eval echo configure
:4771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4772 emacs_cv_x11_toolkit_version_6
=yes
4774 echo "configure: failed program was:" >&5
4775 cat conftest.
$ac_ext >&5
4777 emacs_cv_x11_toolkit_version_6
=no
4782 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
4783 if test $emacs_cv_x11_toolkit_version_6 = yes; then
4784 echo "$ac_t""6 or newer" 1>&6
4785 cat >> confdefs.h
<<\EOF
4786 #define HAVE_X11XTR6 1
4790 echo "$ac_t""before 6" 1>&6
4794 if test x
$HAVE_X11XTR6 = xyes
; then
4795 LIBS
="-lXt -lSM -lICE $LIBS"
4799 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
4800 echo "configure:4801: checking for XmuConvertStandardSelection in -lXmu" >&5
4801 ac_lib_var
=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
4802 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4803 echo $ac_n "(cached) $ac_c" 1>&6
4805 ac_save_LIBS
="$LIBS"
4807 cat > conftest.
$ac_ext <<EOF
4808 #line 4809 "configure"
4809 #include "confdefs.h"
4810 /* Override any gcc2 internal prototype to avoid an error. */
4811 /* We use char because int might match the return type of a gcc2
4812 builtin and then its argument prototype would still apply. */
4813 char XmuConvertStandardSelection();
4816 XmuConvertStandardSelection()
4819 if { (eval echo configure
:4820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4821 eval "ac_cv_lib_$ac_lib_var=yes"
4823 echo "configure: failed program was:" >&5
4824 cat conftest.
$ac_ext >&5
4826 eval "ac_cv_lib_$ac_lib_var=no"
4829 LIBS
="$ac_save_LIBS"
4832 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4833 echo "$ac_t""yes" 1>&6
4834 ac_tr_lib
=HAVE_LIB
`echo Xmu | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4835 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4836 cat >> confdefs.h
<<EOF
4837 #define $ac_tr_lib 1
4843 echo "$ac_t""no" 1>&6
4846 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
4849 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
4850 if test "${HAVE_X11}" = "yes"; then
4851 if test "${USE_X_TOOLKIT}" != "none"; then
4852 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
4853 echo "configure:4854: checking for XShapeQueryExtension in -lXext" >&5
4854 ac_lib_var
=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
4855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4856 echo $ac_n "(cached) $ac_c" 1>&6
4858 ac_save_LIBS
="$LIBS"
4860 cat > conftest.
$ac_ext <<EOF
4861 #line 4862 "configure"
4862 #include "confdefs.h"
4863 /* Override any gcc2 internal prototype to avoid an error. */
4864 /* We use char because int might match the return type of a gcc2
4865 builtin and then its argument prototype would still apply. */
4866 char XShapeQueryExtension();
4869 XShapeQueryExtension()
4872 if { (eval echo configure
:4873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4874 eval "ac_cv_lib_$ac_lib_var=yes"
4876 echo "configure: failed program was:" >&5
4877 cat conftest.
$ac_ext >&5
4879 eval "ac_cv_lib_$ac_lib_var=no"
4882 LIBS
="$ac_save_LIBS"
4885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4886 echo "$ac_t""yes" 1>&6
4887 ac_tr_lib
=HAVE_LIB
`echo Xext | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4888 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4889 cat >> confdefs.h
<<EOF
4890 #define $ac_tr_lib 1
4896 echo "$ac_t""no" 1>&6
4902 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
4903 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6
4904 echo "configure:4905: checking for Motif version 2.1" >&5
4905 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then
4906 echo $ac_n "(cached) $ac_c" 1>&6
4908 cat > conftest.
$ac_ext <<EOF
4909 #line 4910 "configure"
4910 #include "confdefs.h"
4913 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
4916 Motif version prior to 2.1.
4920 if { (eval echo configure
:4921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4922 emacs_cv_motif_version_2_1
=yes
4924 echo "configure: failed program was:" >&5
4925 cat conftest.
$ac_ext >&5
4927 emacs_cv_motif_version_2_1
=no
4932 echo "$ac_t""$emacs_cv_motif_version_2_1" 1>&6
4933 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
4934 if test $emacs_cv_motif_version_2_1 = yes; then
4936 cat >> confdefs.h
<<\EOF
4937 #define HAVE_MOTIF_2_1 1
4940 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6
4941 echo "configure:4942: checking for XpCreateContext in -lXp" >&5
4942 ac_lib_var
=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`
4943 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4944 echo $ac_n "(cached) $ac_c" 1>&6
4946 ac_save_LIBS
="$LIBS"
4948 cat > conftest.
$ac_ext <<EOF
4949 #line 4950 "configure"
4950 #include "confdefs.h"
4951 /* Override any gcc2 internal prototype to avoid an error. */
4952 /* We use char because int might match the return type of a gcc2
4953 builtin and then its argument prototype would still apply. */
4954 char XpCreateContext();
4960 if { (eval echo configure
:4961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4962 eval "ac_cv_lib_$ac_lib_var=yes"
4964 echo "configure: failed program was:" >&5
4965 cat conftest.
$ac_ext >&5
4967 eval "ac_cv_lib_$ac_lib_var=no"
4970 LIBS
="$ac_save_LIBS"
4973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4974 echo "$ac_t""yes" 1>&6
4977 echo "$ac_t""no" 1>&6
4980 if test ${HAVE_LIBXP} = yes; then
4981 cat >> confdefs.h
<<\EOF
4982 #define HAVE_LIBXP 1
4989 ### Is -lXaw3d available?
4991 if test "${HAVE_X11}" = "yes"; then
4992 if test "${USE_X_TOOLKIT}" != "none"; then
4993 ac_safe
=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'`
4994 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6
4995 echo "configure:4996: checking for X11/Xaw3d/Scrollbar.h" >&5
4996 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4997 echo $ac_n "(cached) $ac_c" 1>&6
4999 cat > conftest.
$ac_ext <<EOF
5000 #line 5001 "configure"
5001 #include "confdefs.h"
5002 #include <X11/Xaw3d/Scrollbar.h>
5004 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5005 { (eval echo configure
:5006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5006 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5007 if test -z "$ac_err"; then
5009 eval "ac_cv_header_$ac_safe=yes"
5012 echo "configure: failed program was:" >&5
5013 cat conftest.
$ac_ext >&5
5015 eval "ac_cv_header_$ac_safe=no"
5019 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5020 echo "$ac_t""yes" 1>&6
5021 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
5022 echo "configure:5023: checking for XawScrollbarSetThumb in -lXaw3d" >&5
5023 ac_lib_var
=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
5024 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5025 echo $ac_n "(cached) $ac_c" 1>&6
5027 ac_save_LIBS
="$LIBS"
5028 LIBS
="-lXaw3d $LIBS"
5029 cat > conftest.
$ac_ext <<EOF
5030 #line 5031 "configure"
5031 #include "confdefs.h"
5032 /* Override any gcc2 internal prototype to avoid an error. */
5033 /* We use char because int might match the return type of a gcc2
5034 builtin and then its argument prototype would still apply. */
5035 char XawScrollbarSetThumb();
5038 XawScrollbarSetThumb()
5041 if { (eval echo configure
:5042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5043 eval "ac_cv_lib_$ac_lib_var=yes"
5045 echo "configure: failed program was:" >&5
5046 cat conftest.
$ac_ext >&5
5048 eval "ac_cv_lib_$ac_lib_var=no"
5051 LIBS
="$ac_save_LIBS"
5054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5055 echo "$ac_t""yes" 1>&6
5058 echo "$ac_t""no" 1>&6
5062 echo "$ac_t""no" 1>&6
5065 if test "${HAVE_XAW3D}" = "yes"; then
5066 cat >> confdefs.h
<<\EOF
5067 #define HAVE_XAW3D 1
5075 USE_TOOLKIT_SCROLL_BARS
=no
5076 if test "${with_toolkit_scroll_bars}" != "no"; then
5077 if test "${USE_X_TOOLKIT}" != "none"; then
5078 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
5079 cat >> confdefs.h
<<\EOF
5080 #define USE_TOOLKIT_SCROLL_BARS 1
5084 USE_TOOLKIT_SCROLL_BARS
=yes
5085 elif test "${HAVE_XAW3D}" = "yes"; then
5086 cat >> confdefs.h
<<\EOF
5087 #define USE_TOOLKIT_SCROLL_BARS 1
5090 USE_TOOLKIT_SCROLL_BARS
=yes
5096 if test "${with_xim}" != "no"; then
5097 cat >> confdefs.h
<<\EOF
5103 ### Use -lXpm if available, unless `--with-xpm=no'.
5105 if test "${HAVE_X11}" = "yes"; then
5106 if test "${with_xpm}" != "no"; then
5107 ac_safe
=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
5108 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
5109 echo "configure:5110: checking for X11/xpm.h" >&5
5110 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5111 echo $ac_n "(cached) $ac_c" 1>&6
5113 cat > conftest.
$ac_ext <<EOF
5114 #line 5115 "configure"
5115 #include "confdefs.h"
5116 #include <X11/xpm.h>
5118 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5119 { (eval echo configure
:5120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5120 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5121 if test -z "$ac_err"; then
5123 eval "ac_cv_header_$ac_safe=yes"
5126 echo "configure: failed program was:" >&5
5127 cat conftest.
$ac_ext >&5
5129 eval "ac_cv_header_$ac_safe=no"
5133 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5134 echo "$ac_t""yes" 1>&6
5135 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
5136 echo "configure:5137: checking for XpmReadFileToPixmap in -lXpm" >&5
5137 ac_lib_var
=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
5138 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5139 echo $ac_n "(cached) $ac_c" 1>&6
5141 ac_save_LIBS
="$LIBS"
5142 LIBS
="-lXpm -lX11 $LIBS"
5143 cat > conftest.
$ac_ext <<EOF
5144 #line 5145 "configure"
5145 #include "confdefs.h"
5146 /* Override any gcc2 internal prototype to avoid an error. */
5147 /* We use char because int might match the return type of a gcc2
5148 builtin and then its argument prototype would still apply. */
5149 char XpmReadFileToPixmap();
5152 XpmReadFileToPixmap()
5155 if { (eval echo configure
:5156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5157 eval "ac_cv_lib_$ac_lib_var=yes"
5159 echo "configure: failed program was:" >&5
5160 cat conftest.
$ac_ext >&5
5162 eval "ac_cv_lib_$ac_lib_var=no"
5165 LIBS
="$ac_save_LIBS"
5168 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5169 echo "$ac_t""yes" 1>&6
5172 echo "$ac_t""no" 1>&6
5176 echo "$ac_t""no" 1>&6
5179 if test "${HAVE_XPM}" = "yes"; then
5180 echo $ac_n "checking for XpmReturnAllocPixels preprocessor define""... $ac_c" 1>&6
5181 echo "configure:5182: checking for XpmReturnAllocPixels preprocessor define" >&5
5182 cat > conftest.
$ac_ext <<EOF
5183 #line 5184 "configure"
5184 #include "confdefs.h"
5185 #include "X11/xpm.h"
5186 #ifndef XpmReturnAllocPixels
5187 no_return_alloc_pixels
5191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5192 egrep "no_return_alloc_pixels" >/dev
/null
2>&1; then
5202 if test "${HAVE_XPM}" = "yes"; then
5203 echo "$ac_t""yes" 1>&6
5205 echo "$ac_t""no" 1>&6
5210 if test "${HAVE_XPM}" = "yes"; then
5211 cat >> confdefs.h
<<\EOF
5218 ### Use -ljpeg if available, unless `--with-jpeg=no'.
5220 if test "${HAVE_X11}" = "yes"; then
5221 if test "${with_jpeg}" != "no"; then
5222 ac_safe
=`echo "jerror.h" | sed 'y%./+-%__p_%'`
5223 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6
5224 echo "configure:5225: checking for jerror.h" >&5
5225 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5226 echo $ac_n "(cached) $ac_c" 1>&6
5228 cat > conftest.
$ac_ext <<EOF
5229 #line 5230 "configure"
5230 #include "confdefs.h"
5233 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5234 { (eval echo configure
:5235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5235 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5236 if test -z "$ac_err"; then
5238 eval "ac_cv_header_$ac_safe=yes"
5241 echo "configure: failed program was:" >&5
5242 cat conftest.
$ac_ext >&5
5244 eval "ac_cv_header_$ac_safe=no"
5248 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5249 echo "$ac_t""yes" 1>&6
5250 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
5251 echo "configure:5252: checking for jpeg_destroy_compress in -ljpeg" >&5
5252 ac_lib_var
=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
5253 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5254 echo $ac_n "(cached) $ac_c" 1>&6
5256 ac_save_LIBS
="$LIBS"
5258 cat > conftest.
$ac_ext <<EOF
5259 #line 5260 "configure"
5260 #include "confdefs.h"
5261 /* Override any gcc2 internal prototype to avoid an error. */
5262 /* We use char because int might match the return type of a gcc2
5263 builtin and then its argument prototype would still apply. */
5264 char jpeg_destroy_compress();
5267 jpeg_destroy_compress()
5270 if { (eval echo configure
:5271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5272 eval "ac_cv_lib_$ac_lib_var=yes"
5274 echo "configure: failed program was:" >&5
5275 cat conftest.
$ac_ext >&5
5277 eval "ac_cv_lib_$ac_lib_var=no"
5280 LIBS
="$ac_save_LIBS"
5283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5284 echo "$ac_t""yes" 1>&6
5287 echo "$ac_t""no" 1>&6
5291 echo "$ac_t""no" 1>&6
5296 if test "${HAVE_JPEG}" = "yes"; then
5297 cat >> confdefs.h
<<\EOF
5304 ### Use -lpng if available, unless `--with-png=no'.
5306 if test "${HAVE_X11}" = "yes"; then
5307 if test "${with_png}" != "no"; then
5308 ac_safe
=`echo "png.h" | sed 'y%./+-%__p_%'`
5309 echo $ac_n "checking for png.h""... $ac_c" 1>&6
5310 echo "configure:5311: checking for png.h" >&5
5311 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5312 echo $ac_n "(cached) $ac_c" 1>&6
5314 cat > conftest.
$ac_ext <<EOF
5315 #line 5316 "configure"
5316 #include "confdefs.h"
5319 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5320 { (eval echo configure
:5321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5321 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5322 if test -z "$ac_err"; then
5324 eval "ac_cv_header_$ac_safe=yes"
5327 echo "configure: failed program was:" >&5
5328 cat conftest.
$ac_ext >&5
5330 eval "ac_cv_header_$ac_safe=no"
5334 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5335 echo "$ac_t""yes" 1>&6
5336 echo $ac_n "checking for png_get_channels in -lpng""... $ac_c" 1>&6
5337 echo "configure:5338: checking for png_get_channels in -lpng" >&5
5338 ac_lib_var
=`echo png'_'png_get_channels | sed 'y%./+-%__p_%'`
5339 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5340 echo $ac_n "(cached) $ac_c" 1>&6
5342 ac_save_LIBS
="$LIBS"
5343 LIBS
="-lpng -lz -lm $LIBS"
5344 cat > conftest.
$ac_ext <<EOF
5345 #line 5346 "configure"
5346 #include "confdefs.h"
5347 /* Override any gcc2 internal prototype to avoid an error. */
5348 /* We use char because int might match the return type of a gcc2
5349 builtin and then its argument prototype would still apply. */
5350 char png_get_channels();
5356 if { (eval echo configure
:5357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5358 eval "ac_cv_lib_$ac_lib_var=yes"
5360 echo "configure: failed program was:" >&5
5361 cat conftest.
$ac_ext >&5
5363 eval "ac_cv_lib_$ac_lib_var=no"
5366 LIBS
="$ac_save_LIBS"
5369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5370 echo "$ac_t""yes" 1>&6
5373 echo "$ac_t""no" 1>&6
5377 echo "$ac_t""no" 1>&6
5382 if test "${HAVE_PNG}" = "yes"; then
5383 cat >> confdefs.h
<<\EOF
5390 ### Use -ltiff if available, unless `--with-tiff=no'.
5392 if test "${HAVE_X11}" = "yes"; then
5393 if test "${with_tiff}" != "no"; then
5394 ac_safe
=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
5395 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
5396 echo "configure:5397: checking for tiffio.h" >&5
5397 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5398 echo $ac_n "(cached) $ac_c" 1>&6
5400 cat > conftest.
$ac_ext <<EOF
5401 #line 5402 "configure"
5402 #include "confdefs.h"
5405 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5406 { (eval echo configure
:5407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5407 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5408 if test -z "$ac_err"; then
5410 eval "ac_cv_header_$ac_safe=yes"
5413 echo "configure: failed program was:" >&5
5414 cat conftest.
$ac_ext >&5
5416 eval "ac_cv_header_$ac_safe=no"
5420 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5421 echo "$ac_t""yes" 1>&6
5423 # At least one tiff package requires the jpeg library.
5424 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
5425 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
5426 echo "configure:5427: checking for TIFFGetVersion in -ltiff" >&5
5427 ac_lib_var
=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5428 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5429 echo $ac_n "(cached) $ac_c" 1>&6
5431 ac_save_LIBS
="$LIBS"
5432 LIBS
="-ltiff $tifflibs $LIBS"
5433 cat > conftest.
$ac_ext <<EOF
5434 #line 5435 "configure"
5435 #include "confdefs.h"
5436 /* Override any gcc2 internal prototype to avoid an error. */
5437 /* We use char because int might match the return type of a gcc2
5438 builtin and then its argument prototype would still apply. */
5439 char TIFFGetVersion();
5445 if { (eval echo configure
:5446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5447 eval "ac_cv_lib_$ac_lib_var=yes"
5449 echo "configure: failed program was:" >&5
5450 cat conftest.
$ac_ext >&5
5452 eval "ac_cv_lib_$ac_lib_var=no"
5455 LIBS
="$ac_save_LIBS"
5458 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5459 echo "$ac_t""yes" 1>&6
5462 echo "$ac_t""no" 1>&6
5466 echo "$ac_t""no" 1>&6
5471 if test "${HAVE_TIFF}" = "yes"; then
5472 cat >> confdefs.h
<<\EOF
5479 ### Use -lgif if available, unless `--with-gif=no'.
5481 if test "${HAVE_X11}" = "yes"; then
5482 if test "${with_gif}" != "no"; then
5483 ac_safe
=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
5484 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
5485 echo "configure:5486: checking for gif_lib.h" >&5
5486 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5487 echo $ac_n "(cached) $ac_c" 1>&6
5489 cat > conftest.
$ac_ext <<EOF
5490 #line 5491 "configure"
5491 #include "confdefs.h"
5492 #include <gif_lib.h>
5494 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5495 { (eval echo configure
:5496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5496 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5497 if test -z "$ac_err"; then
5499 eval "ac_cv_header_$ac_safe=yes"
5502 echo "configure: failed program was:" >&5
5503 cat conftest.
$ac_ext >&5
5505 eval "ac_cv_header_$ac_safe=no"
5509 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5510 echo "$ac_t""yes" 1>&6
5511 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6
5512 echo "configure:5513: checking for DGifOpen in -lungif" >&5
5513 ac_lib_var
=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'`
5514 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5515 echo $ac_n "(cached) $ac_c" 1>&6
5517 ac_save_LIBS
="$LIBS"
5518 LIBS
="-lungif $LIBS"
5519 cat > conftest.
$ac_ext <<EOF
5520 #line 5521 "configure"
5521 #include "confdefs.h"
5522 /* Override any gcc2 internal prototype to avoid an error. */
5523 /* We use char because int might match the return type of a gcc2
5524 builtin and then its argument prototype would still apply. */
5531 if { (eval echo configure
:5532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5533 eval "ac_cv_lib_$ac_lib_var=yes"
5535 echo "configure: failed program was:" >&5
5536 cat conftest.
$ac_ext >&5
5538 eval "ac_cv_lib_$ac_lib_var=no"
5541 LIBS
="$ac_save_LIBS"
5544 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5545 echo "$ac_t""yes" 1>&6
5548 echo "$ac_t""no" 1>&6
5552 echo "$ac_t""no" 1>&6
5557 if test "${HAVE_GIF}" = "yes"; then
5558 cat >> confdefs.h
<<\EOF
5565 # If netdb.h doesn't declare h_errno, we must declare it by hand.
5566 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
5567 echo "configure:5568: checking whether netdb declares h_errno" >&5
5568 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
5569 echo $ac_n "(cached) $ac_c" 1>&6
5571 cat > conftest.
$ac_ext <<EOF
5572 #line 5573 "configure"
5573 #include "confdefs.h"
5579 if { (eval echo configure
:5580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5581 emacs_cv_netdb_declares_h_errno
=yes
5583 echo "configure: failed program was:" >&5
5584 cat conftest.
$ac_ext >&5
5586 emacs_cv_netdb_declares_h_errno
=no
5591 echo "$ac_t""$emacs_cv_netdb_declares_h_errno" 1>&6
5592 if test $emacs_cv_netdb_declares_h_errno = yes; then
5593 cat >> confdefs.h
<<\EOF
5594 #define HAVE_H_ERRNO 1
5599 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5600 # for constant arguments. Useless!
5601 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5602 echo "configure:5603: checking for working alloca.h" >&5
5603 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5604 echo $ac_n "(cached) $ac_c" 1>&6
5606 cat > conftest.
$ac_ext <<EOF
5607 #line 5608 "configure"
5608 #include "confdefs.h"
5611 char *p = alloca(2 * sizeof(int));
5614 if { (eval echo configure
:5615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5616 ac_cv_header_alloca_h
=yes
5618 echo "configure: failed program was:" >&5
5619 cat conftest.
$ac_ext >&5
5621 ac_cv_header_alloca_h
=no
5626 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5627 if test $ac_cv_header_alloca_h = yes; then
5628 cat >> confdefs.h
<<\EOF
5629 #define HAVE_ALLOCA_H 1
5634 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5635 echo "configure:5636: checking for alloca" >&5
5636 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5637 echo $ac_n "(cached) $ac_c" 1>&6
5639 cat > conftest.
$ac_ext <<EOF
5640 #line 5641 "configure"
5641 #include "confdefs.h"
5644 # define alloca __builtin_alloca
5647 # include <malloc.h>
5648 # define alloca _alloca
5651 # include <alloca.h>
5656 # ifndef alloca /* predefined by HP cc +Olibcalls */
5665 char *p = (char *) alloca(1);
5668 if { (eval echo configure
:5669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5670 ac_cv_func_alloca_works
=yes
5672 echo "configure: failed program was:" >&5
5673 cat conftest.
$ac_ext >&5
5675 ac_cv_func_alloca_works
=no
5680 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5681 if test $ac_cv_func_alloca_works = yes; then
5682 cat >> confdefs.h
<<\EOF
5683 #define HAVE_ALLOCA 1
5688 if test $ac_cv_func_alloca_works = no
; then
5689 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5690 # that cause trouble. Some versions do not even contain alloca or
5691 # contain a buggy version. If you still want to use their alloca,
5692 # use ar to extract alloca.o from them instead of compiling alloca.c.
5693 ALLOCA
=alloca.
${ac_objext}
5694 cat >> confdefs.h
<<\EOF
5699 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5700 echo "configure:5701: checking whether alloca needs Cray hooks" >&5
5701 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5702 echo $ac_n "(cached) $ac_c" 1>&6
5704 cat > conftest.
$ac_ext <<EOF
5705 #line 5706 "configure"
5706 #include "confdefs.h"
5707 #if defined(CRAY) && ! defined(CRAY2)
5714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5715 egrep "webecray" >/dev
/null
2>&1; then
5726 echo "$ac_t""$ac_cv_os_cray" 1>&6
5727 if test $ac_cv_os_cray = yes; then
5728 for ac_func
in _getb67 GETB67 getb67
; do
5729 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5730 echo "configure:5731: checking for $ac_func" >&5
5731 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5732 echo $ac_n "(cached) $ac_c" 1>&6
5734 cat > conftest.
$ac_ext <<EOF
5735 #line 5736 "configure"
5736 #include "confdefs.h"
5737 /* System header to define __stub macros and hopefully few prototypes,
5738 which can conflict with char $ac_func(); below. */
5740 /* Override any gcc2 internal prototype to avoid an error. */
5741 /* We use char because int might match the return type of a gcc2
5742 builtin and then its argument prototype would still apply. */
5747 /* The GNU C library defines this for functions which it implements
5748 to always fail with ENOSYS. Some functions are actually named
5749 something starting with __ and the normal name is an alias. */
5750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5758 if { (eval echo configure
:5759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5760 eval "ac_cv_func_$ac_func=yes"
5762 echo "configure: failed program was:" >&5
5763 cat conftest.
$ac_ext >&5
5765 eval "ac_cv_func_$ac_func=no"
5770 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5771 echo "$ac_t""yes" 1>&6
5772 cat >> confdefs.h
<<EOF
5773 #define CRAY_STACKSEG_END $ac_func
5778 echo "$ac_t""no" 1>&6
5784 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5785 echo "configure:5786: checking stack direction for C alloca" >&5
5786 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5787 echo $ac_n "(cached) $ac_c" 1>&6
5789 if test "$cross_compiling" = yes; then
5790 ac_cv_c_stack_direction
=0
5792 cat > conftest.
$ac_ext <<EOF
5793 #line 5794 "configure"
5794 #include "confdefs.h"
5795 find_stack_direction ()
5797 static char *addr = 0;
5802 return find_stack_direction ();
5805 return (&dummy > addr) ? 1 : -1;
5809 exit (find_stack_direction() < 0);
5812 if { (eval echo configure
:5813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5814 ac_cv_c_stack_direction
=1
5816 echo "configure: failed program was:" >&5
5817 cat conftest.
$ac_ext >&5
5819 ac_cv_c_stack_direction
=-1
5826 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5827 cat >> confdefs.h
<<EOF
5828 #define STACK_DIRECTION $ac_cv_c_stack_direction
5834 # fmod, logb, and frexp are found in -lm on most systems.
5835 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
5836 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
5837 echo "configure:5838: checking for sqrt in -lm" >&5
5838 ac_lib_var
=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
5839 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5840 echo $ac_n "(cached) $ac_c" 1>&6
5842 ac_save_LIBS
="$LIBS"
5844 cat > conftest.
$ac_ext <<EOF
5845 #line 5846 "configure"
5846 #include "confdefs.h"
5847 /* Override any gcc2 internal prototype to avoid an error. */
5848 /* We use char because int might match the return type of a gcc2
5849 builtin and then its argument prototype would still apply. */
5856 if { (eval echo configure
:5857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5858 eval "ac_cv_lib_$ac_lib_var=yes"
5860 echo "configure: failed program was:" >&5
5861 cat conftest.
$ac_ext >&5
5863 eval "ac_cv_lib_$ac_lib_var=no"
5866 LIBS
="$ac_save_LIBS"
5869 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5870 echo "$ac_t""yes" 1>&6
5871 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5872 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5873 cat >> confdefs.h
<<EOF
5874 #define $ac_tr_lib 1
5880 echo "$ac_t""no" 1>&6
5884 # Check for mail-locking functions in a "mail" library
5885 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
5886 echo "configure:5887: checking for maillock in -lmail" >&5
5887 ac_lib_var
=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
5888 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5889 echo $ac_n "(cached) $ac_c" 1>&6
5891 ac_save_LIBS
="$LIBS"
5893 cat > conftest.
$ac_ext <<EOF
5894 #line 5895 "configure"
5895 #include "confdefs.h"
5896 /* Override any gcc2 internal prototype to avoid an error. */
5897 /* We use char because int might match the return type of a gcc2
5898 builtin and then its argument prototype would still apply. */
5905 if { (eval echo configure
:5906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5907 eval "ac_cv_lib_$ac_lib_var=yes"
5909 echo "configure: failed program was:" >&5
5910 cat conftest.
$ac_ext >&5
5912 eval "ac_cv_lib_$ac_lib_var=no"
5915 LIBS
="$ac_save_LIBS"
5918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5919 echo "$ac_t""yes" 1>&6
5920 ac_tr_lib
=HAVE_LIB
`echo mail | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5921 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5922 cat >> confdefs.h
<<EOF
5923 #define $ac_tr_lib 1
5929 echo "$ac_t""no" 1>&6
5932 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6
5933 echo "configure:5934: checking for maillock in -llockfile" >&5
5934 ac_lib_var
=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`
5935 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5936 echo $ac_n "(cached) $ac_c" 1>&6
5938 ac_save_LIBS
="$LIBS"
5939 LIBS
="-llockfile $LIBS"
5940 cat > conftest.
$ac_ext <<EOF
5941 #line 5942 "configure"
5942 #include "confdefs.h"
5943 /* Override any gcc2 internal prototype to avoid an error. */
5944 /* We use char because int might match the return type of a gcc2
5945 builtin and then its argument prototype would still apply. */
5952 if { (eval echo configure
:5953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5954 eval "ac_cv_lib_$ac_lib_var=yes"
5956 echo "configure: failed program was:" >&5
5957 cat conftest.
$ac_ext >&5
5959 eval "ac_cv_lib_$ac_lib_var=no"
5962 LIBS
="$ac_save_LIBS"
5965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5966 echo "$ac_t""yes" 1>&6
5967 ac_tr_lib
=HAVE_LIB
`echo lockfile | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5968 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5969 cat >> confdefs.h
<<EOF
5970 #define $ac_tr_lib 1
5973 LIBS
="-llockfile $LIBS"
5976 echo "$ac_t""no" 1>&6
5979 # If we have the shared liblockfile, assume we must use it for mail
5980 # locking (e.g. Debian). If we couldn't link against liblockfile
5981 # (no liblockfile.a installed), ensure that we don't need to.
5982 if test "$ac_cv_lib_lockfile_maillock" = no
; then
5983 # Extract the first word of "liblockfile.so", so it can be a program name with args.
5984 set dummy liblockfile.so
; ac_word
=$2
5985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5986 echo "configure:5987: checking for $ac_word" >&5
5987 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then
5988 echo $ac_n "(cached) $ac_c" 1>&6
5990 if test -n "$liblockfile"; then
5991 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
5993 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5994 ac_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
5995 for ac_dir
in $ac_dummy; do
5996 test -z "$ac_dir" && ac_dir
=.
5997 if test -f $ac_dir/$ac_word; then
5998 ac_cv_prog_liblockfile
="yes"
6003 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
6006 liblockfile
="$ac_cv_prog_liblockfile"
6007 if test -n "$liblockfile"; then
6008 echo "$ac_t""$liblockfile" 1>&6
6010 echo "$ac_t""no" 1>&6
6013 if test $ac_cv_prog_liblockfile = yes; then
6014 { echo "configure: error: Shared liblockfile found but can't link against it.
6015 This probably means that movemail could lose mail.
6016 There may be a \`development' package to install containing liblockfile." 1>&2; exit 1; }
6017 else cat >> confdefs.h
<<\EOF
6018 #define LIBMAIL -llockfile
6024 for ac_func
in touchlock
6026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6027 echo "configure:6028: checking for $ac_func" >&5
6028 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6029 echo $ac_n "(cached) $ac_c" 1>&6
6031 cat > conftest.
$ac_ext <<EOF
6032 #line 6033 "configure"
6033 #include "confdefs.h"
6034 /* System header to define __stub macros and hopefully few prototypes,
6035 which can conflict with char $ac_func(); below. */
6037 /* Override any gcc2 internal prototype to avoid an error. */
6038 /* We use char because int might match the return type of a gcc2
6039 builtin and then its argument prototype would still apply. */
6044 /* The GNU C library defines this for functions which it implements
6045 to always fail with ENOSYS. Some functions are actually named
6046 something starting with __ and the normal name is an alias. */
6047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6055 if { (eval echo configure
:6056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6057 eval "ac_cv_func_$ac_func=yes"
6059 echo "configure: failed program was:" >&5
6060 cat conftest.
$ac_ext >&5
6062 eval "ac_cv_func_$ac_func=no"
6067 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6068 echo "$ac_t""yes" 1>&6
6069 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6070 cat >> confdefs.h
<<EOF
6071 #define $ac_tr_func 1
6075 echo "$ac_t""no" 1>&6
6079 for ac_hdr
in maillock.h
6081 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6082 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6083 echo "configure:6084: checking for $ac_hdr" >&5
6084 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6085 echo $ac_n "(cached) $ac_c" 1>&6
6087 cat > conftest.
$ac_ext <<EOF
6088 #line 6089 "configure"
6089 #include "confdefs.h"
6092 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6093 { (eval echo configure
:6094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6094 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6095 if test -z "$ac_err"; then
6097 eval "ac_cv_header_$ac_safe=yes"
6100 echo "configure: failed program was:" >&5
6101 cat conftest.
$ac_ext >&5
6103 eval "ac_cv_header_$ac_safe=no"
6107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6108 echo "$ac_t""yes" 1>&6
6109 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6110 cat >> confdefs.h
<<EOF
6111 #define $ac_tr_hdr 1
6115 echo "$ac_t""no" 1>&6
6120 for ac_func
in gethostname getdomainname dup2 \
6121 rename closedir mkdir
rmdir sysinfo \
6122 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
6123 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
6124 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
6125 __fpending mblen mbrlen strsignal setitimer ualarm index rindex \
6126 gai_strerror mkstemp
6128 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6129 echo "configure:6130: checking for $ac_func" >&5
6130 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6131 echo $ac_n "(cached) $ac_c" 1>&6
6133 cat > conftest.
$ac_ext <<EOF
6134 #line 6135 "configure"
6135 #include "confdefs.h"
6136 /* System header to define __stub macros and hopefully few prototypes,
6137 which can conflict with char $ac_func(); below. */
6139 /* Override any gcc2 internal prototype to avoid an error. */
6140 /* We use char because int might match the return type of a gcc2
6141 builtin and then its argument prototype would still apply. */
6146 /* The GNU C library defines this for functions which it implements
6147 to always fail with ENOSYS. Some functions are actually named
6148 something starting with __ and the normal name is an alias. */
6149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6157 if { (eval echo configure
:6158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6159 eval "ac_cv_func_$ac_func=yes"
6161 echo "configure: failed program was:" >&5
6162 cat conftest.
$ac_ext >&5
6164 eval "ac_cv_func_$ac_func=no"
6169 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6170 echo "$ac_t""yes" 1>&6
6171 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6172 cat >> confdefs.h
<<EOF
6173 #define $ac_tr_func 1
6177 echo "$ac_t""no" 1>&6
6182 for ac_hdr
in sys
/time.h unistd.h
6184 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6185 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6186 echo "configure:6187: checking for $ac_hdr" >&5
6187 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6188 echo $ac_n "(cached) $ac_c" 1>&6
6190 cat > conftest.
$ac_ext <<EOF
6191 #line 6192 "configure"
6192 #include "confdefs.h"
6195 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6196 { (eval echo configure
:6197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6197 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6198 if test -z "$ac_err"; then
6200 eval "ac_cv_header_$ac_safe=yes"
6203 echo "configure: failed program was:" >&5
6204 cat conftest.
$ac_ext >&5
6206 eval "ac_cv_header_$ac_safe=no"
6210 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6211 echo "$ac_t""yes" 1>&6
6212 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6213 cat >> confdefs.h
<<EOF
6214 #define $ac_tr_hdr 1
6218 echo "$ac_t""no" 1>&6
6222 for ac_func
in alarm
6224 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6225 echo "configure:6226: checking for $ac_func" >&5
6226 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6227 echo $ac_n "(cached) $ac_c" 1>&6
6229 cat > conftest.
$ac_ext <<EOF
6230 #line 6231 "configure"
6231 #include "confdefs.h"
6232 /* System header to define __stub macros and hopefully few prototypes,
6233 which can conflict with char $ac_func(); below. */
6235 /* Override any gcc2 internal prototype to avoid an error. */
6236 /* We use char because int might match the return type of a gcc2
6237 builtin and then its argument prototype would still apply. */
6242 /* The GNU C library defines this for functions which it implements
6243 to always fail with ENOSYS. Some functions are actually named
6244 something starting with __ and the normal name is an alias. */
6245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6253 if { (eval echo configure
:6254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6255 eval "ac_cv_func_$ac_func=yes"
6257 echo "configure: failed program was:" >&5
6258 cat conftest.
$ac_ext >&5
6260 eval "ac_cv_func_$ac_func=no"
6265 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6266 echo "$ac_t""yes" 1>&6
6267 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6268 cat >> confdefs.h
<<EOF
6269 #define $ac_tr_func 1
6273 echo "$ac_t""no" 1>&6
6277 echo $ac_n "checking for working mktime""... $ac_c" 1>&6
6278 echo "configure:6279: checking for working mktime" >&5
6279 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then
6280 echo $ac_n "(cached) $ac_c" 1>&6
6282 if test "$cross_compiling" = yes; then
6283 ac_cv_func_working_mktime
=no
6285 cat > conftest.
$ac_ext <<EOF
6286 #line 6287 "configure"
6287 #include "confdefs.h"
6288 /* Test program from Paul Eggert (eggert@twinsun.com)
6289 and Tony Leneis (tony@plaza.ds.adp.com). */
6290 #if TIME_WITH_SYS_TIME
6291 # include <sys/time.h>
6294 # if HAVE_SYS_TIME_H
6295 # include <sys/time.h>
6302 # include <unistd.h>
6306 # define alarm(X) /* empty */
6309 /* Work around redefinition to rpl_putenv by other config tests. */
6312 static time_t time_t_max;
6314 /* Values we'll use to set the TZ environment variable. */
6315 static const char *const tz_strings[] = {
6316 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
6317 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
6319 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
6321 /* Fail if mktime fails to convert a date in the spring-forward gap.
6322 Based on a problem report from Andreas Jaeger. */
6324 spring_forward_gap ()
6326 /* glibc (up to about 1998-10-07) failed this test) */
6329 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
6330 instead of "TZ=America/Vancouver" in order to detect the bug even
6331 on systems that don't support the Olson extension, or don't have the
6332 full zoneinfo tables installed. */
6333 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
6342 if (mktime (&tm) == (time_t)-1)
6351 if ((lt = localtime (&now)) && mktime (lt) != now)
6353 now = time_t_max - now;
6354 if ((lt = localtime (&now)) && mktime (lt) != now)
6361 /* Based on code from Ariel Faigon. */
6371 if (tm.tm_mon != 2 || tm.tm_mday != 31)
6381 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
6383 if (now != (time_t) -1)
6385 struct tm *lt = localtime (&now);
6387 && lt->tm_year == tm.tm_year
6388 && lt->tm_mon == tm.tm_mon
6389 && lt->tm_mday == tm.tm_mday
6390 && lt->tm_hour == tm.tm_hour
6391 && lt->tm_min == tm.tm_min
6392 && lt->tm_sec == tm.tm_sec
6393 && lt->tm_yday == tm.tm_yday
6394 && lt->tm_wday == tm.tm_wday
6395 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
6396 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
6407 /* This test makes some buggy mktime implementations loop.
6408 Give up after 60 seconds; a mktime slower than that
6409 isn't worth using anyway. */
6412 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
6415 delta = time_t_max / 997; /* a suitable prime number */
6416 for (i = 0; i < N_STRINGS; i++)
6419 putenv (tz_strings[i]);
6421 for (t = 0; t <= time_t_max - delta; t += delta)
6423 mktime_test ((time_t) 60 * 60);
6424 mktime_test ((time_t) 60 * 60 * 24);
6426 for (j = 1; 0 < j; j *= 2)
6428 bigtime_test (j - 1);
6431 spring_forward_gap ();
6435 if { (eval echo configure
:6436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6437 ac_cv_func_working_mktime
=yes
6439 echo "configure: failed program was:" >&5
6440 cat conftest.
$ac_ext >&5
6442 ac_cv_func_working_mktime
=no
6449 echo "$ac_t""$ac_cv_func_working_mktime" 1>&6
6450 if test $ac_cv_func_working_mktime = no
; then
6451 LIBOBJS
="$LIBOBJS mktime.${ac_objext}"
6454 if test "$ac_cv_func_working_mktime" = no
; then
6455 cat >> confdefs.h
<<\EOF
6456 #define BROKEN_MKTIME 1
6461 ac_have_func
=no
# yes means we've found a way to get the load average.
6463 # Some systems have getloadavg without any extra libraries.
6464 echo $ac_n "checking for getloadavg""... $ac_c" 1>&6
6465 echo "configure:6466: checking for getloadavg" >&5
6466 if eval "test \"`echo '$''{'ac_cv_func_getloadavg'+set}'`\" = set"; then
6467 echo $ac_n "(cached) $ac_c" 1>&6
6469 cat > conftest.
$ac_ext <<EOF
6470 #line 6471 "configure"
6471 #include "confdefs.h"
6472 /* System header to define __stub macros and hopefully few prototypes,
6473 which can conflict with char getloadavg(); below. */
6475 /* Override any gcc2 internal prototype to avoid an error. */
6476 /* We use char because int might match the return type of a gcc2
6477 builtin and then its argument prototype would still apply. */
6482 /* The GNU C library defines this for functions which it implements
6483 to always fail with ENOSYS. Some functions are actually named
6484 something starting with __ and the normal name is an alias. */
6485 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
6493 if { (eval echo configure
:6494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6495 eval "ac_cv_func_getloadavg=yes"
6497 echo "configure: failed program was:" >&5
6498 cat conftest.
$ac_ext >&5
6500 eval "ac_cv_func_getloadavg=no"
6505 if eval "test \"`echo '$ac_cv_func_'getloadavg`\" = yes"; then
6506 echo "$ac_t""yes" 1>&6
6509 echo "$ac_t""no" 1>&6
6513 if test $ac_have_func = no
; then
6514 # Some systems with -lutil have (and need) -lkvm as well, some do not.
6515 # On Solaris, -lkvm requires nlist from -lelf, so check that first
6516 # to get the right answer into the cache.
6517 echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6
6518 echo "configure:6519: checking for elf_begin in -lelf" >&5
6519 ac_lib_var
=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'`
6520 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6521 echo $ac_n "(cached) $ac_c" 1>&6
6523 ac_save_LIBS
="$LIBS"
6525 cat > conftest.
$ac_ext <<EOF
6526 #line 6527 "configure"
6527 #include "confdefs.h"
6528 /* Override any gcc2 internal prototype to avoid an error. */
6529 /* We use char because int might match the return type of a gcc2
6530 builtin and then its argument prototype would still apply. */
6537 if { (eval echo configure
:6538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6539 eval "ac_cv_lib_$ac_lib_var=yes"
6541 echo "configure: failed program was:" >&5
6542 cat conftest.
$ac_ext >&5
6544 eval "ac_cv_lib_$ac_lib_var=no"
6547 LIBS
="$ac_save_LIBS"
6550 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6551 echo "$ac_t""yes" 1>&6
6554 echo "$ac_t""no" 1>&6
6557 echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6
6558 echo "configure:6559: checking for kvm_open in -lkvm" >&5
6559 ac_lib_var
=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'`
6560 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6561 echo $ac_n "(cached) $ac_c" 1>&6
6563 ac_save_LIBS
="$LIBS"
6565 cat > conftest.
$ac_ext <<EOF
6566 #line 6567 "configure"
6567 #include "confdefs.h"
6568 /* Override any gcc2 internal prototype to avoid an error. */
6569 /* We use char because int might match the return type of a gcc2
6570 builtin and then its argument prototype would still apply. */
6577 if { (eval echo configure
:6578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6579 eval "ac_cv_lib_$ac_lib_var=yes"
6581 echo "configure: failed program was:" >&5
6582 cat conftest.
$ac_ext >&5
6584 eval "ac_cv_lib_$ac_lib_var=no"
6587 LIBS
="$ac_save_LIBS"
6590 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6591 echo "$ac_t""yes" 1>&6
6594 echo "$ac_t""no" 1>&6
6597 # Check for the 4.4BSD definition of getloadavg.
6598 echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6
6599 echo "configure:6600: checking for getloadavg in -lutil" >&5
6600 ac_lib_var
=`echo util'_'getloadavg | sed 'y%./+-%__p_%'`
6601 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6602 echo $ac_n "(cached) $ac_c" 1>&6
6604 ac_save_LIBS
="$LIBS"
6606 cat > conftest.
$ac_ext <<EOF
6607 #line 6608 "configure"
6608 #include "confdefs.h"
6609 /* Override any gcc2 internal prototype to avoid an error. */
6610 /* We use char because int might match the return type of a gcc2
6611 builtin and then its argument prototype would still apply. */
6618 if { (eval echo configure
:6619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6620 eval "ac_cv_lib_$ac_lib_var=yes"
6622 echo "configure: failed program was:" >&5
6623 cat conftest.
$ac_ext >&5
6625 eval "ac_cv_lib_$ac_lib_var=no"
6628 LIBS
="$ac_save_LIBS"
6631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6632 echo "$ac_t""yes" 1>&6
6633 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
6635 echo "$ac_t""no" 1>&6
6640 if test $ac_have_func = no
; then
6641 # There is a commonly available library for RS/6000 AIX.
6642 # Since it is not a standard part of AIX, it might be installed locally.
6643 ac_getloadavg_LIBS
="$LIBS"; LIBS
="-L/usr/local/lib $LIBS"
6644 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6
6645 echo "configure:6646: checking for getloadavg in -lgetloadavg" >&5
6646 ac_lib_var
=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'`
6647 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6648 echo $ac_n "(cached) $ac_c" 1>&6
6650 ac_save_LIBS
="$LIBS"
6651 LIBS
="-lgetloadavg $LIBS"
6652 cat > conftest.
$ac_ext <<EOF
6653 #line 6654 "configure"
6654 #include "confdefs.h"
6655 /* Override any gcc2 internal prototype to avoid an error. */
6656 /* We use char because int might match the return type of a gcc2
6657 builtin and then its argument prototype would still apply. */
6664 if { (eval echo configure
:6665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6666 eval "ac_cv_lib_$ac_lib_var=yes"
6668 echo "configure: failed program was:" >&5
6669 cat conftest.
$ac_ext >&5
6671 eval "ac_cv_lib_$ac_lib_var=no"
6674 LIBS
="$ac_save_LIBS"
6677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6678 echo "$ac_t""yes" 1>&6
6679 LIBS
="-lgetloadavg $LIBS"
6681 echo "$ac_t""no" 1>&6
6682 LIBS
="$ac_getloadavg_LIBS"
6687 # Make sure it is really in the library, if we think we found it.
6688 for ac_func
in getloadavg
6690 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6691 echo "configure:6692: checking for $ac_func" >&5
6692 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6693 echo $ac_n "(cached) $ac_c" 1>&6
6695 cat > conftest.
$ac_ext <<EOF
6696 #line 6697 "configure"
6697 #include "confdefs.h"
6698 /* System header to define __stub macros and hopefully few prototypes,
6699 which can conflict with char $ac_func(); below. */
6701 /* Override any gcc2 internal prototype to avoid an error. */
6702 /* We use char because int might match the return type of a gcc2
6703 builtin and then its argument prototype would still apply. */
6708 /* The GNU C library defines this for functions which it implements
6709 to always fail with ENOSYS. Some functions are actually named
6710 something starting with __ and the normal name is an alias. */
6711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6719 if { (eval echo configure
:6720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6721 eval "ac_cv_func_$ac_func=yes"
6723 echo "configure: failed program was:" >&5
6724 cat conftest.
$ac_ext >&5
6726 eval "ac_cv_func_$ac_func=no"
6731 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6732 echo "$ac_t""yes" 1>&6
6733 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6734 cat >> confdefs.h
<<EOF
6735 #define $ac_tr_func 1
6739 echo "$ac_t""no" 1>&6
6740 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
6746 if test $ac_cv_func_getloadavg = yes; then
6747 cat >> confdefs.h
<<\EOF
6748 #define HAVE_GETLOADAVG 1
6753 # Figure out what our getloadavg.c needs.
6755 ac_safe
=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'`
6756 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6
6757 echo "configure:6758: checking for sys/dg_sys_info.h" >&5
6758 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6759 echo $ac_n "(cached) $ac_c" 1>&6
6761 cat > conftest.
$ac_ext <<EOF
6762 #line 6763 "configure"
6763 #include "confdefs.h"
6764 #include <sys/dg_sys_info.h>
6766 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6767 { (eval echo configure
:6768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6768 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6769 if test -z "$ac_err"; then
6771 eval "ac_cv_header_$ac_safe=yes"
6774 echo "configure: failed program was:" >&5
6775 cat conftest.
$ac_ext >&5
6777 eval "ac_cv_header_$ac_safe=no"
6781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6782 echo "$ac_t""yes" 1>&6
6783 ac_have_func
=yes; cat >> confdefs.h
<<\EOF
6787 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6
6788 echo "configure:6789: checking for dg_sys_info in -ldgc" >&5
6789 ac_lib_var
=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'`
6790 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6791 echo $ac_n "(cached) $ac_c" 1>&6
6793 ac_save_LIBS
="$LIBS"
6795 cat > conftest.
$ac_ext <<EOF
6796 #line 6797 "configure"
6797 #include "confdefs.h"
6798 /* Override any gcc2 internal prototype to avoid an error. */
6799 /* We use char because int might match the return type of a gcc2
6800 builtin and then its argument prototype would still apply. */
6807 if { (eval echo configure
:6808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6809 eval "ac_cv_lib_$ac_lib_var=yes"
6811 echo "configure: failed program was:" >&5
6812 cat conftest.
$ac_ext >&5
6814 eval "ac_cv_lib_$ac_lib_var=no"
6817 LIBS
="$ac_save_LIBS"
6820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6821 echo "$ac_t""yes" 1>&6
6822 ac_tr_lib
=HAVE_LIB
`echo dgc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6823 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6824 cat >> confdefs.h
<<EOF
6825 #define $ac_tr_lib 1
6831 echo "$ac_t""no" 1>&6
6835 echo "$ac_t""no" 1>&6
6839 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
6840 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
6841 # Irix 4.0.5F has the header but not the library.
6842 if test $ac_have_func = no
&& test $ac_cv_lib_elf_elf_begin = yes; then
6843 ac_have_func
=yes; cat >> confdefs.h
<<\EOF
6849 if test $ac_have_func = no
; then
6850 ac_safe
=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'`
6851 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6
6852 echo "configure:6853: checking for inq_stats/cpustats.h" >&5
6853 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6854 echo $ac_n "(cached) $ac_c" 1>&6
6856 cat > conftest.
$ac_ext <<EOF
6857 #line 6858 "configure"
6858 #include "confdefs.h"
6859 #include <inq_stats/cpustats.h>
6861 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6862 { (eval echo configure
:6863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6863 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6864 if test -z "$ac_err"; then
6866 eval "ac_cv_header_$ac_safe=yes"
6869 echo "configure: failed program was:" >&5
6870 cat conftest.
$ac_ext >&5
6872 eval "ac_cv_header_$ac_safe=no"
6876 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6877 echo "$ac_t""yes" 1>&6
6878 ac_have_func
=yes; cat >> confdefs.h
<<\EOF
6882 cat >> confdefs.h
<<\EOF
6887 echo "$ac_t""no" 1>&6
6892 if test $ac_have_func = no
; then
6893 ac_safe
=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'`
6894 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6
6895 echo "configure:6896: checking for sys/cpustats.h" >&5
6896 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6897 echo $ac_n "(cached) $ac_c" 1>&6
6899 cat > conftest.
$ac_ext <<EOF
6900 #line 6901 "configure"
6901 #include "confdefs.h"
6902 #include <sys/cpustats.h>
6904 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6905 { (eval echo configure
:6906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6906 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6907 if test -z "$ac_err"; then
6909 eval "ac_cv_header_$ac_safe=yes"
6912 echo "configure: failed program was:" >&5
6913 cat conftest.
$ac_ext >&5
6915 eval "ac_cv_header_$ac_safe=no"
6919 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6920 echo "$ac_t""yes" 1>&6
6921 ac_have_func
=yes; cat >> confdefs.h
<<\EOF
6926 echo "$ac_t""no" 1>&6
6931 if test $ac_have_func = no
; then
6932 for ac_hdr
in mach
/mach.h
6934 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6935 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6936 echo "configure:6937: checking for $ac_hdr" >&5
6937 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6938 echo $ac_n "(cached) $ac_c" 1>&6
6940 cat > conftest.
$ac_ext <<EOF
6941 #line 6942 "configure"
6942 #include "confdefs.h"
6945 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6946 { (eval echo configure
:6947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6947 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6948 if test -z "$ac_err"; then
6950 eval "ac_cv_header_$ac_safe=yes"
6953 echo "configure: failed program was:" >&5
6954 cat conftest.
$ac_ext >&5
6956 eval "ac_cv_header_$ac_safe=no"
6960 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6961 echo "$ac_t""yes" 1>&6
6962 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6963 cat >> confdefs.h
<<EOF
6964 #define $ac_tr_hdr 1
6968 echo "$ac_t""no" 1>&6
6974 ac_safe
=`echo "nlist.h" | sed 'y%./+-%__p_%'`
6975 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
6976 echo "configure:6977: checking for nlist.h" >&5
6977 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6978 echo $ac_n "(cached) $ac_c" 1>&6
6980 cat > conftest.
$ac_ext <<EOF
6981 #line 6982 "configure"
6982 #include "confdefs.h"
6985 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6986 { (eval echo configure
:6987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6987 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6988 if test -z "$ac_err"; then
6990 eval "ac_cv_header_$ac_safe=yes"
6993 echo "configure: failed program was:" >&5
6994 cat conftest.
$ac_ext >&5
6996 eval "ac_cv_header_$ac_safe=no"
7000 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7001 echo "$ac_t""yes" 1>&6
7002 cat >> confdefs.h
<<\EOF
7003 #define NLIST_STRUCT 1
7006 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6
7007 echo "configure:7008: checking for n_un in struct nlist" >&5
7008 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then
7009 echo $ac_n "(cached) $ac_c" 1>&6
7011 cat > conftest.
$ac_ext <<EOF
7012 #line 7013 "configure"
7013 #include "confdefs.h"
7016 struct nlist n; n.n_un.n_name = 0;
7019 if { (eval echo configure
:7020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7021 ac_cv_struct_nlist_n_un
=yes
7023 echo "configure: failed program was:" >&5
7024 cat conftest.
$ac_ext >&5
7026 ac_cv_struct_nlist_n_un
=no
7031 echo "$ac_t""$ac_cv_struct_nlist_n_un" 1>&6
7032 if test $ac_cv_struct_nlist_n_un = yes; then
7033 cat >> confdefs.h
<<\EOF
7034 #define NLIST_NAME_UNION 1
7040 echo "$ac_t""no" 1>&6
7042 fi # Do not have getloadavg in system libraries.
7044 # Some definitions of getloadavg require that the program be installed setgid.
7045 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6
7046 echo "configure:7047: checking whether getloadavg requires setgid" >&5
7047 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then
7048 echo $ac_n "(cached) $ac_c" 1>&6
7050 cat > conftest.
$ac_ext <<EOF
7051 #line 7052 "configure"
7052 #include "confdefs.h"
7053 #include "$srcdir/getloadavg.c"
7054 #ifdef LDAV_PRIVILEGED
7055 Yowza Am I SETGID yet
7058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7059 egrep "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
7061 ac_cv_func_getloadavg_setgid
=yes
7064 ac_cv_func_getloadavg_setgid
=no
7070 echo "$ac_t""$ac_cv_func_getloadavg_setgid" 1>&6
7071 if test $ac_cv_func_getloadavg_setgid = yes; then
7072 NEED_SETGID
=true
; cat >> confdefs.h
<<\EOF
7073 #define GETLOADAVG_PRIVILEGED 1
7080 if test $ac_cv_func_getloadavg_setgid = yes; then
7081 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6
7082 echo "configure:7083: checking group of /dev/kmem" >&5
7083 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then
7084 echo $ac_n "(cached) $ac_c" 1>&6
7086 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
7087 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
7088 # If we got an error (system does not support symlinks), try without -L.
7089 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
7090 ac_cv_group_kmem
=`echo $ac_ls_output \
7091 | sed -ne 's/[ ][ ]*/ /g;
7092 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
7097 echo "$ac_t""$ac_cv_group_kmem" 1>&6
7098 KMEM_GROUP
=$ac_cv_group_kmem
7102 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
7103 echo "configure:7104: checking for _LARGEFILE_SOURCE value needed for large files" >&5
7104 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then
7105 echo $ac_n "(cached) $ac_c" 1>&6
7107 ac_cv_sys_largefile_source
=no
7108 cat > conftest.
$ac_ext <<EOF
7109 #line 7110 "configure"
7110 #include "confdefs.h"
7116 if { (eval echo configure
:7117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7119 echo "configure: failed program was:" >&5
7120 cat conftest.
$ac_ext >&5
7122 cat > conftest.
$ac_ext <<EOF
7123 #line 7124 "configure"
7124 #include "confdefs.h"
7125 #define _LARGEFILE_SOURCE 1
7132 if { (eval echo configure
:7133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7134 ac_cv_sys_largefile_source
=1
7136 echo "configure: failed program was:" >&5
7137 cat conftest.
$ac_ext >&5
7144 echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
7145 if test "$ac_cv_sys_largefile_source" != no
; then
7146 cat >> confdefs.h
<<EOF
7147 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7151 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
7152 # in glibc 2.1.3, but that breaks too many other things.
7153 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
7155 echo $ac_n "checking for fseeko""... $ac_c" 1>&6
7156 echo "configure:7157: checking for fseeko" >&5
7157 if eval "test \"`echo '$''{'ac_cv_func_fseeko'+set}'`\" = set"; then
7158 echo $ac_n "(cached) $ac_c" 1>&6
7160 ac_cv_func_fseeko
=no
7161 cat > conftest.
$ac_ext <<EOF
7162 #line 7163 "configure"
7163 #include "confdefs.h"
7166 return fseeko && fseeko (stdin, 0, 0);
7169 if { (eval echo configure
:7170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7171 ac_cv_func_fseeko
=yes
7173 echo "configure: failed program was:" >&5
7174 cat conftest.
$ac_ext >&5
7179 echo "$ac_t""$ac_cv_func_fseeko" 1>&6
7180 if test $ac_cv_func_fseeko != no
; then
7181 cat >> confdefs.h
<<\EOF
7182 #define HAVE_FSEEKO 1
7188 for ac_func
in grantpt
7190 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7191 echo "configure:7192: checking for $ac_func" >&5
7192 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7193 echo $ac_n "(cached) $ac_c" 1>&6
7195 cat > conftest.
$ac_ext <<EOF
7196 #line 7197 "configure"
7197 #include "confdefs.h"
7198 /* System header to define __stub macros and hopefully few prototypes,
7199 which can conflict with char $ac_func(); below. */
7201 /* Override any gcc2 internal prototype to avoid an error. */
7202 /* We use char because int might match the return type of a gcc2
7203 builtin and then its argument prototype would still apply. */
7208 /* The GNU C library defines this for functions which it implements
7209 to always fail with ENOSYS. Some functions are actually named
7210 something starting with __ and the normal name is an alias. */
7211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7219 if { (eval echo configure
:7220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7221 eval "ac_cv_func_$ac_func=yes"
7223 echo "configure: failed program was:" >&5
7224 cat conftest.
$ac_ext >&5
7226 eval "ac_cv_func_$ac_func=no"
7231 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7232 echo "$ac_t""yes" 1>&6
7233 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7234 cat >> confdefs.h
<<EOF
7235 #define $ac_tr_func 1
7239 echo "$ac_t""no" 1>&6
7244 # PTY-related GNU extensions.
7245 for ac_func
in getpt
7247 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7248 echo "configure:7249: checking for $ac_func" >&5
7249 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7250 echo $ac_n "(cached) $ac_c" 1>&6
7252 cat > conftest.
$ac_ext <<EOF
7253 #line 7254 "configure"
7254 #include "confdefs.h"
7255 /* System header to define __stub macros and hopefully few prototypes,
7256 which can conflict with char $ac_func(); below. */
7258 /* Override any gcc2 internal prototype to avoid an error. */
7259 /* We use char because int might match the return type of a gcc2
7260 builtin and then its argument prototype would still apply. */
7265 /* The GNU C library defines this for functions which it implements
7266 to always fail with ENOSYS. Some functions are actually named
7267 something starting with __ and the normal name is an alias. */
7268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7276 if { (eval echo configure
:7277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7278 eval "ac_cv_func_$ac_func=yes"
7280 echo "configure: failed program was:" >&5
7281 cat conftest.
$ac_ext >&5
7283 eval "ac_cv_func_$ac_func=no"
7288 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7289 echo "$ac_t""yes" 1>&6
7290 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7291 cat >> confdefs.h
<<EOF
7292 #define $ac_tr_func 1
7296 echo "$ac_t""no" 1>&6
7301 # Check this now, so that we will NOT find the above functions in ncurses.
7302 # That is because we have not set up to link ncurses in lib-src.
7303 # It's better to believe a function is not available
7304 # than to expect to find it in ncurses.
7305 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
7306 echo "configure:7307: checking for tparm in -lncurses" >&5
7307 ac_lib_var
=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
7308 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7309 echo $ac_n "(cached) $ac_c" 1>&6
7311 ac_save_LIBS
="$LIBS"
7312 LIBS
="-lncurses $LIBS"
7313 cat > conftest.
$ac_ext <<EOF
7314 #line 7315 "configure"
7315 #include "confdefs.h"
7316 /* Override any gcc2 internal prototype to avoid an error. */
7317 /* We use char because int might match the return type of a gcc2
7318 builtin and then its argument prototype would still apply. */
7325 if { (eval echo configure
:7326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7327 eval "ac_cv_lib_$ac_lib_var=yes"
7329 echo "configure: failed program was:" >&5
7330 cat conftest.
$ac_ext >&5
7332 eval "ac_cv_lib_$ac_lib_var=no"
7335 LIBS
="$ac_save_LIBS"
7338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7339 echo "$ac_t""yes" 1>&6
7340 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7341 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7342 cat >> confdefs.h
<<EOF
7343 #define $ac_tr_lib 1
7346 LIBS
="-lncurses $LIBS"
7349 echo "$ac_t""no" 1>&6
7353 # Do we need the Hesiod library to provide the support routines?
7354 if test "$with_hesiod" = yes ; then
7355 # Don't set $LIBS here -- see comments above.
7357 echo $ac_n "checking for res_send""... $ac_c" 1>&6
7358 echo "configure:7359: checking for res_send" >&5
7359 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
7360 echo $ac_n "(cached) $ac_c" 1>&6
7362 cat > conftest.
$ac_ext <<EOF
7363 #line 7364 "configure"
7364 #include "confdefs.h"
7365 /* System header to define __stub macros and hopefully few prototypes,
7366 which can conflict with char res_send(); below. */
7368 /* Override any gcc2 internal prototype to avoid an error. */
7369 /* We use char because int might match the return type of a gcc2
7370 builtin and then its argument prototype would still apply. */
7375 /* The GNU C library defines this for functions which it implements
7376 to always fail with ENOSYS. Some functions are actually named
7377 something starting with __ and the normal name is an alias. */
7378 #if defined (__stub_res_send) || defined (__stub___res_send)
7386 if { (eval echo configure
:7387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7388 eval "ac_cv_func_res_send=yes"
7390 echo "configure: failed program was:" >&5
7391 cat conftest.
$ac_ext >&5
7393 eval "ac_cv_func_res_send=no"
7398 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
7399 echo "$ac_t""yes" 1>&6
7402 echo "$ac_t""no" 1>&6
7403 echo $ac_n "checking for __res_send""... $ac_c" 1>&6
7404 echo "configure:7405: checking for __res_send" >&5
7405 if eval "test \"`echo '$''{'ac_cv_func___res_send'+set}'`\" = set"; then
7406 echo $ac_n "(cached) $ac_c" 1>&6
7408 cat > conftest.
$ac_ext <<EOF
7409 #line 7410 "configure"
7410 #include "confdefs.h"
7411 /* System header to define __stub macros and hopefully few prototypes,
7412 which can conflict with char __res_send(); below. */
7414 /* Override any gcc2 internal prototype to avoid an error. */
7415 /* We use char because int might match the return type of a gcc2
7416 builtin and then its argument prototype would still apply. */
7421 /* The GNU C library defines this for functions which it implements
7422 to always fail with ENOSYS. Some functions are actually named
7423 something starting with __ and the normal name is an alias. */
7424 #if defined (__stub___res_send) || defined (__stub_____res_send)
7432 if { (eval echo configure
:7433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7434 eval "ac_cv_func___res_send=yes"
7436 echo "configure: failed program was:" >&5
7437 cat conftest.
$ac_ext >&5
7439 eval "ac_cv_func___res_send=no"
7444 if eval "test \"`echo '$ac_cv_func_'__res_send`\" = yes"; then
7445 echo "$ac_t""yes" 1>&6
7448 echo "$ac_t""no" 1>&6
7449 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
7450 echo "configure:7451: checking for res_send in -lresolv" >&5
7451 ac_lib_var
=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
7452 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7453 echo $ac_n "(cached) $ac_c" 1>&6
7455 ac_save_LIBS
="$LIBS"
7456 LIBS
="-lresolv $LIBS"
7457 cat > conftest.
$ac_ext <<EOF
7458 #line 7459 "configure"
7459 #include "confdefs.h"
7460 /* Override any gcc2 internal prototype to avoid an error. */
7461 /* We use char because int might match the return type of a gcc2
7462 builtin and then its argument prototype would still apply. */
7469 if { (eval echo configure
:7470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7471 eval "ac_cv_lib_$ac_lib_var=yes"
7473 echo "configure: failed program was:" >&5
7474 cat conftest.
$ac_ext >&5
7476 eval "ac_cv_lib_$ac_lib_var=no"
7479 LIBS
="$ac_save_LIBS"
7482 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7483 echo "$ac_t""yes" 1>&6
7486 echo "$ac_t""no" 1>&6
7487 echo $ac_n "checking for __res_send in -lresolv""... $ac_c" 1>&6
7488 echo "configure:7489: checking for __res_send in -lresolv" >&5
7489 ac_lib_var
=`echo resolv'_'__res_send | sed 'y%./+-%__p_%'`
7490 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7491 echo $ac_n "(cached) $ac_c" 1>&6
7493 ac_save_LIBS
="$LIBS"
7494 LIBS
="-lresolv $LIBS"
7495 cat > conftest.
$ac_ext <<EOF
7496 #line 7497 "configure"
7497 #include "confdefs.h"
7498 /* Override any gcc2 internal prototype to avoid an error. */
7499 /* We use char because int might match the return type of a gcc2
7500 builtin and then its argument prototype would still apply. */
7507 if { (eval echo configure
:7508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7509 eval "ac_cv_lib_$ac_lib_var=yes"
7511 echo "configure: failed program was:" >&5
7512 cat conftest.
$ac_ext >&5
7514 eval "ac_cv_lib_$ac_lib_var=no"
7517 LIBS
="$ac_save_LIBS"
7520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7521 echo "$ac_t""yes" 1>&6
7524 echo "$ac_t""no" 1>&6
7533 if test "$resolv" = yes ; then
7535 cat >> confdefs.h
<<\EOF
7536 #define HAVE_LIBRESOLV 1
7542 echo $ac_n "checking for hes_getmailhost""... $ac_c" 1>&6
7543 echo "configure:7544: checking for hes_getmailhost" >&5
7544 if eval "test \"`echo '$''{'ac_cv_func_hes_getmailhost'+set}'`\" = set"; then
7545 echo $ac_n "(cached) $ac_c" 1>&6
7547 cat > conftest.
$ac_ext <<EOF
7548 #line 7549 "configure"
7549 #include "confdefs.h"
7550 /* System header to define __stub macros and hopefully few prototypes,
7551 which can conflict with char hes_getmailhost(); below. */
7553 /* Override any gcc2 internal prototype to avoid an error. */
7554 /* We use char because int might match the return type of a gcc2
7555 builtin and then its argument prototype would still apply. */
7556 char hes_getmailhost();
7560 /* The GNU C library defines this for functions which it implements
7561 to always fail with ENOSYS. Some functions are actually named
7562 something starting with __ and the normal name is an alias. */
7563 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
7571 if { (eval echo configure
:7572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7573 eval "ac_cv_func_hes_getmailhost=yes"
7575 echo "configure: failed program was:" >&5
7576 cat conftest.
$ac_ext >&5
7578 eval "ac_cv_func_hes_getmailhost=no"
7583 if eval "test \"`echo '$ac_cv_func_'hes_getmailhost`\" = yes"; then
7584 echo "$ac_t""yes" 1>&6
7587 echo "$ac_t""no" 1>&6
7588 echo $ac_n "checking for hes_getmailhost in -lhesiod""... $ac_c" 1>&6
7589 echo "configure:7590: checking for hes_getmailhost in -lhesiod" >&5
7590 ac_lib_var
=`echo hesiod'_'hes_getmailhost | sed 'y%./+-%__p_%'`
7591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7592 echo $ac_n "(cached) $ac_c" 1>&6
7594 ac_save_LIBS
="$LIBS"
7595 LIBS
="-lhesiod $RESOLVLIB $LIBS"
7596 cat > conftest.
$ac_ext <<EOF
7597 #line 7598 "configure"
7598 #include "confdefs.h"
7599 /* Override any gcc2 internal prototype to avoid an error. */
7600 /* We use char because int might match the return type of a gcc2
7601 builtin and then its argument prototype would still apply. */
7602 char hes_getmailhost();
7608 if { (eval echo configure
:7609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7610 eval "ac_cv_lib_$ac_lib_var=yes"
7612 echo "configure: failed program was:" >&5
7613 cat conftest.
$ac_ext >&5
7615 eval "ac_cv_lib_$ac_lib_var=no"
7618 LIBS
="$ac_save_LIBS"
7621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7622 echo "$ac_t""yes" 1>&6
7623 cat >> confdefs.h
<<\EOF
7624 #define HAVE_LIBHESIOD 1
7628 echo "$ac_t""no" 1>&6
7636 # These tell us which Kerberos-related libraries to use.
7637 if test "${with_kerberos+set}" = set; then
7638 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
7639 echo "configure:7640: checking for com_err in -lcom_err" >&5
7640 ac_lib_var
=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
7641 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7642 echo $ac_n "(cached) $ac_c" 1>&6
7644 ac_save_LIBS
="$LIBS"
7645 LIBS
="-lcom_err $LIBS"
7646 cat > conftest.
$ac_ext <<EOF
7647 #line 7648 "configure"
7648 #include "confdefs.h"
7649 /* Override any gcc2 internal prototype to avoid an error. */
7650 /* We use char because int might match the return type of a gcc2
7651 builtin and then its argument prototype would still apply. */
7658 if { (eval echo configure
:7659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7660 eval "ac_cv_lib_$ac_lib_var=yes"
7662 echo "configure: failed program was:" >&5
7663 cat conftest.
$ac_ext >&5
7665 eval "ac_cv_lib_$ac_lib_var=no"
7668 LIBS
="$ac_save_LIBS"
7671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7672 echo "$ac_t""yes" 1>&6
7673 ac_tr_lib
=HAVE_LIB
`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7674 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7675 cat >> confdefs.h
<<EOF
7676 #define $ac_tr_lib 1
7679 LIBS
="-lcom_err $LIBS"
7682 echo "$ac_t""no" 1>&6
7685 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6
7686 echo "configure:7687: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
7687 ac_lib_var
=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
7688 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7689 echo $ac_n "(cached) $ac_c" 1>&6
7691 ac_save_LIBS
="$LIBS"
7692 LIBS
="-lk5crypto $LIBS"
7693 cat > conftest.
$ac_ext <<EOF
7694 #line 7695 "configure"
7695 #include "confdefs.h"
7696 /* Override any gcc2 internal prototype to avoid an error. */
7697 /* We use char because int might match the return type of a gcc2
7698 builtin and then its argument prototype would still apply. */
7699 char mit_des_cbc_encrypt();
7702 mit_des_cbc_encrypt()
7705 if { (eval echo configure
:7706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7707 eval "ac_cv_lib_$ac_lib_var=yes"
7709 echo "configure: failed program was:" >&5
7710 cat conftest.
$ac_ext >&5
7712 eval "ac_cv_lib_$ac_lib_var=no"
7715 LIBS
="$ac_save_LIBS"
7718 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7719 echo "$ac_t""yes" 1>&6
7720 ac_tr_lib
=HAVE_LIB
`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7721 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7722 cat >> confdefs.h
<<EOF
7723 #define $ac_tr_lib 1
7726 LIBS
="-lk5crypto $LIBS"
7729 echo "$ac_t""no" 1>&6
7732 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
7733 echo "configure:7734: checking for mit_des_cbc_encrypt in -lcrypto" >&5
7734 ac_lib_var
=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
7735 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7736 echo $ac_n "(cached) $ac_c" 1>&6
7738 ac_save_LIBS
="$LIBS"
7739 LIBS
="-lcrypto $LIBS"
7740 cat > conftest.
$ac_ext <<EOF
7741 #line 7742 "configure"
7742 #include "confdefs.h"
7743 /* Override any gcc2 internal prototype to avoid an error. */
7744 /* We use char because int might match the return type of a gcc2
7745 builtin and then its argument prototype would still apply. */
7746 char mit_des_cbc_encrypt();
7749 mit_des_cbc_encrypt()
7752 if { (eval echo configure
:7753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7754 eval "ac_cv_lib_$ac_lib_var=yes"
7756 echo "configure: failed program was:" >&5
7757 cat conftest.
$ac_ext >&5
7759 eval "ac_cv_lib_$ac_lib_var=no"
7762 LIBS
="$ac_save_LIBS"
7765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7766 echo "$ac_t""yes" 1>&6
7767 ac_tr_lib
=HAVE_LIB
`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7768 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7769 cat >> confdefs.h
<<EOF
7770 #define $ac_tr_lib 1
7773 LIBS
="-lcrypto $LIBS"
7776 echo "$ac_t""no" 1>&6
7779 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6
7780 echo "configure:7781: checking for krb5_init_context in -lkrb5" >&5
7781 ac_lib_var
=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'`
7782 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7783 echo $ac_n "(cached) $ac_c" 1>&6
7785 ac_save_LIBS
="$LIBS"
7787 cat > conftest.
$ac_ext <<EOF
7788 #line 7789 "configure"
7789 #include "confdefs.h"
7790 /* Override any gcc2 internal prototype to avoid an error. */
7791 /* We use char because int might match the return type of a gcc2
7792 builtin and then its argument prototype would still apply. */
7793 char krb5_init_context();
7799 if { (eval echo configure
:7800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7801 eval "ac_cv_lib_$ac_lib_var=yes"
7803 echo "configure: failed program was:" >&5
7804 cat conftest.
$ac_ext >&5
7806 eval "ac_cv_lib_$ac_lib_var=no"
7809 LIBS
="$ac_save_LIBS"
7812 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7813 echo "$ac_t""yes" 1>&6
7814 ac_tr_lib
=HAVE_LIB
`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7815 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7816 cat >> confdefs.h
<<EOF
7817 #define $ac_tr_lib 1
7823 echo "$ac_t""no" 1>&6
7826 if test "${with_kerberos5+set}" != set; then
7827 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6
7828 echo "configure:7829: checking for des_cbc_encrypt in -ldes425" >&5
7829 ac_lib_var
=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
7830 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7831 echo $ac_n "(cached) $ac_c" 1>&6
7833 ac_save_LIBS
="$LIBS"
7834 LIBS
="-ldes425 $LIBS"
7835 cat > conftest.
$ac_ext <<EOF
7836 #line 7837 "configure"
7837 #include "confdefs.h"
7838 /* Override any gcc2 internal prototype to avoid an error. */
7839 /* We use char because int might match the return type of a gcc2
7840 builtin and then its argument prototype would still apply. */
7841 char des_cbc_encrypt();
7847 if { (eval echo configure
:7848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7849 eval "ac_cv_lib_$ac_lib_var=yes"
7851 echo "configure: failed program was:" >&5
7852 cat conftest.
$ac_ext >&5
7854 eval "ac_cv_lib_$ac_lib_var=no"
7857 LIBS
="$ac_save_LIBS"
7860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7861 echo "$ac_t""yes" 1>&6
7862 ac_tr_lib
=HAVE_LIB
`echo des425 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7863 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7864 cat >> confdefs.h
<<EOF
7865 #define $ac_tr_lib 1
7868 LIBS
="-ldes425 $LIBS"
7871 echo "$ac_t""no" 1>&6
7872 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6
7873 echo "configure:7874: checking for des_cbc_encrypt in -ldes" >&5
7874 ac_lib_var
=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
7875 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7876 echo $ac_n "(cached) $ac_c" 1>&6
7878 ac_save_LIBS
="$LIBS"
7880 cat > conftest.
$ac_ext <<EOF
7881 #line 7882 "configure"
7882 #include "confdefs.h"
7883 /* Override any gcc2 internal prototype to avoid an error. */
7884 /* We use char because int might match the return type of a gcc2
7885 builtin and then its argument prototype would still apply. */
7886 char des_cbc_encrypt();
7892 if { (eval echo configure
:7893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7894 eval "ac_cv_lib_$ac_lib_var=yes"
7896 echo "configure: failed program was:" >&5
7897 cat conftest.
$ac_ext >&5
7899 eval "ac_cv_lib_$ac_lib_var=no"
7902 LIBS
="$ac_save_LIBS"
7905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7906 echo "$ac_t""yes" 1>&6
7907 ac_tr_lib
=HAVE_LIB
`echo des | sed -e 's/^a-zA-Z0-9_/_/g' \
7908 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7909 cat >> confdefs.h
<<EOF
7910 #define $ac_tr_lib 1
7916 echo "$ac_t""no" 1>&6
7921 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6
7922 echo "configure:7923: checking for krb_get_cred in -lkrb4" >&5
7923 ac_lib_var
=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'`
7924 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7925 echo $ac_n "(cached) $ac_c" 1>&6
7927 ac_save_LIBS
="$LIBS"
7929 cat > conftest.
$ac_ext <<EOF
7930 #line 7931 "configure"
7931 #include "confdefs.h"
7932 /* Override any gcc2 internal prototype to avoid an error. */
7933 /* We use char because int might match the return type of a gcc2
7934 builtin and then its argument prototype would still apply. */
7935 char krb_get_cred();
7941 if { (eval echo configure
:7942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7943 eval "ac_cv_lib_$ac_lib_var=yes"
7945 echo "configure: failed program was:" >&5
7946 cat conftest.
$ac_ext >&5
7948 eval "ac_cv_lib_$ac_lib_var=no"
7951 LIBS
="$ac_save_LIBS"
7954 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7955 echo "$ac_t""yes" 1>&6
7956 ac_tr_lib
=HAVE_LIB
`echo krb4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7957 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7958 cat >> confdefs.h
<<EOF
7959 #define $ac_tr_lib 1
7965 echo "$ac_t""no" 1>&6
7966 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6
7967 echo "configure:7968: checking for krb_get_cred in -lkrb" >&5
7968 ac_lib_var
=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'`
7969 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7970 echo $ac_n "(cached) $ac_c" 1>&6
7972 ac_save_LIBS
="$LIBS"
7974 cat > conftest.
$ac_ext <<EOF
7975 #line 7976 "configure"
7976 #include "confdefs.h"
7977 /* Override any gcc2 internal prototype to avoid an error. */
7978 /* We use char because int might match the return type of a gcc2
7979 builtin and then its argument prototype would still apply. */
7980 char krb_get_cred();
7986 if { (eval echo configure
:7987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7988 eval "ac_cv_lib_$ac_lib_var=yes"
7990 echo "configure: failed program was:" >&5
7991 cat conftest.
$ac_ext >&5
7993 eval "ac_cv_lib_$ac_lib_var=no"
7996 LIBS
="$ac_save_LIBS"
7999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8000 echo "$ac_t""yes" 1>&6
8001 ac_tr_lib
=HAVE_LIB
`echo krb | sed -e 's/^a-zA-Z0-9_/_/g' \
8002 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8003 cat >> confdefs.h
<<EOF
8004 #define $ac_tr_lib 1
8010 echo "$ac_t""no" 1>&6
8017 if test "${with_kerberos5+set}" = set; then
8018 for ac_hdr
in krb5.h
8020 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8021 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8022 echo "configure:8023: checking for $ac_hdr" >&5
8023 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8024 echo $ac_n "(cached) $ac_c" 1>&6
8026 cat > conftest.
$ac_ext <<EOF
8027 #line 8028 "configure"
8028 #include "confdefs.h"
8031 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8032 { (eval echo configure
:8033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8033 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8034 if test -z "$ac_err"; then
8036 eval "ac_cv_header_$ac_safe=yes"
8039 echo "configure: failed program was:" >&5
8040 cat conftest.
$ac_ext >&5
8042 eval "ac_cv_header_$ac_safe=no"
8046 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8047 echo "$ac_t""yes" 1>&6
8048 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8049 cat >> confdefs.h
<<EOF
8050 #define $ac_tr_hdr 1
8054 echo "$ac_t""no" 1>&6
8061 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8062 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8063 echo "configure:8064: checking for $ac_hdr" >&5
8064 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8065 echo $ac_n "(cached) $ac_c" 1>&6
8067 cat > conftest.
$ac_ext <<EOF
8068 #line 8069 "configure"
8069 #include "confdefs.h"
8072 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8073 { (eval echo configure
:8074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8074 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8075 if test -z "$ac_err"; then
8077 eval "ac_cv_header_$ac_safe=yes"
8080 echo "configure: failed program was:" >&5
8081 cat conftest.
$ac_ext >&5
8083 eval "ac_cv_header_$ac_safe=no"
8087 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8088 echo "$ac_t""yes" 1>&6
8089 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8090 cat >> confdefs.h
<<EOF
8091 #define $ac_tr_hdr 1
8095 echo "$ac_t""no" 1>&6
8096 for ac_hdr
in kerberosIV
/des.h
8098 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8099 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8100 echo "configure:8101: checking for $ac_hdr" >&5
8101 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8102 echo $ac_n "(cached) $ac_c" 1>&6
8104 cat > conftest.
$ac_ext <<EOF
8105 #line 8106 "configure"
8106 #include "confdefs.h"
8109 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8110 { (eval echo configure
:8111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8111 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8112 if test -z "$ac_err"; then
8114 eval "ac_cv_header_$ac_safe=yes"
8117 echo "configure: failed program was:" >&5
8118 cat conftest.
$ac_ext >&5
8120 eval "ac_cv_header_$ac_safe=no"
8124 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8125 echo "$ac_t""yes" 1>&6
8126 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8127 cat >> confdefs.h
<<EOF
8128 #define $ac_tr_hdr 1
8132 echo "$ac_t""no" 1>&6
8133 for ac_hdr
in kerberos
/des.h
8135 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8136 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8137 echo "configure:8138: checking for $ac_hdr" >&5
8138 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8139 echo $ac_n "(cached) $ac_c" 1>&6
8141 cat > conftest.
$ac_ext <<EOF
8142 #line 8143 "configure"
8143 #include "confdefs.h"
8146 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8147 { (eval echo configure
:8148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8148 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8149 if test -z "$ac_err"; then
8151 eval "ac_cv_header_$ac_safe=yes"
8154 echo "configure: failed program was:" >&5
8155 cat conftest.
$ac_ext >&5
8157 eval "ac_cv_header_$ac_safe=no"
8161 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8162 echo "$ac_t""yes" 1>&6
8163 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8164 cat >> confdefs.h
<<EOF
8165 #define $ac_tr_hdr 1
8169 echo "$ac_t""no" 1>&6
8181 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8182 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8183 echo "configure:8184: checking for $ac_hdr" >&5
8184 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8185 echo $ac_n "(cached) $ac_c" 1>&6
8187 cat > conftest.
$ac_ext <<EOF
8188 #line 8189 "configure"
8189 #include "confdefs.h"
8192 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8193 { (eval echo configure
:8194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8194 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8195 if test -z "$ac_err"; then
8197 eval "ac_cv_header_$ac_safe=yes"
8200 echo "configure: failed program was:" >&5
8201 cat conftest.
$ac_ext >&5
8203 eval "ac_cv_header_$ac_safe=no"
8207 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8208 echo "$ac_t""yes" 1>&6
8209 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8210 cat >> confdefs.h
<<EOF
8211 #define $ac_tr_hdr 1
8215 echo "$ac_t""no" 1>&6
8216 for ac_hdr
in kerberosIV
/krb.h
8218 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8219 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8220 echo "configure:8221: checking for $ac_hdr" >&5
8221 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8222 echo $ac_n "(cached) $ac_c" 1>&6
8224 cat > conftest.
$ac_ext <<EOF
8225 #line 8226 "configure"
8226 #include "confdefs.h"
8229 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8230 { (eval echo configure
:8231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8231 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8232 if test -z "$ac_err"; then
8234 eval "ac_cv_header_$ac_safe=yes"
8237 echo "configure: failed program was:" >&5
8238 cat conftest.
$ac_ext >&5
8240 eval "ac_cv_header_$ac_safe=no"
8244 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8245 echo "$ac_t""yes" 1>&6
8246 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8247 cat >> confdefs.h
<<EOF
8248 #define $ac_tr_hdr 1
8252 echo "$ac_t""no" 1>&6
8253 for ac_hdr
in kerberos
/krb.h
8255 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8256 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8257 echo "configure:8258: checking for $ac_hdr" >&5
8258 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8259 echo $ac_n "(cached) $ac_c" 1>&6
8261 cat > conftest.
$ac_ext <<EOF
8262 #line 8263 "configure"
8263 #include "confdefs.h"
8266 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8267 { (eval echo configure
:8268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8268 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8269 if test -z "$ac_err"; then
8271 eval "ac_cv_header_$ac_safe=yes"
8274 echo "configure: failed program was:" >&5
8275 cat conftest.
$ac_ext >&5
8277 eval "ac_cv_header_$ac_safe=no"
8281 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8282 echo "$ac_t""yes" 1>&6
8283 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8284 cat >> confdefs.h
<<EOF
8285 #define $ac_tr_hdr 1
8289 echo "$ac_t""no" 1>&6
8300 for ac_hdr
in com_err.h
8302 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8303 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8304 echo "configure:8305: checking for $ac_hdr" >&5
8305 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8306 echo $ac_n "(cached) $ac_c" 1>&6
8308 cat > conftest.
$ac_ext <<EOF
8309 #line 8310 "configure"
8310 #include "confdefs.h"
8313 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8314 { (eval echo configure
:8315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8315 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8316 if test -z "$ac_err"; then
8318 eval "ac_cv_header_$ac_safe=yes"
8321 echo "configure: failed program was:" >&5
8322 cat conftest.
$ac_ext >&5
8324 eval "ac_cv_header_$ac_safe=no"
8328 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8329 echo "$ac_t""yes" 1>&6
8330 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8331 cat >> confdefs.h
<<EOF
8332 #define $ac_tr_hdr 1
8336 echo "$ac_t""no" 1>&6
8342 # Solaris requires -lintl if you want strerror (which calls dgettext)
8343 # to return localized messages.
8344 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
8345 echo "configure:8346: checking for dgettext in -lintl" >&5
8346 ac_lib_var
=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
8347 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8348 echo $ac_n "(cached) $ac_c" 1>&6
8350 ac_save_LIBS
="$LIBS"
8352 cat > conftest.
$ac_ext <<EOF
8353 #line 8354 "configure"
8354 #include "confdefs.h"
8355 /* Override any gcc2 internal prototype to avoid an error. */
8356 /* We use char because int might match the return type of a gcc2
8357 builtin and then its argument prototype would still apply. */
8364 if { (eval echo configure
:8365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8366 eval "ac_cv_lib_$ac_lib_var=yes"
8368 echo "configure: failed program was:" >&5
8369 cat conftest.
$ac_ext >&5
8371 eval "ac_cv_lib_$ac_lib_var=no"
8374 LIBS
="$ac_save_LIBS"
8377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8378 echo "$ac_t""yes" 1>&6
8379 ac_tr_lib
=HAVE_LIB
`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8380 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8381 cat >> confdefs.h
<<EOF
8382 #define $ac_tr_lib 1
8388 echo "$ac_t""no" 1>&6
8392 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
8393 echo "configure:8394: checking whether localtime caches TZ" >&5
8394 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
8395 echo $ac_n "(cached) $ac_c" 1>&6
8397 if test x
$ac_cv_func_tzset = xyes
; then
8398 if test "$cross_compiling" = yes; then
8399 # If we have tzset, assume the worst when cross-compiling.
8400 emacs_cv_localtime_cache
=yes
8402 cat > conftest.
$ac_ext <<EOF
8403 #line 8404 "configure"
8404 #include "confdefs.h"
8406 extern char **environ;
8410 for (to = from = environ; (*to = *from); from++)
8411 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
8414 char TZ_GMT0[] = "TZ=GMT0";
8415 char TZ_PST8[] = "TZ=PST8";
8418 time_t now = time ((time_t *) 0);
8419 int hour_GMT0, hour_unset;
8420 if (putenv (TZ_GMT0) != 0)
8422 hour_GMT0 = localtime (&now)->tm_hour;
8424 hour_unset = localtime (&now)->tm_hour;
8425 if (putenv (TZ_PST8) != 0)
8427 if (localtime (&now)->tm_hour == hour_GMT0)
8430 if (localtime (&now)->tm_hour != hour_unset)
8435 if { (eval echo configure
:8436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8437 emacs_cv_localtime_cache
=no
8439 echo "configure: failed program was:" >&5
8440 cat conftest.
$ac_ext >&5
8442 emacs_cv_localtime_cache
=yes
8448 # If we lack tzset, report that localtime does not cache TZ,
8449 # since we can't invalidate the cache if we don't have tzset.
8450 emacs_cv_localtime_cache
=no
8453 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
8454 if test $emacs_cv_localtime_cache = yes; then
8455 cat >> confdefs.h
<<\EOF
8456 #define LOCALTIME_CACHE 1
8461 if test "x$HAVE_TIMEVAL" = xyes
; then
8462 for ac_func
in gettimeofday
8464 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8465 echo "configure:8466: checking for $ac_func" >&5
8466 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8467 echo $ac_n "(cached) $ac_c" 1>&6
8469 cat > conftest.
$ac_ext <<EOF
8470 #line 8471 "configure"
8471 #include "confdefs.h"
8472 /* System header to define __stub macros and hopefully few prototypes,
8473 which can conflict with char $ac_func(); below. */
8475 /* Override any gcc2 internal prototype to avoid an error. */
8476 /* We use char because int might match the return type of a gcc2
8477 builtin and then its argument prototype would still apply. */
8482 /* The GNU C library defines this for functions which it implements
8483 to always fail with ENOSYS. Some functions are actually named
8484 something starting with __ and the normal name is an alias. */
8485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8493 if { (eval echo configure
:8494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8495 eval "ac_cv_func_$ac_func=yes"
8497 echo "configure: failed program was:" >&5
8498 cat conftest.
$ac_ext >&5
8500 eval "ac_cv_func_$ac_func=no"
8505 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8506 echo "$ac_t""yes" 1>&6
8507 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8508 cat >> confdefs.h
<<EOF
8509 #define $ac_tr_func 1
8513 echo "$ac_t""no" 1>&6
8517 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
8518 echo "configure:8519: checking whether gettimeofday can accept two arguments" >&5
8519 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
8520 echo $ac_n "(cached) $ac_c" 1>&6
8522 cat > conftest.
$ac_ext <<EOF
8523 #line 8524 "configure"
8524 #include "confdefs.h"
8526 #ifdef TIME_WITH_SYS_TIME
8527 #include <sys/time.h>
8530 #ifdef HAVE_SYS_TIME_H
8531 #include <sys/time.h>
8537 struct timeval time;
8538 gettimeofday (&time, 0);
8541 if { (eval echo configure
:8542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8543 emacs_cv_gettimeofday_two_arguments
=yes
8545 echo "configure: failed program was:" >&5
8546 cat conftest.
$ac_ext >&5
8548 emacs_cv_gettimeofday_two_arguments
=no
8553 echo "$ac_t""$emacs_cv_gettimeofday_two_arguments" 1>&6
8554 if test $emacs_cv_gettimeofday_two_arguments = no
; then
8555 cat >> confdefs.h
<<\EOF
8556 #define GETTIMEOFDAY_ONE_ARGUMENT 1
8562 if test "$ac_cv_func_gettimeofday" = yes; then
8563 echo $ac_n "checking for struct timezone""... $ac_c" 1>&6
8564 echo "configure:8565: checking for struct timezone" >&5
8565 if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then
8566 echo $ac_n "(cached) $ac_c" 1>&6
8568 cat > conftest.
$ac_ext <<EOF
8569 #line 8570 "configure"
8570 #include "confdefs.h"
8571 #include <sys/time.h>
8576 if { (eval echo configure
:8577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8578 if test "$cross_compiling" = yes; then
8579 emacs_cv_struct_timezone
=yes
8581 cat > conftest.
$ac_ext <<EOF
8582 #line 8583 "configure"
8583 #include "confdefs.h"
8585 #ifdef TIME_WITH_SYS_TIME
8586 #include <sys/time.h>
8589 #ifdef HAVE_SYS_TIME_H
8590 #include <sys/time.h>
8596 struct timeval time;
8597 struct timezone dummy;
8598 exit (gettimeofday (&time, &dummy));
8601 if { (eval echo configure
:8602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8603 emacs_cv_struct_timezone
=yes
8605 echo "configure: failed program was:" >&5
8606 cat conftest.
$ac_ext >&5
8608 emacs_cv_struct_timezone
=no
8614 echo "configure: failed program was:" >&5
8615 cat conftest.
$ac_ext >&5
8617 emacs_cv_struct_timezone
=no
8622 echo "$ac_t""$emacs_cv_struct_timezone" 1>&6
8626 echo $ac_n "checking for socket""... $ac_c" 1>&6
8627 echo "configure:8628: checking for socket" >&5
8628 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
8629 echo $ac_n "(cached) $ac_c" 1>&6
8631 cat > conftest.
$ac_ext <<EOF
8632 #line 8633 "configure"
8633 #include "confdefs.h"
8634 /* System header to define __stub macros and hopefully few prototypes,
8635 which can conflict with char socket(); below. */
8637 /* Override any gcc2 internal prototype to avoid an error. */
8638 /* We use char because int might match the return type of a gcc2
8639 builtin and then its argument prototype would still apply. */
8644 /* The GNU C library defines this for functions which it implements
8645 to always fail with ENOSYS. Some functions are actually named
8646 something starting with __ and the normal name is an alias. */
8647 #if defined (__stub_socket) || defined (__stub___socket)
8655 if { (eval echo configure
:8656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8657 eval "ac_cv_func_socket=yes"
8659 echo "configure: failed program was:" >&5
8660 cat conftest.
$ac_ext >&5
8662 eval "ac_cv_func_socket=no"
8667 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
8668 echo "$ac_t""yes" 1>&6
8671 echo "$ac_t""no" 1>&6
8675 if test $ok_so_far = yes; then
8676 ac_safe
=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
8677 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
8678 echo "configure:8679: checking for netinet/in.h" >&5
8679 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8680 echo $ac_n "(cached) $ac_c" 1>&6
8682 cat > conftest.
$ac_ext <<EOF
8683 #line 8684 "configure"
8684 #include "confdefs.h"
8685 #include <netinet/in.h>
8687 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8688 { (eval echo configure
:8689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8689 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8690 if test -z "$ac_err"; then
8692 eval "ac_cv_header_$ac_safe=yes"
8695 echo "configure: failed program was:" >&5
8696 cat conftest.
$ac_ext >&5
8698 eval "ac_cv_header_$ac_safe=no"
8702 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8703 echo "$ac_t""yes" 1>&6
8706 echo "$ac_t""no" 1>&6
8711 if test $ok_so_far = yes; then
8712 ac_safe
=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
8713 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
8714 echo "configure:8715: checking for arpa/inet.h" >&5
8715 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8716 echo $ac_n "(cached) $ac_c" 1>&6
8718 cat > conftest.
$ac_ext <<EOF
8719 #line 8720 "configure"
8720 #include "confdefs.h"
8721 #include <arpa/inet.h>
8723 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8724 { (eval echo configure
:8725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8725 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8726 if test -z "$ac_err"; then
8728 eval "ac_cv_header_$ac_safe=yes"
8731 echo "configure: failed program was:" >&5
8732 cat conftest.
$ac_ext >&5
8734 eval "ac_cv_header_$ac_safe=no"
8738 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8739 echo "$ac_t""yes" 1>&6
8742 echo "$ac_t""no" 1>&6
8747 if test $ok_so_far = yes; then
8748 cat >> confdefs.h
<<\EOF
8749 #define HAVE_INET_SOCKETS 1
8754 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
8755 cat >> confdefs.h
<<\EOF
8756 #define HAVE_AIX_SMT_EXP 1
8761 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6
8762 echo "configure:8763: checking whether system supports dynamic ptys" >&5
8763 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
8764 echo "$ac_t""yes" 1>&6
8765 cat >> confdefs.h
<<\EOF
8766 #define HAVE_DEV_PTMX 1
8770 echo "$ac_t""no" 1>&6
8773 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8774 echo "configure:8775: checking for pid_t" >&5
8775 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8776 echo $ac_n "(cached) $ac_c" 1>&6
8778 cat > conftest.
$ac_ext <<EOF
8779 #line 8780 "configure"
8780 #include "confdefs.h"
8781 #include <sys/types.h>
8787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8788 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
8790 ac_cv_type_pid_t
=yes
8798 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8799 if test $ac_cv_type_pid_t = no
; then
8800 cat >> confdefs.h
<<\EOF
8806 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
8807 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
8808 echo "configure:8809: checking for vfork.h" >&5
8809 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8810 echo $ac_n "(cached) $ac_c" 1>&6
8812 cat > conftest.
$ac_ext <<EOF
8813 #line 8814 "configure"
8814 #include "confdefs.h"
8817 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8818 { (eval echo configure
:8819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8819 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8820 if test -z "$ac_err"; then
8822 eval "ac_cv_header_$ac_safe=yes"
8825 echo "configure: failed program was:" >&5
8826 cat conftest.
$ac_ext >&5
8828 eval "ac_cv_header_$ac_safe=no"
8832 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8833 echo "$ac_t""yes" 1>&6
8834 cat >> confdefs.h
<<\EOF
8835 #define HAVE_VFORK_H 1
8839 echo "$ac_t""no" 1>&6
8842 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
8843 echo "configure:8844: checking for working vfork" >&5
8844 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
8845 echo $ac_n "(cached) $ac_c" 1>&6
8847 if test "$cross_compiling" = yes; then
8848 echo $ac_n "checking for vfork""... $ac_c" 1>&6
8849 echo "configure:8850: checking for vfork" >&5
8850 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
8851 echo $ac_n "(cached) $ac_c" 1>&6
8853 cat > conftest.
$ac_ext <<EOF
8854 #line 8855 "configure"
8855 #include "confdefs.h"
8856 /* System header to define __stub macros and hopefully few prototypes,
8857 which can conflict with char vfork(); below. */
8859 /* Override any gcc2 internal prototype to avoid an error. */
8860 /* We use char because int might match the return type of a gcc2
8861 builtin and then its argument prototype would still apply. */
8866 /* The GNU C library defines this for functions which it implements
8867 to always fail with ENOSYS. Some functions are actually named
8868 something starting with __ and the normal name is an alias. */
8869 #if defined (__stub_vfork) || defined (__stub___vfork)
8877 if { (eval echo configure
:8878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8879 eval "ac_cv_func_vfork=yes"
8881 echo "configure: failed program was:" >&5
8882 cat conftest.
$ac_ext >&5
8884 eval "ac_cv_func_vfork=no"
8889 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
8890 echo "$ac_t""yes" 1>&6
8893 echo "$ac_t""no" 1>&6
8896 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8898 cat > conftest.
$ac_ext <<EOF
8899 #line 8900 "configure"
8900 #include "confdefs.h"
8901 /* Thanks to Paul Eggert for this test. */
8903 #include <sys/types.h>
8904 #include <sys/stat.h>
8905 #ifdef HAVE_UNISTD_H
8911 /* On some sparc systems, changes by the child to local and incoming
8912 argument registers are propagated back to the parent.
8913 The compiler is told about this with #include <vfork.h>,
8914 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
8915 Test for this by using a static variable whose address
8916 is put into a register that is clobbered by the vfork. */
8919 sparc_address_test (int arg)
8921 sparc_address_test (arg) int arg;
8939 pid_t parent = getpid ();
8942 sparc_address_test ();
8947 /* Here is another test for sparc vfork register problems.
8948 This test uses lots of local variables, at least
8949 as many local variables as main has allocated so far
8950 including compiler temporaries. 4 locals are enough for
8951 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
8952 A buggy compiler should reuse the register of parent
8953 for one of the local variables, since it will think that
8954 parent can't possibly be used any more in this routine.
8955 Assigning to the local variable will thus munge parent
8956 in the parent process. */
8958 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8959 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8960 /* Convince the compiler that p..p7 are live; otherwise, it might
8961 use the same hardware register for all 8 local variables. */
8962 if (p != p1 || p != p2 || p != p3 || p != p4
8963 || p != p5 || p != p6 || p != p7)
8966 /* On some systems (e.g. IRIX 3.3),
8967 vfork doesn't separate parent from child file descriptors.
8968 If the child closes a descriptor before it execs or exits,
8969 this munges the parent's descriptor as well.
8970 Test for this by closing stdout in the child. */
8971 _exit(close(fileno(stdout)) != 0);
8976 while (wait(&status) != child)
8979 /* Was there some problem with vforking? */
8982 /* Did the child fail? (This shouldn't happen.) */
8985 /* Did the vfork/compiler bug occur? */
8986 || parent != getpid()
8988 /* Did the file descriptor bug occur? */
8989 || fstat(fileno(stdout), &st) != 0
8994 if { (eval echo configure
:8995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8996 ac_cv_func_vfork_works
=yes
8998 echo "configure: failed program was:" >&5
8999 cat conftest.
$ac_ext >&5
9001 ac_cv_func_vfork_works
=no
9008 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
9009 if test $ac_cv_func_vfork_works = no
; then
9010 cat >> confdefs.h
<<\EOF
9017 # Fixme: This should be replaced when we have autoconf 2.14.
9018 echo $ac_n "checking for size_t""... $ac_c" 1>&6
9019 echo "configure:9020: checking for size_t" >&5
9020 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9021 echo $ac_n "(cached) $ac_c" 1>&6
9023 cat > conftest.
$ac_ext <<EOF
9024 #line 9025 "configure"
9025 #include "confdefs.h"
9026 #include <sys/types.h>
9032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9033 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
9035 ac_cv_type_size_t
=yes
9038 ac_cv_type_size_t
=no
9043 echo "$ac_t""$ac_cv_type_size_t" 1>&6
9044 if test $ac_cv_type_size_t = no
; then
9045 cat >> confdefs.h
<<\EOF
9046 #define size_t unsigned
9052 # Set up the CFLAGS for real compilation, so we can substitute it.
9053 CFLAGS
="$REAL_CFLAGS"
9054 CPPFLAGS
="$REAL_CPPFLAGS"
9056 #### Find out which version of Emacs this is.
9057 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
9058 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
9059 if test x
"${version}" = x
; then
9060 { echo "configure: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." 1>&2; exit 1; }
9063 ### Specify what sort of things we'll be editing into Makefile and config.h.
9064 ### Use configuration here uncanonicalized to avoid exceeding size limits.
9096 cat >> confdefs.h
<<EOF
9097 #define EMACS_CONFIGURATION "${canonical}"
9100 cat >> confdefs.h
<<EOF
9101 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
9104 cat >> confdefs.h
<<EOF
9105 #define config_machfile "${machfile}"
9108 cat >> confdefs.h
<<EOF
9109 #define config_opsysfile "${opsysfile}"
9112 cat >> confdefs.h
<<EOF
9113 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
9116 cat >> confdefs.h
<<EOF
9117 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
9120 cat >> confdefs.h
<<EOF
9121 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
9124 cat >> confdefs.h
<<EOF
9125 #define UNEXEC_SRC ${UNEXEC_SRC}
9129 if test "${HAVE_X_WINDOWS}" = "yes" ; then
9130 cat >> confdefs.h
<<\EOF
9131 #define HAVE_X_WINDOWS 1
9135 if test "${USE_X_TOOLKIT}" != "none" ; then
9136 cat >> confdefs.h
<<\EOF
9137 #define USE_X_TOOLKIT 1
9141 if test "${HAVE_X11}" = "yes" ; then
9142 cat >> confdefs.h
<<\EOF
9147 if test "${HAVE_XFREE386}" = "yes" ; then
9148 cat >> confdefs.h
<<\EOF
9149 #define HAVE_XFREE386 1
9153 if test "${HAVE_MENUS}" = "yes" ; then
9154 cat >> confdefs.h
<<\EOF
9155 #define HAVE_MENUS 1
9159 if test "${GNU_MALLOC}" = "yes" ; then
9160 cat >> confdefs.h
<<\EOF
9161 #define GNU_MALLOC 1
9165 if test "${REL_ALLOC}" = "yes" ; then
9166 cat >> confdefs.h
<<\EOF
9172 #### Report on what we decided to do.
9174 Configured for \`${canonical}'.
9176 Where should the build process find the source code? ${srcdir}
9177 What operating system and machine description files should Emacs use?
9178 \`${opsysfile}' and \`${machfile}'
9179 What compiler should emacs be built with? ${CC} ${CFLAGS}
9180 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
9181 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
9182 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
9183 What window system should Emacs use? ${window_system}
9184 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
9186 if test -n "${x_includes}"; then
9187 echo " Where do we find X Windows header files? ${x_includes}"
9189 echo " Where do we find X Windows header files? Standard dirs"
9191 if test -n "${x_libraries}"; then
9192 echo " Where do we find X Windows libraries? ${x_libraries}"
9194 echo " Where do we find X Windows libraries? Standard dirs"
9197 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
9198 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
9199 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
9200 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
9201 echo " Does Emacs use -lungif? ${HAVE_GIF}"
9202 echo " Does Emacs use -lpng? ${HAVE_PNG}"
9203 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
9206 # Remove any trailing slashes in these variables.
9207 test "${prefix}" != NONE
&&
9208 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
9209 test "${exec_prefix}" != NONE
&&
9210 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
9212 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
9213 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
9214 ## from Makefile.c can correctly provide the arg `-traditional' to the
9217 cat > conftest.
$ac_ext <<EOF
9218 #line 9219 "configure"
9219 #include "confdefs.h"
9222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9223 egrep "yes..yes" >/dev
/null
2>&1; then
9225 CPP_NEED_TRADITIONAL
=no
9228 CPP_NEED_TRADITIONAL
=yes
9234 cat > confcache
<<\EOF
9235 # This file is a shell script that caches the results of configure
9236 # tests run on this system so they can be shared between configure
9237 # scripts and configure runs. It is not useful on other systems.
9238 # If it contains results you don't want to keep, you may remove or edit it.
9240 # By default, configure uses ./config.cache as the cache file,
9241 # creating it if it does not exist already. You can give configure
9242 # the --cache-file=FILE option to use a different cache file; that is
9243 # what configure does when it calls configure scripts in
9244 # subdirectories, so they share the cache.
9245 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9246 # config.status only pays attention to the cache file if you give it the
9247 # --recheck option to rerun configure.
9250 # The following way of writing the cache mishandles newlines in values,
9251 # but we know of no workaround that is simple, portable, and efficient.
9252 # So, don't put newlines in cache variables' values.
9253 # Ultrix sh set writes to stderr and can't be redirected directly,
9254 # and sets the high bit in the cache file unless we assign to the vars.
9256 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9258 # `set' does not quote correctly, so add quotes (double-quote substitution
9259 # turns \\\\ into \\, and sed turns \\ into \).
9261 -e "s/'/'\\\\''/g" \
9262 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9265 # `set' quotes correctly as required by POSIX, so do not add quotes.
9266 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9269 if cmp -s $cache_file confcache
; then
9272 if test -w $cache_file; then
9273 echo "updating cache $cache_file"
9274 cat confcache
> $cache_file
9276 echo "not updating unwritable cache $cache_file"
9281 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9283 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9284 # Let make expand exec_prefix.
9285 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9287 # Any assignment to VPATH causes Sun make to only execute
9288 # the first set of double-colon rules, so remove it if not needed.
9289 # If there is a colon in the path, we need to keep it.
9290 if test "x$srcdir" = x.
; then
9291 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9294 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9296 DEFS
=-DHAVE_CONFIG_H
9298 # Without the "./", some shells look in PATH for config.status.
9299 : ${CONFIG_STATUS=./config.status}
9301 echo creating
$CONFIG_STATUS
9302 rm -f $CONFIG_STATUS
9303 cat > $CONFIG_STATUS <<EOF
9305 # Generated automatically by configure.
9306 # Run this file to recreate the current configuration.
9307 # This directory was configured as follows,
9308 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9310 # $0 $ac_configure_args
9312 # Compiler output produced by configure, useful for debugging
9313 # configure, is in ./config.log if it exists.
9315 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9318 case "\$ac_option" in
9319 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9320 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9321 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9322 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9323 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9325 -help | --help | --hel | --he | --h)
9326 echo "\$ac_cs_usage"; exit 0 ;;
9327 *) echo "\$ac_cs_usage"; exit 1 ;;
9331 ac_given_srcdir=$srcdir
9332 ac_given_INSTALL="$INSTALL"
9334 trap 'rm -fr `echo "Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \
9335 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \
9336 lisp/Makefile leim/Makefile src/config.h:src/config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9338 cat >> $CONFIG_STATUS <<EOF
9340 # Protect against being on the right side of a sed subst in config.status.
9341 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9342 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9346 s%@CFLAGS@%$CFLAGS%g
9347 s%@CPPFLAGS@%$CPPFLAGS%g
9348 s%@CXXFLAGS@%$CXXFLAGS%g
9349 s%@FFLAGS@%$FFLAGS%g
9351 s%@LDFLAGS@%$LDFLAGS%g
9353 s%@exec_prefix@%$exec_prefix%g
9354 s%@prefix@%$prefix%g
9355 s%@program_transform_name@%$program_transform_name%g
9356 s%@bindir@%$bindir%g
9357 s%@sbindir@%$sbindir%g
9358 s%@libexecdir@%$libexecdir%g
9359 s%@datadir@%$datadir%g
9360 s%@sysconfdir@%$sysconfdir%g
9361 s%@sharedstatedir@%$sharedstatedir%g
9362 s%@localstatedir@%$localstatedir%g
9363 s%@libdir@%$libdir%g
9364 s%@includedir@%$includedir%g
9365 s%@oldincludedir@%$oldincludedir%g
9366 s%@infodir@%$infodir%g
9367 s%@mandir@%$mandir%g
9369 s%@host_alias@%$host_alias%g
9370 s%@host_cpu@%$host_cpu%g
9371 s%@host_vendor@%$host_vendor%g
9372 s%@host_os@%$host_os%g
9376 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9377 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9378 s%@INSTALL_DATA@%$INSTALL_DATA%g
9380 s%@RANLIB@%$RANLIB%g
9381 s%@LIBSOUND@%$LIBSOUND%g
9382 s%@SET_MAKE@%$SET_MAKE%g
9383 s%@ALLOCA@%$ALLOCA%g
9384 s%@liblockfile@%$liblockfile%g
9385 s%@LIBOBJS@%$LIBOBJS%g
9386 s%@NEED_SETGID@%$NEED_SETGID%g
9387 s%@KMEM_GROUP@%$KMEM_GROUP%g
9388 s%@version@%$version%g
9389 s%@configuration@%$configuration%g
9390 s%@canonical@%$canonical%g
9391 s%@srcdir@%$srcdir%g
9392 s%@lispdir@%$lispdir%g
9393 s%@locallisppath@%$locallisppath%g
9394 s%@lisppath@%$lisppath%g
9395 s%@x_default_search_path@%$x_default_search_path%g
9396 s%@etcdir@%$etcdir%g
9397 s%@archlibdir@%$archlibdir%g
9398 s%@docdir@%$docdir%g
9399 s%@bitmapdir@%$bitmapdir%g
9400 s%@c_switch_system@%$c_switch_system%g
9401 s%@c_switch_machine@%$c_switch_machine%g
9402 s%@LD_SWITCH_X_SITE@%$LD_SWITCH_X_SITE%g
9403 s%@LD_SWITCH_X_SITE_AUX@%$LD_SWITCH_X_SITE_AUX%g
9404 s%@C_SWITCH_X_SITE@%$C_SWITCH_X_SITE%g
9405 s%@X_TOOLKIT_TYPE@%$X_TOOLKIT_TYPE%g
9406 s%@machfile@%$machfile%g
9407 s%@opsysfile@%$opsysfile%g
9408 s%@GETLOADAVG_LIBS@%$GETLOADAVG_LIBS%g
9413 cat >> $CONFIG_STATUS <<\EOF
9415 # Split the substitutions into bite-sized pieces for seds with
9416 # small command number limits, like on Digital OSF/1 and HP-UX.
9417 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9418 ac_file
=1 # Number of current file.
9419 ac_beg
=1 # First line for current file.
9420 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9423 while $ac_more_lines; do
9424 if test $ac_beg -gt 1; then
9425 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9427 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9429 if test ! -s conftest.s
$ac_file; then
9431 rm -f conftest.s
$ac_file
9433 if test -z "$ac_sed_cmds"; then
9434 ac_sed_cmds
="sed -f conftest.s$ac_file"
9436 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9438 ac_file
=`expr $ac_file + 1`
9440 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9443 if test -z "$ac_sed_cmds"; then
9448 cat >> $CONFIG_STATUS <<EOF
9450 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \
9451 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \
9452 lisp/Makefile leim/Makefile"}
9454 cat >> $CONFIG_STATUS <<\EOF
9455 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9456 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9458 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9459 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9460 *) ac_file_in
="${ac_file}.in" ;;
9463 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9465 # Remove last slash and all that follows it. Not all systems have dirname.
9466 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9467 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9468 # The file is in a subdirectory.
9469 test ! -d "$ac_dir" && mkdir
"$ac_dir"
9470 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9471 # A "../" for each directory in $ac_dir_suffix.
9472 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9474 ac_dir_suffix
= ac_dots
=
9477 case "$ac_given_srcdir" in
9479 if test -z "$ac_dots"; then top_srcdir
=.
9480 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9481 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9483 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9484 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9487 case "$ac_given_INSTALL" in
9488 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
9489 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
9492 echo creating
"$ac_file"
9494 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9496 *Makefile
*) ac_comsub
="1i\\
9497 # $configure_input" ;;
9501 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9503 s%@configure_input@%$configure_input%g
9504 s%@srcdir@%$srcdir%g
9505 s%@top_srcdir@%$top_srcdir%g
9506 s%@INSTALL@%$INSTALL%g
9507 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9511 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9512 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9514 # ac_d sets the value in "#define NAME VALUE" lines.
9515 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9516 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9519 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9520 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9521 ac_uB
='\([ ]\)%\1#\2define\3'
9524 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9525 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9526 ac_eB
='$%\1#\2define\3'
9530 if test "${CONFIG_HEADERS+set}" != set; then
9532 cat >> $CONFIG_STATUS <<EOF
9533 CONFIG_HEADERS="src/config.h:src/config.in"
9535 cat >> $CONFIG_STATUS <<\EOF
9537 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9538 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9540 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9541 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9542 *) ac_file_in
="${ac_file}.in" ;;
9545 echo creating
$ac_file
9547 rm -f conftest.frag conftest.
in conftest.out
9548 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9549 cat $ac_file_inputs > conftest.
in
9553 # Transform confdefs.h into a sed script conftest.vals that substitutes
9554 # the proper values into config.h.in to produce config.h. And first:
9555 # Protect against being on the right side of a sed subst in config.status.
9556 # Protect against being in an unquoted here document in config.status.
9558 cat > conftest.hdr
<<\EOF
9561 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9565 sed -n -f conftest.hdr confdefs.h > conftest.vals
9568 # This sed command replaces #undef with comments. This is necessary, for
9569 # example, in the case of _POSIX_SOURCE, which is predefined and required
9570 # on some systems where configure will not decide to define it.
9571 cat >> conftest.vals <<\EOF
9572 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9575 # Break up conftest.vals because some shells have a limit on
9576 # the size of here documents, and old seds have small limits too.
9581 ac_lines=`grep -c . conftest.vals
`
9582 # grep -c gives empty output for an empty file on some AIX systems.
9583 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9584 # Write a limited-size here document to conftest.frag.
9585 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9586 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9588 sed -f conftest.frag conftest.in > conftest.out
9590 mv conftest.out conftest.in
9592 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9594 mv conftest.tail conftest.vals
9598 cat >> $CONFIG_STATUS <<\EOF
9599 rm -f conftest.frag conftest.h
9600 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9601 cat conftest.in >> conftest.h
9603 if cmp -s $ac_file conftest.h 2>/dev/null; then
9604 echo "$ac_file is unchanged"
9607 # Remove last slash and all that follows it. Not all systems have dirname.
9608 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9609 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9610 # The file is in a subdirectory.
9611 test ! -d "$ac_dir" && mkdir "$ac_dir"
9614 mv conftest.h $ac_file
9619 cat >> $CONFIG_STATUS <<EOF
9620 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
9622 cat >> $CONFIG_STATUS <<\EOF
9625 ### Make the necessary directories, if they don't exist.
9626 for dir in etc lisp ; do
9627 test -d ${dir} || mkdir ${dir}
9630 # Build src/Makefile from ${srcdir}/src/Makefile.c
9631 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
9632 # This must be done after src/config.h is built, since we rely on that file.
9634 # Now get this: Some word that is part of the ${srcdir} directory name
9635 # or the ${configuration} value might, just might, happen to be an
9636 # identifier like `sun4
' or `i386' or something
, and be predefined by
9637 # the C preprocessor to some helpful value like 1, or maybe the empty
9638 # string. Needless to say consequent macro substitutions are less
9639 # than conducive to the makefile finding the correct directory.
9640 undefs
="`echo $top_srcdir $configuration $canonical |
9641 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
9642 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
9645 echo creating src
/epaths.h
9646 ${MAKE-make} epaths-force
9648 # As of 2000-11-19, newest development versions of GNU cpp preprocess
9649 # `..' to `. .' unless invoked with -traditional
9651 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
9652 CPPFLAGS
="$CPPFLAGS -traditional"
9655 echo creating lib-src
/Makefile
9657 rm -f junk.c junk1.c junk2.c
9658 sed -e '/start of cpp stuff/q' \
9659 < Makefile.c
> junk1.c
9660 sed -e '1,/start of cpp stuff/d'\
9661 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
9662 < Makefile.c
> junk.c
9663 $CPP $undefs -I.
-I$top_srcdir/src
$CPPFLAGS junk.c | \
9664 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
9665 cat junk1.c junk2.c
> Makefile.new
9666 rm -f junk.c junk1.c junk2.c
9667 chmod 444 Makefile.new
9668 mv -f Makefile.new Makefile
9671 echo creating src
/Makefile
9673 rm -f junk.c junk1.c junk2.c
9674 sed -e '/start of cpp stuff/q' \
9675 < Makefile.c
> junk1.c
9676 sed -e '1,/start of cpp stuff/d'\
9677 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
9678 < Makefile.c
> junk.c
9679 $CPP $undefs -I.
-I$top_srcdir/src
$CPPFLAGS junk.c | \
9680 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
9681 cat junk1.c junk2.c
> Makefile.new
9682 rm -f junk.c junk1.c junk2.c
9683 chmod 444 Makefile.new
9684 mv -f Makefile.new Makefile
9687 if test ! -f src
/.gdbinit
&& test -f $top_srcdir/src
/.gdbinit
; then
9688 echo creating src
/.gdbinit
9689 echo source $top_srcdir/src
/.gdbinit
> src
/.gdbinit
9692 # This is how we know whether to re-run configure in certain cases.
9693 touch src
/config.stamp
9698 chmod +x
$CONFIG_STATUS
9699 rm -fr confdefs
* $ac_clean_files
9700 test "$no_create" = yes ||
${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS ||
exit 1