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
;;
1684 if test "x$RANLIB" = x
; then
1689 if test $unported = yes; then
1690 { echo "configure: error: Emacs hasn't been ported to \`${canonical}' systems.
1691 Check \`etc/MACHINES' for recognized configuration names." 1>&2; exit 1; }
1694 machfile
="m/${machine}.h"
1695 opsysfile
="s/${opsys}.h"
1698 #### Choose a compiler.
1699 test -n "$CC" && cc_specified
=yes
1701 # Save the value of CFLAGS that the user specified.
1702 SPECIFIED_CFLAGS
="$CFLAGS"
1705 "yes" ) CC
="gcc" GCC
=yes ;;
1706 "no" ) : ${CC=cc} ;;
1707 * ) # Extract the first word of "gcc", so it can be a program name with args.
1708 set dummy gcc
; ac_word
=$2
1709 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1710 echo "configure:1711: checking for $ac_word" >&5
1711 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1712 echo $ac_n "(cached) $ac_c" 1>&6
1714 if test -n "$CC"; then
1715 ac_cv_prog_CC
="$CC" # Let the user override the test.
1717 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1719 for ac_dir
in $ac_dummy; do
1720 test -z "$ac_dir" && ac_dir
=.
1721 if test -f $ac_dir/$ac_word; then
1730 if test -n "$CC"; then
1731 echo "$ac_t""$CC" 1>&6
1733 echo "$ac_t""no" 1>&6
1736 if test -z "$CC"; then
1737 # Extract the first word of "cc", so it can be a program name with args.
1738 set dummy cc
; ac_word
=$2
1739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1740 echo "configure:1741: checking for $ac_word" >&5
1741 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1742 echo $ac_n "(cached) $ac_c" 1>&6
1744 if test -n "$CC"; then
1745 ac_cv_prog_CC
="$CC" # Let the user override the test.
1747 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1750 for ac_dir
in $ac_dummy; do
1751 test -z "$ac_dir" && ac_dir
=.
1752 if test -f $ac_dir/$ac_word; then
1753 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1754 ac_prog_rejected
=yes
1762 if test $ac_prog_rejected = yes; then
1763 # We found a bogon in the path, so make sure we never use it.
1764 set dummy
$ac_cv_prog_CC
1766 if test $# -gt 0; then
1767 # We chose a different compiler from the bogus one.
1768 # However, it has the same basename, so the bogon will be chosen
1769 # first if we set CC to just the basename; use the full file name.
1771 set dummy
"$ac_dir/$ac_word" "$@"
1779 if test -n "$CC"; then
1780 echo "$ac_t""$CC" 1>&6
1782 echo "$ac_t""no" 1>&6
1785 if test -z "$CC"; then
1786 case "`uname -s`" in
1788 # Extract the first word of "cl", so it can be a program name with args.
1789 set dummy cl
; ac_word
=$2
1790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1791 echo "configure:1792: checking for $ac_word" >&5
1792 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1793 echo $ac_n "(cached) $ac_c" 1>&6
1795 if test -n "$CC"; then
1796 ac_cv_prog_CC
="$CC" # Let the user override the test.
1798 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1800 for ac_dir
in $ac_dummy; do
1801 test -z "$ac_dir" && ac_dir
=.
1802 if test -f $ac_dir/$ac_word; then
1811 if test -n "$CC"; then
1812 echo "$ac_t""$CC" 1>&6
1814 echo "$ac_t""no" 1>&6
1819 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1822 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1823 echo "configure:1824: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1826 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1827 ac_cpp
='$CPP $CPPFLAGS'
1828 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1829 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1830 cross_compiling
=$ac_cv_prog_cc_cross
1832 cat > conftest.
$ac_ext << EOF
1834 #line 1835 "configure"
1835 #include "confdefs.h"
1839 if { (eval echo configure
:1840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1840 ac_cv_prog_cc_works
=yes
1841 # If we can't run a trivial program, we are probably using a cross compiler.
1842 if (.
/conftest
; exit) 2>/dev
/null
; then
1843 ac_cv_prog_cc_cross
=no
1845 ac_cv_prog_cc_cross
=yes
1848 echo "configure: failed program was:" >&5
1849 cat conftest.
$ac_ext >&5
1850 ac_cv_prog_cc_works
=no
1854 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1855 ac_cpp
='$CPP $CPPFLAGS'
1856 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1857 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1858 cross_compiling
=$ac_cv_prog_cc_cross
1860 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1861 if test $ac_cv_prog_cc_works = no
; then
1862 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1864 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1865 echo "configure:1866: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1866 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1867 cross_compiling
=$ac_cv_prog_cc_cross
1869 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1870 echo "configure:1871: checking whether we are using GNU C" >&5
1871 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1872 echo $ac_n "(cached) $ac_c" 1>&6
1874 cat > conftest.c
<<EOF
1879 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1886 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1888 if test $ac_cv_prog_gcc = yes; then
1894 ac_test_CFLAGS
="${CFLAGS+set}"
1895 ac_save_CFLAGS
="$CFLAGS"
1897 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1898 echo "configure:1899: checking whether ${CC-cc} accepts -g" >&5
1899 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1900 echo $ac_n "(cached) $ac_c" 1>&6
1902 echo 'void f(){}' > conftest.c
1903 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1912 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1913 if test "$ac_test_CFLAGS" = set; then
1914 CFLAGS
="$ac_save_CFLAGS"
1915 elif test $ac_cv_prog_cc_g = yes; then
1916 if test "$GCC" = yes; then
1922 if test "$GCC" = yes; then
1931 # On Suns, sometimes $CPP names a directory.
1932 if test -n "$CPP" && test -d "$CPP"; then
1936 #### Some systems specify a CPP to use unless we are using GCC.
1937 #### Now that we know whether we are using GCC, we can decide whether
1938 #### to use that one.
1939 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
1944 #### Some systems specify a CC to use unless we are using GCC.
1945 #### Now that we know whether we are using GCC, we can decide whether
1946 #### to use that one.
1947 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
1948 test x
$cc_specified != xyes
1953 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
1955 CC
="$CC $GCC_TEST_OPTIONS"
1958 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
1960 CC
="$CC $NON_GCC_TEST_OPTIONS"
1963 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
1965 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
1968 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
1970 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
1973 #### Some other nice autoconf tests. If you add a test here which
1974 #### should make an entry in src/config.h, don't forget to add an
1975 #### #undef clause to src/config.h.in for autoconf to modify.
1977 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1978 echo "configure:1979: checking whether ln -s works" >&5
1979 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1980 echo $ac_n "(cached) $ac_c" 1>&6
1983 if ln -s X conftestdata
2>/dev
/null
1986 ac_cv_prog_LN_S
="ln -s"
1991 LN_S
="$ac_cv_prog_LN_S"
1992 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1993 echo "$ac_t""yes" 1>&6
1995 echo "$ac_t""no" 1>&6
1998 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1999 echo "configure:2000: checking how to run the C preprocessor" >&5
2000 # On Suns, sometimes $CPP names a directory.
2001 if test -n "$CPP" && test -d "$CPP"; then
2004 if test -z "$CPP"; then
2005 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2006 echo $ac_n "(cached) $ac_c" 1>&6
2008 # This must be in double quotes, not single quotes, because CPP may get
2009 # substituted into the Makefile and "${CC-cc}" will confuse make.
2011 # On the NeXT, cc -E runs the code through the compiler's parser,
2012 # not just through cpp.
2013 cat > conftest.
$ac_ext <<EOF
2014 #line 2015 "configure"
2015 #include "confdefs.h"
2019 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2020 { (eval echo configure
:2021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2021 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2022 if test -z "$ac_err"; then
2026 echo "configure: failed program was:" >&5
2027 cat conftest.
$ac_ext >&5
2029 CPP
="${CC-cc} -E -traditional-cpp"
2030 cat > conftest.
$ac_ext <<EOF
2031 #line 2032 "configure"
2032 #include "confdefs.h"
2036 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2037 { (eval echo configure
:2038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2038 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2039 if test -z "$ac_err"; then
2043 echo "configure: failed program was:" >&5
2044 cat conftest.
$ac_ext >&5
2046 CPP
="${CC-cc} -nologo -E"
2047 cat > conftest.
$ac_ext <<EOF
2048 #line 2049 "configure"
2049 #include "confdefs.h"
2053 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2054 { (eval echo configure
:2055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2055 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2056 if test -z "$ac_err"; then
2060 echo "configure: failed program was:" >&5
2061 cat conftest.
$ac_ext >&5
2070 ac_cv_prog_CPP
="$CPP"
2072 CPP
="$ac_cv_prog_CPP"
2074 ac_cv_prog_CPP
="$CPP"
2076 echo "$ac_t""$CPP" 1>&6
2078 # Find a good install program. We prefer a C program (faster),
2079 # so one script is as good as another. But avoid the broken or
2080 # incompatible versions:
2081 # SysV /etc/install, /usr/sbin/install
2082 # SunOS /usr/etc/install
2083 # IRIX /sbin/install
2085 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2086 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2087 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2088 # ./install, which can be erroneously created by make from ./install.sh.
2089 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2090 echo "configure:2091: checking for a BSD compatible install" >&5
2091 if test -z "$INSTALL"; then
2092 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2093 echo $ac_n "(cached) $ac_c" 1>&6
2095 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2096 for ac_dir
in $PATH; do
2097 # Account for people who put trailing slashes in PATH elements.
2099 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2101 # OSF1 and SCO ODT 3.0 have their own names for install.
2102 # Don't use installbsd from OSF since it installs stuff as root
2104 for ac_prog
in ginstall scoinst
install; do
2105 if test -f $ac_dir/$ac_prog; then
2106 if test $ac_prog = install &&
2107 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2108 # AIX install. It has an incompatible calling convention.
2111 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2122 if test "${ac_cv_path_install+set}" = set; then
2123 INSTALL
="$ac_cv_path_install"
2125 # As a last resort, use the slow shell script. We don't cache a
2126 # path for INSTALL within a source directory, because that will
2127 # break other packages using the cache if that directory is
2128 # removed, or if the path is relative.
2129 INSTALL
="$ac_install_sh"
2132 echo "$ac_t""$INSTALL" 1>&6
2134 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2135 # It thinks the first close brace ends the variable substitution.
2136 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2138 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2140 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2142 for ac_prog
in 'bison -y' byacc
2144 # Extract the first word of "$ac_prog", so it can be a program name with args.
2145 set dummy
$ac_prog; ac_word
=$2
2146 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2147 echo "configure:2148: checking for $ac_word" >&5
2148 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2149 echo $ac_n "(cached) $ac_c" 1>&6
2151 if test -n "$YACC"; then
2152 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2154 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2156 for ac_dir
in $ac_dummy; do
2157 test -z "$ac_dir" && ac_dir
=.
2158 if test -f $ac_dir/$ac_word; then
2159 ac_cv_prog_YACC
="$ac_prog"
2166 YACC
="$ac_cv_prog_YACC"
2167 if test -n "$YACC"; then
2168 echo "$ac_t""$YACC" 1>&6
2170 echo "$ac_t""no" 1>&6
2173 test -n "$YACC" && break
2175 test -n "$YACC" || YACC
="yacc"
2178 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2179 echo "configure:2180: checking for AIX" >&5
2180 cat > conftest.
$ac_ext <<EOF
2181 #line 2182 "configure"
2182 #include "confdefs.h"
2188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2189 egrep "yes" >/dev
/null
2>&1; then
2191 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
2192 #define _ALL_SOURCE 1
2197 echo "$ac_t""no" 1>&6
2203 # Sound support for GNU/Linux and the free BSDs.
2204 for ac_hdr
in machine
/soundcard.h sys
/soundcard.h
2206 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2207 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2208 echo "configure:2209: checking for $ac_hdr" >&5
2209 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2210 echo $ac_n "(cached) $ac_c" 1>&6
2212 cat > conftest.
$ac_ext <<EOF
2213 #line 2214 "configure"
2214 #include "confdefs.h"
2217 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2218 { (eval echo configure
:2219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2219 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2220 if test -z "$ac_err"; then
2222 eval "ac_cv_header_$ac_safe=yes"
2225 echo "configure: failed program was:" >&5
2226 cat conftest.
$ac_ext >&5
2228 eval "ac_cv_header_$ac_safe=no"
2232 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2233 echo "$ac_t""yes" 1>&6
2234 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2235 cat >> confdefs.h
<<EOF
2236 #define $ac_tr_hdr 1
2240 echo "$ac_t""no" 1>&6
2245 for ac_hdr
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
2246 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
2247 termcap.h stdio_ext.h
2249 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2250 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2251 echo "configure:2252: checking for $ac_hdr" >&5
2252 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2253 echo $ac_n "(cached) $ac_c" 1>&6
2255 cat > conftest.
$ac_ext <<EOF
2256 #line 2257 "configure"
2257 #include "confdefs.h"
2260 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2261 { (eval echo configure
:2262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2262 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2263 if test -z "$ac_err"; then
2265 eval "ac_cv_header_$ac_safe=yes"
2268 echo "configure: failed program was:" >&5
2269 cat conftest.
$ac_ext >&5
2271 eval "ac_cv_header_$ac_safe=no"
2275 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2276 echo "$ac_t""yes" 1>&6
2277 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2278 cat >> confdefs.h
<<EOF
2279 #define $ac_tr_hdr 1
2283 echo "$ac_t""no" 1>&6
2287 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2288 echo "configure:2289: checking for ANSI C header files" >&5
2289 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2290 echo $ac_n "(cached) $ac_c" 1>&6
2292 cat > conftest.
$ac_ext <<EOF
2293 #line 2294 "configure"
2294 #include "confdefs.h"
2300 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2301 { (eval echo configure
:2302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2302 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2303 if test -z "$ac_err"; then
2305 ac_cv_header_stdc
=yes
2308 echo "configure: failed program was:" >&5
2309 cat conftest.
$ac_ext >&5
2311 ac_cv_header_stdc
=no
2315 if test $ac_cv_header_stdc = yes; then
2316 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2317 cat > conftest.
$ac_ext <<EOF
2318 #line 2319 "configure"
2319 #include "confdefs.h"
2322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2323 egrep "memchr" >/dev
/null
2>&1; then
2327 ac_cv_header_stdc
=no
2333 if test $ac_cv_header_stdc = yes; then
2334 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2335 cat > conftest.
$ac_ext <<EOF
2336 #line 2337 "configure"
2337 #include "confdefs.h"
2340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2341 egrep "free" >/dev
/null
2>&1; then
2345 ac_cv_header_stdc
=no
2351 if test $ac_cv_header_stdc = yes; then
2352 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2353 if test "$cross_compiling" = yes; then
2356 cat > conftest.
$ac_ext <<EOF
2357 #line 2358 "configure"
2358 #include "confdefs.h"
2360 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2361 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2362 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2363 int main () { int i; for (i = 0; i < 256; i++)
2364 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2368 if { (eval echo configure
:2369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2372 echo "configure: failed program was:" >&5
2373 cat conftest.
$ac_ext >&5
2375 ac_cv_header_stdc
=no
2383 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2384 if test $ac_cv_header_stdc = yes; then
2385 cat >> confdefs.h
<<\EOF
2386 #define STDC_HEADERS 1
2391 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2392 echo "configure:2393: checking whether time.h and sys/time.h may both be included" >&5
2393 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2394 echo $ac_n "(cached) $ac_c" 1>&6
2396 cat > conftest.
$ac_ext <<EOF
2397 #line 2398 "configure"
2398 #include "confdefs.h"
2399 #include <sys/types.h>
2400 #include <sys/time.h>
2406 if { (eval echo configure
:2407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2408 ac_cv_header_time
=yes
2410 echo "configure: failed program was:" >&5
2411 cat conftest.
$ac_ext >&5
2413 ac_cv_header_time
=no
2418 echo "$ac_t""$ac_cv_header_time" 1>&6
2419 if test $ac_cv_header_time = yes; then
2420 cat >> confdefs.h
<<\EOF
2421 #define TIME_WITH_SYS_TIME 1
2426 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2427 echo "configure:2428: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2428 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2429 echo $ac_n "(cached) $ac_c" 1>&6
2431 cat > conftest.
$ac_ext <<EOF
2432 #line 2433 "configure"
2433 #include "confdefs.h"
2434 #include <sys/types.h>
2436 /* NetBSD declares sys_siglist in unistd.h. */
2437 #ifdef HAVE_UNISTD_H
2441 char *msg = *(sys_siglist + 1);
2444 if { (eval echo configure
:2445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2446 ac_cv_decl_sys_siglist
=yes
2448 echo "configure: failed program was:" >&5
2449 cat conftest.
$ac_ext >&5
2451 ac_cv_decl_sys_siglist
=no
2456 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2457 if test $ac_cv_decl_sys_siglist = yes; then
2458 cat >> confdefs.h
<<\EOF
2459 #define SYS_SIGLIST_DECLARED 1
2465 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
2466 echo "configure:2467: checking for struct utimbuf" >&5
2467 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2470 cat > conftest.
$ac_ext <<EOF
2471 #line 2472 "configure"
2472 #include "confdefs.h"
2473 #ifdef TIME_WITH_SYS_TIME
2474 #include <sys/time.h>
2477 #ifdef HAVE_SYS_TIME_H
2478 #include <sys/time.h>
2487 static struct utimbuf x; x.actime = x.modtime;
2490 if { (eval echo configure
:2491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2492 emacs_cv_struct_utimbuf
=yes
2494 echo "configure: failed program was:" >&5
2495 cat conftest.
$ac_ext >&5
2497 emacs_cv_struct_utimbuf
=no
2502 echo "$ac_t""$emacs_cv_struct_utimbuf" 1>&6
2503 if test $emacs_cv_struct_utimbuf = yes; then
2504 cat >> confdefs.h
<<\EOF
2505 #define HAVE_STRUCT_UTIMBUF 1
2510 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2511 echo "configure:2512: checking return type of signal handlers" >&5
2512 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2513 echo $ac_n "(cached) $ac_c" 1>&6
2515 cat > conftest.
$ac_ext <<EOF
2516 #line 2517 "configure"
2517 #include "confdefs.h"
2518 #include <sys/types.h>
2524 extern "C" void (*signal (int, void (*)(int)))(int);
2526 void (*signal ()) ();
2533 if { (eval echo configure
:2534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2535 ac_cv_type_signal
=void
2537 echo "configure: failed program was:" >&5
2538 cat conftest.
$ac_ext >&5
2540 ac_cv_type_signal
=int
2545 echo "$ac_t""$ac_cv_type_signal" 1>&6
2546 cat >> confdefs.h
<<EOF
2547 #define RETSIGTYPE $ac_cv_type_signal
2552 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
2553 echo "configure:2554: checking for struct timeval" >&5
2554 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then
2555 echo $ac_n "(cached) $ac_c" 1>&6
2557 cat > conftest.
$ac_ext <<EOF
2558 #line 2559 "configure"
2559 #include "confdefs.h"
2560 #ifdef TIME_WITH_SYS_TIME
2561 #include <sys/time.h>
2564 #ifdef HAVE_SYS_TIME_H
2565 #include <sys/time.h>
2571 static struct timeval x; x.tv_sec = x.tv_usec;
2574 if { (eval echo configure
:2575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2576 emacs_cv_struct_timeval
=yes
2578 echo "configure: failed program was:" >&5
2579 cat conftest.
$ac_ext >&5
2581 emacs_cv_struct_timeval
=no
2586 echo "$ac_t""$emacs_cv_struct_timeval" 1>&6
2587 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
2588 if test $emacs_cv_struct_timeval = yes; then
2589 cat >> confdefs.h
<<\EOF
2590 #define HAVE_TIMEVAL 1
2595 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2596 echo "configure:2597: checking whether struct tm is in sys/time.h or time.h" >&5
2597 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2598 echo $ac_n "(cached) $ac_c" 1>&6
2600 cat > conftest.
$ac_ext <<EOF
2601 #line 2602 "configure"
2602 #include "confdefs.h"
2603 #include <sys/types.h>
2606 struct tm *tp; tp->tm_sec;
2609 if { (eval echo configure
:2610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2611 ac_cv_struct_tm
=time.h
2613 echo "configure: failed program was:" >&5
2614 cat conftest.
$ac_ext >&5
2616 ac_cv_struct_tm
=sys
/time.h
2621 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2622 if test $ac_cv_struct_tm = sys
/time.h
; then
2623 cat >> confdefs.h
<<\EOF
2624 #define TM_IN_SYS_TIME 1
2629 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
2630 echo "configure:2631: checking for tm_zone in struct tm" >&5
2631 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
2632 echo $ac_n "(cached) $ac_c" 1>&6
2634 cat > conftest.
$ac_ext <<EOF
2635 #line 2636 "configure"
2636 #include "confdefs.h"
2637 #include <sys/types.h>
2638 #include <$ac_cv_struct_tm>
2640 struct tm tm; tm.tm_zone;
2643 if { (eval echo configure
:2644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2645 ac_cv_struct_tm_zone
=yes
2647 echo "configure: failed program was:" >&5
2648 cat conftest.
$ac_ext >&5
2650 ac_cv_struct_tm_zone
=no
2655 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
2656 if test "$ac_cv_struct_tm_zone" = yes; then
2657 cat >> confdefs.h
<<\EOF
2658 #define HAVE_TM_ZONE 1
2662 echo $ac_n "checking for tzname""... $ac_c" 1>&6
2663 echo "configure:2664: checking for tzname" >&5
2664 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
2665 echo $ac_n "(cached) $ac_c" 1>&6
2667 cat > conftest.
$ac_ext <<EOF
2668 #line 2669 "configure"
2669 #include "confdefs.h"
2671 #ifndef tzname /* For SGI. */
2672 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
2678 if { (eval echo configure
:2679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2680 ac_cv_var_tzname
=yes
2682 echo "configure: failed program was:" >&5
2683 cat conftest.
$ac_ext >&5
2690 echo "$ac_t""$ac_cv_var_tzname" 1>&6
2691 if test $ac_cv_var_tzname = yes; then
2692 cat >> confdefs.h
<<\EOF
2693 #define HAVE_TZNAME 1
2699 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
2700 echo "configure:2701: checking for tm_gmtoff in struct tm" >&5
2701 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then
2702 echo $ac_n "(cached) $ac_c" 1>&6
2704 cat > conftest.
$ac_ext <<EOF
2705 #line 2706 "configure"
2706 #include "confdefs.h"
2709 struct tm t; t.tm_gmtoff = 0
2712 if { (eval echo configure
:2713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2714 emacs_cv_tm_gmtoff
=yes
2716 echo "configure: failed program was:" >&5
2717 cat conftest.
$ac_ext >&5
2719 emacs_cv_tm_gmtoff
=no
2724 echo "$ac_t""$emacs_cv_tm_gmtoff" 1>&6
2725 if test $emacs_cv_tm_gmtoff = yes; then
2726 cat >> confdefs.h
<<\EOF
2727 #define HAVE_TM_GMTOFF 1
2732 echo $ac_n "checking for working const""... $ac_c" 1>&6
2733 echo "configure:2734: checking for working const" >&5
2734 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2735 echo $ac_n "(cached) $ac_c" 1>&6
2737 cat > conftest.
$ac_ext <<EOF
2738 #line 2739 "configure"
2739 #include "confdefs.h"
2743 /* Ultrix mips cc rejects this. */
2744 typedef int charset[2]; const charset x;
2745 /* SunOS 4.1.1 cc rejects this. */
2746 char const *const *ccp;
2748 /* NEC SVR4.0.2 mips cc rejects this. */
2749 struct point {int x, y;};
2750 static struct point const zero = {0,0};
2751 /* AIX XL C 1.02.0.0 rejects this.
2752 It does not let you subtract one const X* pointer from another in an arm
2753 of an if-expression whose if-part is not a constant expression */
2754 const char *g = "string";
2755 ccp = &g + (g ? g-g : 0);
2756 /* HPUX 7.0 cc rejects these. */
2759 ccp = (char const *const *) p;
2760 { /* SCO 3.2v4 cc rejects this. */
2762 char const *s = 0 ? (char *) 0 : (char const *) 0;
2766 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2768 const int *foo = &x[0];
2771 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2772 typedef const int *iptr;
2776 { /* AIX XL C 1.02.0.0 rejects this saying
2777 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2778 struct s { int j; const int *ap[3]; };
2779 struct s *b; b->j = 5;
2781 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2787 if { (eval echo configure
:2788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2791 echo "configure: failed program was:" >&5
2792 cat conftest.
$ac_ext >&5
2799 echo "$ac_t""$ac_cv_c_const" 1>&6
2800 if test $ac_cv_c_const = no
; then
2801 cat >> confdefs.h
<<\EOF
2808 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2809 echo "configure:2810: checking whether ${MAKE-make} sets \${MAKE}" >&5
2810 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
2811 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2812 echo $ac_n "(cached) $ac_c" 1>&6
2814 cat > conftestmake
<<\EOF
2816 @
echo 'ac_maketemp="${MAKE}"'
2818 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2819 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2820 if test -n "$ac_maketemp"; then
2821 eval ac_cv_prog_make_
${ac_make}_set
=yes
2823 eval ac_cv_prog_make_
${ac_make}_set
=no
2827 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2828 echo "$ac_t""yes" 1>&6
2831 echo "$ac_t""no" 1>&6
2832 SET_MAKE
="MAKE=${MAKE-make}"
2836 echo $ac_n "checking for long file names""... $ac_c" 1>&6
2837 echo "configure:2838: checking for long file names" >&5
2838 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
2839 echo $ac_n "(cached) $ac_c" 1>&6
2841 ac_cv_sys_long_file_names
=yes
2842 # Test for long file names in all the places we know might matter:
2843 # . the current directory, where building will happen
2844 # $prefix/lib where we will be installing things
2845 # $exec_prefix/lib likewise
2846 # eval it to expand exec_prefix.
2847 # $TMPDIR if set, where it might want to write temporary files
2848 # if $TMPDIR is not set:
2849 # /tmp where it might want to write temporary files
2852 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
2853 ac_tmpdirs
="$TMPDIR"
2855 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
2857 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
2858 test -d $ac_dir ||
continue
2859 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
2860 (echo 1 > $ac_dir/conftest9012345
) 2>/dev
/null
2861 (echo 2 > $ac_dir/conftest9012346
) 2>/dev
/null
2862 val
=`cat $ac_dir/conftest9012345 2>/dev/null`
2863 if test ! -f $ac_dir/conftest9012345 ||
test "$val" != 1; then
2864 ac_cv_sys_long_file_names
=no
2865 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
2868 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
2872 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
2873 if test $ac_cv_sys_long_file_names = yes; then
2874 cat >> confdefs.h
<<\EOF
2875 #define HAVE_LONG_FILE_NAMES 1
2881 #### Choose a window system.
2883 # If we find X, set shell vars x_includes and x_libraries to the
2884 # paths, otherwise set no_x=yes.
2885 # Uses ac_ vars as temps to allow command line to override cache and checks.
2886 # --without-x overrides everything else, but does not touch the cache.
2887 echo $ac_n "checking for X""... $ac_c" 1>&6
2888 echo "configure:2889: checking for X" >&5
2890 # Check whether --with-x or --without-x was given.
2891 if test "${with_x+set}" = set; then
2896 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2897 if test "x$with_x" = xno
; then
2898 # The user explicitly disabled X.
2901 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
2902 # Both variables are already set.
2905 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
2906 echo $ac_n "(cached) $ac_c" 1>&6
2908 # One or both of the vars are not set, and there is no cached value.
2909 ac_x_includes
=NO ac_x_libraries
=NO
2911 if mkdir conftestdir
; then
2913 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2914 cat > Imakefile
<<'EOF'
2916 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2918 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
2919 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2920 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2921 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2922 for ac_extension
in a so sl
; do
2923 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
2924 test -f $ac_im_libdir/libX11.
$ac_extension; then
2925 ac_im_usrlibdir
=$ac_im_libdir; break
2928 # Screen out bogus values from the imake configuration. They are
2929 # bogus both because they are the default anyway, and because
2930 # using them would break gcc on systems where it needs fixed includes.
2931 case "$ac_im_incroot" in
2933 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
2935 case "$ac_im_usrlibdir" in
2937 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
2944 if test "$ac_x_includes" = NO
; then
2945 # Guess where to find include files, by looking for this one X11 .h file.
2946 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
2948 # First, try using that file with no special directory specified.
2949 cat > conftest.
$ac_ext <<EOF
2950 #line 2951 "configure"
2951 #include "confdefs.h"
2952 #include <$x_direct_test_include>
2954 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2955 { (eval echo configure
:2956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2956 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2957 if test -z "$ac_err"; then
2959 # We can compile using X headers with no special include directory.
2963 echo "configure: failed program was:" >&5
2964 cat conftest.
$ac_ext >&5
2966 # Look for the header file in a standard set of common directories.
2967 # Check X11 before X11Rn because it is often a symlink to the current release.
2970 /usr
/X11R
6/include \
2971 /usr
/X11R
5/include \
2972 /usr
/X11R
4/include \
2975 /usr
/include
/X11R6 \
2976 /usr
/include
/X11R5 \
2977 /usr
/include
/X11R4 \
2979 /usr
/local
/X11
/include \
2980 /usr
/local
/X11R
6/include \
2981 /usr
/local
/X11R
5/include \
2982 /usr
/local
/X11R
4/include \
2984 /usr
/local
/include
/X11 \
2985 /usr
/local
/include
/X11R6 \
2986 /usr
/local
/include
/X11R5 \
2987 /usr
/local
/include
/X11R4 \
2991 /usr
/XFree86
/include
/X11 \
2994 /usr
/local
/include \
2995 /usr
/unsupported
/include \
2996 /usr
/athena
/include \
2997 /usr
/local
/x11r
5/include \
2998 /usr
/lpp
/Xamples
/include \
3000 /usr
/openwin
/include \
3001 /usr
/openwin
/share
/include \
3004 if test -r "$ac_dir/$x_direct_test_include"; then
3005 ac_x_includes
=$ac_dir
3011 fi # $ac_x_includes = NO
3013 if test "$ac_x_libraries" = NO
; then
3014 # Check for the libraries.
3016 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
3017 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
3019 # See if we find them without any special options.
3020 # Don't add to $LIBS permanently.
3021 ac_save_LIBS
="$LIBS"
3022 LIBS
="-l$x_direct_test_library $LIBS"
3023 cat > conftest.
$ac_ext <<EOF
3024 #line 3025 "configure"
3025 #include "confdefs.h"
3028 ${x_direct_test_function}()
3031 if { (eval echo configure
:3032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3033 LIBS
="$ac_save_LIBS"
3034 # We can link X programs with no special library path.
3037 echo "configure: failed program was:" >&5
3038 cat conftest.
$ac_ext >&5
3040 LIBS
="$ac_save_LIBS"
3041 # First see if replacing the include by lib works.
3042 # Check X11 before X11Rn because it is often a symlink to the current release.
3043 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
3054 /usr
/local
/X11
/lib \
3055 /usr
/local
/X11R
6/lib \
3056 /usr
/local
/X11R
5/lib \
3057 /usr
/local
/X11R
4/lib \
3059 /usr
/local
/lib
/X11 \
3060 /usr
/local
/lib
/X11R6 \
3061 /usr
/local
/lib
/X11R5 \
3062 /usr
/local
/lib
/X11R4 \
3066 /usr
/XFree86
/lib
/X11 \
3070 /usr
/unsupported
/lib \
3072 /usr
/local
/x11r
5/lib \
3073 /usr
/lpp
/Xamples
/lib \
3077 /usr
/openwin
/share
/lib \
3080 for ac_extension
in a so sl
; do
3081 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
3082 ac_x_libraries
=$ac_dir
3089 fi # $ac_x_libraries = NO
3091 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
3092 # Didn't find X anywhere. Cache the known absence of X.
3093 ac_cv_have_x
="have_x=no"
3095 # Record where we found X for the cache.
3096 ac_cv_have_x
="have_x=yes \
3097 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3101 eval "$ac_cv_have_x"
3104 if test "$have_x" != yes; then
3105 echo "$ac_t""$have_x" 1>&6
3108 # If each of the values was on the command line, it overrides each guess.
3109 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
3110 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
3111 # Update the cache value to reflect the command line values.
3112 ac_cv_have_x
="have_x=yes \
3113 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3114 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3117 if test "$no_x" = yes; then
3123 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
3124 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
3125 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
3126 x_default_search_path
=""
3127 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
3128 x_search_path
="${x_library}/X11/%L/%T/%N%C%S:\
3129 ${x_library}/X11/%L/%T/%N%C%S:${x_libary}/X11/%l/%T/%N%C%S:\
3130 ${x_library}/X11/%T/%N%C%S:${x_library}/X11/%L/%T/%N%S:\
3131 ${x_library}/X11/%l/%T/%N%S:${x_library}/X11/%T/%N%S"
3132 if test x
"${x_default_search_path}" = x
; then
3133 x_default_search_path
=${x_search_path}
3135 x_default_search_path
="${x_search_path}:${x_default_search_path}"
3139 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
3140 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
3143 if test x
"${x_includes}" = x
; then
3144 bitmapdir
=/usr
/include
/X11
/bitmaps
3146 # accumulate include directories that have X11 bitmap subdirectories
3148 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
3149 if test -d "${bmd}/X11/bitmaps"; then
3150 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
3152 if test -d "${bmd}/bitmaps"; then
3153 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
3156 if test ${bmd_acc} != "dummyval"; then
3157 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
3161 case "${window_system}" in
3165 case "${with_x_toolkit}" in
3166 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
3167 motif
) USE_X_TOOLKIT
=MOTIF
;;
3168 no
) USE_X_TOOLKIT
=none
;;
3169 * ) USE_X_TOOLKIT
=maybe
;;
3179 ### If we're using X11, we should use the X menu package.
3182 yes ) HAVE_MENUS
=yes ;;
3185 if test "${opsys}" = "hpux9"; then
3186 case "${x_libraries}" in
3188 opsysfile
="s/hpux9-x11r4.h"
3193 if test "${opsys}" = "hpux9shr"; then
3194 case "${x_libraries}" in
3196 opsysfile
="s/hpux9shxr4.h"
3201 #### Extract some information from the operating system and machine files.
3203 echo "checking the machine- and system-dependent files to find out
3204 - which libraries the lib-src programs will want, and
3205 - whether the GNU malloc routines are usable" 1>&6
3206 echo "configure:3207: checking the machine- and system-dependent files to find out
3207 - which libraries the lib-src programs will want, and
3208 - whether the GNU malloc routines are usable" >&5
3210 ### First figure out CFLAGS (which we use for running the compiler here)
3211 ### and REAL_CFLAGS (which we use for real compilation).
3212 ### The two are the same except on a few systems, where they are made
3213 ### different to work around various lossages. For example,
3214 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3215 ### as implying static linking.
3217 ### If the CFLAGS env var is specified, we use that value
3218 ### instead of the default.
3220 ### It's not important that this name contain the PID; you can't run
3221 ### two configures in the same directory and have anything work
3223 tempcname
="conftest.c"
3226 #include "'${srcdir}'/src/'${opsysfile}'"
3227 #include "'${srcdir}'/src/'${machfile}'"
3228 #ifndef LIBS_MACHINE
3229 #define LIBS_MACHINE
3234 #ifndef C_SWITCH_SYSTEM
3235 #define C_SWITCH_SYSTEM
3237 #ifndef C_SWITCH_MACHINE
3238 #define C_SWITCH_MACHINE
3240 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3241 configure___ c_switch_system=C_SWITCH_SYSTEM
3242 configure___ c_switch_machine=C_SWITCH_MACHINE
3245 #define LIB_X11_LIB -lX11
3248 #ifndef LIBX11_MACHINE
3249 #define LIBX11_MACHINE
3252 #ifndef LIBX11_SYSTEM
3253 #define LIBX11_SYSTEM
3255 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3258 configure___ unexec=UNEXEC
3260 configure___ unexec=unexec.o
3263 #ifdef SYSTEM_MALLOC
3264 configure___ system_malloc=yes
3266 configure___ system_malloc=no
3269 #ifndef C_DEBUG_SWITCH
3270 #define C_DEBUG_SWITCH -g
3273 #ifndef C_OPTIMIZE_SWITCH
3275 #define C_OPTIMIZE_SWITCH -O2
3277 #define C_OPTIMIZE_SWITCH -O
3281 #ifndef LD_SWITCH_MACHINE
3282 #define LD_SWITCH_MACHINE
3285 #ifndef LD_SWITCH_SYSTEM
3286 #define LD_SWITCH_SYSTEM
3289 #ifndef LD_SWITCH_X_SITE_AUX
3290 #define LD_SWITCH_X_SITE_AUX
3293 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3294 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3296 #ifdef THIS_IS_CONFIGURE
3298 /* Get the CFLAGS for tests in configure. */
3300 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3302 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3305 #else /* not THIS_IS_CONFIGURE */
3307 /* Get the CFLAGS for real compilation. */
3309 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3311 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3314 #endif /* not THIS_IS_CONFIGURE */
3317 # The value of CPP is a quoted variable reference, so we need to do this
3318 # to get its actual value...
3319 CPP
=`eval "echo $CPP"`
3320 eval `${CPP} -Isrc ${tempcname} \
3321 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3322 if test "x$SPECIFIED_CFLAGS" = x
; then
3323 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3324 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3326 REAL_CFLAGS
="$CFLAGS"
3330 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
3332 ### Compute the unexec source name from the object name.
3333 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
3335 # Do the opsystem or machine files prohibit the use of the GNU malloc?
3336 # Assume not, until told otherwise.
3339 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
3340 echo "configure:3341: checking for malloc_get_state" >&5
3341 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then
3342 echo $ac_n "(cached) $ac_c" 1>&6
3344 cat > conftest.
$ac_ext <<EOF
3345 #line 3346 "configure"
3346 #include "confdefs.h"
3347 /* System header to define __stub macros and hopefully few prototypes,
3348 which can conflict with char malloc_get_state(); below. */
3350 /* Override any gcc2 internal prototype to avoid an error. */
3351 /* We use char because int might match the return type of a gcc2
3352 builtin and then its argument prototype would still apply. */
3353 char malloc_get_state();
3357 /* The GNU C library defines this for functions which it implements
3358 to always fail with ENOSYS. Some functions are actually named
3359 something starting with __ and the normal name is an alias. */
3360 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
3368 if { (eval echo configure
:3369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3370 eval "ac_cv_func_malloc_get_state=yes"
3372 echo "configure: failed program was:" >&5
3373 cat conftest.
$ac_ext >&5
3375 eval "ac_cv_func_malloc_get_state=no"
3380 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
3381 echo "$ac_t""yes" 1>&6
3384 echo "$ac_t""no" 1>&6
3388 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3389 echo "configure:3390: checking for malloc_set_state" >&5
3390 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then
3391 echo $ac_n "(cached) $ac_c" 1>&6
3393 cat > conftest.
$ac_ext <<EOF
3394 #line 3395 "configure"
3395 #include "confdefs.h"
3396 /* System header to define __stub macros and hopefully few prototypes,
3397 which can conflict with char malloc_set_state(); below. */
3399 /* Override any gcc2 internal prototype to avoid an error. */
3400 /* We use char because int might match the return type of a gcc2
3401 builtin and then its argument prototype would still apply. */
3402 char malloc_set_state();
3406 /* The GNU C library defines this for functions which it implements
3407 to always fail with ENOSYS. Some functions are actually named
3408 something starting with __ and the normal name is an alias. */
3409 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3417 if { (eval echo configure
:3418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3419 eval "ac_cv_func_malloc_set_state=yes"
3421 echo "configure: failed program was:" >&5
3422 cat conftest.
$ac_ext >&5
3424 eval "ac_cv_func_malloc_set_state=no"
3429 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3430 echo "$ac_t""yes" 1>&6
3433 echo "$ac_t""no" 1>&6
3437 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3438 echo "configure:3439: checking whether __after_morecore_hook exists" >&5
3439 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then
3440 echo $ac_n "(cached) $ac_c" 1>&6
3442 cat > conftest.
$ac_ext <<EOF
3443 #line 3444 "configure"
3444 #include "confdefs.h"
3445 extern void (* __after_morecore_hook)();
3447 __after_morecore_hook = 0
3450 if { (eval echo configure
:3451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3452 emacs_cv_var___after_morecore_hook
=yes
3454 echo "configure: failed program was:" >&5
3455 cat conftest.
$ac_ext >&5
3457 emacs_cv_var___after_morecore_hook
=no
3462 echo "$ac_t""$emacs_cv_var___after_morecore_hook" 1>&6
3463 if test $emacs_cv_var___after_morecore_hook = no
; then
3466 if test "${system_malloc}" = "yes"; then
3469 (The GNU allocators don't work with this system configuration.)"
3471 if test "$doug_lea_malloc" = "yes" ; then
3472 if test "$GNU_MALLOC" = yes ; then
3474 (Using Doug Lea's new malloc from the GNU C Library.)"
3476 cat >> confdefs.h
<<\EOF
3477 #define DOUG_LEA_MALLOC 1
3482 if test x
"${REL_ALLOC}" = x
; then
3483 REL_ALLOC
=${GNU_MALLOC}
3486 #### Add the libraries to LIBS and check for some functions.
3488 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
3489 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
3491 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
3494 LIBS
="$libsrc_libs $LIBS"
3496 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3497 echo "configure:3498: checking for dnet_ntoa in -ldnet" >&5
3498 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3499 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3500 echo $ac_n "(cached) $ac_c" 1>&6
3502 ac_save_LIBS
="$LIBS"
3504 cat > conftest.
$ac_ext <<EOF
3505 #line 3506 "configure"
3506 #include "confdefs.h"
3507 /* Override any gcc2 internal prototype to avoid an error. */
3508 /* We use char because int might match the return type of a gcc2
3509 builtin and then its argument prototype would still apply. */
3516 if { (eval echo configure
:3517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3518 eval "ac_cv_lib_$ac_lib_var=yes"
3520 echo "configure: failed program was:" >&5
3521 cat conftest.
$ac_ext >&5
3523 eval "ac_cv_lib_$ac_lib_var=no"
3526 LIBS
="$ac_save_LIBS"
3529 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3530 echo "$ac_t""yes" 1>&6
3531 ac_tr_lib
=HAVE_LIB
`echo dnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3532 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3533 cat >> confdefs.h
<<EOF
3534 #define $ac_tr_lib 1
3540 echo "$ac_t""no" 1>&6
3544 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
3545 echo "configure:3546: checking for main in -lXbsd" >&5
3546 ac_lib_var
=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
3547 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3548 echo $ac_n "(cached) $ac_c" 1>&6
3550 ac_save_LIBS
="$LIBS"
3552 cat > conftest.
$ac_ext <<EOF
3553 #line 3554 "configure"
3554 #include "confdefs.h"
3560 if { (eval echo configure
:3561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3562 eval "ac_cv_lib_$ac_lib_var=yes"
3564 echo "configure: failed program was:" >&5
3565 cat conftest.
$ac_ext >&5
3567 eval "ac_cv_lib_$ac_lib_var=no"
3570 LIBS
="$ac_save_LIBS"
3573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3574 echo "$ac_t""yes" 1>&6
3575 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
3577 echo "$ac_t""no" 1>&6
3581 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
3582 echo "configure:3583: checking for cma_open in -lpthreads" >&5
3583 ac_lib_var
=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
3584 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3585 echo $ac_n "(cached) $ac_c" 1>&6
3587 ac_save_LIBS
="$LIBS"
3588 LIBS
="-lpthreads $LIBS"
3589 cat > conftest.
$ac_ext <<EOF
3590 #line 3591 "configure"
3591 #include "confdefs.h"
3592 /* Override any gcc2 internal prototype to avoid an error. */
3593 /* We use char because int might match the return type of a gcc2
3594 builtin and then its argument prototype would still apply. */
3601 if { (eval echo configure
:3602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3603 eval "ac_cv_lib_$ac_lib_var=yes"
3605 echo "configure: failed program was:" >&5
3606 cat conftest.
$ac_ext >&5
3608 eval "ac_cv_lib_$ac_lib_var=no"
3611 LIBS
="$ac_save_LIBS"
3614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3615 echo "$ac_t""yes" 1>&6
3616 ac_tr_lib
=HAVE_LIB
`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3617 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3618 cat >> confdefs.h
<<EOF
3619 #define $ac_tr_lib 1
3622 LIBS
="-lpthreads $LIBS"
3625 echo "$ac_t""no" 1>&6
3629 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6
3630 echo "configure:3631: checking for XFree86 in /usr/X386" >&5
3631 if test -d /usr
/X386
/include
; then
3633 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
3637 echo "$ac_t""$HAVE_XFREE386" 1>&6
3639 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
3640 # for the tests that follow. We set it back to REAL_CFLAGS later on.
3642 if test "${HAVE_X11}" = "yes"; then
3643 DEFS
="$C_SWITCH_X_SITE $DEFS"
3644 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
3646 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
3648 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
3649 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
3650 # but it's more convenient here to set LD_RUN_PATH
3651 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
3652 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
3653 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
3657 if test "${opsys}" = "gnu-linux"; then
3658 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6
3659 echo "configure:3660: checking whether X on GNU/Linux needs -b to link" >&5
3660 cat > conftest.
$ac_ext <<EOF
3661 #line 3662 "configure"
3662 #include "confdefs.h"
3665 XOpenDisplay ("foo");
3668 if { (eval echo configure
:3669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3670 xlinux_first_failure
=no
3672 echo "configure: failed program was:" >&5
3673 cat conftest.
$ac_ext >&5
3675 xlinux_first_failure
=yes
3678 if test "${xlinux_first_failure}" = "yes"; then
3679 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
3680 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
3681 OLD_CPPFLAGS
="$CPPFLAGS"
3683 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
3684 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
3685 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
3686 LIBS
="$LIBS -b i486-linuxaout"
3687 cat > conftest.
$ac_ext <<EOF
3688 #line 3689 "configure"
3689 #include "confdefs.h"
3692 XOpenDisplay ("foo");
3695 if { (eval echo configure
:3696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3697 xlinux_second_failure
=no
3699 echo "configure: failed program was:" >&5
3700 cat conftest.
$ac_ext >&5
3702 xlinux_second_failure
=yes
3705 if test "${xlinux_second_failure}" = "yes"; then
3706 # If we get the same failure with -b, there is no use adding -b.
3707 # So take it out. This plays safe.
3708 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
3709 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
3710 CPPFLAGS
="$OLD_CPPFLAGS"
3712 echo "$ac_t""no" 1>&6
3714 echo "$ac_t""yes" 1>&6
3717 echo "$ac_t""no" 1>&6
3721 for ac_func
in XrmSetDatabase XScreenResourceString \
3722 XScreenNumberOfScreen XSetWMProtocols
3724 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3725 echo "configure:3726: checking for $ac_func" >&5
3726 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3727 echo $ac_n "(cached) $ac_c" 1>&6
3729 cat > conftest.
$ac_ext <<EOF
3730 #line 3731 "configure"
3731 #include "confdefs.h"
3732 /* System header to define __stub macros and hopefully few prototypes,
3733 which can conflict with char $ac_func(); below. */
3735 /* Override any gcc2 internal prototype to avoid an error. */
3736 /* We use char because int might match the return type of a gcc2
3737 builtin and then its argument prototype would still apply. */
3742 /* The GNU C library defines this for functions which it implements
3743 to always fail with ENOSYS. Some functions are actually named
3744 something starting with __ and the normal name is an alias. */
3745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3753 if { (eval echo configure
:3754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3755 eval "ac_cv_func_$ac_func=yes"
3757 echo "configure: failed program was:" >&5
3758 cat conftest.
$ac_ext >&5
3760 eval "ac_cv_func_$ac_func=no"
3765 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3766 echo "$ac_t""yes" 1>&6
3767 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3768 cat >> confdefs.h
<<EOF
3769 #define $ac_tr_func 1
3773 echo "$ac_t""no" 1>&6
3779 if test "${window_system}" = "x11"; then
3780 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6
3781 echo "configure:3782: checking X11 version 6" >&5
3782 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then
3783 echo $ac_n "(cached) $ac_c" 1>&6
3785 cat > conftest.
$ac_ext <<EOF
3786 #line 3787 "configure"
3787 #include "confdefs.h"
3788 #include <X11/Xlib.h>
3790 #if XlibSpecificationRelease < 6
3796 if { (eval echo configure
:3797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3798 emacs_cv_x11_version_6
=yes
3800 echo "configure: failed program was:" >&5
3801 cat conftest.
$ac_ext >&5
3803 emacs_cv_x11_version_6
=no
3808 if test $emacs_cv_x11_version_6 = yes; then
3809 echo "$ac_t""6 or newer" 1>&6
3810 cat >> confdefs.h
<<\EOF
3811 #define HAVE_X11R6 1
3815 echo "$ac_t""before 6" 1>&6
3819 if test "${window_system}" = "x11"; then
3820 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6
3821 echo "configure:3822: checking X11 version 5" >&5
3822 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then
3823 echo $ac_n "(cached) $ac_c" 1>&6
3825 cat > conftest.
$ac_ext <<EOF
3826 #line 3827 "configure"
3827 #include "confdefs.h"
3828 #include <X11/Xlib.h>
3830 #if XlibSpecificationRelease < 5
3836 if { (eval echo configure
:3837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3838 emacs_cv_x11_version_5
=yes
3840 echo "configure: failed program was:" >&5
3841 cat conftest.
$ac_ext >&5
3843 emacs_cv_x11_version_5
=no
3848 if test $emacs_cv_x11_version_5 = yes; then
3849 echo "$ac_t""5 or newer" 1>&6
3851 cat >> confdefs.h
<<\EOF
3852 #define HAVE_X11R5 1
3857 echo "$ac_t""before 5" 1>&6
3861 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
3862 if test x
"${HAVE_X11R5}" = xyes
; then
3863 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6
3864 echo "configure:3865: checking X11 version 5 with Xaw" >&5
3865 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then
3866 echo $ac_n "(cached) $ac_c" 1>&6
3868 cat > conftest.
$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3872 #include <X11/Intrinsic.h>
3873 #include <X11/Xaw/Simple.h>
3878 if { (eval echo configure
:3879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3880 emacs_cv_x11_version_5_with_xaw
=yes
3882 echo "configure: failed program was:" >&5
3883 cat conftest.
$ac_ext >&5
3885 emacs_cv_x11_version_5_with_xaw
=no
3890 if test $emacs_cv_x11_version_5_with_xaw = yes; then
3891 echo "$ac_t""5 or newer, with Xaw; use toolkit by default" 1>&6
3894 echo "$ac_t""before 5 or no Xaw; do not use toolkit by default" 1>&6
3902 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
3904 if test "${USE_X_TOOLKIT}" != "none"; then
3905 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6
3906 echo "configure:3907: checking X11 toolkit version" >&5
3907 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then
3908 echo $ac_n "(cached) $ac_c" 1>&6
3910 cat > conftest.
$ac_ext <<EOF
3911 #line 3912 "configure"
3912 #include "confdefs.h"
3913 #include <X11/Intrinsic.h>
3915 #if XtSpecificationRelease < 6
3921 if { (eval echo configure
:3922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3923 emacs_cv_x11_toolkit_version_6
=yes
3925 echo "configure: failed program was:" >&5
3926 cat conftest.
$ac_ext >&5
3928 emacs_cv_x11_toolkit_version_6
=no
3933 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
3934 if test $emacs_cv_x11_toolkit_version_6 = yes; then
3935 echo "$ac_t""6 or newer" 1>&6
3936 cat >> confdefs.h
<<\EOF
3937 #define HAVE_X11XTR6 1
3941 echo "$ac_t""before 6" 1>&6
3945 if test x
$HAVE_X11XTR6 = xyes
; then
3946 LIBS
="-lXt -lSM -lICE $LIBS"
3950 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
3951 echo "configure:3952: checking for XmuConvertStandardSelection in -lXmu" >&5
3952 ac_lib_var
=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
3953 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3954 echo $ac_n "(cached) $ac_c" 1>&6
3956 ac_save_LIBS
="$LIBS"
3958 cat > conftest.
$ac_ext <<EOF
3959 #line 3960 "configure"
3960 #include "confdefs.h"
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. */
3964 char XmuConvertStandardSelection();
3967 XmuConvertStandardSelection()
3970 if { (eval echo configure
:3971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3972 eval "ac_cv_lib_$ac_lib_var=yes"
3974 echo "configure: failed program was:" >&5
3975 cat conftest.
$ac_ext >&5
3977 eval "ac_cv_lib_$ac_lib_var=no"
3980 LIBS
="$ac_save_LIBS"
3983 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3984 echo "$ac_t""yes" 1>&6
3985 ac_tr_lib
=HAVE_LIB
`echo Xmu | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3986 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3987 cat >> confdefs.h
<<EOF
3988 #define $ac_tr_lib 1
3994 echo "$ac_t""no" 1>&6
4000 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
4001 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6
4002 echo "configure:4003: checking for Motif version 2.1" >&5
4003 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then
4004 echo $ac_n "(cached) $ac_c" 1>&6
4006 cat > conftest.
$ac_ext <<EOF
4007 #line 4008 "configure"
4008 #include "confdefs.h"
4011 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
4014 Motif version prior to 2.1.
4018 if { (eval echo configure
:4019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4020 emacs_cv_motif_version_2_1
=yes
4022 echo "configure: failed program was:" >&5
4023 cat conftest.
$ac_ext >&5
4025 emacs_cv_motif_version_2_1
=no
4030 echo "$ac_t""$emacs_cv_motif_version_2_1" 1>&6
4031 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
4032 if test $emacs_cv_motif_version_2_1 = yes; then
4033 cat >> confdefs.h
<<\EOF
4034 #define HAVE_MOTIF_2_1 1
4037 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6
4038 echo "configure:4039: checking for XpCreateContext in -lXp" >&5
4039 ac_lib_var
=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`
4040 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4041 echo $ac_n "(cached) $ac_c" 1>&6
4043 ac_save_LIBS
="$LIBS"
4045 cat > conftest.
$ac_ext <<EOF
4046 #line 4047 "configure"
4047 #include "confdefs.h"
4048 /* Override any gcc2 internal prototype to avoid an error. */
4049 /* We use char because int might match the return type of a gcc2
4050 builtin and then its argument prototype would still apply. */
4051 char XpCreateContext();
4057 if { (eval echo configure
:4058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4059 eval "ac_cv_lib_$ac_lib_var=yes"
4061 echo "configure: failed program was:" >&5
4062 cat conftest.
$ac_ext >&5
4064 eval "ac_cv_lib_$ac_lib_var=no"
4067 LIBS
="$ac_save_LIBS"
4070 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4071 echo "$ac_t""yes" 1>&6
4072 ac_tr_lib
=HAVE_LIB
`echo Xp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4073 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4074 cat >> confdefs.h
<<EOF
4075 #define $ac_tr_lib 1
4081 echo "$ac_t""no" 1>&6
4087 ### Is -lXaw3d available?
4089 if test "${HAVE_X11}" = "yes"; then
4090 if test "${USE_X_TOOLKIT}" != "none"; then
4091 old_c_flags
="${CFLAGS}"
4092 CFLAGS
="${LD_SWITCH_X_SITE}"
4093 ac_safe
=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'`
4094 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6
4095 echo "configure:4096: checking for X11/Xaw3d/Scrollbar.h" >&5
4096 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4097 echo $ac_n "(cached) $ac_c" 1>&6
4099 cat > conftest.
$ac_ext <<EOF
4100 #line 4101 "configure"
4101 #include "confdefs.h"
4102 #include <X11/Xaw3d/Scrollbar.h>
4104 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4105 { (eval echo configure
:4106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4106 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4107 if test -z "$ac_err"; then
4109 eval "ac_cv_header_$ac_safe=yes"
4112 echo "configure: failed program was:" >&5
4113 cat conftest.
$ac_ext >&5
4115 eval "ac_cv_header_$ac_safe=no"
4119 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4120 echo "$ac_t""yes" 1>&6
4121 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
4122 echo "configure:4123: checking for XawScrollbarSetThumb in -lXaw3d" >&5
4123 ac_lib_var
=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
4124 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4125 echo $ac_n "(cached) $ac_c" 1>&6
4127 ac_save_LIBS
="$LIBS"
4128 LIBS
="-lXaw3d -lX11 $LIBS"
4129 cat > conftest.
$ac_ext <<EOF
4130 #line 4131 "configure"
4131 #include "confdefs.h"
4132 /* Override any gcc2 internal prototype to avoid an error. */
4133 /* We use char because int might match the return type of a gcc2
4134 builtin and then its argument prototype would still apply. */
4135 char XawScrollbarSetThumb();
4138 XawScrollbarSetThumb()
4141 if { (eval echo configure
:4142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4143 eval "ac_cv_lib_$ac_lib_var=yes"
4145 echo "configure: failed program was:" >&5
4146 cat conftest.
$ac_ext >&5
4148 eval "ac_cv_lib_$ac_lib_var=no"
4151 LIBS
="$ac_save_LIBS"
4154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4155 echo "$ac_t""yes" 1>&6
4158 echo "$ac_t""no" 1>&6
4162 echo "$ac_t""no" 1>&6
4165 CFLAGS
="${old_c_flags}"
4167 if test "${HAVE_XAW3D}" = "yes"; then
4168 cat >> confdefs.h
<<\EOF
4169 #define HAVE_XAW3D 1
4177 USE_TOOLKIT_SCROLL_BARS
=no
4178 if test "${with_toolkit_scroll_bars}" != "no"; then
4179 if test "${USE_X_TOOLKIT}" != "none"; then
4180 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
4181 cat >> confdefs.h
<<\EOF
4182 #define USE_TOOLKIT_SCROLL_BARS 1
4186 USE_TOOLKIT_SCROLL_BARS
=yes
4187 elif test "${HAVE_XAW3D}" = "yes"; then
4188 cat >> confdefs.h
<<\EOF
4189 #define USE_TOOLKIT_SCROLL_BARS 1
4192 USE_TOOLKIT_SCROLL_BARS
=yes
4197 ### Use -lXpm if available, unless `--with-xpm=no'.
4199 if test "${HAVE_X11}" = "yes"; then
4200 if test "${with_xpm}" != "no"; then
4201 old_c_flags
="${CFLAGS}"
4202 CFLAGS
="${LD_SWITCH_X_SITE}"
4203 ac_safe
=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4204 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4205 echo "configure:4206: checking for X11/xpm.h" >&5
4206 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4207 echo $ac_n "(cached) $ac_c" 1>&6
4209 cat > conftest.
$ac_ext <<EOF
4210 #line 4211 "configure"
4211 #include "confdefs.h"
4212 #include <X11/xpm.h>
4214 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4215 { (eval echo configure
:4216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4216 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4217 if test -z "$ac_err"; then
4219 eval "ac_cv_header_$ac_safe=yes"
4222 echo "configure: failed program was:" >&5
4223 cat conftest.
$ac_ext >&5
4225 eval "ac_cv_header_$ac_safe=no"
4229 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4230 echo "$ac_t""yes" 1>&6
4231 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
4232 echo "configure:4233: checking for XpmReadFileToPixmap in -lXpm" >&5
4233 ac_lib_var
=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
4234 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4235 echo $ac_n "(cached) $ac_c" 1>&6
4237 ac_save_LIBS
="$LIBS"
4238 LIBS
="-lXpm -lX11 $LIBS"
4239 cat > conftest.
$ac_ext <<EOF
4240 #line 4241 "configure"
4241 #include "confdefs.h"
4242 /* Override any gcc2 internal prototype to avoid an error. */
4243 /* We use char because int might match the return type of a gcc2
4244 builtin and then its argument prototype would still apply. */
4245 char XpmReadFileToPixmap();
4248 XpmReadFileToPixmap()
4251 if { (eval echo configure
:4252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4253 eval "ac_cv_lib_$ac_lib_var=yes"
4255 echo "configure: failed program was:" >&5
4256 cat conftest.
$ac_ext >&5
4258 eval "ac_cv_lib_$ac_lib_var=no"
4261 LIBS
="$ac_save_LIBS"
4264 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4265 echo "$ac_t""yes" 1>&6
4268 echo "$ac_t""no" 1>&6
4272 echo "$ac_t""no" 1>&6
4275 CFLAGS
="${old_c_flags}"
4278 if test "${HAVE_XPM}" = "yes"; then
4279 cat >> confdefs.h
<<\EOF
4286 ### Use -ljpeg if available, unless `--with-jpeg=no'.
4288 if test "${HAVE_X11}" = "yes"; then
4289 if test "${with_jpeg}" != "no"; then
4290 old_c_flags
="${CFLAGS}"
4291 CFLAGS
="${LD_SWITCH_X_SITE} ${CFLAGS}"
4292 ac_safe
=`echo "jerror.h" | sed 'y%./+-%__p_%'`
4293 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6
4294 echo "configure:4295: checking for jerror.h" >&5
4295 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4296 echo $ac_n "(cached) $ac_c" 1>&6
4298 cat > conftest.
$ac_ext <<EOF
4299 #line 4300 "configure"
4300 #include "confdefs.h"
4303 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4304 { (eval echo configure
:4305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4305 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4306 if test -z "$ac_err"; then
4308 eval "ac_cv_header_$ac_safe=yes"
4311 echo "configure: failed program was:" >&5
4312 cat conftest.
$ac_ext >&5
4314 eval "ac_cv_header_$ac_safe=no"
4318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4319 echo "$ac_t""yes" 1>&6
4320 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
4321 echo "configure:4322: checking for jpeg_destroy_compress in -ljpeg" >&5
4322 ac_lib_var
=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
4323 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4324 echo $ac_n "(cached) $ac_c" 1>&6
4326 ac_save_LIBS
="$LIBS"
4327 LIBS
="-ljpeg -lX11 $LIBS"
4328 cat > conftest.
$ac_ext <<EOF
4329 #line 4330 "configure"
4330 #include "confdefs.h"
4331 /* Override any gcc2 internal prototype to avoid an error. */
4332 /* We use char because int might match the return type of a gcc2
4333 builtin and then its argument prototype would still apply. */
4334 char jpeg_destroy_compress();
4337 jpeg_destroy_compress()
4340 if { (eval echo configure
:4341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4342 eval "ac_cv_lib_$ac_lib_var=yes"
4344 echo "configure: failed program was:" >&5
4345 cat conftest.
$ac_ext >&5
4347 eval "ac_cv_lib_$ac_lib_var=no"
4350 LIBS
="$ac_save_LIBS"
4353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4354 echo "$ac_t""yes" 1>&6
4357 echo "$ac_t""no" 1>&6
4361 echo "$ac_t""no" 1>&6
4364 CFLAGS
="${old_c_flags}"
4367 if test "${HAVE_JPEG}" = "yes"; then
4368 cat >> confdefs.h
<<\EOF
4375 ### Use -lpng if available, unless `--with-png=no'.
4377 if test "${HAVE_X11}" = "yes"; then
4378 if test "${with_png}" != "no"; then
4379 old_c_flags
="${CFLAGS}"
4380 CFLAGS
="${LD_SWITCH_X_SITE} ${CFLAGS}"
4381 ac_safe
=`echo "png.h" | sed 'y%./+-%__p_%'`
4382 echo $ac_n "checking for png.h""... $ac_c" 1>&6
4383 echo "configure:4384: checking for png.h" >&5
4384 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4385 echo $ac_n "(cached) $ac_c" 1>&6
4387 cat > conftest.
$ac_ext <<EOF
4388 #line 4389 "configure"
4389 #include "confdefs.h"
4392 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4393 { (eval echo configure
:4394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4394 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4395 if test -z "$ac_err"; then
4397 eval "ac_cv_header_$ac_safe=yes"
4400 echo "configure: failed program was:" >&5
4401 cat conftest.
$ac_ext >&5
4403 eval "ac_cv_header_$ac_safe=no"
4407 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4408 echo "$ac_t""yes" 1>&6
4409 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6
4410 echo "configure:4411: checking for png_set_expand in -lpng" >&5
4411 ac_lib_var
=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'`
4412 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4413 echo $ac_n "(cached) $ac_c" 1>&6
4415 ac_save_LIBS
="$LIBS"
4416 LIBS
="-lpng -lX11 -lz -lm $LIBS"
4417 cat > conftest.
$ac_ext <<EOF
4418 #line 4419 "configure"
4419 #include "confdefs.h"
4420 /* Override any gcc2 internal prototype to avoid an error. */
4421 /* We use char because int might match the return type of a gcc2
4422 builtin and then its argument prototype would still apply. */
4423 char png_set_expand();
4429 if { (eval echo configure
:4430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4431 eval "ac_cv_lib_$ac_lib_var=yes"
4433 echo "configure: failed program was:" >&5
4434 cat conftest.
$ac_ext >&5
4436 eval "ac_cv_lib_$ac_lib_var=no"
4439 LIBS
="$ac_save_LIBS"
4442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4443 echo "$ac_t""yes" 1>&6
4446 echo "$ac_t""no" 1>&6
4450 echo "$ac_t""no" 1>&6
4453 CFLAGS
="${old_c_flags}"
4456 if test "${HAVE_PNG}" = "yes"; then
4457 cat >> confdefs.h
<<\EOF
4464 ### Use -ltiff if available, unless `--with-tiff=no'.
4466 if test "${HAVE_X11}" = "yes"; then
4467 if test "${with_tiff}" != "no"; then
4468 old_c_flags
="${CFLAGS}"
4469 CFLAGS
="${LD_SWITCH_X_SITE} ${CFLAGS}"
4470 ac_safe
=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
4471 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
4472 echo "configure:4473: checking for tiffio.h" >&5
4473 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4474 echo $ac_n "(cached) $ac_c" 1>&6
4476 cat > conftest.
$ac_ext <<EOF
4477 #line 4478 "configure"
4478 #include "confdefs.h"
4481 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4482 { (eval echo configure
:4483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4483 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4484 if test -z "$ac_err"; then
4486 eval "ac_cv_header_$ac_safe=yes"
4489 echo "configure: failed program was:" >&5
4490 cat conftest.
$ac_ext >&5
4492 eval "ac_cv_header_$ac_safe=no"
4496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4497 echo "$ac_t""yes" 1>&6
4498 tifflibs
="-lX11 -lz -lm"
4499 # At least one tiff package requires the jpeg library.
4500 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
4501 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4502 echo "configure:4503: checking for TIFFGetVersion in -ltiff" >&5
4503 ac_lib_var
=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4504 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4505 echo $ac_n "(cached) $ac_c" 1>&6
4507 ac_save_LIBS
="$LIBS"
4508 LIBS
="-ltiff $tifflibs $LIBS"
4509 cat > conftest.
$ac_ext <<EOF
4510 #line 4511 "configure"
4511 #include "confdefs.h"
4512 /* Override any gcc2 internal prototype to avoid an error. */
4513 /* We use char because int might match the return type of a gcc2
4514 builtin and then its argument prototype would still apply. */
4515 char TIFFGetVersion();
4521 if { (eval echo configure
:4522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4523 eval "ac_cv_lib_$ac_lib_var=yes"
4525 echo "configure: failed program was:" >&5
4526 cat conftest.
$ac_ext >&5
4528 eval "ac_cv_lib_$ac_lib_var=no"
4531 LIBS
="$ac_save_LIBS"
4534 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4535 echo "$ac_t""yes" 1>&6
4538 echo "$ac_t""no" 1>&6
4542 echo "$ac_t""no" 1>&6
4545 CFLAGS
="${old_c_flags}"
4548 if test "${HAVE_TIFF}" = "yes"; then
4549 cat >> confdefs.h
<<\EOF
4556 ### Use -lgif if available, unless `--with-gif=no'.
4558 if test "${HAVE_X11}" = "yes"; then
4559 if test "${with_gif}" != "no"; then
4560 old_c_flags
="${CFLAGS}"
4561 CFLAGS
="${LD_SWITCH_X_SITE} ${CFLAGS}"
4562 ac_safe
=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
4563 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
4564 echo "configure:4565: checking for gif_lib.h" >&5
4565 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4566 echo $ac_n "(cached) $ac_c" 1>&6
4568 cat > conftest.
$ac_ext <<EOF
4569 #line 4570 "configure"
4570 #include "confdefs.h"
4571 #include <gif_lib.h>
4573 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4574 { (eval echo configure
:4575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4575 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4576 if test -z "$ac_err"; then
4578 eval "ac_cv_header_$ac_safe=yes"
4581 echo "configure: failed program was:" >&5
4582 cat conftest.
$ac_ext >&5
4584 eval "ac_cv_header_$ac_safe=no"
4588 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4589 echo "$ac_t""yes" 1>&6
4590 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6
4591 echo "configure:4592: checking for DGifOpen in -lungif" >&5
4592 ac_lib_var
=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'`
4593 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4594 echo $ac_n "(cached) $ac_c" 1>&6
4596 ac_save_LIBS
="$LIBS"
4597 LIBS
="-lungif -lX11 $LIBS"
4598 cat > conftest.
$ac_ext <<EOF
4599 #line 4600 "configure"
4600 #include "confdefs.h"
4601 /* Override any gcc2 internal prototype to avoid an error. */
4602 /* We use char because int might match the return type of a gcc2
4603 builtin and then its argument prototype would still apply. */
4610 if { (eval echo configure
:4611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4612 eval "ac_cv_lib_$ac_lib_var=yes"
4614 echo "configure: failed program was:" >&5
4615 cat conftest.
$ac_ext >&5
4617 eval "ac_cv_lib_$ac_lib_var=no"
4620 LIBS
="$ac_save_LIBS"
4623 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4624 echo "$ac_t""yes" 1>&6
4627 echo "$ac_t""no" 1>&6
4631 echo "$ac_t""no" 1>&6
4634 CFLAGS
="${old_c_flags}"
4637 if test "${HAVE_GIF}" = "yes"; then
4638 cat >> confdefs.h
<<\EOF
4645 # If netdb.h doesn't declare h_errno, we must declare it by hand.
4646 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
4647 echo "configure:4648: checking whether netdb declares h_errno" >&5
4648 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
4649 echo $ac_n "(cached) $ac_c" 1>&6
4651 cat > conftest.
$ac_ext <<EOF
4652 #line 4653 "configure"
4653 #include "confdefs.h"
4659 if { (eval echo configure
:4660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4661 emacs_cv_netdb_declares_h_errno
=yes
4663 echo "configure: failed program was:" >&5
4664 cat conftest.
$ac_ext >&5
4666 emacs_cv_netdb_declares_h_errno
=no
4671 echo "$ac_t""$emacs_cv_netdb_declares_h_errno" 1>&6
4672 if test $emacs_cv_netdb_declares_h_errno = yes; then
4673 cat >> confdefs.h
<<\EOF
4674 #define HAVE_H_ERRNO 1
4679 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4680 # for constant arguments. Useless!
4681 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4682 echo "configure:4683: checking for working alloca.h" >&5
4683 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4684 echo $ac_n "(cached) $ac_c" 1>&6
4686 cat > conftest.
$ac_ext <<EOF
4687 #line 4688 "configure"
4688 #include "confdefs.h"
4691 char *p = alloca(2 * sizeof(int));
4694 if { (eval echo configure
:4695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4696 ac_cv_header_alloca_h
=yes
4698 echo "configure: failed program was:" >&5
4699 cat conftest.
$ac_ext >&5
4701 ac_cv_header_alloca_h
=no
4706 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4707 if test $ac_cv_header_alloca_h = yes; then
4708 cat >> confdefs.h
<<\EOF
4709 #define HAVE_ALLOCA_H 1
4714 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4715 echo "configure:4716: checking for alloca" >&5
4716 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4717 echo $ac_n "(cached) $ac_c" 1>&6
4719 cat > conftest.
$ac_ext <<EOF
4720 #line 4721 "configure"
4721 #include "confdefs.h"
4724 # define alloca __builtin_alloca
4727 # include <malloc.h>
4728 # define alloca _alloca
4731 # include <alloca.h>
4736 # ifndef alloca /* predefined by HP cc +Olibcalls */
4745 char *p = (char *) alloca(1);
4748 if { (eval echo configure
:4749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4750 ac_cv_func_alloca_works
=yes
4752 echo "configure: failed program was:" >&5
4753 cat conftest.
$ac_ext >&5
4755 ac_cv_func_alloca_works
=no
4760 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4761 if test $ac_cv_func_alloca_works = yes; then
4762 cat >> confdefs.h
<<\EOF
4763 #define HAVE_ALLOCA 1
4768 if test $ac_cv_func_alloca_works = no
; then
4769 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4770 # that cause trouble. Some versions do not even contain alloca or
4771 # contain a buggy version. If you still want to use their alloca,
4772 # use ar to extract alloca.o from them instead of compiling alloca.c.
4773 ALLOCA
=alloca.
${ac_objext}
4774 cat >> confdefs.h
<<\EOF
4779 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4780 echo "configure:4781: checking whether alloca needs Cray hooks" >&5
4781 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4782 echo $ac_n "(cached) $ac_c" 1>&6
4784 cat > conftest.
$ac_ext <<EOF
4785 #line 4786 "configure"
4786 #include "confdefs.h"
4787 #if defined(CRAY) && ! defined(CRAY2)
4794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4795 egrep "webecray" >/dev
/null
2>&1; then
4806 echo "$ac_t""$ac_cv_os_cray" 1>&6
4807 if test $ac_cv_os_cray = yes; then
4808 for ac_func
in _getb67 GETB67 getb67
; do
4809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4810 echo "configure:4811: checking for $ac_func" >&5
4811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4812 echo $ac_n "(cached) $ac_c" 1>&6
4814 cat > conftest.
$ac_ext <<EOF
4815 #line 4816 "configure"
4816 #include "confdefs.h"
4817 /* System header to define __stub macros and hopefully few prototypes,
4818 which can conflict with char $ac_func(); below. */
4820 /* Override any gcc2 internal prototype to avoid an error. */
4821 /* We use char because int might match the return type of a gcc2
4822 builtin and then its argument prototype would still apply. */
4827 /* The GNU C library defines this for functions which it implements
4828 to always fail with ENOSYS. Some functions are actually named
4829 something starting with __ and the normal name is an alias. */
4830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4838 if { (eval echo configure
:4839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4840 eval "ac_cv_func_$ac_func=yes"
4842 echo "configure: failed program was:" >&5
4843 cat conftest.
$ac_ext >&5
4845 eval "ac_cv_func_$ac_func=no"
4850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4851 echo "$ac_t""yes" 1>&6
4852 cat >> confdefs.h
<<EOF
4853 #define CRAY_STACKSEG_END $ac_func
4858 echo "$ac_t""no" 1>&6
4864 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4865 echo "configure:4866: checking stack direction for C alloca" >&5
4866 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4867 echo $ac_n "(cached) $ac_c" 1>&6
4869 if test "$cross_compiling" = yes; then
4870 ac_cv_c_stack_direction
=0
4872 cat > conftest.
$ac_ext <<EOF
4873 #line 4874 "configure"
4874 #include "confdefs.h"
4875 find_stack_direction ()
4877 static char *addr = 0;
4882 return find_stack_direction ();
4885 return (&dummy > addr) ? 1 : -1;
4889 exit (find_stack_direction() < 0);
4892 if { (eval echo configure
:4893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4894 ac_cv_c_stack_direction
=1
4896 echo "configure: failed program was:" >&5
4897 cat conftest.
$ac_ext >&5
4899 ac_cv_c_stack_direction
=-1
4906 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4907 cat >> confdefs.h
<<EOF
4908 #define STACK_DIRECTION $ac_cv_c_stack_direction
4914 # fmod, logb, and frexp are found in -lm on most systems.
4915 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
4916 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
4917 echo "configure:4918: checking for sqrt in -lm" >&5
4918 ac_lib_var
=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
4919 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4920 echo $ac_n "(cached) $ac_c" 1>&6
4922 ac_save_LIBS
="$LIBS"
4924 cat > conftest.
$ac_ext <<EOF
4925 #line 4926 "configure"
4926 #include "confdefs.h"
4927 /* Override any gcc2 internal prototype to avoid an error. */
4928 /* We use char because int might match the return type of a gcc2
4929 builtin and then its argument prototype would still apply. */
4936 if { (eval echo configure
:4937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4938 eval "ac_cv_lib_$ac_lib_var=yes"
4940 echo "configure: failed program was:" >&5
4941 cat conftest.
$ac_ext >&5
4943 eval "ac_cv_lib_$ac_lib_var=no"
4946 LIBS
="$ac_save_LIBS"
4949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4950 echo "$ac_t""yes" 1>&6
4951 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4952 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4953 cat >> confdefs.h
<<EOF
4954 #define $ac_tr_lib 1
4960 echo "$ac_t""no" 1>&6
4964 # Check for mail-locking functions in a "mail" library
4965 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
4966 echo "configure:4967: checking for maillock in -lmail" >&5
4967 ac_lib_var
=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
4968 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4969 echo $ac_n "(cached) $ac_c" 1>&6
4971 ac_save_LIBS
="$LIBS"
4973 cat > conftest.
$ac_ext <<EOF
4974 #line 4975 "configure"
4975 #include "confdefs.h"
4976 /* Override any gcc2 internal prototype to avoid an error. */
4977 /* We use char because int might match the return type of a gcc2
4978 builtin and then its argument prototype would still apply. */
4985 if { (eval echo configure
:4986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4987 eval "ac_cv_lib_$ac_lib_var=yes"
4989 echo "configure: failed program was:" >&5
4990 cat conftest.
$ac_ext >&5
4992 eval "ac_cv_lib_$ac_lib_var=no"
4995 LIBS
="$ac_save_LIBS"
4998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4999 echo "$ac_t""yes" 1>&6
5000 ac_tr_lib
=HAVE_LIB
`echo mail | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5001 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5002 cat >> confdefs.h
<<EOF
5003 #define $ac_tr_lib 1
5009 echo "$ac_t""no" 1>&6
5012 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6
5013 echo "configure:5014: checking for maillock in -llockfile" >&5
5014 ac_lib_var
=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`
5015 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5016 echo $ac_n "(cached) $ac_c" 1>&6
5018 ac_save_LIBS
="$LIBS"
5019 LIBS
="-llockfile $LIBS"
5020 cat > conftest.
$ac_ext <<EOF
5021 #line 5022 "configure"
5022 #include "confdefs.h"
5023 /* Override any gcc2 internal prototype to avoid an error. */
5024 /* We use char because int might match the return type of a gcc2
5025 builtin and then its argument prototype would still apply. */
5032 if { (eval echo configure
:5033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5034 eval "ac_cv_lib_$ac_lib_var=yes"
5036 echo "configure: failed program was:" >&5
5037 cat conftest.
$ac_ext >&5
5039 eval "ac_cv_lib_$ac_lib_var=no"
5042 LIBS
="$ac_save_LIBS"
5045 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5046 echo "$ac_t""yes" 1>&6
5047 ac_tr_lib
=HAVE_LIB
`echo lockfile | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5048 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5049 cat >> confdefs.h
<<EOF
5050 #define $ac_tr_lib 1
5053 LIBS
="-llockfile $LIBS"
5056 echo "$ac_t""no" 1>&6
5059 # If we have the shared liblockfile, assume we must use it for mail
5060 # locking (e.g. Debian). If we couldn't link against liblockfile
5061 # (no liblockfile.a installed), ensure that we don't need to.
5062 if test "$ac_cv_lib_lockfile_maillock" = no
; then
5063 # Extract the first word of "liblockfile.so", so it can be a program name with args.
5064 set dummy liblockfile.so
; ac_word
=$2
5065 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5066 echo "configure:5067: checking for $ac_word" >&5
5067 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then
5068 echo $ac_n "(cached) $ac_c" 1>&6
5070 if test -n "$liblockfile"; then
5071 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
5073 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5074 ac_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
5075 for ac_dir
in $ac_dummy; do
5076 test -z "$ac_dir" && ac_dir
=.
5077 if test -f $ac_dir/$ac_word; then
5078 ac_cv_prog_liblockfile
="yes"
5083 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
5086 liblockfile
="$ac_cv_prog_liblockfile"
5087 if test -n "$liblockfile"; then
5088 echo "$ac_t""$liblockfile" 1>&6
5090 echo "$ac_t""no" 1>&6
5093 if test $ac_cv_prog_liblockfile = yes; then
5094 { echo "configure: error: Shared liblockfile found but can't link against it.
5095 This probably means that movemail could lose mail.
5096 There may be a \`development' package to install containing liblockfile." 1>&2; exit 1; }
5097 else cat >> confdefs.h
<<\EOF
5098 #define LIBMAIL -llockfile
5104 for ac_func
in touchlock
5106 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5107 echo "configure:5108: checking for $ac_func" >&5
5108 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5109 echo $ac_n "(cached) $ac_c" 1>&6
5111 cat > conftest.
$ac_ext <<EOF
5112 #line 5113 "configure"
5113 #include "confdefs.h"
5114 /* System header to define __stub macros and hopefully few prototypes,
5115 which can conflict with char $ac_func(); below. */
5117 /* Override any gcc2 internal prototype to avoid an error. */
5118 /* We use char because int might match the return type of a gcc2
5119 builtin and then its argument prototype would still apply. */
5124 /* The GNU C library defines this for functions which it implements
5125 to always fail with ENOSYS. Some functions are actually named
5126 something starting with __ and the normal name is an alias. */
5127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5135 if { (eval echo configure
:5136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5137 eval "ac_cv_func_$ac_func=yes"
5139 echo "configure: failed program was:" >&5
5140 cat conftest.
$ac_ext >&5
5142 eval "ac_cv_func_$ac_func=no"
5147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5148 echo "$ac_t""yes" 1>&6
5149 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5150 cat >> confdefs.h
<<EOF
5151 #define $ac_tr_func 1
5155 echo "$ac_t""no" 1>&6
5159 for ac_hdr
in maillock.h
5161 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5162 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5163 echo "configure:5164: checking for $ac_hdr" >&5
5164 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5165 echo $ac_n "(cached) $ac_c" 1>&6
5167 cat > conftest.
$ac_ext <<EOF
5168 #line 5169 "configure"
5169 #include "confdefs.h"
5172 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5173 { (eval echo configure
:5174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5174 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5175 if test -z "$ac_err"; then
5177 eval "ac_cv_header_$ac_safe=yes"
5180 echo "configure: failed program was:" >&5
5181 cat conftest.
$ac_ext >&5
5183 eval "ac_cv_header_$ac_safe=no"
5187 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5188 echo "$ac_t""yes" 1>&6
5189 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5190 cat >> confdefs.h
<<EOF
5191 #define $ac_tr_hdr 1
5195 echo "$ac_t""no" 1>&6
5200 for ac_func
in gettimeofday gethostname getdomainname dup2 \
5201 rename closedir mkdir
rmdir sysinfo \
5202 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
5203 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
5204 utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo \
5205 __fpending ftello getloadavg mblen mbrlen strsignal setitimer ualarm
5207 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5208 echo "configure:5209: checking for $ac_func" >&5
5209 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5210 echo $ac_n "(cached) $ac_c" 1>&6
5212 cat > conftest.
$ac_ext <<EOF
5213 #line 5214 "configure"
5214 #include "confdefs.h"
5215 /* System header to define __stub macros and hopefully few prototypes,
5216 which can conflict with char $ac_func(); below. */
5218 /* Override any gcc2 internal prototype to avoid an error. */
5219 /* We use char because int might match the return type of a gcc2
5220 builtin and then its argument prototype would still apply. */
5225 /* The GNU C library defines this for functions which it implements
5226 to always fail with ENOSYS. Some functions are actually named
5227 something starting with __ and the normal name is an alias. */
5228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5236 if { (eval echo configure
:5237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5238 eval "ac_cv_func_$ac_func=yes"
5240 echo "configure: failed program was:" >&5
5241 cat conftest.
$ac_ext >&5
5243 eval "ac_cv_func_$ac_func=no"
5248 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5249 echo "$ac_t""yes" 1>&6
5250 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5251 cat >> confdefs.h
<<EOF
5252 #define $ac_tr_func 1
5256 echo "$ac_t""no" 1>&6
5261 # Check this now, so that we will NOT find the above functions in ncurses.
5262 # That is because we have not set up to link ncurses in lib-src.
5263 # It's better to believe a function is not available
5264 # than to expect to find it in ncurses.
5265 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
5266 echo "configure:5267: checking for tparm in -lncurses" >&5
5267 ac_lib_var
=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
5268 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5269 echo $ac_n "(cached) $ac_c" 1>&6
5271 ac_save_LIBS
="$LIBS"
5272 LIBS
="-lncurses $LIBS"
5273 cat > conftest.
$ac_ext <<EOF
5274 #line 5275 "configure"
5275 #include "confdefs.h"
5276 /* Override any gcc2 internal prototype to avoid an error. */
5277 /* We use char because int might match the return type of a gcc2
5278 builtin and then its argument prototype would still apply. */
5285 if { (eval echo configure
:5286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5287 eval "ac_cv_lib_$ac_lib_var=yes"
5289 echo "configure: failed program was:" >&5
5290 cat conftest.
$ac_ext >&5
5292 eval "ac_cv_lib_$ac_lib_var=no"
5295 LIBS
="$ac_save_LIBS"
5298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5299 echo "$ac_t""yes" 1>&6
5300 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5301 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5302 cat >> confdefs.h
<<EOF
5303 #define $ac_tr_lib 1
5306 LIBS
="-lncurses $LIBS"
5309 echo "$ac_t""no" 1>&6
5313 # These tell us which Kerberos-related libraries to use.
5314 if test "${with_kerberos+set}" = set; then
5315 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
5316 echo "configure:5317: checking for com_err in -lcom_err" >&5
5317 ac_lib_var
=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
5318 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5319 echo $ac_n "(cached) $ac_c" 1>&6
5321 ac_save_LIBS
="$LIBS"
5322 LIBS
="-lcom_err $LIBS"
5323 cat > conftest.
$ac_ext <<EOF
5324 #line 5325 "configure"
5325 #include "confdefs.h"
5326 /* Override any gcc2 internal prototype to avoid an error. */
5327 /* We use char because int might match the return type of a gcc2
5328 builtin and then its argument prototype would still apply. */
5335 if { (eval echo configure
:5336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5337 eval "ac_cv_lib_$ac_lib_var=yes"
5339 echo "configure: failed program was:" >&5
5340 cat conftest.
$ac_ext >&5
5342 eval "ac_cv_lib_$ac_lib_var=no"
5345 LIBS
="$ac_save_LIBS"
5348 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5349 echo "$ac_t""yes" 1>&6
5350 ac_tr_lib
=HAVE_LIB
`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5351 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5352 cat >> confdefs.h
<<EOF
5353 #define $ac_tr_lib 1
5356 LIBS
="-lcom_err $LIBS"
5359 echo "$ac_t""no" 1>&6
5362 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6
5363 echo "configure:5364: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
5364 ac_lib_var
=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
5365 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5366 echo $ac_n "(cached) $ac_c" 1>&6
5368 ac_save_LIBS
="$LIBS"
5369 LIBS
="-lk5crypto $LIBS"
5370 cat > conftest.
$ac_ext <<EOF
5371 #line 5372 "configure"
5372 #include "confdefs.h"
5373 /* Override any gcc2 internal prototype to avoid an error. */
5374 /* We use char because int might match the return type of a gcc2
5375 builtin and then its argument prototype would still apply. */
5376 char mit_des_cbc_encrypt();
5379 mit_des_cbc_encrypt()
5382 if { (eval echo configure
:5383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5384 eval "ac_cv_lib_$ac_lib_var=yes"
5386 echo "configure: failed program was:" >&5
5387 cat conftest.
$ac_ext >&5
5389 eval "ac_cv_lib_$ac_lib_var=no"
5392 LIBS
="$ac_save_LIBS"
5395 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5396 echo "$ac_t""yes" 1>&6
5397 ac_tr_lib
=HAVE_LIB
`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5398 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5399 cat >> confdefs.h
<<EOF
5400 #define $ac_tr_lib 1
5403 LIBS
="-lk5crypto $LIBS"
5406 echo "$ac_t""no" 1>&6
5409 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
5410 echo "configure:5411: checking for mit_des_cbc_encrypt in -lcrypto" >&5
5411 ac_lib_var
=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
5412 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5413 echo $ac_n "(cached) $ac_c" 1>&6
5415 ac_save_LIBS
="$LIBS"
5416 LIBS
="-lcrypto $LIBS"
5417 cat > conftest.
$ac_ext <<EOF
5418 #line 5419 "configure"
5419 #include "confdefs.h"
5420 /* Override any gcc2 internal prototype to avoid an error. */
5421 /* We use char because int might match the return type of a gcc2
5422 builtin and then its argument prototype would still apply. */
5423 char mit_des_cbc_encrypt();
5426 mit_des_cbc_encrypt()
5429 if { (eval echo configure
:5430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5431 eval "ac_cv_lib_$ac_lib_var=yes"
5433 echo "configure: failed program was:" >&5
5434 cat conftest.
$ac_ext >&5
5436 eval "ac_cv_lib_$ac_lib_var=no"
5439 LIBS
="$ac_save_LIBS"
5442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5443 echo "$ac_t""yes" 1>&6
5444 ac_tr_lib
=HAVE_LIB
`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5445 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5446 cat >> confdefs.h
<<EOF
5447 #define $ac_tr_lib 1
5450 LIBS
="-lcrypto $LIBS"
5453 echo "$ac_t""no" 1>&6
5456 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6
5457 echo "configure:5458: checking for krb5_init_context in -lkrb5" >&5
5458 ac_lib_var
=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'`
5459 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5460 echo $ac_n "(cached) $ac_c" 1>&6
5462 ac_save_LIBS
="$LIBS"
5464 cat > conftest.
$ac_ext <<EOF
5465 #line 5466 "configure"
5466 #include "confdefs.h"
5467 /* Override any gcc2 internal prototype to avoid an error. */
5468 /* We use char because int might match the return type of a gcc2
5469 builtin and then its argument prototype would still apply. */
5470 char krb5_init_context();
5476 if { (eval echo configure
:5477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5478 eval "ac_cv_lib_$ac_lib_var=yes"
5480 echo "configure: failed program was:" >&5
5481 cat conftest.
$ac_ext >&5
5483 eval "ac_cv_lib_$ac_lib_var=no"
5486 LIBS
="$ac_save_LIBS"
5489 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5490 echo "$ac_t""yes" 1>&6
5491 ac_tr_lib
=HAVE_LIB
`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5492 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5493 cat >> confdefs.h
<<EOF
5494 #define $ac_tr_lib 1
5500 echo "$ac_t""no" 1>&6
5503 if test "${with_kerberos5+set}" != set; then
5504 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6
5505 echo "configure:5506: checking for des_cbc_encrypt in -ldes425" >&5
5506 ac_lib_var
=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
5507 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5508 echo $ac_n "(cached) $ac_c" 1>&6
5510 ac_save_LIBS
="$LIBS"
5511 LIBS
="-ldes425 $LIBS"
5512 cat > conftest.
$ac_ext <<EOF
5513 #line 5514 "configure"
5514 #include "confdefs.h"
5515 /* Override any gcc2 internal prototype to avoid an error. */
5516 /* We use char because int might match the return type of a gcc2
5517 builtin and then its argument prototype would still apply. */
5518 char des_cbc_encrypt();
5524 if { (eval echo configure
:5525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5526 eval "ac_cv_lib_$ac_lib_var=yes"
5528 echo "configure: failed program was:" >&5
5529 cat conftest.
$ac_ext >&5
5531 eval "ac_cv_lib_$ac_lib_var=no"
5534 LIBS
="$ac_save_LIBS"
5537 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5538 echo "$ac_t""yes" 1>&6
5539 ac_tr_lib
=HAVE_LIB
`echo des425 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5540 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5541 cat >> confdefs.h
<<EOF
5542 #define $ac_tr_lib 1
5545 LIBS
="-ldes425 $LIBS"
5548 echo "$ac_t""no" 1>&6
5549 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6
5550 echo "configure:5551: checking for des_cbc_encrypt in -ldes" >&5
5551 ac_lib_var
=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
5552 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5553 echo $ac_n "(cached) $ac_c" 1>&6
5555 ac_save_LIBS
="$LIBS"
5557 cat > conftest.
$ac_ext <<EOF
5558 #line 5559 "configure"
5559 #include "confdefs.h"
5560 /* Override any gcc2 internal prototype to avoid an error. */
5561 /* We use char because int might match the return type of a gcc2
5562 builtin and then its argument prototype would still apply. */
5563 char des_cbc_encrypt();
5569 if { (eval echo configure
:5570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5571 eval "ac_cv_lib_$ac_lib_var=yes"
5573 echo "configure: failed program was:" >&5
5574 cat conftest.
$ac_ext >&5
5576 eval "ac_cv_lib_$ac_lib_var=no"
5579 LIBS
="$ac_save_LIBS"
5582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5583 echo "$ac_t""yes" 1>&6
5584 ac_tr_lib
=HAVE_LIB
`echo des | sed -e 's/^a-zA-Z0-9_/_/g' \
5585 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5586 cat >> confdefs.h
<<EOF
5587 #define $ac_tr_lib 1
5593 echo "$ac_t""no" 1>&6
5598 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6
5599 echo "configure:5600: checking for krb_get_cred in -lkrb4" >&5
5600 ac_lib_var
=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'`
5601 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5602 echo $ac_n "(cached) $ac_c" 1>&6
5604 ac_save_LIBS
="$LIBS"
5606 cat > conftest.
$ac_ext <<EOF
5607 #line 5608 "configure"
5608 #include "confdefs.h"
5609 /* Override any gcc2 internal prototype to avoid an error. */
5610 /* We use char because int might match the return type of a gcc2
5611 builtin and then its argument prototype would still apply. */
5612 char krb_get_cred();
5618 if { (eval echo configure
:5619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5620 eval "ac_cv_lib_$ac_lib_var=yes"
5622 echo "configure: failed program was:" >&5
5623 cat conftest.
$ac_ext >&5
5625 eval "ac_cv_lib_$ac_lib_var=no"
5628 LIBS
="$ac_save_LIBS"
5631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5632 echo "$ac_t""yes" 1>&6
5633 ac_tr_lib
=HAVE_LIB
`echo krb4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5634 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5635 cat >> confdefs.h
<<EOF
5636 #define $ac_tr_lib 1
5642 echo "$ac_t""no" 1>&6
5643 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6
5644 echo "configure:5645: checking for krb_get_cred in -lkrb" >&5
5645 ac_lib_var
=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'`
5646 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5647 echo $ac_n "(cached) $ac_c" 1>&6
5649 ac_save_LIBS
="$LIBS"
5651 cat > conftest.
$ac_ext <<EOF
5652 #line 5653 "configure"
5653 #include "confdefs.h"
5654 /* Override any gcc2 internal prototype to avoid an error. */
5655 /* We use char because int might match the return type of a gcc2
5656 builtin and then its argument prototype would still apply. */
5657 char krb_get_cred();
5663 if { (eval echo configure
:5664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5665 eval "ac_cv_lib_$ac_lib_var=yes"
5667 echo "configure: failed program was:" >&5
5668 cat conftest.
$ac_ext >&5
5670 eval "ac_cv_lib_$ac_lib_var=no"
5673 LIBS
="$ac_save_LIBS"
5676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5677 echo "$ac_t""yes" 1>&6
5678 ac_tr_lib
=HAVE_LIB
`echo krb | sed -e 's/^a-zA-Z0-9_/_/g' \
5679 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5680 cat >> confdefs.h
<<EOF
5681 #define $ac_tr_lib 1
5687 echo "$ac_t""no" 1>&6
5694 if test "${with_kerberos5+set}" = set; then
5695 for ac_hdr
in krb5.h
5697 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5698 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5699 echo "configure:5700: checking for $ac_hdr" >&5
5700 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5701 echo $ac_n "(cached) $ac_c" 1>&6
5703 cat > conftest.
$ac_ext <<EOF
5704 #line 5705 "configure"
5705 #include "confdefs.h"
5708 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5709 { (eval echo configure
:5710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5710 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5711 if test -z "$ac_err"; then
5713 eval "ac_cv_header_$ac_safe=yes"
5716 echo "configure: failed program was:" >&5
5717 cat conftest.
$ac_ext >&5
5719 eval "ac_cv_header_$ac_safe=no"
5723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5724 echo "$ac_t""yes" 1>&6
5725 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5726 cat >> confdefs.h
<<EOF
5727 #define $ac_tr_hdr 1
5731 echo "$ac_t""no" 1>&6
5738 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5739 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5740 echo "configure:5741: checking for $ac_hdr" >&5
5741 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5742 echo $ac_n "(cached) $ac_c" 1>&6
5744 cat > conftest.
$ac_ext <<EOF
5745 #line 5746 "configure"
5746 #include "confdefs.h"
5749 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5750 { (eval echo configure
:5751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5751 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5752 if test -z "$ac_err"; then
5754 eval "ac_cv_header_$ac_safe=yes"
5757 echo "configure: failed program was:" >&5
5758 cat conftest.
$ac_ext >&5
5760 eval "ac_cv_header_$ac_safe=no"
5764 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5765 echo "$ac_t""yes" 1>&6
5766 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5767 cat >> confdefs.h
<<EOF
5768 #define $ac_tr_hdr 1
5772 echo "$ac_t""no" 1>&6
5773 for ac_hdr
in kerberosIV
/des.h
5775 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5776 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5777 echo "configure:5778: checking for $ac_hdr" >&5
5778 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5779 echo $ac_n "(cached) $ac_c" 1>&6
5781 cat > conftest.
$ac_ext <<EOF
5782 #line 5783 "configure"
5783 #include "confdefs.h"
5786 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5787 { (eval echo configure
:5788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5788 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5789 if test -z "$ac_err"; then
5791 eval "ac_cv_header_$ac_safe=yes"
5794 echo "configure: failed program was:" >&5
5795 cat conftest.
$ac_ext >&5
5797 eval "ac_cv_header_$ac_safe=no"
5801 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5802 echo "$ac_t""yes" 1>&6
5803 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5804 cat >> confdefs.h
<<EOF
5805 #define $ac_tr_hdr 1
5809 echo "$ac_t""no" 1>&6
5810 for ac_hdr
in kerberos
/des.h
5812 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5813 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5814 echo "configure:5815: checking for $ac_hdr" >&5
5815 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5816 echo $ac_n "(cached) $ac_c" 1>&6
5818 cat > conftest.
$ac_ext <<EOF
5819 #line 5820 "configure"
5820 #include "confdefs.h"
5823 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5824 { (eval echo configure
:5825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5825 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5826 if test -z "$ac_err"; then
5828 eval "ac_cv_header_$ac_safe=yes"
5831 echo "configure: failed program was:" >&5
5832 cat conftest.
$ac_ext >&5
5834 eval "ac_cv_header_$ac_safe=no"
5838 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5839 echo "$ac_t""yes" 1>&6
5840 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5841 cat >> confdefs.h
<<EOF
5842 #define $ac_tr_hdr 1
5846 echo "$ac_t""no" 1>&6
5858 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5859 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5860 echo "configure:5861: checking for $ac_hdr" >&5
5861 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5862 echo $ac_n "(cached) $ac_c" 1>&6
5864 cat > conftest.
$ac_ext <<EOF
5865 #line 5866 "configure"
5866 #include "confdefs.h"
5869 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5870 { (eval echo configure
:5871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5871 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5872 if test -z "$ac_err"; then
5874 eval "ac_cv_header_$ac_safe=yes"
5877 echo "configure: failed program was:" >&5
5878 cat conftest.
$ac_ext >&5
5880 eval "ac_cv_header_$ac_safe=no"
5884 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5885 echo "$ac_t""yes" 1>&6
5886 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5887 cat >> confdefs.h
<<EOF
5888 #define $ac_tr_hdr 1
5892 echo "$ac_t""no" 1>&6
5893 for ac_hdr
in kerberosIV
/krb.h
5895 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5896 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5897 echo "configure:5898: checking for $ac_hdr" >&5
5898 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5899 echo $ac_n "(cached) $ac_c" 1>&6
5901 cat > conftest.
$ac_ext <<EOF
5902 #line 5903 "configure"
5903 #include "confdefs.h"
5906 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5907 { (eval echo configure
:5908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5908 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5909 if test -z "$ac_err"; then
5911 eval "ac_cv_header_$ac_safe=yes"
5914 echo "configure: failed program was:" >&5
5915 cat conftest.
$ac_ext >&5
5917 eval "ac_cv_header_$ac_safe=no"
5921 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5922 echo "$ac_t""yes" 1>&6
5923 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5924 cat >> confdefs.h
<<EOF
5925 #define $ac_tr_hdr 1
5929 echo "$ac_t""no" 1>&6
5930 for ac_hdr
in kerberos
/krb.h
5932 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5933 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5934 echo "configure:5935: checking for $ac_hdr" >&5
5935 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5936 echo $ac_n "(cached) $ac_c" 1>&6
5938 cat > conftest.
$ac_ext <<EOF
5939 #line 5940 "configure"
5940 #include "confdefs.h"
5943 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5944 { (eval echo configure
:5945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5945 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5946 if test -z "$ac_err"; then
5948 eval "ac_cv_header_$ac_safe=yes"
5951 echo "configure: failed program was:" >&5
5952 cat conftest.
$ac_ext >&5
5954 eval "ac_cv_header_$ac_safe=no"
5958 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5959 echo "$ac_t""yes" 1>&6
5960 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5961 cat >> confdefs.h
<<EOF
5962 #define $ac_tr_hdr 1
5966 echo "$ac_t""no" 1>&6
5977 for ac_hdr
in com_err.h
5979 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5980 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5981 echo "configure:5982: checking for $ac_hdr" >&5
5982 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5983 echo $ac_n "(cached) $ac_c" 1>&6
5985 cat > conftest.
$ac_ext <<EOF
5986 #line 5987 "configure"
5987 #include "confdefs.h"
5990 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5991 { (eval echo configure
:5992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5992 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5993 if test -z "$ac_err"; then
5995 eval "ac_cv_header_$ac_safe=yes"
5998 echo "configure: failed program was:" >&5
5999 cat conftest.
$ac_ext >&5
6001 eval "ac_cv_header_$ac_safe=no"
6005 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6006 echo "$ac_t""yes" 1>&6
6007 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6008 cat >> confdefs.h
<<EOF
6009 #define $ac_tr_hdr 1
6013 echo "$ac_t""no" 1>&6
6019 # Solaris requires -lintl if you want strerror (which calls dgettext)
6020 # to return localized messages.
6021 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
6022 echo "configure:6023: checking for dgettext in -lintl" >&5
6023 ac_lib_var
=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
6024 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6025 echo $ac_n "(cached) $ac_c" 1>&6
6027 ac_save_LIBS
="$LIBS"
6029 cat > conftest.
$ac_ext <<EOF
6030 #line 6031 "configure"
6031 #include "confdefs.h"
6032 /* Override any gcc2 internal prototype to avoid an error. */
6033 /* We use char because int might match the return type of a gcc2
6034 builtin and then its argument prototype would still apply. */
6041 if { (eval echo configure
:6042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6043 eval "ac_cv_lib_$ac_lib_var=yes"
6045 echo "configure: failed program was:" >&5
6046 cat conftest.
$ac_ext >&5
6048 eval "ac_cv_lib_$ac_lib_var=no"
6051 LIBS
="$ac_save_LIBS"
6054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6055 echo "$ac_t""yes" 1>&6
6056 ac_tr_lib
=HAVE_LIB
`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6057 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6058 cat >> confdefs.h
<<EOF
6059 #define $ac_tr_lib 1
6065 echo "$ac_t""no" 1>&6
6069 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
6070 echo "configure:6071: checking whether localtime caches TZ" >&5
6071 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
6072 echo $ac_n "(cached) $ac_c" 1>&6
6074 if test x
$ac_cv_func_tzset = xyes
; then
6075 if test "$cross_compiling" = yes; then
6076 # If we have tzset, assume the worst when cross-compiling.
6077 emacs_cv_localtime_cache
=yes
6079 cat > conftest.
$ac_ext <<EOF
6080 #line 6081 "configure"
6081 #include "confdefs.h"
6083 extern char **environ;
6087 for (to = from = environ; (*to = *from); from++)
6088 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
6091 char TZ_GMT0[] = "TZ=GMT0";
6092 char TZ_PST8[] = "TZ=PST8";
6095 time_t now = time ((time_t *) 0);
6096 int hour_GMT0, hour_unset;
6097 if (putenv (TZ_GMT0) != 0)
6099 hour_GMT0 = localtime (&now)->tm_hour;
6101 hour_unset = localtime (&now)->tm_hour;
6102 if (putenv (TZ_PST8) != 0)
6104 if (localtime (&now)->tm_hour == hour_GMT0)
6107 if (localtime (&now)->tm_hour != hour_unset)
6112 if { (eval echo configure
:6113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6114 emacs_cv_localtime_cache
=no
6116 echo "configure: failed program was:" >&5
6117 cat conftest.
$ac_ext >&5
6119 emacs_cv_localtime_cache
=yes
6125 # If we lack tzset, report that localtime does not cache TZ,
6126 # since we can't invalidate the cache if we don't have tzset.
6127 emacs_cv_localtime_cache
=no
6130 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
6131 if test $emacs_cv_localtime_cache = yes; then
6132 cat >> confdefs.h
<<\EOF
6133 #define LOCALTIME_CACHE 1
6138 if test "x$HAVE_TIMEVAL" = xyes
; then
6139 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
6140 echo "configure:6141: checking whether gettimeofday can accept two arguments" >&5
6141 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
6142 echo $ac_n "(cached) $ac_c" 1>&6
6144 cat > conftest.
$ac_ext <<EOF
6145 #line 6146 "configure"
6146 #include "confdefs.h"
6148 #ifdef TIME_WITH_SYS_TIME
6149 #include <sys/time.h>
6152 #ifdef HAVE_SYS_TIME_H
6153 #include <sys/time.h>
6161 struct timeval time;
6162 struct timezone dummy;
6163 gettimeofday (&time, &dummy);
6167 if { (eval echo configure
:6168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6169 emacs_cv_gettimeofday_two_arguments
=yes
6171 echo "configure: failed program was:" >&5
6172 cat conftest.
$ac_ext >&5
6174 emacs_cv_gettimeofday_two_arguments
=no
6179 echo "$ac_t""$emacs_cv_gettimeofday_two_arguments" 1>&6
6180 if test $emacs_cv_gettimeofday_two_arguments = no
; then
6181 cat >> confdefs.h
<<\EOF
6182 #define GETTIMEOFDAY_ONE_ARGUMENT 1
6189 echo $ac_n "checking for socket""... $ac_c" 1>&6
6190 echo "configure:6191: checking for socket" >&5
6191 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
6192 echo $ac_n "(cached) $ac_c" 1>&6
6194 cat > conftest.
$ac_ext <<EOF
6195 #line 6196 "configure"
6196 #include "confdefs.h"
6197 /* System header to define __stub macros and hopefully few prototypes,
6198 which can conflict with char socket(); below. */
6200 /* Override any gcc2 internal prototype to avoid an error. */
6201 /* We use char because int might match the return type of a gcc2
6202 builtin and then its argument prototype would still apply. */
6207 /* The GNU C library defines this for functions which it implements
6208 to always fail with ENOSYS. Some functions are actually named
6209 something starting with __ and the normal name is an alias. */
6210 #if defined (__stub_socket) || defined (__stub___socket)
6218 if { (eval echo configure
:6219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6220 eval "ac_cv_func_socket=yes"
6222 echo "configure: failed program was:" >&5
6223 cat conftest.
$ac_ext >&5
6225 eval "ac_cv_func_socket=no"
6230 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
6231 echo "$ac_t""yes" 1>&6
6234 echo "$ac_t""no" 1>&6
6238 if test $ok_so_far = yes; then
6239 ac_safe
=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
6240 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
6241 echo "configure:6242: checking for netinet/in.h" >&5
6242 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6243 echo $ac_n "(cached) $ac_c" 1>&6
6245 cat > conftest.
$ac_ext <<EOF
6246 #line 6247 "configure"
6247 #include "confdefs.h"
6248 #include <netinet/in.h>
6250 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6251 { (eval echo configure
:6252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6252 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6253 if test -z "$ac_err"; then
6255 eval "ac_cv_header_$ac_safe=yes"
6258 echo "configure: failed program was:" >&5
6259 cat conftest.
$ac_ext >&5
6261 eval "ac_cv_header_$ac_safe=no"
6265 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6266 echo "$ac_t""yes" 1>&6
6269 echo "$ac_t""no" 1>&6
6274 if test $ok_so_far = yes; then
6275 ac_safe
=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
6276 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
6277 echo "configure:6278: checking for arpa/inet.h" >&5
6278 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6279 echo $ac_n "(cached) $ac_c" 1>&6
6281 cat > conftest.
$ac_ext <<EOF
6282 #line 6283 "configure"
6283 #include "confdefs.h"
6284 #include <arpa/inet.h>
6286 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6287 { (eval echo configure
:6288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6288 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6289 if test -z "$ac_err"; then
6291 eval "ac_cv_header_$ac_safe=yes"
6294 echo "configure: failed program was:" >&5
6295 cat conftest.
$ac_ext >&5
6297 eval "ac_cv_header_$ac_safe=no"
6301 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6302 echo "$ac_t""yes" 1>&6
6305 echo "$ac_t""no" 1>&6
6310 if test $ok_so_far = yes; then
6311 cat >> confdefs.h
<<\EOF
6312 #define HAVE_INET_SOCKETS 1
6317 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
6318 cat >> confdefs.h
<<\EOF
6319 #define HAVE_AIX_SMT_EXP 1
6324 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6
6325 echo "configure:6326: checking whether system supports dynamic ptys" >&5
6326 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
6327 echo "$ac_t""yes" 1>&6
6328 cat >> confdefs.h
<<\EOF
6329 #define HAVE_DEV_PTMX 1
6333 echo "$ac_t""no" 1>&6
6336 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6337 echo "configure:6338: checking for pid_t" >&5
6338 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6339 echo $ac_n "(cached) $ac_c" 1>&6
6341 cat > conftest.
$ac_ext <<EOF
6342 #line 6343 "configure"
6343 #include "confdefs.h"
6344 #include <sys/types.h>
6350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6351 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6353 ac_cv_type_pid_t
=yes
6361 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6362 if test $ac_cv_type_pid_t = no
; then
6363 cat >> confdefs.h
<<\EOF
6369 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
6370 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
6371 echo "configure:6372: checking for vfork.h" >&5
6372 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6373 echo $ac_n "(cached) $ac_c" 1>&6
6375 cat > conftest.
$ac_ext <<EOF
6376 #line 6377 "configure"
6377 #include "confdefs.h"
6380 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6381 { (eval echo configure
:6382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6382 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6383 if test -z "$ac_err"; then
6385 eval "ac_cv_header_$ac_safe=yes"
6388 echo "configure: failed program was:" >&5
6389 cat conftest.
$ac_ext >&5
6391 eval "ac_cv_header_$ac_safe=no"
6395 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6396 echo "$ac_t""yes" 1>&6
6397 cat >> confdefs.h
<<\EOF
6398 #define HAVE_VFORK_H 1
6402 echo "$ac_t""no" 1>&6
6405 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
6406 echo "configure:6407: checking for working vfork" >&5
6407 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
6408 echo $ac_n "(cached) $ac_c" 1>&6
6410 if test "$cross_compiling" = yes; then
6411 echo $ac_n "checking for vfork""... $ac_c" 1>&6
6412 echo "configure:6413: checking for vfork" >&5
6413 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
6414 echo $ac_n "(cached) $ac_c" 1>&6
6416 cat > conftest.
$ac_ext <<EOF
6417 #line 6418 "configure"
6418 #include "confdefs.h"
6419 /* System header to define __stub macros and hopefully few prototypes,
6420 which can conflict with char vfork(); below. */
6422 /* Override any gcc2 internal prototype to avoid an error. */
6423 /* We use char because int might match the return type of a gcc2
6424 builtin and then its argument prototype would still apply. */
6429 /* The GNU C library defines this for functions which it implements
6430 to always fail with ENOSYS. Some functions are actually named
6431 something starting with __ and the normal name is an alias. */
6432 #if defined (__stub_vfork) || defined (__stub___vfork)
6440 if { (eval echo configure
:6441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6442 eval "ac_cv_func_vfork=yes"
6444 echo "configure: failed program was:" >&5
6445 cat conftest.
$ac_ext >&5
6447 eval "ac_cv_func_vfork=no"
6452 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
6453 echo "$ac_t""yes" 1>&6
6456 echo "$ac_t""no" 1>&6
6459 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6461 cat > conftest.
$ac_ext <<EOF
6462 #line 6463 "configure"
6463 #include "confdefs.h"
6464 /* Thanks to Paul Eggert for this test. */
6466 #include <sys/types.h>
6467 #include <sys/stat.h>
6468 #ifdef HAVE_UNISTD_H
6474 /* On some sparc systems, changes by the child to local and incoming
6475 argument registers are propagated back to the parent.
6476 The compiler is told about this with #include <vfork.h>,
6477 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
6478 Test for this by using a static variable whose address
6479 is put into a register that is clobbered by the vfork. */
6482 sparc_address_test (int arg)
6484 sparc_address_test (arg) int arg;
6502 pid_t parent = getpid ();
6505 sparc_address_test ();
6510 /* Here is another test for sparc vfork register problems.
6511 This test uses lots of local variables, at least
6512 as many local variables as main has allocated so far
6513 including compiler temporaries. 4 locals are enough for
6514 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
6515 A buggy compiler should reuse the register of parent
6516 for one of the local variables, since it will think that
6517 parent can't possibly be used any more in this routine.
6518 Assigning to the local variable will thus munge parent
6519 in the parent process. */
6521 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6522 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6523 /* Convince the compiler that p..p7 are live; otherwise, it might
6524 use the same hardware register for all 8 local variables. */
6525 if (p != p1 || p != p2 || p != p3 || p != p4
6526 || p != p5 || p != p6 || p != p7)
6529 /* On some systems (e.g. IRIX 3.3),
6530 vfork doesn't separate parent from child file descriptors.
6531 If the child closes a descriptor before it execs or exits,
6532 this munges the parent's descriptor as well.
6533 Test for this by closing stdout in the child. */
6534 _exit(close(fileno(stdout)) != 0);
6539 while (wait(&status) != child)
6542 /* Was there some problem with vforking? */
6545 /* Did the child fail? (This shouldn't happen.) */
6548 /* Did the vfork/compiler bug occur? */
6549 || parent != getpid()
6551 /* Did the file descriptor bug occur? */
6552 || fstat(fileno(stdout), &st) != 0
6557 if { (eval echo configure
:6558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6559 ac_cv_func_vfork_works
=yes
6561 echo "configure: failed program was:" >&5
6562 cat conftest.
$ac_ext >&5
6564 ac_cv_func_vfork_works
=no
6571 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
6572 if test $ac_cv_func_vfork_works = no
; then
6573 cat >> confdefs.h
<<\EOF
6580 # Set up the CFLAGS for real compilation, so we can substitute it.
6581 CFLAGS
="$REAL_CFLAGS"
6583 #### Find out which version of Emacs this is.
6584 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
6585 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
6586 if test x
"${version}" = x
; then
6587 { echo "configure: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." 1>&2; exit 1; }
6590 ### Specify what sort of things we'll be editing into Makefile and config.h.
6591 ### Use configuration here uncanonicalized to avoid exceeding size limits.
6623 cat >> confdefs.h
<<EOF
6624 #define EMACS_CONFIGURATION "${canonical}"
6627 cat >> confdefs.h
<<EOF
6628 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
6631 cat >> confdefs.h
<<EOF
6632 #define config_machfile "${machfile}"
6635 cat >> confdefs.h
<<EOF
6636 #define config_opsysfile "${opsysfile}"
6639 cat >> confdefs.h
<<EOF
6640 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
6643 cat >> confdefs.h
<<EOF
6644 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
6647 cat >> confdefs.h
<<EOF
6648 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
6651 cat >> confdefs.h
<<EOF
6652 #define UNEXEC_SRC ${UNEXEC_SRC}
6656 if test "${HAVE_X_WINDOWS}" = "yes" ; then
6657 cat >> confdefs.h
<<\EOF
6658 #define HAVE_X_WINDOWS 1
6662 if test "${USE_X_TOOLKIT}" != "none" ; then
6663 cat >> confdefs.h
<<\EOF
6664 #define USE_X_TOOLKIT 1
6668 if test "${HAVE_X11}" = "yes" ; then
6669 cat >> confdefs.h
<<\EOF
6674 if test "${HAVE_XFREE386}" = "yes" ; then
6675 cat >> confdefs.h
<<\EOF
6676 #define HAVE_XFREE386 1
6680 if test "${HAVE_MENUS}" = "yes" ; then
6681 cat >> confdefs.h
<<\EOF
6682 #define HAVE_MENUS 1
6686 if test "${GNU_MALLOC}" = "yes" ; then
6687 cat >> confdefs.h
<<\EOF
6688 #define GNU_MALLOC 1
6692 if test "${REL_ALLOC}" = "yes" ; then
6693 cat >> confdefs.h
<<\EOF
6699 #### Report on what we decided to do.
6701 Configured for \`${canonical}'.
6703 Where should the build process find the source code? ${srcdir}
6704 What operating system and machine description files should Emacs use?
6705 \`${opsysfile}' and \`${machfile}'
6706 What compiler should emacs be built with? ${CC} ${CFLAGS}
6707 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
6708 Should Emacs use the relocating allocator for buffers? ${REL_ALLOC}
6709 What window system should Emacs use? ${window_system}
6710 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
6712 if test -n "${x_includes}"; then
6713 echo " Where do we find X Windows header files? ${x_includes}"
6715 echo " Where do we find X Windows header files? Standard dirs"
6717 if test -n "${x_libraries}"; then
6718 echo " Where do we find X Windows libraries? ${x_libraries}"
6720 echo " Where do we find X Windows libraries? Standard dirs"
6723 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
6724 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
6725 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
6726 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
6727 echo " Does Emacs use -lungif? ${HAVE_GIF}"
6728 echo " Does Emacs use -lpng? ${HAVE_PNG}"
6729 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
6732 # Remove any trailing slashes in these variables.
6733 test "${prefix}" != NONE
&&
6734 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
6735 test "${exec_prefix}" != NONE
&&
6736 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
6739 cat > confcache
<<\EOF
6740 # This file is a shell script that caches the results of configure
6741 # tests run on this system so they can be shared between configure
6742 # scripts and configure runs. It is not useful on other systems.
6743 # If it contains results you don't want to keep, you may remove or edit it.
6745 # By default, configure uses ./config.cache as the cache file,
6746 # creating it if it does not exist already. You can give configure
6747 # the --cache-file=FILE option to use a different cache file; that is
6748 # what configure does when it calls configure scripts in
6749 # subdirectories, so they share the cache.
6750 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6751 # config.status only pays attention to the cache file if you give it the
6752 # --recheck option to rerun configure.
6755 # The following way of writing the cache mishandles newlines in values,
6756 # but we know of no workaround that is simple, portable, and efficient.
6757 # So, don't put newlines in cache variables' values.
6758 # Ultrix sh set writes to stderr and can't be redirected directly,
6759 # and sets the high bit in the cache file unless we assign to the vars.
6761 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6763 # `set' does not quote correctly, so add quotes (double-quote substitution
6764 # turns \\\\ into \\, and sed turns \\ into \).
6766 -e "s/'/'\\\\''/g" \
6767 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6770 # `set' quotes correctly as required by POSIX, so do not add quotes.
6771 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6774 if cmp -s $cache_file confcache
; then
6777 if test -w $cache_file; then
6778 echo "updating cache $cache_file"
6779 cat confcache
> $cache_file
6781 echo "not updating unwritable cache $cache_file"
6786 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6788 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6789 # Let make expand exec_prefix.
6790 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6792 # Any assignment to VPATH causes Sun make to only execute
6793 # the first set of double-colon rules, so remove it if not needed.
6794 # If there is a colon in the path, we need to keep it.
6795 if test "x$srcdir" = x.
; then
6796 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6799 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6801 DEFS
=-DHAVE_CONFIG_H
6803 # Without the "./", some shells look in PATH for config.status.
6804 : ${CONFIG_STATUS=./config.status}
6806 echo creating
$CONFIG_STATUS
6807 rm -f $CONFIG_STATUS
6808 cat > $CONFIG_STATUS <<EOF
6810 # Generated automatically by configure.
6811 # Run this file to recreate the current configuration.
6812 # This directory was configured as follows,
6813 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6815 # $0 $ac_configure_args
6817 # Compiler output produced by configure, useful for debugging
6818 # configure, is in ./config.log if it exists.
6820 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6823 case "\$ac_option" in
6824 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6825 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6826 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6827 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6828 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6830 -help | --help | --hel | --he | --h)
6831 echo "\$ac_cs_usage"; exit 0 ;;
6832 *) echo "\$ac_cs_usage"; exit 1 ;;
6836 ac_given_srcdir=$srcdir
6837 ac_given_INSTALL="$INSTALL"
6839 trap 'rm -fr `echo "Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \
6840 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \
6841 leim/Makefile src/config.h:src/config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6843 cat >> $CONFIG_STATUS <<EOF
6845 # Protect against being on the right side of a sed subst in config.status.
6846 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6847 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6851 s%@CFLAGS@%$CFLAGS%g
6852 s%@CPPFLAGS@%$CPPFLAGS%g
6853 s%@CXXFLAGS@%$CXXFLAGS%g
6854 s%@FFLAGS@%$FFLAGS%g
6856 s%@LDFLAGS@%$LDFLAGS%g
6858 s%@exec_prefix@%$exec_prefix%g
6859 s%@prefix@%$prefix%g
6860 s%@program_transform_name@%$program_transform_name%g
6861 s%@bindir@%$bindir%g
6862 s%@sbindir@%$sbindir%g
6863 s%@libexecdir@%$libexecdir%g
6864 s%@datadir@%$datadir%g
6865 s%@sysconfdir@%$sysconfdir%g
6866 s%@sharedstatedir@%$sharedstatedir%g
6867 s%@localstatedir@%$localstatedir%g
6868 s%@libdir@%$libdir%g
6869 s%@includedir@%$includedir%g
6870 s%@oldincludedir@%$oldincludedir%g
6871 s%@infodir@%$infodir%g
6872 s%@mandir@%$mandir%g
6874 s%@host_alias@%$host_alias%g
6875 s%@host_cpu@%$host_cpu%g
6876 s%@host_vendor@%$host_vendor%g
6877 s%@host_os@%$host_os%g
6881 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6882 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6883 s%@INSTALL_DATA@%$INSTALL_DATA%g
6885 s%@SET_MAKE@%$SET_MAKE%g
6886 s%@ALLOCA@%$ALLOCA%g
6887 s%@liblockfile@%$liblockfile%g
6888 s%@version@%$version%g
6889 s%@configuration@%$configuration%g
6890 s%@canonical@%$canonical%g
6891 s%@srcdir@%$srcdir%g
6892 s%@lispdir@%$lispdir%g
6893 s%@locallisppath@%$locallisppath%g
6894 s%@lisppath@%$lisppath%g
6895 s%@x_default_search_path@%$x_default_search_path%g
6896 s%@etcdir@%$etcdir%g
6897 s%@archlibdir@%$archlibdir%g
6898 s%@docdir@%$docdir%g
6899 s%@bitmapdir@%$bitmapdir%g
6900 s%@c_switch_system@%$c_switch_system%g
6901 s%@c_switch_machine@%$c_switch_machine%g
6902 s%@LD_SWITCH_X_SITE@%$LD_SWITCH_X_SITE%g
6903 s%@LD_SWITCH_X_SITE_AUX@%$LD_SWITCH_X_SITE_AUX%g
6904 s%@C_SWITCH_X_SITE@%$C_SWITCH_X_SITE%g
6905 s%@X_TOOLKIT_TYPE@%$X_TOOLKIT_TYPE%g
6906 s%@machfile@%$machfile%g
6907 s%@opsysfile@%$opsysfile%g
6908 s%@RANLIB@%$RANLIB%g
6913 cat >> $CONFIG_STATUS <<\EOF
6915 # Split the substitutions into bite-sized pieces for seds with
6916 # small command number limits, like on Digital OSF/1 and HP-UX.
6917 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6918 ac_file
=1 # Number of current file.
6919 ac_beg
=1 # First line for current file.
6920 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6923 while $ac_more_lines; do
6924 if test $ac_beg -gt 1; then
6925 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6927 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6929 if test ! -s conftest.s
$ac_file; then
6931 rm -f conftest.s
$ac_file
6933 if test -z "$ac_sed_cmds"; then
6934 ac_sed_cmds
="sed -f conftest.s$ac_file"
6936 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6938 ac_file
=`expr $ac_file + 1`
6940 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6943 if test -z "$ac_sed_cmds"; then
6948 cat >> $CONFIG_STATUS <<EOF
6950 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \
6951 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \
6954 cat >> $CONFIG_STATUS <<\EOF
6955 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6956 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6958 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6959 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6960 *) ac_file_in
="${ac_file}.in" ;;
6963 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6965 # Remove last slash and all that follows it. Not all systems have dirname.
6966 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6967 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6968 # The file is in a subdirectory.
6969 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6970 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6971 # A "../" for each directory in $ac_dir_suffix.
6972 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6974 ac_dir_suffix
= ac_dots
=
6977 case "$ac_given_srcdir" in
6979 if test -z "$ac_dots"; then top_srcdir
=.
6980 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6981 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6983 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6984 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6987 case "$ac_given_INSTALL" in
6988 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6989 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6992 echo creating
"$ac_file"
6994 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6996 *Makefile
*) ac_comsub
="1i\\
6997 # $configure_input" ;;
7001 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7003 s%@configure_input@%$configure_input%g
7004 s%@srcdir@%$srcdir%g
7005 s%@top_srcdir@%$top_srcdir%g
7006 s%@INSTALL@%$INSTALL%g
7007 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
7011 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7012 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7014 # ac_d sets the value in "#define NAME VALUE" lines.
7015 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7016 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7019 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7020 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7021 ac_uB
='\([ ]\)%\1#\2define\3'
7024 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7025 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7026 ac_eB
='$%\1#\2define\3'
7030 if test "${CONFIG_HEADERS+set}" != set; then
7032 cat >> $CONFIG_STATUS <<EOF
7033 CONFIG_HEADERS="src/config.h:src/config.in"
7035 cat >> $CONFIG_STATUS <<\EOF
7037 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7038 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7040 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7041 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7042 *) ac_file_in
="${ac_file}.in" ;;
7045 echo creating
$ac_file
7047 rm -f conftest.frag conftest.
in conftest.out
7048 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7049 cat $ac_file_inputs > conftest.
in
7053 # Transform confdefs.h into a sed script conftest.vals that substitutes
7054 # the proper values into config.h.in to produce config.h. And first:
7055 # Protect against being on the right side of a sed subst in config.status.
7056 # Protect against being in an unquoted here document in config.status.
7058 cat > conftest.hdr
<<\EOF
7061 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7065 sed -n -f conftest.hdr confdefs.h > conftest.vals
7068 # This sed command replaces #undef with comments. This is necessary, for
7069 # example, in the case of _POSIX_SOURCE, which is predefined and required
7070 # on some systems where configure will not decide to define it.
7071 cat >> conftest.vals <<\EOF
7072 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7075 # Break up conftest.vals because some shells have a limit on
7076 # the size of here documents, and old seds have small limits too.
7081 ac_lines=`grep -c . conftest.vals
`
7082 # grep -c gives empty output for an empty file on some AIX systems.
7083 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7084 # Write a limited-size here document to conftest.frag.
7085 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7086 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7088 sed -f conftest.frag conftest.in > conftest.out
7090 mv conftest.out conftest.in
7092 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7094 mv conftest.tail conftest.vals
7098 cat >> $CONFIG_STATUS <<\EOF
7099 rm -f conftest.frag conftest.h
7100 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7101 cat conftest.in >> conftest.h
7103 if cmp -s $ac_file conftest.h 2>/dev/null; then
7104 echo "$ac_file is unchanged"
7107 # Remove last slash and all that follows it. Not all systems have dirname.
7108 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7109 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7110 # The file is in a subdirectory.
7111 test ! -d "$ac_dir" && mkdir "$ac_dir"
7114 mv conftest.h $ac_file
7119 cat >> $CONFIG_STATUS <<EOF
7120 CPP="$CPP" CPPFLAGS="$CPPFLAGS"
7122 cat >> $CONFIG_STATUS <<\EOF
7125 ### Make the necessary directories, if they don't exist.
7126 for dir in etc lisp ; do
7127 test -d ${dir} || mkdir ${dir}
7130 # Build src/Makefile from ${srcdir}/src/Makefile.c
7131 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
7132 # This must be done after src/config.h is built, since we rely on that file.
7134 # Now get this: Some word that is part of the ${srcdir} directory name
7135 # or the ${configuration} value might, just might, happen to be an
7136 # identifier like `sun4
' or `i386' or something
, and be predefined by
7137 # the C preprocessor to some helpful value like 1, or maybe the empty
7138 # string. Needless to say consequent macro substitutions are less
7139 # than conducive to the makefile finding the correct directory.
7140 undefs
="`echo $top_srcdir $configuration $canonical |
7141 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
7142 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
7145 echo creating src
/epaths.h
7148 echo creating lib-src
/Makefile
7150 rm -f junk.c junk1.c junk2.c
7151 sed -e '/start of cpp stuff/q' \
7152 < Makefile.c
> junk1.c
7153 sed -e '1,/start of cpp stuff/d'\
7154 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \
7155 < Makefile.c
> junk.c
7156 $CPP $undefs -I.
-I$top_srcdir/src
$CPPFLAGS junk.c | \
7157 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
7158 cat junk1.c junk2.c
> Makefile.new
7159 rm -f junk.c junk1.c junk2.c
7160 chmod 444 Makefile.new
7161 mv -f Makefile.new Makefile
7164 echo creating src
/Makefile
7166 rm -f junk.c junk1.c junk2.c
7167 sed -e '/start of cpp stuff/q' \
7168 < Makefile.c
> junk1.c
7169 sed -e '1,/start of cpp stuff/d'\
7170 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \
7171 < Makefile.c
> junk.c
7172 $CPP $undefs -I.
-I$top_srcdir/src
$CPPFLAGS junk.c | \
7173 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
7174 cat junk1.c junk2.c
> Makefile.new
7175 rm -f junk.c junk1.c junk2.c
7176 chmod 444 Makefile.new
7177 mv -f Makefile.new Makefile
7180 if test ! -f src
/.gdbinit
&& test -f $top_srcdir/src
/.gdbinit
; then
7181 echo creating src
/.gdbinit
7182 echo source $top_srcdir/src
/.gdbinit
> src
/.gdbinit
7185 # This is how we know whether to re-run configure in certain cases.
7186 touch src
/config.stamp
7191 chmod +x
$CONFIG_STATUS
7192 rm -fr confdefs
* $ac_clean_files
7193 test "$no_create" = yes ||
${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS ||
exit 1