Doc fix for posn-* functions (Bug#7471).
[emacs.git] / configure
blobd1e5addcb75cb9c55f8fe7ba677abd9002d9e4a4
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 23.2.90.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='23.2.90'
553 PACKAGE_STRING='emacs 23.2.90'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_config_libobj_dir=src
595 ac_header_list=
596 ac_func_list=
597 ac_subst_vars='LTLIBOBJS
598 OTHER_FILES
599 LIB_SRC_EXTRA_INSTALLABLES
600 GNU_OBJC_CFLAGS
601 GNUSTEP_SYSTEM_LIBRARIES
602 GNUSTEP_SYSTEM_HEADERS
603 GNUSTEP_MAKEFILES
604 ns_appsrc
605 ns_appresdir
606 ns_appbindir
607 ns_appdir
608 opsysfile
609 machfile
610 X_TOOLKIT_TYPE
611 C_SWITCH_X_SITE
612 LD_SWITCH_X_SITE_AUX
613 LD_SWITCH_X_SITE
614 c_switch_machine
615 c_switch_system
616 gameuser
617 gamedir
618 bitmapdir
619 archlibdir
620 etcdir
621 x_default_search_path
622 lisppath
623 locallisppath
624 lispdir
625 srcdir
626 canonical
627 configuration
628 version
629 GETOPTOBJS
630 GETOPT_H
631 GETLOADAVG_LIBS
632 KMEM_GROUP
633 NEED_SETGID
634 LIBOBJS
635 liblockfile
636 ALLOCA
637 FREETYPE_LIBS
638 FREETYPE_CFLAGS
639 M17N_FLT_LIBS
640 M17N_FLT_CFLAGS
641 LIBOTF_LIBS
642 LIBOTF_CFLAGS
643 XFT_LIBS
644 XFT_CFLAGS
645 FONTCONFIG_LIBS
646 FONTCONFIG_CFLAGS
647 GCONF_LIBS
648 GCONF_CFLAGS
649 DBUS_LIBS
650 DBUS_CFLAGS
651 GTK_LIBS
652 GTK_CFLAGS
653 RSVG_LIBS
654 RSVG_CFLAGS
655 HAVE_XSERVER
656 XMKMF
657 SET_MAKE
658 CFLAGS_SOUND
659 ALSA_LIBS
660 ALSA_CFLAGS
661 PKG_CONFIG
662 LIBSOUND
663 CRT_DIR
664 MAKEINFO
665 GZIP_PROG
666 INSTALL_INFO
667 RANLIB
668 INSTALL_DATA
669 INSTALL_SCRIPT
670 INSTALL_PROGRAM
671 LN_S
672 EGREP
673 GREP
675 OBJEXT
676 EXEEXT
677 ac_ct_CC
678 CPPFLAGS
679 LDFLAGS
680 CFLAGS
682 host_os
683 host_vendor
684 host_cpu
685 host
686 build_os
687 build_vendor
688 build_cpu
689 build
690 MAINT
691 target_alias
692 host_alias
693 build_alias
694 LIBS
695 ECHO_T
696 ECHO_N
697 ECHO_C
698 DEFS
699 mandir
700 localedir
701 libdir
702 psdir
703 pdfdir
704 dvidir
705 htmldir
706 infodir
707 docdir
708 oldincludedir
709 includedir
710 localstatedir
711 sharedstatedir
712 sysconfdir
713 datadir
714 datarootdir
715 libexecdir
716 sbindir
717 bindir
718 program_transform_name
719 prefix
720 exec_prefix
721 PACKAGE_URL
722 PACKAGE_BUGREPORT
723 PACKAGE_STRING
724 PACKAGE_VERSION
725 PACKAGE_TARNAME
726 PACKAGE_NAME
727 PATH_SEPARATOR
728 SHELL'
729 ac_subst_files=''
730 ac_user_opts='
731 enable_option_checking
732 with_pop
733 with_kerberos
734 with_kerberos5
735 with_hesiod
736 with_sound
737 with_sync_input
738 with_x_toolkit
739 with_xpm
740 with_jpeg
741 with_tiff
742 with_gif
743 with_png
744 with_rsvg
745 with_xft
746 with_libotf
747 with_m17n_flt
748 with_toolkit_scroll_bars
749 with_xaw3d
750 with_xim
751 with_ns
752 with_gpm
753 with_dbus
754 with_gconf
755 with_makeinfo
756 with_gtk
757 with_gcc
758 with_pkg_config_prog
759 with_crt_dir
760 with_gnustep_conf
761 enable_ns_self_contained
762 enable_asserts
763 enable_maintainer_mode
764 enable_locallisppath
765 enable_checking
766 enable_profiling
767 enable_autodepend
768 enable_largefile
769 with_x
771 ac_precious_vars='build_alias
772 host_alias
773 target_alias
775 CFLAGS
776 LDFLAGS
777 LIBS
778 CPPFLAGS
780 XMKMF'
783 # Initialize some variables set by options.
784 ac_init_help=
785 ac_init_version=false
786 ac_unrecognized_opts=
787 ac_unrecognized_sep=
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
790 cache_file=/dev/null
791 exec_prefix=NONE
792 no_create=
793 no_recursion=
794 prefix=NONE
795 program_prefix=NONE
796 program_suffix=NONE
797 program_transform_name=s,x,x,
798 silent=
799 site=
800 srcdir=
801 verbose=
802 x_includes=NONE
803 x_libraries=NONE
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822 infodir='${datarootdir}/info'
823 htmldir='${docdir}'
824 dvidir='${docdir}'
825 pdfdir='${docdir}'
826 psdir='${docdir}'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
831 ac_prev=
832 ac_dashdash=
833 for ac_option
835 # If the previous option needs an argument, assign it.
836 if test -n "$ac_prev"; then
837 eval $ac_prev=\$ac_option
838 ac_prev=
839 continue
842 case $ac_option in
843 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844 *) ac_optarg=yes ;;
845 esac
847 # Accept the important Cygnus configure options, so we can diagnose typos.
849 case $ac_dashdash$ac_option in
851 ac_dashdash=yes ;;
853 -bindir | --bindir | --bindi | --bind | --bin | --bi)
854 ac_prev=bindir ;;
855 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856 bindir=$ac_optarg ;;
858 -build | --build | --buil | --bui | --bu)
859 ac_prev=build_alias ;;
860 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861 build_alias=$ac_optarg ;;
863 -cache-file | --cache-file | --cache-fil | --cache-fi \
864 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865 ac_prev=cache_file ;;
866 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868 cache_file=$ac_optarg ;;
870 --config-cache | -C)
871 cache_file=config.cache ;;
873 -datadir | --datadir | --datadi | --datad)
874 ac_prev=datadir ;;
875 -datadir=* | --datadir=* | --datadi=* | --datad=*)
876 datadir=$ac_optarg ;;
878 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879 | --dataroo | --dataro | --datar)
880 ac_prev=datarootdir ;;
881 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883 datarootdir=$ac_optarg ;;
885 -disable-* | --disable-*)
886 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887 # Reject names that are not valid shell variable names.
888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889 as_fn_error "invalid feature name: $ac_useropt"
890 ac_useropt_orig=$ac_useropt
891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892 case $ac_user_opts in
894 "enable_$ac_useropt"
895 "*) ;;
896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
897 ac_unrecognized_sep=', ';;
898 esac
899 eval enable_$ac_useropt=no ;;
901 -docdir | --docdir | --docdi | --doc | --do)
902 ac_prev=docdir ;;
903 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904 docdir=$ac_optarg ;;
906 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907 ac_prev=dvidir ;;
908 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909 dvidir=$ac_optarg ;;
911 -enable-* | --enable-*)
912 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915 as_fn_error "invalid feature name: $ac_useropt"
916 ac_useropt_orig=$ac_useropt
917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
920 "enable_$ac_useropt"
921 "*) ;;
922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
923 ac_unrecognized_sep=', ';;
924 esac
925 eval enable_$ac_useropt=\$ac_optarg ;;
927 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
928 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
929 | --exec | --exe | --ex)
930 ac_prev=exec_prefix ;;
931 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
932 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
933 | --exec=* | --exe=* | --ex=*)
934 exec_prefix=$ac_optarg ;;
936 -gas | --gas | --ga | --g)
937 # Obsolete; use --with-gas.
938 with_gas=yes ;;
940 -help | --help | --hel | --he | -h)
941 ac_init_help=long ;;
942 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
943 ac_init_help=recursive ;;
944 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
945 ac_init_help=short ;;
947 -host | --host | --hos | --ho)
948 ac_prev=host_alias ;;
949 -host=* | --host=* | --hos=* | --ho=*)
950 host_alias=$ac_optarg ;;
952 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
953 ac_prev=htmldir ;;
954 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
955 | --ht=*)
956 htmldir=$ac_optarg ;;
958 -includedir | --includedir | --includedi | --included | --include \
959 | --includ | --inclu | --incl | --inc)
960 ac_prev=includedir ;;
961 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
962 | --includ=* | --inclu=* | --incl=* | --inc=*)
963 includedir=$ac_optarg ;;
965 -infodir | --infodir | --infodi | --infod | --info | --inf)
966 ac_prev=infodir ;;
967 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
968 infodir=$ac_optarg ;;
970 -libdir | --libdir | --libdi | --libd)
971 ac_prev=libdir ;;
972 -libdir=* | --libdir=* | --libdi=* | --libd=*)
973 libdir=$ac_optarg ;;
975 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
976 | --libexe | --libex | --libe)
977 ac_prev=libexecdir ;;
978 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
979 | --libexe=* | --libex=* | --libe=*)
980 libexecdir=$ac_optarg ;;
982 -localedir | --localedir | --localedi | --localed | --locale)
983 ac_prev=localedir ;;
984 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
985 localedir=$ac_optarg ;;
987 -localstatedir | --localstatedir | --localstatedi | --localstated \
988 | --localstate | --localstat | --localsta | --localst | --locals)
989 ac_prev=localstatedir ;;
990 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
991 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
992 localstatedir=$ac_optarg ;;
994 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
995 ac_prev=mandir ;;
996 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
997 mandir=$ac_optarg ;;
999 -nfp | --nfp | --nf)
1000 # Obsolete; use --without-fp.
1001 with_fp=no ;;
1003 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1004 | --no-cr | --no-c | -n)
1005 no_create=yes ;;
1007 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1009 no_recursion=yes ;;
1011 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1012 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1013 | --oldin | --oldi | --old | --ol | --o)
1014 ac_prev=oldincludedir ;;
1015 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1016 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1017 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1018 oldincludedir=$ac_optarg ;;
1020 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1021 ac_prev=prefix ;;
1022 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1023 prefix=$ac_optarg ;;
1025 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1026 | --program-pre | --program-pr | --program-p)
1027 ac_prev=program_prefix ;;
1028 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1029 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1030 program_prefix=$ac_optarg ;;
1032 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1033 | --program-suf | --program-su | --program-s)
1034 ac_prev=program_suffix ;;
1035 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1036 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1037 program_suffix=$ac_optarg ;;
1039 -program-transform-name | --program-transform-name \
1040 | --program-transform-nam | --program-transform-na \
1041 | --program-transform-n | --program-transform- \
1042 | --program-transform | --program-transfor \
1043 | --program-transfo | --program-transf \
1044 | --program-trans | --program-tran \
1045 | --progr-tra | --program-tr | --program-t)
1046 ac_prev=program_transform_name ;;
1047 -program-transform-name=* | --program-transform-name=* \
1048 | --program-transform-nam=* | --program-transform-na=* \
1049 | --program-transform-n=* | --program-transform-=* \
1050 | --program-transform=* | --program-transfor=* \
1051 | --program-transfo=* | --program-transf=* \
1052 | --program-trans=* | --program-tran=* \
1053 | --progr-tra=* | --program-tr=* | --program-t=*)
1054 program_transform_name=$ac_optarg ;;
1056 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1057 ac_prev=pdfdir ;;
1058 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1059 pdfdir=$ac_optarg ;;
1061 -psdir | --psdir | --psdi | --psd | --ps)
1062 ac_prev=psdir ;;
1063 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1064 psdir=$ac_optarg ;;
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1068 silent=yes ;;
1070 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1071 ac_prev=sbindir ;;
1072 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1073 | --sbi=* | --sb=*)
1074 sbindir=$ac_optarg ;;
1076 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1077 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1078 | --sharedst | --shareds | --shared | --share | --shar \
1079 | --sha | --sh)
1080 ac_prev=sharedstatedir ;;
1081 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1082 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1083 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1084 | --sha=* | --sh=*)
1085 sharedstatedir=$ac_optarg ;;
1087 -site | --site | --sit)
1088 ac_prev=site ;;
1089 -site=* | --site=* | --sit=*)
1090 site=$ac_optarg ;;
1092 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1093 ac_prev=srcdir ;;
1094 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1095 srcdir=$ac_optarg ;;
1097 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1098 | --syscon | --sysco | --sysc | --sys | --sy)
1099 ac_prev=sysconfdir ;;
1100 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1101 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1102 sysconfdir=$ac_optarg ;;
1104 -target | --target | --targe | --targ | --tar | --ta | --t)
1105 ac_prev=target_alias ;;
1106 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1107 target_alias=$ac_optarg ;;
1109 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1110 verbose=yes ;;
1112 -version | --version | --versio | --versi | --vers | -V)
1113 ac_init_version=: ;;
1115 -with-* | --with-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error "invalid package name: $ac_useropt"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1124 "with_$ac_useropt"
1125 "*) ;;
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1128 esac
1129 eval with_$ac_useropt=\$ac_optarg ;;
1131 -without-* | --without-*)
1132 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 as_fn_error "invalid package name: $ac_useropt"
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1140 "with_$ac_useropt"
1141 "*) ;;
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1144 esac
1145 eval with_$ac_useropt=no ;;
1147 --x)
1148 # Obsolete; use --with-x.
1149 with_x=yes ;;
1151 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152 | --x-incl | --x-inc | --x-in | --x-i)
1153 ac_prev=x_includes ;;
1154 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156 x_includes=$ac_optarg ;;
1158 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160 ac_prev=x_libraries ;;
1161 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163 x_libraries=$ac_optarg ;;
1165 -*) as_fn_error "unrecognized option: \`$ac_option'
1166 Try \`$0 --help' for more information."
1169 *=*)
1170 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171 # Reject names that are not valid shell variable names.
1172 case $ac_envvar in #(
1173 '' | [0-9]* | *[!_$as_cr_alnum]* )
1174 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1175 esac
1176 eval $ac_envvar=\$ac_optarg
1177 export $ac_envvar ;;
1180 # FIXME: should be removed in autoconf 3.0.
1181 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1182 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1184 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1187 esac
1188 done
1190 if test -n "$ac_prev"; then
1191 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1192 as_fn_error "missing argument to $ac_option"
1195 if test -n "$ac_unrecognized_opts"; then
1196 case $enable_option_checking in
1197 no) ;;
1198 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1199 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200 esac
1203 # Check all directory arguments for consistency.
1204 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
1209 eval ac_val=\$$ac_var
1210 # Remove trailing slashes.
1211 case $ac_val in
1212 */ )
1213 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214 eval $ac_var=\$ac_val;;
1215 esac
1216 # Be sure to have absolute directory names.
1217 case $ac_val in
1218 [\\/$]* | ?:[\\/]* ) continue;;
1219 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1220 esac
1221 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1222 done
1224 # There might be people who depend on the old broken behavior: `$host'
1225 # used to hold the argument of --host etc.
1226 # FIXME: To remove some day.
1227 build=$build_alias
1228 host=$host_alias
1229 target=$target_alias
1231 # FIXME: To remove some day.
1232 if test "x$host_alias" != x; then
1233 if test "x$build_alias" = x; then
1234 cross_compiling=maybe
1235 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1236 If a cross compiler is detected then cross compile mode will be used." >&2
1237 elif test "x$build_alias" != "x$host_alias"; then
1238 cross_compiling=yes
1242 ac_tool_prefix=
1243 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245 test "$silent" = yes && exec 6>/dev/null
1248 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1249 ac_ls_di=`ls -di .` &&
1250 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1251 as_fn_error "working directory cannot be determined"
1252 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1253 as_fn_error "pwd does not report name of working directory"
1256 # Find the source files, if location was not specified.
1257 if test -z "$srcdir"; then
1258 ac_srcdir_defaulted=yes
1259 # Try the directory containing this script, then the parent directory.
1260 ac_confdir=`$as_dirname -- "$as_myself" ||
1261 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262 X"$as_myself" : 'X\(//\)[^/]' \| \
1263 X"$as_myself" : 'X\(//\)$' \| \
1264 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1265 $as_echo X"$as_myself" |
1266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1267 s//\1/
1270 /^X\(\/\/\)[^/].*/{
1271 s//\1/
1274 /^X\(\/\/\)$/{
1275 s//\1/
1278 /^X\(\/\).*/{
1279 s//\1/
1282 s/.*/./; q'`
1283 srcdir=$ac_confdir
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 srcdir=..
1287 else
1288 ac_srcdir_defaulted=no
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1292 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1294 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 ac_abs_confdir=`(
1296 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1297 pwd)`
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 srcdir=.
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1305 case $srcdir in
1306 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 esac
1308 for ac_var in $ac_precious_vars; do
1309 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_env_${ac_var}_value=\$${ac_var}
1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 done
1316 # Report the --help message.
1318 if test "$ac_init_help" = "long"; then
1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.
1321 cat <<_ACEOF
1322 \`configure' configures emacs 23.2.90 to adapt to many kinds of systems.
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE. See below for descriptions of some of the useful variables.
1329 Defaults for the options are specified in brackets.
1331 Configuration:
1332 -h, --help display this help and exit
1333 --help=short display options specific to this package
1334 --help=recursive display the short help of all the included packages
1335 -V, --version display version information and exit
1336 -q, --quiet, --silent do not print \`checking...' messages
1337 --cache-file=FILE cache test results in FILE [disabled]
1338 -C, --config-cache alias for \`--cache-file=config.cache'
1339 -n, --no-create do not create output files
1340 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342 Installation directories:
1343 --prefix=PREFIX install architecture-independent files in PREFIX
1344 [$ac_default_prefix]
1345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1346 [PREFIX]
1348 By default, \`make install' will install all the files in
1349 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1350 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351 for instance \`--prefix=\$HOME'.
1353 For better control, use the options below.
1355 Fine tuning of the installation directories:
1356 --bindir=DIR user executables [EPREFIX/bin]
1357 --sbindir=DIR system admin executables [EPREFIX/sbin]
1358 --libexecdir=DIR program executables [EPREFIX/libexec]
1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1362 --libdir=DIR object code libraries [EPREFIX/lib]
1363 --includedir=DIR C header files [PREFIX/include]
1364 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1367 --infodir=DIR info documentation [DATAROOTDIR/info]
1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1369 --mandir=DIR man documentation [DATAROOTDIR/man]
1370 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1371 --htmldir=DIR html documentation [DOCDIR]
1372 --dvidir=DIR dvi documentation [DOCDIR]
1373 --pdfdir=DIR pdf documentation [DOCDIR]
1374 --psdir=DIR ps documentation [DOCDIR]
1375 _ACEOF
1377 cat <<\_ACEOF
1379 Program names:
1380 --program-prefix=PREFIX prepend PREFIX to installed program names
1381 --program-suffix=SUFFIX append SUFFIX to installed program names
1382 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1384 X features:
1385 --x-includes=DIR X include files are in DIR
1386 --x-libraries=DIR X library files are in DIR
1388 System types:
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391 _ACEOF
1394 if test -n "$ac_init_help"; then
1395 case $ac_init_help in
1396 short | recursive ) echo "Configuration of emacs 23.2.90:";;
1397 esac
1398 cat <<\_ACEOF
1400 Optional Features:
1401 --disable-option-checking ignore unrecognized --enable/--with options
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1404 --disable-ns-self-contained
1405 disable self contained build under NeXTstep
1406 --enable-asserts compile code with asserts enabled
1407 --enable-maintainer-mode
1408 enable make rules and dependencies not useful (and
1409 sometimes confusing) to the casual installer
1410 --enable-locallisppath=PATH
1411 directories Emacs should search for lisp files
1412 specific to this site
1413 --enable-checking[=LIST]
1414 enable expensive run-time checks. With LIST, enable
1415 only specific categories of checks. Categories are:
1416 all,yes,no. Flags are: stringbytes, stringoverrun,
1417 stringfreelist, xmallocoverrun, conslist
1418 --enable-profiling build emacs with profiling support. This might not
1419 work on all platforms
1420 --enable-autodepend automatically generate dependencies to .h-files.
1421 Requires GNU Make and Gcc. Enabled if GNU Make and
1422 Gcc is found
1423 --disable-largefile omit support for large files
1425 Optional Packages:
1426 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1427 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1428 --without-pop don't support POP mail retrieval with movemail
1429 --with-kerberos support Kerberos-authenticated POP
1430 --with-kerberos5 support Kerberos version 5 authenticated POP
1431 --with-hesiod support Hesiod to get the POP server host
1432 --without-sound don't compile with sound support
1433 --without-sync-input process async input synchronously
1434 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1435 motif, gtk, no)
1436 --without-xpm don't compile with XPM image support
1437 --without-jpeg don't compile with JPEG image support
1438 --without-tiff don't compile with TIFF image support
1439 --without-gif don't compile with GIF image support
1440 --without-png don't compile with PNG image support
1441 --without-rsvg don't compile with SVG image support
1442 --without-xft don't use XFT for anti aliased fonts
1443 --without-libotf don't use libotf for OpenType font support
1444 --without-m17n-flt don't use m17n-flt for text shaping
1445 --without-toolkit-scroll-bars
1446 don't use Motif or Xaw3d scroll bars
1447 --without-xaw3d don't use Xaw3d
1448 --without-xim don't use X11 XIM
1449 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1450 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1451 console
1452 --without-dbus don't compile with D-Bus support
1453 --without-gconf don't compile with GConf support
1454 --without-makeinfo don't require makeinfo for building manuals
1456 --with-pkg-config-prog=PATH
1457 path to pkg-config for finding GTK and librsvg
1458 --with-crt-dir=DIR directory containing crtn.o etc. This option is only
1459 used on x86-64 and s390x GNU/Linux architectures.
1460 --with-gnustep-conf=PATH
1461 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1462 or /etc/GNUstep/GNUstep.conf
1463 --with-x use the X Window System
1465 Some influential environment variables:
1466 CC C compiler command
1467 CFLAGS C compiler flags
1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1469 nonstandard directory <lib dir>
1470 LIBS libraries to pass to the linker, e.g. -l<library>
1471 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
1473 CPP C preprocessor
1474 XMKMF Path to xmkmf, Makefile generator for X Window System
1476 Use these variables to override the choices made by `configure' or to help
1477 it to find libraries and programs with nonstandard names/locations.
1479 Report bugs to the package provider.
1480 _ACEOF
1481 ac_status=$?
1484 if test "$ac_init_help" = "recursive"; then
1485 # If there are subdirs, report their specific --help.
1486 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1487 test -d "$ac_dir" ||
1488 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489 continue
1490 ac_builddir=.
1492 case "$ac_dir" in
1493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1496 # A ".." for each directory in $ac_dir_suffix.
1497 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501 esac ;;
1502 esac
1503 ac_abs_top_builddir=$ac_pwd
1504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505 # for backward compatibility:
1506 ac_top_builddir=$ac_top_build_prefix
1508 case $srcdir in
1509 .) # We are building in place.
1510 ac_srcdir=.
1511 ac_top_srcdir=$ac_top_builddir_sub
1512 ac_abs_top_srcdir=$ac_pwd ;;
1513 [\\/]* | ?:[\\/]* ) # Absolute name.
1514 ac_srcdir=$srcdir$ac_dir_suffix;
1515 ac_top_srcdir=$srcdir
1516 ac_abs_top_srcdir=$srcdir ;;
1517 *) # Relative name.
1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521 esac
1522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for guested configure.
1526 if test -f "$ac_srcdir/configure.gnu"; then
1527 echo &&
1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529 elif test -f "$ac_srcdir/configure"; then
1530 echo &&
1531 $SHELL "$ac_srcdir/configure" --help=recursive
1532 else
1533 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534 fi || ac_status=$?
1535 cd "$ac_pwd" || { ac_status=$?; break; }
1536 done
1539 test -n "$ac_init_help" && exit $ac_status
1540 if $ac_init_version; then
1541 cat <<\_ACEOF
1542 emacs configure 23.2.90
1543 generated by GNU Autoconf 2.65
1545 Copyright (C) 2009 Free Software Foundation, Inc.
1546 This configure script is free software; the Free Software Foundation
1547 gives unlimited permission to copy, distribute and modify it.
1548 _ACEOF
1549 exit
1552 ## ------------------------ ##
1553 ## Autoconf initialization. ##
1554 ## ------------------------ ##
1556 # ac_fn_c_try_compile LINENO
1557 # --------------------------
1558 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1559 ac_fn_c_try_compile ()
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 rm -f conftest.$ac_objext
1563 if { { ac_try="$ac_compile"
1564 case "(($ac_try" in
1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566 *) ac_try_echo=$ac_try;;
1567 esac
1568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569 $as_echo "$ac_try_echo"; } >&5
1570 (eval "$ac_compile") 2>conftest.err
1571 ac_status=$?
1572 if test -s conftest.err; then
1573 grep -v '^ *+' conftest.err >conftest.er1
1574 cat conftest.er1 >&5
1575 mv -f conftest.er1 conftest.err
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } && {
1579 test -z "$ac_c_werror_flag" ||
1580 test ! -s conftest.err
1581 } && test -s conftest.$ac_objext; then :
1582 ac_retval=0
1583 else
1584 $as_echo "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.$ac_ext >&5
1587 ac_retval=1
1589 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1590 as_fn_set_status $ac_retval
1592 } # ac_fn_c_try_compile
1594 # ac_fn_c_try_link LINENO
1595 # -----------------------
1596 # Try to link conftest.$ac_ext, and return whether this succeeded.
1597 ac_fn_c_try_link ()
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 rm -f conftest.$ac_objext conftest$ac_exeext
1601 if { { ac_try="$ac_link"
1602 case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_link") 2>conftest.err
1609 ac_status=$?
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && {
1617 test -z "$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 } && test -s conftest$ac_exeext && {
1620 test "$cross_compiling" = yes ||
1621 $as_test_x conftest$ac_exeext
1622 }; then :
1623 ac_retval=0
1624 else
1625 $as_echo "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1628 ac_retval=1
1630 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1631 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1632 # interfere with the next link command; also delete a directory that is
1633 # left behind by Apple's compiler. We do this before executing the actions.
1634 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1635 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1636 as_fn_set_status $ac_retval
1638 } # ac_fn_c_try_link
1640 # ac_fn_c_try_cpp LINENO
1641 # ----------------------
1642 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1643 ac_fn_c_try_cpp ()
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 if { { ac_try="$ac_cpp conftest.$ac_ext"
1647 case "(($ac_try" in
1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
1650 esac
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1654 ac_status=$?
1655 if test -s conftest.err; then
1656 grep -v '^ *+' conftest.err >conftest.er1
1657 cat conftest.er1 >&5
1658 mv -f conftest.er1 conftest.err
1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; } >/dev/null && {
1662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1663 test ! -s conftest.err
1664 }; then :
1665 ac_retval=0
1666 else
1667 $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1670 ac_retval=1
1672 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1673 as_fn_set_status $ac_retval
1675 } # ac_fn_c_try_cpp
1677 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1678 # -------------------------------------------------------
1679 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1680 # the include files in INCLUDES and setting the cache variable VAR
1681 # accordingly.
1682 ac_fn_c_check_header_mongrel ()
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1687 $as_echo_n "checking for $2... " >&6; }
1688 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1689 $as_echo_n "(cached) " >&6
1691 eval ac_res=\$$3
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1693 $as_echo "$ac_res" >&6; }
1694 else
1695 # Is the header compilable?
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1697 $as_echo_n "checking $2 usability... " >&6; }
1698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1699 /* end confdefs.h. */
1701 #include <$2>
1702 _ACEOF
1703 if ac_fn_c_try_compile "$LINENO"; then :
1704 ac_header_compiler=yes
1705 else
1706 ac_header_compiler=no
1708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1710 $as_echo "$ac_header_compiler" >&6; }
1712 # Is the header present?
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1714 $as_echo_n "checking $2 presence... " >&6; }
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h. */
1717 #include <$2>
1718 _ACEOF
1719 if ac_fn_c_try_cpp "$LINENO"; then :
1720 ac_header_preproc=yes
1721 else
1722 ac_header_preproc=no
1724 rm -f conftest.err conftest.$ac_ext
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1726 $as_echo "$ac_header_preproc" >&6; }
1728 # So? What about this header?
1729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1730 yes:no: )
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1732 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1734 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1736 no:yes:* )
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1738 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1740 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1742 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1744 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1746 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1748 esac
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750 $as_echo_n "checking for $2... " >&6; }
1751 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1752 $as_echo_n "(cached) " >&6
1753 else
1754 eval "$3=\$ac_header_compiler"
1756 eval ac_res=\$$3
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758 $as_echo "$ac_res" >&6; }
1760 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1762 } # ac_fn_c_check_header_mongrel
1764 # ac_fn_c_try_run LINENO
1765 # ----------------------
1766 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1767 # that executables *can* be run.
1768 ac_fn_c_try_run ()
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 if { { ac_try="$ac_link"
1772 case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_link") 2>&5
1779 ac_status=$?
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1782 { { case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_try") 2>&5
1789 ac_status=$?
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; }; }; then :
1792 ac_retval=0
1793 else
1794 $as_echo "$as_me: program exited with status $ac_status" >&5
1795 $as_echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1798 ac_retval=$ac_status
1800 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1801 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1802 as_fn_set_status $ac_retval
1804 } # ac_fn_c_try_run
1806 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1807 # -------------------------------------------------------
1808 # Tests whether HEADER exists and can be compiled using the include files in
1809 # INCLUDES, setting the cache variable VAR accordingly.
1810 ac_fn_c_check_header_compile ()
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1816 $as_echo_n "(cached) " >&6
1817 else
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h. */
1821 #include <$2>
1822 _ACEOF
1823 if ac_fn_c_try_compile "$LINENO"; then :
1824 eval "$3=yes"
1825 else
1826 eval "$3=no"
1828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1830 eval ac_res=\$$3
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1835 } # ac_fn_c_check_header_compile
1837 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1838 # ----------------------------------------------
1839 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1840 ac_fn_c_check_header_preproc ()
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 $as_echo_n "checking for $2... " >&6; }
1845 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1846 $as_echo_n "(cached) " >&6
1847 else
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1850 #include <$2>
1851 _ACEOF
1852 if ac_fn_c_try_cpp "$LINENO"; then :
1853 eval "$3=yes"
1854 else
1855 eval "$3=no"
1857 rm -f conftest.err conftest.$ac_ext
1859 eval ac_res=\$$3
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861 $as_echo "$ac_res" >&6; }
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1864 } # ac_fn_c_check_header_preproc
1866 # ac_fn_c_check_decl LINENO SYMBOL VAR
1867 # ------------------------------------
1868 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1869 ac_fn_c_check_decl ()
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1873 $as_echo_n "checking whether $2 is declared... " >&6; }
1874 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1875 $as_echo_n "(cached) " >&6
1876 else
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1881 main ()
1883 #ifndef $2
1884 (void) $2;
1885 #endif
1888 return 0;
1890 _ACEOF
1891 if ac_fn_c_try_compile "$LINENO"; then :
1892 eval "$3=yes"
1893 else
1894 eval "$3=no"
1896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1898 eval ac_res=\$$3
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900 $as_echo "$ac_res" >&6; }
1901 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1903 } # ac_fn_c_check_decl
1905 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1906 # ----------------------------------------------------
1907 # Tries to find if the field MEMBER exists in type AGGR, after including
1908 # INCLUDES, setting cache variable VAR accordingly.
1909 ac_fn_c_check_member ()
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1913 $as_echo_n "checking for $2.$3... " >&6; }
1914 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1915 $as_echo_n "(cached) " >&6
1916 else
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1921 main ()
1923 static $2 ac_aggr;
1924 if (ac_aggr.$3)
1925 return 0;
1927 return 0;
1929 _ACEOF
1930 if ac_fn_c_try_compile "$LINENO"; then :
1931 eval "$4=yes"
1932 else
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1937 main ()
1939 static $2 ac_aggr;
1940 if (sizeof ac_aggr.$3)
1941 return 0;
1943 return 0;
1945 _ACEOF
1946 if ac_fn_c_try_compile "$LINENO"; then :
1947 eval "$4=yes"
1948 else
1949 eval "$4=no"
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1955 eval ac_res=\$$4
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1960 } # ac_fn_c_check_member
1962 # ac_fn_c_check_func LINENO FUNC VAR
1963 # ----------------------------------
1964 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1965 ac_fn_c_check_func ()
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969 $as_echo_n "checking for $2... " >&6; }
1970 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1971 $as_echo_n "(cached) " >&6
1972 else
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1975 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1977 #define $2 innocuous_$2
1979 /* System header to define __stub macros and hopefully few prototypes,
1980 which can conflict with char $2 (); below.
1981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1982 <limits.h> exists even on freestanding compilers. */
1984 #ifdef __STDC__
1985 # include <limits.h>
1986 #else
1987 # include <assert.h>
1988 #endif
1990 #undef $2
1992 /* Override any GCC internal prototype to avoid an error.
1993 Use char because int might match the return type of a GCC
1994 builtin and then its argument prototype would still apply. */
1995 #ifdef __cplusplus
1996 extern "C"
1997 #endif
1998 char $2 ();
1999 /* The GNU C library defines this for functions which it implements
2000 to always fail with ENOSYS. Some functions are actually named
2001 something starting with __ and the normal name is an alias. */
2002 #if defined __stub_$2 || defined __stub___$2
2003 choke me
2004 #endif
2007 main ()
2009 return $2 ();
2011 return 0;
2013 _ACEOF
2014 if ac_fn_c_try_link "$LINENO"; then :
2015 eval "$3=yes"
2016 else
2017 eval "$3=no"
2019 rm -f core conftest.err conftest.$ac_objext \
2020 conftest$ac_exeext conftest.$ac_ext
2022 eval ac_res=\$$3
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2024 $as_echo "$ac_res" >&6; }
2025 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2027 } # ac_fn_c_check_func
2029 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2030 # -------------------------------------------
2031 # Tests whether TYPE exists after having included INCLUDES, setting cache
2032 # variable VAR accordingly.
2033 ac_fn_c_check_type ()
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2037 $as_echo_n "checking for $2... " >&6; }
2038 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2039 $as_echo_n "(cached) " >&6
2040 else
2041 eval "$3=no"
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2046 main ()
2048 if (sizeof ($2))
2049 return 0;
2051 return 0;
2053 _ACEOF
2054 if ac_fn_c_try_compile "$LINENO"; then :
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2059 main ()
2061 if (sizeof (($2)))
2062 return 0;
2064 return 0;
2066 _ACEOF
2067 if ac_fn_c_try_compile "$LINENO"; then :
2069 else
2070 eval "$3=yes"
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076 eval ac_res=\$$3
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2079 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2081 } # ac_fn_c_check_type
2082 cat >config.log <<_ACEOF
2083 This file contains any messages produced by compilers while
2084 running configure, to aid debugging if configure makes a mistake.
2086 It was created by emacs $as_me 23.2.90, which was
2087 generated by GNU Autoconf 2.65. Invocation command line was
2089 $ $0 $@
2091 _ACEOF
2092 exec 5>>config.log
2094 cat <<_ASUNAME
2095 ## --------- ##
2096 ## Platform. ##
2097 ## --------- ##
2099 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2100 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2101 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2102 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2103 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2105 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2106 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2108 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2109 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2110 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2111 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2112 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2113 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2114 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2116 _ASUNAME
2118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119 for as_dir in $PATH
2121 IFS=$as_save_IFS
2122 test -z "$as_dir" && as_dir=.
2123 $as_echo "PATH: $as_dir"
2124 done
2125 IFS=$as_save_IFS
2127 } >&5
2129 cat >&5 <<_ACEOF
2132 ## ----------- ##
2133 ## Core tests. ##
2134 ## ----------- ##
2136 _ACEOF
2139 # Keep a trace of the command line.
2140 # Strip out --no-create and --no-recursion so they do not pile up.
2141 # Strip out --silent because we don't want to record it for future runs.
2142 # Also quote any args containing shell meta-characters.
2143 # Make two passes to allow for proper duplicate-argument suppression.
2144 ac_configure_args=
2145 ac_configure_args0=
2146 ac_configure_args1=
2147 ac_must_keep_next=false
2148 for ac_pass in 1 2
2150 for ac_arg
2152 case $ac_arg in
2153 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2155 | -silent | --silent | --silen | --sile | --sil)
2156 continue ;;
2157 *\'*)
2158 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2159 esac
2160 case $ac_pass in
2161 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2163 as_fn_append ac_configure_args1 " '$ac_arg'"
2164 if test $ac_must_keep_next = true; then
2165 ac_must_keep_next=false # Got value, back to normal.
2166 else
2167 case $ac_arg in
2168 *=* | --config-cache | -C | -disable-* | --disable-* \
2169 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2170 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2171 | -with-* | --with-* | -without-* | --without-* | --x)
2172 case "$ac_configure_args0 " in
2173 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2174 esac
2176 -* ) ac_must_keep_next=true ;;
2177 esac
2179 as_fn_append ac_configure_args " '$ac_arg'"
2181 esac
2182 done
2183 done
2184 { ac_configure_args0=; unset ac_configure_args0;}
2185 { ac_configure_args1=; unset ac_configure_args1;}
2187 # When interrupted or exit'd, cleanup temporary files, and complete
2188 # config.log. We remove comments because anyway the quotes in there
2189 # would cause problems or look ugly.
2190 # WARNING: Use '\'' to represent an apostrophe within the trap.
2191 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2192 trap 'exit_status=$?
2193 # Save into config.log some information that might help in debugging.
2195 echo
2197 cat <<\_ASBOX
2198 ## ---------------- ##
2199 ## Cache variables. ##
2200 ## ---------------- ##
2201 _ASBOX
2202 echo
2203 # The following way of writing the cache mishandles newlines in values,
2205 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2206 eval ac_val=\$$ac_var
2207 case $ac_val in #(
2208 *${as_nl}*)
2209 case $ac_var in #(
2210 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2211 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2212 esac
2213 case $ac_var in #(
2214 _ | IFS | as_nl) ;; #(
2215 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2216 *) { eval $ac_var=; unset $ac_var;} ;;
2217 esac ;;
2218 esac
2219 done
2220 (set) 2>&1 |
2221 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2222 *${as_nl}ac_space=\ *)
2223 sed -n \
2224 "s/'\''/'\''\\\\'\'''\''/g;
2225 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2226 ;; #(
2228 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2230 esac |
2231 sort
2233 echo
2235 cat <<\_ASBOX
2236 ## ----------------- ##
2237 ## Output variables. ##
2238 ## ----------------- ##
2239 _ASBOX
2240 echo
2241 for ac_var in $ac_subst_vars
2243 eval ac_val=\$$ac_var
2244 case $ac_val in
2245 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2246 esac
2247 $as_echo "$ac_var='\''$ac_val'\''"
2248 done | sort
2249 echo
2251 if test -n "$ac_subst_files"; then
2252 cat <<\_ASBOX
2253 ## ------------------- ##
2254 ## File substitutions. ##
2255 ## ------------------- ##
2256 _ASBOX
2257 echo
2258 for ac_var in $ac_subst_files
2260 eval ac_val=\$$ac_var
2261 case $ac_val in
2262 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2263 esac
2264 $as_echo "$ac_var='\''$ac_val'\''"
2265 done | sort
2266 echo
2269 if test -s confdefs.h; then
2270 cat <<\_ASBOX
2271 ## ----------- ##
2272 ## confdefs.h. ##
2273 ## ----------- ##
2274 _ASBOX
2275 echo
2276 cat confdefs.h
2277 echo
2279 test "$ac_signal" != 0 &&
2280 $as_echo "$as_me: caught signal $ac_signal"
2281 $as_echo "$as_me: exit $exit_status"
2282 } >&5
2283 rm -f core *.core core.conftest.* &&
2284 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2285 exit $exit_status
2287 for ac_signal in 1 2 13 15; do
2288 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2289 done
2290 ac_signal=0
2292 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2293 rm -f -r conftest* confdefs.h
2295 $as_echo "/* confdefs.h */" > confdefs.h
2297 # Predefined preprocessor variables.
2299 cat >>confdefs.h <<_ACEOF
2300 #define PACKAGE_NAME "$PACKAGE_NAME"
2301 _ACEOF
2303 cat >>confdefs.h <<_ACEOF
2304 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2305 _ACEOF
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2309 _ACEOF
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE_STRING "$PACKAGE_STRING"
2313 _ACEOF
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2317 _ACEOF
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE_URL "$PACKAGE_URL"
2321 _ACEOF
2324 # Let the site file select an alternate cache file if it wants to.
2325 # Prefer an explicitly selected file to automatically selected ones.
2326 ac_site_file1=NONE
2327 ac_site_file2=NONE
2328 if test -n "$CONFIG_SITE"; then
2329 ac_site_file1=$CONFIG_SITE
2330 elif test "x$prefix" != xNONE; then
2331 ac_site_file1=$prefix/share/config.site
2332 ac_site_file2=$prefix/etc/config.site
2333 else
2334 ac_site_file1=$ac_default_prefix/share/config.site
2335 ac_site_file2=$ac_default_prefix/etc/config.site
2337 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2339 test "x$ac_site_file" = xNONE && continue
2340 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2342 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2343 sed 's/^/| /' "$ac_site_file" >&5
2344 . "$ac_site_file"
2346 done
2348 if test -r "$cache_file"; then
2349 # Some versions of bash will fail to source /dev/null (special files
2350 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2351 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2353 $as_echo "$as_me: loading cache $cache_file" >&6;}
2354 case $cache_file in
2355 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2356 *) . "./$cache_file";;
2357 esac
2359 else
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2361 $as_echo "$as_me: creating cache $cache_file" >&6;}
2362 >$cache_file
2365 as_fn_append ac_header_list " stdlib.h"
2366 as_fn_append ac_header_list " unistd.h"
2367 as_fn_append ac_header_list " sys/param.h"
2368 as_fn_append ac_header_list " sys/time.h"
2369 as_fn_append ac_func_list " alarm"
2370 # Check that the precious variables saved in the cache have kept the same
2371 # value.
2372 ac_cache_corrupted=false
2373 for ac_var in $ac_precious_vars; do
2374 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2375 eval ac_new_set=\$ac_env_${ac_var}_set
2376 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2377 eval ac_new_val=\$ac_env_${ac_var}_value
2378 case $ac_old_set,$ac_new_set in
2379 set,)
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2381 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2382 ac_cache_corrupted=: ;;
2383 ,set)
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2385 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2386 ac_cache_corrupted=: ;;
2387 ,);;
2389 if test "x$ac_old_val" != "x$ac_new_val"; then
2390 # differences in whitespace do not lead to failure.
2391 ac_old_val_w=`echo x $ac_old_val`
2392 ac_new_val_w=`echo x $ac_new_val`
2393 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2395 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2396 ac_cache_corrupted=:
2397 else
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2399 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2400 eval $ac_var=\$ac_old_val
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2403 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2405 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2406 fi;;
2407 esac
2408 # Pass precious variables to config.status.
2409 if test "$ac_new_set" = set; then
2410 case $ac_new_val in
2411 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2412 *) ac_arg=$ac_var=$ac_new_val ;;
2413 esac
2414 case " $ac_configure_args " in
2415 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2416 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2417 esac
2419 done
2420 if $ac_cache_corrupted; then
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2424 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2425 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2427 ## -------------------- ##
2428 ## Main body of script. ##
2429 ## -------------------- ##
2431 ac_ext=c
2432 ac_cpp='$CPP $CPPFLAGS'
2433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2438 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2442 test "$program_prefix" != NONE &&
2443 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2444 # Use a double $ so make ignores it.
2445 test "$program_suffix" != NONE &&
2446 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2447 # Double any \ or $.
2448 # By default was `s,x,x', remove it if useless.
2449 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2450 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2453 lispdir='${datadir}/emacs/${version}/lisp'
2454 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2455 '${datadir}/emacs/site-lisp'
2456 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2457 etcdir='${datadir}/emacs/${version}/etc'
2458 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2459 docdir='${datadir}/emacs/${version}/etc'
2460 gamedir='${localstatedir}/games/emacs'
2462 gameuser=games
2467 # Check whether --with-pop was given.
2468 if test "${with_pop+set}" = set; then :
2469 withval=$with_pop;
2470 else
2471 with_pop=yes
2474 if test "$with_pop" = yes; then
2475 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2480 # Check whether --with-kerberos was given.
2481 if test "${with_kerberos+set}" = set; then :
2482 withval=$with_kerberos;
2483 else
2484 with_kerberos=no
2487 if test "$with_kerberos" != no; then
2488 $as_echo "#define KERBEROS 1" >>confdefs.h
2493 # Check whether --with-kerberos5 was given.
2494 if test "${with_kerberos5+set}" = set; then :
2495 withval=$with_kerberos5;
2496 else
2497 with_kerberos5=no
2500 if test "${with_kerberos5}" != no; then
2501 if test "${with_kerberos}" = no; then
2502 with_kerberos=yes
2503 $as_echo "#define KERBEROS 1" >>confdefs.h
2507 $as_echo "#define KERBEROS5 1" >>confdefs.h
2512 # Check whether --with-hesiod was given.
2513 if test "${with_hesiod+set}" = set; then :
2514 withval=$with_hesiod;
2515 else
2516 with_hesiod=no
2519 if test "$with_hesiod" != no; then
2521 $as_echo "#define HESIOD 1" >>confdefs.h
2526 # Check whether --with-sound was given.
2527 if test "${with_sound+set}" = set; then :
2528 withval=$with_sound;
2529 else
2530 with_sound=yes
2535 # Check whether --with-sync-input was given.
2536 if test "${with_sync_input+set}" = set; then :
2537 withval=$with_sync_input;
2538 else
2539 with_sync_input=yes
2542 if test "$with_sync_input" = yes; then
2544 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2549 # Check whether --with-x-toolkit was given.
2550 if test "${with_x_toolkit+set}" = set; then :
2551 withval=$with_x_toolkit; case "${withval}" in
2552 y | ye | yes ) val=gtk ;;
2553 n | no ) val=no ;;
2554 l | lu | luc | luci | lucid ) val=lucid ;;
2555 a | at | ath | athe | athen | athena ) val=athena ;;
2556 m | mo | mot | moti | motif ) val=motif ;;
2557 g | gt | gtk ) val=gtk ;;
2559 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
2560 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2561 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2563 esac
2564 with_x_toolkit=$val
2570 # Check whether --with-xpm was given.
2571 if test "${with_xpm+set}" = set; then :
2572 withval=$with_xpm;
2573 else
2574 with_xpm=yes
2578 # Check whether --with-jpeg was given.
2579 if test "${with_jpeg+set}" = set; then :
2580 withval=$with_jpeg;
2581 else
2582 with_jpeg=yes
2586 # Check whether --with-tiff was given.
2587 if test "${with_tiff+set}" = set; then :
2588 withval=$with_tiff;
2589 else
2590 with_tiff=yes
2594 # Check whether --with-gif was given.
2595 if test "${with_gif+set}" = set; then :
2596 withval=$with_gif;
2597 else
2598 with_gif=yes
2602 # Check whether --with-png was given.
2603 if test "${with_png+set}" = set; then :
2604 withval=$with_png;
2605 else
2606 with_png=yes
2610 # Check whether --with-rsvg was given.
2611 if test "${with_rsvg+set}" = set; then :
2612 withval=$with_rsvg;
2613 else
2614 with_rsvg=yes
2619 # Check whether --with-xft was given.
2620 if test "${with_xft+set}" = set; then :
2621 withval=$with_xft;
2622 else
2623 with_xft=yes
2627 # Check whether --with-libotf was given.
2628 if test "${with_libotf+set}" = set; then :
2629 withval=$with_libotf;
2630 else
2631 with_libotf=yes
2635 # Check whether --with-m17n-flt was given.
2636 if test "${with_m17n_flt+set}" = set; then :
2637 withval=$with_m17n_flt;
2638 else
2639 with_m17n_flt=yes
2644 # Check whether --with-toolkit-scroll-bars was given.
2645 if test "${with_toolkit_scroll_bars+set}" = set; then :
2646 withval=$with_toolkit_scroll_bars;
2647 else
2648 with_toolkit_scroll_bars=yes
2652 # Check whether --with-xaw3d was given.
2653 if test "${with_xaw3d+set}" = set; then :
2654 withval=$with_xaw3d;
2655 else
2656 with_xaw3d=yes
2660 # Check whether --with-xim was given.
2661 if test "${with_xim+set}" = set; then :
2662 withval=$with_xim;
2663 else
2664 with_xim=yes
2668 # Check whether --with-ns was given.
2669 if test "${with_ns+set}" = set; then :
2670 withval=$with_ns;
2671 else
2672 with_ns=no
2677 # Check whether --with-gpm was given.
2678 if test "${with_gpm+set}" = set; then :
2679 withval=$with_gpm;
2680 else
2681 with_gpm=yes
2685 # Check whether --with-dbus was given.
2686 if test "${with_dbus+set}" = set; then :
2687 withval=$with_dbus;
2688 else
2689 with_dbus=yes
2693 # Check whether --with-gconf was given.
2694 if test "${with_gconf+set}" = set; then :
2695 withval=$with_gconf;
2696 else
2697 with_gconf=yes
2701 ## For the times when you want to build Emacs but don't have
2702 ## a suitable makeinfo, and can live without the manuals.
2704 # Check whether --with-makeinfo was given.
2705 if test "${with_makeinfo+set}" = set; then :
2706 withval=$with_makeinfo;
2707 else
2708 with_makeinfo=yes
2713 # Check whether --with-gtk was given.
2714 if test "${with_gtk+set}" = set; then :
2715 withval=$with_gtk; as_fn_error "--with-gtk has been removed. Use --with-x-toolkit to
2716 specify a toolkit." "$LINENO" 5
2721 # Check whether --with-gcc was given.
2722 if test "${with_gcc+set}" = set; then :
2723 withval=$with_gcc; as_fn_error "--with-gcc has been removed. Set the \`CC' environment
2724 variable to specify a compiler." "$LINENO" 5
2729 # Check whether --with-pkg-config-prog was given.
2730 if test "${with_pkg_config_prog+set}" = set; then :
2731 withval=$with_pkg_config_prog;
2734 if test "X${with_pkg_config_prog}" != X; then
2735 if test "${with_pkg_config_prog}" != yes; then
2736 PKG_CONFIG="${with_pkg_config_prog}"
2740 CRT_DIR=
2742 # Check whether --with-crt-dir was given.
2743 if test "${with_crt_dir+set}" = set; then :
2744 withval=$with_crt_dir;
2747 CRT_DIR="${with_crt_dir}"
2750 # Check whether --with-gnustep-conf was given.
2751 if test "${with_gnustep_conf+set}" = set; then :
2752 withval=$with_gnustep_conf;
2755 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2756 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2757 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2758 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2760 # Check whether --enable-ns-self-contained was given.
2761 if test "${enable_ns_self_contained+set}" = set; then :
2762 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2763 else
2764 EN_NS_SELF_CONTAINED=yes
2768 # Check whether --enable-asserts was given.
2769 if test "${enable_asserts+set}" = set; then :
2770 enableval=$enable_asserts; USE_XASSERTS=$enableval
2771 else
2772 USE_XASSERTS=no
2776 # Check whether --enable-maintainer-mode was given.
2777 if test "${enable_maintainer_mode+set}" = set; then :
2778 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2779 else
2780 USE_MAINTAINER_MODE=no
2783 if test $USE_MAINTAINER_MODE = yes; then
2784 MAINT=
2785 else
2786 MAINT=#
2790 # Check whether --enable-locallisppath was given.
2791 if test "${enable_locallisppath+set}" = set; then :
2792 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2793 locallisppath=
2794 elif test "${enableval}" != "yes"; then
2795 locallisppath=${enableval}
2800 # Check whether --enable-checking was given.
2801 if test "${enable_checking+set}" = set; then :
2802 enableval=$enable_checking; ac_checking_flags="${enableval}"
2805 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2806 for check in $ac_checking_flags
2808 case $check in
2809 # these set all the flags to specific states
2810 yes) ac_enable_checking=1 ;;
2811 no) ac_enable_checking= ;
2812 ac_gc_check_stringbytes= ;
2813 ac_gc_check_string_overrun= ;
2814 ac_gc_check_string_free_list= ;
2815 ac_xmalloc_overrun= ;
2816 ac_gc_check_cons_list= ;;
2817 all) ac_enable_checking=1 ;
2818 ac_gc_check_stringbytes=1 ;
2819 ac_gc_check_string_overrun=1 ;
2820 ac_gc_check_string_free_list=1 ;
2821 ac_xmalloc_overrun=1 ;
2822 ac_gc_check_cons_list=1 ;;
2823 # these enable particular checks
2824 stringbytes) ac_gc_check_stringbytes=1 ;;
2825 stringoverrun) ac_gc_check_string_overrun=1 ;;
2826 stringfreelist) ac_gc_check_string_free_list=1 ;;
2827 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2828 conslist) ac_gc_check_cons_list=1 ;;
2829 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
2830 esac
2831 done
2832 IFS="$ac_save_IFS"
2834 if test x$ac_enable_checking != x ; then
2836 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2839 if test x$ac_gc_check_stringbytes != x ; then
2841 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2844 if test x$ac_gc_check_stringoverrun != x ; then
2846 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
2849 if test x$ac_gc_check_string_free_list != x ; then
2851 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
2854 if test x$ac_xmalloc_overrun != x ; then
2856 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
2859 if test x$ac_gc_check_cons_list != x ; then
2861 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
2865 # Check whether --enable-profiling was given.
2866 if test "${enable_profiling+set}" = set; then :
2867 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2870 if test x$ac_enable_profiling != x ; then
2871 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2872 PROFILING_LDFLAGS="-pg"
2873 else
2874 PROFILING_CFLAGS=
2875 PROFILING_LDFLAGS=
2878 # Check whether --enable-autodepend was given.
2879 if test "${enable_autodepend+set}" = set; then :
2880 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2881 else
2882 ac_enable_autodepend=yes
2886 #### Make srcdir absolute, if it isn't already. It's important to
2887 #### avoid running the path through pwd unnecessarily, since pwd can
2888 #### give you automounter prefixes, which can go away. We do all this
2889 #### so Emacs can find its files when run uninstalled.
2890 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2891 unset CDPATH
2892 case "${srcdir}" in
2893 /* ) ;;
2895 ## We may be able to use the $PWD environment variable to make this
2896 ## absolute. But sometimes PWD is inaccurate.
2897 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2898 ## but that tested only for a well-formed and valid PWD,
2899 ## it did not object when PWD was well-formed and valid but just wrong.
2900 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2901 then
2902 srcdir="$PWD"
2903 else
2904 srcdir="`(cd ${srcdir}; pwd)`"
2907 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2908 esac
2910 #### Check if the source directory already has a configured system in it.
2911 if test `pwd` != `(cd ${srcdir} && pwd)` \
2912 && test -f "${srcdir}/src/config.h" ; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
2914 as a build directory right now; it has been configured in its own
2915 right. To configure in another directory as well, you MUST
2916 use GNU make. If you do not have GNU make, then you must
2917 now do \`make distclean' in ${srcdir},
2918 and then run $0 again." >&5
2919 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2920 as a build directory right now; it has been configured in its own
2921 right. To configure in another directory as well, you MUST
2922 use GNU make. If you do not have GNU make, then you must
2923 now do \`make distclean' in ${srcdir},
2924 and then run $0 again." >&2;}
2927 #### Given the configuration name, set machfile and opsysfile to the
2928 #### names of the m/*.h and s/*.h files we should use.
2930 ### Canonicalize the configuration name.
2932 ac_aux_dir=
2933 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2934 for ac_t in install-sh install.sh shtool; do
2935 if test -f "$ac_dir/$ac_t"; then
2936 ac_aux_dir=$ac_dir
2937 ac_install_sh="$ac_aux_dir/$ac_t -c"
2938 break 2
2940 done
2941 done
2942 if test -z "$ac_aux_dir"; then
2943 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2946 # These three variables are undocumented and unsupported,
2947 # and are intended to be withdrawn in a future Autoconf release.
2948 # They can cause serious problems if a builder's source tree is in a directory
2949 # whose full name contains unusual characters.
2950 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2951 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2952 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2955 # Make sure we can run config.sub.
2956 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2957 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2960 $as_echo_n "checking build system type... " >&6; }
2961 if test "${ac_cv_build+set}" = set; then :
2962 $as_echo_n "(cached) " >&6
2963 else
2964 ac_build_alias=$build_alias
2965 test "x$ac_build_alias" = x &&
2966 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2967 test "x$ac_build_alias" = x &&
2968 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2969 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2970 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2974 $as_echo "$ac_cv_build" >&6; }
2975 case $ac_cv_build in
2976 *-*-*) ;;
2977 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2978 esac
2979 build=$ac_cv_build
2980 ac_save_IFS=$IFS; IFS='-'
2981 set x $ac_cv_build
2982 shift
2983 build_cpu=$1
2984 build_vendor=$2
2985 shift; shift
2986 # Remember, the first character of IFS is used to create $*,
2987 # except with old shells:
2988 build_os=$*
2989 IFS=$ac_save_IFS
2990 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2994 $as_echo_n "checking host system type... " >&6; }
2995 if test "${ac_cv_host+set}" = set; then :
2996 $as_echo_n "(cached) " >&6
2997 else
2998 if test "x$host_alias" = x; then
2999 ac_cv_host=$ac_cv_build
3000 else
3001 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3002 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3007 $as_echo "$ac_cv_host" >&6; }
3008 case $ac_cv_host in
3009 *-*-*) ;;
3010 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3011 esac
3012 host=$ac_cv_host
3013 ac_save_IFS=$IFS; IFS='-'
3014 set x $ac_cv_host
3015 shift
3016 host_cpu=$1
3017 host_vendor=$2
3018 shift; shift
3019 # Remember, the first character of IFS is used to create $*,
3020 # except with old shells:
3021 host_os=$*
3022 IFS=$ac_save_IFS
3023 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3026 canonical=$host
3027 configuration=${host_alias-${build_alias-$host}}
3031 ### If you add support for a new configuration, add code to this
3032 ### switch statement to recognize your configuration name and select
3033 ### the appropriate operating system and machine description files.
3035 ### You would hope that you could choose an m/*.h file pretty much
3036 ### based on the machine portion of the configuration name, and an s-
3037 ### file based on the operating system portion. However, it turns out
3038 ### that each m/*.h file is pretty manufacturer-specific - for
3039 ### example mips.h is MIPS
3040 ### So we basically have to have a special case for each
3041 ### configuration name.
3043 ### As far as handling version numbers on operating systems is
3044 ### concerned, make sure things will fail in a fixable way. If
3045 ### /etc/MACHINES doesn't say anything about version numbers, be
3046 ### prepared to handle anything reasonably. If version numbers
3047 ### matter, be sure /etc/MACHINES says something about it.
3049 ### Eric Raymond says we should accept strings like "sysvr4" to mean
3050 ### "System V Release 4"; he writes, "The old convention encouraged
3051 ### confusion between `system' and `release' levels'."
3053 machine='' opsys='' unported=no
3054 case "${canonical}" in
3056 ## FreeBSD ports
3057 *-*-freebsd* )
3058 opsys=freebsd
3059 case "${canonical}" in
3060 alpha*-*-freebsd*) machine=alpha ;;
3061 arm*-*-freebsd*) machine=arm ;;
3062 ia64-*-freebsd*) machine=ia64 ;;
3063 sparc-*-freebsd*) machine=sparc ;;
3064 sparc64-*-freebsd*) machine=sparc ;;
3065 powerpc-*-freebsd*) machine=macppc ;;
3066 i[3456]86-*-freebsd*) machine=intel386 ;;
3067 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
3068 esac
3071 ## FreeBSD kernel + glibc based userland
3072 *-*-kfreebsd*gnu* )
3073 opsys=gnu-kfreebsd
3074 case "${canonical}" in
3075 alpha*-*-kfreebsd*) machine=alpha ;;
3076 ia64-*-kfreebsd*) machine=ia64 ;;
3077 sparc-*-kfreebsd*) machine=sparc ;;
3078 sparc64-*-kfreebsd*) machine=sparc ;;
3079 powerpc-*-kfreebsd*) machine=macppc ;;
3080 i[3456]86-*-kfreebsd*) machine=intel386 ;;
3081 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
3082 esac
3085 ## NetBSD ports
3086 *-*-netbsd* )
3087 opsys=netbsd
3088 if test -f /usr/lib/crti.o; then
3090 $as_echo "#define HAVE_CRTIN /**/" >>confdefs.h
3094 case "${canonical}" in
3095 alpha*-*-netbsd*) machine=alpha ;;
3096 i[3456]86-*-netbsd*) machine=intel386 ;;
3097 mips-*-netbsd*) machine=mips ;;
3098 mipsel-*-netbsd*) machine=mips ;;
3099 mipseb-*-netbsd*) machine=mips ;;
3100 powerpc-*-netbsd*) machine=macppc ;;
3101 sparc*-*-netbsd*) machine=sparc ;;
3102 vax-*-netbsd*) machine=vax ;;
3103 arm-*-netbsd*) machine=arm ;;
3104 x86_64-*-netbsd*) machine=amdx86-64 ;;
3105 hppa-*-netbsd*) machine=hp800 ;;
3106 m68k-*-netbsd*) machine=m68k ;;
3107 esac
3110 ## OpenBSD ports
3111 *-*-openbsd* )
3112 opsys=openbsd
3113 case "${canonical}" in
3114 alpha*-*-openbsd*) machine=alpha ;;
3115 arm-*-openbsd*) machine=arm ;;
3116 i386-*-openbsd*) machine=intel386 ;;
3117 powerpc-*-openbsd*) machine=macppc ;;
3118 sparc*-*-openbsd*) machine=sparc ;;
3119 vax-*-openbsd*) machine=vax ;;
3120 x86_64-*-openbsd*) machine=amdx86-64 ;;
3121 hppa-*-openbsd*) machine=hp800 ;;
3122 esac
3125 ## LynxOS ports
3126 *-*-lynxos* )
3127 opsys=lynxos
3128 case "${canonical}" in
3129 i[3456]86-*-lynxos*) machine=intel386 ;;
3130 powerpc-*-lynxos*) machine=powerpc ;;
3131 esac
3134 alpha*-*-linux-gnu* )
3135 machine=alpha opsys=gnu-linux
3138 arm*-*-linux-gnu* )
3139 machine=arm opsys=gnu-linux
3142 ## Apple Darwin / Mac OS X
3143 *-apple-darwin* )
3144 case "${canonical}" in
3145 i[3456]86-* ) machine=intel386 ;;
3146 powerpc-* ) machine=macppc ;;
3147 x86_64-* ) machine=amdx86-64 ;;
3148 * ) unported=yes ;;
3149 esac
3150 opsys=darwin
3151 # Define CPP as follows to make autoconf work correctly.
3152 CPP="${CC-cc} -E -no-cpp-precomp"
3153 # Use fink packages if available.
3154 if test -d /sw/include && test -d /sw/lib; then
3155 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3156 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3157 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3161 ## HP 9000 series 700 and 800, running HP/UX
3162 hppa*-hp-hpux10.2* )
3163 machine=hp800 opsys=hpux10-20
3165 hppa*-hp-hpux1[1-9]* )
3166 machine=hp800 opsys=hpux11
3167 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3170 hppa*-*-linux-gnu* )
3171 machine=hp800 opsys=gnu-linux
3174 ## IBM machines
3175 s390-*-linux-gnu* )
3176 machine=ibms390 opsys=gnu-linux
3178 s390x-*-linux-gnu* )
3179 machine=ibms390x opsys=gnu-linux
3181 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
3182 machine=ibmrs6000 opsys=aix4-2
3184 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
3185 machine=ibmrs6000 opsys=aix4-2
3187 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
3188 machine=ibmrs6000 opsys=aix4-2
3190 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
3191 machine=ibmrs6000 opsys=aix4-2
3194 ## Macintosh PowerPC
3195 powerpc*-*-linux-gnu* )
3196 machine=macppc opsys=gnu-linux
3199 ## Silicon Graphics machines
3200 ## Iris 4D
3201 mips-sgi-irix6.5 )
3202 machine=iris4d opsys=irix6-5
3203 # Without defining _LANGUAGE_C, things get masked out in the headers
3204 # so that, for instance, grepping for `free' in stdlib.h fails and
3205 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3206 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3207 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3210 ## Suns
3211 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
3212 machine=sparc opsys=gnu-linux
3215 *-sun-solaris* \
3216 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3217 | x86_64-*-solaris2* | x86_64-*-sunos5* \
3218 | powerpc*-*-solaris2* | rs6000-*-solaris2*)
3219 case "${canonical}" in
3220 i[3456]86-*-* ) machine=intel386 ;;
3221 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3222 powerpc* | rs6000* ) machine=ibmrs6000 ;;
3223 sparc* ) machine=sparc ;;
3224 * ) unported=yes ;;
3225 esac
3226 case "${canonical}" in
3227 *-sunos5.3* | *-solaris2.3* )
3228 opsys=sol2-3
3229 NON_GNU_CPP=/usr/ccs/lib/cpp
3231 *-sunos5.4* | *-solaris2.4* )
3232 opsys=sol2-4
3233 NON_GNU_CPP=/usr/ccs/lib/cpp
3234 RANLIB="ar -ts"
3236 *-sunos5.5* | *-solaris2.5* )
3237 opsys=sol2-5
3238 NON_GNU_CPP=/usr/ccs/lib/cpp
3239 RANLIB="ar -ts"
3241 *-sunos5.6* | *-solaris2.6* )
3242 opsys=sol2-6
3243 NON_GNU_CPP=/usr/ccs/lib/cpp
3244 RANLIB="ar -ts"
3246 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3247 opsys=sol2-6
3248 emacs_check_sunpro_c=yes
3249 NON_GNU_CPP=/usr/ccs/lib/cpp
3251 *-sunos5* | *-solaris* )
3252 opsys=sol2-10
3253 emacs_check_sunpro_c=yes
3254 NON_GNU_CPP=/usr/ccs/lib/cpp
3256 esac
3257 ## Watch out for a compiler that we know will not work.
3258 case "${canonical}" in
3259 *-solaris* | *-sunos5* )
3260 if [ "x$CC" = x/usr/ucb/cc ]; then
3261 ## /usr/ucb/cc doesn't work;
3262 ## we should find some other compiler that does work.
3263 unset CC
3266 *) ;;
3267 esac
3270 ## IA-64
3271 ia64*-*-linux* )
3272 machine=ia64 opsys=gnu-linux
3275 ## Intel 386 machines where we don't care about the manufacturer
3276 i[3456]86-*-* )
3277 machine=intel386
3278 case "${canonical}" in
3279 *-cygwin ) opsys=cygwin ;;
3280 *-darwin* ) opsys=darwin
3281 CPP="${CC-cc} -E -no-cpp-precomp"
3283 *-linux-gnu* ) opsys=gnu-linux ;;
3284 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3285 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3286 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3287 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3288 esac
3291 ## m68k Linux-based GNU system
3292 m68k-*-linux-gnu* )
3293 machine=m68k opsys=gnu-linux
3296 ## Mips Linux-based GNU system
3297 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
3298 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
3299 machine=mips opsys=gnu-linux
3302 ## AMD x86-64 Linux-based GNU system
3303 x86_64-*-linux-gnu* )
3304 machine=amdx86-64 opsys=gnu-linux
3307 ## Tensilica Xtensa Linux-based GNU system
3308 xtensa*-*-linux-gnu* )
3309 machine=xtensa opsys=gnu-linux
3312 ## SuperH Linux-based GNU system
3313 sh[34]*-*-linux-gnu* )
3314 machine=sh3 opsys=gnu-linux
3318 unported=yes
3320 esac
3322 ### If the code above didn't choose an operating system, just choose
3323 ### an operating system based on the configuration name. You really
3324 ### only want to use this when you have no idea what the right
3325 ### operating system is; if you know what operating systems a machine
3326 ### runs, it's cleaner to make it explicit in the case statement
3327 ### above.
3328 if test x"${opsys}" = x; then
3329 case "${canonical}" in
3330 *-gnu* ) opsys=gnu ;;
3331 *-sysv4.2uw* ) opsys=unixware ;;
3332 *-sysv5uw* ) opsys=unixware ;;
3333 *-sysv5OpenUNIX* ) opsys=unixware ;;
3334 *-sysv4.1* | *-sysvr4.1* )
3335 NON_GNU_CPP=/usr/lib/cpp
3336 opsys=usg5-4 ;;
3337 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3338 if [ x$NON_GNU_CPP = x ]; then
3339 if [ -f /usr/ccs/lib/cpp ]; then
3340 NON_GNU_CPP=/usr/ccs/lib/cpp
3341 else
3342 NON_GNU_CPP=/lib/cpp
3345 opsys=usg5-4-2 ;;
3346 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3348 unported=yes
3350 esac
3355 if test $unported = yes; then
3356 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
3357 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3360 machfile="m/${machine}.h"
3361 opsysfile="s/${opsys}.h"
3364 #### Choose a compiler.
3365 test -n "$CC" && cc_specified=yes
3367 # Save the value of CFLAGS that the user specified.
3368 SPECIFIED_CFLAGS="$CFLAGS"
3370 ac_ext=c
3371 ac_cpp='$CPP $CPPFLAGS'
3372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375 if test -n "$ac_tool_prefix"; then
3376 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3377 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379 $as_echo_n "checking for $ac_word... " >&6; }
3380 if test "${ac_cv_prog_CC+set}" = set; then :
3381 $as_echo_n "(cached) " >&6
3382 else
3383 if test -n "$CC"; then
3384 ac_cv_prog_CC="$CC" # Let the user override the test.
3385 else
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3389 IFS=$as_save_IFS
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3393 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3395 break 2
3397 done
3398 done
3399 IFS=$as_save_IFS
3403 CC=$ac_cv_prog_CC
3404 if test -n "$CC"; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3406 $as_echo "$CC" >&6; }
3407 else
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3414 if test -z "$ac_cv_prog_CC"; then
3415 ac_ct_CC=$CC
3416 # Extract the first word of "gcc", so it can be a program name with args.
3417 set dummy gcc; ac_word=$2
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3419 $as_echo_n "checking for $ac_word... " >&6; }
3420 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3421 $as_echo_n "(cached) " >&6
3422 else
3423 if test -n "$ac_ct_CC"; then
3424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3425 else
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3429 IFS=$as_save_IFS
3430 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3433 ac_cv_prog_ac_ct_CC="gcc"
3434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 break 2
3437 done
3438 done
3439 IFS=$as_save_IFS
3443 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3444 if test -n "$ac_ct_CC"; then
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3446 $as_echo "$ac_ct_CC" >&6; }
3447 else
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449 $as_echo "no" >&6; }
3452 if test "x$ac_ct_CC" = x; then
3453 CC=""
3454 else
3455 case $cross_compiling:$ac_tool_warned in
3456 yes:)
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3459 ac_tool_warned=yes ;;
3460 esac
3461 CC=$ac_ct_CC
3463 else
3464 CC="$ac_cv_prog_CC"
3467 if test -z "$CC"; then
3468 if test -n "$ac_tool_prefix"; then
3469 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3470 set dummy ${ac_tool_prefix}cc; ac_word=$2
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472 $as_echo_n "checking for $ac_word... " >&6; }
3473 if test "${ac_cv_prog_CC+set}" = set; then :
3474 $as_echo_n "(cached) " >&6
3475 else
3476 if test -n "$CC"; then
3477 ac_cv_prog_CC="$CC" # Let the user override the test.
3478 else
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 for as_dir in $PATH
3482 IFS=$as_save_IFS
3483 test -z "$as_dir" && as_dir=.
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3486 ac_cv_prog_CC="${ac_tool_prefix}cc"
3487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 break 2
3490 done
3491 done
3492 IFS=$as_save_IFS
3496 CC=$ac_cv_prog_CC
3497 if test -n "$CC"; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3499 $as_echo "$CC" >&6; }
3500 else
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502 $as_echo "no" >&6; }
3508 if test -z "$CC"; then
3509 # Extract the first word of "cc", so it can be a program name with args.
3510 set dummy cc; ac_word=$2
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3512 $as_echo_n "checking for $ac_word... " >&6; }
3513 if test "${ac_cv_prog_CC+set}" = set; then :
3514 $as_echo_n "(cached) " >&6
3515 else
3516 if test -n "$CC"; then
3517 ac_cv_prog_CC="$CC" # Let the user override the test.
3518 else
3519 ac_prog_rejected=no
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 for as_dir in $PATH
3523 IFS=$as_save_IFS
3524 test -z "$as_dir" && as_dir=.
3525 for ac_exec_ext in '' $ac_executable_extensions; do
3526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3527 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3528 ac_prog_rejected=yes
3529 continue
3531 ac_cv_prog_CC="cc"
3532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3533 break 2
3535 done
3536 done
3537 IFS=$as_save_IFS
3539 if test $ac_prog_rejected = yes; then
3540 # We found a bogon in the path, so make sure we never use it.
3541 set dummy $ac_cv_prog_CC
3542 shift
3543 if test $# != 0; then
3544 # We chose a different compiler from the bogus one.
3545 # However, it has the same basename, so the bogon will be chosen
3546 # first if we set CC to just the basename; use the full file name.
3547 shift
3548 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3553 CC=$ac_cv_prog_CC
3554 if test -n "$CC"; then
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3556 $as_echo "$CC" >&6; }
3557 else
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 $as_echo "no" >&6; }
3564 if test -z "$CC"; then
3565 if test -n "$ac_tool_prefix"; then
3566 for ac_prog in cl.exe
3568 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3569 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3571 $as_echo_n "checking for $ac_word... " >&6; }
3572 if test "${ac_cv_prog_CC+set}" = set; then :
3573 $as_echo_n "(cached) " >&6
3574 else
3575 if test -n "$CC"; then
3576 ac_cv_prog_CC="$CC" # Let the user override the test.
3577 else
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 for as_dir in $PATH
3581 IFS=$as_save_IFS
3582 test -z "$as_dir" && as_dir=.
3583 for ac_exec_ext in '' $ac_executable_extensions; do
3584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3585 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3587 break 2
3589 done
3590 done
3591 IFS=$as_save_IFS
3595 CC=$ac_cv_prog_CC
3596 if test -n "$CC"; then
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3598 $as_echo "$CC" >&6; }
3599 else
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601 $as_echo "no" >&6; }
3605 test -n "$CC" && break
3606 done
3608 if test -z "$CC"; then
3609 ac_ct_CC=$CC
3610 for ac_prog in cl.exe
3612 # Extract the first word of "$ac_prog", so it can be a program name with args.
3613 set dummy $ac_prog; ac_word=$2
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3615 $as_echo_n "checking for $ac_word... " >&6; }
3616 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3617 $as_echo_n "(cached) " >&6
3618 else
3619 if test -n "$ac_ct_CC"; then
3620 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3621 else
3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623 for as_dir in $PATH
3625 IFS=$as_save_IFS
3626 test -z "$as_dir" && as_dir=.
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3629 ac_cv_prog_ac_ct_CC="$ac_prog"
3630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3631 break 2
3633 done
3634 done
3635 IFS=$as_save_IFS
3639 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3640 if test -n "$ac_ct_CC"; then
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3642 $as_echo "$ac_ct_CC" >&6; }
3643 else
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3645 $as_echo "no" >&6; }
3649 test -n "$ac_ct_CC" && break
3650 done
3652 if test "x$ac_ct_CC" = x; then
3653 CC=""
3654 else
3655 case $cross_compiling:$ac_tool_warned in
3656 yes:)
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3659 ac_tool_warned=yes ;;
3660 esac
3661 CC=$ac_ct_CC
3668 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3670 as_fn_error "no acceptable C compiler found in \$PATH
3671 See \`config.log' for more details." "$LINENO" 5; }
3673 # Provide some information about the compiler.
3674 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3675 set X $ac_compile
3676 ac_compiler=$2
3677 for ac_option in --version -v -V -qversion; do
3678 { { ac_try="$ac_compiler $ac_option >&5"
3679 case "(($ac_try" in
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3682 esac
3683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3684 $as_echo "$ac_try_echo"; } >&5
3685 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3686 ac_status=$?
3687 if test -s conftest.err; then
3688 sed '10a\
3689 ... rest of stderr output deleted ...
3690 10q' conftest.err >conftest.er1
3691 cat conftest.er1 >&5
3693 rm -f conftest.er1 conftest.err
3694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3695 test $ac_status = 0; }
3696 done
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3702 main ()
3706 return 0;
3708 _ACEOF
3709 ac_clean_files_save=$ac_clean_files
3710 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3711 # Try to create an executable without -o first, disregard a.out.
3712 # It will help us diagnose broken compilers, and finding out an intuition
3713 # of exeext.
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3715 $as_echo_n "checking whether the C compiler works... " >&6; }
3716 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3718 # The possible output files:
3719 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3721 ac_rmfiles=
3722 for ac_file in $ac_files
3724 case $ac_file in
3725 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3726 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3727 esac
3728 done
3729 rm -f $ac_rmfiles
3731 if { { ac_try="$ac_link_default"
3732 case "(($ac_try" in
3733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3734 *) ac_try_echo=$ac_try;;
3735 esac
3736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3737 $as_echo "$ac_try_echo"; } >&5
3738 (eval "$ac_link_default") 2>&5
3739 ac_status=$?
3740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3741 test $ac_status = 0; }; then :
3742 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3743 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3744 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3745 # so that the user can short-circuit this test for compilers unknown to
3746 # Autoconf.
3747 for ac_file in $ac_files ''
3749 test -f "$ac_file" || continue
3750 case $ac_file in
3751 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3753 [ab].out )
3754 # We found the default executable, but exeext='' is most
3755 # certainly right.
3756 break;;
3757 *.* )
3758 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3759 then :; else
3760 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3762 # We set ac_cv_exeext here because the later test for it is not
3763 # safe: cross compilers may not add the suffix if given an `-o'
3764 # argument, so we may need to know it at that point already.
3765 # Even if this section looks crufty: it has the advantage of
3766 # actually working.
3767 break;;
3769 break;;
3770 esac
3771 done
3772 test "$ac_cv_exeext" = no && ac_cv_exeext=
3774 else
3775 ac_file=''
3777 if test -z "$ac_file"; then :
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779 $as_echo "no" >&6; }
3780 $as_echo "$as_me: failed program was:" >&5
3781 sed 's/^/| /' conftest.$ac_ext >&5
3783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3785 { as_fn_set_status 77
3786 as_fn_error "C compiler cannot create executables
3787 See \`config.log' for more details." "$LINENO" 5; }; }
3788 else
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3790 $as_echo "yes" >&6; }
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3793 $as_echo_n "checking for C compiler default output file name... " >&6; }
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3795 $as_echo "$ac_file" >&6; }
3796 ac_exeext=$ac_cv_exeext
3798 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3799 ac_clean_files=$ac_clean_files_save
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3801 $as_echo_n "checking for suffix of executables... " >&6; }
3802 if { { ac_try="$ac_link"
3803 case "(($ac_try" in
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3806 esac
3807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3808 $as_echo "$ac_try_echo"; } >&5
3809 (eval "$ac_link") 2>&5
3810 ac_status=$?
3811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3812 test $ac_status = 0; }; then :
3813 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3814 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3815 # work properly (i.e., refer to `conftest.exe'), while it won't with
3816 # `rm'.
3817 for ac_file in conftest.exe conftest conftest.*; do
3818 test -f "$ac_file" || continue
3819 case $ac_file in
3820 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3821 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3822 break;;
3823 * ) break;;
3824 esac
3825 done
3826 else
3827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3829 as_fn_error "cannot compute suffix of executables: cannot compile and link
3830 See \`config.log' for more details." "$LINENO" 5; }
3832 rm -f conftest conftest$ac_cv_exeext
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3834 $as_echo "$ac_cv_exeext" >&6; }
3836 rm -f conftest.$ac_ext
3837 EXEEXT=$ac_cv_exeext
3838 ac_exeext=$EXEEXT
3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840 /* end confdefs.h. */
3841 #include <stdio.h>
3843 main ()
3845 FILE *f = fopen ("conftest.out", "w");
3846 return ferror (f) || fclose (f) != 0;
3849 return 0;
3851 _ACEOF
3852 ac_clean_files="$ac_clean_files conftest.out"
3853 # Check that the compiler produces executables we can run. If not, either
3854 # the compiler is broken, or we cross compile.
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3856 $as_echo_n "checking whether we are cross compiling... " >&6; }
3857 if test "$cross_compiling" != yes; then
3858 { { ac_try="$ac_link"
3859 case "(($ac_try" in
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3862 esac
3863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3864 $as_echo "$ac_try_echo"; } >&5
3865 (eval "$ac_link") 2>&5
3866 ac_status=$?
3867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3868 test $ac_status = 0; }
3869 if { ac_try='./conftest$ac_cv_exeext'
3870 { { case "(($ac_try" in
3871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872 *) ac_try_echo=$ac_try;;
3873 esac
3874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3875 $as_echo "$ac_try_echo"; } >&5
3876 (eval "$ac_try") 2>&5
3877 ac_status=$?
3878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3879 test $ac_status = 0; }; }; then
3880 cross_compiling=no
3881 else
3882 if test "$cross_compiling" = maybe; then
3883 cross_compiling=yes
3884 else
3885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3887 as_fn_error "cannot run C compiled programs.
3888 If you meant to cross compile, use \`--host'.
3889 See \`config.log' for more details." "$LINENO" 5; }
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3894 $as_echo "$cross_compiling" >&6; }
3896 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3897 ac_clean_files=$ac_clean_files_save
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3899 $as_echo_n "checking for suffix of object files... " >&6; }
3900 if test "${ac_cv_objext+set}" = set; then :
3901 $as_echo_n "(cached) " >&6
3902 else
3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h. */
3907 main ()
3911 return 0;
3913 _ACEOF
3914 rm -f conftest.o conftest.obj
3915 if { { ac_try="$ac_compile"
3916 case "(($ac_try" in
3917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918 *) ac_try_echo=$ac_try;;
3919 esac
3920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3921 $as_echo "$ac_try_echo"; } >&5
3922 (eval "$ac_compile") 2>&5
3923 ac_status=$?
3924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3925 test $ac_status = 0; }; then :
3926 for ac_file in conftest.o conftest.obj conftest.*; do
3927 test -f "$ac_file" || continue;
3928 case $ac_file in
3929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3930 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3931 break;;
3932 esac
3933 done
3934 else
3935 $as_echo "$as_me: failed program was:" >&5
3936 sed 's/^/| /' conftest.$ac_ext >&5
3938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3940 as_fn_error "cannot compute suffix of object files: cannot compile
3941 See \`config.log' for more details." "$LINENO" 5; }
3943 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3946 $as_echo "$ac_cv_objext" >&6; }
3947 OBJEXT=$ac_cv_objext
3948 ac_objext=$OBJEXT
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3950 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3951 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3952 $as_echo_n "(cached) " >&6
3953 else
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3958 main ()
3960 #ifndef __GNUC__
3961 choke me
3962 #endif
3965 return 0;
3967 _ACEOF
3968 if ac_fn_c_try_compile "$LINENO"; then :
3969 ac_compiler_gnu=yes
3970 else
3971 ac_compiler_gnu=no
3973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3978 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3979 if test $ac_compiler_gnu = yes; then
3980 GCC=yes
3981 else
3982 GCC=
3984 ac_test_CFLAGS=${CFLAGS+set}
3985 ac_save_CFLAGS=$CFLAGS
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3987 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3988 if test "${ac_cv_prog_cc_g+set}" = set; then :
3989 $as_echo_n "(cached) " >&6
3990 else
3991 ac_save_c_werror_flag=$ac_c_werror_flag
3992 ac_c_werror_flag=yes
3993 ac_cv_prog_cc_g=no
3994 CFLAGS="-g"
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
3999 main ()
4003 return 0;
4005 _ACEOF
4006 if ac_fn_c_try_compile "$LINENO"; then :
4007 ac_cv_prog_cc_g=yes
4008 else
4009 CFLAGS=""
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4014 main ()
4018 return 0;
4020 _ACEOF
4021 if ac_fn_c_try_compile "$LINENO"; then :
4023 else
4024 ac_c_werror_flag=$ac_save_c_werror_flag
4025 CFLAGS="-g"
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4030 main ()
4034 return 0;
4036 _ACEOF
4037 if ac_fn_c_try_compile "$LINENO"; then :
4038 ac_cv_prog_cc_g=yes
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045 ac_c_werror_flag=$ac_save_c_werror_flag
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4048 $as_echo "$ac_cv_prog_cc_g" >&6; }
4049 if test "$ac_test_CFLAGS" = set; then
4050 CFLAGS=$ac_save_CFLAGS
4051 elif test $ac_cv_prog_cc_g = yes; then
4052 if test "$GCC" = yes; then
4053 CFLAGS="-g -O2"
4054 else
4055 CFLAGS="-g"
4057 else
4058 if test "$GCC" = yes; then
4059 CFLAGS="-O2"
4060 else
4061 CFLAGS=
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4065 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4066 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4067 $as_echo_n "(cached) " >&6
4068 else
4069 ac_cv_prog_cc_c89=no
4070 ac_save_CC=$CC
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4073 #include <stdarg.h>
4074 #include <stdio.h>
4075 #include <sys/types.h>
4076 #include <sys/stat.h>
4077 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4078 struct buf { int x; };
4079 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4080 static char *e (p, i)
4081 char **p;
4082 int i;
4084 return p[i];
4086 static char *f (char * (*g) (char **, int), char **p, ...)
4088 char *s;
4089 va_list v;
4090 va_start (v,p);
4091 s = g (p, va_arg (v,int));
4092 va_end (v);
4093 return s;
4096 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4097 function prototypes and stuff, but not '\xHH' hex character constants.
4098 These don't provoke an error unfortunately, instead are silently treated
4099 as 'x'. The following induces an error, until -std is added to get
4100 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4101 array size at least. It's necessary to write '\x00'==0 to get something
4102 that's true only with -std. */
4103 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4105 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4106 inside strings and character constants. */
4107 #define FOO(x) 'x'
4108 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4110 int test (int i, double x);
4111 struct s1 {int (*f) (int a);};
4112 struct s2 {int (*f) (double a);};
4113 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4114 int argc;
4115 char **argv;
4117 main ()
4119 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4121 return 0;
4123 _ACEOF
4124 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4125 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4127 CC="$ac_save_CC $ac_arg"
4128 if ac_fn_c_try_compile "$LINENO"; then :
4129 ac_cv_prog_cc_c89=$ac_arg
4131 rm -f core conftest.err conftest.$ac_objext
4132 test "x$ac_cv_prog_cc_c89" != "xno" && break
4133 done
4134 rm -f conftest.$ac_ext
4135 CC=$ac_save_CC
4138 # AC_CACHE_VAL
4139 case "x$ac_cv_prog_cc_c89" in
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4142 $as_echo "none needed" >&6; } ;;
4143 xno)
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4145 $as_echo "unsupported" >&6; } ;;
4147 CC="$CC $ac_cv_prog_cc_c89"
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4149 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4150 esac
4151 if test "x$ac_cv_prog_cc_c89" != xno; then :
4155 ac_ext=c
4156 ac_cpp='$CPP $CPPFLAGS'
4157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4162 # On Suns, sometimes $CPP names a directory.
4163 if test -n "$CPP" && test -d "$CPP"; then
4164 CPP=
4167 ## If not using gcc, and on Solaris, and no CPP specified, see if
4168 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4169 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4170 test x"$CPP" = x; then
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4172 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4174 if test "${emacs_cv_sunpro_c+set}" = set; then :
4175 $as_echo_n "(cached) " >&6
4176 else
4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h. */
4181 main ()
4183 #ifndef __SUNPRO_C
4184 fail;
4185 #endif
4188 return 0;
4190 _ACEOF
4191 if ac_fn_c_try_link "$LINENO"; then :
4192 emacs_cv_sunpro_c=yes
4193 else
4194 emacs_cv_sunpro_c=no
4196 rm -f core conftest.err conftest.$ac_objext \
4197 conftest$ac_exeext conftest.$ac_ext
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4201 $as_echo "$emacs_cv_sunpro_c" >&6; }
4203 if test x"$emacs_cv_sunpro_c" = xyes; then
4204 NON_GNU_CPP="$CC -E -Xs"
4208 #### Some systems specify a CPP to use unless we are using GCC.
4209 #### Now that we know whether we are using GCC, we can decide whether
4210 #### to use that one.
4211 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4212 then
4213 CPP="$NON_GNU_CPP"
4216 #### Some systems specify a CC to use unless we are using GCC.
4217 #### Now that we know whether we are using GCC, we can decide whether
4218 #### to use that one.
4219 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4220 test x$cc_specified != xyes
4221 then
4222 CC="$NON_GNU_CC"
4225 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4226 then
4227 CC="$CC $GCC_TEST_OPTIONS"
4230 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4231 then
4232 CC="$CC $NON_GCC_TEST_OPTIONS"
4235 ac_ext=c
4236 ac_cpp='$CPP $CPPFLAGS'
4237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4241 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4242 # On Suns, sometimes $CPP names a directory.
4243 if test -n "$CPP" && test -d "$CPP"; then
4244 CPP=
4246 if test -z "$CPP"; then
4247 if test "${ac_cv_prog_CPP+set}" = set; then :
4248 $as_echo_n "(cached) " >&6
4249 else
4250 # Double quotes because CPP needs to be expanded
4251 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4253 ac_preproc_ok=false
4254 for ac_c_preproc_warn_flag in '' yes
4256 # Use a header file that comes with gcc, so configuring glibc
4257 # with a fresh cross-compiler works.
4258 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4259 # <limits.h> exists even on freestanding compilers.
4260 # On the NeXT, cc -E runs the code through the compiler's parser,
4261 # not just through cpp. "Syntax error" is here to catch this case.
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4264 #ifdef __STDC__
4265 # include <limits.h>
4266 #else
4267 # include <assert.h>
4268 #endif
4269 Syntax error
4270 _ACEOF
4271 if ac_fn_c_try_cpp "$LINENO"; then :
4273 else
4274 # Broken: fails on valid input.
4275 continue
4277 rm -f conftest.err conftest.$ac_ext
4279 # OK, works on sane cases. Now check whether nonexistent headers
4280 # can be detected and how.
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4283 #include <ac_nonexistent.h>
4284 _ACEOF
4285 if ac_fn_c_try_cpp "$LINENO"; then :
4286 # Broken: success on invalid input.
4287 continue
4288 else
4289 # Passes both tests.
4290 ac_preproc_ok=:
4291 break
4293 rm -f conftest.err conftest.$ac_ext
4295 done
4296 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4297 rm -f conftest.err conftest.$ac_ext
4298 if $ac_preproc_ok; then :
4299 break
4302 done
4303 ac_cv_prog_CPP=$CPP
4306 CPP=$ac_cv_prog_CPP
4307 else
4308 ac_cv_prog_CPP=$CPP
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4311 $as_echo "$CPP" >&6; }
4312 ac_preproc_ok=false
4313 for ac_c_preproc_warn_flag in '' yes
4315 # Use a header file that comes with gcc, so configuring glibc
4316 # with a fresh cross-compiler works.
4317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4318 # <limits.h> exists even on freestanding compilers.
4319 # On the NeXT, cc -E runs the code through the compiler's parser,
4320 # not just through cpp. "Syntax error" is here to catch this case.
4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h. */
4323 #ifdef __STDC__
4324 # include <limits.h>
4325 #else
4326 # include <assert.h>
4327 #endif
4328 Syntax error
4329 _ACEOF
4330 if ac_fn_c_try_cpp "$LINENO"; then :
4332 else
4333 # Broken: fails on valid input.
4334 continue
4336 rm -f conftest.err conftest.$ac_ext
4338 # OK, works on sane cases. Now check whether nonexistent headers
4339 # can be detected and how.
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4342 #include <ac_nonexistent.h>
4343 _ACEOF
4344 if ac_fn_c_try_cpp "$LINENO"; then :
4345 # Broken: success on invalid input.
4346 continue
4347 else
4348 # Passes both tests.
4349 ac_preproc_ok=:
4350 break
4352 rm -f conftest.err conftest.$ac_ext
4354 done
4355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4356 rm -f conftest.err conftest.$ac_ext
4357 if $ac_preproc_ok; then :
4359 else
4360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4362 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4363 See \`config.log' for more details." "$LINENO" 5; }
4366 ac_ext=c
4367 ac_cpp='$CPP $CPPFLAGS'
4368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4374 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4375 if test "${ac_cv_path_GREP+set}" = set; then :
4376 $as_echo_n "(cached) " >&6
4377 else
4378 if test -z "$GREP"; then
4379 ac_path_GREP_found=false
4380 # Loop through the user's path and test for each of PROGNAME-LIST
4381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4384 IFS=$as_save_IFS
4385 test -z "$as_dir" && as_dir=.
4386 for ac_prog in grep ggrep; do
4387 for ac_exec_ext in '' $ac_executable_extensions; do
4388 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4389 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4390 # Check for GNU ac_path_GREP and select it if it is found.
4391 # Check for GNU $ac_path_GREP
4392 case `"$ac_path_GREP" --version 2>&1` in
4393 *GNU*)
4394 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4396 ac_count=0
4397 $as_echo_n 0123456789 >"conftest.in"
4398 while :
4400 cat "conftest.in" "conftest.in" >"conftest.tmp"
4401 mv "conftest.tmp" "conftest.in"
4402 cp "conftest.in" "conftest.nl"
4403 $as_echo 'GREP' >> "conftest.nl"
4404 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4405 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4406 as_fn_arith $ac_count + 1 && ac_count=$as_val
4407 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4408 # Best one so far, save it but keep looking for a better one
4409 ac_cv_path_GREP="$ac_path_GREP"
4410 ac_path_GREP_max=$ac_count
4412 # 10*(2^10) chars as input seems more than enough
4413 test $ac_count -gt 10 && break
4414 done
4415 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4416 esac
4418 $ac_path_GREP_found && break 3
4419 done
4420 done
4421 done
4422 IFS=$as_save_IFS
4423 if test -z "$ac_cv_path_GREP"; then
4424 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4426 else
4427 ac_cv_path_GREP=$GREP
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4432 $as_echo "$ac_cv_path_GREP" >&6; }
4433 GREP="$ac_cv_path_GREP"
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4437 $as_echo_n "checking for egrep... " >&6; }
4438 if test "${ac_cv_path_EGREP+set}" = set; then :
4439 $as_echo_n "(cached) " >&6
4440 else
4441 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4442 then ac_cv_path_EGREP="$GREP -E"
4443 else
4444 if test -z "$EGREP"; then
4445 ac_path_EGREP_found=false
4446 # Loop through the user's path and test for each of PROGNAME-LIST
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
4452 for ac_prog in egrep; do
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4455 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4456 # Check for GNU ac_path_EGREP and select it if it is found.
4457 # Check for GNU $ac_path_EGREP
4458 case `"$ac_path_EGREP" --version 2>&1` in
4459 *GNU*)
4460 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4462 ac_count=0
4463 $as_echo_n 0123456789 >"conftest.in"
4464 while :
4466 cat "conftest.in" "conftest.in" >"conftest.tmp"
4467 mv "conftest.tmp" "conftest.in"
4468 cp "conftest.in" "conftest.nl"
4469 $as_echo 'EGREP' >> "conftest.nl"
4470 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4471 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4472 as_fn_arith $ac_count + 1 && ac_count=$as_val
4473 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4474 # Best one so far, save it but keep looking for a better one
4475 ac_cv_path_EGREP="$ac_path_EGREP"
4476 ac_path_EGREP_max=$ac_count
4478 # 10*(2^10) chars as input seems more than enough
4479 test $ac_count -gt 10 && break
4480 done
4481 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4482 esac
4484 $ac_path_EGREP_found && break 3
4485 done
4486 done
4487 done
4488 IFS=$as_save_IFS
4489 if test -z "$ac_cv_path_EGREP"; then
4490 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4492 else
4493 ac_cv_path_EGREP=$EGREP
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4499 $as_echo "$ac_cv_path_EGREP" >&6; }
4500 EGREP="$ac_cv_path_EGREP"
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4504 $as_echo_n "checking for ANSI C header files... " >&6; }
4505 if test "${ac_cv_header_stdc+set}" = set; then :
4506 $as_echo_n "(cached) " >&6
4507 else
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4510 #include <stdlib.h>
4511 #include <stdarg.h>
4512 #include <string.h>
4513 #include <float.h>
4516 main ()
4520 return 0;
4522 _ACEOF
4523 if ac_fn_c_try_compile "$LINENO"; then :
4524 ac_cv_header_stdc=yes
4525 else
4526 ac_cv_header_stdc=no
4528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4530 if test $ac_cv_header_stdc = yes; then
4531 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h. */
4534 #include <string.h>
4536 _ACEOF
4537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4538 $EGREP "memchr" >/dev/null 2>&1; then :
4540 else
4541 ac_cv_header_stdc=no
4543 rm -f conftest*
4547 if test $ac_cv_header_stdc = yes; then
4548 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550 /* end confdefs.h. */
4551 #include <stdlib.h>
4553 _ACEOF
4554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4555 $EGREP "free" >/dev/null 2>&1; then :
4557 else
4558 ac_cv_header_stdc=no
4560 rm -f conftest*
4564 if test $ac_cv_header_stdc = yes; then
4565 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4566 if test "$cross_compiling" = yes; then :
4568 else
4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570 /* end confdefs.h. */
4571 #include <ctype.h>
4572 #include <stdlib.h>
4573 #if ((' ' & 0x0FF) == 0x020)
4574 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4575 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4576 #else
4577 # define ISLOWER(c) \
4578 (('a' <= (c) && (c) <= 'i') \
4579 || ('j' <= (c) && (c) <= 'r') \
4580 || ('s' <= (c) && (c) <= 'z'))
4581 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4582 #endif
4584 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4586 main ()
4588 int i;
4589 for (i = 0; i < 256; i++)
4590 if (XOR (islower (i), ISLOWER (i))
4591 || toupper (i) != TOUPPER (i))
4592 return 2;
4593 return 0;
4595 _ACEOF
4596 if ac_fn_c_try_run "$LINENO"; then :
4598 else
4599 ac_cv_header_stdc=no
4601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4602 conftest.$ac_objext conftest.beam conftest.$ac_ext
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4608 $as_echo "$ac_cv_header_stdc" >&6; }
4609 if test $ac_cv_header_stdc = yes; then
4611 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4615 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4616 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4617 inttypes.h stdint.h unistd.h
4618 do :
4619 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4620 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4622 eval as_val=\$$as_ac_Header
4623 if test "x$as_val" = x""yes; then :
4624 cat >>confdefs.h <<_ACEOF
4625 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4626 _ACEOF
4630 done
4634 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4635 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4636 MINIX=yes
4637 else
4638 MINIX=
4642 if test "$MINIX" = yes; then
4644 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4647 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4650 $as_echo "#define _MINIX 1" >>confdefs.h
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4656 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4657 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4658 $as_echo_n "(cached) " >&6
4659 else
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4663 # define __EXTENSIONS__ 1
4664 $ac_includes_default
4666 main ()
4670 return 0;
4672 _ACEOF
4673 if ac_fn_c_try_compile "$LINENO"; then :
4674 ac_cv_safe_to_define___extensions__=yes
4675 else
4676 ac_cv_safe_to_define___extensions__=no
4678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4681 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4682 test $ac_cv_safe_to_define___extensions__ = yes &&
4683 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4685 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4687 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4689 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4691 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4695 ### Use -Wno-pointer-sign if the compiler supports it
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4697 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4698 SAVE_CFLAGS="$CFLAGS"
4699 CFLAGS="$CFLAGS -Wno-pointer-sign"
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4704 main ()
4708 return 0;
4710 _ACEOF
4711 if ac_fn_c_try_compile "$LINENO"; then :
4712 has_option=yes
4713 else
4714 has_option=no
4716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4717 if test $has_option = yes; then
4718 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4721 $as_echo "$has_option" >&6; }
4722 CFLAGS="$SAVE_CFLAGS"
4723 unset has_option
4724 unset SAVE_CFLAGS
4726 ### Use -Wdeclaration-after-statement if the compiler supports it
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4728 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4729 SAVE_CFLAGS="$CFLAGS"
4730 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h. */
4735 main ()
4739 return 0;
4741 _ACEOF
4742 if ac_fn_c_try_compile "$LINENO"; then :
4743 has_option=yes
4744 else
4745 has_option=no
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748 if test $has_option = yes; then
4749 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4752 $as_echo "$has_option" >&6; }
4753 CFLAGS="$SAVE_CFLAGS"
4754 unset has_option
4755 unset SAVE_CFLAGS
4757 #### Some other nice autoconf tests.
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4760 $as_echo_n "checking whether ln -s works... " >&6; }
4761 LN_S=$as_ln_s
4762 if test "$LN_S" = "ln -s"; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4764 $as_echo "yes" >&6; }
4765 else
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4767 $as_echo "no, using $LN_S" >&6; }
4770 ac_ext=c
4771 ac_cpp='$CPP $CPPFLAGS'
4772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4776 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4777 # On Suns, sometimes $CPP names a directory.
4778 if test -n "$CPP" && test -d "$CPP"; then
4779 CPP=
4781 if test -z "$CPP"; then
4782 if test "${ac_cv_prog_CPP+set}" = set; then :
4783 $as_echo_n "(cached) " >&6
4784 else
4785 # Double quotes because CPP needs to be expanded
4786 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4788 ac_preproc_ok=false
4789 for ac_c_preproc_warn_flag in '' yes
4791 # Use a header file that comes with gcc, so configuring glibc
4792 # with a fresh cross-compiler works.
4793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4794 # <limits.h> exists even on freestanding compilers.
4795 # On the NeXT, cc -E runs the code through the compiler's parser,
4796 # not just through cpp. "Syntax error" is here to catch this case.
4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798 /* end confdefs.h. */
4799 #ifdef __STDC__
4800 # include <limits.h>
4801 #else
4802 # include <assert.h>
4803 #endif
4804 Syntax error
4805 _ACEOF
4806 if ac_fn_c_try_cpp "$LINENO"; then :
4808 else
4809 # Broken: fails on valid input.
4810 continue
4812 rm -f conftest.err conftest.$ac_ext
4814 # OK, works on sane cases. Now check whether nonexistent headers
4815 # can be detected and how.
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4818 #include <ac_nonexistent.h>
4819 _ACEOF
4820 if ac_fn_c_try_cpp "$LINENO"; then :
4821 # Broken: success on invalid input.
4822 continue
4823 else
4824 # Passes both tests.
4825 ac_preproc_ok=:
4826 break
4828 rm -f conftest.err conftest.$ac_ext
4830 done
4831 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4832 rm -f conftest.err conftest.$ac_ext
4833 if $ac_preproc_ok; then :
4834 break
4837 done
4838 ac_cv_prog_CPP=$CPP
4841 CPP=$ac_cv_prog_CPP
4842 else
4843 ac_cv_prog_CPP=$CPP
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4846 $as_echo "$CPP" >&6; }
4847 ac_preproc_ok=false
4848 for ac_c_preproc_warn_flag in '' yes
4850 # Use a header file that comes with gcc, so configuring glibc
4851 # with a fresh cross-compiler works.
4852 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4853 # <limits.h> exists even on freestanding compilers.
4854 # On the NeXT, cc -E runs the code through the compiler's parser,
4855 # not just through cpp. "Syntax error" is here to catch this case.
4856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4857 /* end confdefs.h. */
4858 #ifdef __STDC__
4859 # include <limits.h>
4860 #else
4861 # include <assert.h>
4862 #endif
4863 Syntax error
4864 _ACEOF
4865 if ac_fn_c_try_cpp "$LINENO"; then :
4867 else
4868 # Broken: fails on valid input.
4869 continue
4871 rm -f conftest.err conftest.$ac_ext
4873 # OK, works on sane cases. Now check whether nonexistent headers
4874 # can be detected and how.
4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876 /* end confdefs.h. */
4877 #include <ac_nonexistent.h>
4878 _ACEOF
4879 if ac_fn_c_try_cpp "$LINENO"; then :
4880 # Broken: success on invalid input.
4881 continue
4882 else
4883 # Passes both tests.
4884 ac_preproc_ok=:
4885 break
4887 rm -f conftest.err conftest.$ac_ext
4889 done
4890 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4891 rm -f conftest.err conftest.$ac_ext
4892 if $ac_preproc_ok; then :
4894 else
4895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4897 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4898 See \`config.log' for more details." "$LINENO" 5; }
4901 ac_ext=c
4902 ac_cpp='$CPP $CPPFLAGS'
4903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4907 # Find a good install program. We prefer a C program (faster),
4908 # so one script is as good as another. But avoid the broken or
4909 # incompatible versions:
4910 # SysV /etc/install, /usr/sbin/install
4911 # SunOS /usr/etc/install
4912 # IRIX /sbin/install
4913 # AIX /bin/install
4914 # AmigaOS /C/install, which installs bootblocks on floppy discs
4915 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4916 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4917 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4918 # OS/2's system install, which has a completely different semantic
4919 # ./install, which can be erroneously created by make from ./install.sh.
4920 # Reject install programs that cannot install multiple files.
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4922 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4923 if test -z "$INSTALL"; then
4924 if test "${ac_cv_path_install+set}" = set; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 for as_dir in $PATH
4930 IFS=$as_save_IFS
4931 test -z "$as_dir" && as_dir=.
4932 # Account for people who put trailing slashes in PATH elements.
4933 case $as_dir/ in #((
4934 ./ | .// | /[cC]/* | \
4935 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4936 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4937 /usr/ucb/* ) ;;
4939 # OSF1 and SCO ODT 3.0 have their own names for install.
4940 # Don't use installbsd from OSF since it installs stuff as root
4941 # by default.
4942 for ac_prog in ginstall scoinst install; do
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4945 if test $ac_prog = install &&
4946 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4947 # AIX install. It has an incompatible calling convention.
4949 elif test $ac_prog = install &&
4950 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4951 # program-specific install script used by HP pwplus--don't use.
4953 else
4954 rm -rf conftest.one conftest.two conftest.dir
4955 echo one > conftest.one
4956 echo two > conftest.two
4957 mkdir conftest.dir
4958 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4959 test -s conftest.one && test -s conftest.two &&
4960 test -s conftest.dir/conftest.one &&
4961 test -s conftest.dir/conftest.two
4962 then
4963 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4964 break 3
4968 done
4969 done
4971 esac
4973 done
4974 IFS=$as_save_IFS
4976 rm -rf conftest.one conftest.two conftest.dir
4979 if test "${ac_cv_path_install+set}" = set; then
4980 INSTALL=$ac_cv_path_install
4981 else
4982 # As a last resort, use the slow shell script. Don't cache a
4983 # value for INSTALL within a source directory, because that will
4984 # break other packages using the cache if that directory is
4985 # removed, or if the value is a relative name.
4986 INSTALL=$ac_install_sh
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4990 $as_echo "$INSTALL" >&6; }
4992 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4993 # It thinks the first close brace ends the variable substitution.
4994 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4996 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4998 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5000 if test "x$RANLIB" = x; then
5001 if test -n "$ac_tool_prefix"; then
5002 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5003 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5007 $as_echo_n "(cached) " >&6
5008 else
5009 if test -n "$RANLIB"; then
5010 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5011 else
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5015 IFS=$as_save_IFS
5016 test -z "$as_dir" && as_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021 break 2
5023 done
5024 done
5025 IFS=$as_save_IFS
5029 RANLIB=$ac_cv_prog_RANLIB
5030 if test -n "$RANLIB"; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5032 $as_echo "$RANLIB" >&6; }
5033 else
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5040 if test -z "$ac_cv_prog_RANLIB"; then
5041 ac_ct_RANLIB=$RANLIB
5042 # Extract the first word of "ranlib", so it can be a program name with args.
5043 set dummy ranlib; ac_word=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 if test -n "$ac_ct_RANLIB"; then
5050 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5051 else
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_prog_ac_ct_RANLIB="ranlib"
5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 break 2
5063 done
5064 done
5065 IFS=$as_save_IFS
5069 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5070 if test -n "$ac_ct_RANLIB"; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5072 $as_echo "$ac_ct_RANLIB" >&6; }
5073 else
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5078 if test "x$ac_ct_RANLIB" = x; then
5079 RANLIB=":"
5080 else
5081 case $cross_compiling:$ac_tool_warned in
5082 yes:)
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5085 ac_tool_warned=yes ;;
5086 esac
5087 RANLIB=$ac_ct_RANLIB
5089 else
5090 RANLIB="$ac_cv_prog_RANLIB"
5094 # Extract the first word of "install-info", so it can be a program name with args.
5095 set dummy install-info; ac_word=$2
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097 $as_echo_n "checking for $ac_word... " >&6; }
5098 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 case $INSTALL_INFO in
5102 [\\/]* | ?:[\\/]*)
5103 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH
5109 IFS=$as_save_IFS
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5113 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 break 2
5117 done
5118 done
5119 IFS=$as_save_IFS
5122 esac
5124 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5125 if test -n "$INSTALL_INFO"; then
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5127 $as_echo "$INSTALL_INFO" >&6; }
5128 else
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130 $as_echo "no" >&6; }
5134 # Extract the first word of "install-info", so it can be a program name with args.
5135 set dummy install-info; ac_word=$2
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5137 $as_echo_n "checking for $ac_word... " >&6; }
5138 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5139 $as_echo_n "(cached) " >&6
5140 else
5141 case $INSTALL_INFO in
5142 [\\/]* | ?:[\\/]*)
5143 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in /usr/sbin
5149 IFS=$as_save_IFS
5150 test -z "$as_dir" && as_dir=.
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5153 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5155 break 2
5157 done
5158 done
5159 IFS=$as_save_IFS
5162 esac
5164 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5165 if test -n "$INSTALL_INFO"; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5167 $as_echo "$INSTALL_INFO" >&6; }
5168 else
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 $as_echo "no" >&6; }
5174 # Extract the first word of "install-info", so it can be a program name with args.
5175 set dummy install-info; ac_word=$2
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177 $as_echo_n "checking for $ac_word... " >&6; }
5178 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5179 $as_echo_n "(cached) " >&6
5180 else
5181 case $INSTALL_INFO in
5182 [\\/]* | ?:[\\/]*)
5183 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in /sbin
5189 IFS=$as_save_IFS
5190 test -z "$as_dir" && as_dir=.
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 break 2
5197 done
5198 done
5199 IFS=$as_save_IFS
5201 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5203 esac
5205 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5206 if test -n "$INSTALL_INFO"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5208 $as_echo "$INSTALL_INFO" >&6; }
5209 else
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5215 # Extract the first word of "gzip", so it can be a program name with args.
5216 set dummy gzip; ac_word=$2
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218 $as_echo_n "checking for $ac_word... " >&6; }
5219 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5220 $as_echo_n "(cached) " >&6
5221 else
5222 case $GZIP_PROG in
5223 [\\/]* | ?:[\\/]*)
5224 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH
5230 IFS=$as_save_IFS
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5234 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 break 2
5238 done
5239 done
5240 IFS=$as_save_IFS
5243 esac
5245 GZIP_PROG=$ac_cv_path_GZIP_PROG
5246 if test -n "$GZIP_PROG"; then
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5248 $as_echo "$GZIP_PROG" >&6; }
5249 else
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 $as_echo "no" >&6; }
5257 ## Need makeinfo >= 4.6 (?) to build the manuals.
5258 # Extract the first word of "makeinfo", so it can be a program name with args.
5259 set dummy makeinfo; ac_word=$2
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5261 $as_echo_n "checking for $ac_word... " >&6; }
5262 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5263 $as_echo_n "(cached) " >&6
5264 else
5265 case $MAKEINFO in
5266 [\\/]* | ?:[\\/]*)
5267 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5277 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5279 break 2
5281 done
5282 done
5283 IFS=$as_save_IFS
5285 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5287 esac
5289 MAKEINFO=$ac_cv_path_MAKEINFO
5290 if test -n "$MAKEINFO"; then
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5292 $as_echo "$MAKEINFO" >&6; }
5293 else
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295 $as_echo "no" >&6; }
5299 if test "$MAKEINFO" != "no" && \
5300 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x; then
5301 MAKEINFO=no
5304 ## Makeinfo is unusual. For a released Emacs, the manuals are
5305 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5306 ## therefore in the category of "special tools" not normally required, which
5307 ## configure does not have to check for (eg autoconf itself).
5308 ## In a Bazaar checkout on the other hand, the manuals are not included.
5309 ## So makeinfo is a requirement to build from Bazaar, and configure
5310 ## should test for it as it does for any other build requirement.
5311 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5312 ## with pre-built manuals, from a Bazaar checkout.
5313 if test "$MAKEINFO" = "no"; then
5314 if test "x${with_makeinfo}" = "xno"; then
5315 MAKEINFO=off
5316 elif ! test -e $srcdir/info/emacs; then
5317 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
5318 source tree does not seem to have pre-built manuals in the \`info' directory.
5319 Either install a suitable version of makeinfo, or re-run configure
5320 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5325 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5326 then
5327 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5330 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5331 then
5332 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5336 late_LDFLAGS=$LDFLAGS
5337 if test "$GCC" = yes; then
5338 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5339 else
5340 LDFLAGS="$LDFLAGS -znocombreloc"
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5344 $as_echo_n "checking for -znocombreloc... " >&6; }
5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h. */
5347 main(){return 0;}
5348 _ACEOF
5349 if ac_fn_c_try_link "$LINENO"; then :
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5351 $as_echo "yes" >&6; }
5352 else
5353 LDFLAGS=$late_LDFLAGS
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355 $as_echo "no" >&6; }
5357 rm -f core conftest.err conftest.$ac_objext \
5358 conftest$ac_exeext conftest.$ac_ext
5360 #### Extract some information from the operating system and machine files.
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine- and system-dependent files to find out
5363 - which libraries the lib-src programs will want, and
5364 - whether the GNU malloc routines are usable..." >&5
5365 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5366 - which libraries the lib-src programs will want, and
5367 - whether the GNU malloc routines are usable..." >&6;}
5369 ### First figure out CFLAGS (which we use for running the compiler here)
5370 ### and REAL_CFLAGS (which we use for real compilation).
5371 ### The two are the same except on a few systems, where they are made
5372 ### different to work around various lossages. For example,
5373 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5374 ### as implying static linking.
5376 ### If the CFLAGS env var is specified, we use that value
5377 ### instead of the default.
5379 ### It's not important that this name contain the PID; you can't run
5380 ### two configures in the same directory and have anything work
5381 ### anyway.
5382 tempcname="conftest.c"
5384 echo '
5385 #include "'${srcdir}'/src/'${opsysfile}'"
5386 #include "'${srcdir}'/src/'${machfile}'"
5387 #ifndef LIBS_MACHINE
5388 #define LIBS_MACHINE
5389 #endif
5390 #ifndef LIBS_SYSTEM
5391 #define LIBS_SYSTEM
5392 #endif
5393 #ifndef C_SWITCH_SYSTEM
5394 #define C_SWITCH_SYSTEM
5395 #endif
5396 #ifndef C_SWITCH_MACHINE
5397 #define C_SWITCH_MACHINE
5398 #endif
5399 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5400 configure___ c_switch_system=C_SWITCH_SYSTEM
5401 configure___ c_switch_machine=C_SWITCH_MACHINE
5403 #ifndef LIB_X11_LIB
5404 #define LIB_X11_LIB -lX11
5405 #endif
5407 #ifndef LIBX11_SYSTEM
5408 #define LIBX11_SYSTEM
5409 #endif
5410 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5412 #ifdef UNEXEC
5413 configure___ unexec=UNEXEC
5414 #else
5415 configure___ unexec=unexec.o
5416 #endif
5418 #ifdef SYSTEM_MALLOC
5419 configure___ system_malloc=yes
5420 #else
5421 configure___ system_malloc=no
5422 #endif
5424 #ifdef USE_MMAP_FOR_BUFFERS
5425 configure___ use_mmap_for_buffers=yes
5426 #else
5427 configure___ use_mmap_for_buffers=no
5428 #endif
5430 #ifndef C_DEBUG_SWITCH
5431 #define C_DEBUG_SWITCH -g
5432 #endif
5434 #ifndef C_OPTIMIZE_SWITCH
5435 #ifdef __GNUC__
5436 #define C_OPTIMIZE_SWITCH -O2
5437 #else
5438 #define C_OPTIMIZE_SWITCH -O
5439 #endif
5440 #endif
5442 #ifndef C_WARNINGS_SWITCH
5443 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5444 #endif
5446 #ifndef LD_SWITCH_MACHINE
5447 #define LD_SWITCH_MACHINE
5448 #endif
5450 #ifndef LD_SWITCH_SYSTEM
5451 #define LD_SWITCH_SYSTEM
5452 #endif
5454 #ifndef LD_SWITCH_X_SITE_AUX
5455 #define LD_SWITCH_X_SITE_AUX
5456 #endif
5458 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5459 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5461 #ifdef THIS_IS_CONFIGURE
5463 /* Get the CFLAGS for tests in configure. */
5464 #ifdef __GNUC__
5465 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5466 #else
5467 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5468 #endif
5470 #else /* not THIS_IS_CONFIGURE */
5472 /* Get the CFLAGS for real compilation. */
5473 #ifdef __GNUC__
5474 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5475 #else
5476 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5477 #endif
5479 #endif /* not THIS_IS_CONFIGURE */
5480 ' > ${tempcname}
5482 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5484 # The value of CPP is a quoted variable reference, so we need to do this
5485 # to get its actual value...
5486 CPP=`eval "echo $CPP"`
5487 eval `${CPP} -Isrc ${tempcname} \
5488 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5489 if test "x$SPECIFIED_CFLAGS" = x; then
5490 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5491 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5492 else
5493 REAL_CFLAGS="$CFLAGS"
5495 rm ${tempcname}
5497 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5499 ### Make sure subsequent tests use flags consistent with the build flags.
5501 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5502 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5503 else
5504 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5509 # Check whether --enable-largefile was given.
5510 if test "${enable_largefile+set}" = set; then :
5511 enableval=$enable_largefile;
5514 if test "$enable_largefile" != no; then
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5517 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5518 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5519 $as_echo_n "(cached) " >&6
5520 else
5521 ac_cv_sys_largefile_CC=no
5522 if test "$GCC" != yes; then
5523 ac_save_CC=$CC
5524 while :; do
5525 # IRIX 6.2 and later do not support large files by default,
5526 # so use the C compiler's -n32 option if that helps.
5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5529 #include <sys/types.h>
5530 /* Check that off_t can represent 2**63 - 1 correctly.
5531 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5532 since some C++ compilers masquerading as C compilers
5533 incorrectly reject 9223372036854775807. */
5534 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5535 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5536 && LARGE_OFF_T % 2147483647 == 1)
5537 ? 1 : -1];
5539 main ()
5543 return 0;
5545 _ACEOF
5546 if ac_fn_c_try_compile "$LINENO"; then :
5547 break
5549 rm -f core conftest.err conftest.$ac_objext
5550 CC="$CC -n32"
5551 if ac_fn_c_try_compile "$LINENO"; then :
5552 ac_cv_sys_largefile_CC=' -n32'; break
5554 rm -f core conftest.err conftest.$ac_objext
5555 break
5556 done
5557 CC=$ac_save_CC
5558 rm -f conftest.$ac_ext
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5562 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5563 if test "$ac_cv_sys_largefile_CC" != no; then
5564 CC=$CC$ac_cv_sys_largefile_CC
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5568 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5569 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5570 $as_echo_n "(cached) " >&6
5571 else
5572 while :; do
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5575 #include <sys/types.h>
5576 /* Check that off_t can represent 2**63 - 1 correctly.
5577 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5578 since some C++ compilers masquerading as C compilers
5579 incorrectly reject 9223372036854775807. */
5580 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5581 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5582 && LARGE_OFF_T % 2147483647 == 1)
5583 ? 1 : -1];
5585 main ()
5589 return 0;
5591 _ACEOF
5592 if ac_fn_c_try_compile "$LINENO"; then :
5593 ac_cv_sys_file_offset_bits=no; break
5595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597 /* end confdefs.h. */
5598 #define _FILE_OFFSET_BITS 64
5599 #include <sys/types.h>
5600 /* Check that off_t can represent 2**63 - 1 correctly.
5601 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5602 since some C++ compilers masquerading as C compilers
5603 incorrectly reject 9223372036854775807. */
5604 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5605 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5606 && LARGE_OFF_T % 2147483647 == 1)
5607 ? 1 : -1];
5609 main ()
5613 return 0;
5615 _ACEOF
5616 if ac_fn_c_try_compile "$LINENO"; then :
5617 ac_cv_sys_file_offset_bits=64; break
5619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5620 ac_cv_sys_file_offset_bits=unknown
5621 break
5622 done
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5625 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5626 case $ac_cv_sys_file_offset_bits in #(
5627 no | unknown) ;;
5629 cat >>confdefs.h <<_ACEOF
5630 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5631 _ACEOF
5633 esac
5634 rm -rf conftest*
5635 if test $ac_cv_sys_file_offset_bits = unknown; then
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5637 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5638 if test "${ac_cv_sys_large_files+set}" = set; then :
5639 $as_echo_n "(cached) " >&6
5640 else
5641 while :; do
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644 #include <sys/types.h>
5645 /* Check that off_t can represent 2**63 - 1 correctly.
5646 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5647 since some C++ compilers masquerading as C compilers
5648 incorrectly reject 9223372036854775807. */
5649 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5650 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5651 && LARGE_OFF_T % 2147483647 == 1)
5652 ? 1 : -1];
5654 main ()
5658 return 0;
5660 _ACEOF
5661 if ac_fn_c_try_compile "$LINENO"; then :
5662 ac_cv_sys_large_files=no; break
5664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667 #define _LARGE_FILES 1
5668 #include <sys/types.h>
5669 /* Check that off_t can represent 2**63 - 1 correctly.
5670 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5671 since some C++ compilers masquerading as C compilers
5672 incorrectly reject 9223372036854775807. */
5673 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5674 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5675 && LARGE_OFF_T % 2147483647 == 1)
5676 ? 1 : -1];
5678 main ()
5682 return 0;
5684 _ACEOF
5685 if ac_fn_c_try_compile "$LINENO"; then :
5686 ac_cv_sys_large_files=1; break
5688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689 ac_cv_sys_large_files=unknown
5690 break
5691 done
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5694 $as_echo "$ac_cv_sys_large_files" >&6; }
5695 case $ac_cv_sys_large_files in #(
5696 no | unknown) ;;
5698 cat >>confdefs.h <<_ACEOF
5699 #define _LARGE_FILES $ac_cv_sys_large_files
5700 _ACEOF
5702 esac
5703 rm -rf conftest*
5708 ## Note: at present CRT_DIR is only used for amdx86-64 and ibms390x.
5709 ## Other machine types hard-code the location in src/[ms]/*.h.
5710 case "${canonical}" in
5711 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5712 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5713 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5714 ## For anything else (eg /usr/lib32), it is up the user to specify
5715 ## the location (bug#5655).
5716 ## Test for crtn.o, not just the directory, because sometimes the
5717 ## directory exists but does not have the relevant files (bug#1287).
5718 ## If user specified a crt-dir, use that unconditionally.
5719 if test "X$CRT_DIR" = "X"; then
5720 CRT_DIR=/usr/lib
5721 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
5724 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5725 as_fn_error "crt*.o not found. Use --with-crt-dir to specify the location." "$LINENO" 5
5727 esac
5728 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
5734 if test "${with_sound}" != "no"; then
5735 # Sound support for GNU/Linux and the free BSDs.
5736 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5737 do :
5738 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5739 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5740 eval as_val=\$$as_ac_Header
5741 if test "x$as_val" = x""yes; then :
5742 cat >>confdefs.h <<_ACEOF
5743 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5744 _ACEOF
5748 done
5750 # Emulation library used on NetBSD.
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5752 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5753 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5754 $as_echo_n "(cached) " >&6
5755 else
5756 ac_check_lib_save_LIBS=$LIBS
5757 LIBS="-lossaudio $LIBS"
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5761 /* Override any GCC internal prototype to avoid an error.
5762 Use char because int might match the return type of a GCC
5763 builtin and then its argument prototype would still apply. */
5764 #ifdef __cplusplus
5765 extern "C"
5766 #endif
5767 char _oss_ioctl ();
5769 main ()
5771 return _oss_ioctl ();
5773 return 0;
5775 _ACEOF
5776 if ac_fn_c_try_link "$LINENO"; then :
5777 ac_cv_lib_ossaudio__oss_ioctl=yes
5778 else
5779 ac_cv_lib_ossaudio__oss_ioctl=no
5781 rm -f core conftest.err conftest.$ac_objext \
5782 conftest$ac_exeext conftest.$ac_ext
5783 LIBS=$ac_check_lib_save_LIBS
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5786 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5787 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5788 LIBSOUND=-lossaudio
5789 else
5790 LIBSOUND=
5795 ALSA_REQUIRED=1.0.0
5796 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
5798 succeeded=no
5800 # Extract the first word of "pkg-config", so it can be a program name with args.
5801 set dummy pkg-config; ac_word=$2
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803 $as_echo_n "checking for $ac_word... " >&6; }
5804 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5805 $as_echo_n "(cached) " >&6
5806 else
5807 case $PKG_CONFIG in
5808 [\\/]* | ?:[\\/]*)
5809 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5815 IFS=$as_save_IFS
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5819 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 break 2
5823 done
5824 done
5825 IFS=$as_save_IFS
5827 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5829 esac
5831 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5832 if test -n "$PKG_CONFIG"; then
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5834 $as_echo "$PKG_CONFIG" >&6; }
5835 else
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837 $as_echo "no" >&6; }
5842 if test "$PKG_CONFIG" = "no" ; then
5843 HAVE_ALSA=no
5844 else
5845 PKG_CONFIG_MIN_VERSION=0.9.0
5846 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
5848 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
5850 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5852 $as_echo "yes" >&6; }
5853 succeeded=yes
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
5856 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
5857 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
5859 $as_echo "$ALSA_CFLAGS" >&6; }
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
5862 $as_echo_n "checking ALSA_LIBS... " >&6; }
5863 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
5865 $as_echo "$ALSA_LIBS" >&6; }
5866 else
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868 $as_echo "no" >&6; }
5869 ALSA_CFLAGS=""
5870 ALSA_LIBS=""
5871 ## If we have a custom action on failure, don't print errors, but
5872 ## do set a variable so people can do so.
5873 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5879 else
5880 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5881 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5885 if test $succeeded = yes; then
5886 HAVE_ALSA=yes
5887 else
5888 HAVE_ALSA=no
5891 if test $HAVE_ALSA = yes; then
5892 SAVE_CFLAGS="$CFLAGS"
5893 SAVE_LDFLAGS="$LDFLAGS"
5894 CFLAGS="$ALSA_CFLAGS $CFLAGS"
5895 LDFLAGS="$ALSA_LIBS $LDFLAGS"
5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897 /* end confdefs.h. */
5898 #include <asoundlib.h>
5900 main ()
5902 snd_lib_error_set_handler (0);
5904 return 0;
5906 _ACEOF
5907 if ac_fn_c_try_compile "$LINENO"; then :
5908 emacs_alsa_normal=yes
5909 else
5910 emacs_alsa_normal=no
5912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5913 if test "$emacs_alsa_normal" != yes; then
5914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h. */
5916 #include <alsa/asoundlib.h>
5918 main ()
5920 snd_lib_error_set_handler (0);
5922 return 0;
5924 _ACEOF
5925 if ac_fn_c_try_compile "$LINENO"; then :
5926 emacs_alsa_subdir=yes
5927 else
5928 emacs_alsa_subdir=no
5930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5931 if test "$emacs_alsa_subdir" != yes; then
5932 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
5934 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
5937 CFLAGS="$SAVE_CFLAGS"
5938 LDFLAGS="$SAVE_LDFLAGS"
5939 LIBSOUND="$LIBSOUND $ALSA_LIBS"
5940 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
5942 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
5948 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5949 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5950 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5951 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5952 sys/utsname.h pwd.h utmp.h
5953 do :
5954 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5955 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5956 eval as_val=\$$as_ac_Header
5957 if test "x$as_val" = x""yes; then :
5958 cat >>confdefs.h <<_ACEOF
5959 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5960 _ACEOF
5964 done
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
5968 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5970 /* end confdefs.h. */
5971 #include <sys/personality.h>
5973 main ()
5975 personality (PER_LINUX32)
5977 return 0;
5979 _ACEOF
5980 if ac_fn_c_try_compile "$LINENO"; then :
5981 emacs_cv_personality_linux32=yes
5982 else
5983 emacs_cv_personality_linux32=no
5985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
5987 $as_echo "$emacs_cv_personality_linux32" >&6; }
5989 if test $emacs_cv_personality_linux32 = yes; then
5991 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
5995 for ac_header in term.h
5996 do :
5997 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
5998 if test "x$ac_cv_header_term_h" = x""yes; then :
5999 cat >>confdefs.h <<_ACEOF
6000 #define HAVE_TERM_H 1
6001 _ACEOF
6005 done
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6008 $as_echo_n "checking for ANSI C header files... " >&6; }
6009 if test "${ac_cv_header_stdc+set}" = set; then :
6010 $as_echo_n "(cached) " >&6
6011 else
6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h. */
6014 #include <stdlib.h>
6015 #include <stdarg.h>
6016 #include <string.h>
6017 #include <float.h>
6020 main ()
6024 return 0;
6026 _ACEOF
6027 if ac_fn_c_try_compile "$LINENO"; then :
6028 ac_cv_header_stdc=yes
6029 else
6030 ac_cv_header_stdc=no
6032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034 if test $ac_cv_header_stdc = yes; then
6035 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6038 #include <string.h>
6040 _ACEOF
6041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6042 $EGREP "memchr" >/dev/null 2>&1; then :
6044 else
6045 ac_cv_header_stdc=no
6047 rm -f conftest*
6051 if test $ac_cv_header_stdc = yes; then
6052 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6055 #include <stdlib.h>
6057 _ACEOF
6058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6059 $EGREP "free" >/dev/null 2>&1; then :
6061 else
6062 ac_cv_header_stdc=no
6064 rm -f conftest*
6068 if test $ac_cv_header_stdc = yes; then
6069 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6070 if test "$cross_compiling" = yes; then :
6072 else
6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6075 #include <ctype.h>
6076 #include <stdlib.h>
6077 #if ((' ' & 0x0FF) == 0x020)
6078 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6079 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6080 #else
6081 # define ISLOWER(c) \
6082 (('a' <= (c) && (c) <= 'i') \
6083 || ('j' <= (c) && (c) <= 'r') \
6084 || ('s' <= (c) && (c) <= 'z'))
6085 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6086 #endif
6088 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6090 main ()
6092 int i;
6093 for (i = 0; i < 256; i++)
6094 if (XOR (islower (i), ISLOWER (i))
6095 || toupper (i) != TOUPPER (i))
6096 return 2;
6097 return 0;
6099 _ACEOF
6100 if ac_fn_c_try_run "$LINENO"; then :
6102 else
6103 ac_cv_header_stdc=no
6105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6106 conftest.$ac_objext conftest.beam conftest.$ac_ext
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6112 $as_echo "$ac_cv_header_stdc" >&6; }
6113 if test $ac_cv_header_stdc = yes; then
6115 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6120 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6121 if test "${ac_cv_header_time+set}" = set; then :
6122 $as_echo_n "(cached) " >&6
6123 else
6124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125 /* end confdefs.h. */
6126 #include <sys/types.h>
6127 #include <sys/time.h>
6128 #include <time.h>
6131 main ()
6133 if ((struct tm *) 0)
6134 return 0;
6136 return 0;
6138 _ACEOF
6139 if ac_fn_c_try_compile "$LINENO"; then :
6140 ac_cv_header_time=yes
6141 else
6142 ac_cv_header_time=no
6144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6147 $as_echo "$ac_cv_header_time" >&6; }
6148 if test $ac_cv_header_time = yes; then
6150 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6154 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6155 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
6156 ac_have_decl=1
6157 else
6158 ac_have_decl=0
6161 cat >>confdefs.h <<_ACEOF
6162 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6163 _ACEOF
6165 if test $ac_cv_have_decl_sys_siglist != yes; then
6166 # For Tru64, at least:
6167 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6168 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
6169 ac_have_decl=1
6170 else
6171 ac_have_decl=0
6174 cat >>confdefs.h <<_ACEOF
6175 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6176 _ACEOF
6178 if test $ac_cv_have_decl___sys_siglist = yes; then
6180 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6185 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6186 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6187 $as_echo_n "(cached) " >&6
6188 else
6189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190 /* end confdefs.h. */
6191 #include <sys/types.h>
6192 #include <sys/wait.h>
6193 #ifndef WEXITSTATUS
6194 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6195 #endif
6196 #ifndef WIFEXITED
6197 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6198 #endif
6201 main ()
6203 int s;
6204 wait (&s);
6205 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6207 return 0;
6209 _ACEOF
6210 if ac_fn_c_try_compile "$LINENO"; then :
6211 ac_cv_header_sys_wait_h=yes
6212 else
6213 ac_cv_header_sys_wait_h=no
6215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6218 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6219 if test $ac_cv_header_sys_wait_h = yes; then
6221 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6227 $as_echo_n "checking for struct utimbuf... " >&6; }
6228 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6229 $as_echo_n "(cached) " >&6
6230 else
6231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232 /* end confdefs.h. */
6233 #ifdef TIME_WITH_SYS_TIME
6234 #include <sys/time.h>
6235 #include <time.h>
6236 #else
6237 #ifdef HAVE_SYS_TIME_H
6238 #include <sys/time.h>
6239 #else
6240 #include <time.h>
6241 #endif
6242 #endif
6243 #ifdef HAVE_UTIME_H
6244 #include <utime.h>
6245 #endif
6247 main ()
6249 static struct utimbuf x; x.actime = x.modtime;
6251 return 0;
6253 _ACEOF
6254 if ac_fn_c_try_compile "$LINENO"; then :
6255 emacs_cv_struct_utimbuf=yes
6256 else
6257 emacs_cv_struct_utimbuf=no
6259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6262 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6263 if test $emacs_cv_struct_utimbuf = yes; then
6265 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6270 $as_echo_n "checking return type of signal handlers... " >&6; }
6271 if test "${ac_cv_type_signal+set}" = set; then :
6272 $as_echo_n "(cached) " >&6
6273 else
6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h. */
6276 #include <sys/types.h>
6277 #include <signal.h>
6280 main ()
6282 return *(signal (0, 0)) (0) == 1;
6284 return 0;
6286 _ACEOF
6287 if ac_fn_c_try_compile "$LINENO"; then :
6288 ac_cv_type_signal=int
6289 else
6290 ac_cv_type_signal=void
6292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6295 $as_echo "$ac_cv_type_signal" >&6; }
6297 cat >>confdefs.h <<_ACEOF
6298 #define RETSIGTYPE $ac_cv_type_signal
6299 _ACEOF
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6304 $as_echo_n "checking for speed_t... " >&6; }
6305 if test "${emacs_cv_speed_t+set}" = set; then :
6306 $as_echo_n "(cached) " >&6
6307 else
6308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309 /* end confdefs.h. */
6310 #include <termios.h>
6312 main ()
6314 speed_t x = 1;
6316 return 0;
6318 _ACEOF
6319 if ac_fn_c_try_compile "$LINENO"; then :
6320 emacs_cv_speed_t=yes
6321 else
6322 emacs_cv_speed_t=no
6324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6327 $as_echo "$emacs_cv_speed_t" >&6; }
6328 if test $emacs_cv_speed_t = yes; then
6330 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6335 $as_echo_n "checking for struct timeval... " >&6; }
6336 if test "${emacs_cv_struct_timeval+set}" = set; then :
6337 $as_echo_n "(cached) " >&6
6338 else
6339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6340 /* end confdefs.h. */
6341 #ifdef TIME_WITH_SYS_TIME
6342 #include <sys/time.h>
6343 #include <time.h>
6344 #else
6345 #ifdef HAVE_SYS_TIME_H
6346 #include <sys/time.h>
6347 #else
6348 #include <time.h>
6349 #endif
6350 #endif
6352 main ()
6354 static struct timeval x; x.tv_sec = x.tv_usec;
6356 return 0;
6358 _ACEOF
6359 if ac_fn_c_try_compile "$LINENO"; then :
6360 emacs_cv_struct_timeval=yes
6361 else
6362 emacs_cv_struct_timeval=no
6364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6367 $as_echo "$emacs_cv_struct_timeval" >&6; }
6368 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6369 if test $emacs_cv_struct_timeval = yes; then
6371 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6376 $as_echo_n "checking for struct exception... " >&6; }
6377 if test "${emacs_cv_struct_exception+set}" = set; then :
6378 $as_echo_n "(cached) " >&6
6379 else
6380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h. */
6382 #include <math.h>
6384 main ()
6386 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6388 return 0;
6390 _ACEOF
6391 if ac_fn_c_try_compile "$LINENO"; then :
6392 emacs_cv_struct_exception=yes
6393 else
6394 emacs_cv_struct_exception=no
6396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6399 $as_echo "$emacs_cv_struct_exception" >&6; }
6400 HAVE_EXCEPTION=$emacs_cv_struct_exception
6401 if test $emacs_cv_struct_exception != yes; then
6403 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6407 for ac_header in sys/socket.h
6408 do :
6409 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6410 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
6411 cat >>confdefs.h <<_ACEOF
6412 #define HAVE_SYS_SOCKET_H 1
6413 _ACEOF
6417 done
6419 for ac_header in net/if.h
6420 do :
6421 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6422 #if HAVE_SYS_SOCKET_H
6423 #include <sys/socket.h>
6424 #endif
6426 if test "x$ac_cv_header_net_if_h" = x""yes; then :
6427 cat >>confdefs.h <<_ACEOF
6428 #define HAVE_NET_IF_H 1
6429 _ACEOF
6433 done
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6437 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6438 if test "${ac_cv_struct_tm+set}" = set; then :
6439 $as_echo_n "(cached) " >&6
6440 else
6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6443 #include <sys/types.h>
6444 #include <time.h>
6447 main ()
6449 struct tm tm;
6450 int *p = &tm.tm_sec;
6451 return !p;
6453 return 0;
6455 _ACEOF
6456 if ac_fn_c_try_compile "$LINENO"; then :
6457 ac_cv_struct_tm=time.h
6458 else
6459 ac_cv_struct_tm=sys/time.h
6461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6464 $as_echo "$ac_cv_struct_tm" >&6; }
6465 if test $ac_cv_struct_tm = sys/time.h; then
6467 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6471 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6472 #include <$ac_cv_struct_tm>
6475 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6477 cat >>confdefs.h <<_ACEOF
6478 #define HAVE_STRUCT_TM_TM_ZONE 1
6479 _ACEOF
6484 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6486 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6488 else
6489 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6491 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6492 ac_have_decl=1
6493 else
6494 ac_have_decl=0
6497 cat >>confdefs.h <<_ACEOF
6498 #define HAVE_DECL_TZNAME $ac_have_decl
6499 _ACEOF
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6502 $as_echo_n "checking for tzname... " >&6; }
6503 if test "${ac_cv_var_tzname+set}" = set; then :
6504 $as_echo_n "(cached) " >&6
6505 else
6506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h. */
6508 #include <time.h>
6509 #if !HAVE_DECL_TZNAME
6510 extern char *tzname[];
6511 #endif
6514 main ()
6516 return tzname[0][0];
6518 return 0;
6520 _ACEOF
6521 if ac_fn_c_try_link "$LINENO"; then :
6522 ac_cv_var_tzname=yes
6523 else
6524 ac_cv_var_tzname=no
6526 rm -f core conftest.err conftest.$ac_objext \
6527 conftest$ac_exeext conftest.$ac_ext
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6530 $as_echo "$ac_cv_var_tzname" >&6; }
6531 if test $ac_cv_var_tzname = yes; then
6533 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6538 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6540 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6542 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6546 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6547 #if HAVE_SYS_SOCKET_H
6548 #include <sys/socket.h>
6549 #endif
6550 #if HAVE_NET_IF_H
6551 #include <net/if.h>
6552 #endif
6554 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
6556 cat >>confdefs.h <<_ACEOF
6557 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6558 _ACEOF
6562 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6563 #if HAVE_SYS_SOCKET_H
6564 #include <sys/socket.h>
6565 #endif
6566 #if HAVE_NET_IF_H
6567 #include <net/if.h>
6568 #endif
6570 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
6572 cat >>confdefs.h <<_ACEOF
6573 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6574 _ACEOF
6578 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6579 #if HAVE_SYS_SOCKET_H
6580 #include <sys/socket.h>
6581 #endif
6582 #if HAVE_NET_IF_H
6583 #include <net/if.h>
6584 #endif
6586 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
6588 cat >>confdefs.h <<_ACEOF
6589 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6590 _ACEOF
6594 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6595 #if HAVE_SYS_SOCKET_H
6596 #include <sys/socket.h>
6597 #endif
6598 #if HAVE_NET_IF_H
6599 #include <net/if.h>
6600 #endif
6602 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
6604 cat >>confdefs.h <<_ACEOF
6605 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6606 _ACEOF
6610 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6611 #if HAVE_SYS_SOCKET_H
6612 #include <sys/socket.h>
6613 #endif
6614 #if HAVE_NET_IF_H
6615 #include <net/if.h>
6616 #endif
6618 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
6620 cat >>confdefs.h <<_ACEOF
6621 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6622 _ACEOF
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6630 $as_echo_n "checking for function prototypes... " >&6; }
6631 if test "$ac_cv_prog_cc_c89" != no; then
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6633 $as_echo "yes" >&6; }
6635 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6638 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6640 else
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6646 $as_echo_n "checking for working volatile... " >&6; }
6647 if test "${ac_cv_c_volatile+set}" = set; then :
6648 $as_echo_n "(cached) " >&6
6649 else
6650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6651 /* end confdefs.h. */
6654 main ()
6657 volatile int x;
6658 int * volatile y = (int *) 0;
6659 return !x && !y;
6661 return 0;
6663 _ACEOF
6664 if ac_fn_c_try_compile "$LINENO"; then :
6665 ac_cv_c_volatile=yes
6666 else
6667 ac_cv_c_volatile=no
6669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6672 $as_echo "$ac_cv_c_volatile" >&6; }
6673 if test $ac_cv_c_volatile = no; then
6675 $as_echo "#define volatile /**/" >>confdefs.h
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6680 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6681 if test "${ac_cv_c_const+set}" = set; then :
6682 $as_echo_n "(cached) " >&6
6683 else
6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685 /* end confdefs.h. */
6688 main ()
6690 /* FIXME: Include the comments suggested by Paul. */
6691 #ifndef __cplusplus
6692 /* Ultrix mips cc rejects this. */
6693 typedef int charset[2];
6694 const charset cs;
6695 /* SunOS 4.1.1 cc rejects this. */
6696 char const *const *pcpcc;
6697 char **ppc;
6698 /* NEC SVR4.0.2 mips cc rejects this. */
6699 struct point {int x, y;};
6700 static struct point const zero = {0,0};
6701 /* AIX XL C 1.02.0.0 rejects this.
6702 It does not let you subtract one const X* pointer from another in
6703 an arm of an if-expression whose if-part is not a constant
6704 expression */
6705 const char *g = "string";
6706 pcpcc = &g + (g ? g-g : 0);
6707 /* HPUX 7.0 cc rejects these. */
6708 ++pcpcc;
6709 ppc = (char**) pcpcc;
6710 pcpcc = (char const *const *) ppc;
6711 { /* SCO 3.2v4 cc rejects this. */
6712 char *t;
6713 char const *s = 0 ? (char *) 0 : (char const *) 0;
6715 *t++ = 0;
6716 if (s) return 0;
6718 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6719 int x[] = {25, 17};
6720 const int *foo = &x[0];
6721 ++foo;
6723 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6724 typedef const int *iptr;
6725 iptr p = 0;
6726 ++p;
6728 { /* AIX XL C 1.02.0.0 rejects this saying
6729 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6730 struct s { int j; const int *ap[3]; };
6731 struct s *b; b->j = 5;
6733 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6734 const int foo = 10;
6735 if (!foo) return 0;
6737 return !cs[0] && !zero.x;
6738 #endif
6741 return 0;
6743 _ACEOF
6744 if ac_fn_c_try_compile "$LINENO"; then :
6745 ac_cv_c_const=yes
6746 else
6747 ac_cv_c_const=no
6749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6752 $as_echo "$ac_cv_c_const" >&6; }
6753 if test $ac_cv_c_const = no; then
6755 $as_echo "#define const /**/" >>confdefs.h
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
6760 $as_echo_n "checking for void * support... " >&6; }
6761 if test "${emacs_cv_void_star+set}" = set; then :
6762 $as_echo_n "(cached) " >&6
6763 else
6764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6765 /* end confdefs.h. */
6768 main ()
6770 void * foo;
6772 return 0;
6774 _ACEOF
6775 if ac_fn_c_try_compile "$LINENO"; then :
6776 emacs_cv_void_star=yes
6777 else
6778 emacs_cv_void_star=no
6780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
6783 $as_echo "$emacs_cv_void_star" >&6; }
6784 if test $emacs_cv_void_star = yes; then
6785 $as_echo "#define POINTER_TYPE void" >>confdefs.h
6787 else
6788 $as_echo "#define POINTER_TYPE char" >>confdefs.h
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6796 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6797 set x ${MAKE-make}
6798 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6799 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6800 $as_echo_n "(cached) " >&6
6801 else
6802 cat >conftest.make <<\_ACEOF
6803 SHELL = /bin/sh
6804 all:
6805 @echo '@@@%%%=$(MAKE)=@@@%%%'
6806 _ACEOF
6807 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6808 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6809 *@@@%%%=?*=@@@%%%*)
6810 eval ac_cv_prog_make_${ac_make}_set=yes;;
6812 eval ac_cv_prog_make_${ac_make}_set=no;;
6813 esac
6814 rm -f conftest.make
6816 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6818 $as_echo "yes" >&6; }
6819 SET_MAKE=
6820 else
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6822 $as_echo "no" >&6; }
6823 SET_MAKE="MAKE=${MAKE-make}"
6827 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
6829 $as_echo_n "checking whether we are using GNU Make... " >&6; }
6830 HAVE_GNU_MAKE=no
6831 testval=`make --version 2>/dev/null | grep 'GNU Make'`
6832 if test "x$testval" != x; then
6833 HAVE_GNU_MAKE=yes
6834 else
6835 ac_enable_autodepend=no
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
6838 $as_echo "$HAVE_GNU_MAKE" >&6; }
6839 if test $HAVE_GNU_MAKE = yes; then
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
6841 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
6842 SAVE_CFLAGS="$CFLAGS"
6843 CFLAGS="$CFLAGS -MMD -MF deps.d"
6844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845 /* end confdefs.h. */
6848 main ()
6852 return 0;
6854 _ACEOF
6855 if ac_fn_c_try_compile "$LINENO"; then :
6857 else
6858 ac_enable_autodepend=no
6860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6861 CFLAGS="$SAVE_CFLAGS"
6862 test -f deps.d || ac_enable_autodepend=no
6863 rm -rf deps.d
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
6865 $as_echo "$ac_enable_autodepend" >&6; }
6867 if test $ac_enable_autodepend = yes; then
6869 $as_echo "#define AUTO_DEPEND 1" >>confdefs.h
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
6875 $as_echo_n "checking for long file names... " >&6; }
6876 if test "${ac_cv_sys_long_file_names+set}" = set; then :
6877 $as_echo_n "(cached) " >&6
6878 else
6879 ac_cv_sys_long_file_names=yes
6880 # Test for long file names in all the places we know might matter:
6881 # . the current directory, where building will happen
6882 # $prefix/lib where we will be installing things
6883 # $exec_prefix/lib likewise
6884 # $TMPDIR if set, where it might want to write temporary files
6885 # /tmp where it might want to write temporary files
6886 # /var/tmp likewise
6887 # /usr/tmp likewise
6888 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
6889 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
6890 # in the usual case where exec_prefix is '${prefix}'.
6891 case $ac_dir in #(
6892 . | /* | ?:[\\/]*) ;; #(
6893 *) continue;;
6894 esac
6895 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
6896 ac_xdir=$ac_dir/cf$$
6897 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
6898 ac_tf1=$ac_xdir/conftest9012345
6899 ac_tf2=$ac_xdir/conftest9012346
6900 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
6901 ac_cv_sys_long_file_names=no
6902 rm -f -r "$ac_xdir" 2>/dev/null
6903 test $ac_cv_sys_long_file_names = no && break
6904 done
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
6907 $as_echo "$ac_cv_sys_long_file_names" >&6; }
6908 if test $ac_cv_sys_long_file_names = yes; then
6910 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
6915 #### Choose a window system.
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6918 $as_echo_n "checking for X... " >&6; }
6921 # Check whether --with-x was given.
6922 if test "${with_x+set}" = set; then :
6923 withval=$with_x;
6926 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6927 if test "x$with_x" = xno; then
6928 # The user explicitly disabled X.
6929 have_x=disabled
6930 else
6931 case $x_includes,$x_libraries in #(
6932 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
6933 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
6934 $as_echo_n "(cached) " >&6
6935 else
6936 # One or both of the vars are not set, and there is no cached value.
6937 ac_x_includes=no ac_x_libraries=no
6938 rm -f -r conftest.dir
6939 if mkdir conftest.dir; then
6940 cd conftest.dir
6941 cat >Imakefile <<'_ACEOF'
6942 incroot:
6943 @echo incroot='${INCROOT}'
6944 usrlibdir:
6945 @echo usrlibdir='${USRLIBDIR}'
6946 libdir:
6947 @echo libdir='${LIBDIR}'
6948 _ACEOF
6949 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6950 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6951 for ac_var in incroot usrlibdir libdir; do
6952 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6953 done
6954 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6955 for ac_extension in a so sl dylib la dll; do
6956 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6957 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6958 ac_im_usrlibdir=$ac_im_libdir; break
6960 done
6961 # Screen out bogus values from the imake configuration. They are
6962 # bogus both because they are the default anyway, and because
6963 # using them would break gcc on systems where it needs fixed includes.
6964 case $ac_im_incroot in
6965 /usr/include) ac_x_includes= ;;
6966 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6967 esac
6968 case $ac_im_usrlibdir in
6969 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6970 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6971 esac
6973 cd ..
6974 rm -f -r conftest.dir
6977 # Standard set of common directories for X headers.
6978 # Check X11 before X11Rn because it is often a symlink to the current release.
6979 ac_x_header_dirs='
6980 /usr/X11/include
6981 /usr/X11R7/include
6982 /usr/X11R6/include
6983 /usr/X11R5/include
6984 /usr/X11R4/include
6986 /usr/include/X11
6987 /usr/include/X11R7
6988 /usr/include/X11R6
6989 /usr/include/X11R5
6990 /usr/include/X11R4
6992 /usr/local/X11/include
6993 /usr/local/X11R7/include
6994 /usr/local/X11R6/include
6995 /usr/local/X11R5/include
6996 /usr/local/X11R4/include
6998 /usr/local/include/X11
6999 /usr/local/include/X11R7
7000 /usr/local/include/X11R6
7001 /usr/local/include/X11R5
7002 /usr/local/include/X11R4
7004 /usr/X386/include
7005 /usr/x386/include
7006 /usr/XFree86/include/X11
7008 /usr/include
7009 /usr/local/include
7010 /usr/unsupported/include
7011 /usr/athena/include
7012 /usr/local/x11r5/include
7013 /usr/lpp/Xamples/include
7015 /usr/openwin/include
7016 /usr/openwin/share/include'
7018 if test "$ac_x_includes" = no; then
7019 # Guess where to find include files, by looking for Xlib.h.
7020 # First, try using that file with no special directory specified.
7021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h. */
7023 #include <X11/Xlib.h>
7024 _ACEOF
7025 if ac_fn_c_try_cpp "$LINENO"; then :
7026 # We can compile using X headers with no special include directory.
7027 ac_x_includes=
7028 else
7029 for ac_dir in $ac_x_header_dirs; do
7030 if test -r "$ac_dir/X11/Xlib.h"; then
7031 ac_x_includes=$ac_dir
7032 break
7034 done
7036 rm -f conftest.err conftest.$ac_ext
7037 fi # $ac_x_includes = no
7039 if test "$ac_x_libraries" = no; then
7040 # Check for the libraries.
7041 # See if we find them without any special options.
7042 # Don't add to $LIBS permanently.
7043 ac_save_LIBS=$LIBS
7044 LIBS="-lX11 $LIBS"
7045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046 /* end confdefs.h. */
7047 #include <X11/Xlib.h>
7049 main ()
7051 XrmInitialize ()
7053 return 0;
7055 _ACEOF
7056 if ac_fn_c_try_link "$LINENO"; then :
7057 LIBS=$ac_save_LIBS
7058 # We can link X programs with no special library path.
7059 ac_x_libraries=
7060 else
7061 LIBS=$ac_save_LIBS
7062 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7064 # Don't even attempt the hair of trying to link an X program!
7065 for ac_extension in a so sl dylib la dll; do
7066 if test -r "$ac_dir/libX11.$ac_extension"; then
7067 ac_x_libraries=$ac_dir
7068 break 2
7070 done
7071 done
7073 rm -f core conftest.err conftest.$ac_objext \
7074 conftest$ac_exeext conftest.$ac_ext
7075 fi # $ac_x_libraries = no
7077 case $ac_x_includes,$ac_x_libraries in #(
7078 no,* | *,no | *\'*)
7079 # Didn't find X, or a directory has "'" in its name.
7080 ac_cv_have_x="have_x=no";; #(
7082 # Record where we found X for the cache.
7083 ac_cv_have_x="have_x=yes\
7084 ac_x_includes='$ac_x_includes'\
7085 ac_x_libraries='$ac_x_libraries'"
7086 esac
7088 ;; #(
7089 *) have_x=yes;;
7090 esac
7091 eval "$ac_cv_have_x"
7092 fi # $with_x != no
7094 if test "$have_x" != yes; then
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7096 $as_echo "$have_x" >&6; }
7097 no_x=yes
7098 else
7099 # If each of the values was on the command line, it overrides each guess.
7100 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7101 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7102 # Update the cache value to reflect the command line values.
7103 ac_cv_have_x="have_x=yes\
7104 ac_x_includes='$x_includes'\
7105 ac_x_libraries='$x_libraries'"
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7107 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7110 if test "$no_x" = yes; then
7111 window_system=none
7112 else
7113 window_system=x11
7116 ## Workaround for bug in autoconf <= 2.62.
7117 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7118 ## No need to do anything special for these standard directories.
7119 ## This is an experiment, take it out if it causes problems.
7120 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
7122 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7126 if test "${x_libraries}" != NONE; then
7127 if test -n "${x_libraries}"; then
7128 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7129 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7131 x_default_search_path=""
7132 x_search_path=${x_libraries}
7133 if test -z "${x_search_path}"; then
7134 x_search_path=/usr/lib
7136 for x_library in `echo ${x_search_path}: | \
7137 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7138 x_search_path="\
7139 ${x_library}/X11/%L/%T/%N%C%S:\
7140 ${x_library}/X11/%l/%T/%N%C%S:\
7141 ${x_library}/X11/%T/%N%C%S:\
7142 ${x_library}/X11/%L/%T/%N%S:\
7143 ${x_library}/X11/%l/%T/%N%S:\
7144 ${x_library}/X11/%T/%N%S"
7145 if test x"${x_default_search_path}" = x; then
7146 x_default_search_path=${x_search_path}
7147 else
7148 x_default_search_path="${x_search_path}:${x_default_search_path}"
7150 done
7152 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7153 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7156 if test x"${x_includes}" = x; then
7157 bitmapdir=/usr/include/X11/bitmaps
7158 else
7159 # accumulate include directories that have X11 bitmap subdirectories
7160 bmd_acc="dummyval"
7161 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7162 if test -d "${bmd}/X11/bitmaps"; then
7163 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7165 if test -d "${bmd}/bitmaps"; then
7166 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7168 done
7169 if test ${bmd_acc} != "dummyval"; then
7170 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7174 HAVE_NS=no
7175 NS_IMPL_COCOA=no
7176 NS_IMPL_GNUSTEP=no
7177 tmp_CPPFLAGS="$CPPFLAGS"
7178 tmp_CFLAGS="$CFLAGS"
7179 CPPFLAGS="$CPPFLAGS -x objective-c"
7180 CFLAGS="$CFLAGS -x objective-c"
7181 if test "${with_ns}" != no; then
7182 if test "${opsys}" = darwin; then
7183 NS_IMPL_COCOA=yes
7184 ns_appdir=`pwd`/nextstep/Emacs.app
7185 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
7186 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
7187 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
7188 elif test -f $GNUSTEP_CONFIG_FILE; then
7189 NS_IMPL_GNUSTEP=yes
7190 ns_appdir=`pwd`/nextstep/Emacs.app
7191 ns_appbindir=`pwd`/nextstep/Emacs.app
7192 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
7193 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
7194 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
7195 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7196 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7197 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7198 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7199 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7200 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
7202 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7203 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
7204 HAVE_NS=yes
7205 else
7206 as_fn_error "\`--with-ns' was specified, but the include
7207 files are missing or cannot be compiled." "$LINENO" 5
7211 NS_HAVE_NSINTEGER=yes
7212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7213 /* end confdefs.h. */
7214 #include <Foundation/NSObjCRuntime.h>
7216 main ()
7218 NSInteger i;
7220 return 0;
7222 _ACEOF
7223 if ac_fn_c_try_compile "$LINENO"; then :
7224 ns_have_nsinteger=yes
7225 else
7226 ns_have_nsinteger=no
7228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7229 if test $ns_have_nsinteger = no; then
7230 NS_HAVE_NSINTEGER=no
7233 if test "${HAVE_NS}" = yes; then
7234 window_system=nextstep
7235 with_xft=no
7236 # set up packaging dirs
7237 exec_prefix=${ns_appbindir}
7238 libexecdir=${ns_appbindir}/libexec
7239 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7240 prefix=${ns_appresdir}
7243 CFLAGS="$tmp_CFLAGS"
7244 CPPFLAGS="$tmp_CPPFLAGS"
7246 case "${window_system}" in
7247 x11 )
7248 HAVE_X_WINDOWS=yes
7249 HAVE_X11=yes
7250 case "${with_x_toolkit}" in
7251 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7252 motif ) USE_X_TOOLKIT=MOTIF ;;
7253 gtk ) with_gtk=yes
7254 USE_X_TOOLKIT=none ;;
7255 no ) USE_X_TOOLKIT=none ;;
7256 * ) USE_X_TOOLKIT=maybe ;;
7257 esac
7259 nextstep | none )
7260 HAVE_X_WINDOWS=no
7261 HAVE_X11=no
7262 USE_X_TOOLKIT=none
7264 esac
7266 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7267 # Extract the first word of "X", so it can be a program name with args.
7268 set dummy X; ac_word=$2
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7270 $as_echo_n "checking for $ac_word... " >&6; }
7271 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7272 $as_echo_n "(cached) " >&6
7273 else
7274 if test -n "$HAVE_XSERVER"; then
7275 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7276 else
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 for as_dir in $PATH
7280 IFS=$as_save_IFS
7281 test -z "$as_dir" && as_dir=.
7282 for ac_exec_ext in '' $ac_executable_extensions; do
7283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7284 ac_cv_prog_HAVE_XSERVER="true"
7285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7286 break 2
7288 done
7289 done
7290 IFS=$as_save_IFS
7292 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7295 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7296 if test -n "$HAVE_XSERVER"; then
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7298 $as_echo "$HAVE_XSERVER" >&6; }
7299 else
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301 $as_echo "no" >&6; }
7305 if test "$HAVE_XSERVER" = true ||
7306 test -n "$DISPLAY" ||
7307 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7308 as_fn_error "You seem to be running X, but no X development libraries
7309 were found. You should install the relevant development files for X
7310 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7311 sure you have development files for image handling, i.e.
7312 tiff, gif, jpeg, png and xpm.
7313 If you are sure you want Emacs compiled without X window support, pass
7314 --without-x
7315 to configure." "$LINENO" 5
7319 ### If we're using X11, we should use the X menu package.
7320 HAVE_MENUS=no
7321 case ${HAVE_X11} in
7322 yes ) HAVE_MENUS=yes ;;
7323 esac
7325 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7326 # Assume not, until told otherwise.
7327 GNU_MALLOC=yes
7328 doug_lea_malloc=yes
7329 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7330 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
7332 else
7333 doug_lea_malloc=no
7336 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7337 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
7339 else
7340 doug_lea_malloc=no
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7344 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7345 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7346 $as_echo_n "(cached) " >&6
7347 else
7348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7349 /* end confdefs.h. */
7350 extern void (* __after_morecore_hook)();
7352 main ()
7354 __after_morecore_hook = 0
7356 return 0;
7358 _ACEOF
7359 if ac_fn_c_try_link "$LINENO"; then :
7360 emacs_cv_var___after_morecore_hook=yes
7361 else
7362 emacs_cv_var___after_morecore_hook=no
7364 rm -f core conftest.err conftest.$ac_objext \
7365 conftest$ac_exeext conftest.$ac_ext
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7368 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7369 if test $emacs_cv_var___after_morecore_hook = no; then
7370 doug_lea_malloc=no
7372 if test "${system_malloc}" = "yes"; then
7373 GNU_MALLOC=no
7374 GNU_MALLOC_reason="
7375 (The GNU allocators don't work with this system configuration.)"
7377 if test "$doug_lea_malloc" = "yes" ; then
7378 if test "$GNU_MALLOC" = yes ; then
7379 GNU_MALLOC_reason="
7380 (Using Doug Lea's new malloc from the GNU C Library.)"
7383 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7387 if test x"${REL_ALLOC}" = x; then
7388 REL_ALLOC=${GNU_MALLOC}
7395 for ac_header in $ac_header_list
7396 do :
7397 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7398 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7400 eval as_val=\$$as_ac_Header
7401 if test "x$as_val" = x""yes; then :
7402 cat >>confdefs.h <<_ACEOF
7403 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7404 _ACEOF
7408 done
7417 for ac_func in getpagesize
7418 do :
7419 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7420 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7421 cat >>confdefs.h <<_ACEOF
7422 #define HAVE_GETPAGESIZE 1
7423 _ACEOF
7426 done
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7429 $as_echo_n "checking for working mmap... " >&6; }
7430 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7431 $as_echo_n "(cached) " >&6
7432 else
7433 if test "$cross_compiling" = yes; then :
7434 ac_cv_func_mmap_fixed_mapped=no
7435 else
7436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437 /* end confdefs.h. */
7438 $ac_includes_default
7439 /* malloc might have been renamed as rpl_malloc. */
7440 #undef malloc
7442 /* Thanks to Mike Haertel and Jim Avera for this test.
7443 Here is a matrix of mmap possibilities:
7444 mmap private not fixed
7445 mmap private fixed at somewhere currently unmapped
7446 mmap private fixed at somewhere already mapped
7447 mmap shared not fixed
7448 mmap shared fixed at somewhere currently unmapped
7449 mmap shared fixed at somewhere already mapped
7450 For private mappings, we should verify that changes cannot be read()
7451 back from the file, nor mmap's back from the file at a different
7452 address. (There have been systems where private was not correctly
7453 implemented like the infamous i386 svr4.0, and systems where the
7454 VM page cache was not coherent with the file system buffer cache
7455 like early versions of FreeBSD and possibly contemporary NetBSD.)
7456 For shared mappings, we should conversely verify that changes get
7457 propagated back to all the places they're supposed to be.
7459 Grep wants private fixed already mapped.
7460 The main things grep needs to know about mmap are:
7461 * does it exist and is it safe to write into the mmap'd area
7462 * how to use it (BSD variants) */
7464 #include <fcntl.h>
7465 #include <sys/mman.h>
7467 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7468 char *malloc ();
7469 #endif
7471 /* This mess was copied from the GNU getpagesize.h. */
7472 #ifndef HAVE_GETPAGESIZE
7473 # ifdef _SC_PAGESIZE
7474 # define getpagesize() sysconf(_SC_PAGESIZE)
7475 # else /* no _SC_PAGESIZE */
7476 # ifdef HAVE_SYS_PARAM_H
7477 # include <sys/param.h>
7478 # ifdef EXEC_PAGESIZE
7479 # define getpagesize() EXEC_PAGESIZE
7480 # else /* no EXEC_PAGESIZE */
7481 # ifdef NBPG
7482 # define getpagesize() NBPG * CLSIZE
7483 # ifndef CLSIZE
7484 # define CLSIZE 1
7485 # endif /* no CLSIZE */
7486 # else /* no NBPG */
7487 # ifdef NBPC
7488 # define getpagesize() NBPC
7489 # else /* no NBPC */
7490 # ifdef PAGESIZE
7491 # define getpagesize() PAGESIZE
7492 # endif /* PAGESIZE */
7493 # endif /* no NBPC */
7494 # endif /* no NBPG */
7495 # endif /* no EXEC_PAGESIZE */
7496 # else /* no HAVE_SYS_PARAM_H */
7497 # define getpagesize() 8192 /* punt totally */
7498 # endif /* no HAVE_SYS_PARAM_H */
7499 # endif /* no _SC_PAGESIZE */
7501 #endif /* no HAVE_GETPAGESIZE */
7504 main ()
7506 char *data, *data2, *data3;
7507 int i, pagesize;
7508 int fd, fd2;
7510 pagesize = getpagesize ();
7512 /* First, make a file with some known garbage in it. */
7513 data = (char *) malloc (pagesize);
7514 if (!data)
7515 return 1;
7516 for (i = 0; i < pagesize; ++i)
7517 *(data + i) = rand ();
7518 umask (0);
7519 fd = creat ("conftest.mmap", 0600);
7520 if (fd < 0)
7521 return 2;
7522 if (write (fd, data, pagesize) != pagesize)
7523 return 3;
7524 close (fd);
7526 /* Next, check that the tail of a page is zero-filled. File must have
7527 non-zero length, otherwise we risk SIGBUS for entire page. */
7528 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7529 if (fd2 < 0)
7530 return 4;
7531 data2 = "";
7532 if (write (fd2, data2, 1) != 1)
7533 return 5;
7534 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7535 if (data2 == MAP_FAILED)
7536 return 6;
7537 for (i = 0; i < pagesize; ++i)
7538 if (*(data2 + i))
7539 return 7;
7540 close (fd2);
7541 if (munmap (data2, pagesize))
7542 return 8;
7544 /* Next, try to mmap the file at a fixed address which already has
7545 something else allocated at it. If we can, also make sure that
7546 we see the same garbage. */
7547 fd = open ("conftest.mmap", O_RDWR);
7548 if (fd < 0)
7549 return 9;
7550 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7551 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7552 return 10;
7553 for (i = 0; i < pagesize; ++i)
7554 if (*(data + i) != *(data2 + i))
7555 return 11;
7557 /* Finally, make sure that changes to the mapped area do not
7558 percolate back to the file as seen by read(). (This is a bug on
7559 some variants of i386 svr4.0.) */
7560 for (i = 0; i < pagesize; ++i)
7561 *(data2 + i) = *(data2 + i) + 1;
7562 data3 = (char *) malloc (pagesize);
7563 if (!data3)
7564 return 12;
7565 if (read (fd, data3, pagesize) != pagesize)
7566 return 13;
7567 for (i = 0; i < pagesize; ++i)
7568 if (*(data + i) != *(data3 + i))
7569 return 14;
7570 close (fd);
7571 return 0;
7573 _ACEOF
7574 if ac_fn_c_try_run "$LINENO"; then :
7575 ac_cv_func_mmap_fixed_mapped=yes
7576 else
7577 ac_cv_func_mmap_fixed_mapped=no
7579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7580 conftest.$ac_objext conftest.beam conftest.$ac_ext
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7585 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7586 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7588 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7591 rm -f conftest.mmap conftest.txt
7593 if test $use_mmap_for_buffers = yes; then
7594 REL_ALLOC=no
7597 LIBS="$libsrc_libs $LIBS"
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7600 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7601 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7602 $as_echo_n "(cached) " >&6
7603 else
7604 ac_check_lib_save_LIBS=$LIBS
7605 LIBS="-ldnet $LIBS"
7606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607 /* end confdefs.h. */
7609 /* Override any GCC internal prototype to avoid an error.
7610 Use char because int might match the return type of a GCC
7611 builtin and then its argument prototype would still apply. */
7612 #ifdef __cplusplus
7613 extern "C"
7614 #endif
7615 char dnet_ntoa ();
7617 main ()
7619 return dnet_ntoa ();
7621 return 0;
7623 _ACEOF
7624 if ac_fn_c_try_link "$LINENO"; then :
7625 ac_cv_lib_dnet_dnet_ntoa=yes
7626 else
7627 ac_cv_lib_dnet_dnet_ntoa=no
7629 rm -f core conftest.err conftest.$ac_objext \
7630 conftest$ac_exeext conftest.$ac_ext
7631 LIBS=$ac_check_lib_save_LIBS
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7634 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7635 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7636 cat >>confdefs.h <<_ACEOF
7637 #define HAVE_LIBDNET 1
7638 _ACEOF
7640 LIBS="-ldnet $LIBS"
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
7646 $as_echo_n "checking for main in -lXbsd... " >&6; }
7647 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
7648 $as_echo_n "(cached) " >&6
7649 else
7650 ac_check_lib_save_LIBS=$LIBS
7651 LIBS="-lXbsd $LIBS"
7652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7653 /* end confdefs.h. */
7657 main ()
7659 return main ();
7661 return 0;
7663 _ACEOF
7664 if ac_fn_c_try_link "$LINENO"; then :
7665 ac_cv_lib_Xbsd_main=yes
7666 else
7667 ac_cv_lib_Xbsd_main=no
7669 rm -f core conftest.err conftest.$ac_objext \
7670 conftest$ac_exeext conftest.$ac_ext
7671 LIBS=$ac_check_lib_save_LIBS
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
7674 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7675 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
7676 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
7681 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
7682 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
7683 $as_echo_n "(cached) " >&6
7684 else
7685 ac_check_lib_save_LIBS=$LIBS
7686 LIBS="-lpthreads $LIBS"
7687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688 /* end confdefs.h. */
7690 /* Override any GCC internal prototype to avoid an error.
7691 Use char because int might match the return type of a GCC
7692 builtin and then its argument prototype would still apply. */
7693 #ifdef __cplusplus
7694 extern "C"
7695 #endif
7696 char cma_open ();
7698 main ()
7700 return cma_open ();
7702 return 0;
7704 _ACEOF
7705 if ac_fn_c_try_link "$LINENO"; then :
7706 ac_cv_lib_pthreads_cma_open=yes
7707 else
7708 ac_cv_lib_pthreads_cma_open=no
7710 rm -f core conftest.err conftest.$ac_objext \
7711 conftest$ac_exeext conftest.$ac_ext
7712 LIBS=$ac_check_lib_save_LIBS
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
7715 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
7716 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
7717 cat >>confdefs.h <<_ACEOF
7718 #define HAVE_LIBPTHREADS 1
7719 _ACEOF
7721 LIBS="-lpthreads $LIBS"
7727 case ${host_os} in
7728 aix*)
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
7730 $as_echo_n "checking for -bbigtoc option... " >&6; }
7731 if test "${gdb_cv_bigtoc+set}" = set; then :
7732 $as_echo_n "(cached) " >&6
7733 else
7735 case $GCC in
7736 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
7737 *) gdb_cv_bigtoc=-bbigtoc ;;
7738 esac
7740 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
7741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742 /* end confdefs.h. */
7745 main ()
7747 int i;
7749 return 0;
7751 _ACEOF
7752 if ac_fn_c_try_link "$LINENO"; then :
7754 else
7755 gdb_cv_bigtoc=
7757 rm -f core conftest.err conftest.$ac_objext \
7758 conftest$ac_exeext conftest.$ac_ext
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
7762 $as_echo "$gdb_cv_bigtoc" >&6; }
7764 esac
7766 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7767 # used for the tests that follow. We set them back to REAL_CFLAGS and
7768 # REAL_CPPFLAGS later on.
7770 REAL_CPPFLAGS="$CPPFLAGS"
7772 if test "${HAVE_X11}" = "yes"; then
7773 DEFS="$C_SWITCH_X_SITE $DEFS"
7774 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
7775 LIBS="$LIBX $LIBS"
7776 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
7777 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
7779 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7780 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7781 # but it's more convenient here to set LD_RUN_PATH
7782 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7783 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7784 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7785 export LD_RUN_PATH
7788 if test "${opsys}" = "gnu-linux"; then
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
7790 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
7791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7792 /* end confdefs.h. */
7795 main ()
7797 XOpenDisplay ("foo");
7799 return 0;
7801 _ACEOF
7802 if ac_fn_c_try_link "$LINENO"; then :
7803 xlinux_first_failure=no
7804 else
7805 xlinux_first_failure=yes
7807 rm -f core conftest.err conftest.$ac_objext \
7808 conftest$ac_exeext conftest.$ac_ext
7809 if test "${xlinux_first_failure}" = "yes"; then
7810 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7811 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
7812 OLD_CPPFLAGS="$CPPFLAGS"
7813 OLD_LIBS="$LIBS"
7814 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
7815 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7816 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7817 LIBS="$LIBS -b i486-linuxaout"
7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7819 /* end confdefs.h. */
7822 main ()
7824 XOpenDisplay ("foo");
7826 return 0;
7828 _ACEOF
7829 if ac_fn_c_try_link "$LINENO"; then :
7830 xlinux_second_failure=no
7831 else
7832 xlinux_second_failure=yes
7834 rm -f core conftest.err conftest.$ac_objext \
7835 conftest$ac_exeext conftest.$ac_ext
7836 if test "${xlinux_second_failure}" = "yes"; then
7837 # If we get the same failure with -b, there is no use adding -b.
7838 # So take it out. This plays safe.
7839 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
7840 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7841 CPPFLAGS="$OLD_CPPFLAGS"
7842 LIBS="$OLD_LIBS"
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7845 else
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7847 $as_echo "yes" >&6; }
7849 else
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851 $as_echo "no" >&6; }
7855 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7856 # header files included from there.
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
7858 $as_echo_n "checking for Xkb... " >&6; }
7859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860 /* end confdefs.h. */
7861 #include <X11/Xlib.h>
7862 #include <X11/XKBlib.h>
7864 main ()
7866 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7868 return 0;
7870 _ACEOF
7871 if ac_fn_c_try_link "$LINENO"; then :
7872 emacs_xkb=yes
7873 else
7874 emacs_xkb=no
7876 rm -f core conftest.err conftest.$ac_objext \
7877 conftest$ac_exeext conftest.$ac_ext
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
7879 $as_echo "$emacs_xkb" >&6; }
7880 if test $emacs_xkb = yes; then
7882 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
7886 for ac_func in XrmSetDatabase XScreenResourceString \
7887 XScreenNumberOfScreen XSetWMProtocols
7888 do :
7889 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7890 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7891 eval as_val=\$$as_ac_var
7892 if test "x$as_val" = x""yes; then :
7893 cat >>confdefs.h <<_ACEOF
7894 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7895 _ACEOF
7898 done
7902 if test "${window_system}" = "x11"; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
7904 $as_echo_n "checking X11 version 6... " >&6; }
7905 if test "${emacs_cv_x11_version_6+set}" = set; then :
7906 $as_echo_n "(cached) " >&6
7907 else
7908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909 /* end confdefs.h. */
7910 #include <X11/Xlib.h>
7912 main ()
7914 #if XlibSpecificationRelease < 6
7915 fail;
7916 #endif
7919 return 0;
7921 _ACEOF
7922 if ac_fn_c_try_link "$LINENO"; then :
7923 emacs_cv_x11_version_6=yes
7924 else
7925 emacs_cv_x11_version_6=no
7927 rm -f core conftest.err conftest.$ac_objext \
7928 conftest$ac_exeext conftest.$ac_ext
7931 if test $emacs_cv_x11_version_6 = yes; then
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
7933 $as_echo "6 or newer" >&6; }
7935 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
7937 else
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
7939 $as_echo "before 6" >&6; }
7944 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
7945 HAVE_RSVG=no
7946 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
7947 if test "${with_rsvg}" != "no"; then
7948 RSVG_REQUIRED=2.11.0
7949 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
7952 succeeded=no
7954 # Extract the first word of "pkg-config", so it can be a program name with args.
7955 set dummy pkg-config; ac_word=$2
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7957 $as_echo_n "checking for $ac_word... " >&6; }
7958 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7959 $as_echo_n "(cached) " >&6
7960 else
7961 case $PKG_CONFIG in
7962 [\\/]* | ?:[\\/]*)
7963 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967 for as_dir in $PATH
7969 IFS=$as_save_IFS
7970 test -z "$as_dir" && as_dir=.
7971 for ac_exec_ext in '' $ac_executable_extensions; do
7972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7973 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7975 break 2
7977 done
7978 done
7979 IFS=$as_save_IFS
7981 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7983 esac
7985 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7986 if test -n "$PKG_CONFIG"; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7988 $as_echo "$PKG_CONFIG" >&6; }
7989 else
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7996 if test "$PKG_CONFIG" = "no" ; then
7998 else
7999 PKG_CONFIG_MIN_VERSION=0.9.0
8000 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8002 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8004 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8006 $as_echo "yes" >&6; }
8007 succeeded=yes
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8010 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8011 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8013 $as_echo "$RSVG_CFLAGS" >&6; }
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8016 $as_echo_n "checking RSVG_LIBS... " >&6; }
8017 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8019 $as_echo "$RSVG_LIBS" >&6; }
8020 else
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8022 $as_echo "no" >&6; }
8023 RSVG_CFLAGS=""
8024 RSVG_LIBS=""
8025 ## If we have a custom action on failure, don't print errors, but
8026 ## do set a variable so people can do so.
8027 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8033 else
8034 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8035 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8039 if test $succeeded = yes; then
8041 else
8048 if test ".${RSVG_CFLAGS}" != "."; then
8049 HAVE_RSVG=yes
8051 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8053 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8054 LIBS="$RSVG_LIBS $LIBS"
8060 HAVE_GTK=no
8061 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8062 GLIB_REQUIRED=2.6
8063 GTK_REQUIRED=2.6
8064 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8067 succeeded=no
8069 # Extract the first word of "pkg-config", so it can be a program name with args.
8070 set dummy pkg-config; ac_word=$2
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8072 $as_echo_n "checking for $ac_word... " >&6; }
8073 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8074 $as_echo_n "(cached) " >&6
8075 else
8076 case $PKG_CONFIG in
8077 [\\/]* | ?:[\\/]*)
8078 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8082 for as_dir in $PATH
8084 IFS=$as_save_IFS
8085 test -z "$as_dir" && as_dir=.
8086 for ac_exec_ext in '' $ac_executable_extensions; do
8087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8088 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8090 break 2
8092 done
8093 done
8094 IFS=$as_save_IFS
8096 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8098 esac
8100 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8101 if test -n "$PKG_CONFIG"; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8103 $as_echo "$PKG_CONFIG" >&6; }
8104 else
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106 $as_echo "no" >&6; }
8111 if test "$PKG_CONFIG" = "no" ; then
8112 pkg_check_gtk=no
8113 else
8114 PKG_CONFIG_MIN_VERSION=0.9.0
8115 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8117 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8119 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8121 $as_echo "yes" >&6; }
8122 succeeded=yes
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8125 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8126 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8128 $as_echo "$GTK_CFLAGS" >&6; }
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8131 $as_echo_n "checking GTK_LIBS... " >&6; }
8132 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8134 $as_echo "$GTK_LIBS" >&6; }
8135 else
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137 $as_echo "no" >&6; }
8138 GTK_CFLAGS=""
8139 GTK_LIBS=""
8140 ## If we have a custom action on failure, don't print errors, but
8141 ## do set a variable so people can do so.
8142 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8148 else
8149 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8150 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8154 if test $succeeded = yes; then
8155 pkg_check_gtk=yes
8156 else
8157 pkg_check_gtk=no
8160 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8161 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
8166 if test x"$pkg_check_gtk" = xyes; then
8170 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8171 CFLAGS="$CFLAGS $GTK_CFLAGS"
8172 LIBS="$GTK_LIBS $LIBS"
8173 GTK_COMPILES=no
8174 for ac_func in gtk_main
8175 do :
8176 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8177 if test "x$ac_cv_func_gtk_main" = x""yes; then :
8178 cat >>confdefs.h <<_ACEOF
8179 #define HAVE_GTK_MAIN 1
8180 _ACEOF
8181 GTK_COMPILES=yes
8183 done
8185 if test "${GTK_COMPILES}" != "yes"; then
8186 if test "$USE_X_TOOLKIT" != "maybe"; then
8187 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8189 else
8190 HAVE_GTK=yes
8192 $as_echo "#define USE_GTK 1" >>confdefs.h
8194 USE_X_TOOLKIT=none
8195 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
8197 else
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8199 closing open displays. This is no problem if you just use
8200 one display, but if you use more than one and close one of them
8201 Emacs may crash." >&5
8202 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8203 closing open displays. This is no problem if you just use
8204 one display, but if you use more than one and close one of them
8205 Emacs may crash." >&2;}
8206 sleep 3
8213 if test "${HAVE_GTK}" = "yes"; then
8215 if test "$with_toolkit_scroll_bars" != no; then
8216 with_toolkit_scroll_bars=yes
8219 HAVE_GTK_MULTIDISPLAY=no
8220 for ac_func in gdk_display_open
8221 do :
8222 ac_fn_c_check_func "$LINENO" "gdk_display_open" "ac_cv_func_gdk_display_open"
8223 if test "x$ac_cv_func_gdk_display_open" = x""yes; then :
8224 cat >>confdefs.h <<_ACEOF
8225 #define HAVE_GDK_DISPLAY_OPEN 1
8226 _ACEOF
8227 HAVE_GTK_MULTIDISPLAY=yes
8229 done
8231 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
8233 $as_echo "#define HAVE_GTK_MULTIDISPLAY 1" >>confdefs.h
8237 HAVE_GTK_FILE_SELECTION=no
8238 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
8239 #include <gtk/gtk.h>
8241 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
8242 HAVE_GTK_FILE_SELECTION=yes
8243 else
8244 HAVE_GTK_FILE_SELECTION=no
8247 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
8248 for ac_func in gtk_file_selection_new
8249 do :
8250 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
8251 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
8252 cat >>confdefs.h <<_ACEOF
8253 #define HAVE_GTK_FILE_SELECTION_NEW 1
8254 _ACEOF
8255 HAVE_GTK_FILE_SELECTION=yes
8256 else
8257 HAVE_GTK_FILE_SELECTION=no
8259 done
8263 HAVE_GTK_FILE_CHOOSER=no
8264 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_CHOOSER" "ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" "$ac_includes_default
8265 #include <gtk/gtk.h>
8267 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x""yes; then :
8268 HAVE_GTK_FILE_CHOOSER=yes
8269 else
8270 HAVE_GTK_FILE_CHOOSER=no
8273 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8274 for ac_func in gtk_file_chooser_dialog_new
8275 do :
8276 ac_fn_c_check_func "$LINENO" "gtk_file_chooser_dialog_new" "ac_cv_func_gtk_file_chooser_dialog_new"
8277 if test "x$ac_cv_func_gtk_file_chooser_dialog_new" = x""yes; then :
8278 cat >>confdefs.h <<_ACEOF
8279 #define HAVE_GTK_FILE_CHOOSER_DIALOG_NEW 1
8280 _ACEOF
8281 HAVE_GTK_FILE_CHOOSER=yes
8282 else
8283 HAVE_GTK_FILE_CHOOSER=no
8285 done
8289 if test "$HAVE_GTK_FILE_SELECTION" = yes \
8290 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8292 $as_echo "#define HAVE_GTK_FILE_BOTH 1" >>confdefs.h
8296 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8297 HAVE_GTK_AND_PTHREAD=no
8298 for ac_header in pthread.h
8299 do :
8300 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8301 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8302 cat >>confdefs.h <<_ACEOF
8303 #define HAVE_PTHREAD_H 1
8304 _ACEOF
8308 done
8310 if test "$ac_cv_header_pthread_h"; then
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
8312 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
8313 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
8314 $as_echo_n "(cached) " >&6
8315 else
8316 ac_check_lib_save_LIBS=$LIBS
8317 LIBS="-lpthread $LIBS"
8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h. */
8321 /* Override any GCC internal prototype to avoid an error.
8322 Use char because int might match the return type of a GCC
8323 builtin and then its argument prototype would still apply. */
8324 #ifdef __cplusplus
8325 extern "C"
8326 #endif
8327 char pthread_self ();
8329 main ()
8331 return pthread_self ();
8333 return 0;
8335 _ACEOF
8336 if ac_fn_c_try_link "$LINENO"; then :
8337 ac_cv_lib_pthread_pthread_self=yes
8338 else
8339 ac_cv_lib_pthread_pthread_self=no
8341 rm -f core conftest.err conftest.$ac_objext \
8342 conftest$ac_exeext conftest.$ac_ext
8343 LIBS=$ac_check_lib_save_LIBS
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
8346 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
8347 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
8348 HAVE_GTK_AND_PTHREAD=yes
8352 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
8353 case "${canonical}" in
8354 *-hpux*) ;;
8355 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
8356 esac
8358 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
8364 HAVE_DBUS=no
8365 if test "${with_dbus}" = "yes"; then
8367 succeeded=no
8369 # Extract the first word of "pkg-config", so it can be a program name with args.
8370 set dummy pkg-config; ac_word=$2
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8372 $as_echo_n "checking for $ac_word... " >&6; }
8373 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8374 $as_echo_n "(cached) " >&6
8375 else
8376 case $PKG_CONFIG in
8377 [\\/]* | ?:[\\/]*)
8378 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8382 for as_dir in $PATH
8384 IFS=$as_save_IFS
8385 test -z "$as_dir" && as_dir=.
8386 for ac_exec_ext in '' $ac_executable_extensions; do
8387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8388 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8390 break 2
8392 done
8393 done
8394 IFS=$as_save_IFS
8396 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8398 esac
8400 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8401 if test -n "$PKG_CONFIG"; then
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8403 $as_echo "$PKG_CONFIG" >&6; }
8404 else
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406 $as_echo "no" >&6; }
8411 if test "$PKG_CONFIG" = "no" ; then
8412 HAVE_DBUS=no
8413 else
8414 PKG_CONFIG_MIN_VERSION=0.9.0
8415 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
8417 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
8419 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8421 $as_echo "yes" >&6; }
8422 succeeded=yes
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
8425 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
8426 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
8428 $as_echo "$DBUS_CFLAGS" >&6; }
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
8431 $as_echo_n "checking DBUS_LIBS... " >&6; }
8432 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
8434 $as_echo "$DBUS_LIBS" >&6; }
8435 else
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437 $as_echo "no" >&6; }
8438 DBUS_CFLAGS=""
8439 DBUS_LIBS=""
8440 ## If we have a custom action on failure, don't print errors, but
8441 ## do set a variable so people can do so.
8442 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
8448 else
8449 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8450 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8454 if test $succeeded = yes; then
8455 HAVE_DBUS=yes
8456 else
8457 HAVE_DBUS=no
8460 if test "$HAVE_DBUS" = yes; then
8461 LIBS="$LIBS $DBUS_LIBS"
8463 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
8465 for ac_func in dbus_watch_get_unix_fd
8466 do :
8467 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
8468 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
8469 cat >>confdefs.h <<_ACEOF
8470 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
8471 _ACEOF
8474 done
8479 HAVE_GCONF=no
8480 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
8482 succeeded=no
8484 # Extract the first word of "pkg-config", so it can be a program name with args.
8485 set dummy pkg-config; ac_word=$2
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8487 $as_echo_n "checking for $ac_word... " >&6; }
8488 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8489 $as_echo_n "(cached) " >&6
8490 else
8491 case $PKG_CONFIG in
8492 [\\/]* | ?:[\\/]*)
8493 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497 for as_dir in $PATH
8499 IFS=$as_save_IFS
8500 test -z "$as_dir" && as_dir=.
8501 for ac_exec_ext in '' $ac_executable_extensions; do
8502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8503 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8505 break 2
8507 done
8508 done
8509 IFS=$as_save_IFS
8511 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8513 esac
8515 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8516 if test -n "$PKG_CONFIG"; then
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8518 $as_echo "$PKG_CONFIG" >&6; }
8519 else
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8521 $as_echo "no" >&6; }
8526 if test "$PKG_CONFIG" = "no" ; then
8527 HAVE_GCONF=no
8528 else
8529 PKG_CONFIG_MIN_VERSION=0.9.0
8530 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
8532 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
8534 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8536 $as_echo "yes" >&6; }
8537 succeeded=yes
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
8540 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
8541 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
8543 $as_echo "$GCONF_CFLAGS" >&6; }
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
8546 $as_echo_n "checking GCONF_LIBS... " >&6; }
8547 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
8549 $as_echo "$GCONF_LIBS" >&6; }
8550 else
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8552 $as_echo "no" >&6; }
8553 GCONF_CFLAGS=""
8554 GCONF_LIBS=""
8555 ## If we have a custom action on failure, don't print errors, but
8556 ## do set a variable so people can do so.
8557 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
8563 else
8564 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8565 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8569 if test $succeeded = yes; then
8570 HAVE_GCONF=yes
8571 else
8572 HAVE_GCONF=no
8575 if test "$HAVE_GCONF" = yes; then
8577 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
8579 for ac_func in g_type_init
8580 do :
8581 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
8582 if test "x$ac_cv_func_g_type_init" = x""yes; then :
8583 cat >>confdefs.h <<_ACEOF
8584 #define HAVE_G_TYPE_INIT 1
8585 _ACEOF
8588 done
8593 HAVE_XAW3D=no
8594 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
8595 if test "$with_xaw3d" != no; then
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
8597 $as_echo_n "checking for xaw3d... " >&6; }
8598 if test "${emacs_cv_xaw3d+set}" = set; then :
8599 $as_echo_n "(cached) " >&6
8600 else
8601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602 /* end confdefs.h. */
8604 #include <X11/Intrinsic.h>
8605 #include <X11/Xaw3d/Simple.h>
8607 main ()
8611 return 0;
8613 _ACEOF
8614 if ac_fn_c_try_link "$LINENO"; then :
8615 emacs_cv_xaw3d=yes
8616 else
8617 emacs_cv_xaw3d=no
8619 rm -f core conftest.err conftest.$ac_objext \
8620 conftest$ac_exeext conftest.$ac_ext
8623 else
8624 emacs_cv_xaw3d=no
8626 if test $emacs_cv_xaw3d = yes; then
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8628 $as_echo "yes; using Lucid toolkit" >&6; }
8629 USE_X_TOOLKIT=LUCID
8630 HAVE_XAW3D=yes
8632 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
8634 else
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636 $as_echo "no" >&6; }
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
8638 $as_echo_n "checking for libXaw... " >&6; }
8639 if test "${emacs_cv_xaw+set}" = set; then :
8640 $as_echo_n "(cached) " >&6
8641 else
8642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643 /* end confdefs.h. */
8645 #include <X11/Intrinsic.h>
8646 #include <X11/Xaw/Simple.h>
8648 main ()
8652 return 0;
8654 _ACEOF
8655 if ac_fn_c_try_link "$LINENO"; then :
8656 emacs_cv_xaw=yes
8657 else
8658 emacs_cv_xaw=no
8660 rm -f core conftest.err conftest.$ac_objext \
8661 conftest$ac_exeext conftest.$ac_ext
8664 if test $emacs_cv_xaw = yes; then
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8666 $as_echo "yes; using Lucid toolkit" >&6; }
8667 USE_X_TOOLKIT=LUCID
8668 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
8669 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
8670 else
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
8672 $as_echo "no; do not use toolkit by default" >&6; }
8673 USE_X_TOOLKIT=none
8678 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8680 if test "${USE_X_TOOLKIT}" != "none"; then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
8682 $as_echo_n "checking X11 toolkit version... " >&6; }
8683 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
8684 $as_echo_n "(cached) " >&6
8685 else
8686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8687 /* end confdefs.h. */
8688 #include <X11/Intrinsic.h>
8690 main ()
8692 #if XtSpecificationRelease < 6
8693 fail;
8694 #endif
8697 return 0;
8699 _ACEOF
8700 if ac_fn_c_try_link "$LINENO"; then :
8701 emacs_cv_x11_toolkit_version_6=yes
8702 else
8703 emacs_cv_x11_toolkit_version_6=no
8705 rm -f core conftest.err conftest.$ac_objext \
8706 conftest$ac_exeext conftest.$ac_ext
8709 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8710 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8712 $as_echo "6 or newer" >&6; }
8714 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
8716 else
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8718 $as_echo "before 6" >&6; }
8721 OLDLIBS="$LIBS"
8722 if test x$HAVE_X11XTR6 = xyes; then
8723 LIBS="-lXt -lSM -lICE $LIBS"
8724 else
8725 LIBS="-lXt $LIBS"
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
8728 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
8729 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
8730 $as_echo_n "(cached) " >&6
8731 else
8732 ac_check_lib_save_LIBS=$LIBS
8733 LIBS="-lXmu $LIBS"
8734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8735 /* end confdefs.h. */
8737 /* Override any GCC internal prototype to avoid an error.
8738 Use char because int might match the return type of a GCC
8739 builtin and then its argument prototype would still apply. */
8740 #ifdef __cplusplus
8741 extern "C"
8742 #endif
8743 char XmuConvertStandardSelection ();
8745 main ()
8747 return XmuConvertStandardSelection ();
8749 return 0;
8751 _ACEOF
8752 if ac_fn_c_try_link "$LINENO"; then :
8753 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
8754 else
8755 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
8757 rm -f core conftest.err conftest.$ac_objext \
8758 conftest$ac_exeext conftest.$ac_ext
8759 LIBS=$ac_check_lib_save_LIBS
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8762 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
8763 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
8764 cat >>confdefs.h <<_ACEOF
8765 #define HAVE_LIBXMU 1
8766 _ACEOF
8768 LIBS="-lXmu $LIBS"
8772 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
8775 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8776 if test "${HAVE_X11}" = "yes"; then
8777 if test "${USE_X_TOOLKIT}" != "none"; then
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8779 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8780 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8781 $as_echo_n "(cached) " >&6
8782 else
8783 ac_check_lib_save_LIBS=$LIBS
8784 LIBS="-lXext $LIBS"
8785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8786 /* end confdefs.h. */
8788 /* Override any GCC internal prototype to avoid an error.
8789 Use char because int might match the return type of a GCC
8790 builtin and then its argument prototype would still apply. */
8791 #ifdef __cplusplus
8792 extern "C"
8793 #endif
8794 char XShapeQueryExtension ();
8796 main ()
8798 return XShapeQueryExtension ();
8800 return 0;
8802 _ACEOF
8803 if ac_fn_c_try_link "$LINENO"; then :
8804 ac_cv_lib_Xext_XShapeQueryExtension=yes
8805 else
8806 ac_cv_lib_Xext_XShapeQueryExtension=no
8808 rm -f core conftest.err conftest.$ac_objext \
8809 conftest$ac_exeext conftest.$ac_ext
8810 LIBS=$ac_check_lib_save_LIBS
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8813 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8814 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
8815 cat >>confdefs.h <<_ACEOF
8816 #define HAVE_LIBXEXT 1
8817 _ACEOF
8819 LIBS="-lXext $LIBS"
8826 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
8828 $as_echo_n "checking for Motif version 2.1... " >&6; }
8829 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
8830 $as_echo_n "(cached) " >&6
8831 else
8832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833 /* end confdefs.h. */
8834 #include <Xm/Xm.h>
8836 main ()
8838 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8839 int x = 5;
8840 #else
8841 Motif version prior to 2.1.
8842 #endif
8844 return 0;
8846 _ACEOF
8847 if ac_fn_c_try_compile "$LINENO"; then :
8848 emacs_cv_motif_version_2_1=yes
8849 else
8850 emacs_cv_motif_version_2_1=no
8852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
8855 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
8856 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
8857 if test $emacs_cv_motif_version_2_1 = yes; then
8858 HAVE_LIBXP=no
8860 $as_echo "#define HAVE_MOTIF_2_1 1" >>confdefs.h
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
8863 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
8864 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
8865 $as_echo_n "(cached) " >&6
8866 else
8867 ac_check_lib_save_LIBS=$LIBS
8868 LIBS="-lXp $LIBS"
8869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870 /* end confdefs.h. */
8872 /* Override any GCC internal prototype to avoid an error.
8873 Use char because int might match the return type of a GCC
8874 builtin and then its argument prototype would still apply. */
8875 #ifdef __cplusplus
8876 extern "C"
8877 #endif
8878 char XpCreateContext ();
8880 main ()
8882 return XpCreateContext ();
8884 return 0;
8886 _ACEOF
8887 if ac_fn_c_try_link "$LINENO"; then :
8888 ac_cv_lib_Xp_XpCreateContext=yes
8889 else
8890 ac_cv_lib_Xp_XpCreateContext=no
8892 rm -f core conftest.err conftest.$ac_objext \
8893 conftest$ac_exeext conftest.$ac_ext
8894 LIBS=$ac_check_lib_save_LIBS
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8897 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
8898 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
8899 HAVE_LIBXP=yes
8902 if test ${HAVE_LIBXP} = yes; then
8904 $as_echo "#define HAVE_LIBXP 1" >>confdefs.h
8907 else
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
8909 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
8910 if test "${emacs_cv_lesstif+set}" = set; then :
8911 $as_echo_n "(cached) " >&6
8912 else
8913 # We put this in CFLAGS temporarily to precede other -I options
8914 # that might be in CFLAGS temporarily.
8915 # We put this in CPPFLAGS where it precedes the other -I options.
8916 OLD_CPPFLAGS=$CPPFLAGS
8917 OLD_CFLAGS=$CFLAGS
8918 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8919 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921 /* end confdefs.h. */
8922 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8924 main ()
8926 int x = 5;
8928 return 0;
8930 _ACEOF
8931 if ac_fn_c_try_compile "$LINENO"; then :
8932 emacs_cv_lesstif=yes
8933 else
8934 emacs_cv_lesstif=no
8936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
8939 $as_echo "$emacs_cv_lesstif" >&6; }
8940 if test $emacs_cv_lesstif = yes; then
8941 # Make sure this -I option remains in CPPFLAGS after it is set
8942 # back to REAL_CPPFLAGS.
8943 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8944 # have those other -I options anyway. Ultimately, having this
8945 # directory ultimately in CPPFLAGS will be enough.
8946 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8947 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8948 else
8949 CFLAGS=$OLD_CFLAGS
8950 CPPFLAGS=$OLD_CPPFLAGS
8956 USE_TOOLKIT_SCROLL_BARS=no
8957 if test "${with_toolkit_scroll_bars}" != "no"; then
8958 if test "${USE_X_TOOLKIT}" != "none"; then
8959 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8960 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
8962 HAVE_XAW3D=no
8963 USE_TOOLKIT_SCROLL_BARS=yes
8964 elif test "${HAVE_XAW3D}" = "yes"; then
8965 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
8967 USE_TOOLKIT_SCROLL_BARS=yes
8969 elif test "${HAVE_GTK}" = "yes"; then
8970 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
8972 USE_TOOLKIT_SCROLL_BARS=yes
8973 elif test "${HAVE_NS}" = "yes"; then
8974 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
8976 USE_TOOLKIT_SCROLL_BARS=yes
8980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8981 /* end confdefs.h. */
8983 #include <X11/Xlib.h>
8984 #include <X11/Xresource.h>
8986 main ()
8988 XIMProc callback;
8990 return 0;
8992 _ACEOF
8993 if ac_fn_c_try_compile "$LINENO"; then :
8994 HAVE_XIM=yes
8996 $as_echo "#define HAVE_XIM 1" >>confdefs.h
8998 else
8999 HAVE_XIM=no
9001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9004 if test "${with_xim}" != "no"; then
9006 $as_echo "#define USE_XIM 1" >>confdefs.h
9011 if test "${HAVE_XIM}" != "no"; then
9012 late_CFLAGS=$CFLAGS
9013 if test "$GCC" = yes; then
9014 CFLAGS="$CFLAGS --pedantic-errors"
9016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9017 /* end confdefs.h. */
9019 #include <X11/Xlib.h>
9020 #include <X11/Xresource.h>
9022 main ()
9024 Display *display;
9025 XrmDatabase db;
9026 char *res_name;
9027 char *res_class;
9028 XIMProc callback;
9029 XPointer *client_data;
9030 #ifndef __GNUC__
9031 /* If we're not using GCC, it's probably not XFree86, and this is
9032 probably right, but we can't use something like --pedantic-errors. */
9033 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9034 char*, XIMProc, XPointer*);
9035 #endif
9036 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9037 client_data);
9039 return 0;
9041 _ACEOF
9042 if ac_fn_c_try_compile "$LINENO"; then :
9043 emacs_cv_arg6_star=yes
9045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9046 if test "$emacs_cv_arg6_star" = yes; then
9047 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9049 else
9050 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9053 CFLAGS=$late_CFLAGS
9056 ### Start of font-backend (under any platform) section.
9057 # (nothing here yet -- this is a placeholder)
9058 ### End of font-backend (under any platform) section.
9060 ### Start of font-backend (under X11) section.
9061 if test "${HAVE_X11}" = "yes"; then
9063 succeeded=no
9065 # Extract the first word of "pkg-config", so it can be a program name with args.
9066 set dummy pkg-config; ac_word=$2
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9068 $as_echo_n "checking for $ac_word... " >&6; }
9069 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9070 $as_echo_n "(cached) " >&6
9071 else
9072 case $PKG_CONFIG in
9073 [\\/]* | ?:[\\/]*)
9074 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9078 for as_dir in $PATH
9080 IFS=$as_save_IFS
9081 test -z "$as_dir" && as_dir=.
9082 for ac_exec_ext in '' $ac_executable_extensions; do
9083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9084 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9086 break 2
9088 done
9089 done
9090 IFS=$as_save_IFS
9092 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9094 esac
9096 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9097 if test -n "$PKG_CONFIG"; then
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9099 $as_echo "$PKG_CONFIG" >&6; }
9100 else
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9102 $as_echo "no" >&6; }
9107 if test "$PKG_CONFIG" = "no" ; then
9108 HAVE_FC=no
9109 else
9110 PKG_CONFIG_MIN_VERSION=0.9.0
9111 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
9113 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9115 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9117 $as_echo "yes" >&6; }
9118 succeeded=yes
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
9121 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9122 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
9124 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
9127 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9128 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
9130 $as_echo "$FONTCONFIG_LIBS" >&6; }
9131 else
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9133 $as_echo "no" >&6; }
9134 FONTCONFIG_CFLAGS=""
9135 FONTCONFIG_LIBS=""
9136 ## If we have a custom action on failure, don't print errors, but
9137 ## do set a variable so people can do so.
9138 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
9144 else
9145 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9146 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9150 if test $succeeded = yes; then
9151 HAVE_FC=yes
9152 else
9153 HAVE_FC=no
9157 ## Use -lXft if available, unless `--with-xft=no'.
9158 HAVE_XFT=maybe
9159 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
9160 with_xft="no";
9162 if test "x${with_xft}" != "xno"; then
9165 succeeded=no
9167 # Extract the first word of "pkg-config", so it can be a program name with args.
9168 set dummy pkg-config; ac_word=$2
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9170 $as_echo_n "checking for $ac_word... " >&6; }
9171 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9172 $as_echo_n "(cached) " >&6
9173 else
9174 case $PKG_CONFIG in
9175 [\\/]* | ?:[\\/]*)
9176 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9180 for as_dir in $PATH
9182 IFS=$as_save_IFS
9183 test -z "$as_dir" && as_dir=.
9184 for ac_exec_ext in '' $ac_executable_extensions; do
9185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9186 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9188 break 2
9190 done
9191 done
9192 IFS=$as_save_IFS
9194 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9196 esac
9198 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9199 if test -n "$PKG_CONFIG"; then
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9201 $as_echo "$PKG_CONFIG" >&6; }
9202 else
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9204 $as_echo "no" >&6; }
9209 if test "$PKG_CONFIG" = "no" ; then
9210 HAVE_XFT=no
9211 else
9212 PKG_CONFIG_MIN_VERSION=0.9.0
9213 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
9215 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
9217 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9219 $as_echo "yes" >&6; }
9220 succeeded=yes
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
9223 $as_echo_n "checking XFT_CFLAGS... " >&6; }
9224 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
9226 $as_echo "$XFT_CFLAGS" >&6; }
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
9229 $as_echo_n "checking XFT_LIBS... " >&6; }
9230 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
9232 $as_echo "$XFT_LIBS" >&6; }
9233 else
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9235 $as_echo "no" >&6; }
9236 XFT_CFLAGS=""
9237 XFT_LIBS=""
9238 ## If we have a custom action on failure, don't print errors, but
9239 ## do set a variable so people can do so.
9240 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
9246 else
9247 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9248 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9252 if test $succeeded = yes; then
9254 else
9255 HAVE_XFT=no
9258 ## Because xftfont.c uses XRenderQueryExtension, we also
9259 ## need to link to -lXrender.
9260 HAVE_XRENDER=no
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
9262 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
9263 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
9264 $as_echo_n "(cached) " >&6
9265 else
9266 ac_check_lib_save_LIBS=$LIBS
9267 LIBS="-lXrender $LIBS"
9268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9269 /* end confdefs.h. */
9271 /* Override any GCC internal prototype to avoid an error.
9272 Use char because int might match the return type of a GCC
9273 builtin and then its argument prototype would still apply. */
9274 #ifdef __cplusplus
9275 extern "C"
9276 #endif
9277 char XRenderQueryExtension ();
9279 main ()
9281 return XRenderQueryExtension ();
9283 return 0;
9285 _ACEOF
9286 if ac_fn_c_try_link "$LINENO"; then :
9287 ac_cv_lib_Xrender_XRenderQueryExtension=yes
9288 else
9289 ac_cv_lib_Xrender_XRenderQueryExtension=no
9291 rm -f core conftest.err conftest.$ac_objext \
9292 conftest$ac_exeext conftest.$ac_ext
9293 LIBS=$ac_check_lib_save_LIBS
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
9296 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
9297 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
9298 HAVE_XRENDER=yes
9301 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
9302 OLD_CPPFLAGS="$CPPFLAGS"
9303 OLD_CFLAGS="$CFLAGS"
9304 OLD_LIBS="$LIBS"
9305 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
9306 CFLAGS="$CFLAGS $XFT_CFLAGS"
9307 XFT_LIBS="-lXrender $XFT_LIBS"
9308 LIBS="$XFT_LIBS $LIBS"
9309 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
9310 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
9312 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
9313 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
9314 $as_echo_n "(cached) " >&6
9315 else
9316 ac_check_lib_save_LIBS=$LIBS
9317 LIBS="-lXft $XFT_LIBS $LIBS"
9318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9319 /* end confdefs.h. */
9321 /* Override any GCC internal prototype to avoid an error.
9322 Use char because int might match the return type of a GCC
9323 builtin and then its argument prototype would still apply. */
9324 #ifdef __cplusplus
9325 extern "C"
9326 #endif
9327 char XftFontOpen ();
9329 main ()
9331 return XftFontOpen ();
9333 return 0;
9335 _ACEOF
9336 if ac_fn_c_try_link "$LINENO"; then :
9337 ac_cv_lib_Xft_XftFontOpen=yes
9338 else
9339 ac_cv_lib_Xft_XftFontOpen=no
9341 rm -f core conftest.err conftest.$ac_objext \
9342 conftest$ac_exeext conftest.$ac_ext
9343 LIBS=$ac_check_lib_save_LIBS
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
9346 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
9347 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
9348 HAVE_XFT=yes
9355 if test "${HAVE_XFT}" = "yes"; then
9357 $as_echo "#define HAVE_XFT 1" >>confdefs.h
9360 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
9361 else
9362 CPPFLAGS="$OLD_CPPFLAGS"
9363 CFLAGS="$OLD_CFLAGS"
9364 LIBS="$OLD_LIBS"
9365 fi # "${HAVE_XFT}" = "yes"
9366 fi # "$HAVE_XFT" != no
9367 fi # "x${with_xft}" != "xno"
9369 if test "$HAVE_XFT" != "yes"; then
9370 HAVE_XFT=no
9374 HAVE_FREETYPE=no
9375 ## We used to allow building with FreeType and without Xft.
9376 ## However, the ftx font backend driver is not in good shape.
9377 if test "${HAVE_XFT}" = "yes"; then
9378 HAVE_FREETYPE=yes
9379 FONTCONFIG_CFLAGS=
9380 FONTCONFIG_LIBS=
9383 HAVE_LIBOTF=no
9384 if test "${HAVE_FREETYPE}" = "yes"; then
9386 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
9388 if test "${with_libotf}" != "no"; then
9390 succeeded=no
9392 # Extract the first word of "pkg-config", so it can be a program name with args.
9393 set dummy pkg-config; ac_word=$2
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9395 $as_echo_n "checking for $ac_word... " >&6; }
9396 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9397 $as_echo_n "(cached) " >&6
9398 else
9399 case $PKG_CONFIG in
9400 [\\/]* | ?:[\\/]*)
9401 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9405 for as_dir in $PATH
9407 IFS=$as_save_IFS
9408 test -z "$as_dir" && as_dir=.
9409 for ac_exec_ext in '' $ac_executable_extensions; do
9410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9411 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9413 break 2
9415 done
9416 done
9417 IFS=$as_save_IFS
9419 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9421 esac
9423 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9424 if test -n "$PKG_CONFIG"; then
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9426 $as_echo "$PKG_CONFIG" >&6; }
9427 else
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9429 $as_echo "no" >&6; }
9434 if test "$PKG_CONFIG" = "no" ; then
9435 HAVE_LIBOTF=no
9436 else
9437 PKG_CONFIG_MIN_VERSION=0.9.0
9438 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
9440 $as_echo_n "checking for libotf... " >&6; }
9442 if $PKG_CONFIG --exists "libotf" 2>&5; then
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9444 $as_echo "yes" >&6; }
9445 succeeded=yes
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
9448 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
9449 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
9451 $as_echo "$LIBOTF_CFLAGS" >&6; }
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
9454 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
9455 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
9457 $as_echo "$LIBOTF_LIBS" >&6; }
9458 else
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9460 $as_echo "no" >&6; }
9461 LIBOTF_CFLAGS=""
9462 LIBOTF_LIBS=""
9463 ## If we have a custom action on failure, don't print errors, but
9464 ## do set a variable so people can do so.
9465 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
9471 else
9472 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9473 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9477 if test $succeeded = yes; then
9478 HAVE_LIBOTF=yes
9479 else
9480 HAVE_LIBOTF=no
9483 if test "$HAVE_LIBOTF" = "yes"; then
9485 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
9488 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
9489 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
9490 $as_echo_n "(cached) " >&6
9491 else
9492 ac_check_lib_save_LIBS=$LIBS
9493 LIBS="-lotf $LIBS"
9494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9495 /* end confdefs.h. */
9497 /* Override any GCC internal prototype to avoid an error.
9498 Use char because int might match the return type of a GCC
9499 builtin and then its argument prototype would still apply. */
9500 #ifdef __cplusplus
9501 extern "C"
9502 #endif
9503 char OTF_get_variation_glyphs ();
9505 main ()
9507 return OTF_get_variation_glyphs ();
9509 return 0;
9511 _ACEOF
9512 if ac_fn_c_try_link "$LINENO"; then :
9513 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
9514 else
9515 ac_cv_lib_otf_OTF_get_variation_glyphs=no
9517 rm -f core conftest.err conftest.$ac_objext \
9518 conftest$ac_exeext conftest.$ac_ext
9519 LIBS=$ac_check_lib_save_LIBS
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
9522 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
9523 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
9524 HAVE_OTF_GET_VARIATION_GLYPHS=yes
9525 else
9526 HAVE_OTF_GET_VARIATION_GLYPHS=no
9529 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
9531 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
9538 HAVE_M17N_FLT=no
9539 if test "${HAVE_LIBOTF}" = yes; then
9540 if test "${with_m17n_flt}" != "no"; then
9542 succeeded=no
9544 # Extract the first word of "pkg-config", so it can be a program name with args.
9545 set dummy pkg-config; ac_word=$2
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9547 $as_echo_n "checking for $ac_word... " >&6; }
9548 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9549 $as_echo_n "(cached) " >&6
9550 else
9551 case $PKG_CONFIG in
9552 [\\/]* | ?:[\\/]*)
9553 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9557 for as_dir in $PATH
9559 IFS=$as_save_IFS
9560 test -z "$as_dir" && as_dir=.
9561 for ac_exec_ext in '' $ac_executable_extensions; do
9562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9563 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9565 break 2
9567 done
9568 done
9569 IFS=$as_save_IFS
9571 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9573 esac
9575 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9576 if test -n "$PKG_CONFIG"; then
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9578 $as_echo "$PKG_CONFIG" >&6; }
9579 else
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9581 $as_echo "no" >&6; }
9586 if test "$PKG_CONFIG" = "no" ; then
9587 HAVE_M17N_FLT=no
9588 else
9589 PKG_CONFIG_MIN_VERSION=0.9.0
9590 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
9592 $as_echo_n "checking for m17n-flt... " >&6; }
9594 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9596 $as_echo "yes" >&6; }
9597 succeeded=yes
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
9600 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
9601 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
9603 $as_echo "$M17N_FLT_CFLAGS" >&6; }
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
9606 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
9607 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
9609 $as_echo "$M17N_FLT_LIBS" >&6; }
9610 else
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9612 $as_echo "no" >&6; }
9613 M17N_FLT_CFLAGS=""
9614 M17N_FLT_LIBS=""
9615 ## If we have a custom action on failure, don't print errors, but
9616 ## do set a variable so people can do so.
9617 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
9623 else
9624 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9625 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9629 if test $succeeded = yes; then
9630 HAVE_M17N_FLT=yes
9631 else
9632 HAVE_M17N_FLT=no
9635 if test "$HAVE_M17N_FLT" = "yes"; then
9637 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
9642 else
9643 HAVE_XFT=no
9644 HAVE_FREETYPE=no
9645 HAVE_LIBOTF=no
9646 HAVE_M17N_FLT=no
9648 ### End of font-backend (under X11) section.
9659 ### Use -lXpm if available, unless `--with-xpm=no'.
9660 HAVE_XPM=no
9661 if test "${HAVE_X11}" = "yes"; then
9662 if test "${with_xpm}" != "no"; then
9663 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
9664 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
9666 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
9667 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
9668 $as_echo_n "(cached) " >&6
9669 else
9670 ac_check_lib_save_LIBS=$LIBS
9671 LIBS="-lXpm -lX11 $LIBS"
9672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9673 /* end confdefs.h. */
9675 /* Override any GCC internal prototype to avoid an error.
9676 Use char because int might match the return type of a GCC
9677 builtin and then its argument prototype would still apply. */
9678 #ifdef __cplusplus
9679 extern "C"
9680 #endif
9681 char XpmReadFileToPixmap ();
9683 main ()
9685 return XpmReadFileToPixmap ();
9687 return 0;
9689 _ACEOF
9690 if ac_fn_c_try_link "$LINENO"; then :
9691 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9692 else
9693 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9695 rm -f core conftest.err conftest.$ac_objext \
9696 conftest$ac_exeext conftest.$ac_ext
9697 LIBS=$ac_check_lib_save_LIBS
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9700 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
9701 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
9702 HAVE_XPM=yes
9708 if test "${HAVE_XPM}" = "yes"; then
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
9710 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
9711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9712 /* end confdefs.h. */
9713 #include "X11/xpm.h"
9714 #ifndef XpmReturnAllocPixels
9715 no_return_alloc_pixels
9716 #endif
9718 _ACEOF
9719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9720 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
9721 HAVE_XPM=no
9722 else
9723 HAVE_XPM=yes
9725 rm -f conftest*
9728 if test "${HAVE_XPM}" = "yes"; then
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9730 $as_echo "yes" >&6; }
9731 else
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9733 $as_echo "no" >&6; }
9738 if test "${HAVE_XPM}" = "yes"; then
9740 $as_echo "#define HAVE_XPM 1" >>confdefs.h
9745 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9746 HAVE_JPEG=no
9747 if test "${HAVE_X11}" = "yes"; then
9748 if test "${with_jpeg}" != "no"; then
9749 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
9750 if test "x$ac_cv_header_jerror_h" = x""yes; then :
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
9752 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
9753 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
9754 $as_echo_n "(cached) " >&6
9755 else
9756 ac_check_lib_save_LIBS=$LIBS
9757 LIBS="-ljpeg $LIBS"
9758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9759 /* end confdefs.h. */
9761 /* Override any GCC internal prototype to avoid an error.
9762 Use char because int might match the return type of a GCC
9763 builtin and then its argument prototype would still apply. */
9764 #ifdef __cplusplus
9765 extern "C"
9766 #endif
9767 char jpeg_destroy_compress ();
9769 main ()
9771 return jpeg_destroy_compress ();
9773 return 0;
9775 _ACEOF
9776 if ac_fn_c_try_link "$LINENO"; then :
9777 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
9778 else
9779 ac_cv_lib_jpeg_jpeg_destroy_compress=no
9781 rm -f core conftest.err conftest.$ac_objext \
9782 conftest$ac_exeext conftest.$ac_ext
9783 LIBS=$ac_check_lib_save_LIBS
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9786 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
9787 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
9788 HAVE_JPEG=yes
9796 if test "${HAVE_JPEG}" = "yes"; then
9797 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
9799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9800 /* end confdefs.h. */
9801 #include <jpeglib.h>
9802 version=JPEG_LIB_VERSION
9804 _ACEOF
9805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9806 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
9807 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
9809 else
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
9811 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9812 HAVE_JPEG=no
9814 rm -f conftest*
9819 ### Use -lpng if available, unless `--with-png=no'.
9820 HAVE_PNG=no
9821 if test "${HAVE_X11}" = "yes"; then
9822 if test "${with_png}" != "no"; then
9823 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
9824 # in /usr/include/libpng.
9825 for ac_header in png.h libpng/png.h
9826 do :
9827 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9828 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9829 eval as_val=\$$as_ac_Header
9830 if test "x$as_val" = x""yes; then :
9831 cat >>confdefs.h <<_ACEOF
9832 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9833 _ACEOF
9837 done
9839 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
9841 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
9842 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
9843 $as_echo_n "(cached) " >&6
9844 else
9845 ac_check_lib_save_LIBS=$LIBS
9846 LIBS="-lpng -lz -lm $LIBS"
9847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9848 /* end confdefs.h. */
9850 /* Override any GCC internal prototype to avoid an error.
9851 Use char because int might match the return type of a GCC
9852 builtin and then its argument prototype would still apply. */
9853 #ifdef __cplusplus
9854 extern "C"
9855 #endif
9856 char png_get_channels ();
9858 main ()
9860 return png_get_channels ();
9862 return 0;
9864 _ACEOF
9865 if ac_fn_c_try_link "$LINENO"; then :
9866 ac_cv_lib_png_png_get_channels=yes
9867 else
9868 ac_cv_lib_png_png_get_channels=no
9870 rm -f core conftest.err conftest.$ac_objext \
9871 conftest$ac_exeext conftest.$ac_ext
9872 LIBS=$ac_check_lib_save_LIBS
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
9875 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
9876 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
9877 HAVE_PNG=yes
9883 if test "${HAVE_PNG}" = "yes"; then
9885 $as_echo "#define HAVE_PNG 1" >>confdefs.h
9890 ### Use -ltiff if available, unless `--with-tiff=no'.
9891 HAVE_TIFF=no
9892 if test "${HAVE_X11}" = "yes"; then
9893 if test "${with_tiff}" != "no"; then
9894 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
9895 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
9896 tifflibs="-lz -lm"
9897 # At least one tiff package requires the jpeg library.
9898 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
9900 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
9901 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
9902 $as_echo_n "(cached) " >&6
9903 else
9904 ac_check_lib_save_LIBS=$LIBS
9905 LIBS="-ltiff $tifflibs $LIBS"
9906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907 /* end confdefs.h. */
9909 /* Override any GCC internal prototype to avoid an error.
9910 Use char because int might match the return type of a GCC
9911 builtin and then its argument prototype would still apply. */
9912 #ifdef __cplusplus
9913 extern "C"
9914 #endif
9915 char TIFFGetVersion ();
9917 main ()
9919 return TIFFGetVersion ();
9921 return 0;
9923 _ACEOF
9924 if ac_fn_c_try_link "$LINENO"; then :
9925 ac_cv_lib_tiff_TIFFGetVersion=yes
9926 else
9927 ac_cv_lib_tiff_TIFFGetVersion=no
9929 rm -f core conftest.err conftest.$ac_objext \
9930 conftest$ac_exeext conftest.$ac_ext
9931 LIBS=$ac_check_lib_save_LIBS
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9934 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
9935 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
9936 HAVE_TIFF=yes
9944 if test "${HAVE_TIFF}" = "yes"; then
9946 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
9951 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
9952 HAVE_GIF=no
9953 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
9954 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
9955 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
9956 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9957 # Earlier versions can crash Emacs.
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
9959 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
9960 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
9961 $as_echo_n "(cached) " >&6
9962 else
9963 ac_check_lib_save_LIBS=$LIBS
9964 LIBS="-lgif $LIBS"
9965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9966 /* end confdefs.h. */
9968 /* Override any GCC internal prototype to avoid an error.
9969 Use char because int might match the return type of a GCC
9970 builtin and then its argument prototype would still apply. */
9971 #ifdef __cplusplus
9972 extern "C"
9973 #endif
9974 char EGifPutExtensionLast ();
9976 main ()
9978 return EGifPutExtensionLast ();
9980 return 0;
9982 _ACEOF
9983 if ac_fn_c_try_link "$LINENO"; then :
9984 ac_cv_lib_gif_EGifPutExtensionLast=yes
9985 else
9986 ac_cv_lib_gif_EGifPutExtensionLast=no
9988 rm -f core conftest.err conftest.$ac_objext \
9989 conftest$ac_exeext conftest.$ac_ext
9990 LIBS=$ac_check_lib_save_LIBS
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
9993 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
9994 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
9995 HAVE_GIF=yes
9996 else
9997 try_libungif=yes
10004 if test "$HAVE_GIF" = yes; then
10005 ac_gif_lib_name="-lgif"
10008 # If gif_lib.h but no libgif, try libungif.
10009 if test x"$try_libungif" = xyes; then
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10011 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10012 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10013 $as_echo_n "(cached) " >&6
10014 else
10015 ac_check_lib_save_LIBS=$LIBS
10016 LIBS="-lungif $LIBS"
10017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10018 /* end confdefs.h. */
10020 /* Override any GCC internal prototype to avoid an error.
10021 Use char because int might match the return type of a GCC
10022 builtin and then its argument prototype would still apply. */
10023 #ifdef __cplusplus
10024 extern "C"
10025 #endif
10026 char EGifPutExtensionLast ();
10028 main ()
10030 return EGifPutExtensionLast ();
10032 return 0;
10034 _ACEOF
10035 if ac_fn_c_try_link "$LINENO"; then :
10036 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10037 else
10038 ac_cv_lib_ungif_EGifPutExtensionLast=no
10040 rm -f core conftest.err conftest.$ac_objext \
10041 conftest$ac_exeext conftest.$ac_ext
10042 LIBS=$ac_check_lib_save_LIBS
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10045 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10046 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
10047 HAVE_GIF=yes
10051 if test "$HAVE_GIF" = yes; then
10053 $as_echo "#define LIBGIF -lungif" >>confdefs.h
10055 ac_gif_lib_name="-lungif"
10059 if test "${HAVE_GIF}" = "yes"; then
10061 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10066 if test "${HAVE_X11}" = "yes"; then
10067 MISSING=""
10068 WITH_NO=""
10069 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
10070 MISSING="libXpm" && WITH_NO="--with-xpm=no"
10071 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
10072 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
10073 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
10074 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
10075 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
10076 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
10077 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
10078 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
10080 if test "X${MISSING}" != X; then
10081 as_fn_error "The following required libraries were not found:
10082 $MISSING
10083 Maybe some development libraries/packages are missing?
10084 If you don't want to link with them give
10085 $WITH_NO
10086 as options to configure" "$LINENO" 5
10090 ### Use -lgpm if available, unless `--with-gpm=no'.
10091 HAVE_GPM=no
10092 if test "${with_gpm}" != "no"; then
10093 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
10094 if test "x$ac_cv_header_gpm_h" = x""yes; then :
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
10096 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10097 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
10098 $as_echo_n "(cached) " >&6
10099 else
10100 ac_check_lib_save_LIBS=$LIBS
10101 LIBS="-lgpm $LIBS"
10102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10103 /* end confdefs.h. */
10105 /* Override any GCC internal prototype to avoid an error.
10106 Use char because int might match the return type of a GCC
10107 builtin and then its argument prototype would still apply. */
10108 #ifdef __cplusplus
10109 extern "C"
10110 #endif
10111 char Gpm_Open ();
10113 main ()
10115 return Gpm_Open ();
10117 return 0;
10119 _ACEOF
10120 if ac_fn_c_try_link "$LINENO"; then :
10121 ac_cv_lib_gpm_Gpm_Open=yes
10122 else
10123 ac_cv_lib_gpm_Gpm_Open=no
10125 rm -f core conftest.err conftest.$ac_objext \
10126 conftest$ac_exeext conftest.$ac_ext
10127 LIBS=$ac_check_lib_save_LIBS
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10130 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10131 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
10132 HAVE_GPM=yes
10140 if test "${HAVE_GPM}" = "yes"; then
10142 $as_echo "#define HAVE_GPM 1" >>confdefs.h
10146 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
10147 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
10149 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
10155 ### Use NeXTstep API to implement GUI.
10156 if test "${HAVE_NS}" = "yes"; then
10158 $as_echo "#define HAVE_NS 1" >>confdefs.h
10160 if test "${NS_IMPL_COCOA}" = "yes"; then
10162 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
10164 GNU_OBJC_CFLAGS=
10166 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
10168 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
10170 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
10172 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
10174 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10177 # We also have mouse menus.
10178 HAVE_MENUS=yes
10179 OTHER_FILES=ns-app
10183 ### Use session management (-lSM -lICE) if available
10184 HAVE_X_SM=no
10185 if test "${HAVE_X11}" = "yes"; then
10186 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10187 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
10189 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
10190 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
10191 $as_echo_n "(cached) " >&6
10192 else
10193 ac_check_lib_save_LIBS=$LIBS
10194 LIBS="-lSM -lICE $LIBS"
10195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10196 /* end confdefs.h. */
10198 /* Override any GCC internal prototype to avoid an error.
10199 Use char because int might match the return type of a GCC
10200 builtin and then its argument prototype would still apply. */
10201 #ifdef __cplusplus
10202 extern "C"
10203 #endif
10204 char SmcOpenConnection ();
10206 main ()
10208 return SmcOpenConnection ();
10210 return 0;
10212 _ACEOF
10213 if ac_fn_c_try_link "$LINENO"; then :
10214 ac_cv_lib_SM_SmcOpenConnection=yes
10215 else
10216 ac_cv_lib_SM_SmcOpenConnection=no
10218 rm -f core conftest.err conftest.$ac_objext \
10219 conftest$ac_exeext conftest.$ac_ext
10220 LIBS=$ac_check_lib_save_LIBS
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10223 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
10224 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
10225 HAVE_X_SM=yes
10232 if test "${HAVE_X_SM}" = "yes"; then
10234 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
10236 case "$LIBS" in
10237 *-lSM*) ;;
10238 *) LIBS="-lSM -lICE $LIBS" ;;
10239 esac
10243 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
10245 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
10246 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
10247 $as_echo_n "(cached) " >&6
10248 else
10249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10250 /* end confdefs.h. */
10251 #include <netdb.h>
10253 main ()
10255 return h_errno;
10257 return 0;
10259 _ACEOF
10260 if ac_fn_c_try_link "$LINENO"; then :
10261 emacs_cv_netdb_declares_h_errno=yes
10262 else
10263 emacs_cv_netdb_declares_h_errno=no
10265 rm -f core conftest.err conftest.$ac_objext \
10266 conftest$ac_exeext conftest.$ac_ext
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
10269 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
10270 if test $emacs_cv_netdb_declares_h_errno = yes; then
10272 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
10276 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10277 # for constant arguments. Useless!
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10279 $as_echo_n "checking for working alloca.h... " >&6; }
10280 if test "${ac_cv_working_alloca_h+set}" = set; then :
10281 $as_echo_n "(cached) " >&6
10282 else
10283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10284 /* end confdefs.h. */
10285 #include <alloca.h>
10287 main ()
10289 char *p = (char *) alloca (2 * sizeof (int));
10290 if (p) return 0;
10292 return 0;
10294 _ACEOF
10295 if ac_fn_c_try_link "$LINENO"; then :
10296 ac_cv_working_alloca_h=yes
10297 else
10298 ac_cv_working_alloca_h=no
10300 rm -f core conftest.err conftest.$ac_objext \
10301 conftest$ac_exeext conftest.$ac_ext
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10304 $as_echo "$ac_cv_working_alloca_h" >&6; }
10305 if test $ac_cv_working_alloca_h = yes; then
10307 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10312 $as_echo_n "checking for alloca... " >&6; }
10313 if test "${ac_cv_func_alloca_works+set}" = set; then :
10314 $as_echo_n "(cached) " >&6
10315 else
10316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10317 /* end confdefs.h. */
10318 #ifdef __GNUC__
10319 # define alloca __builtin_alloca
10320 #else
10321 # ifdef _MSC_VER
10322 # include <malloc.h>
10323 # define alloca _alloca
10324 # else
10325 # ifdef HAVE_ALLOCA_H
10326 # include <alloca.h>
10327 # else
10328 # ifdef _AIX
10329 #pragma alloca
10330 # else
10331 # ifndef alloca /* predefined by HP cc +Olibcalls */
10332 char *alloca ();
10333 # endif
10334 # endif
10335 # endif
10336 # endif
10337 #endif
10340 main ()
10342 char *p = (char *) alloca (1);
10343 if (p) return 0;
10345 return 0;
10347 _ACEOF
10348 if ac_fn_c_try_link "$LINENO"; then :
10349 ac_cv_func_alloca_works=yes
10350 else
10351 ac_cv_func_alloca_works=no
10353 rm -f core conftest.err conftest.$ac_objext \
10354 conftest$ac_exeext conftest.$ac_ext
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10357 $as_echo "$ac_cv_func_alloca_works" >&6; }
10359 if test $ac_cv_func_alloca_works = yes; then
10361 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10363 else
10364 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10365 # that cause trouble. Some versions do not even contain alloca or
10366 # contain a buggy version. If you still want to use their alloca,
10367 # use ar to extract alloca.o from them instead of compiling alloca.c.
10369 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10371 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10375 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10376 if test "${ac_cv_os_cray+set}" = set; then :
10377 $as_echo_n "(cached) " >&6
10378 else
10379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10380 /* end confdefs.h. */
10381 #if defined CRAY && ! defined CRAY2
10382 webecray
10383 #else
10384 wenotbecray
10385 #endif
10387 _ACEOF
10388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10389 $EGREP "webecray" >/dev/null 2>&1; then :
10390 ac_cv_os_cray=yes
10391 else
10392 ac_cv_os_cray=no
10394 rm -f conftest*
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10398 $as_echo "$ac_cv_os_cray" >&6; }
10399 if test $ac_cv_os_cray = yes; then
10400 for ac_func in _getb67 GETB67 getb67; do
10401 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10402 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10403 eval as_val=\$$as_ac_var
10404 if test "x$as_val" = x""yes; then :
10406 cat >>confdefs.h <<_ACEOF
10407 #define CRAY_STACKSEG_END $ac_func
10408 _ACEOF
10410 break
10413 done
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10417 $as_echo_n "checking stack direction for C alloca... " >&6; }
10418 if test "${ac_cv_c_stack_direction+set}" = set; then :
10419 $as_echo_n "(cached) " >&6
10420 else
10421 if test "$cross_compiling" = yes; then :
10422 ac_cv_c_stack_direction=0
10423 else
10424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10425 /* end confdefs.h. */
10426 $ac_includes_default
10428 find_stack_direction ()
10430 static char *addr = 0;
10431 auto char dummy;
10432 if (addr == 0)
10434 addr = &dummy;
10435 return find_stack_direction ();
10437 else
10438 return (&dummy > addr) ? 1 : -1;
10442 main ()
10444 return find_stack_direction () < 0;
10446 _ACEOF
10447 if ac_fn_c_try_run "$LINENO"; then :
10448 ac_cv_c_stack_direction=1
10449 else
10450 ac_cv_c_stack_direction=-1
10452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10453 conftest.$ac_objext conftest.beam conftest.$ac_ext
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10458 $as_echo "$ac_cv_c_stack_direction" >&6; }
10459 cat >>confdefs.h <<_ACEOF
10460 #define STACK_DIRECTION $ac_cv_c_stack_direction
10461 _ACEOF
10467 if test x"$ac_cv_func_alloca_works" != xyes; then
10468 as_fn_error "a system implementation of alloca is required " "$LINENO" 5
10471 # fmod, logb, and frexp are found in -lm on most systems.
10472 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
10474 $as_echo_n "checking for sqrt in -lm... " >&6; }
10475 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
10476 $as_echo_n "(cached) " >&6
10477 else
10478 ac_check_lib_save_LIBS=$LIBS
10479 LIBS="-lm $LIBS"
10480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10481 /* end confdefs.h. */
10483 /* Override any GCC internal prototype to avoid an error.
10484 Use char because int might match the return type of a GCC
10485 builtin and then its argument prototype would still apply. */
10486 #ifdef __cplusplus
10487 extern "C"
10488 #endif
10489 char sqrt ();
10491 main ()
10493 return sqrt ();
10495 return 0;
10497 _ACEOF
10498 if ac_fn_c_try_link "$LINENO"; then :
10499 ac_cv_lib_m_sqrt=yes
10500 else
10501 ac_cv_lib_m_sqrt=no
10503 rm -f core conftest.err conftest.$ac_objext \
10504 conftest$ac_exeext conftest.$ac_ext
10505 LIBS=$ac_check_lib_save_LIBS
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
10508 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
10509 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
10510 cat >>confdefs.h <<_ACEOF
10511 #define HAVE_LIBM 1
10512 _ACEOF
10514 LIBS="-lm $LIBS"
10519 # Check for mail-locking functions in a "mail" library. Probably this should
10520 # have the same check as for liblockfile below.
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
10522 $as_echo_n "checking for maillock in -lmail... " >&6; }
10523 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
10524 $as_echo_n "(cached) " >&6
10525 else
10526 ac_check_lib_save_LIBS=$LIBS
10527 LIBS="-lmail $LIBS"
10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10529 /* end confdefs.h. */
10531 /* Override any GCC internal prototype to avoid an error.
10532 Use char because int might match the return type of a GCC
10533 builtin and then its argument prototype would still apply. */
10534 #ifdef __cplusplus
10535 extern "C"
10536 #endif
10537 char maillock ();
10539 main ()
10541 return maillock ();
10543 return 0;
10545 _ACEOF
10546 if ac_fn_c_try_link "$LINENO"; then :
10547 ac_cv_lib_mail_maillock=yes
10548 else
10549 ac_cv_lib_mail_maillock=no
10551 rm -f core conftest.err conftest.$ac_objext \
10552 conftest$ac_exeext conftest.$ac_ext
10553 LIBS=$ac_check_lib_save_LIBS
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
10556 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
10557 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
10558 cat >>confdefs.h <<_ACEOF
10559 #define HAVE_LIBMAIL 1
10560 _ACEOF
10562 LIBS="-lmail $LIBS"
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
10567 $as_echo_n "checking for maillock in -llockfile... " >&6; }
10568 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
10569 $as_echo_n "(cached) " >&6
10570 else
10571 ac_check_lib_save_LIBS=$LIBS
10572 LIBS="-llockfile $LIBS"
10573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10574 /* end confdefs.h. */
10576 /* Override any GCC internal prototype to avoid an error.
10577 Use char because int might match the return type of a GCC
10578 builtin and then its argument prototype would still apply. */
10579 #ifdef __cplusplus
10580 extern "C"
10581 #endif
10582 char maillock ();
10584 main ()
10586 return maillock ();
10588 return 0;
10590 _ACEOF
10591 if ac_fn_c_try_link "$LINENO"; then :
10592 ac_cv_lib_lockfile_maillock=yes
10593 else
10594 ac_cv_lib_lockfile_maillock=no
10596 rm -f core conftest.err conftest.$ac_objext \
10597 conftest$ac_exeext conftest.$ac_ext
10598 LIBS=$ac_check_lib_save_LIBS
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
10601 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
10602 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
10603 cat >>confdefs.h <<_ACEOF
10604 #define HAVE_LIBLOCKFILE 1
10605 _ACEOF
10607 LIBS="-llockfile $LIBS"
10611 # If we have the shared liblockfile, assume we must use it for mail
10612 # locking (e.g. Debian). If we couldn't link against liblockfile
10613 # (no liblockfile.a installed), ensure that we don't need to.
10614 if test "$ac_cv_lib_lockfile_maillock" = no; then
10615 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10616 set dummy liblockfile.so; ac_word=$2
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10618 $as_echo_n "checking for $ac_word... " >&6; }
10619 if test "${ac_cv_prog_liblockfile+set}" = set; then :
10620 $as_echo_n "(cached) " >&6
10621 else
10622 if test -n "$liblockfile"; then
10623 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
10624 else
10625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10626 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10627 for as_dir in $as_dummy
10629 IFS=$as_save_IFS
10630 test -z "$as_dir" && as_dir=.
10631 for ac_exec_ext in '' $ac_executable_extensions; do
10632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10633 ac_cv_prog_liblockfile="yes"
10634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10635 break 2
10637 done
10638 done
10639 IFS=$as_save_IFS
10641 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
10644 liblockfile=$ac_cv_prog_liblockfile
10645 if test -n "$liblockfile"; then
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
10647 $as_echo "$liblockfile" >&6; }
10648 else
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10650 $as_echo "no" >&6; }
10654 if test $ac_cv_prog_liblockfile = yes; then
10655 as_fn_error "Shared liblockfile found but can't link against it.
10656 This probably means that movemail could lose mail.
10657 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
10658 else :
10661 for ac_func in touchlock
10662 do :
10663 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
10664 if test "x$ac_cv_func_touchlock" = x""yes; then :
10665 cat >>confdefs.h <<_ACEOF
10666 #define HAVE_TOUCHLOCK 1
10667 _ACEOF
10670 done
10672 for ac_header in maillock.h
10673 do :
10674 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
10675 if test "x$ac_cv_header_maillock_h" = x""yes; then :
10676 cat >>confdefs.h <<_ACEOF
10677 #define HAVE_MAILLOCK_H 1
10678 _ACEOF
10682 done
10685 for ac_func in gethostname getdomainname dup2 \
10686 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
10687 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
10688 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
10689 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
10690 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
10691 sendto recvfrom getsockopt setsockopt getsockname getpeername \
10692 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
10693 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
10694 cfmakeraw cfsetspeed
10695 do :
10696 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10697 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10698 eval as_val=\$$as_ac_var
10699 if test "x$as_val" = x""yes; then :
10700 cat >>confdefs.h <<_ACEOF
10701 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10702 _ACEOF
10705 done
10708 for ac_header in sys/un.h
10709 do :
10710 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
10711 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
10712 cat >>confdefs.h <<_ACEOF
10713 #define HAVE_SYS_UN_H 1
10714 _ACEOF
10718 done
10726 for ac_func in $ac_func_list
10727 do :
10728 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10729 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10730 eval as_val=\$$as_ac_var
10731 if test "x$as_val" = x""yes; then :
10732 cat >>confdefs.h <<_ACEOF
10733 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10734 _ACEOF
10737 done
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
10744 $as_echo_n "checking for working mktime... " >&6; }
10745 if test "${ac_cv_func_working_mktime+set}" = set; then :
10746 $as_echo_n "(cached) " >&6
10747 else
10748 if test "$cross_compiling" = yes; then :
10749 ac_cv_func_working_mktime=no
10750 else
10751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10752 /* end confdefs.h. */
10753 /* Test program from Paul Eggert and Tony Leneis. */
10754 #ifdef TIME_WITH_SYS_TIME
10755 # include <sys/time.h>
10756 # include <time.h>
10757 #else
10758 # ifdef HAVE_SYS_TIME_H
10759 # include <sys/time.h>
10760 # else
10761 # include <time.h>
10762 # endif
10763 #endif
10765 #include <limits.h>
10766 #include <stdlib.h>
10768 #ifdef HAVE_UNISTD_H
10769 # include <unistd.h>
10770 #endif
10772 #ifndef HAVE_ALARM
10773 # define alarm(X) /* empty */
10774 #endif
10776 /* Work around redefinition to rpl_putenv by other config tests. */
10777 #undef putenv
10779 static time_t time_t_max;
10780 static time_t time_t_min;
10782 /* Values we'll use to set the TZ environment variable. */
10783 static char *tz_strings[] = {
10784 (char *) 0, "TZ=GMT0", "TZ=JST-9",
10785 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10787 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10789 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
10790 Based on a problem report from Andreas Jaeger. */
10791 static int
10792 spring_forward_gap ()
10794 /* glibc (up to about 1998-10-07) failed this test. */
10795 struct tm tm;
10797 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10798 instead of "TZ=America/Vancouver" in order to detect the bug even
10799 on systems that don't support the Olson extension, or don't have the
10800 full zoneinfo tables installed. */
10801 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10803 tm.tm_year = 98;
10804 tm.tm_mon = 3;
10805 tm.tm_mday = 5;
10806 tm.tm_hour = 2;
10807 tm.tm_min = 0;
10808 tm.tm_sec = 0;
10809 tm.tm_isdst = -1;
10810 return mktime (&tm) != (time_t) -1;
10813 static int
10814 mktime_test1 (now)
10815 time_t now;
10817 struct tm *lt;
10818 return ! (lt = localtime (&now)) || mktime (lt) == now;
10821 static int
10822 mktime_test (now)
10823 time_t now;
10825 return (mktime_test1 (now)
10826 && mktime_test1 ((time_t) (time_t_max - now))
10827 && mktime_test1 ((time_t) (time_t_min + now)));
10830 static int
10831 irix_6_4_bug ()
10833 /* Based on code from Ariel Faigon. */
10834 struct tm tm;
10835 tm.tm_year = 96;
10836 tm.tm_mon = 3;
10837 tm.tm_mday = 0;
10838 tm.tm_hour = 0;
10839 tm.tm_min = 0;
10840 tm.tm_sec = 0;
10841 tm.tm_isdst = -1;
10842 mktime (&tm);
10843 return tm.tm_mon == 2 && tm.tm_mday == 31;
10846 static int
10847 bigtime_test (j)
10848 int j;
10850 struct tm tm;
10851 time_t now;
10852 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10853 now = mktime (&tm);
10854 if (now != (time_t) -1)
10856 struct tm *lt = localtime (&now);
10857 if (! (lt
10858 && lt->tm_year == tm.tm_year
10859 && lt->tm_mon == tm.tm_mon
10860 && lt->tm_mday == tm.tm_mday
10861 && lt->tm_hour == tm.tm_hour
10862 && lt->tm_min == tm.tm_min
10863 && lt->tm_sec == tm.tm_sec
10864 && lt->tm_yday == tm.tm_yday
10865 && lt->tm_wday == tm.tm_wday
10866 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10867 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10868 return 0;
10870 return 1;
10873 static int
10874 year_2050_test ()
10876 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
10877 ignoring leap seconds. */
10878 unsigned long int answer = 2527315200UL;
10880 struct tm tm;
10881 time_t t;
10882 tm.tm_year = 2050 - 1900;
10883 tm.tm_mon = 2 - 1;
10884 tm.tm_mday = 1;
10885 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
10886 tm.tm_isdst = -1;
10888 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10889 instead of "TZ=America/Vancouver" in order to detect the bug even
10890 on systems that don't support the Olson extension, or don't have the
10891 full zoneinfo tables installed. */
10892 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10894 t = mktime (&tm);
10896 /* Check that the result is either a failure, or close enough
10897 to the correct answer that we can assume the discrepancy is
10898 due to leap seconds. */
10899 return (t == (time_t) -1
10900 || (0 < t && answer - 120 <= t && t <= answer + 120));
10904 main ()
10906 time_t t, delta;
10907 int i, j;
10909 /* This test makes some buggy mktime implementations loop.
10910 Give up after 60 seconds; a mktime slower than that
10911 isn't worth using anyway. */
10912 alarm (60);
10914 for (;;)
10916 t = (time_t_max << 1) + 1;
10917 if (t <= time_t_max)
10918 break;
10919 time_t_max = t;
10921 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
10923 delta = time_t_max / 997; /* a suitable prime number */
10924 for (i = 0; i < N_STRINGS; i++)
10926 if (tz_strings[i])
10927 putenv (tz_strings[i]);
10929 for (t = 0; t <= time_t_max - delta; t += delta)
10930 if (! mktime_test (t))
10931 return 1;
10932 if (! (mktime_test ((time_t) 1)
10933 && mktime_test ((time_t) (60 * 60))
10934 && mktime_test ((time_t) (60 * 60 * 24))))
10935 return 1;
10937 for (j = 1; ; j <<= 1)
10938 if (! bigtime_test (j))
10939 return 1;
10940 else if (INT_MAX / 2 < j)
10941 break;
10942 if (! bigtime_test (INT_MAX))
10943 return 1;
10945 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
10947 _ACEOF
10948 if ac_fn_c_try_run "$LINENO"; then :
10949 ac_cv_func_working_mktime=yes
10950 else
10951 ac_cv_func_working_mktime=no
10953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10954 conftest.$ac_objext conftest.beam conftest.$ac_ext
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
10959 $as_echo "$ac_cv_func_working_mktime" >&6; }
10960 if test $ac_cv_func_working_mktime = no; then
10961 case " $LIBOBJS " in
10962 *" mktime.$ac_objext "* ) ;;
10963 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
10965 esac
10969 if test "$ac_cv_func_working_mktime" = no; then
10971 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
10975 ac_have_func=no # yes means we've found a way to get the load average.
10977 # Make sure getloadavg.c is where it belongs, at configure-time.
10978 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
10979 as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
10981 ac_save_LIBS=$LIBS
10983 # Check for getloadavg, but be sure not to touch the cache variable.
10984 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
10985 if test "x$ac_cv_func_getloadavg" = x""yes; then :
10986 exit 0
10987 else
10988 exit 1
10990 ) && ac_have_func=yes
10992 # On HPUX9, an unprivileged user can get load averages through this function.
10993 for ac_func in pstat_getdynamic
10994 do :
10995 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
10996 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
10997 cat >>confdefs.h <<_ACEOF
10998 #define HAVE_PSTAT_GETDYNAMIC 1
10999 _ACEOF
11002 done
11005 # Solaris has libkstat which does not require root.
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11007 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11008 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11009 $as_echo_n "(cached) " >&6
11010 else
11011 ac_check_lib_save_LIBS=$LIBS
11012 LIBS="-lkstat $LIBS"
11013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11014 /* end confdefs.h. */
11016 /* Override any GCC internal prototype to avoid an error.
11017 Use char because int might match the return type of a GCC
11018 builtin and then its argument prototype would still apply. */
11019 #ifdef __cplusplus
11020 extern "C"
11021 #endif
11022 char kstat_open ();
11024 main ()
11026 return kstat_open ();
11028 return 0;
11030 _ACEOF
11031 if ac_fn_c_try_link "$LINENO"; then :
11032 ac_cv_lib_kstat_kstat_open=yes
11033 else
11034 ac_cv_lib_kstat_kstat_open=no
11036 rm -f core conftest.err conftest.$ac_objext \
11037 conftest$ac_exeext conftest.$ac_ext
11038 LIBS=$ac_check_lib_save_LIBS
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11041 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11042 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
11043 cat >>confdefs.h <<_ACEOF
11044 #define HAVE_LIBKSTAT 1
11045 _ACEOF
11047 LIBS="-lkstat $LIBS"
11051 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
11053 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11054 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11055 # to get the right answer into the cache.
11056 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11057 if test $ac_have_func = no; then
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
11059 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
11060 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
11061 $as_echo_n "(cached) " >&6
11062 else
11063 ac_check_lib_save_LIBS=$LIBS
11064 LIBS="-lelf $LIBS"
11065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066 /* end confdefs.h. */
11068 /* Override any GCC internal prototype to avoid an error.
11069 Use char because int might match the return type of a GCC
11070 builtin and then its argument prototype would still apply. */
11071 #ifdef __cplusplus
11072 extern "C"
11073 #endif
11074 char elf_begin ();
11076 main ()
11078 return elf_begin ();
11080 return 0;
11082 _ACEOF
11083 if ac_fn_c_try_link "$LINENO"; then :
11084 ac_cv_lib_elf_elf_begin=yes
11085 else
11086 ac_cv_lib_elf_elf_begin=no
11088 rm -f core conftest.err conftest.$ac_objext \
11089 conftest$ac_exeext conftest.$ac_ext
11090 LIBS=$ac_check_lib_save_LIBS
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
11093 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11094 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
11095 LIBS="-lelf $LIBS"
11099 if test $ac_have_func = no; then
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
11101 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11102 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
11103 $as_echo_n "(cached) " >&6
11104 else
11105 ac_check_lib_save_LIBS=$LIBS
11106 LIBS="-lkvm $LIBS"
11107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11108 /* end confdefs.h. */
11110 /* Override any GCC internal prototype to avoid an error.
11111 Use char because int might match the return type of a GCC
11112 builtin and then its argument prototype would still apply. */
11113 #ifdef __cplusplus
11114 extern "C"
11115 #endif
11116 char kvm_open ();
11118 main ()
11120 return kvm_open ();
11122 return 0;
11124 _ACEOF
11125 if ac_fn_c_try_link "$LINENO"; then :
11126 ac_cv_lib_kvm_kvm_open=yes
11127 else
11128 ac_cv_lib_kvm_kvm_open=no
11130 rm -f core conftest.err conftest.$ac_objext \
11131 conftest$ac_exeext conftest.$ac_ext
11132 LIBS=$ac_check_lib_save_LIBS
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
11135 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11136 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
11137 LIBS="-lkvm $LIBS"
11140 # Check for the 4.4BSD definition of getloadavg.
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
11142 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
11143 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
11144 $as_echo_n "(cached) " >&6
11145 else
11146 ac_check_lib_save_LIBS=$LIBS
11147 LIBS="-lutil $LIBS"
11148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149 /* end confdefs.h. */
11151 /* Override any GCC internal prototype to avoid an error.
11152 Use char because int might match the return type of a GCC
11153 builtin and then its argument prototype would still apply. */
11154 #ifdef __cplusplus
11155 extern "C"
11156 #endif
11157 char getloadavg ();
11159 main ()
11161 return getloadavg ();
11163 return 0;
11165 _ACEOF
11166 if ac_fn_c_try_link "$LINENO"; then :
11167 ac_cv_lib_util_getloadavg=yes
11168 else
11169 ac_cv_lib_util_getloadavg=no
11171 rm -f core conftest.err conftest.$ac_objext \
11172 conftest$ac_exeext conftest.$ac_ext
11173 LIBS=$ac_check_lib_save_LIBS
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
11176 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11177 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
11178 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
11183 if test $ac_have_func = no; then
11184 # There is a commonly available library for RS/6000 AIX.
11185 # Since it is not a standard part of AIX, it might be installed locally.
11186 ac_getloadavg_LIBS=$LIBS
11187 LIBS="-L/usr/local/lib $LIBS"
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
11189 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11190 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
11191 $as_echo_n "(cached) " >&6
11192 else
11193 ac_check_lib_save_LIBS=$LIBS
11194 LIBS="-lgetloadavg $LIBS"
11195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11196 /* end confdefs.h. */
11198 /* Override any GCC internal prototype to avoid an error.
11199 Use char because int might match the return type of a GCC
11200 builtin and then its argument prototype would still apply. */
11201 #ifdef __cplusplus
11202 extern "C"
11203 #endif
11204 char getloadavg ();
11206 main ()
11208 return getloadavg ();
11210 return 0;
11212 _ACEOF
11213 if ac_fn_c_try_link "$LINENO"; then :
11214 ac_cv_lib_getloadavg_getloadavg=yes
11215 else
11216 ac_cv_lib_getloadavg_getloadavg=no
11218 rm -f core conftest.err conftest.$ac_objext \
11219 conftest$ac_exeext conftest.$ac_ext
11220 LIBS=$ac_check_lib_save_LIBS
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11223 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11224 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
11225 LIBS="-lgetloadavg $LIBS"
11226 else
11227 LIBS=$ac_getloadavg_LIBS
11232 # Make sure it is really in the library, if we think we found it,
11233 # otherwise set up the replacement function.
11234 for ac_func in getloadavg
11235 do :
11236 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11237 if test "x$ac_cv_func_getloadavg" = x""yes; then :
11238 cat >>confdefs.h <<_ACEOF
11239 #define HAVE_GETLOADAVG 1
11240 _ACEOF
11242 else
11243 case " $LIBOBJS " in
11244 *" getloadavg.$ac_objext "* ) ;;
11245 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
11247 esac
11250 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
11252 # Figure out what our getloadavg.c needs.
11253 ac_have_func=no
11254 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
11255 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
11256 ac_have_func=yes
11258 $as_echo "#define DGUX 1" >>confdefs.h
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
11261 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11262 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
11263 $as_echo_n "(cached) " >&6
11264 else
11265 ac_check_lib_save_LIBS=$LIBS
11266 LIBS="-ldgc $LIBS"
11267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11268 /* end confdefs.h. */
11270 /* Override any GCC internal prototype to avoid an error.
11271 Use char because int might match the return type of a GCC
11272 builtin and then its argument prototype would still apply. */
11273 #ifdef __cplusplus
11274 extern "C"
11275 #endif
11276 char dg_sys_info ();
11278 main ()
11280 return dg_sys_info ();
11282 return 0;
11284 _ACEOF
11285 if ac_fn_c_try_link "$LINENO"; then :
11286 ac_cv_lib_dgc_dg_sys_info=yes
11287 else
11288 ac_cv_lib_dgc_dg_sys_info=no
11290 rm -f core conftest.err conftest.$ac_objext \
11291 conftest$ac_exeext conftest.$ac_ext
11292 LIBS=$ac_check_lib_save_LIBS
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11295 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11296 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
11297 cat >>confdefs.h <<_ACEOF
11298 #define HAVE_LIBDGC 1
11299 _ACEOF
11301 LIBS="-ldgc $LIBS"
11309 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
11310 if test "x$ac_cv_header_locale_h" = x""yes; then :
11315 for ac_func in setlocale
11316 do :
11317 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
11318 if test "x$ac_cv_func_setlocale" = x""yes; then :
11319 cat >>confdefs.h <<_ACEOF
11320 #define HAVE_SETLOCALE 1
11321 _ACEOF
11324 done
11327 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11328 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11329 # Irix 4.0.5F has the header but not the library.
11330 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
11331 ac_have_func=yes
11333 $as_echo "#define SVR4 1" >>confdefs.h
11337 if test $ac_have_func = no; then
11338 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
11339 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
11340 ac_have_func=yes
11342 $as_echo "#define UMAX 1" >>confdefs.h
11345 $as_echo "#define UMAX4_3 1" >>confdefs.h
11352 if test $ac_have_func = no; then
11353 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
11354 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
11355 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
11362 if test $ac_have_func = no; then
11363 for ac_header in mach/mach.h
11364 do :
11365 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
11366 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
11367 cat >>confdefs.h <<_ACEOF
11368 #define HAVE_MACH_MACH_H 1
11369 _ACEOF
11373 done
11377 for ac_header in nlist.h
11378 do :
11379 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
11380 if test "x$ac_cv_header_nlist_h" = x""yes; then :
11381 cat >>confdefs.h <<_ACEOF
11382 #define HAVE_NLIST_H 1
11383 _ACEOF
11384 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
11386 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
11388 cat >>confdefs.h <<_ACEOF
11389 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11390 _ACEOF
11393 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
11400 done
11403 done
11406 # Some definitions of getloadavg require that the program be installed setgid.
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
11408 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
11409 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
11410 $as_echo_n "(cached) " >&6
11411 else
11412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11413 /* end confdefs.h. */
11414 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11415 #ifdef LDAV_PRIVILEGED
11416 Yowza Am I SETGID yet
11417 #endif
11418 _ACEOF
11419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11420 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
11421 ac_cv_func_getloadavg_setgid=yes
11422 else
11423 ac_cv_func_getloadavg_setgid=no
11425 rm -f conftest*
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
11429 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
11430 if test $ac_cv_func_getloadavg_setgid = yes; then
11431 NEED_SETGID=true
11433 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
11435 else
11436 NEED_SETGID=false
11439 if test $ac_cv_func_getloadavg_setgid = yes; then
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
11441 $as_echo_n "checking group of /dev/kmem... " >&6; }
11442 if test "${ac_cv_group_kmem+set}" = set; then :
11443 $as_echo_n "(cached) " >&6
11444 else
11445 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
11446 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
11447 # If we got an error (system does not support symlinks), try without -L.
11448 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
11449 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
11450 | sed -ne 's/[ ][ ]*/ /g;
11451 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
11452 / /s/.* //;p;'`
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
11456 $as_echo "$ac_cv_group_kmem" >&6; }
11457 KMEM_GROUP=$ac_cv_group_kmem
11459 if test "x$ac_save_LIBS" = x; then
11460 GETLOADAVG_LIBS=$LIBS
11461 else
11462 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
11464 LIBS=$ac_save_LIBS
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11469 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11470 if test "${ac_cv_sys_largefile_source+set}" = set; then :
11471 $as_echo_n "(cached) " >&6
11472 else
11473 while :; do
11474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11475 /* end confdefs.h. */
11476 #include <sys/types.h> /* for off_t */
11477 #include <stdio.h>
11479 main ()
11481 int (*fp) (FILE *, off_t, int) = fseeko;
11482 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11484 return 0;
11486 _ACEOF
11487 if ac_fn_c_try_link "$LINENO"; then :
11488 ac_cv_sys_largefile_source=no; break
11490 rm -f core conftest.err conftest.$ac_objext \
11491 conftest$ac_exeext conftest.$ac_ext
11492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11493 /* end confdefs.h. */
11494 #define _LARGEFILE_SOURCE 1
11495 #include <sys/types.h> /* for off_t */
11496 #include <stdio.h>
11498 main ()
11500 int (*fp) (FILE *, off_t, int) = fseeko;
11501 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11503 return 0;
11505 _ACEOF
11506 if ac_fn_c_try_link "$LINENO"; then :
11507 ac_cv_sys_largefile_source=1; break
11509 rm -f core conftest.err conftest.$ac_objext \
11510 conftest$ac_exeext conftest.$ac_ext
11511 ac_cv_sys_largefile_source=unknown
11512 break
11513 done
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
11516 $as_echo "$ac_cv_sys_largefile_source" >&6; }
11517 case $ac_cv_sys_largefile_source in #(
11518 no | unknown) ;;
11520 cat >>confdefs.h <<_ACEOF
11521 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11522 _ACEOF
11524 esac
11525 rm -rf conftest*
11527 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11528 # in glibc 2.1.3, but that breaks too many other things.
11529 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11530 if test $ac_cv_sys_largefile_source != unknown; then
11532 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11537 # Configure getopt.
11538 # getopt.m4 serial 10
11540 # The getopt module assume you want GNU getopt, with getopt_long etc,
11541 # rather than vanilla POSIX getopt. This means your your code should
11542 # always include <getopt.h> for the getopt prototypes.
11554 # Prerequisites of lib/getopt*.
11559 GETOPT_H=
11560 for ac_header in getopt.h
11561 do :
11562 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11563 if test "x$ac_cv_header_getopt_h" = x""yes; then :
11564 cat >>confdefs.h <<_ACEOF
11565 #define HAVE_GETOPT_H 1
11566 _ACEOF
11568 else
11569 GETOPT_H=getopt.h
11572 done
11574 if test -z "$GETOPT_H"; then
11575 for ac_func in getopt_long_only
11576 do :
11577 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
11578 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
11579 cat >>confdefs.h <<_ACEOF
11580 #define HAVE_GETOPT_LONG_ONLY 1
11581 _ACEOF
11583 else
11584 GETOPT_H=getopt.h
11586 done
11590 if test -z "$GETOPT_H"; then
11591 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
11593 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
11594 GETOPT_H=getopt.h
11599 if test -z "$GETOPT_H"; then
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
11601 $as_echo_n "checking for working GNU getopt function... " >&6; }
11602 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
11603 $as_echo_n "(cached) " >&6
11604 else
11605 if test "$cross_compiling" = yes; then :
11606 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
11608 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
11609 gl_cv_func_gnu_getopt=no
11610 else
11611 gl_cv_func_gnu_getopt=yes
11614 else
11615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11616 /* end confdefs.h. */
11617 #include <getopt.h>
11619 main ()
11622 char *myargv[3];
11623 myargv[0] = "conftest";
11624 myargv[1] = "-+";
11625 myargv[2] = 0;
11626 return getopt (2, myargv, "+a") != '?';
11629 return 0;
11631 _ACEOF
11632 if ac_fn_c_try_run "$LINENO"; then :
11633 gl_cv_func_gnu_getopt=yes
11634 else
11635 gl_cv_func_gnu_getopt=no
11637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11638 conftest.$ac_objext conftest.beam conftest.$ac_ext
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
11643 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
11644 if test "$gl_cv_func_gnu_getopt" = "no"; then
11645 GETOPT_H=getopt.h
11651 if test -n "$GETOPT_H"; then :
11654 GETOPT_H=getopt.h
11656 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
11661 GETOPTOBJS='getopt.o getopt1.o'
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
11668 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
11669 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
11670 $as_echo_n "(cached) " >&6
11671 else
11672 # Use it with a single arg.
11673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11674 /* end confdefs.h. */
11675 $ac_includes_default
11677 main ()
11679 getpgrp (0);
11681 return 0;
11683 _ACEOF
11684 if ac_fn_c_try_compile "$LINENO"; then :
11685 ac_cv_func_getpgrp_void=no
11686 else
11687 ac_cv_func_getpgrp_void=yes
11689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
11693 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
11694 if test $ac_cv_func_getpgrp_void = yes; then
11696 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
11701 for ac_func in strftime
11702 do :
11703 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
11704 if test "x$ac_cv_func_strftime" = x""yes; then :
11705 cat >>confdefs.h <<_ACEOF
11706 #define HAVE_STRFTIME 1
11707 _ACEOF
11709 else
11710 # strftime is in -lintl on SCO UNIX.
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
11712 $as_echo_n "checking for strftime in -lintl... " >&6; }
11713 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
11714 $as_echo_n "(cached) " >&6
11715 else
11716 ac_check_lib_save_LIBS=$LIBS
11717 LIBS="-lintl $LIBS"
11718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11719 /* end confdefs.h. */
11721 /* Override any GCC internal prototype to avoid an error.
11722 Use char because int might match the return type of a GCC
11723 builtin and then its argument prototype would still apply. */
11724 #ifdef __cplusplus
11725 extern "C"
11726 #endif
11727 char strftime ();
11729 main ()
11731 return strftime ();
11733 return 0;
11735 _ACEOF
11736 if ac_fn_c_try_link "$LINENO"; then :
11737 ac_cv_lib_intl_strftime=yes
11738 else
11739 ac_cv_lib_intl_strftime=no
11741 rm -f core conftest.err conftest.$ac_objext \
11742 conftest$ac_exeext conftest.$ac_ext
11743 LIBS=$ac_check_lib_save_LIBS
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
11746 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
11747 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
11748 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
11750 LIBS="-lintl $LIBS"
11754 done
11757 # UNIX98 PTYs.
11758 for ac_func in grantpt
11759 do :
11760 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
11761 if test "x$ac_cv_func_grantpt" = x""yes; then :
11762 cat >>confdefs.h <<_ACEOF
11763 #define HAVE_GRANTPT 1
11764 _ACEOF
11767 done
11770 # PTY-related GNU extensions.
11771 for ac_func in getpt
11772 do :
11773 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
11774 if test "x$ac_cv_func_getpt" = x""yes; then :
11775 cat >>confdefs.h <<_ACEOF
11776 #define HAVE_GETPT 1
11777 _ACEOF
11780 done
11783 # Check this now, so that we will NOT find the above functions in ncurses.
11784 # That is because we have not set up to link ncurses in lib-src.
11785 # It's better to believe a function is not available
11786 # than to expect to find it in ncurses.
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tparm in -lncurses" >&5
11788 $as_echo_n "checking for tparm in -lncurses... " >&6; }
11789 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then :
11790 $as_echo_n "(cached) " >&6
11791 else
11792 ac_check_lib_save_LIBS=$LIBS
11793 LIBS="-lncurses $LIBS"
11794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11795 /* end confdefs.h. */
11797 /* Override any GCC internal prototype to avoid an error.
11798 Use char because int might match the return type of a GCC
11799 builtin and then its argument prototype would still apply. */
11800 #ifdef __cplusplus
11801 extern "C"
11802 #endif
11803 char tparm ();
11805 main ()
11807 return tparm ();
11809 return 0;
11811 _ACEOF
11812 if ac_fn_c_try_link "$LINENO"; then :
11813 ac_cv_lib_ncurses_tparm=yes
11814 else
11815 ac_cv_lib_ncurses_tparm=no
11817 rm -f core conftest.err conftest.$ac_objext \
11818 conftest$ac_exeext conftest.$ac_ext
11819 LIBS=$ac_check_lib_save_LIBS
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tparm" >&5
11822 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
11823 if test "x$ac_cv_lib_ncurses_tparm" = x""yes; then :
11824 cat >>confdefs.h <<_ACEOF
11825 #define HAVE_LIBNCURSES 1
11826 _ACEOF
11828 LIBS="-lncurses $LIBS"
11833 # Do we have res_init, for detecting changes in /etc/resolv.conf?
11835 resolv=no
11836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11837 /* end confdefs.h. */
11838 #include <netinet/in.h>
11839 #include <arpa/nameser.h>
11840 #include <resolv.h>
11842 main ()
11844 return res_init();
11846 return 0;
11848 _ACEOF
11849 if ac_fn_c_try_link "$LINENO"; then :
11850 have_res_init=yes
11851 else
11852 have_res_init=no
11854 rm -f core conftest.err conftest.$ac_objext \
11855 conftest$ac_exeext conftest.$ac_ext
11856 if test "$have_res_init" = no; then
11857 OLIBS="$LIBS"
11858 LIBS="$LIBS -lresolv"
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
11860 $as_echo_n "checking for res_init with -lresolv... " >&6; }
11861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11862 /* end confdefs.h. */
11863 #include <netinet/in.h>
11864 #include <arpa/nameser.h>
11865 #include <resolv.h>
11867 main ()
11869 return res_init();
11871 return 0;
11873 _ACEOF
11874 if ac_fn_c_try_link "$LINENO"; then :
11875 have_res_init=yes
11876 else
11877 have_res_init=no
11879 rm -f core conftest.err conftest.$ac_objext \
11880 conftest$ac_exeext conftest.$ac_ext
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
11882 $as_echo "$have_res_init" >&6; }
11883 if test "$have_res_init" = yes ; then
11884 resolv=yes
11886 LIBS="$OLIBS"
11889 if test "$have_res_init" = yes; then
11891 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
11895 # Do we need the Hesiod library to provide the support routines?
11896 if test "$with_hesiod" != no ; then
11897 # Don't set $LIBS here -- see comments above.
11898 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
11899 if test "x$ac_cv_func_res_send" = x""yes; then :
11901 else
11902 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
11903 if test "x$ac_cv_func___res_send" = x""yes; then :
11905 else
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
11907 $as_echo_n "checking for res_send in -lresolv... " >&6; }
11908 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
11909 $as_echo_n "(cached) " >&6
11910 else
11911 ac_check_lib_save_LIBS=$LIBS
11912 LIBS="-lresolv $LIBS"
11913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11914 /* end confdefs.h. */
11916 /* Override any GCC internal prototype to avoid an error.
11917 Use char because int might match the return type of a GCC
11918 builtin and then its argument prototype would still apply. */
11919 #ifdef __cplusplus
11920 extern "C"
11921 #endif
11922 char res_send ();
11924 main ()
11926 return res_send ();
11928 return 0;
11930 _ACEOF
11931 if ac_fn_c_try_link "$LINENO"; then :
11932 ac_cv_lib_resolv_res_send=yes
11933 else
11934 ac_cv_lib_resolv_res_send=no
11936 rm -f core conftest.err conftest.$ac_objext \
11937 conftest$ac_exeext conftest.$ac_ext
11938 LIBS=$ac_check_lib_save_LIBS
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
11941 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
11942 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
11943 resolv=yes
11944 else
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
11946 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
11947 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
11948 $as_echo_n "(cached) " >&6
11949 else
11950 ac_check_lib_save_LIBS=$LIBS
11951 LIBS="-lresolv $LIBS"
11952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11953 /* end confdefs.h. */
11955 /* Override any GCC internal prototype to avoid an error.
11956 Use char because int might match the return type of a GCC
11957 builtin and then its argument prototype would still apply. */
11958 #ifdef __cplusplus
11959 extern "C"
11960 #endif
11961 char __res_send ();
11963 main ()
11965 return __res_send ();
11967 return 0;
11969 _ACEOF
11970 if ac_fn_c_try_link "$LINENO"; then :
11971 ac_cv_lib_resolv___res_send=yes
11972 else
11973 ac_cv_lib_resolv___res_send=no
11975 rm -f core conftest.err conftest.$ac_objext \
11976 conftest$ac_exeext conftest.$ac_ext
11977 LIBS=$ac_check_lib_save_LIBS
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
11980 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
11981 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
11982 resolv=yes
11991 if test "$resolv" = yes ; then
11992 RESOLVLIB=-lresolv
11993 else
11994 RESOLVLIB=
11996 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
11997 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
11999 else
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
12001 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
12002 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
12003 $as_echo_n "(cached) " >&6
12004 else
12005 ac_check_lib_save_LIBS=$LIBS
12006 LIBS="-lhesiod $RESOLVLIB $LIBS"
12007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12008 /* end confdefs.h. */
12010 /* Override any GCC internal prototype to avoid an error.
12011 Use char because int might match the return type of a GCC
12012 builtin and then its argument prototype would still apply. */
12013 #ifdef __cplusplus
12014 extern "C"
12015 #endif
12016 char hes_getmailhost ();
12018 main ()
12020 return hes_getmailhost ();
12022 return 0;
12024 _ACEOF
12025 if ac_fn_c_try_link "$LINENO"; then :
12026 ac_cv_lib_hesiod_hes_getmailhost=yes
12027 else
12028 ac_cv_lib_hesiod_hes_getmailhost=no
12030 rm -f core conftest.err conftest.$ac_objext \
12031 conftest$ac_exeext conftest.$ac_ext
12032 LIBS=$ac_check_lib_save_LIBS
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12035 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
12036 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
12038 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
12040 else
12048 # Do we need libresolv (due to res_init or Hesiod)?
12049 if test "$resolv" = yes ; then
12051 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
12055 # These tell us which Kerberos-related libraries to use.
12056 if test "${with_kerberos}" != no; then
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
12058 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
12059 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
12060 $as_echo_n "(cached) " >&6
12061 else
12062 ac_check_lib_save_LIBS=$LIBS
12063 LIBS="-lcom_err $LIBS"
12064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065 /* end confdefs.h. */
12067 /* Override any GCC internal prototype to avoid an error.
12068 Use char because int might match the return type of a GCC
12069 builtin and then its argument prototype would still apply. */
12070 #ifdef __cplusplus
12071 extern "C"
12072 #endif
12073 char com_err ();
12075 main ()
12077 return com_err ();
12079 return 0;
12081 _ACEOF
12082 if ac_fn_c_try_link "$LINENO"; then :
12083 ac_cv_lib_com_err_com_err=yes
12084 else
12085 ac_cv_lib_com_err_com_err=no
12087 rm -f core conftest.err conftest.$ac_objext \
12088 conftest$ac_exeext conftest.$ac_ext
12089 LIBS=$ac_check_lib_save_LIBS
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
12092 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12093 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
12094 cat >>confdefs.h <<_ACEOF
12095 #define HAVE_LIBCOM_ERR 1
12096 _ACEOF
12098 LIBS="-lcom_err $LIBS"
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12103 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
12104 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
12105 $as_echo_n "(cached) " >&6
12106 else
12107 ac_check_lib_save_LIBS=$LIBS
12108 LIBS="-lk5crypto $LIBS"
12109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12110 /* end confdefs.h. */
12112 /* Override any GCC internal prototype to avoid an error.
12113 Use char because int might match the return type of a GCC
12114 builtin and then its argument prototype would still apply. */
12115 #ifdef __cplusplus
12116 extern "C"
12117 #endif
12118 char mit_des_cbc_encrypt ();
12120 main ()
12122 return mit_des_cbc_encrypt ();
12124 return 0;
12126 _ACEOF
12127 if ac_fn_c_try_link "$LINENO"; then :
12128 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
12129 else
12130 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
12132 rm -f core conftest.err conftest.$ac_objext \
12133 conftest$ac_exeext conftest.$ac_ext
12134 LIBS=$ac_check_lib_save_LIBS
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12137 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
12138 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
12139 cat >>confdefs.h <<_ACEOF
12140 #define HAVE_LIBK5CRYPTO 1
12141 _ACEOF
12143 LIBS="-lk5crypto $LIBS"
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12148 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
12149 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
12150 $as_echo_n "(cached) " >&6
12151 else
12152 ac_check_lib_save_LIBS=$LIBS
12153 LIBS="-lcrypto $LIBS"
12154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12155 /* end confdefs.h. */
12157 /* Override any GCC internal prototype to avoid an error.
12158 Use char because int might match the return type of a GCC
12159 builtin and then its argument prototype would still apply. */
12160 #ifdef __cplusplus
12161 extern "C"
12162 #endif
12163 char mit_des_cbc_encrypt ();
12165 main ()
12167 return mit_des_cbc_encrypt ();
12169 return 0;
12171 _ACEOF
12172 if ac_fn_c_try_link "$LINENO"; then :
12173 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
12174 else
12175 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
12177 rm -f core conftest.err conftest.$ac_objext \
12178 conftest$ac_exeext conftest.$ac_ext
12179 LIBS=$ac_check_lib_save_LIBS
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12182 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
12183 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
12184 cat >>confdefs.h <<_ACEOF
12185 #define HAVE_LIBCRYPTO 1
12186 _ACEOF
12188 LIBS="-lcrypto $LIBS"
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
12193 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12194 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
12195 $as_echo_n "(cached) " >&6
12196 else
12197 ac_check_lib_save_LIBS=$LIBS
12198 LIBS="-lkrb5 $LIBS"
12199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12200 /* end confdefs.h. */
12202 /* Override any GCC internal prototype to avoid an error.
12203 Use char because int might match the return type of a GCC
12204 builtin and then its argument prototype would still apply. */
12205 #ifdef __cplusplus
12206 extern "C"
12207 #endif
12208 char krb5_init_context ();
12210 main ()
12212 return krb5_init_context ();
12214 return 0;
12216 _ACEOF
12217 if ac_fn_c_try_link "$LINENO"; then :
12218 ac_cv_lib_krb5_krb5_init_context=yes
12219 else
12220 ac_cv_lib_krb5_krb5_init_context=no
12222 rm -f core conftest.err conftest.$ac_objext \
12223 conftest$ac_exeext conftest.$ac_ext
12224 LIBS=$ac_check_lib_save_LIBS
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12227 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12228 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
12229 cat >>confdefs.h <<_ACEOF
12230 #define HAVE_LIBKRB5 1
12231 _ACEOF
12233 LIBS="-lkrb5 $LIBS"
12237 if test "${with_kerberos5}" = no; then
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
12239 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
12240 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
12241 $as_echo_n "(cached) " >&6
12242 else
12243 ac_check_lib_save_LIBS=$LIBS
12244 LIBS="-ldes425 $LIBS"
12245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12246 /* end confdefs.h. */
12248 /* Override any GCC internal prototype to avoid an error.
12249 Use char because int might match the return type of a GCC
12250 builtin and then its argument prototype would still apply. */
12251 #ifdef __cplusplus
12252 extern "C"
12253 #endif
12254 char des_cbc_encrypt ();
12256 main ()
12258 return des_cbc_encrypt ();
12260 return 0;
12262 _ACEOF
12263 if ac_fn_c_try_link "$LINENO"; then :
12264 ac_cv_lib_des425_des_cbc_encrypt=yes
12265 else
12266 ac_cv_lib_des425_des_cbc_encrypt=no
12268 rm -f core conftest.err conftest.$ac_objext \
12269 conftest$ac_exeext conftest.$ac_ext
12270 LIBS=$ac_check_lib_save_LIBS
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
12273 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
12274 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
12275 cat >>confdefs.h <<_ACEOF
12276 #define HAVE_LIBDES425 1
12277 _ACEOF
12279 LIBS="-ldes425 $LIBS"
12281 else
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
12283 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
12284 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
12285 $as_echo_n "(cached) " >&6
12286 else
12287 ac_check_lib_save_LIBS=$LIBS
12288 LIBS="-ldes $LIBS"
12289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12290 /* end confdefs.h. */
12292 /* Override any GCC internal prototype to avoid an error.
12293 Use char because int might match the return type of a GCC
12294 builtin and then its argument prototype would still apply. */
12295 #ifdef __cplusplus
12296 extern "C"
12297 #endif
12298 char des_cbc_encrypt ();
12300 main ()
12302 return des_cbc_encrypt ();
12304 return 0;
12306 _ACEOF
12307 if ac_fn_c_try_link "$LINENO"; then :
12308 ac_cv_lib_des_des_cbc_encrypt=yes
12309 else
12310 ac_cv_lib_des_des_cbc_encrypt=no
12312 rm -f core conftest.err conftest.$ac_objext \
12313 conftest$ac_exeext conftest.$ac_ext
12314 LIBS=$ac_check_lib_save_LIBS
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
12317 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
12318 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
12319 cat >>confdefs.h <<_ACEOF
12320 #define HAVE_LIBDES 1
12321 _ACEOF
12323 LIBS="-ldes $LIBS"
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
12330 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
12331 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
12332 $as_echo_n "(cached) " >&6
12333 else
12334 ac_check_lib_save_LIBS=$LIBS
12335 LIBS="-lkrb4 $LIBS"
12336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12337 /* end confdefs.h. */
12339 /* Override any GCC internal prototype to avoid an error.
12340 Use char because int might match the return type of a GCC
12341 builtin and then its argument prototype would still apply. */
12342 #ifdef __cplusplus
12343 extern "C"
12344 #endif
12345 char krb_get_cred ();
12347 main ()
12349 return krb_get_cred ();
12351 return 0;
12353 _ACEOF
12354 if ac_fn_c_try_link "$LINENO"; then :
12355 ac_cv_lib_krb4_krb_get_cred=yes
12356 else
12357 ac_cv_lib_krb4_krb_get_cred=no
12359 rm -f core conftest.err conftest.$ac_objext \
12360 conftest$ac_exeext conftest.$ac_ext
12361 LIBS=$ac_check_lib_save_LIBS
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
12364 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
12365 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
12366 cat >>confdefs.h <<_ACEOF
12367 #define HAVE_LIBKRB4 1
12368 _ACEOF
12370 LIBS="-lkrb4 $LIBS"
12372 else
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
12374 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
12375 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
12376 $as_echo_n "(cached) " >&6
12377 else
12378 ac_check_lib_save_LIBS=$LIBS
12379 LIBS="-lkrb $LIBS"
12380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12381 /* end confdefs.h. */
12383 /* Override any GCC internal prototype to avoid an error.
12384 Use char because int might match the return type of a GCC
12385 builtin and then its argument prototype would still apply. */
12386 #ifdef __cplusplus
12387 extern "C"
12388 #endif
12389 char krb_get_cred ();
12391 main ()
12393 return krb_get_cred ();
12395 return 0;
12397 _ACEOF
12398 if ac_fn_c_try_link "$LINENO"; then :
12399 ac_cv_lib_krb_krb_get_cred=yes
12400 else
12401 ac_cv_lib_krb_krb_get_cred=no
12403 rm -f core conftest.err conftest.$ac_objext \
12404 conftest$ac_exeext conftest.$ac_ext
12405 LIBS=$ac_check_lib_save_LIBS
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
12408 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
12409 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
12410 cat >>confdefs.h <<_ACEOF
12411 #define HAVE_LIBKRB 1
12412 _ACEOF
12414 LIBS="-lkrb $LIBS"
12422 if test "${with_kerberos5}" != no; then
12423 for ac_header in krb5.h
12424 do :
12425 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
12426 if test "x$ac_cv_header_krb5_h" = x""yes; then :
12427 cat >>confdefs.h <<_ACEOF
12428 #define HAVE_KRB5_H 1
12429 _ACEOF
12430 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
12432 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
12434 cat >>confdefs.h <<_ACEOF
12435 #define HAVE_KRB5_ERROR_TEXT 1
12436 _ACEOF
12440 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
12442 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
12444 cat >>confdefs.h <<_ACEOF
12445 #define HAVE_KRB5_ERROR_E_TEXT 1
12446 _ACEOF
12453 done
12455 else
12456 for ac_header in des.h
12457 do :
12458 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
12459 if test "x$ac_cv_header_des_h" = x""yes; then :
12460 cat >>confdefs.h <<_ACEOF
12461 #define HAVE_DES_H 1
12462 _ACEOF
12464 else
12465 for ac_header in kerberosIV/des.h
12466 do :
12467 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
12468 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
12469 cat >>confdefs.h <<_ACEOF
12470 #define HAVE_KERBEROSIV_DES_H 1
12471 _ACEOF
12473 else
12474 for ac_header in kerberos/des.h
12475 do :
12476 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
12477 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
12478 cat >>confdefs.h <<_ACEOF
12479 #define HAVE_KERBEROS_DES_H 1
12480 _ACEOF
12484 done
12488 done
12492 done
12494 for ac_header in krb.h
12495 do :
12496 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
12497 if test "x$ac_cv_header_krb_h" = x""yes; then :
12498 cat >>confdefs.h <<_ACEOF
12499 #define HAVE_KRB_H 1
12500 _ACEOF
12502 else
12503 for ac_header in kerberosIV/krb.h
12504 do :
12505 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
12506 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
12507 cat >>confdefs.h <<_ACEOF
12508 #define HAVE_KERBEROSIV_KRB_H 1
12509 _ACEOF
12511 else
12512 for ac_header in kerberos/krb.h
12513 do :
12514 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
12515 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
12516 cat >>confdefs.h <<_ACEOF
12517 #define HAVE_KERBEROS_KRB_H 1
12518 _ACEOF
12522 done
12526 done
12530 done
12533 for ac_header in com_err.h
12534 do :
12535 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
12536 if test "x$ac_cv_header_com_err_h" = x""yes; then :
12537 cat >>confdefs.h <<_ACEOF
12538 #define HAVE_COM_ERR_H 1
12539 _ACEOF
12543 done
12547 # Solaris requires -lintl if you want strerror (which calls dgettext)
12548 # to return localized messages.
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
12550 $as_echo_n "checking for dgettext in -lintl... " >&6; }
12551 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
12552 $as_echo_n "(cached) " >&6
12553 else
12554 ac_check_lib_save_LIBS=$LIBS
12555 LIBS="-lintl $LIBS"
12556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12557 /* end confdefs.h. */
12559 /* Override any GCC internal prototype to avoid an error.
12560 Use char because int might match the return type of a GCC
12561 builtin and then its argument prototype would still apply. */
12562 #ifdef __cplusplus
12563 extern "C"
12564 #endif
12565 char dgettext ();
12567 main ()
12569 return dgettext ();
12571 return 0;
12573 _ACEOF
12574 if ac_fn_c_try_link "$LINENO"; then :
12575 ac_cv_lib_intl_dgettext=yes
12576 else
12577 ac_cv_lib_intl_dgettext=no
12579 rm -f core conftest.err conftest.$ac_objext \
12580 conftest$ac_exeext conftest.$ac_ext
12581 LIBS=$ac_check_lib_save_LIBS
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
12584 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
12585 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
12586 cat >>confdefs.h <<_ACEOF
12587 #define HAVE_LIBINTL 1
12588 _ACEOF
12590 LIBS="-lintl $LIBS"
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
12596 $as_echo_n "checking whether localtime caches TZ... " >&6; }
12597 if test "${emacs_cv_localtime_cache+set}" = set; then :
12598 $as_echo_n "(cached) " >&6
12599 else
12600 if test x$ac_cv_func_tzset = xyes; then
12601 if test "$cross_compiling" = yes; then :
12602 # If we have tzset, assume the worst when cross-compiling.
12603 emacs_cv_localtime_cache=yes
12604 else
12605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12606 /* end confdefs.h. */
12607 #include <time.h>
12608 extern char **environ;
12609 unset_TZ ()
12611 char **from, **to;
12612 for (to = from = environ; (*to = *from); from++)
12613 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
12614 to++;
12616 char TZ_GMT0[] = "TZ=GMT0";
12617 char TZ_PST8[] = "TZ=PST8";
12618 main()
12620 time_t now = time ((time_t *) 0);
12621 int hour_GMT0, hour_unset;
12622 if (putenv (TZ_GMT0) != 0)
12623 exit (1);
12624 hour_GMT0 = localtime (&now)->tm_hour;
12625 unset_TZ ();
12626 hour_unset = localtime (&now)->tm_hour;
12627 if (putenv (TZ_PST8) != 0)
12628 exit (1);
12629 if (localtime (&now)->tm_hour == hour_GMT0)
12630 exit (1);
12631 unset_TZ ();
12632 if (localtime (&now)->tm_hour != hour_unset)
12633 exit (1);
12634 exit (0);
12636 _ACEOF
12637 if ac_fn_c_try_run "$LINENO"; then :
12638 emacs_cv_localtime_cache=no
12639 else
12640 emacs_cv_localtime_cache=yes
12642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12643 conftest.$ac_objext conftest.beam conftest.$ac_ext
12646 else
12647 # If we lack tzset, report that localtime does not cache TZ,
12648 # since we can't invalidate the cache if we don't have tzset.
12649 emacs_cv_localtime_cache=no
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
12653 $as_echo "$emacs_cv_localtime_cache" >&6; }
12654 if test $emacs_cv_localtime_cache = yes; then
12656 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
12660 if test "x$HAVE_TIMEVAL" = xyes; then
12661 for ac_func in gettimeofday
12662 do :
12663 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
12664 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
12665 cat >>confdefs.h <<_ACEOF
12666 #define HAVE_GETTIMEOFDAY 1
12667 _ACEOF
12670 done
12672 if test $ac_cv_func_gettimeofday = yes; then
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
12674 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
12675 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
12676 $as_echo_n "(cached) " >&6
12677 else
12678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12679 /* end confdefs.h. */
12681 #ifdef TIME_WITH_SYS_TIME
12682 #include <sys/time.h>
12683 #include <time.h>
12684 #else
12685 #ifdef HAVE_SYS_TIME_H
12686 #include <sys/time.h>
12687 #else
12688 #include <time.h>
12689 #endif
12690 #endif
12692 main ()
12694 struct timeval time;
12695 gettimeofday (&time, 0);
12697 return 0;
12699 _ACEOF
12700 if ac_fn_c_try_compile "$LINENO"; then :
12701 emacs_cv_gettimeofday_two_arguments=yes
12702 else
12703 emacs_cv_gettimeofday_two_arguments=no
12705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
12708 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
12709 if test $emacs_cv_gettimeofday_two_arguments = no; then
12711 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
12717 ok_so_far=yes
12718 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
12719 if test "x$ac_cv_func_socket" = x""yes; then :
12721 else
12722 ok_so_far=no
12725 if test $ok_so_far = yes; then
12726 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
12727 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
12729 else
12730 ok_so_far=no
12735 if test $ok_so_far = yes; then
12736 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
12737 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
12739 else
12740 ok_so_far=no
12745 if test $ok_so_far = yes; then
12747 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
12751 for ac_header in sys/ioctl.h
12752 do :
12753 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
12754 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
12755 cat >>confdefs.h <<_ACEOF
12756 #define HAVE_SYS_IOCTL_H 1
12757 _ACEOF
12761 done
12764 if test -f /usr/lpp/X11/bin/smt.exp; then
12766 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
12771 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
12772 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12774 $as_echo "yes" >&6; }
12776 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
12778 else
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12780 $as_echo "no" >&6; }
12783 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12784 if test "x$ac_cv_type_pid_t" = x""yes; then :
12786 else
12788 cat >>confdefs.h <<_ACEOF
12789 #define pid_t int
12790 _ACEOF
12794 for ac_header in vfork.h
12795 do :
12796 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12797 if test "x$ac_cv_header_vfork_h" = x""yes; then :
12798 cat >>confdefs.h <<_ACEOF
12799 #define HAVE_VFORK_H 1
12800 _ACEOF
12804 done
12806 for ac_func in fork vfork
12807 do :
12808 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12809 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12810 eval as_val=\$$as_ac_var
12811 if test "x$as_val" = x""yes; then :
12812 cat >>confdefs.h <<_ACEOF
12813 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12814 _ACEOF
12817 done
12819 if test "x$ac_cv_func_fork" = xyes; then
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12821 $as_echo_n "checking for working fork... " >&6; }
12822 if test "${ac_cv_func_fork_works+set}" = set; then :
12823 $as_echo_n "(cached) " >&6
12824 else
12825 if test "$cross_compiling" = yes; then :
12826 ac_cv_func_fork_works=cross
12827 else
12828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12829 /* end confdefs.h. */
12830 $ac_includes_default
12832 main ()
12835 /* By Ruediger Kuhlmann. */
12836 return fork () < 0;
12839 return 0;
12841 _ACEOF
12842 if ac_fn_c_try_run "$LINENO"; then :
12843 ac_cv_func_fork_works=yes
12844 else
12845 ac_cv_func_fork_works=no
12847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12848 conftest.$ac_objext conftest.beam conftest.$ac_ext
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12853 $as_echo "$ac_cv_func_fork_works" >&6; }
12855 else
12856 ac_cv_func_fork_works=$ac_cv_func_fork
12858 if test "x$ac_cv_func_fork_works" = xcross; then
12859 case $host in
12860 *-*-amigaos* | *-*-msdosdjgpp*)
12861 # Override, as these systems have only a dummy fork() stub
12862 ac_cv_func_fork_works=no
12865 ac_cv_func_fork_works=yes
12867 esac
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12869 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12871 ac_cv_func_vfork_works=$ac_cv_func_vfork
12872 if test "x$ac_cv_func_vfork" = xyes; then
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12874 $as_echo_n "checking for working vfork... " >&6; }
12875 if test "${ac_cv_func_vfork_works+set}" = set; then :
12876 $as_echo_n "(cached) " >&6
12877 else
12878 if test "$cross_compiling" = yes; then :
12879 ac_cv_func_vfork_works=cross
12880 else
12881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12882 /* end confdefs.h. */
12883 /* Thanks to Paul Eggert for this test. */
12884 $ac_includes_default
12885 #include <sys/wait.h>
12886 #ifdef HAVE_VFORK_H
12887 # include <vfork.h>
12888 #endif
12889 /* On some sparc systems, changes by the child to local and incoming
12890 argument registers are propagated back to the parent. The compiler
12891 is told about this with #include <vfork.h>, but some compilers
12892 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12893 static variable whose address is put into a register that is
12894 clobbered by the vfork. */
12895 static void
12896 #ifdef __cplusplus
12897 sparc_address_test (int arg)
12898 # else
12899 sparc_address_test (arg) int arg;
12900 #endif
12902 static pid_t child;
12903 if (!child) {
12904 child = vfork ();
12905 if (child < 0) {
12906 perror ("vfork");
12907 _exit(2);
12909 if (!child) {
12910 arg = getpid();
12911 write(-1, "", 0);
12912 _exit (arg);
12918 main ()
12920 pid_t parent = getpid ();
12921 pid_t child;
12923 sparc_address_test (0);
12925 child = vfork ();
12927 if (child == 0) {
12928 /* Here is another test for sparc vfork register problems. This
12929 test uses lots of local variables, at least as many local
12930 variables as main has allocated so far including compiler
12931 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12932 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12933 reuse the register of parent for one of the local variables,
12934 since it will think that parent can't possibly be used any more
12935 in this routine. Assigning to the local variable will thus
12936 munge parent in the parent process. */
12937 pid_t
12938 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12939 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12940 /* Convince the compiler that p..p7 are live; otherwise, it might
12941 use the same hardware register for all 8 local variables. */
12942 if (p != p1 || p != p2 || p != p3 || p != p4
12943 || p != p5 || p != p6 || p != p7)
12944 _exit(1);
12946 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12947 from child file descriptors. If the child closes a descriptor
12948 before it execs or exits, this munges the parent's descriptor
12949 as well. Test for this by closing stdout in the child. */
12950 _exit(close(fileno(stdout)) != 0);
12951 } else {
12952 int status;
12953 struct stat st;
12955 while (wait(&status) != child)
12957 return (
12958 /* Was there some problem with vforking? */
12959 child < 0
12961 /* Did the child fail? (This shouldn't happen.) */
12962 || status
12964 /* Did the vfork/compiler bug occur? */
12965 || parent != getpid()
12967 /* Did the file descriptor bug occur? */
12968 || fstat(fileno(stdout), &st) != 0
12972 _ACEOF
12973 if ac_fn_c_try_run "$LINENO"; then :
12974 ac_cv_func_vfork_works=yes
12975 else
12976 ac_cv_func_vfork_works=no
12978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12979 conftest.$ac_objext conftest.beam conftest.$ac_ext
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12984 $as_echo "$ac_cv_func_vfork_works" >&6; }
12987 if test "x$ac_cv_func_fork_works" = xcross; then
12988 ac_cv_func_vfork_works=$ac_cv_func_vfork
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12990 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12993 if test "x$ac_cv_func_vfork_works" = xyes; then
12995 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12997 else
12999 $as_echo "#define vfork fork" >>confdefs.h
13002 if test "x$ac_cv_func_fork_works" = xyes; then
13004 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13010 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13011 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
13012 $as_echo_n "(cached) " >&6
13013 else
13014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13015 /* end confdefs.h. */
13016 #include <langinfo.h>
13018 main ()
13020 char* cs = nl_langinfo(CODESET);
13022 return 0;
13024 _ACEOF
13025 if ac_fn_c_try_link "$LINENO"; then :
13026 emacs_cv_langinfo_codeset=yes
13027 else
13028 emacs_cv_langinfo_codeset=no
13030 rm -f core conftest.err conftest.$ac_objext \
13031 conftest$ac_exeext conftest.$ac_ext
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
13035 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
13036 if test $emacs_cv_langinfo_codeset = yes; then
13038 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13042 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13043 if test "x$ac_cv_type_size_t" = x""yes; then :
13045 cat >>confdefs.h <<_ACEOF
13046 #define HAVE_SIZE_T 1
13047 _ACEOF
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13054 $as_echo_n "checking for mbstate_t... " >&6; }
13055 if test "${ac_cv_type_mbstate_t+set}" = set; then :
13056 $as_echo_n "(cached) " >&6
13057 else
13058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13059 /* end confdefs.h. */
13060 $ac_includes_default
13061 # include <wchar.h>
13063 main ()
13065 mbstate_t x; return sizeof x;
13067 return 0;
13069 _ACEOF
13070 if ac_fn_c_try_compile "$LINENO"; then :
13071 ac_cv_type_mbstate_t=yes
13072 else
13073 ac_cv_type_mbstate_t=no
13075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
13078 $as_echo "$ac_cv_type_mbstate_t" >&6; }
13079 if test $ac_cv_type_mbstate_t = yes; then
13081 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13083 else
13085 $as_echo "#define mbstate_t int" >>confdefs.h
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
13090 $as_echo_n "checking for C restrict keyword... " >&6; }
13091 if test "${emacs_cv_c_restrict+set}" = set; then :
13092 $as_echo_n "(cached) " >&6
13093 else
13094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13095 /* end confdefs.h. */
13096 void fred (int *restrict x);
13098 main ()
13102 return 0;
13104 _ACEOF
13105 if ac_fn_c_try_compile "$LINENO"; then :
13106 emacs_cv_c_restrict=yes
13107 else
13108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13109 /* end confdefs.h. */
13110 void fred (int *__restrict x);
13112 main ()
13116 return 0;
13118 _ACEOF
13119 if ac_fn_c_try_compile "$LINENO"; then :
13120 emacs_cv_c_restrict=__restrict
13121 else
13122 emacs_cv_c_restrict=no
13124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
13129 $as_echo "$emacs_cv_c_restrict" >&6; }
13130 case "$emacs_cv_c_restrict" in
13131 yes) emacs_restrict=restrict;;
13132 no) emacs_restrict="";;
13133 *) emacs_restrict="$emacs_cv_c_restrict";;
13134 esac
13135 if test "$emacs_restrict" != __restrict; then
13137 cat >>confdefs.h <<_ACEOF
13138 #define __restrict $emacs_restrict
13139 _ACEOF
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
13144 $as_echo_n "checking for C restricted array declarations... " >&6; }
13145 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
13146 $as_echo_n "(cached) " >&6
13147 else
13148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13149 /* end confdefs.h. */
13150 void fred (int x[__restrict]);
13152 main ()
13156 return 0;
13158 _ACEOF
13159 if ac_fn_c_try_compile "$LINENO"; then :
13160 emacs_cv_c_restrict_arr=yes
13161 else
13162 emacs_cv_c_restrict_arr=no
13164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
13167 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
13168 if test "$emacs_cv_c_restrict_arr" = yes; then
13170 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
13176 # Set up the CFLAGS for real compilation, so we can substitute it.
13177 CFLAGS="$REAL_CFLAGS"
13178 CPPFLAGS="$REAL_CPPFLAGS"
13180 ## Hack to detect a buggy GCC version.
13181 if test "x$GCC" = xyes \
13182 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
13183 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
13184 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
13185 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
13188 #### Find out which version of Emacs this is.
13189 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
13190 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
13191 if test x"${version}" = x; then
13192 as_fn_error "can't find current emacs version in \`${srcdir}/lisp/version.el'." "$LINENO" 5
13194 if test x"${version}" != x"$PACKAGE_VERSION"; then
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
13196 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
13199 ### Specify what sort of things we'll be editing into Makefile and config.h.
13200 ### Use configuration here uncanonicalized to avoid exceeding size limits.
13245 cat >>confdefs.h <<_ACEOF
13246 #define EMACS_CONFIGURATION "${canonical}"
13247 _ACEOF
13250 cat >>confdefs.h <<_ACEOF
13251 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
13252 _ACEOF
13255 cat >>confdefs.h <<_ACEOF
13256 #define config_machfile "${machfile}"
13257 _ACEOF
13260 cat >>confdefs.h <<_ACEOF
13261 #define config_opsysfile "${opsysfile}"
13262 _ACEOF
13265 cat >>confdefs.h <<_ACEOF
13266 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
13267 _ACEOF
13270 cat >>confdefs.h <<_ACEOF
13271 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
13272 _ACEOF
13275 cat >>confdefs.h <<_ACEOF
13276 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
13277 _ACEOF
13280 cat >>confdefs.h <<_ACEOF
13281 #define UNEXEC_SRC ${UNEXEC_SRC}
13282 _ACEOF
13285 if test "${HAVE_X_WINDOWS}" = "yes" ; then
13287 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
13290 if test "${USE_X_TOOLKIT}" != "none" ; then
13292 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
13294 if test "${USE_X_TOOLKIT}" = "LUCID"; then
13296 $as_echo "#define USE_LUCID 1" >>confdefs.h
13298 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
13300 $as_echo "#define USE_MOTIF 1" >>confdefs.h
13304 if test "${HAVE_X11}" = "yes" ; then
13306 $as_echo "#define HAVE_X11 1" >>confdefs.h
13309 if test "${HAVE_MENUS}" = "yes" ; then
13311 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
13314 if test "${GNU_MALLOC}" = "yes" ; then
13316 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
13319 if test "${REL_ALLOC}" = "yes" ; then
13321 $as_echo "#define REL_ALLOC 1" >>confdefs.h
13328 #### Report on what we decided to do.
13329 #### Report GTK as a toolkit, even if it doesn't use Xt.
13330 #### It makes printing result more understandable as using GTK sets
13331 #### toolkit_scroll_bars to yes by default.
13332 if test "${HAVE_GTK}" = "yes"; then
13333 USE_X_TOOLKIT=GTK
13336 echo "
13337 Configured for \`${canonical}'.
13339 Where should the build process find the source code? ${srcdir}
13340 What operating system and machine description files should Emacs use?
13341 \`${opsysfile}' and \`${machfile}'
13342 What compiler should emacs be built with? ${CC} ${CFLAGS}
13343 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
13344 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
13345 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
13346 What window system should Emacs use? ${window_system}
13347 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
13349 if test -n "${x_includes}"; then
13350 echo " Where do we find X Windows header files? ${x_includes}"
13351 else
13352 echo " Where do we find X Windows header files? Standard dirs"
13354 if test -n "${x_libraries}"; then
13355 echo " Where do we find X Windows libraries? ${x_libraries}"
13356 else
13357 echo " Where do we find X Windows libraries? Standard dirs"
13360 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
13361 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
13362 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
13363 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
13364 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
13365 echo " Does Emacs use -lpng? ${HAVE_PNG}"
13366 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
13367 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
13368 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
13369 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
13371 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
13372 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
13373 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
13374 echo " Does Emacs use -lxft? ${HAVE_XFT}"
13376 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
13377 echo
13379 if test $USE_XASSERTS = yes; then
13380 echo " Compiling with asserts turned on."
13381 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
13384 echo
13386 if test "$HAVE_NS" = "yes"; then
13387 echo
13388 echo "You must run \"make install\" in order to test the built application.
13389 The installed application will go to nextstep/Emacs.app and can be
13390 run or moved from there."
13391 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
13392 echo "The application will be fully self-contained."
13393 else
13394 echo "The lisp resources for the application will be installed under ${prefix}.
13395 You may need to run \"make install\" with sudo. The application will fail
13396 to run if these resources are not installed."
13398 echo
13402 # Remove any trailing slashes in these variables.
13403 test "${prefix}" != NONE &&
13404 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
13405 test "${exec_prefix}" != NONE &&
13406 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
13408 # Now get this: Some word that is part of the ${srcdir} directory name
13409 # or the ${configuration} value might, just might, happen to be an
13410 # identifier like `sun4' or `i386' or something, and be predefined by
13411 # the C preprocessor to some helpful value like 1, or maybe the empty
13412 # string. Needless to say consequent macro substitutions are less
13413 # than conducive to the makefile finding the correct directory.
13414 cpp_undefs="`echo $srcdir $configuration $canonical unix |
13415 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
13416 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
13418 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
13419 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
13420 ## from Makefile.c can correctly provide the arg `-traditional' to the
13421 ## C preprocessor.
13423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13424 /* end confdefs.h. */
13425 yes..yes
13426 _ACEOF
13427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13428 $EGREP "yes..yes" >/dev/null 2>&1; then :
13429 CPP_NEED_TRADITIONAL=no
13430 else
13431 CPP_NEED_TRADITIONAL=yes
13433 rm -f conftest*
13436 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile"
13438 ac_config_commands="$ac_config_commands default"
13440 cat >confcache <<\_ACEOF
13441 # This file is a shell script that caches the results of configure
13442 # tests run on this system so they can be shared between configure
13443 # scripts and configure runs, see configure's option --config-cache.
13444 # It is not useful on other systems. If it contains results you don't
13445 # want to keep, you may remove or edit it.
13447 # config.status only pays attention to the cache file if you give it
13448 # the --recheck option to rerun configure.
13450 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13451 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13452 # following values.
13454 _ACEOF
13456 # The following way of writing the cache mishandles newlines in values,
13457 # but we know of no workaround that is simple, portable, and efficient.
13458 # So, we kill variables containing newlines.
13459 # Ultrix sh set writes to stderr and can't be redirected directly,
13460 # and sets the high bit in the cache file unless we assign to the vars.
13462 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13463 eval ac_val=\$$ac_var
13464 case $ac_val in #(
13465 *${as_nl}*)
13466 case $ac_var in #(
13467 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13468 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13469 esac
13470 case $ac_var in #(
13471 _ | IFS | as_nl) ;; #(
13472 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13473 *) { eval $ac_var=; unset $ac_var;} ;;
13474 esac ;;
13475 esac
13476 done
13478 (set) 2>&1 |
13479 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13480 *${as_nl}ac_space=\ *)
13481 # `set' does not quote correctly, so add quotes: double-quote
13482 # substitution turns \\\\ into \\, and sed turns \\ into \.
13483 sed -n \
13484 "s/'/'\\\\''/g;
13485 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13486 ;; #(
13488 # `set' quotes correctly as required by POSIX, so do not add quotes.
13489 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13491 esac |
13492 sort
13494 sed '
13495 /^ac_cv_env_/b end
13496 t clear
13497 :clear
13498 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13499 t end
13500 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13501 :end' >>confcache
13502 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13503 if test -w "$cache_file"; then
13504 test "x$cache_file" != "x/dev/null" &&
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13506 $as_echo "$as_me: updating cache $cache_file" >&6;}
13507 cat confcache >$cache_file
13508 else
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13510 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13513 rm -f confcache
13515 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13516 # Let make expand exec_prefix.
13517 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13519 DEFS=-DHAVE_CONFIG_H
13521 ac_libobjs=
13522 ac_ltlibobjs=
13523 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13524 # 1. Remove the extension, and $U if already installed.
13525 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13526 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13527 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13528 # will be set to the directory where LIBOBJS objects are built.
13529 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13530 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13531 done
13532 LIBOBJS=$ac_libobjs
13534 LTLIBOBJS=$ac_ltlibobjs
13538 : ${CONFIG_STATUS=./config.status}
13539 ac_write_fail=0
13540 ac_clean_files_save=$ac_clean_files
13541 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13543 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13544 as_write_fail=0
13545 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13546 #! $SHELL
13547 # Generated by $as_me.
13548 # Run this file to recreate the current configuration.
13549 # Compiler output produced by configure, useful for debugging
13550 # configure, is in config.log if it exists.
13552 debug=false
13553 ac_cs_recheck=false
13554 ac_cs_silent=false
13556 SHELL=\${CONFIG_SHELL-$SHELL}
13557 export SHELL
13558 _ASEOF
13559 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13560 ## -------------------- ##
13561 ## M4sh Initialization. ##
13562 ## -------------------- ##
13564 # Be more Bourne compatible
13565 DUALCASE=1; export DUALCASE # for MKS sh
13566 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13567 emulate sh
13568 NULLCMD=:
13569 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13570 # is contrary to our usage. Disable this feature.
13571 alias -g '${1+"$@"}'='"$@"'
13572 setopt NO_GLOB_SUBST
13573 else
13574 case `(set -o) 2>/dev/null` in #(
13575 *posix*) :
13576 set -o posix ;; #(
13577 *) :
13579 esac
13583 as_nl='
13585 export as_nl
13586 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13587 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13588 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13589 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13590 # Prefer a ksh shell builtin over an external printf program on Solaris,
13591 # but without wasting forks for bash or zsh.
13592 if test -z "$BASH_VERSION$ZSH_VERSION" \
13593 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13594 as_echo='print -r --'
13595 as_echo_n='print -rn --'
13596 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13597 as_echo='printf %s\n'
13598 as_echo_n='printf %s'
13599 else
13600 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13601 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13602 as_echo_n='/usr/ucb/echo -n'
13603 else
13604 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13605 as_echo_n_body='eval
13606 arg=$1;
13607 case $arg in #(
13608 *"$as_nl"*)
13609 expr "X$arg" : "X\\(.*\\)$as_nl";
13610 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13611 esac;
13612 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13614 export as_echo_n_body
13615 as_echo_n='sh -c $as_echo_n_body as_echo'
13617 export as_echo_body
13618 as_echo='sh -c $as_echo_body as_echo'
13621 # The user is always right.
13622 if test "${PATH_SEPARATOR+set}" != set; then
13623 PATH_SEPARATOR=:
13624 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13625 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13626 PATH_SEPARATOR=';'
13631 # IFS
13632 # We need space, tab and new line, in precisely that order. Quoting is
13633 # there to prevent editors from complaining about space-tab.
13634 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13635 # splitting by setting IFS to empty value.)
13636 IFS=" "" $as_nl"
13638 # Find who we are. Look in the path if we contain no directory separator.
13639 case $0 in #((
13640 *[\\/]* ) as_myself=$0 ;;
13641 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13642 for as_dir in $PATH
13644 IFS=$as_save_IFS
13645 test -z "$as_dir" && as_dir=.
13646 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13647 done
13648 IFS=$as_save_IFS
13651 esac
13652 # We did not find ourselves, most probably we were run as `sh COMMAND'
13653 # in which case we are not to be found in the path.
13654 if test "x$as_myself" = x; then
13655 as_myself=$0
13657 if test ! -f "$as_myself"; then
13658 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13659 exit 1
13662 # Unset variables that we do not need and which cause bugs (e.g. in
13663 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13664 # suppresses any "Segmentation fault" message there. '((' could
13665 # trigger a bug in pdksh 5.2.14.
13666 for as_var in BASH_ENV ENV MAIL MAILPATH
13667 do eval test x\${$as_var+set} = xset \
13668 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13669 done
13670 PS1='$ '
13671 PS2='> '
13672 PS4='+ '
13674 # NLS nuisances.
13675 LC_ALL=C
13676 export LC_ALL
13677 LANGUAGE=C
13678 export LANGUAGE
13680 # CDPATH.
13681 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13684 # as_fn_error ERROR [LINENO LOG_FD]
13685 # ---------------------------------
13686 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13687 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13688 # script with status $?, using 1 if that was 0.
13689 as_fn_error ()
13691 as_status=$?; test $as_status -eq 0 && as_status=1
13692 if test "$3"; then
13693 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13694 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13696 $as_echo "$as_me: error: $1" >&2
13697 as_fn_exit $as_status
13698 } # as_fn_error
13701 # as_fn_set_status STATUS
13702 # -----------------------
13703 # Set $? to STATUS, without forking.
13704 as_fn_set_status ()
13706 return $1
13707 } # as_fn_set_status
13709 # as_fn_exit STATUS
13710 # -----------------
13711 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13712 as_fn_exit ()
13714 set +e
13715 as_fn_set_status $1
13716 exit $1
13717 } # as_fn_exit
13719 # as_fn_unset VAR
13720 # ---------------
13721 # Portably unset VAR.
13722 as_fn_unset ()
13724 { eval $1=; unset $1;}
13726 as_unset=as_fn_unset
13727 # as_fn_append VAR VALUE
13728 # ----------------------
13729 # Append the text in VALUE to the end of the definition contained in VAR. Take
13730 # advantage of any shell optimizations that allow amortized linear growth over
13731 # repeated appends, instead of the typical quadratic growth present in naive
13732 # implementations.
13733 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13734 eval 'as_fn_append ()
13736 eval $1+=\$2
13738 else
13739 as_fn_append ()
13741 eval $1=\$$1\$2
13743 fi # as_fn_append
13745 # as_fn_arith ARG...
13746 # ------------------
13747 # Perform arithmetic evaluation on the ARGs, and store the result in the
13748 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13749 # must be portable across $(()) and expr.
13750 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13751 eval 'as_fn_arith ()
13753 as_val=$(( $* ))
13755 else
13756 as_fn_arith ()
13758 as_val=`expr "$@" || test $? -eq 1`
13760 fi # as_fn_arith
13763 if expr a : '\(a\)' >/dev/null 2>&1 &&
13764 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13765 as_expr=expr
13766 else
13767 as_expr=false
13770 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13771 as_basename=basename
13772 else
13773 as_basename=false
13776 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13777 as_dirname=dirname
13778 else
13779 as_dirname=false
13782 as_me=`$as_basename -- "$0" ||
13783 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13784 X"$0" : 'X\(//\)$' \| \
13785 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13786 $as_echo X/"$0" |
13787 sed '/^.*\/\([^/][^/]*\)\/*$/{
13788 s//\1/
13791 /^X\/\(\/\/\)$/{
13792 s//\1/
13795 /^X\/\(\/\).*/{
13796 s//\1/
13799 s/.*/./; q'`
13801 # Avoid depending upon Character Ranges.
13802 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13803 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13804 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13805 as_cr_digits='0123456789'
13806 as_cr_alnum=$as_cr_Letters$as_cr_digits
13808 ECHO_C= ECHO_N= ECHO_T=
13809 case `echo -n x` in #(((((
13810 -n*)
13811 case `echo 'xy\c'` in
13812 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13813 xy) ECHO_C='\c';;
13814 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13815 ECHO_T=' ';;
13816 esac;;
13818 ECHO_N='-n';;
13819 esac
13821 rm -f conf$$ conf$$.exe conf$$.file
13822 if test -d conf$$.dir; then
13823 rm -f conf$$.dir/conf$$.file
13824 else
13825 rm -f conf$$.dir
13826 mkdir conf$$.dir 2>/dev/null
13828 if (echo >conf$$.file) 2>/dev/null; then
13829 if ln -s conf$$.file conf$$ 2>/dev/null; then
13830 as_ln_s='ln -s'
13831 # ... but there are two gotchas:
13832 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13833 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13834 # In both cases, we have to default to `cp -p'.
13835 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13836 as_ln_s='cp -p'
13837 elif ln conf$$.file conf$$ 2>/dev/null; then
13838 as_ln_s=ln
13839 else
13840 as_ln_s='cp -p'
13842 else
13843 as_ln_s='cp -p'
13845 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13846 rmdir conf$$.dir 2>/dev/null
13849 # as_fn_mkdir_p
13850 # -------------
13851 # Create "$as_dir" as a directory, including parents if necessary.
13852 as_fn_mkdir_p ()
13855 case $as_dir in #(
13856 -*) as_dir=./$as_dir;;
13857 esac
13858 test -d "$as_dir" || eval $as_mkdir_p || {
13859 as_dirs=
13860 while :; do
13861 case $as_dir in #(
13862 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13863 *) as_qdir=$as_dir;;
13864 esac
13865 as_dirs="'$as_qdir' $as_dirs"
13866 as_dir=`$as_dirname -- "$as_dir" ||
13867 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13868 X"$as_dir" : 'X\(//\)[^/]' \| \
13869 X"$as_dir" : 'X\(//\)$' \| \
13870 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13871 $as_echo X"$as_dir" |
13872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13873 s//\1/
13876 /^X\(\/\/\)[^/].*/{
13877 s//\1/
13880 /^X\(\/\/\)$/{
13881 s//\1/
13884 /^X\(\/\).*/{
13885 s//\1/
13888 s/.*/./; q'`
13889 test -d "$as_dir" && break
13890 done
13891 test -z "$as_dirs" || eval "mkdir $as_dirs"
13892 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13895 } # as_fn_mkdir_p
13896 if mkdir -p . 2>/dev/null; then
13897 as_mkdir_p='mkdir -p "$as_dir"'
13898 else
13899 test -d ./-p && rmdir ./-p
13900 as_mkdir_p=false
13903 if test -x / >/dev/null 2>&1; then
13904 as_test_x='test -x'
13905 else
13906 if ls -dL / >/dev/null 2>&1; then
13907 as_ls_L_option=L
13908 else
13909 as_ls_L_option=
13911 as_test_x='
13912 eval sh -c '\''
13913 if test -d "$1"; then
13914 test -d "$1/.";
13915 else
13916 case $1 in #(
13917 -*)set "./$1";;
13918 esac;
13919 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13920 ???[sx]*):;;*)false;;esac;fi
13921 '\'' sh
13924 as_executable_p=$as_test_x
13926 # Sed expression to map a string onto a valid CPP name.
13927 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13929 # Sed expression to map a string onto a valid variable name.
13930 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13933 exec 6>&1
13934 ## ----------------------------------- ##
13935 ## Main body of $CONFIG_STATUS script. ##
13936 ## ----------------------------------- ##
13937 _ASEOF
13938 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13941 # Save the log message, to keep $0 and so on meaningful, and to
13942 # report actual input values of CONFIG_FILES etc. instead of their
13943 # values after options handling.
13944 ac_log="
13945 This file was extended by emacs $as_me 23.2.90, which was
13946 generated by GNU Autoconf 2.65. Invocation command line was
13948 CONFIG_FILES = $CONFIG_FILES
13949 CONFIG_HEADERS = $CONFIG_HEADERS
13950 CONFIG_LINKS = $CONFIG_LINKS
13951 CONFIG_COMMANDS = $CONFIG_COMMANDS
13952 $ $0 $@
13954 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13957 _ACEOF
13959 case $ac_config_files in *"
13960 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13961 esac
13963 case $ac_config_headers in *"
13964 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13965 esac
13968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13969 # Files that config.status was made for.
13970 config_files="$ac_config_files"
13971 config_headers="$ac_config_headers"
13972 config_commands="$ac_config_commands"
13974 _ACEOF
13976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13977 ac_cs_usage="\
13978 \`$as_me' instantiates files and other configuration actions
13979 from templates according to the current configuration. Unless the files
13980 and actions are specified as TAGs, all are instantiated by default.
13982 Usage: $0 [OPTION]... [TAG]...
13984 -h, --help print this help, then exit
13985 -V, --version print version number and configuration settings, then exit
13986 --config print configuration, then exit
13987 -q, --quiet, --silent
13988 do not print progress messages
13989 -d, --debug don't remove temporary files
13990 --recheck update $as_me by reconfiguring in the same conditions
13991 --file=FILE[:TEMPLATE]
13992 instantiate the configuration file FILE
13993 --header=FILE[:TEMPLATE]
13994 instantiate the configuration header FILE
13996 Configuration files:
13997 $config_files
13999 Configuration headers:
14000 $config_headers
14002 Configuration commands:
14003 $config_commands
14005 Report bugs to the package provider."
14007 _ACEOF
14008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14009 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14010 ac_cs_version="\\
14011 emacs config.status 23.2.90
14012 configured by $0, generated by GNU Autoconf 2.65,
14013 with options \\"\$ac_cs_config\\"
14015 Copyright (C) 2009 Free Software Foundation, Inc.
14016 This config.status script is free software; the Free Software Foundation
14017 gives unlimited permission to copy, distribute and modify it."
14019 ac_pwd='$ac_pwd'
14020 srcdir='$srcdir'
14021 INSTALL='$INSTALL'
14022 test -n "\$AWK" || AWK=awk
14023 _ACEOF
14025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14026 # The default lists apply if the user does not specify any file.
14027 ac_need_defaults=:
14028 while test $# != 0
14030 case $1 in
14031 --*=*)
14032 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14033 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14034 ac_shift=:
14037 ac_option=$1
14038 ac_optarg=$2
14039 ac_shift=shift
14041 esac
14043 case $ac_option in
14044 # Handling of the options.
14045 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14046 ac_cs_recheck=: ;;
14047 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14048 $as_echo "$ac_cs_version"; exit ;;
14049 --config | --confi | --conf | --con | --co | --c )
14050 $as_echo "$ac_cs_config"; exit ;;
14051 --debug | --debu | --deb | --de | --d | -d )
14052 debug=: ;;
14053 --file | --fil | --fi | --f )
14054 $ac_shift
14055 case $ac_optarg in
14056 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14057 esac
14058 as_fn_append CONFIG_FILES " '$ac_optarg'"
14059 ac_need_defaults=false;;
14060 --header | --heade | --head | --hea )
14061 $ac_shift
14062 case $ac_optarg in
14063 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14064 esac
14065 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14066 ac_need_defaults=false;;
14067 --he | --h)
14068 # Conflict between --help and --header
14069 as_fn_error "ambiguous option: \`$1'
14070 Try \`$0 --help' for more information.";;
14071 --help | --hel | -h )
14072 $as_echo "$ac_cs_usage"; exit ;;
14073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14074 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14075 ac_cs_silent=: ;;
14077 # This is an error.
14078 -*) as_fn_error "unrecognized option: \`$1'
14079 Try \`$0 --help' for more information." ;;
14081 *) as_fn_append ac_config_targets " $1"
14082 ac_need_defaults=false ;;
14084 esac
14085 shift
14086 done
14088 ac_configure_extra_args=
14090 if $ac_cs_silent; then
14091 exec 6>/dev/null
14092 ac_configure_extra_args="$ac_configure_extra_args --silent"
14095 _ACEOF
14096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14097 if \$ac_cs_recheck; then
14098 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14099 shift
14100 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14101 CONFIG_SHELL='$SHELL'
14102 export CONFIG_SHELL
14103 exec "\$@"
14106 _ACEOF
14107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14108 exec 5>>config.log
14110 echo
14111 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14112 ## Running $as_me. ##
14113 _ASBOX
14114 $as_echo "$ac_log"
14115 } >&5
14117 _ACEOF
14118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14120 # INIT-COMMANDS
14122 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
14124 _ACEOF
14126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14128 # Handling of arguments.
14129 for ac_config_target in $ac_config_targets
14131 case $ac_config_target in
14132 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
14133 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14134 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
14135 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
14136 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
14137 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
14138 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
14139 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
14140 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
14141 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
14142 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
14143 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
14144 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14146 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14147 esac
14148 done
14151 # If the user did not use the arguments to specify the items to instantiate,
14152 # then the envvar interface is used. Set only those that are not.
14153 # We use the long form for the default assignment because of an extremely
14154 # bizarre bug on SunOS 4.1.3.
14155 if $ac_need_defaults; then
14156 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14157 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14158 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14161 # Have a temporary directory for convenience. Make it in the build tree
14162 # simply because there is no reason against having it here, and in addition,
14163 # creating and moving files from /tmp can sometimes cause problems.
14164 # Hook for its removal unless debugging.
14165 # Note that there is a small window in which the directory will not be cleaned:
14166 # after its creation but before its name has been assigned to `$tmp'.
14167 $debug ||
14169 tmp=
14170 trap 'exit_status=$?
14171 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14173 trap 'as_fn_exit 1' 1 2 13 15
14175 # Create a (secure) tmp directory for tmp files.
14178 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14179 test -n "$tmp" && test -d "$tmp"
14180 } ||
14182 tmp=./conf$$-$RANDOM
14183 (umask 077 && mkdir "$tmp")
14184 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14186 # Set up the scripts for CONFIG_FILES section.
14187 # No need to generate them if there are no CONFIG_FILES.
14188 # This happens for instance with `./config.status config.h'.
14189 if test -n "$CONFIG_FILES"; then
14192 ac_cr=`echo X | tr X '\015'`
14193 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14194 # But we know of no other shell where ac_cr would be empty at this
14195 # point, so we can use a bashism as a fallback.
14196 if test "x$ac_cr" = x; then
14197 eval ac_cr=\$\'\\r\'
14199 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14200 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14201 ac_cs_awk_cr='\r'
14202 else
14203 ac_cs_awk_cr=$ac_cr
14206 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14207 _ACEOF
14211 echo "cat >conf$$subs.awk <<_ACEOF" &&
14212 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14213 echo "_ACEOF"
14214 } >conf$$subs.sh ||
14215 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14216 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14217 ac_delim='%!_!# '
14218 for ac_last_try in false false false false false :; do
14219 . ./conf$$subs.sh ||
14220 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14222 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14223 if test $ac_delim_n = $ac_delim_num; then
14224 break
14225 elif $ac_last_try; then
14226 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14227 else
14228 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14230 done
14231 rm -f conf$$subs.sh
14233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14234 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14235 _ACEOF
14236 sed -n '
14238 s/^/S["/; s/!.*/"]=/
14241 s/^[^!]*!//
14242 :repl
14243 t repl
14244 s/'"$ac_delim"'$//
14245 t delim
14248 s/\(.\{148\}\)..*/\1/
14249 t more1
14250 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14253 b repl
14254 :more1
14255 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14258 s/.\{148\}//
14259 t nl
14260 :delim
14262 s/\(.\{148\}\)..*/\1/
14263 t more2
14264 s/["\\]/\\&/g; s/^/"/; s/$/"/
14267 :more2
14268 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14271 s/.\{148\}//
14272 t delim
14273 ' <conf$$subs.awk | sed '
14274 /^[^""]/{
14276 s/\n//
14278 ' >>$CONFIG_STATUS || ac_write_fail=1
14279 rm -f conf$$subs.awk
14280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14281 _ACAWK
14282 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14283 for (key in S) S_is_set[key] = 1
14284 FS = "\a"
14288 line = $ 0
14289 nfields = split(line, field, "@")
14290 substed = 0
14291 len = length(field[1])
14292 for (i = 2; i < nfields; i++) {
14293 key = field[i]
14294 keylen = length(key)
14295 if (S_is_set[key]) {
14296 value = S[key]
14297 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14298 len += length(value) + length(field[++i])
14299 substed = 1
14300 } else
14301 len += 1 + keylen
14304 print line
14307 _ACAWK
14308 _ACEOF
14309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14310 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14311 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14312 else
14314 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14315 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14316 _ACEOF
14318 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14319 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14320 # trailing colons and then remove the whole line if VPATH becomes empty
14321 # (actually we leave an empty line to preserve line numbers).
14322 if test "x$srcdir" = x.; then
14323 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14324 s/:*\$(srcdir):*/:/
14325 s/:*\${srcdir}:*/:/
14326 s/:*@srcdir@:*/:/
14327 s/^\([^=]*=[ ]*\):*/\1/
14328 s/:*$//
14329 s/^[^=]*=[ ]*$//
14333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14334 fi # test -n "$CONFIG_FILES"
14336 # Set up the scripts for CONFIG_HEADERS section.
14337 # No need to generate them if there are no CONFIG_HEADERS.
14338 # This happens for instance with `./config.status Makefile'.
14339 if test -n "$CONFIG_HEADERS"; then
14340 cat >"$tmp/defines.awk" <<\_ACAWK ||
14341 BEGIN {
14342 _ACEOF
14344 # Transform confdefs.h into an awk script `defines.awk', embedded as
14345 # here-document in config.status, that substitutes the proper values into
14346 # config.h.in to produce config.h.
14348 # Create a delimiter string that does not exist in confdefs.h, to ease
14349 # handling of long lines.
14350 ac_delim='%!_!# '
14351 for ac_last_try in false false :; do
14352 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14353 if test -z "$ac_t"; then
14354 break
14355 elif $ac_last_try; then
14356 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14357 else
14358 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14360 done
14362 # For the awk script, D is an array of macro values keyed by name,
14363 # likewise P contains macro parameters if any. Preserve backslash
14364 # newline sequences.
14366 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14367 sed -n '
14368 s/.\{148\}/&'"$ac_delim"'/g
14369 t rset
14370 :rset
14371 s/^[ ]*#[ ]*define[ ][ ]*/ /
14372 t def
14374 :def
14375 s/\\$//
14376 t bsnl
14377 s/["\\]/\\&/g
14378 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14379 D["\1"]=" \3"/p
14380 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14382 :bsnl
14383 s/["\\]/\\&/g
14384 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14385 D["\1"]=" \3\\\\\\n"\\/p
14386 t cont
14387 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14388 t cont
14390 :cont
14392 s/.\{148\}/&'"$ac_delim"'/g
14393 t clear
14394 :clear
14395 s/\\$//
14396 t bsnlc
14397 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14399 :bsnlc
14400 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14401 b cont
14402 ' <confdefs.h | sed '
14403 s/'"$ac_delim"'/"\\\
14404 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14407 for (key in D) D_is_set[key] = 1
14408 FS = "\a"
14410 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14411 line = \$ 0
14412 split(line, arg, " ")
14413 if (arg[1] == "#") {
14414 defundef = arg[2]
14415 mac1 = arg[3]
14416 } else {
14417 defundef = substr(arg[1], 2)
14418 mac1 = arg[2]
14420 split(mac1, mac2, "(") #)
14421 macro = mac2[1]
14422 prefix = substr(line, 1, index(line, defundef) - 1)
14423 if (D_is_set[macro]) {
14424 # Preserve the white space surrounding the "#".
14425 print prefix "define", macro P[macro] D[macro]
14426 next
14427 } else {
14428 # Replace #undef with comments. This is necessary, for example,
14429 # in the case of _POSIX_SOURCE, which is predefined and required
14430 # on some systems where configure will not decide to define it.
14431 if (defundef == "undef") {
14432 print "/*", prefix defundef, macro, "*/"
14433 next
14437 { print }
14438 _ACAWK
14439 _ACEOF
14440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14441 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14442 fi # test -n "$CONFIG_HEADERS"
14445 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14446 shift
14447 for ac_tag
14449 case $ac_tag in
14450 :[FHLC]) ac_mode=$ac_tag; continue;;
14451 esac
14452 case $ac_mode$ac_tag in
14453 :[FHL]*:*);;
14454 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14455 :[FH]-) ac_tag=-:-;;
14456 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14457 esac
14458 ac_save_IFS=$IFS
14459 IFS=:
14460 set x $ac_tag
14461 IFS=$ac_save_IFS
14462 shift
14463 ac_file=$1
14464 shift
14466 case $ac_mode in
14467 :L) ac_source=$1;;
14468 :[FH])
14469 ac_file_inputs=
14470 for ac_f
14472 case $ac_f in
14473 -) ac_f="$tmp/stdin";;
14474 *) # Look for the file first in the build tree, then in the source tree
14475 # (if the path is not absolute). The absolute path cannot be DOS-style,
14476 # because $ac_f cannot contain `:'.
14477 test -f "$ac_f" ||
14478 case $ac_f in
14479 [\\/$]*) false;;
14480 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14481 esac ||
14482 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14483 esac
14484 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14485 as_fn_append ac_file_inputs " '$ac_f'"
14486 done
14488 # Let's still pretend it is `configure' which instantiates (i.e., don't
14489 # use $as_me), people would be surprised to read:
14490 # /* config.h. Generated by config.status. */
14491 configure_input='Generated from '`
14492 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14493 `' by configure.'
14494 if test x"$ac_file" != x-; then
14495 configure_input="$ac_file. $configure_input"
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14497 $as_echo "$as_me: creating $ac_file" >&6;}
14499 # Neutralize special characters interpreted by sed in replacement strings.
14500 case $configure_input in #(
14501 *\&* | *\|* | *\\* )
14502 ac_sed_conf_input=`$as_echo "$configure_input" |
14503 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14504 *) ac_sed_conf_input=$configure_input;;
14505 esac
14507 case $ac_tag in
14508 *:-:* | *:-) cat >"$tmp/stdin" \
14509 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14510 esac
14512 esac
14514 ac_dir=`$as_dirname -- "$ac_file" ||
14515 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14516 X"$ac_file" : 'X\(//\)[^/]' \| \
14517 X"$ac_file" : 'X\(//\)$' \| \
14518 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14519 $as_echo X"$ac_file" |
14520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14521 s//\1/
14524 /^X\(\/\/\)[^/].*/{
14525 s//\1/
14528 /^X\(\/\/\)$/{
14529 s//\1/
14532 /^X\(\/\).*/{
14533 s//\1/
14536 s/.*/./; q'`
14537 as_dir="$ac_dir"; as_fn_mkdir_p
14538 ac_builddir=.
14540 case "$ac_dir" in
14541 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14543 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14544 # A ".." for each directory in $ac_dir_suffix.
14545 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14546 case $ac_top_builddir_sub in
14547 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14548 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14549 esac ;;
14550 esac
14551 ac_abs_top_builddir=$ac_pwd
14552 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14553 # for backward compatibility:
14554 ac_top_builddir=$ac_top_build_prefix
14556 case $srcdir in
14557 .) # We are building in place.
14558 ac_srcdir=.
14559 ac_top_srcdir=$ac_top_builddir_sub
14560 ac_abs_top_srcdir=$ac_pwd ;;
14561 [\\/]* | ?:[\\/]* ) # Absolute name.
14562 ac_srcdir=$srcdir$ac_dir_suffix;
14563 ac_top_srcdir=$srcdir
14564 ac_abs_top_srcdir=$srcdir ;;
14565 *) # Relative name.
14566 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14567 ac_top_srcdir=$ac_top_build_prefix$srcdir
14568 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14569 esac
14570 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14573 case $ac_mode in
14576 # CONFIG_FILE
14579 case $INSTALL in
14580 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14581 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14582 esac
14583 _ACEOF
14585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14586 # If the template does not know about datarootdir, expand it.
14587 # FIXME: This hack should be removed a few years after 2.60.
14588 ac_datarootdir_hack=; ac_datarootdir_seen=
14589 ac_sed_dataroot='
14590 /datarootdir/ {
14594 /@datadir@/p
14595 /@docdir@/p
14596 /@infodir@/p
14597 /@localedir@/p
14598 /@mandir@/p'
14599 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14600 *datarootdir*) ac_datarootdir_seen=yes;;
14601 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14603 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14604 _ACEOF
14605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14606 ac_datarootdir_hack='
14607 s&@datadir@&$datadir&g
14608 s&@docdir@&$docdir&g
14609 s&@infodir@&$infodir&g
14610 s&@localedir@&$localedir&g
14611 s&@mandir@&$mandir&g
14612 s&\\\${datarootdir}&$datarootdir&g' ;;
14613 esac
14614 _ACEOF
14616 # Neutralize VPATH when `$srcdir' = `.'.
14617 # Shell code in configure.ac might set extrasub.
14618 # FIXME: do we really want to maintain this feature?
14619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14620 ac_sed_extra="$ac_vpsub
14621 $extrasub
14622 _ACEOF
14623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14625 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14626 s|@configure_input@|$ac_sed_conf_input|;t t
14627 s&@top_builddir@&$ac_top_builddir_sub&;t t
14628 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14629 s&@srcdir@&$ac_srcdir&;t t
14630 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14631 s&@top_srcdir@&$ac_top_srcdir&;t t
14632 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14633 s&@builddir@&$ac_builddir&;t t
14634 s&@abs_builddir@&$ac_abs_builddir&;t t
14635 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14636 s&@INSTALL@&$ac_INSTALL&;t t
14637 $ac_datarootdir_hack
14639 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14640 || as_fn_error "could not create $ac_file" "$LINENO" 5
14642 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14643 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14644 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14646 which seems to be undefined. Please make sure it is defined." >&5
14647 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14648 which seems to be undefined. Please make sure it is defined." >&2;}
14650 rm -f "$tmp/stdin"
14651 case $ac_file in
14652 -) cat "$tmp/out" && rm -f "$tmp/out";;
14653 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14654 esac \
14655 || as_fn_error "could not create $ac_file" "$LINENO" 5
14659 # CONFIG_HEADER
14661 if test x"$ac_file" != x-; then
14663 $as_echo "/* $configure_input */" \
14664 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14665 } >"$tmp/config.h" \
14666 || as_fn_error "could not create $ac_file" "$LINENO" 5
14667 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14669 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14670 else
14671 rm -f "$ac_file"
14672 mv "$tmp/config.h" "$ac_file" \
14673 || as_fn_error "could not create $ac_file" "$LINENO" 5
14675 else
14676 $as_echo "/* $configure_input */" \
14677 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14678 || as_fn_error "could not create -" "$LINENO" 5
14682 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14683 $as_echo "$as_me: executing $ac_file commands" >&6;}
14685 esac
14688 case $ac_file$ac_mode in
14689 "default":C)
14691 ### Make the necessary directories, if they don't exist.
14692 for dir in etc lisp ; do
14693 test -d ${dir} || mkdir ${dir}
14694 done
14696 # Build src/Makefile from ${srcdir}/src/Makefile.c
14697 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
14698 # This must be done after src/config.h is built, since we rely on that file.
14700 echo creating src/epaths.h
14701 ${MAKE-make} epaths-force
14703 # As of 2000-11-19, newest development versions of GNU cpp preprocess
14704 # `..' to `. .' unless invoked with -traditional
14706 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
14707 CPPFLAGS="$CPPFLAGS -traditional"
14710 echo creating lib-src/Makefile
14711 ( cd lib-src
14712 rm -f junk.c junk1.c junk2.c
14713 sed -e '/start of cpp stuff/q' \
14714 < Makefile.c > junk1.c
14715 sed -e '1,/start of cpp stuff/d'\
14716 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
14717 < Makefile.c > junk.c
14718 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
14719 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
14720 cat junk1.c junk2.c > Makefile.new
14721 rm -f junk.c junk1.c junk2.c
14722 chmod 444 Makefile.new
14723 mv -f Makefile.new Makefile
14726 echo creating src/Makefile
14727 ( cd src
14728 rm -f junk.c junk1.c junk2.c
14729 sed -e '/start of cpp stuff/q' \
14730 < Makefile.c > junk1.c
14731 sed -e '1,/start of cpp stuff/d'\
14732 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
14733 < Makefile.c > junk.c
14734 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
14735 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
14736 cat junk1.c junk2.c > Makefile.new
14737 rm -f junk.c junk1.c junk2.c
14738 chmod 444 Makefile.new
14739 mv -f Makefile.new Makefile
14742 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
14743 echo creating src/.gdbinit
14744 echo source $srcdir/src/.gdbinit > src/.gdbinit
14749 esac
14750 done # for ac_tag
14753 as_fn_exit 0
14754 _ACEOF
14755 ac_clean_files=$ac_clean_files_save
14757 test $ac_write_fail = 0 ||
14758 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14761 # configure is writing to config.log, and then calls config.status.
14762 # config.status does its own redirection, appending to config.log.
14763 # Unfortunately, on DOS this fails, as config.log is still kept open
14764 # by configure, so config.status won't be able to write to it; its
14765 # output is simply discarded. So we exec the FD to /dev/null,
14766 # effectively closing config.log, so it can be properly (re)opened and
14767 # appended to by config.status. When coming back to configure, we
14768 # need to make the FD available again.
14769 if test "$no_create" != yes; then
14770 ac_cs_success=:
14771 ac_config_status_args=
14772 test "$silent" = yes &&
14773 ac_config_status_args="$ac_config_status_args --quiet"
14774 exec 5>/dev/null
14775 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14776 exec 5>>config.log
14777 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14778 # would make configure fail if this is the last instruction.
14779 $ac_cs_success || as_fn_exit $?
14781 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14783 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}