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 don't use Motif or Xaw3d scroll bars"
39 --with-x use the X Window System"
41 # Initialize some variables set by options.
42 # The variables have the same names as the options, with
43 # dashes changed to underlines.
45 cache_file
=.
/config.cache
54 program_transform_name
=s
,x
,x
,
62 bindir
='${exec_prefix}/bin'
63 sbindir
='${exec_prefix}/sbin'
64 libexecdir
='${exec_prefix}/libexec'
65 datadir
='${prefix}/share'
66 sysconfdir
='${prefix}/etc'
67 sharedstatedir
='${prefix}/com'
68 localstatedir
='${prefix}/var'
69 libdir
='${exec_prefix}/lib'
70 includedir
='${prefix}/include'
71 oldincludedir
='/usr/include'
72 infodir
='${prefix}/info'
73 mandir
='${prefix}/man'
75 # Initialize some other variables.
78 SHELL
=${CONFIG_SHELL-/bin/sh}
79 # Maximum number of lines to put in a shell here document.
86 # If the previous option needs an argument, assign it.
87 if test -n "$ac_prev"; then
88 eval "$ac_prev=\$ac_option"
94 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
98 # Accept the important Cygnus configure options, so we can diagnose typos.
102 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
104 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
105 bindir
="$ac_optarg" ;;
107 -build |
--build |
--buil |
--bui |
--bu)
109 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
110 build
="$ac_optarg" ;;
112 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
113 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
114 ac_prev
=cache_file
;;
115 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
116 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
117 cache_file
="$ac_optarg" ;;
119 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
121 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
123 datadir
="$ac_optarg" ;;
125 -disable-* |
--disable-*)
126 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
132 eval "enable_${ac_feature}=no" ;;
134 -enable-* |
--enable-*)
135 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
136 # Reject names that are not valid shell variable names.
137 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
138 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
140 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
145 eval "enable_${ac_feature}='$ac_optarg'" ;;
147 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
148 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
149 |
--exec |
--exe |
--ex)
150 ac_prev
=exec_prefix
;;
151 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
152 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
153 |
--exec=* |
--exe=* |
--ex=*)
154 exec_prefix
="$ac_optarg" ;;
156 -gas |
--gas |
--ga |
--g)
157 # Obsolete; use --with-gas.
160 -help |
--help |
--hel |
--he)
161 # Omit some internal or obsolete options to make the list less imposing.
162 # This message is too long to be a string in the A/UX 3.1 sh.
164 Usage: configure [options] [host]
165 Options: [defaults in brackets after descriptions]
167 --cache-file=FILE cache test results in FILE
168 --help print this message
169 --no-create do not create output files
170 --quiet, --silent do not print \`checking...' messages
171 --version print the version of autoconf that created configure
172 Directory and file names:
173 --prefix=PREFIX install architecture-independent files in PREFIX
175 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
177 --bindir=DIR user executables in DIR [EPREFIX/bin]
178 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
179 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
180 --datadir=DIR read-only architecture-independent data in DIR
182 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
183 --sharedstatedir=DIR modifiable architecture-independent data in DIR
185 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
186 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
187 --includedir=DIR C header files in DIR [PREFIX/include]
188 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
189 --infodir=DIR info documentation in DIR [PREFIX/info]
190 --mandir=DIR man documentation in DIR [PREFIX/man]
191 --srcdir=DIR find the sources in DIR [configure dir or ..]
192 --program-prefix=PREFIX prepend PREFIX to installed program names
193 --program-suffix=SUFFIX append SUFFIX to installed program names
194 --program-transform-name=PROGRAM
195 run sed PROGRAM on installed program names
199 --build=BUILD configure for building on BUILD [BUILD=HOST]
200 --host=HOST configure for HOST [guessed]
201 --target=TARGET configure for TARGET [TARGET=HOST]
202 Features and packages:
203 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
204 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
205 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
206 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
207 --x-includes=DIR X include files are in DIR
208 --x-libraries=DIR X library files are in DIR
210 if test -n "$ac_help"; then
211 echo "--enable and --with options recognized:$ac_help"
215 -host |
--host |
--hos |
--ho)
217 -host=* |
--host=* |
--hos=* |
--ho=*)
220 -includedir |
--includedir |
--includedi |
--included |
--include \
221 |
--includ |
--inclu |
--incl |
--inc)
222 ac_prev
=includedir
;;
223 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
224 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
225 includedir
="$ac_optarg" ;;
227 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
229 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
230 infodir
="$ac_optarg" ;;
232 -libdir |
--libdir |
--libdi |
--libd)
234 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
235 libdir
="$ac_optarg" ;;
237 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
238 |
--libexe |
--libex |
--libe)
239 ac_prev
=libexecdir
;;
240 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
241 |
--libexe=* |
--libex=* |
--libe=*)
242 libexecdir
="$ac_optarg" ;;
244 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
245 |
--localstate |
--localstat |
--localsta |
--localst \
246 |
--locals |
--local |
--loca |
--loc |
--lo)
247 ac_prev
=localstatedir
;;
248 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
249 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
250 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
251 localstatedir
="$ac_optarg" ;;
253 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
255 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
256 mandir
="$ac_optarg" ;;
259 # Obsolete; use --without-fp.
262 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
266 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
267 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
270 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
271 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
272 |
--oldin |
--oldi |
--old |
--ol |
--o)
273 ac_prev
=oldincludedir
;;
274 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
275 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
276 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
277 oldincludedir
="$ac_optarg" ;;
279 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
281 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
282 prefix
="$ac_optarg" ;;
284 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
285 |
--program-pre |
--program-pr |
--program-p)
286 ac_prev
=program_prefix
;;
287 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
288 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
289 program_prefix
="$ac_optarg" ;;
291 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
292 |
--program-suf |
--program-su |
--program-s)
293 ac_prev
=program_suffix
;;
294 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
295 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
296 program_suffix
="$ac_optarg" ;;
298 -program-transform-name |
--program-transform-name \
299 |
--program-transform-nam |
--program-transform-na \
300 |
--program-transform-n |
--program-transform- \
301 |
--program-transform |
--program-transfor \
302 |
--program-transfo |
--program-transf \
303 |
--program-trans |
--program-tran \
304 |
--progr-tra |
--program-tr |
--program-t)
305 ac_prev
=program_transform_name
;;
306 -program-transform-name=* |
--program-transform-name=* \
307 |
--program-transform-nam=* |
--program-transform-na=* \
308 |
--program-transform-n=* |
--program-transform-=* \
309 |
--program-transform=* |
--program-transfor=* \
310 |
--program-transfo=* |
--program-transf=* \
311 |
--program-trans=* |
--program-tran=* \
312 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
313 program_transform_name
="$ac_optarg" ;;
315 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
316 |
-silent |
--silent |
--silen |
--sile |
--sil)
319 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
321 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
323 sbindir
="$ac_optarg" ;;
325 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
326 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
327 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
329 ac_prev
=sharedstatedir
;;
330 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
331 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
332 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
334 sharedstatedir
="$ac_optarg" ;;
336 -site |
--site |
--sit)
338 -site=* |
--site=* |
--sit=*)
341 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
343 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
344 srcdir
="$ac_optarg" ;;
346 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
347 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
348 ac_prev
=sysconfdir
;;
349 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
350 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
351 sysconfdir
="$ac_optarg" ;;
353 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
355 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
356 target
="$ac_optarg" ;;
358 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
361 -version |
--version |
--versio |
--versi |
--vers)
362 echo "configure generated by autoconf version 2.13"
366 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371 ac_package
=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}='$ac_optarg'" ;;
378 -without-* |
--without-*)
379 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
380 # Reject names that are not valid shell variable names.
381 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
382 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
384 ac_package
=`echo $ac_package| sed 's/-/_/g'`
385 eval "with_${ac_package}=no" ;;
388 # Obsolete; use --with-x.
391 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
392 |
--x-incl |
--x-inc |
--x-in |
--x-i)
393 ac_prev
=x_includes
;;
394 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
395 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
396 x_includes
="$ac_optarg" ;;
398 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
399 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
400 ac_prev
=x_libraries
;;
401 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
402 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
403 x_libraries
="$ac_optarg" ;;
405 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
409 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
410 echo "configure: warning: $ac_option: invalid host type" 1>&2
412 if test "x$nonopt" != xNONE
; then
413 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
421 if test -n "$ac_prev"; then
422 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
425 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
427 # File descriptor usage:
430 # 2 errors and warnings
431 # 3 some systems may open it to /dev/tty
432 # 4 used on the Kubota Titan
433 # 6 checking for... messages and results
434 # 5 compiler messages saved in config.log
435 if test "$silent" = yes; then
443 This file contains any messages produced by compilers while
444 running configure, to aid debugging if configure makes a mistake.
447 # Strip out --no-create and --no-recursion so they do not pile up.
448 # Also quote any args containing shell metacharacters.
453 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
454 |
--no-cr |
--no-c) ;;
455 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
456 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
457 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
458 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
459 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
464 # Only set these to C if already set. These must not be set unconditionally
465 # because not all systems understand e.g. LANG=C (notably SCO).
466 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
467 # Non-C LC_CTYPE values break the ctype check.
468 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
469 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
470 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
471 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
473 # confdefs.h avoids OS command line length limits that DEFS can exceed.
474 rm -rf conftest
* confdefs.h
475 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
478 # A filename unique to this package, relative to the directory that
479 # configure is in, which we can look for to find out if srcdir is correct.
480 ac_unique_file
=src
/lisp.h
482 # Find the source files, if location was not specified.
483 if test -z "$srcdir"; then
484 ac_srcdir_defaulted
=yes
485 # Try the directory containing this script, then its parent.
487 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
488 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
490 if test ! -r $srcdir/$ac_unique_file; then
494 ac_srcdir_defaulted
=no
496 if test ! -r $srcdir/$ac_unique_file; then
497 if test "$ac_srcdir_defaulted" = yes; then
498 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
500 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
503 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
505 # Prefer explicitly selected file to automatically selected ones.
506 if test -z "$CONFIG_SITE"; then
507 if test "x$prefix" != xNONE
; then
508 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
510 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
513 for ac_site_file
in $CONFIG_SITE; do
514 if test -r "$ac_site_file"; then
515 echo "loading site script $ac_site_file"
520 if test -r "$cache_file"; then
521 echo "loading cache $cache_file"
524 echo "creating cache $cache_file"
529 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
530 ac_cpp
='$CPP $CPPFLAGS'
531 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
532 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
533 cross_compiling
=$ac_cv_prog_cc_cross
537 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
538 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
539 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
546 ac_n
= ac_c
='\c' ac_t
=
552 lispdir
='${datadir}/emacs/${version}/lisp'
553 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
554 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
555 lisppath
='${locallisppath}:${lispdir}'
556 etcdir
='${datadir}/emacs/${version}/etc'
557 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
558 docdir
='${datadir}/emacs/${version}/etc'
560 # Check whether --with-gcc or --without-gcc was given.
561 if test "${with_gcc+set}" = set; then
566 # Check whether --with-pop or --without-pop was given.
567 if test "${with_pop+set}" = set; then
569 if test "$withval" = yes; then
570 cat >> confdefs.h
<<\EOF
571 #define MAIL_USE_POP 1
577 cat >> confdefs.h
<<\EOF
578 #define MAIL_USE_POP 1
583 # Check whether --with-kerberos or --without-kerberos was given.
584 if test "${with_kerberos+set}" = set; then
585 withval
="$with_kerberos"
586 cat >> confdefs.h
<<\EOF
592 # Check whether --with-kerberos5 or --without-kerberos5 was given.
593 if test "${with_kerberos5+set}" = set; then
594 withval
="$with_kerberos5"
595 if test "${with_kerberos5+set}" = set; then
596 if test "${with_kerberos+set}" != set; then
598 cat >> confdefs.h
<<\EOF
604 cat >> confdefs.h
<<\EOF
610 # Check whether --with-hesiod or --without-hesiod was given.
611 if test "${with_hesiod+set}" = set; then
612 withval
="$with_hesiod"
613 cat >> confdefs.h
<<\EOF
619 # Check whether --with-x-toolkit or --without-x-toolkit was given.
620 if test "${with_x_toolkit+set}" = set; then
621 withval
="$with_x_toolkit"
623 y | ye |
yes ) val
=athena
;;
625 l | lu | luc | luci | lucid
) val
=lucid
;;
626 a |
at | ath | athe | athen | athena
) val
=athena
;;
627 m | mo | mot | moti | motif
) val
=motif
;;
629 { echo "configure: error: \`--with-x-toolkit=$withval' is invalid\;
630 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
631 Currently, \`yes', \`athena' and \`lucid' are synonyms." 1>&2; exit 1; }
638 # Check whether --with-xpm or --without-xpm was given.
639 if test "${with_xpm+set}" = set; then
644 # Check whether --with-jpeg or --without-jpeg was given.
645 if test "${with_jpeg+set}" = set; then
650 # Check whether --with-tiff or --without-tiff was given.
651 if test "${with_tiff+set}" = set; then
656 # Check whether --with-gif or --without-gif was given.
657 if test "${with_gif+set}" = set; then
662 # Check whether --with-png or --without-png was given.
663 if test "${with_png+set}" = set; then
668 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
669 if test "${with_toolkit_scroll_bars+set}" = set; then
670 withval
="$with_toolkit_scroll_bars"
675 #### Make srcdir absolute, if it isn't already. It's important to
676 #### avoid running the path through pwd unnecessary, since pwd can
677 #### give you automounter prefixes, which can go away. We do all this
678 #### so Emacs can find its files when run uninstalled.
682 ## We may be able to use the $PWD environment variable to make this
683 ## absolute. But sometimes PWD is inaccurate.
684 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
686 if test "${PWD}" != "" && test "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`" ;
690 srcdir
="`(cd ${srcdir}; pwd)`"
693 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
696 #### Check if the source directory already has a configured system in it.
697 if test `pwd` != `(cd ${srcdir} && pwd)` \
698 && test -f "${srcdir}/src/config.h" ; then
699 echo "configure: warning: The directory tree \`${srcdir}' is being used
700 as a build directory right now; it has been configured in its own
701 right. To configure in another directory as well, you MUST
702 use GNU make. If you do not have GNU make, then you must
703 now do \`make distclean' in ${srcdir},
704 and then run $0 again." 1>&2
706 extrasub
='/^VPATH[ ]*=/c\
712 vpath %.in $(srcdir)\
713 vpath %.texi $(srcdir)'
716 #### Given the configuration name, set machfile and opsysfile to the
717 #### names of the m/*.h and s/*.h files we should use.
719 ### Canonicalize the configuration name.
722 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
723 if test -f $ac_dir/install-sh
; then
725 ac_install_sh
="$ac_aux_dir/install-sh -c"
727 elif test -f $ac_dir/install.sh
; then
729 ac_install_sh
="$ac_aux_dir/install.sh -c"
733 if test -z "$ac_aux_dir"; then
734 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
736 ac_config_guess
=$ac_aux_dir/config.guess
737 ac_config_sub
=$ac_aux_dir/config.sub
738 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
741 # Make sure we can run config.sub.
742 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
743 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
746 echo $ac_n "checking host system type""... $ac_c" 1>&6
747 echo "configure:748: checking host system type" >&5
750 case "$host_alias" in
754 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
755 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
757 *) host_alias
=$nonopt ;;
761 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
762 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
763 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
764 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
765 echo "$ac_t""$host" 1>&6
768 configuration
=$host_alias
771 ### If you add support for a new configuration, add code to this
772 ### switch statement to recognize your configuration name and select
773 ### the appropriate operating system and machine description files.
775 ### You would hope that you could choose an m/*.h file pretty much
776 ### based on the machine portion of the configuration name, and an s-
777 ### file based on the operating system portion. However, it turns out
778 ### that each m/*.h file is pretty manufacturer-specific - for
779 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
780 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
781 ### machines. So we basically have to have a special case for each
782 ### configuration name.
784 ### As far as handling version numbers on operating systems is
785 ### concerned, make sure things will fail in a fixable way. If
786 ### /etc/MACHINES doesn't say anything about version numbers, be
787 ### prepared to handle anything reasonably. If version numbers
788 ### matter, be sure /etc/MACHINES says something about it.
790 ### Eric Raymond says we should accept strings like "sysvr4" to mean
791 ### "System V Release 4"; he writes, "The old convention encouraged
792 ### confusion between `system' and `release' levels'."
794 machine
='' opsys
='' unported
=no
795 case "${canonical}" in
800 case "${canonical}" in
801 alpha
*-*-netbsd*) machine
=alpha
;;
802 i
[3456]86-*-netbsd*) machine
=intel386
;;
804 # This is somewhat bogus.
805 machine
=hp9000s300
;;
806 powerpc-apple-netbsd
*) machine
=macppc
;;
807 mips-
*-netbsd*) machine
=pmax
;;
808 mipsel-
*-netbsd*) machine
=pmax
;;
809 ns32k-
*-netbsd*) machine
=ns32000
;;
810 sparc-
*-netbsd*) machine
=sparc
;;
811 vax-
*-netbsd*) machine
=vax
;;
812 arm-
*-netbsd*) machine
=arm
;;
819 case "${canonical}" in
820 alpha
*-*-openbsd*) machine
=alpha
;;
821 i386-
*-openbsd*) machine
=intel386
;;
822 m68k-
*-openbsd*) machine
=hp9000s300
;;
823 mipsel-
*-openbsd*) machine
=pmax
;;
824 ns32k-
*-openbsd*) machine
=ns32000
;;
825 sparc-
*-openbsd*) machine
=sparc
;;
826 vax-
*-openbsd*) machine
=vax
;;
831 arm-acorn-riscix1.1
* )
832 machine
=acorn opsys
=riscix1-1
834 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
835 ## This name is riscix12 instead of riscix1.2
836 ## to avoid a file name conflict on MSDOS.
837 machine
=acorn opsys
=riscix12
843 case "${canonical}" in
844 i
[345]86-*-bsdi*) machine
=intel386
;;
845 sparc-
*-bsdi*) machine
=sparc
;;
846 powerpc-
*-bsdi*) machine
=powerpc
;;
848 case "${canonical}" in
849 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
850 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
851 *-*-bsdi2* ) opsys
=bsdos2-1
;;
852 *-*-bsdi3* ) opsys
=bsdos3
;;
853 *-*-bsdi4* ) opsys
=bsdos4
;;
858 ## Strictly speaking, we need the version of the alliant operating
859 ## system to choose the right machine file, but currently the
860 ## configuration name doesn't tell us enough to choose the right
861 ## one; we need to give alliants their own operating system name to
862 ## do this right. When someone cares, they can help us.
864 machine
=alliant4 opsys
=bsd4-2
867 machine
=alliant-2800 opsys
=bsd4-3
870 ## Alpha (DEC) machines.
872 machine
=alpha opsys
=osf1
873 # This is needed to find X11R6.1 libraries for certain tests.
874 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
875 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
876 case "${canonical}" in
877 # This is necessary on 5.0 to avoid mangling src/Makefile.
878 # Separated out in case it causes problems on earlier versions.
879 alpha
*-dec-osf[5-9]*)
880 NON_GNU_CPP
='cc -E -std0' ;;
884 alpha
*-*-linux-gnu* )
885 machine
=alpha opsys
=gnu-linux
889 machine
=arm opsys
=gnu-linux
894 machine
=powerpc opsys
=gnu-linux
899 machine
=altos opsys
=usg5-2
904 machine
=amdahl opsys
=usg5-2-2
909 machine
=apollo opsys
=bsd4-3
912 ## AT&T 3b2, 3b5, 3b15, 3b20
914 machine
=att3b opsys
=usg5-2-2
917 ## AT&T 3b1 - The Mighty Unix PC!
919 machine
=7300 opsys
=usg5-2-2
924 machine
=ibmrs6000 opsys
=aix3-2
929 machine
=dpx2 opsys
=usg5-3
934 machine
=sps7 opsys
=usg5-2
937 ## CCI 5/32, 6/32 -- see "Tahoe".
940 ## I don't know what configuration name to use for this; config.sub
941 ## doesn't seem to know anything about it. Hey, Celerity users, get
943 celerity-celerity-bsd
* )
944 machine
=celerity opsys
=bsd4-2
948 ## What operating systems does this chip run that Emacs has been
952 ## We'll use the catch-all code at the bottom to guess the
957 *-convex-bsd* |
*-convex-convexos* )
958 machine
=convex opsys
=bsd4-3
959 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
960 NON_GNU_CPP
="cc -E -P"
964 i
[3456]86-cubix-sysv* )
965 machine
=intel386 opsys
=usg5-3
969 cydra
*-cydrome-sysv* )
970 machine
=cydra5 opsys
=usg5-3
973 ## Data General AViiON Machines
974 ## DG changed naming conventions with the release of 5.4.4.10, they
975 ## dropped the initial 5.4 but left the intervening R. Because of the
976 ## R this shouldn't conflict with older versions of the OS (which I
977 ## think were named like dgux4.*). In addition, DG new AViiONs series
978 ## uses either Motorola M88k or Intel Pentium CPUs.
979 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
980 machine
=aviion opsys
=dgux4
982 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
983 ## This name is dgux5-4-3 instead of dgux5-4r3
984 ## to avoid a file name conflict on MSDOS.
985 machine
=aviion opsys
=dgux5-4-3
987 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
988 machine
=aviion opsys
=dgux5-4r2
991 machine
=aviion opsys
=dgux
994 ## Data General AViiON Intel (x86) Machines
995 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
996 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
997 i
[345]86-dg-dguxR4* )
998 machine
=aviion-intel opsys
=dgux4
1002 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1003 machine
=pmax opsys
=bsd4-2
1005 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1006 machine
=pmax opsys
=bsd4-3
1009 machine
=pmax opsys
=ultrix4-3
1012 machine
=pmax opsys
=osf1
1014 mips-dec-mach_bsd4.3
* )
1015 machine
=pmax opsys
=mach-bsd4-3
1018 ## Motorola Delta machines
1019 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1020 machine
=delta opsys
=usg5-3
1021 if test -z "`type gnucc | grep 'not found'`"
1023 if test -s /etc
/167config
1024 then CC
="gnucc -m68040"
1025 else CC
="gnucc -m68881"
1028 if test -z "`type gcc | grep 'not found'`"
1034 m88k-motorola-sysv4
* )
1035 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1036 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1037 # I hope there are not other 4.0 versions for this machine
1038 # which really need usg5-4 instead.
1039 machine
=delta88k opsys
=usg5-4-2
1041 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1042 machine
=delta88k opsys
=usg5-3
1047 machine
=dual opsys
=usg5-2
1049 m68
*-dual-uniplus* )
1050 machine
=dual opsys
=unipl5-2
1055 machine
=elxsi opsys
=usg5-2
1060 machine
=ns16000 opsys
=umax
1063 ## The GEC 93 - apparently, this port isn't really finished yet.
1065 ## Gould Power Node and NP1
1067 machine
=gould opsys
=bsd4-2
1070 machine
=gould opsys
=bsd4-3
1073 machine
=gould-np1 opsys
=bsd4-3
1076 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1077 ## as far as Emacs is concerned).
1079 # Build needs to be different on 7.0 and later releases
1080 case "`uname -r`" in
1081 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1082 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1084 NON_GNU_CPP
="/lib/cpp"
1086 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1088 machine
=nh3000 opsys
=cxux
1090 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1091 powerpc-harris-powerunix
)
1092 machine
=nh6000 opsys
=powerunix
1093 NON_GNU_CPP
="cc -Xo -E -P"
1095 ## SR2001/SR2201 running HI-UX/MPP
1096 hppa1.1
-hitachi-hiuxmpp* )
1097 machine
=sr2k opsys
=hiuxmpp
1100 xps
*-honeywell-sysv* )
1101 machine
=xps100 opsys
=usg5-2
1104 ## HP 9000 series 200 or 300
1106 machine
=hp9000s300 opsys
=bsd4-3
1108 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1110 case "`uname -r`" in
1111 ## Someone's system reports A.B8.05 for this.
1112 ## I wonder what other possibilities there are.
1113 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1114 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1115 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1116 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
1117 *) machine
=hp9000s300 opsys
=hpux
;;
1121 ## HP 9000 series 700 and 800, running HP/UX
1123 machine
=hp800 opsys
=hpux
1126 machine
=hp800 opsys
=hpux8
1128 hppa
*-hp-hpux9shr* )
1129 machine
=hp800 opsys
=hpux9shr
1132 machine
=hp800 opsys
=hpux9
1134 hppa
*-hp-hpux1[0-9]* )
1135 machine
=hp800 opsys
=hpux10
1138 ## HP 9000 series 700 and 800, running HP/UX
1140 ## Cross-compilation? Nah!
1141 case "`uname -r`" in
1142 ## Someone's system reports A.B8.05 for this.
1143 ## I wonder what other possibilities there are.
1144 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
1145 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
1146 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
1147 *) machine
=hp800 opsys
=hpux10
;;
1151 machine
=hp800 opsys
=nextstep
1156 machine
=orion opsys
=bsd4-2
1158 clipper-orion-bsd
* )
1159 machine
=orion105 opsys
=bsd4-2
1163 i
[3456]86-ibm-aix1.1
* )
1164 machine
=ibmps2-aix opsys
=usg5-2-2
1166 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
1167 machine
=ibmps2-aix opsys
=usg5-3
1170 machine
=ibm370aix opsys
=usg5-3
1172 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
1173 machine
=ibmrs6000 opsys
=aix3-1
1175 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
1176 machine
=ibmrs6000 opsys
=aix3-2-5
1178 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
1179 machine
=ibmrs6000 opsys
=aix4-1
1181 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
1182 machine
=ibmrs6000 opsys
=aix4-2
1184 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
1185 machine
=ibmrs6000 opsys
=aix4
1187 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
1188 machine
=ibmrs6000 opsys
=aix4-1
1190 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
1191 machine
=ibmrs6000 opsys
=aix3-2
1194 machine
=ibmrt opsys
=bsd4-3
1197 machine
=ibmrt opsys
=bsd4-2
1200 machine
=ibmrt opsys
=bsd4-3
1203 machine
=ibmrt opsys
=bsd4-2
1206 machine
=ibmrt opsys
=bsd4-3
1209 machine
=ibmrt opsys
=bsd4-3
1212 machine
=ibmrt-aix opsys
=usg5-2-2
1215 ## Integrated Solutions `Optimum V'
1217 machine
=isi-ov opsys
=bsd4-2
1220 machine
=isi-ov opsys
=bsd4-3
1223 ## Intel 386 machines where we do care about the manufacturer
1224 i
[3456]86-intsys-sysv* )
1225 machine
=is386 opsys
=usg5-2-2
1229 i
[3456]86-prime-sysv* )
1230 machine
=i386 opsys
=usg5-3
1233 ## Sequent Symmetry running Dynix
1234 i
[3456]86-sequent-bsd* )
1235 machine
=symmetry opsys
=bsd4-3
1238 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
1239 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
1240 machine
=sequent-ptx opsys
=ptx4
1241 NON_GNU_CPP
=/lib
/cpp
1244 ## Sequent Symmetry running DYNIX/ptx
1245 ## Use the old cpp rather than the newer ANSI one.
1246 i
[3456]86-sequent-ptx* )
1247 machine
=sequent-ptx opsys
=ptx
1248 NON_GNU_CPP
="/lib/cpp"
1251 ## ncr machine running svr4.3.
1252 i
[3456]86-ncr-sysv4.3
)
1253 machine
=ncr386 opsys
=usg5-4-3
1256 ## Unspecified sysv on an ncr machine defaults to svr4.2.
1257 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
1258 i
[3456]86-ncr-sysv* )
1259 machine
=ncr386 opsys
=usg5-4-2
1262 ## Intel Paragon OSF/1
1264 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
1269 machine
=i860 opsys
=usg5-4
1270 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
1271 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
1274 ## Masscomp machines
1275 m68
*-masscomp-rtu* )
1276 machine
=masscomp opsys
=rtu
1279 ## Megatest machines
1280 m68
*-megatest-bsd* )
1281 machine
=mega68 opsys
=bsd4-2
1284 ## Workstations sold by MIPS
1285 ## This is not necessarily all workstations using the MIPS processor -
1286 ## Irises are produced by SGI, and DECstations by DEC.
1288 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
1289 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
1290 ## it gives for choosing between the alternatives seems to be "Use
1291 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
1292 ## the BSD world." I'll assume that these are instructions for
1293 ## handling two odd situations, and that every other situation
1294 ## should use mips.h and usg5-2-2, they being listed first.
1297 ## Fall through to the general code at the bottom to decide on the OS.
1299 mips-mips-riscos4
* )
1300 machine
=mips4 opsys
=bsd4-3
1301 NON_GNU_CC
="cc -systype bsd43"
1302 NON_GNU_CPP
="cc -systype bsd43 -E"
1304 mips-mips-riscos5
* )
1305 machine
=mips4 opsys
=riscos5
1306 NON_GNU_CC
="cc -systype bsd43"
1307 NON_GNU_CPP
="cc -systype bsd43 -E"
1310 machine
=mips opsys
=bsd4-3
1313 machine
=mips opsys
=usg5-2-2
1317 m68
*-next-* | m68k-
*-nextstep* )
1318 machine
=m68k opsys
=nextstep
1321 ## The complete machine from National Semiconductor
1323 machine
=ns32000 opsys
=usg5-2
1327 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
1328 machine
=tower32 opsys
=usg5-2-2
1330 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
1331 machine
=tower32v3 opsys
=usg5-3
1336 machine
=ews4800 opsys
=ux4800
1339 ## Nixdorf Targon 31
1340 m68
*-nixdorf-sysv* )
1341 machine
=targon31 opsys
=usg5-2-2
1346 machine
=nu opsys
=usg5-2
1351 machine
=plexus opsys
=usg5-2
1354 ## PowerPC reference platform
1355 powerpcle-
*-solaris2* )
1361 ## I don't really have any idea what sort of processor the Pyramid has,
1362 ## so I'm assuming it is its own architecture.
1363 pyramid-pyramid-bsd
* )
1364 machine
=pyramid opsys
=bsd4-2
1368 ns32k-sequent-bsd4.2
* )
1369 machine
=sequent opsys
=bsd4-2
1371 ns32k-sequent-bsd4.3
* )
1372 machine
=sequent opsys
=bsd4-3
1376 mips-siemens-sysv
* | mips-sni-sysv
*)
1377 machine
=mips-siemens opsys
=usg5-4
1378 NON_GNU_CC
=/usr
/ccs
/bin
/cc
1379 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1382 ## Silicon Graphics machines
1383 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
1385 machine
=irist opsys
=iris3-5
1387 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
1388 machine
=irist opsys
=iris3-6
1392 machine
=iris4d opsys
=irix3-3
1395 machine
=iris4d opsys
=irix4-0
1398 machine
=iris4d opsys
=irix6-5
1399 # Without defining _LANGUAGE_C, things get masked out in the headers
1400 # so that, for instance, grepping for `free' in stdlib.h fails and
1401 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
1402 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
1403 NON_GCC_TEST_OPTIONS
="-n32 -D_LANGUAGE_C"
1406 machine
=iris4d opsys
=irix6-0
1407 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
1408 # but presumably it does no harm.
1409 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
1410 NON_GCC_TEST_OPTIONS
=-32
1412 mips-sgi-irix5.
[01]* )
1413 machine
=iris4d opsys
=irix5-0
1415 mips-sgi-irix5
* | mips-sgi-irix
* )
1416 machine
=iris4d opsys
=irix5-2
1421 machine
=news opsys
=bsd4-2
1424 machine
=news opsys
=bsd4-3
1426 m68
*-sony-newsos3* | m68
*-sony-news3*)
1427 machine
=news opsys
=bsd4-3
1429 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
1430 machine
=news-risc opsys
=bsd4-3
1432 mips-sony-newsos6
* )
1433 machine
=news-r6 opsys
=newsos6
1436 machine
=news-risc opsys
=newsos5
1441 machine
=stride opsys
=usg5-2
1445 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
1446 machine
=sparc opsys
=gnu-linux
1449 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
1450 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
1451 | rs6000-
*-solaris2*)
1452 case "${canonical}" in
1453 m68
*-sunos1* ) machine
=sun1
;;
1454 m68
*-sunos2* ) machine
=sun2
;;
1455 m68
* ) machine
=sun3
;;
1456 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
1457 i
[3456]86-*-* ) machine
=intel386
;;
1458 powerpcle
* ) machine
=powerpcle
;;
1459 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
1460 sparc
* ) machine
=sparc
;;
1463 case "${canonical}" in
1464 ## The Sun386 didn't get past 4.0.
1465 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
1466 *-sunos4.0
* ) opsys
=sunos4-0
;;
1467 *-sunos4.1.
[3-9]*noshare
)
1468 ## This name is sunos413 instead of sunos4-1-3
1469 ## to avoid a file name conflict on MSDOS.
1471 NON_GNU_CPP
=/usr
/lib
/cpp
1472 NON_GCC_TEST_OPTIONS
=-Bstatic
1473 GCC_TEST_OPTIONS
=-static
1475 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
1477 NON_GNU_CPP
=/usr
/lib
/cpp
1479 *-sunos4* |
*-sunos )
1481 NON_GCC_TEST_OPTIONS
=-Bstatic
1482 GCC_TEST_OPTIONS
=-static
1484 *-sunos5.3
* |
*-solaris2.3
* )
1486 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1488 *-sunos5.4
* |
*-solaris2.4
* )
1490 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1493 *-sunos5.5
* |
*-solaris2.5
* )
1495 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1498 *-sunos5* |
*-solaris* )
1500 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1504 ## Watch out for a compiler that we know will not work.
1505 case "${canonical}" in
1506 *-solaris* |
*-sunos5* )
1507 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
1508 ## /usr/ucb/cc doesn't work;
1509 ## we should find some other compiler that does work.
1517 machine
=sparc opsys
=nextstep
1521 m68
*-tadpole-sysv* )
1522 machine
=tad68k opsys
=usg5-3
1526 tahoe-tahoe-bsd4.2
* )
1527 machine
=tahoe opsys
=bsd4-2
1529 tahoe-tahoe-bsd4.3
* )
1530 machine
=tahoe opsys
=bsd4-3
1533 ## Tandem Integrity S2
1535 machine
=tandem-s2 opsys
=usg5-3
1539 m88k-tektronix-sysv3
* )
1540 machine
=tekxd88 opsys
=usg5-3
1543 ## Tektronix 16000 box (6130?)
1544 ns16k-tektronix-bsd
* )
1545 machine
=ns16000 opsys
=bsd4-2
1548 ## src/m/tek4300.h hints that this is a m68k machine.
1549 m68
*-tektronix-bsd* )
1550 machine
=tek4300 opsys
=bsd4-3
1554 ## We seem to have lost the machine-description file titan.h!
1556 machine
=titan opsys
=usg5-3
1559 ## Ustation E30 (SS5E)
1560 m68
*-unisys-uniplus* )
1561 machine
=ustation opsystem
=unipl5-2
1567 case "${canonical}" in
1568 *-bsd4.1
* ) opsys
=bsd4-1
;;
1569 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
1570 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
1571 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
1572 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
1573 *-vms* ) opsys
=vms
;;
1579 ns16k-whitechapel-
* )
1581 ## We don't know what sort of OS runs on these; we'll let the
1582 ## operating system guessing code below try.
1587 machine
=wicat opsys
=usg5-2
1590 ## Intel 386 machines where we don't care about the manufacturer
1593 case "${canonical}" in
1594 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
1595 *-isc2.2
* ) opsys
=isc2-2
;;
1596 *-isc4.0
* ) opsys
=isc4-0
;;
1597 *-isc4.
* ) opsys
=isc4-1
1598 GCC_TEST_OPTIONS
=-posix
1599 NON_GCC_TEST_OPTIONS
=-Xp
1601 *-isc* ) opsys
=isc3-0
;;
1602 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
1603 *-esix* ) opsys
=esix
;;
1604 *-xenix* ) opsys
=xenix
;;
1605 *-linux-gnu* ) opsys
=gnu-linux
;;
1606 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
1607 *-sco3.2v5
* ) opsys
=sco5
1608 NON_GNU_CPP
=/lib
/cpp
1609 # Prevent -belf from being passed to $CPP.
1610 # /lib/cpp does not accept it.
1611 OVERRIDE_CPPFLAGS
=" "
1613 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
1614 *-386bsd* ) opsys
=386bsd
;;
1615 *-freebsd* ) opsys
=freebsd
;;
1616 *-nextstep* ) opsys
=nextstep
;;
1617 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
1621 ## m68k Linux-based GNU system
1623 machine
=m68k opsys
=gnu-linux
1626 ## Mips Linux-based GNU system
1628 machine
=mips opsys
=gnu-linux
1632 sparc-fujitsu-sysv4
* )
1633 machine
=sparc opsys
=uxpds
1634 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1639 f301-fujitsu-uxpv4.1
)
1640 machine
=f301 opsys
=uxpv
1648 ### If the code above didn't choose an operating system, just choose
1649 ### an operating system based on the configuration name. You really
1650 ### only want to use this when you have no idea what the right
1651 ### operating system is; if you know what operating systems a machine
1652 ### runs, it's cleaner to make it explicit in the case statement
1654 if test x
"${opsys}" = x
; then
1655 case "${canonical}" in
1656 *-gnu* ) opsys
=gnu
;;
1657 *-bsd4.
[01] ) opsys
=bsd4-1
;;
1658 *-bsd4.2
) opsys
=bsd4-2
;;
1659 *-bsd4.3
) opsys
=bsd4-3
;;
1660 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
1661 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
1662 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
1663 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
1664 *-sysv4.2uw
* ) opsys
=unixware
;;
1665 *-sysv4.1
* |
*-sysvr4.1
* )
1666 NON_GNU_CPP
=/usr
/lib
/cpp
1668 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
1669 if [ x
$NON_GNU_CPP = x
]; then
1670 if [ -f /usr
/ccs
/lib
/cpp
]; then
1671 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1673 NON_GNU_CPP
=/lib
/cpp
1677 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
1685 if test $unported = yes; then
1686 { echo "configure: error: Emacs hasn't been ported to \`${canonical}' systems.
1687 Check \`etc/MACHINES' for recognized configuration names." 1>&2; exit 1; }
1690 machfile
="m/${machine}.h"
1691 opsysfile
="s/${opsys}.h"
1694 #### Choose a compiler.
1695 test -n "$CC" && cc_specified
=yes
1697 # Save the value of CFLAGS that the user specified.
1698 SPECIFIED_CFLAGS
="$CFLAGS"
1701 "yes" ) CC
="gcc" GCC
=yes ;;
1702 "no" ) : ${CC=cc} ;;
1703 * ) # Extract the first word of "gcc", so it can be a program name with args.
1704 set dummy gcc
; ac_word
=$2
1705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1706 echo "configure:1707: checking for $ac_word" >&5
1707 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1708 echo $ac_n "(cached) $ac_c" 1>&6
1710 if test -n "$CC"; then
1711 ac_cv_prog_CC
="$CC" # Let the user override the test.
1713 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1715 for ac_dir
in $ac_dummy; do
1716 test -z "$ac_dir" && ac_dir
=.
1717 if test -f $ac_dir/$ac_word; then
1726 if test -n "$CC"; then
1727 echo "$ac_t""$CC" 1>&6
1729 echo "$ac_t""no" 1>&6
1732 if test -z "$CC"; then
1733 # Extract the first word of "cc", so it can be a program name with args.
1734 set dummy cc
; ac_word
=$2
1735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1736 echo "configure:1737: checking for $ac_word" >&5
1737 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1740 if test -n "$CC"; then
1741 ac_cv_prog_CC
="$CC" # Let the user override the test.
1743 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1746 for ac_dir
in $ac_dummy; do
1747 test -z "$ac_dir" && ac_dir
=.
1748 if test -f $ac_dir/$ac_word; then
1749 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1750 ac_prog_rejected
=yes
1758 if test $ac_prog_rejected = yes; then
1759 # We found a bogon in the path, so make sure we never use it.
1760 set dummy
$ac_cv_prog_CC
1762 if test $# -gt 0; then
1763 # We chose a different compiler from the bogus one.
1764 # However, it has the same basename, so the bogon will be chosen
1765 # first if we set CC to just the basename; use the full file name.
1767 set dummy
"$ac_dir/$ac_word" "$@"
1775 if test -n "$CC"; then
1776 echo "$ac_t""$CC" 1>&6
1778 echo "$ac_t""no" 1>&6
1781 if test -z "$CC"; then
1782 case "`uname -s`" in
1784 # Extract the first word of "cl", so it can be a program name with args.
1785 set dummy cl
; ac_word
=$2
1786 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1787 echo "configure:1788: checking for $ac_word" >&5
1788 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1791 if test -n "$CC"; then
1792 ac_cv_prog_CC
="$CC" # Let the user override the test.
1794 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1796 for ac_dir
in $ac_dummy; do
1797 test -z "$ac_dir" && ac_dir
=.
1798 if test -f $ac_dir/$ac_word; then
1807 if test -n "$CC"; then
1808 echo "$ac_t""$CC" 1>&6
1810 echo "$ac_t""no" 1>&6
1815 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1818 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1819 echo "configure:1820: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1822 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1823 ac_cpp
='$CPP $CPPFLAGS'
1824 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1825 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1826 cross_compiling
=$ac_cv_prog_cc_cross
1828 cat > conftest.
$ac_ext << EOF
1830 #line 1831 "configure"
1831 #include "confdefs.h"
1835 if { (eval echo configure
:1836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1836 ac_cv_prog_cc_works
=yes
1837 # If we can't run a trivial program, we are probably using a cross compiler.
1838 if (.
/conftest
; exit) 2>/dev
/null
; then
1839 ac_cv_prog_cc_cross
=no
1841 ac_cv_prog_cc_cross
=yes
1844 echo "configure: failed program was:" >&5
1845 cat conftest.
$ac_ext >&5
1846 ac_cv_prog_cc_works
=no
1850 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1851 ac_cpp
='$CPP $CPPFLAGS'
1852 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1853 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1854 cross_compiling
=$ac_cv_prog_cc_cross
1856 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1857 if test $ac_cv_prog_cc_works = no
; then
1858 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1860 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1861 echo "configure:1862: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1862 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1863 cross_compiling
=$ac_cv_prog_cc_cross
1865 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1866 echo "configure:1867: checking whether we are using GNU C" >&5
1867 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1868 echo $ac_n "(cached) $ac_c" 1>&6
1870 cat > conftest.c
<<EOF
1875 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1882 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1884 if test $ac_cv_prog_gcc = yes; then
1890 ac_test_CFLAGS
="${CFLAGS+set}"
1891 ac_save_CFLAGS
="$CFLAGS"
1893 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1894 echo "configure:1895: checking whether ${CC-cc} accepts -g" >&5
1895 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1898 echo 'void f(){}' > conftest.c
1899 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1908 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1909 if test "$ac_test_CFLAGS" = set; then
1910 CFLAGS
="$ac_save_CFLAGS"
1911 elif test $ac_cv_prog_cc_g = yes; then
1912 if test "$GCC" = yes; then
1918 if test "$GCC" = yes; then
1927 # On Suns, sometimes $CPP names a directory.
1928 if test -n "$CPP" && test -d "$CPP"; then
1932 #### Some systems specify a CPP to use unless we are using GCC.
1933 #### Now that we know whether we are using GCC, we can decide whether
1934 #### to use that one.
1935 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
1940 #### Some systems specify a CC to use unless we are using GCC.
1941 #### Now that we know whether we are using GCC, we can decide whether
1942 #### to use that one.
1943 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
1944 test x
$cc_specified != xyes
1949 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
1951 CC
="$CC $GCC_TEST_OPTIONS"
1954 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
1956 CC
="$CC $NON_GCC_TEST_OPTIONS"
1959 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
1961 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
1964 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
1966 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
1969 #### Some other nice autoconf tests. If you add a test here which
1970 #### should make an entry in src/config.h, don't forget to add an
1971 #### #undef clause to src/config.h.in for autoconf to modify.
1973 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1974 echo "configure:1975: checking whether ln -s works" >&5
1975 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1976 echo $ac_n "(cached) $ac_c" 1>&6
1979 if ln -s X conftestdata
2>/dev
/null
1982 ac_cv_prog_LN_S
="ln -s"
1987 LN_S
="$ac_cv_prog_LN_S"
1988 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1989 echo "$ac_t""yes" 1>&6
1991 echo "$ac_t""no" 1>&6
1994 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1995 echo "configure:1996: checking how to run the C preprocessor" >&5
1996 # On Suns, sometimes $CPP names a directory.
1997 if test -n "$CPP" && test -d "$CPP"; then
2000 if test -z "$CPP"; then
2001 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2002 echo $ac_n "(cached) $ac_c" 1>&6
2004 # This must be in double quotes, not single quotes, because CPP may get
2005 # substituted into the Makefile and "${CC-cc}" will confuse make.
2007 # On the NeXT, cc -E runs the code through the compiler's parser,
2008 # not just through cpp.
2009 cat > conftest.
$ac_ext <<EOF
2010 #line 2011 "configure"
2011 #include "confdefs.h"
2015 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2016 { (eval echo configure
:2017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2017 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2018 if test -z "$ac_err"; then
2022 echo "configure: failed program was:" >&5
2023 cat conftest.
$ac_ext >&5
2025 CPP
="${CC-cc} -E -traditional-cpp"
2026 cat > conftest.
$ac_ext <<EOF
2027 #line 2028 "configure"
2028 #include "confdefs.h"
2032 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2033 { (eval echo configure
:2034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2034 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2035 if test -z "$ac_err"; then
2039 echo "configure: failed program was:" >&5
2040 cat conftest.
$ac_ext >&5
2042 CPP
="${CC-cc} -nologo -E"
2043 cat > conftest.
$ac_ext <<EOF
2044 #line 2045 "configure"
2045 #include "confdefs.h"
2049 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2050 { (eval echo configure
:2051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2051 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2052 if test -z "$ac_err"; then
2056 echo "configure: failed program was:" >&5
2057 cat conftest.
$ac_ext >&5
2066 ac_cv_prog_CPP
="$CPP"
2068 CPP
="$ac_cv_prog_CPP"
2070 ac_cv_prog_CPP
="$CPP"
2072 echo "$ac_t""$CPP" 1>&6
2074 # Find a good install program. We prefer a C program (faster),
2075 # so one script is as good as another. But avoid the broken or
2076 # incompatible versions:
2077 # SysV /etc/install, /usr/sbin/install
2078 # SunOS /usr/etc/install
2079 # IRIX /sbin/install
2081 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2082 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2083 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2084 # ./install, which can be erroneously created by make from ./install.sh.
2085 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2086 echo "configure:2087: checking for a BSD compatible install" >&5
2087 if test -z "$INSTALL"; then
2088 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2089 echo $ac_n "(cached) $ac_c" 1>&6
2091 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2092 for ac_dir
in $PATH; do
2093 # Account for people who put trailing slashes in PATH elements.
2095 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2097 # OSF1 and SCO ODT 3.0 have their own names for install.
2098 # Don't use installbsd from OSF since it installs stuff as root
2100 for ac_prog
in ginstall scoinst
install; do
2101 if test -f $ac_dir/$ac_prog; then
2102 if test $ac_prog = install &&
2103 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2104 # AIX install. It has an incompatible calling convention.
2107 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2118 if test "${ac_cv_path_install+set}" = set; then
2119 INSTALL
="$ac_cv_path_install"
2121 # As a last resort, use the slow shell script. We don't cache a
2122 # path for INSTALL within a source directory, because that will
2123 # break other packages using the cache if that directory is
2124 # removed, or if the path is relative.
2125 INSTALL
="$ac_install_sh"
2128 echo "$ac_t""$INSTALL" 1>&6
2130 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2131 # It thinks the first close brace ends the variable substitution.
2132 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2134 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2136 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2138 for ac_prog
in 'bison -y' byacc
2140 # Extract the first word of "$ac_prog", so it can be a program name with args.
2141 set dummy
$ac_prog; ac_word
=$2
2142 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2143 echo "configure:2144: checking for $ac_word" >&5
2144 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2145 echo $ac_n "(cached) $ac_c" 1>&6
2147 if test -n "$YACC"; then
2148 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2150 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2152 for ac_dir
in $ac_dummy; do
2153 test -z "$ac_dir" && ac_dir
=.
2154 if test -f $ac_dir/$ac_word; then
2155 ac_cv_prog_YACC
="$ac_prog"
2162 YACC
="$ac_cv_prog_YACC"
2163 if test -n "$YACC"; then
2164 echo "$ac_t""$YACC" 1>&6
2166 echo "$ac_t""no" 1>&6
2169 test -n "$YACC" && break
2171 test -n "$YACC" || YACC
="yacc"
2173 if test "x$RANLIB" = x
; then
2174 # Extract the first word of "ranlib", so it can be a program name with args.
2175 set dummy ranlib
; ac_word
=$2
2176 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2177 echo "configure:2178: checking for $ac_word" >&5
2178 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2179 echo $ac_n "(cached) $ac_c" 1>&6
2181 if test -n "$RANLIB"; then
2182 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2184 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2186 for ac_dir
in $ac_dummy; do
2187 test -z "$ac_dir" && ac_dir
=.
2188 if test -f $ac_dir/$ac_word; then
2189 ac_cv_prog_RANLIB
="ranlib"
2194 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2197 RANLIB
="$ac_cv_prog_RANLIB"
2198 if test -n "$RANLIB"; then
2199 echo "$ac_t""$RANLIB" 1>&6
2201 echo "$ac_t""no" 1>&6
2206 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2207 echo "configure:2208: checking for AIX" >&5
2208 cat > conftest.
$ac_ext <<EOF
2209 #line 2210 "configure"
2210 #include "confdefs.h"
2216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2217 egrep "yes" >/dev
/null
2>&1; then
2219 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
2220 #define _ALL_SOURCE 1
2225 echo "$ac_t""no" 1>&6
2231 # Sound support for GNU/Linux and the free BSDs.
2232 for ac_hdr
in machine
/soundcard.h sys
/soundcard.h
2234 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2235 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2236 echo "configure:2237: checking for $ac_hdr" >&5
2237 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2238 echo $ac_n "(cached) $ac_c" 1>&6
2240 cat > conftest.
$ac_ext <<EOF
2241 #line 2242 "configure"
2242 #include "confdefs.h"
2245 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2246 { (eval echo configure
:2247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2247 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2248 if test -z "$ac_err"; then
2250 eval "ac_cv_header_$ac_safe=yes"
2253 echo "configure: failed program was:" >&5
2254 cat conftest.
$ac_ext >&5
2256 eval "ac_cv_header_$ac_safe=no"
2260 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2261 echo "$ac_t""yes" 1>&6
2262 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2263 cat >> confdefs.h
<<EOF
2264 #define $ac_tr_hdr 1
2268 echo "$ac_t""no" 1>&6
2273 for ac_hdr
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
2274 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
2275 termcap.h stdio_ext.h
2277 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2278 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2279 echo "configure:2280: checking for $ac_hdr" >&5
2280 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2281 echo $ac_n "(cached) $ac_c" 1>&6
2283 cat > conftest.
$ac_ext <<EOF
2284 #line 2285 "configure"
2285 #include "confdefs.h"
2288 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2289 { (eval echo configure
:2290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2290 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2291 if test -z "$ac_err"; then
2293 eval "ac_cv_header_$ac_safe=yes"
2296 echo "configure: failed program was:" >&5
2297 cat conftest.
$ac_ext >&5
2299 eval "ac_cv_header_$ac_safe=no"
2303 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2304 echo "$ac_t""yes" 1>&6
2305 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2306 cat >> confdefs.h
<<EOF
2307 #define $ac_tr_hdr 1
2311 echo "$ac_t""no" 1>&6
2315 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2316 echo "configure:2317: checking for ANSI C header files" >&5
2317 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2320 cat > conftest.
$ac_ext <<EOF
2321 #line 2322 "configure"
2322 #include "confdefs.h"
2328 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2329 { (eval echo configure
:2330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2330 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2331 if test -z "$ac_err"; then
2333 ac_cv_header_stdc
=yes
2336 echo "configure: failed program was:" >&5
2337 cat conftest.
$ac_ext >&5
2339 ac_cv_header_stdc
=no
2343 if test $ac_cv_header_stdc = yes; then
2344 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2345 cat > conftest.
$ac_ext <<EOF
2346 #line 2347 "configure"
2347 #include "confdefs.h"
2350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2351 egrep "memchr" >/dev
/null
2>&1; then
2355 ac_cv_header_stdc
=no
2361 if test $ac_cv_header_stdc = yes; then
2362 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2363 cat > conftest.
$ac_ext <<EOF
2364 #line 2365 "configure"
2365 #include "confdefs.h"
2368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2369 egrep "free" >/dev
/null
2>&1; then
2373 ac_cv_header_stdc
=no
2379 if test $ac_cv_header_stdc = yes; then
2380 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2381 if test "$cross_compiling" = yes; then
2384 cat > conftest.
$ac_ext <<EOF
2385 #line 2386 "configure"
2386 #include "confdefs.h"
2388 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2389 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2390 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2391 int main () { int i; for (i = 0; i < 256; i++)
2392 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2396 if { (eval echo configure
:2397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2400 echo "configure: failed program was:" >&5
2401 cat conftest.
$ac_ext >&5
2403 ac_cv_header_stdc
=no
2411 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2412 if test $ac_cv_header_stdc = yes; then
2413 cat >> confdefs.h
<<\EOF
2414 #define STDC_HEADERS 1
2419 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2420 echo "configure:2421: checking whether time.h and sys/time.h may both be included" >&5
2421 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2422 echo $ac_n "(cached) $ac_c" 1>&6
2424 cat > conftest.
$ac_ext <<EOF
2425 #line 2426 "configure"
2426 #include "confdefs.h"
2427 #include <sys/types.h>
2428 #include <sys/time.h>
2434 if { (eval echo configure
:2435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2436 ac_cv_header_time
=yes
2438 echo "configure: failed program was:" >&5
2439 cat conftest.
$ac_ext >&5
2441 ac_cv_header_time
=no
2446 echo "$ac_t""$ac_cv_header_time" 1>&6
2447 if test $ac_cv_header_time = yes; then
2448 cat >> confdefs.h
<<\EOF
2449 #define TIME_WITH_SYS_TIME 1
2454 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2455 echo "configure:2456: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2456 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2457 echo $ac_n "(cached) $ac_c" 1>&6
2459 cat > conftest.
$ac_ext <<EOF
2460 #line 2461 "configure"
2461 #include "confdefs.h"
2462 #include <sys/types.h>
2464 /* NetBSD declares sys_siglist in unistd.h. */
2465 #ifdef HAVE_UNISTD_H
2469 char *msg = *(sys_siglist + 1);
2472 if { (eval echo configure
:2473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2474 ac_cv_decl_sys_siglist
=yes
2476 echo "configure: failed program was:" >&5
2477 cat conftest.
$ac_ext >&5
2479 ac_cv_decl_sys_siglist
=no
2484 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2485 if test $ac_cv_decl_sys_siglist = yes; then
2486 cat >> confdefs.h
<<\EOF
2487 #define SYS_SIGLIST_DECLARED 1
2493 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
2494 echo "configure:2495: checking for struct utimbuf" >&5
2495 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then
2496 echo $ac_n "(cached) $ac_c" 1>&6
2498 cat > conftest.
$ac_ext <<EOF
2499 #line 2500 "configure"
2500 #include "confdefs.h"
2501 #ifdef TIME_WITH_SYS_TIME
2502 #include <sys/time.h>
2505 #ifdef HAVE_SYS_TIME_H
2506 #include <sys/time.h>
2515 static struct utimbuf x; x.actime = x.modtime;
2518 if { (eval echo configure
:2519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2520 emacs_cv_struct_utimbuf
=yes
2522 echo "configure: failed program was:" >&5
2523 cat conftest.
$ac_ext >&5
2525 emacs_cv_struct_utimbuf
=no
2530 echo "$ac_t""$emacs_cv_struct_utimbuf" 1>&6
2531 if test $emacs_cv_struct_utimbuf = yes; then
2532 cat >> confdefs.h
<<\EOF
2533 #define HAVE_STRUCT_UTIMBUF 1
2538 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2539 echo "configure:2540: checking return type of signal handlers" >&5
2540 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2541 echo $ac_n "(cached) $ac_c" 1>&6
2543 cat > conftest.
$ac_ext <<EOF
2544 #line 2545 "configure"
2545 #include "confdefs.h"
2546 #include <sys/types.h>
2552 extern "C" void (*signal (int, void (*)(int)))(int);
2554 void (*signal ()) ();
2561 if { (eval echo configure
:2562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2563 ac_cv_type_signal
=void
2565 echo "configure: failed program was:" >&5
2566 cat conftest.
$ac_ext >&5
2568 ac_cv_type_signal
=int
2573 echo "$ac_t""$ac_cv_type_signal" 1>&6
2574 cat >> confdefs.h
<<EOF
2575 #define RETSIGTYPE $ac_cv_type_signal
2580 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
2581 echo "configure:2582: checking for struct timeval" >&5
2582 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then
2583 echo $ac_n "(cached) $ac_c" 1>&6
2585 cat > conftest.
$ac_ext <<EOF
2586 #line 2587 "configure"
2587 #include "confdefs.h"
2588 #ifdef TIME_WITH_SYS_TIME
2589 #include <sys/time.h>
2592 #ifdef HAVE_SYS_TIME_H
2593 #include <sys/time.h>
2599 static struct timeval x; x.tv_sec = x.tv_usec;
2602 if { (eval echo configure
:2603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2604 emacs_cv_struct_timeval
=yes
2606 echo "configure: failed program was:" >&5
2607 cat conftest.
$ac_ext >&5
2609 emacs_cv_struct_timeval
=no
2614 echo "$ac_t""$emacs_cv_struct_timeval" 1>&6
2615 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
2616 if test $emacs_cv_struct_timeval = yes; then
2617 cat >> confdefs.h
<<\EOF
2618 #define HAVE_TIMEVAL 1
2623 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2624 echo "configure:2625: checking whether struct tm is in sys/time.h or time.h" >&5
2625 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2626 echo $ac_n "(cached) $ac_c" 1>&6
2628 cat > conftest.
$ac_ext <<EOF
2629 #line 2630 "configure"
2630 #include "confdefs.h"
2631 #include <sys/types.h>
2634 struct tm *tp; tp->tm_sec;
2637 if { (eval echo configure
:2638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2639 ac_cv_struct_tm
=time.h
2641 echo "configure: failed program was:" >&5
2642 cat conftest.
$ac_ext >&5
2644 ac_cv_struct_tm
=sys
/time.h
2649 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2650 if test $ac_cv_struct_tm = sys
/time.h
; then
2651 cat >> confdefs.h
<<\EOF
2652 #define TM_IN_SYS_TIME 1
2657 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
2658 echo "configure:2659: checking for tm_zone in struct tm" >&5
2659 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
2660 echo $ac_n "(cached) $ac_c" 1>&6
2662 cat > conftest.
$ac_ext <<EOF
2663 #line 2664 "configure"
2664 #include "confdefs.h"
2665 #include <sys/types.h>
2666 #include <$ac_cv_struct_tm>
2668 struct tm tm; tm.tm_zone;
2671 if { (eval echo configure
:2672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2673 ac_cv_struct_tm_zone
=yes
2675 echo "configure: failed program was:" >&5
2676 cat conftest.
$ac_ext >&5
2678 ac_cv_struct_tm_zone
=no
2683 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
2684 if test "$ac_cv_struct_tm_zone" = yes; then
2685 cat >> confdefs.h
<<\EOF
2686 #define HAVE_TM_ZONE 1
2690 echo $ac_n "checking for tzname""... $ac_c" 1>&6
2691 echo "configure:2692: checking for tzname" >&5
2692 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
2693 echo $ac_n "(cached) $ac_c" 1>&6
2695 cat > conftest.
$ac_ext <<EOF
2696 #line 2697 "configure"
2697 #include "confdefs.h"
2699 #ifndef tzname /* For SGI. */
2700 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
2706 if { (eval echo configure
:2707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2708 ac_cv_var_tzname
=yes
2710 echo "configure: failed program was:" >&5
2711 cat conftest.
$ac_ext >&5
2718 echo "$ac_t""$ac_cv_var_tzname" 1>&6
2719 if test $ac_cv_var_tzname = yes; then
2720 cat >> confdefs.h
<<\EOF
2721 #define HAVE_TZNAME 1
2727 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
2728 echo "configure:2729: checking for tm_gmtoff in struct tm" >&5
2729 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then
2730 echo $ac_n "(cached) $ac_c" 1>&6
2732 cat > conftest.
$ac_ext <<EOF
2733 #line 2734 "configure"
2734 #include "confdefs.h"
2737 struct tm t; t.tm_gmtoff = 0
2740 if { (eval echo configure
:2741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2742 emacs_cv_tm_gmtoff
=yes
2744 echo "configure: failed program was:" >&5
2745 cat conftest.
$ac_ext >&5
2747 emacs_cv_tm_gmtoff
=no
2752 echo "$ac_t""$emacs_cv_tm_gmtoff" 1>&6
2753 if test $emacs_cv_tm_gmtoff = yes; then
2754 cat >> confdefs.h
<<\EOF
2755 #define HAVE_TM_GMTOFF 1
2761 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2762 echo "configure:2763: checking for ${CC-cc} option to accept ANSI C" >&5
2763 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
2764 echo $ac_n "(cached) $ac_c" 1>&6
2766 ac_cv_prog_cc_stdc
=no
2768 # Don't try gcc -ansi; that turns off useful extensions and
2769 # breaks some systems' header files.
2770 # AIX -qlanglvl=ansi
2771 # Ultrix and OSF/1 -std1
2772 # HP-UX 10.20 and later -Ae
2773 # HP-UX older versions -Aa -D_HPUX_SOURCE
2774 # SVR4 -Xc -D__EXTENSIONS__
2775 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2777 CC
="$ac_save_CC $ac_arg"
2778 cat > conftest.
$ac_ext <<EOF
2779 #line 2780 "configure"
2780 #include "confdefs.h"
2783 #include <sys/types.h>
2784 #include <sys/stat.h>
2785 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2786 struct buf { int x; };
2787 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2788 static char *e (p, i)
2794 static char *f (char * (*g) (char **, int), char **p, ...)
2799 s = g (p, va_arg (v,int));
2803 int test (int i, double x);
2804 struct s1 {int (*f) (int a);};
2805 struct s2 {int (*f) (double a);};
2806 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2810 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2813 if { (eval echo configure
:2814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2815 ac_cv_prog_cc_stdc
="$ac_arg"; break
2817 echo "configure: failed program was:" >&5
2818 cat conftest.
$ac_ext >&5
2826 case "x$ac_cv_prog_cc_stdc" in
2828 echo "$ac_t""none needed" 1>&6 ;;
2830 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
2831 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2834 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
2835 echo "configure:2836: checking for function prototypes" >&5
2836 if test "$ac_cv_prog_cc_stdc" != no
; then
2837 echo "$ac_t""yes" 1>&6
2838 cat >> confdefs.h
<<\EOF
2839 #define PROTOTYPES 1
2843 echo "$ac_t""no" 1>&6
2846 echo $ac_n "checking for working volatile""... $ac_c" 1>&6
2847 echo "configure:2848: checking for working volatile" >&5
2848 if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then
2849 echo $ac_n "(cached) $ac_c" 1>&6
2851 cat > conftest.
$ac_ext <<EOF
2852 #line 2853 "configure"
2853 #include "confdefs.h"
2861 if { (eval echo configure
:2862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2863 ac_cv_c_volatile
=yes
2865 echo "configure: failed program was:" >&5
2866 cat conftest.
$ac_ext >&5
2873 echo "$ac_t""$ac_cv_c_volatile" 1>&6
2874 if test $ac_cv_c_volatile = no
; then
2875 cat >> confdefs.h
<<\EOF
2881 echo $ac_n "checking for working const""... $ac_c" 1>&6
2882 echo "configure:2883: checking for working const" >&5
2883 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2884 echo $ac_n "(cached) $ac_c" 1>&6
2886 cat > conftest.
$ac_ext <<EOF
2887 #line 2888 "configure"
2888 #include "confdefs.h"
2892 /* Ultrix mips cc rejects this. */
2893 typedef int charset[2]; const charset x = {0,0};
2894 /* SunOS 4.1.1 cc rejects this. */
2895 char const *const *ccp;
2897 /* NEC SVR4.0.2 mips cc rejects this. */
2898 struct point {int x, y;};
2899 static struct point const zero = {0,0};
2900 /* AIX XL C 1.02.0.0 rejects this.
2901 It does not let you subtract one const X* pointer from another in an arm
2902 of an if-expression whose if-part is not a constant expression */
2903 const char *g = "string";
2904 ccp = &g + (g ? g-g : 0);
2905 /* HPUX 7.0 cc rejects these. */
2908 ccp = (char const *const *) p;
2909 { /* SCO 3.2v4 cc rejects this. */
2911 char const *s = 0 ? (char *) 0 : (char const *) 0;
2915 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2917 const int *foo = &x[0];
2920 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2921 typedef const int *iptr;
2925 { /* AIX XL C 1.02.0.0 rejects this saying
2926 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2927 struct s { int j; const int *ap[3]; };
2928 struct s *b; b->j = 5;
2930 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2936 if { (eval echo configure
:2937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2940 echo "configure: failed program was:" >&5
2941 cat conftest.
$ac_ext >&5
2948 echo "$ac_t""$ac_cv_c_const" 1>&6
2949 if test $ac_cv_c_const = no
; then
2950 cat >> confdefs.h
<<\EOF
2956 echo $ac_n "checking for inline""... $ac_c" 1>&6
2957 echo "configure:2958: checking for inline" >&5
2958 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2959 echo $ac_n "(cached) $ac_c" 1>&6
2962 for ac_kw
in inline __inline__ __inline
; do
2963 cat > conftest.
$ac_ext <<EOF
2964 #line 2965 "configure"
2965 #include "confdefs.h"
2968 } int $ac_kw foo() {
2971 if { (eval echo configure
:2972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2973 ac_cv_c_inline
=$ac_kw; break
2975 echo "configure: failed program was:" >&5
2976 cat conftest.
$ac_ext >&5
2983 echo "$ac_t""$ac_cv_c_inline" 1>&6
2984 case "$ac_cv_c_inline" in
2986 no
) cat >> confdefs.h
<<\EOF
2990 *) cat >> confdefs.h
<<EOF
2991 #define inline $ac_cv_c_inline
2996 echo $ac_n "checking for void * support""... $ac_c" 1>&6
2997 echo "configure:2998: checking for void * support" >&5
2998 if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then
2999 echo $ac_n "(cached) $ac_c" 1>&6
3001 cat > conftest.
$ac_ext <<EOF
3002 #line 3003 "configure"
3003 #include "confdefs.h"
3009 if { (eval echo configure
:3010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3011 emacs_cv_void_star
=yes
3013 echo "configure: failed program was:" >&5
3014 cat conftest.
$ac_ext >&5
3016 emacs_cv_void_star
=no
3021 echo "$ac_t""$emacs_cv_void_star" 1>&6
3022 if test $emacs_cv_void_star = yes; then
3023 cat >> confdefs.h
<<\EOF
3024 #define POINTER_TYPE void
3028 cat >> confdefs.h
<<\EOF
3029 #define POINTER_TYPE char
3034 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3035 echo "configure:3036: checking whether ${MAKE-make} sets \${MAKE}" >&5
3036 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
3037 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3038 echo $ac_n "(cached) $ac_c" 1>&6
3040 cat > conftestmake
<<\EOF
3042 @
echo 'ac_maketemp="${MAKE}"'
3044 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3045 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3046 if test -n "$ac_maketemp"; then
3047 eval ac_cv_prog_make_
${ac_make}_set
=yes
3049 eval ac_cv_prog_make_
${ac_make}_set
=no
3053 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3054 echo "$ac_t""yes" 1>&6
3057 echo "$ac_t""no" 1>&6
3058 SET_MAKE
="MAKE=${MAKE-make}"
3062 echo $ac_n "checking for long file names""... $ac_c" 1>&6
3063 echo "configure:3064: checking for long file names" >&5
3064 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
3065 echo $ac_n "(cached) $ac_c" 1>&6
3067 ac_cv_sys_long_file_names
=yes
3068 # Test for long file names in all the places we know might matter:
3069 # . the current directory, where building will happen
3070 # $prefix/lib where we will be installing things
3071 # $exec_prefix/lib likewise
3072 # eval it to expand exec_prefix.
3073 # $TMPDIR if set, where it might want to write temporary files
3074 # if $TMPDIR is not set:
3075 # /tmp where it might want to write temporary files
3078 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3079 ac_tmpdirs
="$TMPDIR"
3081 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
3083 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3084 test -d $ac_dir ||
continue
3085 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
3086 (echo 1 > $ac_dir/conftest9012345
) 2>/dev
/null
3087 (echo 2 > $ac_dir/conftest9012346
) 2>/dev
/null
3088 val
=`cat $ac_dir/conftest9012345 2>/dev/null`
3089 if test ! -f $ac_dir/conftest9012345 ||
test "$val" != 1; then
3090 ac_cv_sys_long_file_names
=no
3091 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
3094 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
3098 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
3099 if test $ac_cv_sys_long_file_names = yes; then
3100 cat >> confdefs.h
<<\EOF
3101 #define HAVE_LONG_FILE_NAMES 1
3107 #### Choose a window system.
3109 # If we find X, set shell vars x_includes and x_libraries to the
3110 # paths, otherwise set no_x=yes.
3111 # Uses ac_ vars as temps to allow command line to override cache and checks.
3112 # --without-x overrides everything else, but does not touch the cache.
3113 echo $ac_n "checking for X""... $ac_c" 1>&6
3114 echo "configure:3115: checking for X" >&5
3116 # Check whether --with-x or --without-x was given.
3117 if test "${with_x+set}" = set; then
3122 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3123 if test "x$with_x" = xno
; then
3124 # The user explicitly disabled X.
3127 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
3128 # Both variables are already set.
3131 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3132 echo $ac_n "(cached) $ac_c" 1>&6
3134 # One or both of the vars are not set, and there is no cached value.
3135 ac_x_includes
=NO ac_x_libraries
=NO
3137 if mkdir conftestdir
; then
3139 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3140 cat > Imakefile
<<'EOF'
3142 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3144 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
3145 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3146 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3147 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3148 for ac_extension
in a so sl
; do
3149 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
3150 test -f $ac_im_libdir/libX11.
$ac_extension; then
3151 ac_im_usrlibdir
=$ac_im_libdir; break
3154 # Screen out bogus values from the imake configuration. They are
3155 # bogus both because they are the default anyway, and because
3156 # using them would break gcc on systems where it needs fixed includes.
3157 case "$ac_im_incroot" in
3159 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
3161 case "$ac_im_usrlibdir" in
3163 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
3170 if test "$ac_x_includes" = NO
; then
3171 # Guess where to find include files, by looking for this one X11 .h file.
3172 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
3174 # First, try using that file with no special directory specified.
3175 cat > conftest.
$ac_ext <<EOF
3176 #line 3177 "configure"
3177 #include "confdefs.h"
3178 #include <$x_direct_test_include>
3180 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3181 { (eval echo configure
:3182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3182 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3183 if test -z "$ac_err"; then
3185 # We can compile using X headers with no special include directory.
3189 echo "configure: failed program was:" >&5
3190 cat conftest.
$ac_ext >&5
3192 # Look for the header file in a standard set of common directories.
3193 # Check X11 before X11Rn because it is often a symlink to the current release.
3196 /usr
/X11R
6/include \
3197 /usr
/X11R
5/include \
3198 /usr
/X11R
4/include \
3201 /usr
/include
/X11R6 \
3202 /usr
/include
/X11R5 \
3203 /usr
/include
/X11R4 \
3205 /usr
/local
/X11
/include \
3206 /usr
/local
/X11R
6/include \
3207 /usr
/local
/X11R
5/include \
3208 /usr
/local
/X11R
4/include \
3210 /usr
/local
/include
/X11 \
3211 /usr
/local
/include
/X11R6 \
3212 /usr
/local
/include
/X11R5 \
3213 /usr
/local
/include
/X11R4 \
3217 /usr
/XFree86
/include
/X11 \
3220 /usr
/local
/include \
3221 /usr
/unsupported
/include \
3222 /usr
/athena
/include \
3223 /usr
/local
/x11r
5/include \
3224 /usr
/lpp
/Xamples
/include \
3226 /usr
/openwin
/include \
3227 /usr
/openwin
/share
/include \
3230 if test -r "$ac_dir/$x_direct_test_include"; then
3231 ac_x_includes
=$ac_dir
3237 fi # $ac_x_includes = NO
3239 if test "$ac_x_libraries" = NO
; then
3240 # Check for the libraries.
3242 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
3243 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
3245 # See if we find them without any special options.
3246 # Don't add to $LIBS permanently.
3247 ac_save_LIBS
="$LIBS"
3248 LIBS
="-l$x_direct_test_library $LIBS"
3249 cat > conftest.
$ac_ext <<EOF
3250 #line 3251 "configure"
3251 #include "confdefs.h"
3254 ${x_direct_test_function}()
3257 if { (eval echo configure
:3258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3259 LIBS
="$ac_save_LIBS"
3260 # We can link X programs with no special library path.
3263 echo "configure: failed program was:" >&5
3264 cat conftest.
$ac_ext >&5
3266 LIBS
="$ac_save_LIBS"
3267 # First see if replacing the include by lib works.
3268 # Check X11 before X11Rn because it is often a symlink to the current release.
3269 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
3280 /usr
/local
/X11
/lib \
3281 /usr
/local
/X11R
6/lib \
3282 /usr
/local
/X11R
5/lib \
3283 /usr
/local
/X11R
4/lib \
3285 /usr
/local
/lib
/X11 \
3286 /usr
/local
/lib
/X11R6 \
3287 /usr
/local
/lib
/X11R5 \
3288 /usr
/local
/lib
/X11R4 \
3292 /usr
/XFree86
/lib
/X11 \
3296 /usr
/unsupported
/lib \
3298 /usr
/local
/x11r
5/lib \
3299 /usr
/lpp
/Xamples
/lib \
3303 /usr
/openwin
/share
/lib \
3306 for ac_extension
in a so sl
; do
3307 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
3308 ac_x_libraries
=$ac_dir
3315 fi # $ac_x_libraries = NO
3317 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
3318 # Didn't find X anywhere. Cache the known absence of X.
3319 ac_cv_have_x
="have_x=no"
3321 # Record where we found X for the cache.
3322 ac_cv_have_x
="have_x=yes \
3323 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3327 eval "$ac_cv_have_x"
3330 if test "$have_x" != yes; then
3331 echo "$ac_t""$have_x" 1>&6
3334 # If each of the values was on the command line, it overrides each guess.
3335 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
3336 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
3337 # Update the cache value to reflect the command line values.
3338 ac_cv_have_x
="have_x=yes \
3339 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3340 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3343 if test "$no_x" = yes; then
3349 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
3350 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
3351 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
3352 x_default_search_path
=""
3353 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
3354 x_search_path
="${x_library}/X11/%L/%T/%N%C%S:\
3355 ${x_library}/X11/%L/%T/%N%C%S:${x_libary}/X11/%l/%T/%N%C%S:\
3356 ${x_library}/X11/%T/%N%C%S:${x_library}/X11/%L/%T/%N%S:\
3357 ${x_library}/X11/%l/%T/%N%S:${x_library}/X11/%T/%N%S"
3358 if test x
"${x_default_search_path}" = x
; then
3359 x_default_search_path
=${x_search_path}
3361 x_default_search_path
="${x_search_path}:${x_default_search_path}"
3365 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
3366 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
3369 if test x
"${x_includes}" = x
; then
3370 bitmapdir
=/usr
/include
/X11
/bitmaps
3372 # accumulate include directories that have X11 bitmap subdirectories
3374 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
3375 if test -d "${bmd}/X11/bitmaps"; then
3376 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
3378 if test -d "${bmd}/bitmaps"; then
3379 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
3382 if test ${bmd_acc} != "dummyval"; then
3383 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
3387 case "${window_system}" in
3391 case "${with_x_toolkit}" in
3392 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
3393 motif
) USE_X_TOOLKIT
=MOTIF
;;
3394 no
) USE_X_TOOLKIT
=none
;;
3395 * ) USE_X_TOOLKIT
=maybe
;;
3405 ### If we're using X11, we should use the X menu package.
3408 yes ) HAVE_MENUS
=yes ;;
3411 if test "${opsys}" = "hpux9"; then
3412 case "${x_libraries}" in
3414 opsysfile
="s/hpux9-x11r4.h"
3419 if test "${opsys}" = "hpux9shr"; then
3420 case "${x_libraries}" in
3422 opsysfile
="s/hpux9shxr4.h"
3427 #### Extract some information from the operating system and machine files.
3429 echo "checking the machine- and system-dependent files to find out
3430 - which libraries the lib-src programs will want, and
3431 - whether the GNU malloc routines are usable" 1>&6
3432 echo "configure:3433: checking the machine- and system-dependent files to find out
3433 - which libraries the lib-src programs will want, and
3434 - whether the GNU malloc routines are usable" >&5
3436 ### First figure out CFLAGS (which we use for running the compiler here)
3437 ### and REAL_CFLAGS (which we use for real compilation).
3438 ### The two are the same except on a few systems, where they are made
3439 ### different to work around various lossages. For example,
3440 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3441 ### as implying static linking.
3443 ### If the CFLAGS env var is specified, we use that value
3444 ### instead of the default.
3446 ### It's not important that this name contain the PID; you can't run
3447 ### two configures in the same directory and have anything work
3449 tempcname
="conftest.c"
3452 #include "'${srcdir}'/src/'${opsysfile}'"
3453 #include "'${srcdir}'/src/'${machfile}'"
3454 #ifndef LIBS_MACHINE
3455 #define LIBS_MACHINE
3460 #ifndef C_SWITCH_SYSTEM
3461 #define C_SWITCH_SYSTEM
3463 #ifndef C_SWITCH_MACHINE
3464 #define C_SWITCH_MACHINE
3466 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3467 configure___ c_switch_system=C_SWITCH_SYSTEM
3468 configure___ c_switch_machine=C_SWITCH_MACHINE
3471 #define LIB_X11_LIB -lX11
3474 #ifndef LIBX11_MACHINE
3475 #define LIBX11_MACHINE
3478 #ifndef LIBX11_SYSTEM
3479 #define LIBX11_SYSTEM
3481 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3484 configure___ unexec=UNEXEC
3486 configure___ unexec=unexec.o
3489 #ifdef SYSTEM_MALLOC
3490 configure___ system_malloc=yes
3492 configure___ system_malloc=no
3495 #ifndef C_DEBUG_SWITCH
3496 #define C_DEBUG_SWITCH -g
3499 #ifndef C_OPTIMIZE_SWITCH
3501 #define C_OPTIMIZE_SWITCH -O2
3503 #define C_OPTIMIZE_SWITCH -O
3507 #ifndef LD_SWITCH_MACHINE
3508 #define LD_SWITCH_MACHINE
3511 #ifndef LD_SWITCH_SYSTEM
3512 #define LD_SWITCH_SYSTEM
3515 #ifndef LD_SWITCH_X_SITE_AUX
3516 #define LD_SWITCH_X_SITE_AUX
3519 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3520 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3522 #ifdef THIS_IS_CONFIGURE
3524 /* Get the CFLAGS for tests in configure. */
3526 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3528 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3531 #else /* not THIS_IS_CONFIGURE */
3533 /* Get the CFLAGS for real compilation. */
3535 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3537 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3540 #endif /* not THIS_IS_CONFIGURE */
3543 # The value of CPP is a quoted variable reference, so we need to do this
3544 # to get its actual value...
3545 CPP
=`eval "echo $CPP"`
3546 eval `${CPP} -Isrc ${tempcname} \
3547 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3548 if test "x$SPECIFIED_CFLAGS" = x
; then
3549 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3550 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3552 REAL_CFLAGS
="$CFLAGS"
3556 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
3558 ### Compute the unexec source name from the object name.
3559 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
3561 # Do the opsystem or machine files prohibit the use of the GNU malloc?
3562 # Assume not, until told otherwise.
3565 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
3566 echo "configure:3567: checking for malloc_get_state" >&5
3567 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then
3568 echo $ac_n "(cached) $ac_c" 1>&6
3570 cat > conftest.
$ac_ext <<EOF
3571 #line 3572 "configure"
3572 #include "confdefs.h"
3573 /* System header to define __stub macros and hopefully few prototypes,
3574 which can conflict with char malloc_get_state(); below. */
3576 /* Override any gcc2 internal prototype to avoid an error. */
3577 /* We use char because int might match the return type of a gcc2
3578 builtin and then its argument prototype would still apply. */
3579 char malloc_get_state();
3583 /* The GNU C library defines this for functions which it implements
3584 to always fail with ENOSYS. Some functions are actually named
3585 something starting with __ and the normal name is an alias. */
3586 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
3594 if { (eval echo configure
:3595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3596 eval "ac_cv_func_malloc_get_state=yes"
3598 echo "configure: failed program was:" >&5
3599 cat conftest.
$ac_ext >&5
3601 eval "ac_cv_func_malloc_get_state=no"
3606 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
3607 echo "$ac_t""yes" 1>&6
3610 echo "$ac_t""no" 1>&6
3614 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3615 echo "configure:3616: checking for malloc_set_state" >&5
3616 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then
3617 echo $ac_n "(cached) $ac_c" 1>&6
3619 cat > conftest.
$ac_ext <<EOF
3620 #line 3621 "configure"
3621 #include "confdefs.h"
3622 /* System header to define __stub macros and hopefully few prototypes,
3623 which can conflict with char malloc_set_state(); below. */
3625 /* Override any gcc2 internal prototype to avoid an error. */
3626 /* We use char because int might match the return type of a gcc2
3627 builtin and then its argument prototype would still apply. */
3628 char malloc_set_state();
3632 /* The GNU C library defines this for functions which it implements
3633 to always fail with ENOSYS. Some functions are actually named
3634 something starting with __ and the normal name is an alias. */
3635 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3643 if { (eval echo configure
:3644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3645 eval "ac_cv_func_malloc_set_state=yes"
3647 echo "configure: failed program was:" >&5
3648 cat conftest.
$ac_ext >&5
3650 eval "ac_cv_func_malloc_set_state=no"
3655 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3656 echo "$ac_t""yes" 1>&6
3659 echo "$ac_t""no" 1>&6
3663 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3664 echo "configure:3665: checking whether __after_morecore_hook exists" >&5
3665 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then
3666 echo $ac_n "(cached) $ac_c" 1>&6
3668 cat > conftest.
$ac_ext <<EOF
3669 #line 3670 "configure"
3670 #include "confdefs.h"
3671 extern void (* __after_morecore_hook)();
3673 __after_morecore_hook = 0
3676 if { (eval echo configure
:3677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3678 emacs_cv_var___after_morecore_hook
=yes
3680 echo "configure: failed program was:" >&5
3681 cat conftest.
$ac_ext >&5
3683 emacs_cv_var___after_morecore_hook
=no
3688 echo "$ac_t""$emacs_cv_var___after_morecore_hook" 1>&6
3689 if test $emacs_cv_var___after_morecore_hook = no
; then
3692 if test "${system_malloc}" = "yes"; then
3695 (The GNU allocators don't work with this system configuration.)"
3697 if test "$doug_lea_malloc" = "yes" ; then
3698 if test "$GNU_MALLOC" = yes ; then
3700 (Using Doug Lea's new malloc from the GNU C Library.)"
3702 cat >> confdefs.h
<<\EOF
3703 #define DOUG_LEA_MALLOC 1
3708 if test x
"${REL_ALLOC}" = x
; then
3709 REL_ALLOC
=${GNU_MALLOC}
3712 #### Add the libraries to LIBS and check for some functions.
3714 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
3715 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
3717 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
3720 LIBS
="$libsrc_libs $LIBS"
3722 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3723 echo "configure:3724: checking for dnet_ntoa in -ldnet" >&5
3724 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3725 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3726 echo $ac_n "(cached) $ac_c" 1>&6
3728 ac_save_LIBS
="$LIBS"
3730 cat > conftest.
$ac_ext <<EOF
3731 #line 3732 "configure"
3732 #include "confdefs.h"
3733 /* Override any gcc2 internal prototype to avoid an error. */
3734 /* We use char because int might match the return type of a gcc2
3735 builtin and then its argument prototype would still apply. */
3742 if { (eval echo configure
:3743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3744 eval "ac_cv_lib_$ac_lib_var=yes"
3746 echo "configure: failed program was:" >&5
3747 cat conftest.
$ac_ext >&5
3749 eval "ac_cv_lib_$ac_lib_var=no"
3752 LIBS
="$ac_save_LIBS"
3755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3756 echo "$ac_t""yes" 1>&6
3757 ac_tr_lib
=HAVE_LIB
`echo dnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3758 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3759 cat >> confdefs.h
<<EOF
3760 #define $ac_tr_lib 1
3766 echo "$ac_t""no" 1>&6
3770 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
3771 echo "configure:3772: checking for main in -lXbsd" >&5
3772 ac_lib_var
=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
3773 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3774 echo $ac_n "(cached) $ac_c" 1>&6
3776 ac_save_LIBS
="$LIBS"
3778 cat > conftest.
$ac_ext <<EOF
3779 #line 3780 "configure"
3780 #include "confdefs.h"
3786 if { (eval echo configure
:3787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3788 eval "ac_cv_lib_$ac_lib_var=yes"
3790 echo "configure: failed program was:" >&5
3791 cat conftest.
$ac_ext >&5
3793 eval "ac_cv_lib_$ac_lib_var=no"
3796 LIBS
="$ac_save_LIBS"
3799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3800 echo "$ac_t""yes" 1>&6
3801 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
3803 echo "$ac_t""no" 1>&6
3807 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
3808 echo "configure:3809: checking for cma_open in -lpthreads" >&5
3809 ac_lib_var
=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
3810 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3811 echo $ac_n "(cached) $ac_c" 1>&6
3813 ac_save_LIBS
="$LIBS"
3814 LIBS
="-lpthreads $LIBS"
3815 cat > conftest.
$ac_ext <<EOF
3816 #line 3817 "configure"
3817 #include "confdefs.h"
3818 /* Override any gcc2 internal prototype to avoid an error. */
3819 /* We use char because int might match the return type of a gcc2
3820 builtin and then its argument prototype would still apply. */
3827 if { (eval echo configure
:3828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3829 eval "ac_cv_lib_$ac_lib_var=yes"
3831 echo "configure: failed program was:" >&5
3832 cat conftest.
$ac_ext >&5
3834 eval "ac_cv_lib_$ac_lib_var=no"
3837 LIBS
="$ac_save_LIBS"
3840 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3841 echo "$ac_t""yes" 1>&6
3842 ac_tr_lib
=HAVE_LIB
`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3843 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3844 cat >> confdefs.h
<<EOF
3845 #define $ac_tr_lib 1
3848 LIBS
="-lpthreads $LIBS"
3851 echo "$ac_t""no" 1>&6
3855 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6
3856 echo "configure:3857: checking for XFree86 in /usr/X386" >&5
3857 if test -d /usr
/X386
/include
; then
3859 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
3863 echo "$ac_t""$HAVE_XFREE386" 1>&6
3865 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
3866 # for the tests that follow. We set it back to REAL_CFLAGS later on.
3868 if test "${HAVE_X11}" = "yes"; then
3869 DEFS
="$C_SWITCH_X_SITE $DEFS"
3870 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
3872 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
3874 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
3875 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
3876 # but it's more convenient here to set LD_RUN_PATH
3877 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
3878 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
3879 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
3883 if test "${opsys}" = "gnu-linux"; then
3884 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6
3885 echo "configure:3886: checking whether X on GNU/Linux needs -b to link" >&5
3886 cat > conftest.
$ac_ext <<EOF
3887 #line 3888 "configure"
3888 #include "confdefs.h"
3891 XOpenDisplay ("foo");
3894 if { (eval echo configure
:3895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3896 xlinux_first_failure
=no
3898 echo "configure: failed program was:" >&5
3899 cat conftest.
$ac_ext >&5
3901 xlinux_first_failure
=yes
3904 if test "${xlinux_first_failure}" = "yes"; then
3905 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
3906 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
3907 OLD_CPPFLAGS
="$CPPFLAGS"
3909 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
3910 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
3911 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
3912 LIBS
="$LIBS -b i486-linuxaout"
3913 cat > conftest.
$ac_ext <<EOF
3914 #line 3915 "configure"
3915 #include "confdefs.h"
3918 XOpenDisplay ("foo");
3921 if { (eval echo configure
:3922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3923 xlinux_second_failure
=no
3925 echo "configure: failed program was:" >&5
3926 cat conftest.
$ac_ext >&5
3928 xlinux_second_failure
=yes
3931 if test "${xlinux_second_failure}" = "yes"; then
3932 # If we get the same failure with -b, there is no use adding -b.
3933 # So take it out. This plays safe.
3934 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
3935 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
3936 CPPFLAGS
="$OLD_CPPFLAGS"
3938 echo "$ac_t""no" 1>&6
3940 echo "$ac_t""yes" 1>&6
3943 echo "$ac_t""no" 1>&6
3947 for ac_func
in XrmSetDatabase XScreenResourceString \
3948 XScreenNumberOfScreen XSetWMProtocols
3950 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3951 echo "configure:3952: checking for $ac_func" >&5
3952 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3953 echo $ac_n "(cached) $ac_c" 1>&6
3955 cat > conftest.
$ac_ext <<EOF
3956 #line 3957 "configure"
3957 #include "confdefs.h"
3958 /* System header to define __stub macros and hopefully few prototypes,
3959 which can conflict with char $ac_func(); below. */
3961 /* Override any gcc2 internal prototype to avoid an error. */
3962 /* We use char because int might match the return type of a gcc2
3963 builtin and then its argument prototype would still apply. */
3968 /* The GNU C library defines this for functions which it implements
3969 to always fail with ENOSYS. Some functions are actually named
3970 something starting with __ and the normal name is an alias. */
3971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3979 if { (eval echo configure
:3980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3981 eval "ac_cv_func_$ac_func=yes"
3983 echo "configure: failed program was:" >&5
3984 cat conftest.
$ac_ext >&5
3986 eval "ac_cv_func_$ac_func=no"
3991 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3992 echo "$ac_t""yes" 1>&6
3993 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3994 cat >> confdefs.h
<<EOF
3995 #define $ac_tr_func 1
3999 echo "$ac_t""no" 1>&6
4005 if test "${window_system}" = "x11"; then
4006 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6
4007 echo "configure:4008: checking X11 version 6" >&5
4008 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then
4009 echo $ac_n "(cached) $ac_c" 1>&6
4011 cat > conftest.
$ac_ext <<EOF
4012 #line 4013 "configure"
4013 #include "confdefs.h"
4014 #include <X11/Xlib.h>
4016 #if XlibSpecificationRelease < 6
4022 if { (eval echo configure
:4023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4024 emacs_cv_x11_version_6
=yes
4026 echo "configure: failed program was:" >&5
4027 cat conftest.
$ac_ext >&5
4029 emacs_cv_x11_version_6
=no
4034 if test $emacs_cv_x11_version_6 = yes; then
4035 echo "$ac_t""6 or newer" 1>&6
4036 cat >> confdefs.h
<<\EOF
4037 #define HAVE_X11R6 1
4041 echo "$ac_t""before 6" 1>&6
4045 if test "${window_system}" = "x11"; then
4046 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6
4047 echo "configure:4048: checking X11 version 5" >&5
4048 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then
4049 echo $ac_n "(cached) $ac_c" 1>&6
4051 cat > conftest.
$ac_ext <<EOF
4052 #line 4053 "configure"
4053 #include "confdefs.h"
4054 #include <X11/Xlib.h>
4056 #if XlibSpecificationRelease < 5
4062 if { (eval echo configure
:4063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4064 emacs_cv_x11_version_5
=yes
4066 echo "configure: failed program was:" >&5
4067 cat conftest.
$ac_ext >&5
4069 emacs_cv_x11_version_5
=no
4074 if test $emacs_cv_x11_version_5 = yes; then
4075 echo "$ac_t""5 or newer" 1>&6
4077 cat >> confdefs.h
<<\EOF
4078 #define HAVE_X11R5 1
4083 echo "$ac_t""before 5" 1>&6
4087 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
4088 if test x
"${HAVE_X11R5}" = xyes
; then
4089 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6
4090 echo "configure:4091: checking X11 version 5 with Xaw" >&5
4091 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then
4092 echo $ac_n "(cached) $ac_c" 1>&6
4094 cat > conftest.
$ac_ext <<EOF
4095 #line 4096 "configure"
4096 #include "confdefs.h"
4098 #include <X11/Intrinsic.h>
4099 #include <X11/Xaw/Simple.h>
4104 if { (eval echo configure
:4105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4106 emacs_cv_x11_version_5_with_xaw
=yes
4108 echo "configure: failed program was:" >&5
4109 cat conftest.
$ac_ext >&5
4111 emacs_cv_x11_version_5_with_xaw
=no
4116 if test $emacs_cv_x11_version_5_with_xaw = yes; then
4117 echo "$ac_t""5 or newer, with Xaw; use toolkit by default" 1>&6
4120 echo "$ac_t""before 5 or no Xaw; do not use toolkit by default" 1>&6
4128 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
4130 if test "${USE_X_TOOLKIT}" != "none"; then
4131 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6
4132 echo "configure:4133: checking X11 toolkit version" >&5
4133 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then
4134 echo $ac_n "(cached) $ac_c" 1>&6
4136 cat > conftest.
$ac_ext <<EOF
4137 #line 4138 "configure"
4138 #include "confdefs.h"
4139 #include <X11/Intrinsic.h>
4141 #if XtSpecificationRelease < 6
4147 if { (eval echo configure
:4148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4149 emacs_cv_x11_toolkit_version_6
=yes
4151 echo "configure: failed program was:" >&5
4152 cat conftest.
$ac_ext >&5
4154 emacs_cv_x11_toolkit_version_6
=no
4159 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
4160 if test $emacs_cv_x11_toolkit_version_6 = yes; then
4161 echo "$ac_t""6 or newer" 1>&6
4162 cat >> confdefs.h
<<\EOF
4163 #define HAVE_X11XTR6 1
4167 echo "$ac_t""before 6" 1>&6
4171 if test x
$HAVE_X11XTR6 = xyes
; then
4172 LIBS
="-lXt -lSM -lICE $LIBS"
4176 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
4177 echo "configure:4178: checking for XmuConvertStandardSelection in -lXmu" >&5
4178 ac_lib_var
=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
4179 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4180 echo $ac_n "(cached) $ac_c" 1>&6
4182 ac_save_LIBS
="$LIBS"
4184 cat > conftest.
$ac_ext <<EOF
4185 #line 4186 "configure"
4186 #include "confdefs.h"
4187 /* Override any gcc2 internal prototype to avoid an error. */
4188 /* We use char because int might match the return type of a gcc2
4189 builtin and then its argument prototype would still apply. */
4190 char XmuConvertStandardSelection();
4193 XmuConvertStandardSelection()
4196 if { (eval echo configure
:4197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4198 eval "ac_cv_lib_$ac_lib_var=yes"
4200 echo "configure: failed program was:" >&5
4201 cat conftest.
$ac_ext >&5
4203 eval "ac_cv_lib_$ac_lib_var=no"
4206 LIBS
="$ac_save_LIBS"
4209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4210 echo "$ac_t""yes" 1>&6
4211 ac_tr_lib
=HAVE_LIB
`echo Xmu | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4212 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4213 cat >> confdefs.h
<<EOF
4214 #define $ac_tr_lib 1
4220 echo "$ac_t""no" 1>&6
4226 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
4227 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6
4228 echo "configure:4229: checking for Motif version 2.1" >&5
4229 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then
4230 echo $ac_n "(cached) $ac_c" 1>&6
4232 cat > conftest.
$ac_ext <<EOF
4233 #line 4234 "configure"
4234 #include "confdefs.h"
4237 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
4240 Motif version prior to 2.1.
4244 if { (eval echo configure
:4245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4246 emacs_cv_motif_version_2_1
=yes
4248 echo "configure: failed program was:" >&5
4249 cat conftest.
$ac_ext >&5
4251 emacs_cv_motif_version_2_1
=no
4256 echo "$ac_t""$emacs_cv_motif_version_2_1" 1>&6
4257 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
4258 if test $emacs_cv_motif_version_2_1 = yes; then
4259 cat >> confdefs.h
<<\EOF
4260 #define HAVE_MOTIF_2_1 1
4263 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6
4264 echo "configure:4265: checking for XpCreateContext in -lXp" >&5
4265 ac_lib_var
=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`
4266 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4267 echo $ac_n "(cached) $ac_c" 1>&6
4269 ac_save_LIBS
="$LIBS"
4271 cat > conftest.
$ac_ext <<EOF
4272 #line 4273 "configure"
4273 #include "confdefs.h"
4274 /* Override any gcc2 internal prototype to avoid an error. */
4275 /* We use char because int might match the return type of a gcc2
4276 builtin and then its argument prototype would still apply. */
4277 char XpCreateContext();
4283 if { (eval echo configure
:4284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4285 eval "ac_cv_lib_$ac_lib_var=yes"
4287 echo "configure: failed program was:" >&5
4288 cat conftest.
$ac_ext >&5
4290 eval "ac_cv_lib_$ac_lib_var=no"
4293 LIBS
="$ac_save_LIBS"
4296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4297 echo "$ac_t""yes" 1>&6
4298 ac_tr_lib
=HAVE_LIB
`echo Xp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4299 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4300 cat >> confdefs.h
<<EOF
4301 #define $ac_tr_lib 1
4307 echo "$ac_t""no" 1>&6
4313 ### Is -lXaw3d available?
4315 if test "${HAVE_X11}" = "yes"; then
4316 if test "${USE_X_TOOLKIT}" != "none"; then
4317 old_c_flags
="${CFLAGS}"
4318 CFLAGS
="${LD_SWITCH_X_SITE}"
4319 ac_safe
=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'`
4320 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6
4321 echo "configure:4322: checking for X11/Xaw3d/Scrollbar.h" >&5
4322 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4323 echo $ac_n "(cached) $ac_c" 1>&6
4325 cat > conftest.
$ac_ext <<EOF
4326 #line 4327 "configure"
4327 #include "confdefs.h"
4328 #include <X11/Xaw3d/Scrollbar.h>
4330 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4331 { (eval echo configure
:4332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4332 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4333 if test -z "$ac_err"; then
4335 eval "ac_cv_header_$ac_safe=yes"
4338 echo "configure: failed program was:" >&5
4339 cat conftest.
$ac_ext >&5
4341 eval "ac_cv_header_$ac_safe=no"
4345 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4346 echo "$ac_t""yes" 1>&6
4347 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
4348 echo "configure:4349: checking for XawScrollbarSetThumb in -lXaw3d" >&5
4349 ac_lib_var
=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
4350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4351 echo $ac_n "(cached) $ac_c" 1>&6
4353 ac_save_LIBS
="$LIBS"
4354 LIBS
="-lXaw3d -lX11 $LIBS"
4355 cat > conftest.
$ac_ext <<EOF
4356 #line 4357 "configure"
4357 #include "confdefs.h"
4358 /* Override any gcc2 internal prototype to avoid an error. */
4359 /* We use char because int might match the return type of a gcc2
4360 builtin and then its argument prototype would still apply. */
4361 char XawScrollbarSetThumb();
4364 XawScrollbarSetThumb()
4367 if { (eval echo configure
:4368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4369 eval "ac_cv_lib_$ac_lib_var=yes"
4371 echo "configure: failed program was:" >&5
4372 cat conftest.
$ac_ext >&5
4374 eval "ac_cv_lib_$ac_lib_var=no"
4377 LIBS
="$ac_save_LIBS"
4380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4381 echo "$ac_t""yes" 1>&6
4384 echo "$ac_t""no" 1>&6
4388 echo "$ac_t""no" 1>&6
4391 CFLAGS
="${old_c_flags}"
4393 if test "${HAVE_XAW3D}" = "yes"; then
4394 cat >> confdefs.h
<<\EOF
4395 #define HAVE_XAW3D 1
4403 USE_TOOLKIT_SCROLL_BARS
=no
4404 if test "${with_toolkit_scroll_bars}" != "no"; then
4405 if test "${USE_X_TOOLKIT}" != "none"; then
4406 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
4407 cat >> confdefs.h
<<\EOF
4408 #define USE_TOOLKIT_SCROLL_BARS 1
4412 USE_TOOLKIT_SCROLL_BARS
=yes
4413 elif test "${HAVE_XAW3D}" = "yes"; then
4414 cat >> confdefs.h
<<\EOF
4415 #define USE_TOOLKIT_SCROLL_BARS 1
4418 USE_TOOLKIT_SCROLL_BARS
=yes
4423 ### Use -lXpm if available, unless `--with-xpm=no'.
4425 if test "${HAVE_X11}" = "yes"; then
4426 if test "${with_xpm}" != "no"; then
4427 old_c_flags
="${CFLAGS}"
4428 CFLAGS
="${LD_SWITCH_X_SITE}"
4429 ac_safe
=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4430 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4431 echo "configure:4432: checking for X11/xpm.h" >&5
4432 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4433 echo $ac_n "(cached) $ac_c" 1>&6
4435 cat > conftest.
$ac_ext <<EOF
4436 #line 4437 "configure"
4437 #include "confdefs.h"
4438 #include <X11/xpm.h>
4440 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4441 { (eval echo configure
:4442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4442 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4443 if test -z "$ac_err"; then
4445 eval "ac_cv_header_$ac_safe=yes"
4448 echo "configure: failed program was:" >&5
4449 cat conftest.
$ac_ext >&5
4451 eval "ac_cv_header_$ac_safe=no"
4455 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4456 echo "$ac_t""yes" 1>&6
4457 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
4458 echo "configure:4459: checking for XpmReadFileToPixmap in -lXpm" >&5
4459 ac_lib_var
=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
4460 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4461 echo $ac_n "(cached) $ac_c" 1>&6
4463 ac_save_LIBS
="$LIBS"
4464 LIBS
="-lXpm -lX11 $LIBS"
4465 cat > conftest.
$ac_ext <<EOF
4466 #line 4467 "configure"
4467 #include "confdefs.h"
4468 /* Override any gcc2 internal prototype to avoid an error. */
4469 /* We use char because int might match the return type of a gcc2
4470 builtin and then its argument prototype would still apply. */
4471 char XpmReadFileToPixmap();
4474 XpmReadFileToPixmap()
4477 if { (eval echo configure
:4478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4479 eval "ac_cv_lib_$ac_lib_var=yes"
4481 echo "configure: failed program was:" >&5
4482 cat conftest.
$ac_ext >&5
4484 eval "ac_cv_lib_$ac_lib_var=no"
4487 LIBS
="$ac_save_LIBS"
4490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4491 echo "$ac_t""yes" 1>&6
4494 echo "$ac_t""no" 1>&6
4498 echo "$ac_t""no" 1>&6
4501 CFLAGS
="${old_c_flags}"
4504 if test "${HAVE_XPM}" = "yes"; then
4505 cat >> confdefs.h
<<\EOF
4512 ### Use -ljpeg if available, unless `--with-jpeg=no'.
4514 if test "${HAVE_X11}" = "yes"; then
4515 if test "${with_jpeg}" != "no"; then
4516 old_c_flags
="${CFLAGS}"
4517 CFLAGS
="${LD_SWITCH_X_SITE} ${CFLAGS}"
4518 ac_safe
=`echo "jerror.h" | sed 'y%./+-%__p_%'`
4519 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6
4520 echo "configure:4521: checking for jerror.h" >&5
4521 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4522 echo $ac_n "(cached) $ac_c" 1>&6
4524 cat > conftest.
$ac_ext <<EOF
4525 #line 4526 "configure"
4526 #include "confdefs.h"
4529 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4530 { (eval echo configure
:4531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4531 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4532 if test -z "$ac_err"; then
4534 eval "ac_cv_header_$ac_safe=yes"
4537 echo "configure: failed program was:" >&5
4538 cat conftest.
$ac_ext >&5
4540 eval "ac_cv_header_$ac_safe=no"
4544 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4545 echo "$ac_t""yes" 1>&6
4546 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
4547 echo "configure:4548: checking for jpeg_destroy_compress in -ljpeg" >&5
4548 ac_lib_var
=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
4549 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4550 echo $ac_n "(cached) $ac_c" 1>&6
4552 ac_save_LIBS
="$LIBS"
4553 LIBS
="-ljpeg -lX11 $LIBS"
4554 cat > conftest.
$ac_ext <<EOF
4555 #line 4556 "configure"
4556 #include "confdefs.h"
4557 /* Override any gcc2 internal prototype to avoid an error. */
4558 /* We use char because int might match the return type of a gcc2
4559 builtin and then its argument prototype would still apply. */
4560 char jpeg_destroy_compress();
4563 jpeg_destroy_compress()
4566 if { (eval echo configure
:4567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4568 eval "ac_cv_lib_$ac_lib_var=yes"
4570 echo "configure: failed program was:" >&5
4571 cat conftest.
$ac_ext >&5
4573 eval "ac_cv_lib_$ac_lib_var=no"
4576 LIBS
="$ac_save_LIBS"
4579 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4580 echo "$ac_t""yes" 1>&6
4583 echo "$ac_t""no" 1>&6
4587 echo "$ac_t""no" 1>&6
4590 CFLAGS
="${old_c_flags}"
4593 if test "${HAVE_JPEG}" = "yes"; then
4594 cat >> confdefs.h
<<\EOF
4601 ### Use -lpng if available, unless `--with-png=no'.
4603 if test "${HAVE_X11}" = "yes"; then
4604 if test "${with_png}" != "no"; then
4605 old_c_flags
="${CFLAGS}"
4606 CFLAGS
="${LD_SWITCH_X_SITE} ${CFLAGS}"
4607 ac_safe
=`echo "png.h" | sed 'y%./+-%__p_%'`
4608 echo $ac_n "checking for png.h""... $ac_c" 1>&6
4609 echo "configure:4610: checking for png.h" >&5
4610 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4611 echo $ac_n "(cached) $ac_c" 1>&6
4613 cat > conftest.
$ac_ext <<EOF
4614 #line 4615 "configure"
4615 #include "confdefs.h"
4618 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4619 { (eval echo configure
:4620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4620 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4621 if test -z "$ac_err"; then
4623 eval "ac_cv_header_$ac_safe=yes"
4626 echo "configure: failed program was:" >&5
4627 cat conftest.
$ac_ext >&5
4629 eval "ac_cv_header_$ac_safe=no"
4633 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4634 echo "$ac_t""yes" 1>&6
4635 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6
4636 echo "configure:4637: checking for png_set_expand in -lpng" >&5
4637 ac_lib_var
=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'`
4638 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4639 echo $ac_n "(cached) $ac_c" 1>&6
4641 ac_save_LIBS
="$LIBS"
4642 LIBS
="-lpng -lX11 -lz -lm $LIBS"
4643 cat > conftest.
$ac_ext <<EOF
4644 #line 4645 "configure"
4645 #include "confdefs.h"
4646 /* Override any gcc2 internal prototype to avoid an error. */
4647 /* We use char because int might match the return type of a gcc2
4648 builtin and then its argument prototype would still apply. */
4649 char png_set_expand();
4655 if { (eval echo configure
:4656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4657 eval "ac_cv_lib_$ac_lib_var=yes"
4659 echo "configure: failed program was:" >&5
4660 cat conftest.
$ac_ext >&5
4662 eval "ac_cv_lib_$ac_lib_var=no"
4665 LIBS
="$ac_save_LIBS"
4668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4669 echo "$ac_t""yes" 1>&6
4672 echo "$ac_t""no" 1>&6
4676 echo "$ac_t""no" 1>&6
4679 CFLAGS
="${old_c_flags}"
4682 if test "${HAVE_PNG}" = "yes"; then
4683 cat >> confdefs.h
<<\EOF
4690 ### Use -ltiff if available, unless `--with-tiff=no'.
4692 if test "${HAVE_X11}" = "yes"; then
4693 if test "${with_tiff}" != "no"; then
4694 old_c_flags
="${CFLAGS}"
4695 CFLAGS
="${LD_SWITCH_X_SITE} ${CFLAGS}"
4696 ac_safe
=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
4697 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
4698 echo "configure:4699: checking for tiffio.h" >&5
4699 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4700 echo $ac_n "(cached) $ac_c" 1>&6
4702 cat > conftest.
$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4707 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4708 { (eval echo configure
:4709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4709 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4710 if test -z "$ac_err"; then
4712 eval "ac_cv_header_$ac_safe=yes"
4715 echo "configure: failed program was:" >&5
4716 cat conftest.
$ac_ext >&5
4718 eval "ac_cv_header_$ac_safe=no"
4722 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4723 echo "$ac_t""yes" 1>&6
4724 tifflibs
="-lX11 -lz -lm"
4725 # At least one tiff package requires the jpeg library.
4726 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
4727 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4728 echo "configure:4729: checking for TIFFGetVersion in -ltiff" >&5
4729 ac_lib_var
=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4730 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4731 echo $ac_n "(cached) $ac_c" 1>&6
4733 ac_save_LIBS
="$LIBS"
4734 LIBS
="-ltiff $tifflibs $LIBS"
4735 cat > conftest.
$ac_ext <<EOF
4736 #line 4737 "configure"
4737 #include "confdefs.h"
4738 /* Override any gcc2 internal prototype to avoid an error. */
4739 /* We use char because int might match the return type of a gcc2
4740 builtin and then its argument prototype would still apply. */
4741 char TIFFGetVersion();
4747 if { (eval echo configure
:4748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4749 eval "ac_cv_lib_$ac_lib_var=yes"
4751 echo "configure: failed program was:" >&5
4752 cat conftest.
$ac_ext >&5
4754 eval "ac_cv_lib_$ac_lib_var=no"
4757 LIBS
="$ac_save_LIBS"
4760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4761 echo "$ac_t""yes" 1>&6
4764 echo "$ac_t""no" 1>&6
4768 echo "$ac_t""no" 1>&6
4771 CFLAGS
="${old_c_flags}"
4774 if test "${HAVE_TIFF}" = "yes"; then
4775 cat >> confdefs.h
<<\EOF
4782 ### Use -lgif if available, unless `--with-gif=no'.
4784 if test "${HAVE_X11}" = "yes"; then
4785 if test "${with_gif}" != "no"; then
4786 old_c_flags
="${CFLAGS}"
4787 CFLAGS
="${LD_SWITCH_X_SITE} ${CFLAGS}"
4788 ac_safe
=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
4789 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
4790 echo "configure:4791: checking for gif_lib.h" >&5
4791 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4792 echo $ac_n "(cached) $ac_c" 1>&6
4794 cat > conftest.
$ac_ext <<EOF
4795 #line 4796 "configure"
4796 #include "confdefs.h"
4797 #include <gif_lib.h>
4799 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4800 { (eval echo configure
:4801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4801 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4802 if test -z "$ac_err"; then
4804 eval "ac_cv_header_$ac_safe=yes"
4807 echo "configure: failed program was:" >&5
4808 cat conftest.
$ac_ext >&5
4810 eval "ac_cv_header_$ac_safe=no"
4814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4815 echo "$ac_t""yes" 1>&6
4816 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6
4817 echo "configure:4818: checking for DGifOpen in -lungif" >&5
4818 ac_lib_var
=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'`
4819 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4820 echo $ac_n "(cached) $ac_c" 1>&6
4822 ac_save_LIBS
="$LIBS"
4823 LIBS
="-lungif -lX11 $LIBS"
4824 cat > conftest.
$ac_ext <<EOF
4825 #line 4826 "configure"
4826 #include "confdefs.h"
4827 /* Override any gcc2 internal prototype to avoid an error. */
4828 /* We use char because int might match the return type of a gcc2
4829 builtin and then its argument prototype would still apply. */
4836 if { (eval echo configure
:4837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4838 eval "ac_cv_lib_$ac_lib_var=yes"
4840 echo "configure: failed program was:" >&5
4841 cat conftest.
$ac_ext >&5
4843 eval "ac_cv_lib_$ac_lib_var=no"
4846 LIBS
="$ac_save_LIBS"
4849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4850 echo "$ac_t""yes" 1>&6
4853 echo "$ac_t""no" 1>&6
4857 echo "$ac_t""no" 1>&6
4860 CFLAGS
="${old_c_flags}"
4863 if test "${HAVE_GIF}" = "yes"; then
4864 cat >> confdefs.h
<<\EOF
4871 # If netdb.h doesn't declare h_errno, we must declare it by hand.
4872 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
4873 echo "configure:4874: checking whether netdb declares h_errno" >&5
4874 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
4875 echo $ac_n "(cached) $ac_c" 1>&6
4877 cat > conftest.
$ac_ext <<EOF
4878 #line 4879 "configure"
4879 #include "confdefs.h"
4885 if { (eval echo configure
:4886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4887 emacs_cv_netdb_declares_h_errno
=yes
4889 echo "configure: failed program was:" >&5
4890 cat conftest.
$ac_ext >&5
4892 emacs_cv_netdb_declares_h_errno
=no
4897 echo "$ac_t""$emacs_cv_netdb_declares_h_errno" 1>&6
4898 if test $emacs_cv_netdb_declares_h_errno = yes; then
4899 cat >> confdefs.h
<<\EOF
4900 #define HAVE_H_ERRNO 1
4905 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4906 # for constant arguments. Useless!
4907 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4908 echo "configure:4909: checking for working alloca.h" >&5
4909 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4910 echo $ac_n "(cached) $ac_c" 1>&6
4912 cat > conftest.
$ac_ext <<EOF
4913 #line 4914 "configure"
4914 #include "confdefs.h"
4917 void *p = alloca(2 * sizeof(int));
4920 if { (eval echo configure
:4921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4922 ac_cv_header_alloca_h
=yes
4924 echo "configure: failed program was:" >&5
4925 cat conftest.
$ac_ext >&5
4927 ac_cv_header_alloca_h
=no
4932 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4933 if test $ac_cv_header_alloca_h = yes; then
4934 cat >> confdefs.h
<<\EOF
4935 #define HAVE_ALLOCA_H 1
4940 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4941 echo "configure:4942: checking for alloca" >&5
4942 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4943 echo $ac_n "(cached) $ac_c" 1>&6
4945 cat > conftest.
$ac_ext <<EOF
4946 #line 4947 "configure"
4947 #include "confdefs.h"
4950 # define alloca __builtin_alloca
4953 # include <malloc.h>
4954 # define alloca _alloca
4957 # include <alloca.h>
4962 # ifndef alloca /* predefined by HP cc +Olibcalls */
4971 char *p = (char *) alloca(1);
4974 if { (eval echo configure
:4975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4976 ac_cv_func_alloca_works
=yes
4978 echo "configure: failed program was:" >&5
4979 cat conftest.
$ac_ext >&5
4981 ac_cv_func_alloca_works
=no
4986 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4987 if test $ac_cv_func_alloca_works = yes; then
4988 cat >> confdefs.h
<<\EOF
4989 #define HAVE_ALLOCA 1
4994 if test $ac_cv_func_alloca_works = no
; then
4995 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4996 # that cause trouble. Some versions do not even contain alloca or
4997 # contain a buggy version. If you still want to use their alloca,
4998 # use ar to extract alloca.o from them instead of compiling alloca.c.
4999 ALLOCA
=alloca.
${ac_objext}
5000 cat >> confdefs.h
<<\EOF
5005 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5006 echo "configure:5007: checking whether alloca needs Cray hooks" >&5
5007 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5008 echo $ac_n "(cached) $ac_c" 1>&6
5010 cat > conftest.
$ac_ext <<EOF
5011 #line 5012 "configure"
5012 #include "confdefs.h"
5013 #if defined(CRAY) && ! defined(CRAY2)
5020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5021 egrep "webecray" >/dev
/null
2>&1; then
5032 echo "$ac_t""$ac_cv_os_cray" 1>&6
5033 if test $ac_cv_os_cray = yes; then
5034 for ac_func
in _getb67 GETB67 getb67
; do
5035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5036 echo "configure:5037: checking for $ac_func" >&5
5037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5038 echo $ac_n "(cached) $ac_c" 1>&6
5040 cat > conftest.
$ac_ext <<EOF
5041 #line 5042 "configure"
5042 #include "confdefs.h"
5043 /* System header to define __stub macros and hopefully few prototypes,
5044 which can conflict with char $ac_func(); below. */
5046 /* Override any gcc2 internal prototype to avoid an error. */
5047 /* We use char because int might match the return type of a gcc2
5048 builtin and then its argument prototype would still apply. */
5053 /* The GNU C library defines this for functions which it implements
5054 to always fail with ENOSYS. Some functions are actually named
5055 something starting with __ and the normal name is an alias. */
5056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5064 if { (eval echo configure
:5065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5066 eval "ac_cv_func_$ac_func=yes"
5068 echo "configure: failed program was:" >&5
5069 cat conftest.
$ac_ext >&5
5071 eval "ac_cv_func_$ac_func=no"
5076 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5077 echo "$ac_t""yes" 1>&6
5078 cat >> confdefs.h
<<EOF
5079 #define CRAY_STACKSEG_END $ac_func
5084 echo "$ac_t""no" 1>&6
5090 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5091 echo "configure:5092: checking stack direction for C alloca" >&5
5092 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5093 echo $ac_n "(cached) $ac_c" 1>&6
5095 if test "$cross_compiling" = yes; then
5096 ac_cv_c_stack_direction
=0
5098 cat > conftest.
$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5101 find_stack_direction ()
5103 static char *addr = 0;
5108 return find_stack_direction ();
5111 return (&dummy > addr) ? 1 : -1;
5115 exit (find_stack_direction() < 0);
5118 if { (eval echo configure
:5119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5120 ac_cv_c_stack_direction
=1
5122 echo "configure: failed program was:" >&5
5123 cat conftest.
$ac_ext >&5
5125 ac_cv_c_stack_direction
=-1
5132 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5133 cat >> confdefs.h
<<EOF
5134 #define STACK_DIRECTION $ac_cv_c_stack_direction
5140 # fmod, logb, and frexp are found in -lm on most systems.
5141 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
5142 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
5143 echo "configure:5144: checking for sqrt in -lm" >&5
5144 ac_lib_var
=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
5145 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5146 echo $ac_n "(cached) $ac_c" 1>&6
5148 ac_save_LIBS
="$LIBS"
5150 cat > conftest.
$ac_ext <<EOF
5151 #line 5152 "configure"
5152 #include "confdefs.h"
5153 /* Override any gcc2 internal prototype to avoid an error. */
5154 /* We use char because int might match the return type of a gcc2
5155 builtin and then its argument prototype would still apply. */
5162 if { (eval echo configure
:5163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5164 eval "ac_cv_lib_$ac_lib_var=yes"
5166 echo "configure: failed program was:" >&5
5167 cat conftest.
$ac_ext >&5
5169 eval "ac_cv_lib_$ac_lib_var=no"
5172 LIBS
="$ac_save_LIBS"
5175 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5176 echo "$ac_t""yes" 1>&6
5177 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5178 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5179 cat >> confdefs.h
<<EOF
5180 #define $ac_tr_lib 1
5186 echo "$ac_t""no" 1>&6
5190 # Check for mail-locking functions in a "mail" library
5191 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
5192 echo "configure:5193: checking for maillock in -lmail" >&5
5193 ac_lib_var
=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
5194 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5195 echo $ac_n "(cached) $ac_c" 1>&6
5197 ac_save_LIBS
="$LIBS"
5199 cat > conftest.
$ac_ext <<EOF
5200 #line 5201 "configure"
5201 #include "confdefs.h"
5202 /* Override any gcc2 internal prototype to avoid an error. */
5203 /* We use char because int might match the return type of a gcc2
5204 builtin and then its argument prototype would still apply. */
5211 if { (eval echo configure
:5212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5213 eval "ac_cv_lib_$ac_lib_var=yes"
5215 echo "configure: failed program was:" >&5
5216 cat conftest.
$ac_ext >&5
5218 eval "ac_cv_lib_$ac_lib_var=no"
5221 LIBS
="$ac_save_LIBS"
5224 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5225 echo "$ac_t""yes" 1>&6
5226 ac_tr_lib
=HAVE_LIB
`echo mail | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5227 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5228 cat >> confdefs.h
<<EOF
5229 #define $ac_tr_lib 1
5235 echo "$ac_t""no" 1>&6
5238 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6
5239 echo "configure:5240: checking for maillock in -llockfile" >&5
5240 ac_lib_var
=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`
5241 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5242 echo $ac_n "(cached) $ac_c" 1>&6
5244 ac_save_LIBS
="$LIBS"
5245 LIBS
="-llockfile $LIBS"
5246 cat > conftest.
$ac_ext <<EOF
5247 #line 5248 "configure"
5248 #include "confdefs.h"
5249 /* Override any gcc2 internal prototype to avoid an error. */
5250 /* We use char because int might match the return type of a gcc2
5251 builtin and then its argument prototype would still apply. */
5258 if { (eval echo configure
:5259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5260 eval "ac_cv_lib_$ac_lib_var=yes"
5262 echo "configure: failed program was:" >&5
5263 cat conftest.
$ac_ext >&5
5265 eval "ac_cv_lib_$ac_lib_var=no"
5268 LIBS
="$ac_save_LIBS"
5271 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5272 echo "$ac_t""yes" 1>&6
5273 ac_tr_lib
=HAVE_LIB
`echo lockfile | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5274 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5275 cat >> confdefs.h
<<EOF
5276 #define $ac_tr_lib 1
5279 LIBS
="-llockfile $LIBS"
5282 echo "$ac_t""no" 1>&6
5285 # If we have the shared liblockfile, assume we must use it for mail
5286 # locking (e.g. Debian). If we couldn't link against liblockfile
5287 # (no liblockfile.a installed), ensure that we don't need to.
5288 if test "$ac_cv_lib_lockfile_maillock" = no
; then
5289 # Extract the first word of "liblockfile.so", so it can be a program name with args.
5290 set dummy liblockfile.so
; ac_word
=$2
5291 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5292 echo "configure:5293: checking for $ac_word" >&5
5293 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then
5294 echo $ac_n "(cached) $ac_c" 1>&6
5296 if test -n "$liblockfile"; then
5297 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
5299 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5300 ac_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
5301 for ac_dir
in $ac_dummy; do
5302 test -z "$ac_dir" && ac_dir
=.
5303 if test -f $ac_dir/$ac_word; then
5304 ac_cv_prog_liblockfile
="yes"
5309 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
5312 liblockfile
="$ac_cv_prog_liblockfile"
5313 if test -n "$liblockfile"; then
5314 echo "$ac_t""$liblockfile" 1>&6
5316 echo "$ac_t""no" 1>&6
5319 if test $ac_cv_prog_liblockfile = yes; then
5320 { echo "configure: error: Shared liblockfile found but can't link against it.
5321 This probably means that movemail could lose mail.
5322 There may be a \`development' package to install containing liblockfile." 1>&2; exit 1; }
5323 else cat >> confdefs.h
<<\EOF
5324 #define LIBMAIL -llockfile
5330 for ac_func
in touchlock
5332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5333 echo "configure:5334: checking for $ac_func" >&5
5334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5335 echo $ac_n "(cached) $ac_c" 1>&6
5337 cat > conftest.
$ac_ext <<EOF
5338 #line 5339 "configure"
5339 #include "confdefs.h"
5340 /* System header to define __stub macros and hopefully few prototypes,
5341 which can conflict with char $ac_func(); below. */
5343 /* Override any gcc2 internal prototype to avoid an error. */
5344 /* We use char because int might match the return type of a gcc2
5345 builtin and then its argument prototype would still apply. */
5350 /* The GNU C library defines this for functions which it implements
5351 to always fail with ENOSYS. Some functions are actually named
5352 something starting with __ and the normal name is an alias. */
5353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5361 if { (eval echo configure
:5362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5363 eval "ac_cv_func_$ac_func=yes"
5365 echo "configure: failed program was:" >&5
5366 cat conftest.
$ac_ext >&5
5368 eval "ac_cv_func_$ac_func=no"
5373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5374 echo "$ac_t""yes" 1>&6
5375 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5376 cat >> confdefs.h
<<EOF
5377 #define $ac_tr_func 1
5381 echo "$ac_t""no" 1>&6
5385 for ac_hdr
in maillock.h
5387 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5388 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5389 echo "configure:5390: checking for $ac_hdr" >&5
5390 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5391 echo $ac_n "(cached) $ac_c" 1>&6
5393 cat > conftest.
$ac_ext <<EOF
5394 #line 5395 "configure"
5395 #include "confdefs.h"
5398 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5399 { (eval echo configure
:5400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5400 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5401 if test -z "$ac_err"; then
5403 eval "ac_cv_header_$ac_safe=yes"
5406 echo "configure: failed program was:" >&5
5407 cat conftest.
$ac_ext >&5
5409 eval "ac_cv_header_$ac_safe=no"
5413 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5414 echo "$ac_t""yes" 1>&6
5415 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5416 cat >> confdefs.h
<<EOF
5417 #define $ac_tr_hdr 1
5421 echo "$ac_t""no" 1>&6
5426 for ac_func
in gettimeofday gethostname getdomainname dup2 \
5427 rename closedir mkdir
rmdir sysinfo \
5428 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
5429 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
5430 utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo \
5431 __fpending ftello getloadavg mblen mbrlen strsignal setitimer ualarm
5433 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5434 echo "configure:5435: checking for $ac_func" >&5
5435 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5436 echo $ac_n "(cached) $ac_c" 1>&6
5438 cat > conftest.
$ac_ext <<EOF
5439 #line 5440 "configure"
5440 #include "confdefs.h"
5441 /* System header to define __stub macros and hopefully few prototypes,
5442 which can conflict with char $ac_func(); below. */
5444 /* Override any gcc2 internal prototype to avoid an error. */
5445 /* We use char because int might match the return type of a gcc2
5446 builtin and then its argument prototype would still apply. */
5451 /* The GNU C library defines this for functions which it implements
5452 to always fail with ENOSYS. Some functions are actually named
5453 something starting with __ and the normal name is an alias. */
5454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5462 if { (eval echo configure
:5463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5464 eval "ac_cv_func_$ac_func=yes"
5466 echo "configure: failed program was:" >&5
5467 cat conftest.
$ac_ext >&5
5469 eval "ac_cv_func_$ac_func=no"
5474 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5475 echo "$ac_t""yes" 1>&6
5476 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5477 cat >> confdefs.h
<<EOF
5478 #define $ac_tr_func 1
5482 echo "$ac_t""no" 1>&6
5487 # Check this now, so that we will NOT find the above functions in ncurses.
5488 # That is because we have not set up to link ncurses in lib-src.
5489 # It's better to believe a function is not available
5490 # than to expect to find it in ncurses.
5491 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
5492 echo "configure:5493: checking for tparm in -lncurses" >&5
5493 ac_lib_var
=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
5494 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5495 echo $ac_n "(cached) $ac_c" 1>&6
5497 ac_save_LIBS
="$LIBS"
5498 LIBS
="-lncurses $LIBS"
5499 cat > conftest.
$ac_ext <<EOF
5500 #line 5501 "configure"
5501 #include "confdefs.h"
5502 /* Override any gcc2 internal prototype to avoid an error. */
5503 /* We use char because int might match the return type of a gcc2
5504 builtin and then its argument prototype would still apply. */
5511 if { (eval echo configure
:5512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5513 eval "ac_cv_lib_$ac_lib_var=yes"
5515 echo "configure: failed program was:" >&5
5516 cat conftest.
$ac_ext >&5
5518 eval "ac_cv_lib_$ac_lib_var=no"
5521 LIBS
="$ac_save_LIBS"
5524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5525 echo "$ac_t""yes" 1>&6
5526 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5527 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5528 cat >> confdefs.h
<<EOF
5529 #define $ac_tr_lib 1
5532 LIBS
="-lncurses $LIBS"
5535 echo "$ac_t""no" 1>&6
5539 # These tell us which Kerberos-related libraries to use.
5540 if test "${with_kerberos+set}" = set; then
5541 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
5542 echo "configure:5543: checking for com_err in -lcom_err" >&5
5543 ac_lib_var
=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
5544 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5545 echo $ac_n "(cached) $ac_c" 1>&6
5547 ac_save_LIBS
="$LIBS"
5548 LIBS
="-lcom_err $LIBS"
5549 cat > conftest.
$ac_ext <<EOF
5550 #line 5551 "configure"
5551 #include "confdefs.h"
5552 /* Override any gcc2 internal prototype to avoid an error. */
5553 /* We use char because int might match the return type of a gcc2
5554 builtin and then its argument prototype would still apply. */
5561 if { (eval echo configure
:5562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5563 eval "ac_cv_lib_$ac_lib_var=yes"
5565 echo "configure: failed program was:" >&5
5566 cat conftest.
$ac_ext >&5
5568 eval "ac_cv_lib_$ac_lib_var=no"
5571 LIBS
="$ac_save_LIBS"
5574 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5575 echo "$ac_t""yes" 1>&6
5576 ac_tr_lib
=HAVE_LIB
`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5577 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5578 cat >> confdefs.h
<<EOF
5579 #define $ac_tr_lib 1
5582 LIBS
="-lcom_err $LIBS"
5585 echo "$ac_t""no" 1>&6
5588 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6
5589 echo "configure:5590: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
5590 ac_lib_var
=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
5591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5592 echo $ac_n "(cached) $ac_c" 1>&6
5594 ac_save_LIBS
="$LIBS"
5595 LIBS
="-lk5crypto $LIBS"
5596 cat > conftest.
$ac_ext <<EOF
5597 #line 5598 "configure"
5598 #include "confdefs.h"
5599 /* Override any gcc2 internal prototype to avoid an error. */
5600 /* We use char because int might match the return type of a gcc2
5601 builtin and then its argument prototype would still apply. */
5602 char mit_des_cbc_encrypt();
5605 mit_des_cbc_encrypt()
5608 if { (eval echo configure
:5609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5610 eval "ac_cv_lib_$ac_lib_var=yes"
5612 echo "configure: failed program was:" >&5
5613 cat conftest.
$ac_ext >&5
5615 eval "ac_cv_lib_$ac_lib_var=no"
5618 LIBS
="$ac_save_LIBS"
5621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5622 echo "$ac_t""yes" 1>&6
5623 ac_tr_lib
=HAVE_LIB
`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5624 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5625 cat >> confdefs.h
<<EOF
5626 #define $ac_tr_lib 1
5629 LIBS
="-lk5crypto $LIBS"
5632 echo "$ac_t""no" 1>&6
5635 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
5636 echo "configure:5637: checking for mit_des_cbc_encrypt in -lcrypto" >&5
5637 ac_lib_var
=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
5638 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5639 echo $ac_n "(cached) $ac_c" 1>&6
5641 ac_save_LIBS
="$LIBS"
5642 LIBS
="-lcrypto $LIBS"
5643 cat > conftest.
$ac_ext <<EOF
5644 #line 5645 "configure"
5645 #include "confdefs.h"
5646 /* Override any gcc2 internal prototype to avoid an error. */
5647 /* We use char because int might match the return type of a gcc2
5648 builtin and then its argument prototype would still apply. */
5649 char mit_des_cbc_encrypt();
5652 mit_des_cbc_encrypt()
5655 if { (eval echo configure
:5656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5657 eval "ac_cv_lib_$ac_lib_var=yes"
5659 echo "configure: failed program was:" >&5
5660 cat conftest.
$ac_ext >&5
5662 eval "ac_cv_lib_$ac_lib_var=no"
5665 LIBS
="$ac_save_LIBS"
5668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5669 echo "$ac_t""yes" 1>&6
5670 ac_tr_lib
=HAVE_LIB
`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5671 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5672 cat >> confdefs.h
<<EOF
5673 #define $ac_tr_lib 1
5676 LIBS
="-lcrypto $LIBS"
5679 echo "$ac_t""no" 1>&6
5682 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6
5683 echo "configure:5684: checking for krb5_init_context in -lkrb5" >&5
5684 ac_lib_var
=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'`
5685 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5686 echo $ac_n "(cached) $ac_c" 1>&6
5688 ac_save_LIBS
="$LIBS"
5690 cat > conftest.
$ac_ext <<EOF
5691 #line 5692 "configure"
5692 #include "confdefs.h"
5693 /* Override any gcc2 internal prototype to avoid an error. */
5694 /* We use char because int might match the return type of a gcc2
5695 builtin and then its argument prototype would still apply. */
5696 char krb5_init_context();
5702 if { (eval echo configure
:5703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5704 eval "ac_cv_lib_$ac_lib_var=yes"
5706 echo "configure: failed program was:" >&5
5707 cat conftest.
$ac_ext >&5
5709 eval "ac_cv_lib_$ac_lib_var=no"
5712 LIBS
="$ac_save_LIBS"
5715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5716 echo "$ac_t""yes" 1>&6
5717 ac_tr_lib
=HAVE_LIB
`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5718 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5719 cat >> confdefs.h
<<EOF
5720 #define $ac_tr_lib 1
5726 echo "$ac_t""no" 1>&6
5729 if test "${with_kerberos5+set}" != set; then
5730 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6
5731 echo "configure:5732: checking for des_cbc_encrypt in -ldes425" >&5
5732 ac_lib_var
=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
5733 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5734 echo $ac_n "(cached) $ac_c" 1>&6
5736 ac_save_LIBS
="$LIBS"
5737 LIBS
="-ldes425 $LIBS"
5738 cat > conftest.
$ac_ext <<EOF
5739 #line 5740 "configure"
5740 #include "confdefs.h"
5741 /* Override any gcc2 internal prototype to avoid an error. */
5742 /* We use char because int might match the return type of a gcc2
5743 builtin and then its argument prototype would still apply. */
5744 char des_cbc_encrypt();
5750 if { (eval echo configure
:5751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5752 eval "ac_cv_lib_$ac_lib_var=yes"
5754 echo "configure: failed program was:" >&5
5755 cat conftest.
$ac_ext >&5
5757 eval "ac_cv_lib_$ac_lib_var=no"
5760 LIBS
="$ac_save_LIBS"
5763 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5764 echo "$ac_t""yes" 1>&6
5765 ac_tr_lib
=HAVE_LIB
`echo des425 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5766 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5767 cat >> confdefs.h
<<EOF
5768 #define $ac_tr_lib 1
5771 LIBS
="-ldes425 $LIBS"
5774 echo "$ac_t""no" 1>&6
5775 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6
5776 echo "configure:5777: checking for des_cbc_encrypt in -ldes" >&5
5777 ac_lib_var
=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
5778 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5779 echo $ac_n "(cached) $ac_c" 1>&6
5781 ac_save_LIBS
="$LIBS"
5783 cat > conftest.
$ac_ext <<EOF
5784 #line 5785 "configure"
5785 #include "confdefs.h"
5786 /* Override any gcc2 internal prototype to avoid an error. */
5787 /* We use char because int might match the return type of a gcc2
5788 builtin and then its argument prototype would still apply. */
5789 char des_cbc_encrypt();
5795 if { (eval echo configure
:5796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5797 eval "ac_cv_lib_$ac_lib_var=yes"
5799 echo "configure: failed program was:" >&5
5800 cat conftest.
$ac_ext >&5
5802 eval "ac_cv_lib_$ac_lib_var=no"
5805 LIBS
="$ac_save_LIBS"
5808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5809 echo "$ac_t""yes" 1>&6
5810 ac_tr_lib
=HAVE_LIB
`echo des | sed -e 's/^a-zA-Z0-9_/_/g' \
5811 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5812 cat >> confdefs.h
<<EOF
5813 #define $ac_tr_lib 1
5819 echo "$ac_t""no" 1>&6
5824 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6
5825 echo "configure:5826: checking for krb_get_cred in -lkrb4" >&5
5826 ac_lib_var
=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'`
5827 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5828 echo $ac_n "(cached) $ac_c" 1>&6
5830 ac_save_LIBS
="$LIBS"
5832 cat > conftest.
$ac_ext <<EOF
5833 #line 5834 "configure"
5834 #include "confdefs.h"
5835 /* Override any gcc2 internal prototype to avoid an error. */
5836 /* We use char because int might match the return type of a gcc2
5837 builtin and then its argument prototype would still apply. */
5838 char krb_get_cred();
5844 if { (eval echo configure
:5845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5846 eval "ac_cv_lib_$ac_lib_var=yes"
5848 echo "configure: failed program was:" >&5
5849 cat conftest.
$ac_ext >&5
5851 eval "ac_cv_lib_$ac_lib_var=no"
5854 LIBS
="$ac_save_LIBS"
5857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5858 echo "$ac_t""yes" 1>&6
5859 ac_tr_lib
=HAVE_LIB
`echo krb4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5860 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5861 cat >> confdefs.h
<<EOF
5862 #define $ac_tr_lib 1
5868 echo "$ac_t""no" 1>&6
5869 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6
5870 echo "configure:5871: checking for krb_get_cred in -lkrb" >&5
5871 ac_lib_var
=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'`
5872 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5873 echo $ac_n "(cached) $ac_c" 1>&6
5875 ac_save_LIBS
="$LIBS"
5877 cat > conftest.
$ac_ext <<EOF
5878 #line 5879 "configure"
5879 #include "confdefs.h"
5880 /* Override any gcc2 internal prototype to avoid an error. */
5881 /* We use char because int might match the return type of a gcc2
5882 builtin and then its argument prototype would still apply. */
5883 char krb_get_cred();
5889 if { (eval echo configure
:5890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5891 eval "ac_cv_lib_$ac_lib_var=yes"
5893 echo "configure: failed program was:" >&5
5894 cat conftest.
$ac_ext >&5
5896 eval "ac_cv_lib_$ac_lib_var=no"
5899 LIBS
="$ac_save_LIBS"
5902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5903 echo "$ac_t""yes" 1>&6
5904 ac_tr_lib
=HAVE_LIB
`echo krb | sed -e 's/^a-zA-Z0-9_/_/g' \
5905 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5906 cat >> confdefs.h
<<EOF
5907 #define $ac_tr_lib 1
5913 echo "$ac_t""no" 1>&6
5920 if test "${with_kerberos5+set}" = set; then
5921 for ac_hdr
in krb5.h
5923 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5924 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5925 echo "configure:5926: checking for $ac_hdr" >&5
5926 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5927 echo $ac_n "(cached) $ac_c" 1>&6
5929 cat > conftest.
$ac_ext <<EOF
5930 #line 5931 "configure"
5931 #include "confdefs.h"
5934 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5935 { (eval echo configure
:5936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5936 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5937 if test -z "$ac_err"; then
5939 eval "ac_cv_header_$ac_safe=yes"
5942 echo "configure: failed program was:" >&5
5943 cat conftest.
$ac_ext >&5
5945 eval "ac_cv_header_$ac_safe=no"
5949 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5950 echo "$ac_t""yes" 1>&6
5951 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5952 cat >> confdefs.h
<<EOF
5953 #define $ac_tr_hdr 1
5957 echo "$ac_t""no" 1>&6
5964 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5965 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5966 echo "configure:5967: checking for $ac_hdr" >&5
5967 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5968 echo $ac_n "(cached) $ac_c" 1>&6
5970 cat > conftest.
$ac_ext <<EOF
5971 #line 5972 "configure"
5972 #include "confdefs.h"
5975 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5976 { (eval echo configure
:5977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5977 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5978 if test -z "$ac_err"; then
5980 eval "ac_cv_header_$ac_safe=yes"
5983 echo "configure: failed program was:" >&5
5984 cat conftest.
$ac_ext >&5
5986 eval "ac_cv_header_$ac_safe=no"
5990 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5991 echo "$ac_t""yes" 1>&6
5992 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5993 cat >> confdefs.h
<<EOF
5994 #define $ac_tr_hdr 1
5998 echo "$ac_t""no" 1>&6
5999 for ac_hdr
in kerberosIV
/des.h
6001 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6002 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6003 echo "configure:6004: checking for $ac_hdr" >&5
6004 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6005 echo $ac_n "(cached) $ac_c" 1>&6
6007 cat > conftest.
$ac_ext <<EOF
6008 #line 6009 "configure"
6009 #include "confdefs.h"
6012 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6013 { (eval echo configure
:6014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6014 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6015 if test -z "$ac_err"; then
6017 eval "ac_cv_header_$ac_safe=yes"
6020 echo "configure: failed program was:" >&5
6021 cat conftest.
$ac_ext >&5
6023 eval "ac_cv_header_$ac_safe=no"
6027 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6028 echo "$ac_t""yes" 1>&6
6029 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6030 cat >> confdefs.h
<<EOF
6031 #define $ac_tr_hdr 1
6035 echo "$ac_t""no" 1>&6
6036 for ac_hdr
in kerberos
/des.h
6038 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6039 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6040 echo "configure:6041: checking for $ac_hdr" >&5
6041 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6042 echo $ac_n "(cached) $ac_c" 1>&6
6044 cat > conftest.
$ac_ext <<EOF
6045 #line 6046 "configure"
6046 #include "confdefs.h"
6049 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6050 { (eval echo configure
:6051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6051 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6052 if test -z "$ac_err"; then
6054 eval "ac_cv_header_$ac_safe=yes"
6057 echo "configure: failed program was:" >&5
6058 cat conftest.
$ac_ext >&5
6060 eval "ac_cv_header_$ac_safe=no"
6064 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6065 echo "$ac_t""yes" 1>&6
6066 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6067 cat >> confdefs.h
<<EOF
6068 #define $ac_tr_hdr 1
6072 echo "$ac_t""no" 1>&6
6084 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6085 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6086 echo "configure:6087: checking for $ac_hdr" >&5
6087 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6088 echo $ac_n "(cached) $ac_c" 1>&6
6090 cat > conftest.
$ac_ext <<EOF
6091 #line 6092 "configure"
6092 #include "confdefs.h"
6095 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6096 { (eval echo configure
:6097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6097 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6098 if test -z "$ac_err"; then
6100 eval "ac_cv_header_$ac_safe=yes"
6103 echo "configure: failed program was:" >&5
6104 cat conftest.
$ac_ext >&5
6106 eval "ac_cv_header_$ac_safe=no"
6110 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6111 echo "$ac_t""yes" 1>&6
6112 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6113 cat >> confdefs.h
<<EOF
6114 #define $ac_tr_hdr 1
6118 echo "$ac_t""no" 1>&6
6119 for ac_hdr
in kerberosIV
/krb.h
6121 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6122 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6123 echo "configure:6124: checking for $ac_hdr" >&5
6124 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6125 echo $ac_n "(cached) $ac_c" 1>&6
6127 cat > conftest.
$ac_ext <<EOF
6128 #line 6129 "configure"
6129 #include "confdefs.h"
6132 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6133 { (eval echo configure
:6134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6134 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6135 if test -z "$ac_err"; then
6137 eval "ac_cv_header_$ac_safe=yes"
6140 echo "configure: failed program was:" >&5
6141 cat conftest.
$ac_ext >&5
6143 eval "ac_cv_header_$ac_safe=no"
6147 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6148 echo "$ac_t""yes" 1>&6
6149 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6150 cat >> confdefs.h
<<EOF
6151 #define $ac_tr_hdr 1
6155 echo "$ac_t""no" 1>&6
6156 for ac_hdr
in kerberos
/krb.h
6158 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6159 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6160 echo "configure:6161: checking for $ac_hdr" >&5
6161 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6162 echo $ac_n "(cached) $ac_c" 1>&6
6164 cat > conftest.
$ac_ext <<EOF
6165 #line 6166 "configure"
6166 #include "confdefs.h"
6169 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6170 { (eval echo configure
:6171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6171 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6172 if test -z "$ac_err"; then
6174 eval "ac_cv_header_$ac_safe=yes"
6177 echo "configure: failed program was:" >&5
6178 cat conftest.
$ac_ext >&5
6180 eval "ac_cv_header_$ac_safe=no"
6184 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6185 echo "$ac_t""yes" 1>&6
6186 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6187 cat >> confdefs.h
<<EOF
6188 #define $ac_tr_hdr 1
6192 echo "$ac_t""no" 1>&6
6203 for ac_hdr
in com_err.h
6205 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6206 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6207 echo "configure:6208: checking for $ac_hdr" >&5
6208 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6209 echo $ac_n "(cached) $ac_c" 1>&6
6211 cat > conftest.
$ac_ext <<EOF
6212 #line 6213 "configure"
6213 #include "confdefs.h"
6216 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6217 { (eval echo configure
:6218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6218 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6219 if test -z "$ac_err"; then
6221 eval "ac_cv_header_$ac_safe=yes"
6224 echo "configure: failed program was:" >&5
6225 cat conftest.
$ac_ext >&5
6227 eval "ac_cv_header_$ac_safe=no"
6231 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6232 echo "$ac_t""yes" 1>&6
6233 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6234 cat >> confdefs.h
<<EOF
6235 #define $ac_tr_hdr 1
6239 echo "$ac_t""no" 1>&6
6245 # Solaris requires -lintl if you want strerror (which calls dgettext)
6246 # to return localized messages.
6247 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
6248 echo "configure:6249: checking for dgettext in -lintl" >&5
6249 ac_lib_var
=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
6250 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6251 echo $ac_n "(cached) $ac_c" 1>&6
6253 ac_save_LIBS
="$LIBS"
6255 cat > conftest.
$ac_ext <<EOF
6256 #line 6257 "configure"
6257 #include "confdefs.h"
6258 /* Override any gcc2 internal prototype to avoid an error. */
6259 /* We use char because int might match the return type of a gcc2
6260 builtin and then its argument prototype would still apply. */
6267 if { (eval echo configure
:6268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6269 eval "ac_cv_lib_$ac_lib_var=yes"
6271 echo "configure: failed program was:" >&5
6272 cat conftest.
$ac_ext >&5
6274 eval "ac_cv_lib_$ac_lib_var=no"
6277 LIBS
="$ac_save_LIBS"
6280 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6281 echo "$ac_t""yes" 1>&6
6282 ac_tr_lib
=HAVE_LIB
`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6283 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6284 cat >> confdefs.h
<<EOF
6285 #define $ac_tr_lib 1
6291 echo "$ac_t""no" 1>&6
6295 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
6296 echo "configure:6297: checking whether localtime caches TZ" >&5
6297 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
6298 echo $ac_n "(cached) $ac_c" 1>&6
6300 if test x
$ac_cv_func_tzset = xyes
; then
6301 if test "$cross_compiling" = yes; then
6302 # If we have tzset, assume the worst when cross-compiling.
6303 emacs_cv_localtime_cache
=yes
6305 cat > conftest.
$ac_ext <<EOF
6306 #line 6307 "configure"
6307 #include "confdefs.h"
6309 extern char **environ;
6313 for (to = from = environ; (*to = *from); from++)
6314 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
6317 char TZ_GMT0[] = "TZ=GMT0";
6318 char TZ_PST8[] = "TZ=PST8";
6321 time_t now = time ((time_t *) 0);
6322 int hour_GMT0, hour_unset;
6323 if (putenv (TZ_GMT0) != 0)
6325 hour_GMT0 = localtime (&now)->tm_hour;
6327 hour_unset = localtime (&now)->tm_hour;
6328 if (putenv (TZ_PST8) != 0)
6330 if (localtime (&now)->tm_hour == hour_GMT0)
6333 if (localtime (&now)->tm_hour != hour_unset)
6338 if { (eval echo configure
:6339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6340 emacs_cv_localtime_cache
=no
6342 echo "configure: failed program was:" >&5
6343 cat conftest.
$ac_ext >&5
6345 emacs_cv_localtime_cache
=yes
6351 # If we lack tzset, report that localtime does not cache TZ,
6352 # since we can't invalidate the cache if we don't have tzset.
6353 emacs_cv_localtime_cache
=no
6356 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
6357 if test $emacs_cv_localtime_cache = yes; then
6358 cat >> confdefs.h
<<\EOF
6359 #define LOCALTIME_CACHE 1
6364 if test "x$HAVE_TIMEVAL" = xyes
; then
6365 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
6366 echo "configure:6367: checking whether gettimeofday can accept two arguments" >&5
6367 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
6368 echo $ac_n "(cached) $ac_c" 1>&6
6370 cat > conftest.
$ac_ext <<EOF
6371 #line 6372 "configure"
6372 #include "confdefs.h"
6374 #ifdef TIME_WITH_SYS_TIME
6375 #include <sys/time.h>
6378 #ifdef HAVE_SYS_TIME_H
6379 #include <sys/time.h>
6387 struct timeval time;
6388 struct timezone dummy;
6389 gettimeofday (&time, &dummy);
6393 if { (eval echo configure
:6394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6395 emacs_cv_gettimeofday_two_arguments
=yes
6397 echo "configure: failed program was:" >&5
6398 cat conftest.
$ac_ext >&5
6400 emacs_cv_gettimeofday_two_arguments
=no
6405 echo "$ac_t""$emacs_cv_gettimeofday_two_arguments" 1>&6
6406 if test $emacs_cv_gettimeofday_two_arguments = no
; then
6407 cat >> confdefs.h
<<\EOF
6408 #define GETTIMEOFDAY_ONE_ARGUMENT 1
6415 echo $ac_n "checking for socket""... $ac_c" 1>&6
6416 echo "configure:6417: checking for socket" >&5
6417 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
6418 echo $ac_n "(cached) $ac_c" 1>&6
6420 cat > conftest.
$ac_ext <<EOF
6421 #line 6422 "configure"
6422 #include "confdefs.h"
6423 /* System header to define __stub macros and hopefully few prototypes,
6424 which can conflict with char socket(); below. */
6426 /* Override any gcc2 internal prototype to avoid an error. */
6427 /* We use char because int might match the return type of a gcc2
6428 builtin and then its argument prototype would still apply. */
6433 /* The GNU C library defines this for functions which it implements
6434 to always fail with ENOSYS. Some functions are actually named
6435 something starting with __ and the normal name is an alias. */
6436 #if defined (__stub_socket) || defined (__stub___socket)
6444 if { (eval echo configure
:6445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6446 eval "ac_cv_func_socket=yes"
6448 echo "configure: failed program was:" >&5
6449 cat conftest.
$ac_ext >&5
6451 eval "ac_cv_func_socket=no"
6456 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
6457 echo "$ac_t""yes" 1>&6
6460 echo "$ac_t""no" 1>&6
6464 if test $ok_so_far = yes; then
6465 ac_safe
=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
6466 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
6467 echo "configure:6468: checking for netinet/in.h" >&5
6468 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6469 echo $ac_n "(cached) $ac_c" 1>&6
6471 cat > conftest.
$ac_ext <<EOF
6472 #line 6473 "configure"
6473 #include "confdefs.h"
6474 #include <netinet/in.h>
6476 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6477 { (eval echo configure
:6478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6478 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6479 if test -z "$ac_err"; then
6481 eval "ac_cv_header_$ac_safe=yes"
6484 echo "configure: failed program was:" >&5
6485 cat conftest.
$ac_ext >&5
6487 eval "ac_cv_header_$ac_safe=no"
6491 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6492 echo "$ac_t""yes" 1>&6
6495 echo "$ac_t""no" 1>&6
6500 if test $ok_so_far = yes; then
6501 ac_safe
=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
6502 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
6503 echo "configure:6504: checking for arpa/inet.h" >&5
6504 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6505 echo $ac_n "(cached) $ac_c" 1>&6
6507 cat > conftest.
$ac_ext <<EOF
6508 #line 6509 "configure"
6509 #include "confdefs.h"
6510 #include <arpa/inet.h>
6512 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6513 { (eval echo configure
:6514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6514 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6515 if test -z "$ac_err"; then
6517 eval "ac_cv_header_$ac_safe=yes"
6520 echo "configure: failed program was:" >&5
6521 cat conftest.
$ac_ext >&5
6523 eval "ac_cv_header_$ac_safe=no"
6527 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6528 echo "$ac_t""yes" 1>&6
6531 echo "$ac_t""no" 1>&6
6536 if test $ok_so_far = yes; then
6537 cat >> confdefs.h
<<\EOF
6538 #define HAVE_INET_SOCKETS 1
6543 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
6544 cat >> confdefs.h
<<\EOF
6545 #define HAVE_AIX_SMT_EXP 1
6550 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6
6551 echo "configure:6552: checking whether system supports dynamic ptys" >&5
6552 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
6553 echo "$ac_t""yes" 1>&6
6554 cat >> confdefs.h
<<\EOF
6555 #define HAVE_DEV_PTMX 1
6559 echo "$ac_t""no" 1>&6
6562 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6563 echo "configure:6564: checking for pid_t" >&5
6564 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6565 echo $ac_n "(cached) $ac_c" 1>&6
6567 cat > conftest.
$ac_ext <<EOF
6568 #line 6569 "configure"
6569 #include "confdefs.h"
6570 #include <sys/types.h>
6576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6577 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6579 ac_cv_type_pid_t
=yes
6587 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6588 if test $ac_cv_type_pid_t = no
; then
6589 cat >> confdefs.h
<<\EOF
6595 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
6596 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
6597 echo "configure:6598: checking for vfork.h" >&5
6598 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6599 echo $ac_n "(cached) $ac_c" 1>&6
6601 cat > conftest.
$ac_ext <<EOF
6602 #line 6603 "configure"
6603 #include "confdefs.h"
6606 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6607 { (eval echo configure
:6608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6608 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6609 if test -z "$ac_err"; then
6611 eval "ac_cv_header_$ac_safe=yes"
6614 echo "configure: failed program was:" >&5
6615 cat conftest.
$ac_ext >&5
6617 eval "ac_cv_header_$ac_safe=no"
6621 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6622 echo "$ac_t""yes" 1>&6
6623 cat >> confdefs.h
<<\EOF
6624 #define HAVE_VFORK_H 1
6628 echo "$ac_t""no" 1>&6
6631 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
6632 echo "configure:6633: checking for working vfork" >&5
6633 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
6634 echo $ac_n "(cached) $ac_c" 1>&6
6636 if test "$cross_compiling" = yes; then
6637 echo $ac_n "checking for vfork""... $ac_c" 1>&6
6638 echo "configure:6639: checking for vfork" >&5
6639 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
6640 echo $ac_n "(cached) $ac_c" 1>&6
6642 cat > conftest.
$ac_ext <<EOF
6643 #line 6644 "configure"
6644 #include "confdefs.h"
6645 /* System header to define __stub macros and hopefully few prototypes,
6646 which can conflict with char vfork(); below. */
6648 /* Override any gcc2 internal prototype to avoid an error. */
6649 /* We use char because int might match the return type of a gcc2
6650 builtin and then its argument prototype would still apply. */
6655 /* The GNU C library defines this for functions which it implements
6656 to always fail with ENOSYS. Some functions are actually named
6657 something starting with __ and the normal name is an alias. */
6658 #if defined (__stub_vfork) || defined (__stub___vfork)
6666 if { (eval echo configure
:6667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6668 eval "ac_cv_func_vfork=yes"
6670 echo "configure: failed program was:" >&5
6671 cat conftest.
$ac_ext >&5
6673 eval "ac_cv_func_vfork=no"
6678 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
6679 echo "$ac_t""yes" 1>&6
6682 echo "$ac_t""no" 1>&6
6685 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6687 cat > conftest.
$ac_ext <<EOF
6688 #line 6689 "configure"
6689 #include "confdefs.h"
6690 /* Thanks to Paul Eggert for this test. */
6692 #include <sys/types.h>
6693 #include <sys/stat.h>
6694 #ifdef HAVE_UNISTD_H
6700 /* On some sparc systems, changes by the child to local and incoming
6701 argument registers are propagated back to the parent.
6702 The compiler is told about this with #include <vfork.h>,
6703 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
6704 Test for this by using a static variable whose address
6705 is put into a register that is clobbered by the vfork. */
6708 sparc_address_test (int arg)
6710 sparc_address_test (arg) int arg;
6728 pid_t parent = getpid ();
6731 sparc_address_test ();
6736 /* Here is another test for sparc vfork register problems.
6737 This test uses lots of local variables, at least
6738 as many local variables as main has allocated so far
6739 including compiler temporaries. 4 locals are enough for
6740 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
6741 A buggy compiler should reuse the register of parent
6742 for one of the local variables, since it will think that
6743 parent can't possibly be used any more in this routine.
6744 Assigning to the local variable will thus munge parent
6745 in the parent process. */
6747 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6748 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6749 /* Convince the compiler that p..p7 are live; otherwise, it might
6750 use the same hardware register for all 8 local variables. */
6751 if (p != p1 || p != p2 || p != p3 || p != p4
6752 || p != p5 || p != p6 || p != p7)
6755 /* On some systems (e.g. IRIX 3.3),
6756 vfork doesn't separate parent from child file descriptors.
6757 If the child closes a descriptor before it execs or exits,
6758 this munges the parent's descriptor as well.
6759 Test for this by closing stdout in the child. */
6760 _exit(close(fileno(stdout)) != 0);
6765 while (wait(&status) != child)
6768 /* Was there some problem with vforking? */
6771 /* Did the child fail? (This shouldn't happen.) */
6774 /* Did the vfork/compiler bug occur? */
6775 || parent != getpid()
6777 /* Did the file descriptor bug occur? */
6778 || fstat(fileno(stdout), &st) != 0
6783 if { (eval echo configure
:6784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6785 ac_cv_func_vfork_works
=yes
6787 echo "configure: failed program was:" >&5
6788 cat conftest.
$ac_ext >&5
6790 ac_cv_func_vfork_works
=no
6797 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
6798 if test $ac_cv_func_vfork_works = no
; then
6799 cat >> confdefs.h
<<\EOF
6806 # Set up the CFLAGS for real compilation, so we can substitute it.
6807 CFLAGS
="$REAL_CFLAGS"
6809 #### Find out which version of Emacs this is.
6810 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
6811 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
6812 if test x
"${version}" = x
; then
6813 { echo "configure: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." 1>&2; exit 1; }
6816 ### Specify what sort of things we'll be editing into Makefile and config.h.
6817 ### Use configuration here uncanonicalized to avoid exceeding size limits.
6848 cat >> confdefs.h
<<EOF
6849 #define EMACS_CONFIGURATION "${canonical}"
6852 cat >> confdefs.h
<<EOF
6853 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
6856 cat >> confdefs.h
<<EOF
6857 #define config_machfile "${machfile}"
6860 cat >> confdefs.h
<<EOF
6861 #define config_opsysfile "${opsysfile}"
6864 cat >> confdefs.h
<<EOF
6865 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
6868 cat >> confdefs.h
<<EOF
6869 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
6872 cat >> confdefs.h
<<EOF
6873 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
6876 cat >> confdefs.h
<<EOF
6877 #define UNEXEC_SRC ${UNEXEC_SRC}
6881 if test "${HAVE_X_WINDOWS}" = "yes" ; then
6882 cat >> confdefs.h
<<\EOF
6883 #define HAVE_X_WINDOWS 1
6887 if test "${USE_X_TOOLKIT}" != "none" ; then
6888 cat >> confdefs.h
<<\EOF
6889 #define USE_X_TOOLKIT 1
6893 if test "${HAVE_X11}" = "yes" ; then
6894 cat >> confdefs.h
<<\EOF
6899 if test "${HAVE_XFREE386}" = "yes" ; then
6900 cat >> confdefs.h
<<\EOF
6901 #define HAVE_XFREE386 1
6905 if test "${HAVE_MENUS}" = "yes" ; then
6906 cat >> confdefs.h
<<\EOF
6907 #define HAVE_MENUS 1
6911 if test "${GNU_MALLOC}" = "yes" ; then
6912 cat >> confdefs.h
<<\EOF
6913 #define GNU_MALLOC 1
6917 if test "${REL_ALLOC}" = "yes" ; then
6918 cat >> confdefs.h
<<\EOF
6924 #### Report on what we decided to do.
6926 Configured for \`${canonical}'.
6928 Where should the build process find the source code? ${srcdir}
6929 What operating system and machine description files should Emacs use?
6930 \`${opsysfile}' and \`${machfile}'
6931 What compiler should emacs be built with? ${CC} ${CFLAGS}
6932 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
6933 Should Emacs use the relocating allocator for buffers? ${REL_ALLOC}
6934 What window system should Emacs use? ${window_system}
6935 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
6937 if test -n "${x_includes}"; then
6938 echo " Where do we find X Windows header files? ${x_includes}"
6940 echo " Where do we find X Windows header files? Standard dirs"
6942 if test -n "${x_libraries}"; then
6943 echo " Where do we find X Windows libraries? ${x_libraries}"
6945 echo " Where do we find X Windows libraries? Standard dirs"
6948 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
6949 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
6950 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
6951 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
6952 echo " Does Emacs use -lungif? ${HAVE_GIF}"
6953 echo " Does Emacs use -lpng? ${HAVE_PNG}"
6954 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
6957 # Remove any trailing slashes in these variables.
6958 test "${prefix}" != NONE
&&
6959 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
6960 test "${exec_prefix}" != NONE
&&
6961 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
6964 cat > confcache
<<\EOF
6965 # This file is a shell script that caches the results of configure
6966 # tests run on this system so they can be shared between configure
6967 # scripts and configure runs. It is not useful on other systems.
6968 # If it contains results you don't want to keep, you may remove or edit it.
6970 # By default, configure uses ./config.cache as the cache file,
6971 # creating it if it does not exist already. You can give configure
6972 # the --cache-file=FILE option to use a different cache file; that is
6973 # what configure does when it calls configure scripts in
6974 # subdirectories, so they share the cache.
6975 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6976 # config.status only pays attention to the cache file if you give it the
6977 # --recheck option to rerun configure.
6980 # The following way of writing the cache mishandles newlines in values,
6981 # but we know of no workaround that is simple, portable, and efficient.
6982 # So, don't put newlines in cache variables' values.
6983 # Ultrix sh set writes to stderr and can't be redirected directly,
6984 # and sets the high bit in the cache file unless we assign to the vars.
6986 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6988 # `set' does not quote correctly, so add quotes (double-quote substitution
6989 # turns \\\\ into \\, and sed turns \\ into \).
6991 -e "s/'/'\\\\''/g" \
6992 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6995 # `set' quotes correctly as required by POSIX, so do not add quotes.
6996 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6999 if cmp -s $cache_file confcache
; then
7002 if test -w $cache_file; then
7003 echo "updating cache $cache_file"
7004 cat confcache
> $cache_file
7006 echo "not updating unwritable cache $cache_file"
7011 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7013 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7014 # Let make expand exec_prefix.
7015 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7017 # Any assignment to VPATH causes Sun make to only execute
7018 # the first set of double-colon rules, so remove it if not needed.
7019 # If there is a colon in the path, we need to keep it.
7020 if test "x$srcdir" = x.
; then
7021 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7024 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7026 DEFS
=-DHAVE_CONFIG_H
7028 # Without the "./", some shells look in PATH for config.status.
7029 : ${CONFIG_STATUS=./config.status}
7031 echo creating
$CONFIG_STATUS
7032 rm -f $CONFIG_STATUS
7033 cat > $CONFIG_STATUS <<EOF
7035 # Generated automatically by configure.
7036 # Run this file to recreate the current configuration.
7037 # This directory was configured as follows,
7038 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7040 # $0 $ac_configure_args
7042 # Compiler output produced by configure, useful for debugging
7043 # configure, is in ./config.log if it exists.
7045 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7048 case "\$ac_option" in
7049 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7050 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7051 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7052 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7053 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7055 -help | --help | --hel | --he | --h)
7056 echo "\$ac_cs_usage"; exit 0 ;;
7057 *) echo "\$ac_cs_usage"; exit 1 ;;
7061 ac_given_srcdir=$srcdir
7062 ac_given_INSTALL="$INSTALL"
7064 trap 'rm -fr `echo "Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \
7065 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \
7066 leim/Makefile src/config.h:src/config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7068 cat >> $CONFIG_STATUS <<EOF
7070 # Protect against being on the right side of a sed subst in config.status.
7071 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7072 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7076 s%@CFLAGS@%$CFLAGS%g
7077 s%@CPPFLAGS@%$CPPFLAGS%g
7078 s%@CXXFLAGS@%$CXXFLAGS%g
7079 s%@FFLAGS@%$FFLAGS%g
7081 s%@LDFLAGS@%$LDFLAGS%g
7083 s%@exec_prefix@%$exec_prefix%g
7084 s%@prefix@%$prefix%g
7085 s%@program_transform_name@%$program_transform_name%g
7086 s%@bindir@%$bindir%g
7087 s%@sbindir@%$sbindir%g
7088 s%@libexecdir@%$libexecdir%g
7089 s%@datadir@%$datadir%g
7090 s%@sysconfdir@%$sysconfdir%g
7091 s%@sharedstatedir@%$sharedstatedir%g
7092 s%@localstatedir@%$localstatedir%g
7093 s%@libdir@%$libdir%g
7094 s%@includedir@%$includedir%g
7095 s%@oldincludedir@%$oldincludedir%g
7096 s%@infodir@%$infodir%g
7097 s%@mandir@%$mandir%g
7099 s%@host_alias@%$host_alias%g
7100 s%@host_cpu@%$host_cpu%g
7101 s%@host_vendor@%$host_vendor%g
7102 s%@host_os@%$host_os%g
7106 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7107 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7108 s%@INSTALL_DATA@%$INSTALL_DATA%g
7110 s%@RANLIB@%$RANLIB%g
7111 s%@SET_MAKE@%$SET_MAKE%g
7112 s%@ALLOCA@%$ALLOCA%g
7113 s%@liblockfile@%$liblockfile%g
7114 s%@version@%$version%g
7115 s%@configuration@%$configuration%g
7116 s%@canonical@%$canonical%g
7117 s%@srcdir@%$srcdir%g
7118 s%@lispdir@%$lispdir%g
7119 s%@locallisppath@%$locallisppath%g
7120 s%@lisppath@%$lisppath%g
7121 s%@x_default_search_path@%$x_default_search_path%g
7122 s%@etcdir@%$etcdir%g
7123 s%@archlibdir@%$archlibdir%g
7124 s%@docdir@%$docdir%g
7125 s%@bitmapdir@%$bitmapdir%g
7126 s%@c_switch_system@%$c_switch_system%g
7127 s%@c_switch_machine@%$c_switch_machine%g
7128 s%@LD_SWITCH_X_SITE@%$LD_SWITCH_X_SITE%g
7129 s%@LD_SWITCH_X_SITE_AUX@%$LD_SWITCH_X_SITE_AUX%g
7130 s%@C_SWITCH_X_SITE@%$C_SWITCH_X_SITE%g
7131 s%@X_TOOLKIT_TYPE@%$X_TOOLKIT_TYPE%g
7132 s%@machfile@%$machfile%g
7133 s%@opsysfile@%$opsysfile%g
7138 cat >> $CONFIG_STATUS <<\EOF
7140 # Split the substitutions into bite-sized pieces for seds with
7141 # small command number limits, like on Digital OSF/1 and HP-UX.
7142 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
7143 ac_file
=1 # Number of current file.
7144 ac_beg
=1 # First line for current file.
7145 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
7148 while $ac_more_lines; do
7149 if test $ac_beg -gt 1; then
7150 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
7152 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
7154 if test ! -s conftest.s
$ac_file; then
7156 rm -f conftest.s
$ac_file
7158 if test -z "$ac_sed_cmds"; then
7159 ac_sed_cmds
="sed -f conftest.s$ac_file"
7161 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
7163 ac_file
=`expr $ac_file + 1`
7165 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
7168 if test -z "$ac_sed_cmds"; then
7173 cat >> $CONFIG_STATUS <<EOF
7175 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \
7176 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \
7179 cat >> $CONFIG_STATUS <<\EOF
7180 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
7181 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7183 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7184 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7185 *) ac_file_in
="${ac_file}.in" ;;
7188 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7190 # Remove last slash and all that follows it. Not all systems have dirname.
7191 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7192 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7193 # The file is in a subdirectory.
7194 test ! -d "$ac_dir" && mkdir
"$ac_dir"
7195 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
7196 # A "../" for each directory in $ac_dir_suffix.
7197 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7199 ac_dir_suffix
= ac_dots
=
7202 case "$ac_given_srcdir" in
7204 if test -z "$ac_dots"; then top_srcdir
=.
7205 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7206 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
7208 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7209 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
7212 case "$ac_given_INSTALL" in
7213 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
7214 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
7217 echo creating
"$ac_file"
7219 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7221 *Makefile
*) ac_comsub
="1i\\
7222 # $configure_input" ;;
7226 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7228 s%@configure_input@%$configure_input%g
7229 s%@srcdir@%$srcdir%g
7230 s%@top_srcdir@%$top_srcdir%g
7231 s%@INSTALL@%$INSTALL%g
7232 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
7236 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7237 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7239 # ac_d sets the value in "#define NAME VALUE" lines.
7240 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7241 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7244 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7245 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7246 ac_uB
='\([ ]\)%\1#\2define\3'
7249 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7250 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7251 ac_eB
='$%\1#\2define\3'
7255 if test "${CONFIG_HEADERS+set}" != set; then
7257 cat >> $CONFIG_STATUS <<EOF
7258 CONFIG_HEADERS="src/config.h:src/config.in"
7260 cat >> $CONFIG_STATUS <<\EOF
7262 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7263 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7265 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7266 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7267 *) ac_file_in
="${ac_file}.in" ;;
7270 echo creating
$ac_file
7272 rm -f conftest.frag conftest.
in conftest.out
7273 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7274 cat $ac_file_inputs > conftest.
in
7278 # Transform confdefs.h into a sed script conftest.vals that substitutes
7279 # the proper values into config.h.in to produce config.h. And first:
7280 # Protect against being on the right side of a sed subst in config.status.
7281 # Protect against being in an unquoted here document in config.status.
7283 cat > conftest.hdr
<<\EOF
7286 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7290 sed -n -f conftest.hdr confdefs.h > conftest.vals
7293 # This sed command replaces #undef with comments. This is necessary, for
7294 # example, in the case of _POSIX_SOURCE, which is predefined and required
7295 # on some systems where configure will not decide to define it.
7296 cat >> conftest.vals <<\EOF
7297 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7300 # Break up conftest.vals because some shells have a limit on
7301 # the size of here documents, and old seds have small limits too.
7306 ac_lines=`grep -c . conftest.vals
`
7307 # grep -c gives empty output for an empty file on some AIX systems.
7308 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7309 # Write a limited-size here document to conftest.frag.
7310 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7311 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7313 sed -f conftest.frag conftest.in > conftest.out
7315 mv conftest.out conftest.in
7317 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7319 mv conftest.tail conftest.vals
7323 cat >> $CONFIG_STATUS <<\EOF
7324 rm -f conftest.frag conftest.h
7325 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7326 cat conftest.in >> conftest.h
7328 if cmp -s $ac_file conftest.h 2>/dev/null; then
7329 echo "$ac_file is unchanged"
7332 # Remove last slash and all that follows it. Not all systems have dirname.
7333 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7334 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7335 # The file is in a subdirectory.
7336 test ! -d "$ac_dir" && mkdir "$ac_dir"
7339 mv conftest.h $ac_file
7344 cat >> $CONFIG_STATUS <<EOF
7345 CPP="$CPP" CPPFLAGS="$CPPFLAGS"
7347 cat >> $CONFIG_STATUS <<\EOF
7350 ### Make the necessary directories, if they don't exist.
7351 for dir in etc lisp ; do
7352 test -d ${dir} || mkdir ${dir}
7355 # Build src/Makefile from ${srcdir}/src/Makefile.c
7356 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
7357 # This must be done after src/config.h is built, since we rely on that file.
7359 # Now get this: Some word that is part of the ${srcdir} directory name
7360 # or the ${configuration} value might, just might, happen to be an
7361 # identifier like `sun4
' or `i386' or something
, and be predefined by
7362 # the C preprocessor to some helpful value like 1, or maybe the empty
7363 # string. Needless to say consequent macro substitutions are less
7364 # than conducive to the makefile finding the correct directory.
7365 undefs
="`echo $top_srcdir $configuration $canonical |
7366 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
7367 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
7370 echo creating src
/epaths.h
7373 echo creating lib-src
/Makefile
7375 rm -f junk.c junk1.c junk2.c
7376 sed -e '/start of cpp stuff/q' \
7377 < Makefile.c
> junk1.c
7378 sed -e '1,/start of cpp stuff/d'\
7379 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \
7380 < Makefile.c
> junk.c
7381 $CPP $undefs -I.
-I$top_srcdir/src
$CPPFLAGS junk.c | \
7382 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
7383 cat junk1.c junk2.c
> Makefile.new
7384 rm -f junk.c junk1.c junk2.c
7385 chmod 444 Makefile.new
7386 mv -f Makefile.new Makefile
7389 echo creating src
/Makefile
7391 rm -f junk.c junk1.c junk2.c
7392 sed -e '/start of cpp stuff/q' \
7393 < Makefile.c
> junk1.c
7394 sed -e '1,/start of cpp stuff/d'\
7395 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \
7396 < Makefile.c
> junk.c
7397 $CPP $undefs -I.
-I$top_srcdir/src
$CPPFLAGS junk.c | \
7398 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
7399 cat junk1.c junk2.c
> Makefile.new
7400 rm -f junk.c junk1.c junk2.c
7401 chmod 444 Makefile.new
7402 mv -f Makefile.new Makefile
7405 if test ! -f src
/.gdbinit
&& test -f $top_srcdir/src
/.gdbinit
; then
7406 echo creating src
/.gdbinit
7407 echo source $top_srcdir/src
/.gdbinit
> src
/.gdbinit
7410 # This is how we know whether to re-run configure in certain cases.
7411 touch src
/config.stamp
7416 chmod +x
$CONFIG_STATUS
7417 rm -fr confdefs
* $ac_clean_files
7418 test "$no_create" = yes ||
${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS ||
exit 1