* lisp/gnus/gnus-sync.el (gnus-sync): Fix defgroup version.
[emacs.git] / configure
blob3eaf150a25e6dda8ff86f83350b594a123338290
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.66 for emacs 24.0.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, 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 STATUS 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=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&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, old GNU/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='24.0.50'
553 PACKAGE_STRING='emacs 24.0.50'
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 WINDOW_SUPPORT
599 TOOLTIP_SUPPORT
600 MOUSE_SUPPORT
601 LIB_GCC
602 LINKER
603 LD_SWITCH_SYSTEM_TEMACS
604 POST_ALLOC_OBJ
605 PRE_ALLOC_OBJ
606 CYGWIN_OBJ
607 RALLOC_OBJ
608 OLDXMENU_DEPS
609 LIBX_OTHER
610 LIBXMENU
611 OLDXMENU
612 OLDXMENU_TARGET
613 LIBXT_OTHER
614 TOOLKIT_LIBW
615 WIDGET_OBJ
616 XOBJ
617 XMENU_OBJ
618 FONT_OBJ
619 OTHER_FILES
620 GNU_OBJC_CFLAGS
621 ns_appsrc
622 ns_appresdir
623 ns_appbindir
624 ns_appdir
625 opsysfile
626 machfile
627 X_TOOLKIT_TYPE
628 C_SWITCH_X_SYSTEM
629 C_SWITCH_X_SITE
630 LD_SWITCH_X_SITE
631 gameuser
632 gamedir
633 bitmapdir
634 archlibdir
635 etcdir
636 x_default_search_path
637 lisppath
638 locallisppath
639 lispdir
640 srcdir
641 canonical
642 configuration
643 version
644 KRB4LIB
645 DESLIB
646 KRB5LIB
647 CRYPTOLIB
648 COM_ERRLIB
649 LIBRESOLV
650 LIBHESIOD
651 TERMCAP_OBJ
652 LIBS_TERMCAP
653 GETOPTOBJS
654 GETOPT_H
655 GETLOADAVG_LIBS
656 KMEM_GROUP
657 NEED_SETGID
658 LIBOBJS
659 BLESSMAIL_TARGET
660 LIBS_MAIL
661 liblockfile
662 ALLOCA
663 LIBXSM
664 LIBGPM
665 LIBGIF
666 LIBTIFF
667 LIBPNG
668 LIBJPEG
669 LIBXPM
670 FREETYPE_LIBS
671 FREETYPE_CFLAGS
672 M17N_FLT_LIBS
673 M17N_FLT_CFLAGS
674 LIBOTF_LIBS
675 LIBOTF_CFLAGS
676 XFT_LIBS
677 XFT_CFLAGS
678 FONTCONFIG_LIBS
679 FONTCONFIG_CFLAGS
680 LIBXMU
681 LIBXTR6
682 LIBSELINUX_LIBS
683 GCONF_LIBS
684 GCONF_CFLAGS
685 DBUS_OBJ
686 DBUS_LIBS
687 DBUS_CFLAGS
688 GTK_OBJ
689 GTK_LIBS
690 GTK_CFLAGS
691 RSVG_LIBS
692 RSVG_CFLAGS
693 VMLIMIT_OBJ
694 GMALLOC_OBJ
695 HAVE_XSERVER
696 LIB_STANDARD
697 NS_SUPPORT
698 NS_OBJ
699 TEMACS_LDFLAGS2
700 LD_SWITCH_X_SITE_AUX_RPATH
701 LD_SWITCH_X_SITE_AUX
702 XMKMF
703 DEPFLAGS
704 MKDEPDIR
705 SET_MAKE
706 CFLAGS_SOUND
707 ALSA_LIBS
708 ALSA_CFLAGS
709 PKG_CONFIG
710 LIBSOUND
711 START_FILES
712 LIB_MATH
713 CRT_DIR
714 LIBS_SYSTEM
715 C_SWITCH_SYSTEM
716 UNEXEC_OBJ
717 C_SWITCH_MACHINE
718 LD_SWITCH_SYSTEM
719 CANNOT_DUMP
720 MAKEINFO
721 GZIP_PROG
722 INSTALL_INFO
723 RANLIB
724 INSTALL_DATA
725 INSTALL_SCRIPT
726 INSTALL_PROGRAM
727 C_WARNINGS_SWITCH
728 EGREP
729 GREP
731 OBJEXT
732 EXEEXT
733 ac_ct_CC
734 CPPFLAGS
735 LDFLAGS
736 CFLAGS
738 host_os
739 host_vendor
740 host_cpu
741 host
742 build_os
743 build_vendor
744 build_cpu
745 build
746 PROFILING_LDFLAGS
747 PROFILING_CFLAGS
748 MAINT
749 GZIP_INFO
750 target_alias
751 host_alias
752 build_alias
753 LIBS
754 ECHO_T
755 ECHO_N
756 ECHO_C
757 DEFS
758 mandir
759 localedir
760 libdir
761 psdir
762 pdfdir
763 dvidir
764 htmldir
765 infodir
766 docdir
767 oldincludedir
768 includedir
769 localstatedir
770 sharedstatedir
771 sysconfdir
772 datadir
773 datarootdir
774 libexecdir
775 sbindir
776 bindir
777 program_transform_name
778 prefix
779 exec_prefix
780 PACKAGE_URL
781 PACKAGE_BUGREPORT
782 PACKAGE_STRING
783 PACKAGE_VERSION
784 PACKAGE_TARNAME
785 PACKAGE_NAME
786 PATH_SEPARATOR
787 SHELL'
788 ac_subst_files='deps_frag
789 ns_frag'
790 ac_user_opts='
791 enable_option_checking
792 with_pop
793 with_kerberos
794 with_kerberos5
795 with_hesiod
796 with_mmdf
797 with_mail_unlink
798 with_mailhost
799 with_sound
800 with_sync_input
801 with_x_toolkit
802 with_xpm
803 with_jpeg
804 with_tiff
805 with_gif
806 with_png
807 with_rsvg
808 with_xft
809 with_libotf
810 with_m17n_flt
811 with_toolkit_scroll_bars
812 with_xaw3d
813 with_xim
814 with_ns
815 with_gpm
816 with_dbus
817 with_gconf
818 with_selinux
819 with_makeinfo
820 with_compress_info
821 with_pkg_config_prog
822 with_crt_dir
823 with_gnustep_conf
824 enable_ns_self_contained
825 enable_asserts
826 enable_maintainer_mode
827 enable_locallisppath
828 enable_checking
829 enable_use_lisp_union_type
830 enable_profiling
831 enable_autodepend
832 enable_largefile
833 with_x
835 ac_precious_vars='build_alias
836 host_alias
837 target_alias
839 CFLAGS
840 LDFLAGS
841 LIBS
842 CPPFLAGS
844 XMKMF'
847 # Initialize some variables set by options.
848 ac_init_help=
849 ac_init_version=false
850 ac_unrecognized_opts=
851 ac_unrecognized_sep=
852 # The variables have the same names as the options, with
853 # dashes changed to underlines.
854 cache_file=/dev/null
855 exec_prefix=NONE
856 no_create=
857 no_recursion=
858 prefix=NONE
859 program_prefix=NONE
860 program_suffix=NONE
861 program_transform_name=s,x,x,
862 silent=
863 site=
864 srcdir=
865 verbose=
866 x_includes=NONE
867 x_libraries=NONE
869 # Installation directory options.
870 # These are left unexpanded so users can "make install exec_prefix=/foo"
871 # and all the variables that are supposed to be based on exec_prefix
872 # by default will actually change.
873 # Use braces instead of parens because sh, perl, etc. also accept them.
874 # (The list follows the same order as the GNU Coding Standards.)
875 bindir='${exec_prefix}/bin'
876 sbindir='${exec_prefix}/sbin'
877 libexecdir='${exec_prefix}/libexec'
878 datarootdir='${prefix}/share'
879 datadir='${datarootdir}'
880 sysconfdir='${prefix}/etc'
881 sharedstatedir='${prefix}/com'
882 localstatedir='${prefix}/var'
883 includedir='${prefix}/include'
884 oldincludedir='/usr/include'
885 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
886 infodir='${datarootdir}/info'
887 htmldir='${docdir}'
888 dvidir='${docdir}'
889 pdfdir='${docdir}'
890 psdir='${docdir}'
891 libdir='${exec_prefix}/lib'
892 localedir='${datarootdir}/locale'
893 mandir='${datarootdir}/man'
895 ac_prev=
896 ac_dashdash=
897 for ac_option
899 # If the previous option needs an argument, assign it.
900 if test -n "$ac_prev"; then
901 eval $ac_prev=\$ac_option
902 ac_prev=
903 continue
906 case $ac_option in
907 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908 *) ac_optarg=yes ;;
909 esac
911 # Accept the important Cygnus configure options, so we can diagnose typos.
913 case $ac_dashdash$ac_option in
915 ac_dashdash=yes ;;
917 -bindir | --bindir | --bindi | --bind | --bin | --bi)
918 ac_prev=bindir ;;
919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920 bindir=$ac_optarg ;;
922 -build | --build | --buil | --bui | --bu)
923 ac_prev=build_alias ;;
924 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925 build_alias=$ac_optarg ;;
927 -cache-file | --cache-file | --cache-fil | --cache-fi \
928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929 ac_prev=cache_file ;;
930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932 cache_file=$ac_optarg ;;
934 --config-cache | -C)
935 cache_file=config.cache ;;
937 -datadir | --datadir | --datadi | --datad)
938 ac_prev=datadir ;;
939 -datadir=* | --datadir=* | --datadi=* | --datad=*)
940 datadir=$ac_optarg ;;
942 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943 | --dataroo | --dataro | --datar)
944 ac_prev=datarootdir ;;
945 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947 datarootdir=$ac_optarg ;;
949 -disable-* | --disable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error $? "invalid feature name: $ac_useropt"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
958 "enable_$ac_useropt"
959 "*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=no ;;
965 -docdir | --docdir | --docdi | --doc | --do)
966 ac_prev=docdir ;;
967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968 docdir=$ac_optarg ;;
970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971 ac_prev=dvidir ;;
972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973 dvidir=$ac_optarg ;;
975 -enable-* | --enable-*)
976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 as_fn_error $? "invalid feature name: $ac_useropt"
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
984 "enable_$ac_useropt"
985 "*) ;;
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
988 esac
989 eval enable_$ac_useropt=\$ac_optarg ;;
991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993 | --exec | --exe | --ex)
994 ac_prev=exec_prefix ;;
995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997 | --exec=* | --exe=* | --ex=*)
998 exec_prefix=$ac_optarg ;;
1000 -gas | --gas | --ga | --g)
1001 # Obsolete; use --with-gas.
1002 with_gas=yes ;;
1004 -help | --help | --hel | --he | -h)
1005 ac_init_help=long ;;
1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007 ac_init_help=recursive ;;
1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009 ac_init_help=short ;;
1011 -host | --host | --hos | --ho)
1012 ac_prev=host_alias ;;
1013 -host=* | --host=* | --hos=* | --ho=*)
1014 host_alias=$ac_optarg ;;
1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017 ac_prev=htmldir ;;
1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019 | --ht=*)
1020 htmldir=$ac_optarg ;;
1022 -includedir | --includedir | --includedi | --included | --include \
1023 | --includ | --inclu | --incl | --inc)
1024 ac_prev=includedir ;;
1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026 | --includ=* | --inclu=* | --incl=* | --inc=*)
1027 includedir=$ac_optarg ;;
1029 -infodir | --infodir | --infodi | --infod | --info | --inf)
1030 ac_prev=infodir ;;
1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032 infodir=$ac_optarg ;;
1034 -libdir | --libdir | --libdi | --libd)
1035 ac_prev=libdir ;;
1036 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037 libdir=$ac_optarg ;;
1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040 | --libexe | --libex | --libe)
1041 ac_prev=libexecdir ;;
1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043 | --libexe=* | --libex=* | --libe=*)
1044 libexecdir=$ac_optarg ;;
1046 -localedir | --localedir | --localedi | --localed | --locale)
1047 ac_prev=localedir ;;
1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049 localedir=$ac_optarg ;;
1051 -localstatedir | --localstatedir | --localstatedi | --localstated \
1052 | --localstate | --localstat | --localsta | --localst | --locals)
1053 ac_prev=localstatedir ;;
1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056 localstatedir=$ac_optarg ;;
1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059 ac_prev=mandir ;;
1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061 mandir=$ac_optarg ;;
1063 -nfp | --nfp | --nf)
1064 # Obsolete; use --without-fp.
1065 with_fp=no ;;
1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068 | --no-cr | --no-c | -n)
1069 no_create=yes ;;
1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073 no_recursion=yes ;;
1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077 | --oldin | --oldi | --old | --ol | --o)
1078 ac_prev=oldincludedir ;;
1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082 oldincludedir=$ac_optarg ;;
1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085 ac_prev=prefix ;;
1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087 prefix=$ac_optarg ;;
1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090 | --program-pre | --program-pr | --program-p)
1091 ac_prev=program_prefix ;;
1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094 program_prefix=$ac_optarg ;;
1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097 | --program-suf | --program-su | --program-s)
1098 ac_prev=program_suffix ;;
1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101 program_suffix=$ac_optarg ;;
1103 -program-transform-name | --program-transform-name \
1104 | --program-transform-nam | --program-transform-na \
1105 | --program-transform-n | --program-transform- \
1106 | --program-transform | --program-transfor \
1107 | --program-transfo | --program-transf \
1108 | --program-trans | --program-tran \
1109 | --progr-tra | --program-tr | --program-t)
1110 ac_prev=program_transform_name ;;
1111 -program-transform-name=* | --program-transform-name=* \
1112 | --program-transform-nam=* | --program-transform-na=* \
1113 | --program-transform-n=* | --program-transform-=* \
1114 | --program-transform=* | --program-transfor=* \
1115 | --program-transfo=* | --program-transf=* \
1116 | --program-trans=* | --program-tran=* \
1117 | --progr-tra=* | --program-tr=* | --program-t=*)
1118 program_transform_name=$ac_optarg ;;
1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121 ac_prev=pdfdir ;;
1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123 pdfdir=$ac_optarg ;;
1125 -psdir | --psdir | --psdi | --psd | --ps)
1126 ac_prev=psdir ;;
1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128 psdir=$ac_optarg ;;
1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131 | -silent | --silent | --silen | --sile | --sil)
1132 silent=yes ;;
1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135 ac_prev=sbindir ;;
1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137 | --sbi=* | --sb=*)
1138 sbindir=$ac_optarg ;;
1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142 | --sharedst | --shareds | --shared | --share | --shar \
1143 | --sha | --sh)
1144 ac_prev=sharedstatedir ;;
1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148 | --sha=* | --sh=*)
1149 sharedstatedir=$ac_optarg ;;
1151 -site | --site | --sit)
1152 ac_prev=site ;;
1153 -site=* | --site=* | --sit=*)
1154 site=$ac_optarg ;;
1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157 ac_prev=srcdir ;;
1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159 srcdir=$ac_optarg ;;
1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162 | --syscon | --sysco | --sysc | --sys | --sy)
1163 ac_prev=sysconfdir ;;
1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166 sysconfdir=$ac_optarg ;;
1168 -target | --target | --targe | --targ | --tar | --ta | --t)
1169 ac_prev=target_alias ;;
1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171 target_alias=$ac_optarg ;;
1173 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174 verbose=yes ;;
1176 -version | --version | --versio | --versi | --vers | -V)
1177 ac_init_version=: ;;
1179 -with-* | --with-*)
1180 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error $? "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1188 "with_$ac_useropt"
1189 "*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval with_$ac_useropt=\$ac_optarg ;;
1195 -without-* | --without-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error $? "invalid package name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1204 "with_$ac_useropt"
1205 "*) ;;
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1208 esac
1209 eval with_$ac_useropt=no ;;
1211 --x)
1212 # Obsolete; use --with-x.
1213 with_x=yes ;;
1215 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216 | --x-incl | --x-inc | --x-in | --x-i)
1217 ac_prev=x_includes ;;
1218 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1220 x_includes=$ac_optarg ;;
1222 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224 ac_prev=x_libraries ;;
1225 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1227 x_libraries=$ac_optarg ;;
1229 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1230 Try \`$0 --help' for more information"
1233 *=*)
1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235 # Reject names that are not valid shell variable names.
1236 case $ac_envvar in #(
1237 '' | [0-9]* | *[!_$as_cr_alnum]* )
1238 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1239 esac
1240 eval $ac_envvar=\$ac_optarg
1241 export $ac_envvar ;;
1244 # FIXME: should be removed in autoconf 3.0.
1245 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1251 esac
1252 done
1254 if test -n "$ac_prev"; then
1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1256 as_fn_error $? "missing argument to $ac_option"
1259 if test -n "$ac_unrecognized_opts"; then
1260 case $enable_option_checking in
1261 no) ;;
1262 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1263 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1264 esac
1267 # Check all directory arguments for consistency.
1268 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269 datadir sysconfdir sharedstatedir localstatedir includedir \
1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir
1273 eval ac_val=\$$ac_var
1274 # Remove trailing slashes.
1275 case $ac_val in
1276 */ )
1277 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278 eval $ac_var=\$ac_val;;
1279 esac
1280 # Be sure to have absolute directory names.
1281 case $ac_val in
1282 [\\/$]* | ?:[\\/]* ) continue;;
1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284 esac
1285 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1286 done
1288 # There might be people who depend on the old broken behavior: `$host'
1289 # used to hold the argument of --host etc.
1290 # FIXME: To remove some day.
1291 build=$build_alias
1292 host=$host_alias
1293 target=$target_alias
1295 # FIXME: To remove some day.
1296 if test "x$host_alias" != x; then
1297 if test "x$build_alias" = x; then
1298 cross_compiling=maybe
1299 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1300 If a cross compiler is detected then cross compile mode will be used" >&2
1301 elif test "x$build_alias" != "x$host_alias"; then
1302 cross_compiling=yes
1306 ac_tool_prefix=
1307 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309 test "$silent" = yes && exec 6>/dev/null
1312 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313 ac_ls_di=`ls -di .` &&
1314 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315 as_fn_error $? "working directory cannot be determined"
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 as_fn_error $? "pwd does not report name of working directory"
1320 # Find the source files, if location was not specified.
1321 if test -z "$srcdir"; then
1322 ac_srcdir_defaulted=yes
1323 # Try the directory containing this script, then the parent directory.
1324 ac_confdir=`$as_dirname -- "$as_myself" ||
1325 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326 X"$as_myself" : 'X\(//\)[^/]' \| \
1327 X"$as_myself" : 'X\(//\)$' \| \
1328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329 $as_echo X"$as_myself" |
1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 s//\1/
1334 /^X\(\/\/\)[^/].*/{
1335 s//\1/
1338 /^X\(\/\/\)$/{
1339 s//\1/
1342 /^X\(\/\).*/{
1343 s//\1/
1346 s/.*/./; q'`
1347 srcdir=$ac_confdir
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 srcdir=..
1351 else
1352 ac_srcdir_defaulted=no
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1358 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359 ac_abs_confdir=`(
1360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1361 pwd)`
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 srcdir=.
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1369 case $srcdir in
1370 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371 esac
1372 for ac_var in $ac_precious_vars; do
1373 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_${ac_var}_value=\$${ac_var}
1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377 done
1380 # Report the --help message.
1382 if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1385 cat <<_ACEOF
1386 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1388 Usage: $0 [OPTION]... [VAR=VALUE]...
1390 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391 VAR=VALUE. See below for descriptions of some of the useful variables.
1393 Defaults for the options are specified in brackets.
1395 Configuration:
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
1400 -q, --quiet, --silent do not print \`checking ...' messages
1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for \`--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1406 Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
1408 [$ac_default_prefix]
1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1410 [PREFIX]
1412 By default, \`make install' will install all the files in
1413 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415 for instance \`--prefix=\$HOME'.
1417 For better control, use the options below.
1419 Fine tuning of the installation directories:
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --libdir=DIR object code libraries [EPREFIX/lib]
1427 --includedir=DIR C header files [PREFIX/include]
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
1439 _ACEOF
1441 cat <<\_ACEOF
1443 Program names:
1444 --program-prefix=PREFIX prepend PREFIX to installed program names
1445 --program-suffix=SUFFIX append SUFFIX to installed program names
1446 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1448 X features:
1449 --x-includes=DIR X include files are in DIR
1450 --x-libraries=DIR X library files are in DIR
1452 System types:
1453 --build=BUILD configure for building on BUILD [guessed]
1454 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1455 _ACEOF
1458 if test -n "$ac_init_help"; then
1459 case $ac_init_help in
1460 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1461 esac
1462 cat <<\_ACEOF
1464 Optional Features:
1465 --disable-option-checking ignore unrecognized --enable/--with options
1466 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1467 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1468 --disable-ns-self-contained
1469 disable self contained build under NeXTstep
1470 --enable-asserts compile code with asserts enabled
1471 --enable-maintainer-mode
1472 enable make rules and dependencies not useful (and
1473 sometimes confusing) to the casual installer
1474 --enable-locallisppath=PATH
1475 directories Emacs should search for lisp files
1476 specific to this site
1477 --enable-checking[=LIST]
1478 enable expensive run-time checks. With LIST, enable
1479 only specific categories of checks. Categories are:
1480 all,yes,no. Flags are: stringbytes, stringoverrun,
1481 stringfreelist, xmallocoverrun, conslist
1482 --enable-use-lisp-union-type
1483 use a union for the Lisp_Object data type. This is
1484 only useful for development for catching certain
1485 types of bugs.
1486 --enable-profiling build emacs with profiling support. This might not
1487 work on all platforms
1488 --enable-autodepend automatically generate dependencies to .h-files.
1489 Requires GNU Make and Gcc. Enabled if GNU Make and
1490 Gcc is found
1491 --disable-largefile omit support for large files
1493 Optional Packages:
1494 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1495 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1496 --without-pop don't support POP mail retrieval with movemail
1497 --with-kerberos support Kerberos-authenticated POP
1498 --with-kerberos5 support Kerberos version 5 authenticated POP
1499 --with-hesiod support Hesiod to get the POP server host
1500 --with-mmdf support MMDF mailboxes
1501 --with-mail-unlink unlink, rather than empty, mail spool after reading
1502 --with-mailhost=HOSTNAME
1503 string giving default POP mail host
1504 --without-sound don't compile with sound support
1505 --without-sync-input process async input synchronously
1506 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1507 lucid or athena, motif, no)
1508 --without-xpm don't compile with XPM image support
1509 --without-jpeg don't compile with JPEG image support
1510 --without-tiff don't compile with TIFF image support
1511 --without-gif don't compile with GIF image support
1512 --without-png don't compile with PNG image support
1513 --without-rsvg don't compile with SVG image support
1514 --without-xft don't use XFT for anti aliased fonts
1515 --without-libotf don't use libotf for OpenType font support
1516 --without-m17n-flt don't use m17n-flt for text shaping
1517 --without-toolkit-scroll-bars
1518 don't use Motif or Xaw3d scroll bars
1519 --without-xaw3d don't use Xaw3d
1520 --without-xim don't use X11 XIM
1521 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1522 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1523 console
1524 --without-dbus don't compile with D-Bus support
1525 --without-gconf don't compile with GConf support
1526 --without-selinux don't compile with SELinux support
1527 --without-makeinfo don't require makeinfo for building manuals
1528 --without-compress-info don't compress the installed Info pages
1529 --with-pkg-config-prog=PATH
1530 path to pkg-config for finding GTK and librsvg
1531 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1532 /usr/lib, or /usr/lib64 on some platforms.
1533 --with-gnustep-conf=PATH
1534 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1535 or /etc/GNUstep/GNUstep.conf
1536 --with-x use the X Window System
1538 Some influential environment variables:
1539 CC C compiler command
1540 CFLAGS C compiler flags
1541 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1542 nonstandard directory <lib dir>
1543 LIBS libraries to pass to the linker, e.g. -l<library>
1544 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1545 you have headers in a nonstandard directory <include dir>
1546 CPP C preprocessor
1547 XMKMF Path to xmkmf, Makefile generator for X Window System
1549 Use these variables to override the choices made by `configure' or to help
1550 it to find libraries and programs with nonstandard names/locations.
1552 Report bugs to the package provider.
1553 _ACEOF
1554 ac_status=$?
1557 if test "$ac_init_help" = "recursive"; then
1558 # If there are subdirs, report their specific --help.
1559 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1560 test -d "$ac_dir" ||
1561 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1562 continue
1563 ac_builddir=.
1565 case "$ac_dir" in
1566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1569 # A ".." for each directory in $ac_dir_suffix.
1570 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1571 case $ac_top_builddir_sub in
1572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1574 esac ;;
1575 esac
1576 ac_abs_top_builddir=$ac_pwd
1577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1578 # for backward compatibility:
1579 ac_top_builddir=$ac_top_build_prefix
1581 case $srcdir in
1582 .) # We are building in place.
1583 ac_srcdir=.
1584 ac_top_srcdir=$ac_top_builddir_sub
1585 ac_abs_top_srcdir=$ac_pwd ;;
1586 [\\/]* | ?:[\\/]* ) # Absolute name.
1587 ac_srcdir=$srcdir$ac_dir_suffix;
1588 ac_top_srcdir=$srcdir
1589 ac_abs_top_srcdir=$srcdir ;;
1590 *) # Relative name.
1591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1592 ac_top_srcdir=$ac_top_build_prefix$srcdir
1593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1594 esac
1595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1597 cd "$ac_dir" || { ac_status=$?; continue; }
1598 # Check for guested configure.
1599 if test -f "$ac_srcdir/configure.gnu"; then
1600 echo &&
1601 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1602 elif test -f "$ac_srcdir/configure"; then
1603 echo &&
1604 $SHELL "$ac_srcdir/configure" --help=recursive
1605 else
1606 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1607 fi || ac_status=$?
1608 cd "$ac_pwd" || { ac_status=$?; break; }
1609 done
1612 test -n "$ac_init_help" && exit $ac_status
1613 if $ac_init_version; then
1614 cat <<\_ACEOF
1615 emacs configure 24.0.50
1616 generated by GNU Autoconf 2.66
1618 Copyright (C) 2010 Free Software Foundation, Inc.
1619 This configure script is free software; the Free Software Foundation
1620 gives unlimited permission to copy, distribute and modify it.
1621 _ACEOF
1622 exit
1625 ## ------------------------ ##
1626 ## Autoconf initialization. ##
1627 ## ------------------------ ##
1629 # ac_fn_c_try_compile LINENO
1630 # --------------------------
1631 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1632 ac_fn_c_try_compile ()
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 rm -f conftest.$ac_objext
1636 if { { ac_try="$ac_compile"
1637 case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_compile") 2>conftest.err
1644 ac_status=$?
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } && {
1652 test -z "$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1654 } && test -s conftest.$ac_objext; then :
1655 ac_retval=0
1656 else
1657 $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1660 ac_retval=1
1662 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1663 as_fn_set_status $ac_retval
1665 } # ac_fn_c_try_compile
1667 # ac_fn_c_try_link LINENO
1668 # -----------------------
1669 # Try to link conftest.$ac_ext, and return whether this succeeded.
1670 ac_fn_c_try_link ()
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 rm -f conftest.$ac_objext conftest$ac_exeext
1674 if { { ac_try="$ac_link"
1675 case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678 esac
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_link") 2>conftest.err
1682 ac_status=$?
1683 if test -s conftest.err; then
1684 grep -v '^ *+' conftest.err >conftest.er1
1685 cat conftest.er1 >&5
1686 mv -f conftest.er1 conftest.err
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && {
1690 test -z "$ac_c_werror_flag" ||
1691 test ! -s conftest.err
1692 } && test -s conftest$ac_exeext && {
1693 test "$cross_compiling" = yes ||
1694 $as_test_x conftest$ac_exeext
1695 }; then :
1696 ac_retval=0
1697 else
1698 $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1701 ac_retval=1
1703 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1704 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1705 # interfere with the next link command; also delete a directory that is
1706 # left behind by Apple's compiler. We do this before executing the actions.
1707 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1708 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1709 as_fn_set_status $ac_retval
1711 } # ac_fn_c_try_link
1713 # ac_fn_c_try_cpp LINENO
1714 # ----------------------
1715 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1716 ac_fn_c_try_cpp ()
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if { { ac_try="$ac_cpp conftest.$ac_ext"
1720 case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1727 ac_status=$?
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } >/dev/null && {
1735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1737 }; then :
1738 ac_retval=0
1739 else
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1743 ac_retval=1
1745 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746 as_fn_set_status $ac_retval
1748 } # ac_fn_c_try_cpp
1750 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1751 # -------------------------------------------------------
1752 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1753 # the include files in INCLUDES and setting the cache variable VAR
1754 # accordingly.
1755 ac_fn_c_check_header_mongrel ()
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 if eval "test \"\${$3+set}\"" = set; then :
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760 $as_echo_n "checking for $2... " >&6; }
1761 if eval "test \"\${$3+set}\"" = set; then :
1762 $as_echo_n "(cached) " >&6
1764 eval ac_res=\$$3
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766 $as_echo "$ac_res" >&6; }
1767 else
1768 # Is the header compilable?
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1770 $as_echo_n "checking $2 usability... " >&6; }
1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772 /* end confdefs.h. */
1774 #include <$2>
1775 _ACEOF
1776 if ac_fn_c_try_compile "$LINENO"; then :
1777 ac_header_compiler=yes
1778 else
1779 ac_header_compiler=no
1781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1783 $as_echo "$ac_header_compiler" >&6; }
1785 # Is the header present?
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1787 $as_echo_n "checking $2 presence... " >&6; }
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h. */
1790 #include <$2>
1791 _ACEOF
1792 if ac_fn_c_try_cpp "$LINENO"; then :
1793 ac_header_preproc=yes
1794 else
1795 ac_header_preproc=no
1797 rm -f conftest.err conftest.$ac_ext
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1799 $as_echo "$ac_header_preproc" >&6; }
1801 # So? What about this header?
1802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1803 yes:no: )
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1805 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1807 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1809 no:yes:* )
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1811 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1813 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1815 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1817 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1819 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1821 esac
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 $as_echo_n "checking for $2... " >&6; }
1824 if eval "test \"\${$3+set}\"" = set; then :
1825 $as_echo_n "(cached) " >&6
1826 else
1827 eval "$3=\$ac_header_compiler"
1829 eval ac_res=\$$3
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 $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_mongrel
1837 # ac_fn_c_try_run LINENO
1838 # ----------------------
1839 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1840 # that executables *can* be run.
1841 ac_fn_c_try_run ()
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 if { { ac_try="$ac_link"
1845 case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_link") 2>&5
1852 ac_status=$?
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1855 { { case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858 esac
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_try") 2>&5
1862 ac_status=$?
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; }; }; then :
1865 ac_retval=0
1866 else
1867 $as_echo "$as_me: program exited with status $ac_status" >&5
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1871 ac_retval=$ac_status
1873 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875 as_fn_set_status $ac_retval
1877 } # ac_fn_c_try_run
1879 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1880 # -------------------------------------------------------
1881 # Tests whether HEADER exists and can be compiled using the include files in
1882 # INCLUDES, setting the cache variable VAR accordingly.
1883 ac_fn_c_check_header_compile ()
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if eval "test \"\${$3+set}\"" = set; then :
1889 $as_echo_n "(cached) " >&6
1890 else
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h. */
1894 #include <$2>
1895 _ACEOF
1896 if ac_fn_c_try_compile "$LINENO"; then :
1897 eval "$3=yes"
1898 else
1899 eval "$3=no"
1901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903 eval ac_res=\$$3
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1906 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908 } # ac_fn_c_check_header_compile
1910 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1911 # ---------------------------------------------
1912 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1913 # accordingly.
1914 ac_fn_c_check_decl ()
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 as_decl_name=`echo $2|sed 's/ *(.*//'`
1918 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1920 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1921 if eval "test \"\${$3+set}\"" = set; then :
1922 $as_echo_n "(cached) " >&6
1923 else
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1928 main ()
1930 #ifndef $as_decl_name
1931 #ifdef __cplusplus
1932 (void) $as_decl_use;
1933 #else
1934 (void) $as_decl_name;
1935 #endif
1936 #endif
1939 return 0;
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943 eval "$3=yes"
1944 else
1945 eval "$3=no"
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 eval ac_res=\$$3
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1952 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1954 } # ac_fn_c_check_decl
1956 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1957 # ----------------------------------------------
1958 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1959 ac_fn_c_check_header_preproc ()
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963 $as_echo_n "checking for $2... " >&6; }
1964 if eval "test \"\${$3+set}\"" = set; then :
1965 $as_echo_n "(cached) " >&6
1966 else
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1969 #include <$2>
1970 _ACEOF
1971 if ac_fn_c_try_cpp "$LINENO"; then :
1972 eval "$3=yes"
1973 else
1974 eval "$3=no"
1976 rm -f conftest.err conftest.$ac_ext
1978 eval ac_res=\$$3
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 $as_echo "$ac_res" >&6; }
1981 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1983 } # ac_fn_c_check_header_preproc
1985 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1986 # ----------------------------------------------------
1987 # Tries to find if the field MEMBER exists in type AGGR, after including
1988 # INCLUDES, setting cache variable VAR accordingly.
1989 ac_fn_c_check_member ()
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1993 $as_echo_n "checking for $2.$3... " >&6; }
1994 if eval "test \"\${$4+set}\"" = set; then :
1995 $as_echo_n "(cached) " >&6
1996 else
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
2001 main ()
2003 static $2 ac_aggr;
2004 if (ac_aggr.$3)
2005 return 0;
2007 return 0;
2009 _ACEOF
2010 if ac_fn_c_try_compile "$LINENO"; then :
2011 eval "$4=yes"
2012 else
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2017 main ()
2019 static $2 ac_aggr;
2020 if (sizeof ac_aggr.$3)
2021 return 0;
2023 return 0;
2025 _ACEOF
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027 eval "$4=yes"
2028 else
2029 eval "$4=no"
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 eval ac_res=\$$4
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037 $as_echo "$ac_res" >&6; }
2038 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2040 } # ac_fn_c_check_member
2042 # ac_fn_c_check_func LINENO FUNC VAR
2043 # ----------------------------------
2044 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2045 ac_fn_c_check_func ()
2047 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2049 $as_echo_n "checking for $2... " >&6; }
2050 if eval "test \"\${$3+set}\"" = set; then :
2051 $as_echo_n "(cached) " >&6
2052 else
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2055 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2057 #define $2 innocuous_$2
2059 /* System header to define __stub macros and hopefully few prototypes,
2060 which can conflict with char $2 (); below.
2061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2062 <limits.h> exists even on freestanding compilers. */
2064 #ifdef __STDC__
2065 # include <limits.h>
2066 #else
2067 # include <assert.h>
2068 #endif
2070 #undef $2
2072 /* Override any GCC internal prototype to avoid an error.
2073 Use char because int might match the return type of a GCC
2074 builtin and then its argument prototype would still apply. */
2075 #ifdef __cplusplus
2076 extern "C"
2077 #endif
2078 char $2 ();
2079 /* The GNU C library defines this for functions which it implements
2080 to always fail with ENOSYS. Some functions are actually named
2081 something starting with __ and the normal name is an alias. */
2082 #if defined __stub_$2 || defined __stub___$2
2083 choke me
2084 #endif
2087 main ()
2089 return $2 ();
2091 return 0;
2093 _ACEOF
2094 if ac_fn_c_try_link "$LINENO"; then :
2095 eval "$3=yes"
2096 else
2097 eval "$3=no"
2099 rm -f core conftest.err conftest.$ac_objext \
2100 conftest$ac_exeext conftest.$ac_ext
2102 eval ac_res=\$$3
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2105 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2107 } # ac_fn_c_check_func
2109 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2110 # -------------------------------------------
2111 # Tests whether TYPE exists after having included INCLUDES, setting cache
2112 # variable VAR accordingly.
2113 ac_fn_c_check_type ()
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2117 $as_echo_n "checking for $2... " >&6; }
2118 if eval "test \"\${$3+set}\"" = set; then :
2119 $as_echo_n "(cached) " >&6
2120 else
2121 eval "$3=no"
2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2126 main ()
2128 if (sizeof ($2))
2129 return 0;
2131 return 0;
2133 _ACEOF
2134 if ac_fn_c_try_compile "$LINENO"; then :
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2139 main ()
2141 if (sizeof (($2)))
2142 return 0;
2144 return 0;
2146 _ACEOF
2147 if ac_fn_c_try_compile "$LINENO"; then :
2149 else
2150 eval "$3=yes"
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156 eval ac_res=\$$3
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2158 $as_echo "$ac_res" >&6; }
2159 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2161 } # ac_fn_c_check_type
2162 cat >config.log <<_ACEOF
2163 This file contains any messages produced by compilers while
2164 running configure, to aid debugging if configure makes a mistake.
2166 It was created by emacs $as_me 24.0.50, which was
2167 generated by GNU Autoconf 2.66. Invocation command line was
2169 $ $0 $@
2171 _ACEOF
2172 exec 5>>config.log
2174 cat <<_ASUNAME
2175 ## --------- ##
2176 ## Platform. ##
2177 ## --------- ##
2179 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2180 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2181 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2182 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2183 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2185 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2186 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2188 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2189 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2190 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2191 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2192 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2193 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2194 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2196 _ASUNAME
2198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199 for as_dir in $PATH
2201 IFS=$as_save_IFS
2202 test -z "$as_dir" && as_dir=.
2203 $as_echo "PATH: $as_dir"
2204 done
2205 IFS=$as_save_IFS
2207 } >&5
2209 cat >&5 <<_ACEOF
2212 ## ----------- ##
2213 ## Core tests. ##
2214 ## ----------- ##
2216 _ACEOF
2219 # Keep a trace of the command line.
2220 # Strip out --no-create and --no-recursion so they do not pile up.
2221 # Strip out --silent because we don't want to record it for future runs.
2222 # Also quote any args containing shell meta-characters.
2223 # Make two passes to allow for proper duplicate-argument suppression.
2224 ac_configure_args=
2225 ac_configure_args0=
2226 ac_configure_args1=
2227 ac_must_keep_next=false
2228 for ac_pass in 1 2
2230 for ac_arg
2232 case $ac_arg in
2233 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2235 | -silent | --silent | --silen | --sile | --sil)
2236 continue ;;
2237 *\'*)
2238 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2239 esac
2240 case $ac_pass in
2241 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2243 as_fn_append ac_configure_args1 " '$ac_arg'"
2244 if test $ac_must_keep_next = true; then
2245 ac_must_keep_next=false # Got value, back to normal.
2246 else
2247 case $ac_arg in
2248 *=* | --config-cache | -C | -disable-* | --disable-* \
2249 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2250 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2251 | -with-* | --with-* | -without-* | --without-* | --x)
2252 case "$ac_configure_args0 " in
2253 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2254 esac
2256 -* ) ac_must_keep_next=true ;;
2257 esac
2259 as_fn_append ac_configure_args " '$ac_arg'"
2261 esac
2262 done
2263 done
2264 { ac_configure_args0=; unset ac_configure_args0;}
2265 { ac_configure_args1=; unset ac_configure_args1;}
2267 # When interrupted or exit'd, cleanup temporary files, and complete
2268 # config.log. We remove comments because anyway the quotes in there
2269 # would cause problems or look ugly.
2270 # WARNING: Use '\'' to represent an apostrophe within the trap.
2271 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2272 trap 'exit_status=$?
2273 # Save into config.log some information that might help in debugging.
2275 echo
2277 $as_echo "## ---------------- ##
2278 ## Cache variables. ##
2279 ## ---------------- ##"
2280 echo
2281 # The following way of writing the cache mishandles newlines in values,
2283 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2284 eval ac_val=\$$ac_var
2285 case $ac_val in #(
2286 *${as_nl}*)
2287 case $ac_var in #(
2288 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2289 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2290 esac
2291 case $ac_var in #(
2292 _ | IFS | as_nl) ;; #(
2293 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2294 *) { eval $ac_var=; unset $ac_var;} ;;
2295 esac ;;
2296 esac
2297 done
2298 (set) 2>&1 |
2299 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2300 *${as_nl}ac_space=\ *)
2301 sed -n \
2302 "s/'\''/'\''\\\\'\'''\''/g;
2303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2304 ;; #(
2306 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2308 esac |
2309 sort
2311 echo
2313 $as_echo "## ----------------- ##
2314 ## Output variables. ##
2315 ## ----------------- ##"
2316 echo
2317 for ac_var in $ac_subst_vars
2319 eval ac_val=\$$ac_var
2320 case $ac_val in
2321 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2322 esac
2323 $as_echo "$ac_var='\''$ac_val'\''"
2324 done | sort
2325 echo
2327 if test -n "$ac_subst_files"; then
2328 $as_echo "## ------------------- ##
2329 ## File substitutions. ##
2330 ## ------------------- ##"
2331 echo
2332 for ac_var in $ac_subst_files
2334 eval ac_val=\$$ac_var
2335 case $ac_val in
2336 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2337 esac
2338 $as_echo "$ac_var='\''$ac_val'\''"
2339 done | sort
2340 echo
2343 if test -s confdefs.h; then
2344 $as_echo "## ----------- ##
2345 ## confdefs.h. ##
2346 ## ----------- ##"
2347 echo
2348 cat confdefs.h
2349 echo
2351 test "$ac_signal" != 0 &&
2352 $as_echo "$as_me: caught signal $ac_signal"
2353 $as_echo "$as_me: exit $exit_status"
2354 } >&5
2355 rm -f core *.core core.conftest.* &&
2356 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2357 exit $exit_status
2359 for ac_signal in 1 2 13 15; do
2360 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2361 done
2362 ac_signal=0
2364 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2365 rm -f -r conftest* confdefs.h
2367 $as_echo "/* confdefs.h */" > confdefs.h
2369 # Predefined preprocessor variables.
2371 cat >>confdefs.h <<_ACEOF
2372 #define PACKAGE_NAME "$PACKAGE_NAME"
2373 _ACEOF
2375 cat >>confdefs.h <<_ACEOF
2376 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2377 _ACEOF
2379 cat >>confdefs.h <<_ACEOF
2380 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2381 _ACEOF
2383 cat >>confdefs.h <<_ACEOF
2384 #define PACKAGE_STRING "$PACKAGE_STRING"
2385 _ACEOF
2387 cat >>confdefs.h <<_ACEOF
2388 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2389 _ACEOF
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_URL "$PACKAGE_URL"
2393 _ACEOF
2396 # Let the site file select an alternate cache file if it wants to.
2397 # Prefer an explicitly selected file to automatically selected ones.
2398 ac_site_file1=NONE
2399 ac_site_file2=NONE
2400 if test -n "$CONFIG_SITE"; then
2401 # We do not want a PATH search for config.site.
2402 case $CONFIG_SITE in #((
2403 -*) ac_site_file1=./$CONFIG_SITE;;
2404 */*) ac_site_file1=$CONFIG_SITE;;
2405 *) ac_site_file1=./$CONFIG_SITE;;
2406 esac
2407 elif test "x$prefix" != xNONE; then
2408 ac_site_file1=$prefix/share/config.site
2409 ac_site_file2=$prefix/etc/config.site
2410 else
2411 ac_site_file1=$ac_default_prefix/share/config.site
2412 ac_site_file2=$ac_default_prefix/etc/config.site
2414 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2416 test "x$ac_site_file" = xNONE && continue
2417 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2419 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2420 sed 's/^/| /' "$ac_site_file" >&5
2421 . "$ac_site_file" \
2422 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2424 as_fn_error $? "failed to load site script $ac_site_file
2425 See \`config.log' for more details" "$LINENO" 5; }
2427 done
2429 if test -r "$cache_file"; then
2430 # Some versions of bash will fail to source /dev/null (special files
2431 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2432 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2434 $as_echo "$as_me: loading cache $cache_file" >&6;}
2435 case $cache_file in
2436 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2437 *) . "./$cache_file";;
2438 esac
2440 else
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2442 $as_echo "$as_me: creating cache $cache_file" >&6;}
2443 >$cache_file
2446 as_fn_append ac_header_list " stdlib.h"
2447 as_fn_append ac_header_list " unistd.h"
2448 as_fn_append ac_header_list " sys/param.h"
2449 as_fn_append ac_header_list " sys/time.h"
2450 as_fn_append ac_func_list " alarm"
2451 # Check that the precious variables saved in the cache have kept the same
2452 # value.
2453 ac_cache_corrupted=false
2454 for ac_var in $ac_precious_vars; do
2455 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2456 eval ac_new_set=\$ac_env_${ac_var}_set
2457 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2458 eval ac_new_val=\$ac_env_${ac_var}_value
2459 case $ac_old_set,$ac_new_set in
2460 set,)
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2462 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2463 ac_cache_corrupted=: ;;
2464 ,set)
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2466 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2467 ac_cache_corrupted=: ;;
2468 ,);;
2470 if test "x$ac_old_val" != "x$ac_new_val"; then
2471 # differences in whitespace do not lead to failure.
2472 ac_old_val_w=`echo x $ac_old_val`
2473 ac_new_val_w=`echo x $ac_new_val`
2474 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2476 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2477 ac_cache_corrupted=:
2478 else
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2480 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2481 eval $ac_var=\$ac_old_val
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2484 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2486 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2487 fi;;
2488 esac
2489 # Pass precious variables to config.status.
2490 if test "$ac_new_set" = set; then
2491 case $ac_new_val in
2492 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2493 *) ac_arg=$ac_var=$ac_new_val ;;
2494 esac
2495 case " $ac_configure_args " in
2496 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2497 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2498 esac
2500 done
2501 if $ac_cache_corrupted; then
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2505 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2506 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2508 ## -------------------- ##
2509 ## Main body of script. ##
2510 ## -------------------- ##
2512 ac_ext=c
2513 ac_cpp='$CPP $CPPFLAGS'
2514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2519 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2523 test "$program_prefix" != NONE &&
2524 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2525 # Use a double $ so make ignores it.
2526 test "$program_suffix" != NONE &&
2527 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2528 # Double any \ or $.
2529 # By default was `s,x,x', remove it if useless.
2530 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2531 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2534 lispdir='${datadir}/emacs/${version}/lisp'
2535 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2536 '${datadir}/emacs/site-lisp'
2537 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2538 etcdir='${datadir}/emacs/${version}/etc'
2539 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2540 docdir='${datadir}/emacs/${version}/etc'
2541 gamedir='${localstatedir}/games/emacs'
2543 gameuser=games
2548 # Check whether --with-pop was given.
2549 if test "${with_pop+set}" = set; then :
2550 withval=$with_pop;
2551 else
2552 with_pop=yes
2555 if test "$with_pop" = yes; then
2556 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2561 # Check whether --with-kerberos was given.
2562 if test "${with_kerberos+set}" = set; then :
2563 withval=$with_kerberos;
2564 else
2565 with_kerberos=no
2568 if test "$with_kerberos" != no; then
2569 $as_echo "#define KERBEROS 1" >>confdefs.h
2574 # Check whether --with-kerberos5 was given.
2575 if test "${with_kerberos5+set}" = set; then :
2576 withval=$with_kerberos5;
2577 else
2578 with_kerberos5=no
2581 if test "${with_kerberos5}" != no; then
2582 if test "${with_kerberos}" = no; then
2583 with_kerberos=yes
2584 $as_echo "#define KERBEROS 1" >>confdefs.h
2588 $as_echo "#define KERBEROS5 1" >>confdefs.h
2593 # Check whether --with-hesiod was given.
2594 if test "${with_hesiod+set}" = set; then :
2595 withval=$with_hesiod;
2596 else
2597 with_hesiod=no
2600 if test "$with_hesiod" != no; then
2602 $as_echo "#define HESIOD 1" >>confdefs.h
2607 # Check whether --with-mmdf was given.
2608 if test "${with_mmdf+set}" = set; then :
2609 withval=$with_mmdf;
2610 else
2611 with_mmdf=no
2614 if test "$with_mmdf" != no; then
2616 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2621 # Check whether --with-mail-unlink was given.
2622 if test "${with_mail_unlink+set}" = set; then :
2623 withval=$with_mail_unlink;
2624 else
2625 with_mail_unlink=no
2628 if test "$with_mail_unlink" != no; then
2630 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2635 # Check whether --with-mailhost was given.
2636 if test "${with_mailhost+set}" = set; then :
2637 withval=$with_mailhost;
2638 cat >>confdefs.h <<_ACEOF
2639 #define MAILHOST "$withval"
2640 _ACEOF
2646 # Check whether --with-sound was given.
2647 if test "${with_sound+set}" = set; then :
2648 withval=$with_sound;
2649 else
2650 with_sound=yes
2655 # Check whether --with-sync-input was given.
2656 if test "${with_sync_input+set}" = set; then :
2657 withval=$with_sync_input;
2658 else
2659 with_sync_input=yes
2662 if test "$with_sync_input" = yes; then
2664 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2669 # Check whether --with-x-toolkit was given.
2670 if test "${with_x_toolkit+set}" = set; then :
2671 withval=$with_x_toolkit; case "${withval}" in
2672 y | ye | yes ) val=gtk ;;
2673 n | no ) val=no ;;
2674 l | lu | luc | luci | lucid ) val=lucid ;;
2675 a | at | ath | athe | athen | athena ) val=athena ;;
2676 m | mo | mot | moti | motif ) val=motif ;;
2677 g | gt | gtk ) val=gtk ;;
2678 gtk3 ) val=gtk3 ;;
2680 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
2681 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
2682 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2684 esac
2685 with_x_toolkit=$val
2691 # Check whether --with-xpm was given.
2692 if test "${with_xpm+set}" = set; then :
2693 withval=$with_xpm;
2694 else
2695 with_xpm=yes
2699 # Check whether --with-jpeg was given.
2700 if test "${with_jpeg+set}" = set; then :
2701 withval=$with_jpeg;
2702 else
2703 with_jpeg=yes
2707 # Check whether --with-tiff was given.
2708 if test "${with_tiff+set}" = set; then :
2709 withval=$with_tiff;
2710 else
2711 with_tiff=yes
2715 # Check whether --with-gif was given.
2716 if test "${with_gif+set}" = set; then :
2717 withval=$with_gif;
2718 else
2719 with_gif=yes
2723 # Check whether --with-png was given.
2724 if test "${with_png+set}" = set; then :
2725 withval=$with_png;
2726 else
2727 with_png=yes
2731 # Check whether --with-rsvg was given.
2732 if test "${with_rsvg+set}" = set; then :
2733 withval=$with_rsvg;
2734 else
2735 with_rsvg=yes
2740 # Check whether --with-xft was given.
2741 if test "${with_xft+set}" = set; then :
2742 withval=$with_xft;
2743 else
2744 with_xft=yes
2748 # Check whether --with-libotf was given.
2749 if test "${with_libotf+set}" = set; then :
2750 withval=$with_libotf;
2751 else
2752 with_libotf=yes
2756 # Check whether --with-m17n-flt was given.
2757 if test "${with_m17n_flt+set}" = set; then :
2758 withval=$with_m17n_flt;
2759 else
2760 with_m17n_flt=yes
2765 # Check whether --with-toolkit-scroll-bars was given.
2766 if test "${with_toolkit_scroll_bars+set}" = set; then :
2767 withval=$with_toolkit_scroll_bars;
2768 else
2769 with_toolkit_scroll_bars=yes
2773 # Check whether --with-xaw3d was given.
2774 if test "${with_xaw3d+set}" = set; then :
2775 withval=$with_xaw3d;
2776 else
2777 with_xaw3d=yes
2781 # Check whether --with-xim was given.
2782 if test "${with_xim+set}" = set; then :
2783 withval=$with_xim;
2784 else
2785 with_xim=yes
2789 # Check whether --with-ns was given.
2790 if test "${with_ns+set}" = set; then :
2791 withval=$with_ns;
2792 else
2793 with_ns=no
2798 # Check whether --with-gpm was given.
2799 if test "${with_gpm+set}" = set; then :
2800 withval=$with_gpm;
2801 else
2802 with_gpm=yes
2806 # Check whether --with-dbus was given.
2807 if test "${with_dbus+set}" = set; then :
2808 withval=$with_dbus;
2809 else
2810 with_dbus=yes
2814 # Check whether --with-gconf was given.
2815 if test "${with_gconf+set}" = set; then :
2816 withval=$with_gconf;
2817 else
2818 with_gconf=yes
2822 # Check whether --with-selinux was given.
2823 if test "${with_selinux+set}" = set; then :
2824 withval=$with_selinux;
2825 else
2826 with_selinux=yes
2830 ## For the times when you want to build Emacs but don't have
2831 ## a suitable makeinfo, and can live without the manuals.
2833 # Check whether --with-makeinfo was given.
2834 if test "${with_makeinfo+set}" = set; then :
2835 withval=$with_makeinfo;
2836 else
2837 with_makeinfo=yes
2841 ## This is an option because I do not know if all info/man support
2842 ## compressed files, nor how to test if they do so.
2844 # Check whether --with-compress-info was given.
2845 if test "${with_compress_info+set}" = set; then :
2846 withval=$with_compress_info;
2847 else
2848 with_compress_info=yes
2851 if test $with_compress_info = yes; then
2852 GZIP_INFO=yes
2853 else
2854 GZIP_INFO=
2859 # Check whether --with-pkg-config-prog was given.
2860 if test "${with_pkg_config_prog+set}" = set; then :
2861 withval=$with_pkg_config_prog;
2864 if test "X${with_pkg_config_prog}" != X; then
2865 if test "${with_pkg_config_prog}" != yes; then
2866 PKG_CONFIG="${with_pkg_config_prog}"
2870 CRT_DIR=
2872 # Check whether --with-crt-dir was given.
2873 if test "${with_crt_dir+set}" = set; then :
2874 withval=$with_crt_dir;
2877 CRT_DIR="${with_crt_dir}"
2880 # Check whether --with-gnustep-conf was given.
2881 if test "${with_gnustep_conf+set}" = set; then :
2882 withval=$with_gnustep_conf;
2885 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2886 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2887 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2888 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2890 # Check whether --enable-ns-self-contained was given.
2891 if test "${enable_ns_self_contained+set}" = set; then :
2892 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2893 else
2894 EN_NS_SELF_CONTAINED=yes
2898 # Check whether --enable-asserts was given.
2899 if test "${enable_asserts+set}" = set; then :
2900 enableval=$enable_asserts; USE_XASSERTS=$enableval
2901 else
2902 USE_XASSERTS=no
2906 # Check whether --enable-maintainer-mode was given.
2907 if test "${enable_maintainer_mode+set}" = set; then :
2908 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2909 else
2910 USE_MAINTAINER_MODE=no
2913 if test $USE_MAINTAINER_MODE = yes; then
2914 MAINT=
2915 else
2916 MAINT=#
2920 # Check whether --enable-locallisppath was given.
2921 if test "${enable_locallisppath+set}" = set; then :
2922 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2923 locallisppath=
2924 elif test "${enableval}" != "yes"; then
2925 locallisppath=${enableval}
2930 # Check whether --enable-checking was given.
2931 if test "${enable_checking+set}" = set; then :
2932 enableval=$enable_checking; ac_checking_flags="${enableval}"
2935 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2936 for check in $ac_checking_flags
2938 case $check in
2939 # these set all the flags to specific states
2940 yes) ac_enable_checking=1 ;;
2941 no) ac_enable_checking= ;
2942 ac_gc_check_stringbytes= ;
2943 ac_gc_check_string_overrun= ;
2944 ac_gc_check_string_free_list= ;
2945 ac_xmalloc_overrun= ;
2946 ac_gc_check_cons_list= ;;
2947 all) ac_enable_checking=1 ;
2948 ac_gc_check_stringbytes=1 ;
2949 ac_gc_check_string_overrun=1 ;
2950 ac_gc_check_string_free_list=1 ;
2951 ac_xmalloc_overrun=1 ;
2952 ac_gc_check_cons_list=1 ;;
2953 # these enable particular checks
2954 stringbytes) ac_gc_check_stringbytes=1 ;;
2955 stringoverrun) ac_gc_check_string_overrun=1 ;;
2956 stringfreelist) ac_gc_check_string_free_list=1 ;;
2957 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2958 conslist) ac_gc_check_cons_list=1 ;;
2959 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
2960 esac
2961 done
2962 IFS="$ac_save_IFS"
2964 if test x$ac_enable_checking != x ; then
2966 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2969 if test x$ac_gc_check_stringbytes != x ; then
2971 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2974 if test x$ac_gc_check_stringoverrun != x ; then
2976 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
2979 if test x$ac_gc_check_string_free_list != x ; then
2981 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
2984 if test x$ac_xmalloc_overrun != x ; then
2986 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
2989 if test x$ac_gc_check_cons_list != x ; then
2991 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
2995 # Check whether --enable-use-lisp-union-type was given.
2996 if test "${enable_use_lisp_union_type+set}" = set; then :
2997 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
2999 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3006 # Check whether --enable-profiling was given.
3007 if test "${enable_profiling+set}" = set; then :
3008 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3011 if test x$ac_enable_profiling != x ; then
3012 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3013 PROFILING_LDFLAGS="-pg"
3014 else
3015 PROFILING_CFLAGS=
3016 PROFILING_LDFLAGS=
3021 # Check whether --enable-autodepend was given.
3022 if test "${enable_autodepend+set}" = set; then :
3023 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3024 else
3025 ac_enable_autodepend=yes
3029 #### Make srcdir absolute, if it isn't already. It's important to
3030 #### avoid running the path through pwd unnecessarily, since pwd can
3031 #### give you automounter prefixes, which can go away. We do all this
3032 #### so Emacs can find its files when run uninstalled.
3033 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3034 unset CDPATH
3035 case "${srcdir}" in
3036 /* ) ;;
3038 ## We may be able to use the $PWD environment variable to make this
3039 ## absolute. But sometimes PWD is inaccurate.
3040 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3041 ## but that tested only for a well-formed and valid PWD,
3042 ## it did not object when PWD was well-formed and valid but just wrong.
3043 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3044 then
3045 srcdir="$PWD"
3046 else
3047 srcdir="`(cd ${srcdir}; pwd)`"
3050 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3051 esac
3053 #### Check if the source directory already has a configured system in it.
3054 if test `pwd` != `(cd ${srcdir} && pwd)` \
3055 && test -f "${srcdir}/src/config.h" ; then
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3057 as a build directory right now; it has been configured in its own
3058 right. To configure in another directory as well, you MUST
3059 use GNU make. If you do not have GNU make, then you must
3060 now do \`make distclean' in ${srcdir},
3061 and then run $0 again." >&5
3062 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3063 as a build directory right now; it has been configured in its own
3064 right. To configure in another directory as well, you MUST
3065 use GNU make. If you do not have GNU make, then you must
3066 now do \`make distclean' in ${srcdir},
3067 and then run $0 again." >&2;}
3070 #### Given the configuration name, set machfile and opsysfile to the
3071 #### names of the m/*.h and s/*.h files we should use.
3073 ### Canonicalize the configuration name.
3075 ac_aux_dir=
3076 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3077 if test -f "$ac_dir/install-sh"; then
3078 ac_aux_dir=$ac_dir
3079 ac_install_sh="$ac_aux_dir/install-sh -c"
3080 break
3081 elif test -f "$ac_dir/install.sh"; then
3082 ac_aux_dir=$ac_dir
3083 ac_install_sh="$ac_aux_dir/install.sh -c"
3084 break
3085 elif test -f "$ac_dir/shtool"; then
3086 ac_aux_dir=$ac_dir
3087 ac_install_sh="$ac_aux_dir/shtool install -c"
3088 break
3090 done
3091 if test -z "$ac_aux_dir"; then
3092 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3095 # These three variables are undocumented and unsupported,
3096 # and are intended to be withdrawn in a future Autoconf release.
3097 # They can cause serious problems if a builder's source tree is in a directory
3098 # whose full name contains unusual characters.
3099 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3100 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3101 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3104 # Make sure we can run config.sub.
3105 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3106 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3109 $as_echo_n "checking build system type... " >&6; }
3110 if test "${ac_cv_build+set}" = set; then :
3111 $as_echo_n "(cached) " >&6
3112 else
3113 ac_build_alias=$build_alias
3114 test "x$ac_build_alias" = x &&
3115 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3116 test "x$ac_build_alias" = x &&
3117 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3118 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3119 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3123 $as_echo "$ac_cv_build" >&6; }
3124 case $ac_cv_build in
3125 *-*-*) ;;
3126 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3127 esac
3128 build=$ac_cv_build
3129 ac_save_IFS=$IFS; IFS='-'
3130 set x $ac_cv_build
3131 shift
3132 build_cpu=$1
3133 build_vendor=$2
3134 shift; shift
3135 # Remember, the first character of IFS is used to create $*,
3136 # except with old shells:
3137 build_os=$*
3138 IFS=$ac_save_IFS
3139 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3143 $as_echo_n "checking host system type... " >&6; }
3144 if test "${ac_cv_host+set}" = set; then :
3145 $as_echo_n "(cached) " >&6
3146 else
3147 if test "x$host_alias" = x; then
3148 ac_cv_host=$ac_cv_build
3149 else
3150 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3151 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3156 $as_echo "$ac_cv_host" >&6; }
3157 case $ac_cv_host in
3158 *-*-*) ;;
3159 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3160 esac
3161 host=$ac_cv_host
3162 ac_save_IFS=$IFS; IFS='-'
3163 set x $ac_cv_host
3164 shift
3165 host_cpu=$1
3166 host_vendor=$2
3167 shift; shift
3168 # Remember, the first character of IFS is used to create $*,
3169 # except with old shells:
3170 host_os=$*
3171 IFS=$ac_save_IFS
3172 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3175 canonical=$host
3176 configuration=${host_alias-${build_alias-$host}}
3180 ### If you add support for a new configuration, add code to this
3181 ### switch statement to recognize your configuration name and select
3182 ### the appropriate operating system and machine description files.
3184 ### You would hope that you could choose an m/*.h file pretty much
3185 ### based on the machine portion of the configuration name, and an s/*.h
3186 ### file based on the operating system portion. However, it turns out
3187 ### that each m/*.h file is pretty manufacturer-specific - for
3188 ### example mips.h is MIPS
3189 ### So we basically have to have a special case for each
3190 ### configuration name.
3192 ### As far as handling version numbers on operating systems is
3193 ### concerned, make sure things will fail in a fixable way. If
3194 ### /etc/MACHINES doesn't say anything about version numbers, be
3195 ### prepared to handle anything reasonably. If version numbers
3196 ### matter, be sure /etc/MACHINES says something about it.
3198 machine='' opsys='' unported=no
3199 case "${canonical}" in
3201 ## FreeBSD ports
3202 *-*-freebsd* )
3203 opsys=freebsd
3204 case "${canonical}" in
3205 alpha*) machine=alpha ;;
3206 amd64-*|x86_64-*) machine=amdx86-64 ;;
3207 arm*) machine=arm ;;
3208 ia64-*) machine=ia64 ;;
3209 i[3456]86-*) machine=intel386 ;;
3210 powerpc-*) machine=macppc ;;
3211 sparc-*) machine=sparc ;;
3212 sparc64-*) machine=sparc ;;
3213 esac
3216 ## FreeBSD kernel + glibc based userland
3217 *-*-kfreebsd*gnu* )
3218 opsys=gnu-kfreebsd
3219 case "${canonical}" in
3220 alpha*) machine=alpha ;;
3221 amd64-*|x86_64-*) machine=amdx86-64 ;;
3222 ia64-*) machine=ia64 ;;
3223 i[3456]86-*) machine=intel386 ;;
3224 powerpc-*) machine=macppc ;;
3225 sparc-*) machine=sparc ;;
3226 sparc64-*) machine=sparc ;;
3227 esac
3230 ## NetBSD ports
3231 *-*-netbsd* )
3232 opsys=netbsd
3233 case "${canonical}" in
3234 alpha*) machine=alpha ;;
3235 x86_64-*) machine=amdx86-64 ;;
3236 arm-*) machine=arm ;;
3237 hppa-*) machine=hp800 ;;
3238 i[3456]86-*) machine=intel386 ;;
3239 m68k-*) machine=m68k ;;
3240 powerpc-*) machine=macppc ;;
3241 mips-*) machine=mips ;;
3242 mipse[bl]-*) machine=mips ;;
3243 sparc*-) machine=sparc ;;
3244 vax-*) machine=vax ;;
3245 esac
3248 ## OpenBSD ports
3249 *-*-openbsd* )
3250 opsys=openbsd
3251 case "${canonical}" in
3252 alpha*) machine=alpha ;;
3253 x86_64-*) machine=amdx86-64 ;;
3254 arm-*) machine=arm ;;
3255 hppa-*) machine=hp800 ;;
3256 i386-*) machine=intel386 ;;
3257 powerpc-*) machine=macppc ;;
3258 sparc*) machine=sparc ;;
3259 vax-*) machine=vax ;;
3260 esac
3263 alpha*-*-linux-gnu* )
3264 machine=alpha opsys=gnu-linux
3267 arm*-*-linux-gnu* )
3268 machine=arm opsys=gnu-linux
3271 ## Apple Darwin / Mac OS X
3272 *-apple-darwin* )
3273 case "${canonical}" in
3274 i[3456]86-* ) machine=intel386 ;;
3275 powerpc-* ) machine=macppc ;;
3276 x86_64-* ) machine=amdx86-64 ;;
3277 * ) unported=yes ;;
3278 esac
3279 opsys=darwin
3280 # Define CPP as follows to make autoconf work correctly.
3281 CPP="${CC-cc} -E -no-cpp-precomp"
3282 # Use fink packages if available.
3283 if test -d /sw/include && test -d /sw/lib; then
3284 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3285 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3286 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3290 ## HP 9000 series 700 and 800, running HP/UX
3291 hppa*-hp-hpux10.2* )
3292 machine=hp800 opsys=hpux10-20
3294 hppa*-hp-hpux1[1-9]* )
3295 machine=hp800 opsys=hpux11
3296 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3299 hppa*-*-linux-gnu* )
3300 machine=hp800 opsys=gnu-linux
3303 ## IBM machines
3304 s390-*-linux-gnu* )
3305 machine=ibms390 opsys=gnu-linux
3307 s390x-*-linux-gnu* )
3308 machine=ibms390x opsys=gnu-linux
3310 rs6000-ibm-aix4.[23]* )
3311 machine=ibmrs6000 opsys=aix4-2
3313 powerpc-ibm-aix4.[23]* )
3314 machine=ibmrs6000 opsys=aix4-2
3316 rs6000-ibm-aix[56]* )
3317 machine=ibmrs6000 opsys=aix4-2
3319 powerpc-ibm-aix[56]* )
3320 machine=ibmrs6000 opsys=aix4-2
3323 ## Macintosh PowerPC
3324 powerpc*-*-linux-gnu* )
3325 machine=macppc opsys=gnu-linux
3328 ## Silicon Graphics machines
3329 ## Iris 4D
3330 mips-sgi-irix6.5 )
3331 machine=iris4d opsys=irix6-5
3332 # Without defining _LANGUAGE_C, things get masked out in the headers
3333 # so that, for instance, grepping for `free' in stdlib.h fails and
3334 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3335 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3336 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3339 ## Suns
3340 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
3341 machine=sparc opsys=gnu-linux
3344 *-sun-solaris* \
3345 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3346 | x86_64-*-solaris2* | x86_64-*-sunos5*)
3347 case "${canonical}" in
3348 i[3456]86-*-* ) machine=intel386 ;;
3349 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3350 sparc* ) machine=sparc ;;
3351 * ) unported=yes ;;
3352 esac
3353 case "${canonical}" in
3354 *-sunos5.6* | *-solaris2.6* )
3355 opsys=sol2-6
3356 NON_GNU_CPP=/usr/ccs/lib/cpp
3357 RANLIB="ar -ts"
3359 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3360 opsys=sol2-6
3361 emacs_check_sunpro_c=yes
3362 NON_GNU_CPP=/usr/ccs/lib/cpp
3364 *-sunos5* | *-solaris* )
3365 opsys=sol2-10
3366 emacs_check_sunpro_c=yes
3367 NON_GNU_CPP=/usr/ccs/lib/cpp
3369 esac
3370 ## Watch out for a compiler that we know will not work.
3371 case "${canonical}" in
3372 *-solaris* | *-sunos5* )
3373 if [ "x$CC" = x/usr/ucb/cc ]; then
3374 ## /usr/ucb/cc doesn't work;
3375 ## we should find some other compiler that does work.
3376 unset CC
3379 *) ;;
3380 esac
3383 ## IA-64
3384 ia64*-*-linux* )
3385 machine=ia64 opsys=gnu-linux
3388 ## Intel 386 machines where we don't care about the manufacturer.
3389 i[3456]86-*-* )
3390 machine=intel386
3391 case "${canonical}" in
3392 *-cygwin ) opsys=cygwin ;;
3393 *-darwin* ) opsys=darwin
3394 CPP="${CC-cc} -E -no-cpp-precomp"
3396 *-linux-gnu* ) opsys=gnu-linux ;;
3397 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3398 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3399 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3400 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3401 esac
3404 ## m68k Linux-based GNU system
3405 m68k-*-linux-gnu* )
3406 machine=m68k opsys=gnu-linux
3409 ## Mips Linux-based GNU system
3410 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
3411 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
3412 machine=mips opsys=gnu-linux
3415 ## AMD x86-64 Linux-based GNU system
3416 x86_64-*-linux-gnu* )
3417 machine=amdx86-64 opsys=gnu-linux
3420 ## Tensilica Xtensa Linux-based GNU system
3421 xtensa*-*-linux-gnu* )
3422 machine=xtensa opsys=gnu-linux
3425 ## SuperH Linux-based GNU system
3426 sh[34]*-*-linux-gnu* )
3427 machine=sh3 opsys=gnu-linux
3431 unported=yes
3433 esac
3435 ### If the code above didn't choose an operating system, just choose
3436 ### an operating system based on the configuration name. You really
3437 ### only want to use this when you have no idea what the right
3438 ### operating system is; if you know what operating systems a machine
3439 ### runs, it's cleaner to make it explicit in the case statement
3440 ### above.
3441 if test x"${opsys}" = x; then
3442 case "${canonical}" in
3443 *-gnu* ) opsys=gnu ;;
3445 unported=yes
3447 esac
3452 if test $unported = yes; then
3453 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
3454 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3457 machfile="m/${machine}.h"
3458 opsysfile="s/${opsys}.h"
3461 #### Choose a compiler.
3462 test -n "$CC" && cc_specified=yes
3464 # Save the value of CFLAGS that the user specified.
3465 SPECIFIED_CFLAGS="$CFLAGS"
3467 ac_ext=c
3468 ac_cpp='$CPP $CPPFLAGS'
3469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3472 if test -n "$ac_tool_prefix"; then
3473 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3474 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476 $as_echo_n "checking for $ac_word... " >&6; }
3477 if test "${ac_cv_prog_CC+set}" = set; then :
3478 $as_echo_n "(cached) " >&6
3479 else
3480 if test -n "$CC"; then
3481 ac_cv_prog_CC="$CC" # Let the user override the test.
3482 else
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 for as_dir in $PATH
3486 IFS=$as_save_IFS
3487 test -z "$as_dir" && as_dir=.
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3490 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 break 2
3494 done
3495 done
3496 IFS=$as_save_IFS
3500 CC=$ac_cv_prog_CC
3501 if test -n "$CC"; then
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3503 $as_echo "$CC" >&6; }
3504 else
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506 $as_echo "no" >&6; }
3511 if test -z "$ac_cv_prog_CC"; then
3512 ac_ct_CC=$CC
3513 # Extract the first word of "gcc", so it can be a program name with args.
3514 set dummy gcc; ac_word=$2
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3516 $as_echo_n "checking for $ac_word... " >&6; }
3517 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3518 $as_echo_n "(cached) " >&6
3519 else
3520 if test -n "$ac_ct_CC"; then
3521 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3522 else
3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 for as_dir in $PATH
3526 IFS=$as_save_IFS
3527 test -z "$as_dir" && as_dir=.
3528 for ac_exec_ext in '' $ac_executable_extensions; do
3529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3530 ac_cv_prog_ac_ct_CC="gcc"
3531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 break 2
3534 done
3535 done
3536 IFS=$as_save_IFS
3540 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3541 if test -n "$ac_ct_CC"; then
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3543 $as_echo "$ac_ct_CC" >&6; }
3544 else
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546 $as_echo "no" >&6; }
3549 if test "x$ac_ct_CC" = x; then
3550 CC=""
3551 else
3552 case $cross_compiling:$ac_tool_warned in
3553 yes:)
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3556 ac_tool_warned=yes ;;
3557 esac
3558 CC=$ac_ct_CC
3560 else
3561 CC="$ac_cv_prog_CC"
3564 if test -z "$CC"; then
3565 if test -n "$ac_tool_prefix"; then
3566 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3567 set dummy ${ac_tool_prefix}cc; ac_word=$2
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3569 $as_echo_n "checking for $ac_word... " >&6; }
3570 if test "${ac_cv_prog_CC+set}" = set; then :
3571 $as_echo_n "(cached) " >&6
3572 else
3573 if test -n "$CC"; then
3574 ac_cv_prog_CC="$CC" # Let the user override the test.
3575 else
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 for as_dir in $PATH
3579 IFS=$as_save_IFS
3580 test -z "$as_dir" && as_dir=.
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3583 ac_cv_prog_CC="${ac_tool_prefix}cc"
3584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 break 2
3587 done
3588 done
3589 IFS=$as_save_IFS
3593 CC=$ac_cv_prog_CC
3594 if test -n "$CC"; then
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3596 $as_echo "$CC" >&6; }
3597 else
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599 $as_echo "no" >&6; }
3605 if test -z "$CC"; then
3606 # Extract the first word of "cc", so it can be a program name with args.
3607 set dummy cc; ac_word=$2
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3609 $as_echo_n "checking for $ac_word... " >&6; }
3610 if test "${ac_cv_prog_CC+set}" = set; then :
3611 $as_echo_n "(cached) " >&6
3612 else
3613 if test -n "$CC"; then
3614 ac_cv_prog_CC="$CC" # Let the user override the test.
3615 else
3616 ac_prog_rejected=no
3617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618 for as_dir in $PATH
3620 IFS=$as_save_IFS
3621 test -z "$as_dir" && as_dir=.
3622 for ac_exec_ext in '' $ac_executable_extensions; do
3623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3624 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3625 ac_prog_rejected=yes
3626 continue
3628 ac_cv_prog_CC="cc"
3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 break 2
3632 done
3633 done
3634 IFS=$as_save_IFS
3636 if test $ac_prog_rejected = yes; then
3637 # We found a bogon in the path, so make sure we never use it.
3638 set dummy $ac_cv_prog_CC
3639 shift
3640 if test $# != 0; then
3641 # We chose a different compiler from the bogus one.
3642 # However, it has the same basename, so the bogon will be chosen
3643 # first if we set CC to just the basename; use the full file name.
3644 shift
3645 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3650 CC=$ac_cv_prog_CC
3651 if test -n "$CC"; then
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3653 $as_echo "$CC" >&6; }
3654 else
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 $as_echo "no" >&6; }
3661 if test -z "$CC"; then
3662 if test -n "$ac_tool_prefix"; then
3663 for ac_prog in cl.exe
3665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3666 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3668 $as_echo_n "checking for $ac_word... " >&6; }
3669 if test "${ac_cv_prog_CC+set}" = set; then :
3670 $as_echo_n "(cached) " >&6
3671 else
3672 if test -n "$CC"; then
3673 ac_cv_prog_CC="$CC" # Let the user override the test.
3674 else
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676 for as_dir in $PATH
3678 IFS=$as_save_IFS
3679 test -z "$as_dir" && as_dir=.
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3682 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3684 break 2
3686 done
3687 done
3688 IFS=$as_save_IFS
3692 CC=$ac_cv_prog_CC
3693 if test -n "$CC"; then
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3695 $as_echo "$CC" >&6; }
3696 else
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 $as_echo "no" >&6; }
3702 test -n "$CC" && break
3703 done
3705 if test -z "$CC"; then
3706 ac_ct_CC=$CC
3707 for ac_prog in cl.exe
3709 # Extract the first word of "$ac_prog", so it can be a program name with args.
3710 set dummy $ac_prog; ac_word=$2
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3712 $as_echo_n "checking for $ac_word... " >&6; }
3713 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3714 $as_echo_n "(cached) " >&6
3715 else
3716 if test -n "$ac_ct_CC"; then
3717 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3718 else
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 for as_dir in $PATH
3722 IFS=$as_save_IFS
3723 test -z "$as_dir" && as_dir=.
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3726 ac_cv_prog_ac_ct_CC="$ac_prog"
3727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3728 break 2
3730 done
3731 done
3732 IFS=$as_save_IFS
3736 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3737 if test -n "$ac_ct_CC"; then
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3739 $as_echo "$ac_ct_CC" >&6; }
3740 else
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3742 $as_echo "no" >&6; }
3746 test -n "$ac_ct_CC" && break
3747 done
3749 if test "x$ac_ct_CC" = x; then
3750 CC=""
3751 else
3752 case $cross_compiling:$ac_tool_warned in
3753 yes:)
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3756 ac_tool_warned=yes ;;
3757 esac
3758 CC=$ac_ct_CC
3765 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3767 as_fn_error $? "no acceptable C compiler found in \$PATH
3768 See \`config.log' for more details" "$LINENO" 5; }
3770 # Provide some information about the compiler.
3771 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3772 set X $ac_compile
3773 ac_compiler=$2
3774 for ac_option in --version -v -V -qversion; do
3775 { { ac_try="$ac_compiler $ac_option >&5"
3776 case "(($ac_try" in
3777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778 *) ac_try_echo=$ac_try;;
3779 esac
3780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3781 $as_echo "$ac_try_echo"; } >&5
3782 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3783 ac_status=$?
3784 if test -s conftest.err; then
3785 sed '10a\
3786 ... rest of stderr output deleted ...
3787 10q' conftest.err >conftest.er1
3788 cat conftest.er1 >&5
3790 rm -f conftest.er1 conftest.err
3791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3792 test $ac_status = 0; }
3793 done
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3799 main ()
3803 return 0;
3805 _ACEOF
3806 ac_clean_files_save=$ac_clean_files
3807 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3808 # Try to create an executable without -o first, disregard a.out.
3809 # It will help us diagnose broken compilers, and finding out an intuition
3810 # of exeext.
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3812 $as_echo_n "checking whether the C compiler works... " >&6; }
3813 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3815 # The possible output files:
3816 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3818 ac_rmfiles=
3819 for ac_file in $ac_files
3821 case $ac_file in
3822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3823 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3824 esac
3825 done
3826 rm -f $ac_rmfiles
3828 if { { ac_try="$ac_link_default"
3829 case "(($ac_try" in
3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831 *) ac_try_echo=$ac_try;;
3832 esac
3833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3834 $as_echo "$ac_try_echo"; } >&5
3835 (eval "$ac_link_default") 2>&5
3836 ac_status=$?
3837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3838 test $ac_status = 0; }; then :
3839 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3840 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3841 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3842 # so that the user can short-circuit this test for compilers unknown to
3843 # Autoconf.
3844 for ac_file in $ac_files ''
3846 test -f "$ac_file" || continue
3847 case $ac_file in
3848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3850 [ab].out )
3851 # We found the default executable, but exeext='' is most
3852 # certainly right.
3853 break;;
3854 *.* )
3855 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3856 then :; else
3857 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3859 # We set ac_cv_exeext here because the later test for it is not
3860 # safe: cross compilers may not add the suffix if given an `-o'
3861 # argument, so we may need to know it at that point already.
3862 # Even if this section looks crufty: it has the advantage of
3863 # actually working.
3864 break;;
3866 break;;
3867 esac
3868 done
3869 test "$ac_cv_exeext" = no && ac_cv_exeext=
3871 else
3872 ac_file=''
3874 if test -z "$ac_file"; then :
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876 $as_echo "no" >&6; }
3877 $as_echo "$as_me: failed program was:" >&5
3878 sed 's/^/| /' conftest.$ac_ext >&5
3880 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3882 as_fn_error 77 "C compiler cannot create executables
3883 See \`config.log' for more details" "$LINENO" 5; }
3884 else
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3886 $as_echo "yes" >&6; }
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3889 $as_echo_n "checking for C compiler default output file name... " >&6; }
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3891 $as_echo "$ac_file" >&6; }
3892 ac_exeext=$ac_cv_exeext
3894 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3895 ac_clean_files=$ac_clean_files_save
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3897 $as_echo_n "checking for suffix of executables... " >&6; }
3898 if { { ac_try="$ac_link"
3899 case "(($ac_try" in
3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3902 esac
3903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3904 $as_echo "$ac_try_echo"; } >&5
3905 (eval "$ac_link") 2>&5
3906 ac_status=$?
3907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3908 test $ac_status = 0; }; then :
3909 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3910 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3911 # work properly (i.e., refer to `conftest.exe'), while it won't with
3912 # `rm'.
3913 for ac_file in conftest.exe conftest conftest.*; do
3914 test -f "$ac_file" || continue
3915 case $ac_file in
3916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3917 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3918 break;;
3919 * ) break;;
3920 esac
3921 done
3922 else
3923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3925 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3926 See \`config.log' for more details" "$LINENO" 5; }
3928 rm -f conftest conftest$ac_cv_exeext
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3930 $as_echo "$ac_cv_exeext" >&6; }
3932 rm -f conftest.$ac_ext
3933 EXEEXT=$ac_cv_exeext
3934 ac_exeext=$EXEEXT
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3937 #include <stdio.h>
3939 main ()
3941 FILE *f = fopen ("conftest.out", "w");
3942 return ferror (f) || fclose (f) != 0;
3945 return 0;
3947 _ACEOF
3948 ac_clean_files="$ac_clean_files conftest.out"
3949 # Check that the compiler produces executables we can run. If not, either
3950 # the compiler is broken, or we cross compile.
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3952 $as_echo_n "checking whether we are cross compiling... " >&6; }
3953 if test "$cross_compiling" != yes; then
3954 { { ac_try="$ac_link"
3955 case "(($ac_try" in
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3958 esac
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 $as_echo "$ac_try_echo"; } >&5
3961 (eval "$ac_link") 2>&5
3962 ac_status=$?
3963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }
3965 if { ac_try='./conftest$ac_cv_exeext'
3966 { { case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969 esac
3970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971 $as_echo "$ac_try_echo"; } >&5
3972 (eval "$ac_try") 2>&5
3973 ac_status=$?
3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }; }; then
3976 cross_compiling=no
3977 else
3978 if test "$cross_compiling" = maybe; then
3979 cross_compiling=yes
3980 else
3981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error $? "cannot run C compiled programs.
3984 If you meant to cross compile, use \`--host'.
3985 See \`config.log' for more details" "$LINENO" 5; }
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3990 $as_echo "$cross_compiling" >&6; }
3992 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3993 ac_clean_files=$ac_clean_files_save
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3995 $as_echo_n "checking for suffix of object files... " >&6; }
3996 if test "${ac_cv_objext+set}" = set; then :
3997 $as_echo_n "(cached) " >&6
3998 else
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4003 main ()
4007 return 0;
4009 _ACEOF
4010 rm -f conftest.o conftest.obj
4011 if { { ac_try="$ac_compile"
4012 case "(($ac_try" in
4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4015 esac
4016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4017 $as_echo "$ac_try_echo"; } >&5
4018 (eval "$ac_compile") 2>&5
4019 ac_status=$?
4020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4021 test $ac_status = 0; }; then :
4022 for ac_file in conftest.o conftest.obj conftest.*; do
4023 test -f "$ac_file" || continue;
4024 case $ac_file in
4025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4026 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4027 break;;
4028 esac
4029 done
4030 else
4031 $as_echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4034 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4036 as_fn_error $? "cannot compute suffix of object files: cannot compile
4037 See \`config.log' for more details" "$LINENO" 5; }
4039 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4042 $as_echo "$ac_cv_objext" >&6; }
4043 OBJEXT=$ac_cv_objext
4044 ac_objext=$OBJEXT
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4046 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4047 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4048 $as_echo_n "(cached) " >&6
4049 else
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4054 main ()
4056 #ifndef __GNUC__
4057 choke me
4058 #endif
4061 return 0;
4063 _ACEOF
4064 if ac_fn_c_try_compile "$LINENO"; then :
4065 ac_compiler_gnu=yes
4066 else
4067 ac_compiler_gnu=no
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4074 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4075 if test $ac_compiler_gnu = yes; then
4076 GCC=yes
4077 else
4078 GCC=
4080 ac_test_CFLAGS=${CFLAGS+set}
4081 ac_save_CFLAGS=$CFLAGS
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4083 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4084 if test "${ac_cv_prog_cc_g+set}" = set; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 ac_save_c_werror_flag=$ac_c_werror_flag
4088 ac_c_werror_flag=yes
4089 ac_cv_prog_cc_g=no
4090 CFLAGS="-g"
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4095 main ()
4099 return 0;
4101 _ACEOF
4102 if ac_fn_c_try_compile "$LINENO"; then :
4103 ac_cv_prog_cc_g=yes
4104 else
4105 CFLAGS=""
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4110 main ()
4114 return 0;
4116 _ACEOF
4117 if ac_fn_c_try_compile "$LINENO"; then :
4119 else
4120 ac_c_werror_flag=$ac_save_c_werror_flag
4121 CFLAGS="-g"
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4126 main ()
4130 return 0;
4132 _ACEOF
4133 if ac_fn_c_try_compile "$LINENO"; then :
4134 ac_cv_prog_cc_g=yes
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141 ac_c_werror_flag=$ac_save_c_werror_flag
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4144 $as_echo "$ac_cv_prog_cc_g" >&6; }
4145 if test "$ac_test_CFLAGS" = set; then
4146 CFLAGS=$ac_save_CFLAGS
4147 elif test $ac_cv_prog_cc_g = yes; then
4148 if test "$GCC" = yes; then
4149 CFLAGS="-g -O2"
4150 else
4151 CFLAGS="-g"
4153 else
4154 if test "$GCC" = yes; then
4155 CFLAGS="-O2"
4156 else
4157 CFLAGS=
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4161 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4162 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4163 $as_echo_n "(cached) " >&6
4164 else
4165 ac_cv_prog_cc_c89=no
4166 ac_save_CC=$CC
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4169 #include <stdarg.h>
4170 #include <stdio.h>
4171 #include <sys/types.h>
4172 #include <sys/stat.h>
4173 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4174 struct buf { int x; };
4175 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4176 static char *e (p, i)
4177 char **p;
4178 int i;
4180 return p[i];
4182 static char *f (char * (*g) (char **, int), char **p, ...)
4184 char *s;
4185 va_list v;
4186 va_start (v,p);
4187 s = g (p, va_arg (v,int));
4188 va_end (v);
4189 return s;
4192 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4193 function prototypes and stuff, but not '\xHH' hex character constants.
4194 These don't provoke an error unfortunately, instead are silently treated
4195 as 'x'. The following induces an error, until -std is added to get
4196 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4197 array size at least. It's necessary to write '\x00'==0 to get something
4198 that's true only with -std. */
4199 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4201 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4202 inside strings and character constants. */
4203 #define FOO(x) 'x'
4204 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4206 int test (int i, double x);
4207 struct s1 {int (*f) (int a);};
4208 struct s2 {int (*f) (double a);};
4209 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4210 int argc;
4211 char **argv;
4213 main ()
4215 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4217 return 0;
4219 _ACEOF
4220 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4221 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4223 CC="$ac_save_CC $ac_arg"
4224 if ac_fn_c_try_compile "$LINENO"; then :
4225 ac_cv_prog_cc_c89=$ac_arg
4227 rm -f core conftest.err conftest.$ac_objext
4228 test "x$ac_cv_prog_cc_c89" != "xno" && break
4229 done
4230 rm -f conftest.$ac_ext
4231 CC=$ac_save_CC
4234 # AC_CACHE_VAL
4235 case "x$ac_cv_prog_cc_c89" in
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4238 $as_echo "none needed" >&6; } ;;
4239 xno)
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4241 $as_echo "unsupported" >&6; } ;;
4243 CC="$CC $ac_cv_prog_cc_c89"
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4245 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4246 esac
4247 if test "x$ac_cv_prog_cc_c89" != xno; then :
4251 ac_ext=c
4252 ac_cpp='$CPP $CPPFLAGS'
4253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4258 # On Suns, sometimes $CPP names a directory.
4259 if test -n "$CPP" && test -d "$CPP"; then
4260 CPP=
4263 ## If not using gcc, and on Solaris, and no CPP specified, see if
4264 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4265 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4266 test x"$CPP" = x; then
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4268 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4270 if test "${emacs_cv_sunpro_c+set}" = set; then :
4271 $as_echo_n "(cached) " >&6
4272 else
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4277 main ()
4279 #ifndef __SUNPRO_C
4280 fail;
4281 #endif
4284 return 0;
4286 _ACEOF
4287 if ac_fn_c_try_link "$LINENO"; then :
4288 emacs_cv_sunpro_c=yes
4289 else
4290 emacs_cv_sunpro_c=no
4292 rm -f core conftest.err conftest.$ac_objext \
4293 conftest$ac_exeext conftest.$ac_ext
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4297 $as_echo "$emacs_cv_sunpro_c" >&6; }
4299 if test x"$emacs_cv_sunpro_c" = xyes; then
4300 NON_GNU_CPP="$CC -E -Xs"
4304 #### Some systems specify a CPP to use unless we are using GCC.
4305 #### Now that we know whether we are using GCC, we can decide whether
4306 #### to use that one.
4307 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4308 then
4309 CPP="$NON_GNU_CPP"
4312 #### Some systems specify a CC to use unless we are using GCC.
4313 #### Now that we know whether we are using GCC, we can decide whether
4314 #### to use that one.
4315 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4316 test x$cc_specified != xyes
4317 then
4318 CC="$NON_GNU_CC"
4321 if test x$GCC = xyes; then
4322 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
4323 else
4324 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
4327 ac_ext=c
4328 ac_cpp='$CPP $CPPFLAGS'
4329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4333 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4334 # On Suns, sometimes $CPP names a directory.
4335 if test -n "$CPP" && test -d "$CPP"; then
4336 CPP=
4338 if test -z "$CPP"; then
4339 if test "${ac_cv_prog_CPP+set}" = set; then :
4340 $as_echo_n "(cached) " >&6
4341 else
4342 # Double quotes because CPP needs to be expanded
4343 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4345 ac_preproc_ok=false
4346 for ac_c_preproc_warn_flag in '' yes
4348 # Use a header file that comes with gcc, so configuring glibc
4349 # with a fresh cross-compiler works.
4350 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4351 # <limits.h> exists even on freestanding compilers.
4352 # On the NeXT, cc -E runs the code through the compiler's parser,
4353 # not just through cpp. "Syntax error" is here to catch this case.
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4356 #ifdef __STDC__
4357 # include <limits.h>
4358 #else
4359 # include <assert.h>
4360 #endif
4361 Syntax error
4362 _ACEOF
4363 if ac_fn_c_try_cpp "$LINENO"; then :
4365 else
4366 # Broken: fails on valid input.
4367 continue
4369 rm -f conftest.err conftest.$ac_ext
4371 # OK, works on sane cases. Now check whether nonexistent headers
4372 # can be detected and how.
4373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374 /* end confdefs.h. */
4375 #include <ac_nonexistent.h>
4376 _ACEOF
4377 if ac_fn_c_try_cpp "$LINENO"; then :
4378 # Broken: success on invalid input.
4379 continue
4380 else
4381 # Passes both tests.
4382 ac_preproc_ok=:
4383 break
4385 rm -f conftest.err conftest.$ac_ext
4387 done
4388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4389 rm -f conftest.err conftest.$ac_ext
4390 if $ac_preproc_ok; then :
4391 break
4394 done
4395 ac_cv_prog_CPP=$CPP
4398 CPP=$ac_cv_prog_CPP
4399 else
4400 ac_cv_prog_CPP=$CPP
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4403 $as_echo "$CPP" >&6; }
4404 ac_preproc_ok=false
4405 for ac_c_preproc_warn_flag in '' yes
4407 # Use a header file that comes with gcc, so configuring glibc
4408 # with a fresh cross-compiler works.
4409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4410 # <limits.h> exists even on freestanding compilers.
4411 # On the NeXT, cc -E runs the code through the compiler's parser,
4412 # not just through cpp. "Syntax error" is here to catch this case.
4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h. */
4415 #ifdef __STDC__
4416 # include <limits.h>
4417 #else
4418 # include <assert.h>
4419 #endif
4420 Syntax error
4421 _ACEOF
4422 if ac_fn_c_try_cpp "$LINENO"; then :
4424 else
4425 # Broken: fails on valid input.
4426 continue
4428 rm -f conftest.err conftest.$ac_ext
4430 # OK, works on sane cases. Now check whether nonexistent headers
4431 # can be detected and how.
4432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433 /* end confdefs.h. */
4434 #include <ac_nonexistent.h>
4435 _ACEOF
4436 if ac_fn_c_try_cpp "$LINENO"; then :
4437 # Broken: success on invalid input.
4438 continue
4439 else
4440 # Passes both tests.
4441 ac_preproc_ok=:
4442 break
4444 rm -f conftest.err conftest.$ac_ext
4446 done
4447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4448 rm -f conftest.err conftest.$ac_ext
4449 if $ac_preproc_ok; then :
4451 else
4452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4454 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4455 See \`config.log' for more details" "$LINENO" 5; }
4458 ac_ext=c
4459 ac_cpp='$CPP $CPPFLAGS'
4460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4466 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4467 if test "${ac_cv_path_GREP+set}" = set; then :
4468 $as_echo_n "(cached) " >&6
4469 else
4470 if test -z "$GREP"; then
4471 ac_path_GREP_found=false
4472 # Loop through the user's path and test for each of PROGNAME-LIST
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4476 IFS=$as_save_IFS
4477 test -z "$as_dir" && as_dir=.
4478 for ac_prog in grep ggrep; do
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4481 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4482 # Check for GNU ac_path_GREP and select it if it is found.
4483 # Check for GNU $ac_path_GREP
4484 case `"$ac_path_GREP" --version 2>&1` in
4485 *GNU*)
4486 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4488 ac_count=0
4489 $as_echo_n 0123456789 >"conftest.in"
4490 while :
4492 cat "conftest.in" "conftest.in" >"conftest.tmp"
4493 mv "conftest.tmp" "conftest.in"
4494 cp "conftest.in" "conftest.nl"
4495 $as_echo 'GREP' >> "conftest.nl"
4496 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4497 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4498 as_fn_arith $ac_count + 1 && ac_count=$as_val
4499 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4500 # Best one so far, save it but keep looking for a better one
4501 ac_cv_path_GREP="$ac_path_GREP"
4502 ac_path_GREP_max=$ac_count
4504 # 10*(2^10) chars as input seems more than enough
4505 test $ac_count -gt 10 && break
4506 done
4507 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4508 esac
4510 $ac_path_GREP_found && break 3
4511 done
4512 done
4513 done
4514 IFS=$as_save_IFS
4515 if test -z "$ac_cv_path_GREP"; then
4516 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4518 else
4519 ac_cv_path_GREP=$GREP
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4524 $as_echo "$ac_cv_path_GREP" >&6; }
4525 GREP="$ac_cv_path_GREP"
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4529 $as_echo_n "checking for egrep... " >&6; }
4530 if test "${ac_cv_path_EGREP+set}" = set; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4534 then ac_cv_path_EGREP="$GREP -E"
4535 else
4536 if test -z "$EGREP"; then
4537 ac_path_EGREP_found=false
4538 # Loop through the user's path and test for each of PROGNAME-LIST
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
4544 for ac_prog in egrep; do
4545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4547 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4548 # Check for GNU ac_path_EGREP and select it if it is found.
4549 # Check for GNU $ac_path_EGREP
4550 case `"$ac_path_EGREP" --version 2>&1` in
4551 *GNU*)
4552 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4554 ac_count=0
4555 $as_echo_n 0123456789 >"conftest.in"
4556 while :
4558 cat "conftest.in" "conftest.in" >"conftest.tmp"
4559 mv "conftest.tmp" "conftest.in"
4560 cp "conftest.in" "conftest.nl"
4561 $as_echo 'EGREP' >> "conftest.nl"
4562 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4563 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4564 as_fn_arith $ac_count + 1 && ac_count=$as_val
4565 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4566 # Best one so far, save it but keep looking for a better one
4567 ac_cv_path_EGREP="$ac_path_EGREP"
4568 ac_path_EGREP_max=$ac_count
4570 # 10*(2^10) chars as input seems more than enough
4571 test $ac_count -gt 10 && break
4572 done
4573 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4574 esac
4576 $ac_path_EGREP_found && break 3
4577 done
4578 done
4579 done
4580 IFS=$as_save_IFS
4581 if test -z "$ac_cv_path_EGREP"; then
4582 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4584 else
4585 ac_cv_path_EGREP=$EGREP
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4591 $as_echo "$ac_cv_path_EGREP" >&6; }
4592 EGREP="$ac_cv_path_EGREP"
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4596 $as_echo_n "checking for ANSI C header files... " >&6; }
4597 if test "${ac_cv_header_stdc+set}" = set; then :
4598 $as_echo_n "(cached) " >&6
4599 else
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4602 #include <stdlib.h>
4603 #include <stdarg.h>
4604 #include <string.h>
4605 #include <float.h>
4608 main ()
4612 return 0;
4614 _ACEOF
4615 if ac_fn_c_try_compile "$LINENO"; then :
4616 ac_cv_header_stdc=yes
4617 else
4618 ac_cv_header_stdc=no
4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622 if test $ac_cv_header_stdc = yes; then
4623 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4626 #include <string.h>
4628 _ACEOF
4629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4630 $EGREP "memchr" >/dev/null 2>&1; then :
4632 else
4633 ac_cv_header_stdc=no
4635 rm -f conftest*
4639 if test $ac_cv_header_stdc = yes; then
4640 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4643 #include <stdlib.h>
4645 _ACEOF
4646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4647 $EGREP "free" >/dev/null 2>&1; then :
4649 else
4650 ac_cv_header_stdc=no
4652 rm -f conftest*
4656 if test $ac_cv_header_stdc = yes; then
4657 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4658 if test "$cross_compiling" = yes; then :
4660 else
4661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h. */
4663 #include <ctype.h>
4664 #include <stdlib.h>
4665 #if ((' ' & 0x0FF) == 0x020)
4666 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4667 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4668 #else
4669 # define ISLOWER(c) \
4670 (('a' <= (c) && (c) <= 'i') \
4671 || ('j' <= (c) && (c) <= 'r') \
4672 || ('s' <= (c) && (c) <= 'z'))
4673 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4674 #endif
4676 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4678 main ()
4680 int i;
4681 for (i = 0; i < 256; i++)
4682 if (XOR (islower (i), ISLOWER (i))
4683 || toupper (i) != TOUPPER (i))
4684 return 2;
4685 return 0;
4687 _ACEOF
4688 if ac_fn_c_try_run "$LINENO"; then :
4690 else
4691 ac_cv_header_stdc=no
4693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4694 conftest.$ac_objext conftest.beam conftest.$ac_ext
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4700 $as_echo "$ac_cv_header_stdc" >&6; }
4701 if test $ac_cv_header_stdc = yes; then
4703 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4707 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4708 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4709 inttypes.h stdint.h unistd.h
4710 do :
4711 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4712 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4714 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4715 cat >>confdefs.h <<_ACEOF
4716 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4717 _ACEOF
4721 done
4725 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4726 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4727 MINIX=yes
4728 else
4729 MINIX=
4733 if test "$MINIX" = yes; then
4735 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4738 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4741 $as_echo "#define _MINIX 1" >>confdefs.h
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4747 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4748 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4749 $as_echo_n "(cached) " >&6
4750 else
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h. */
4754 # define __EXTENSIONS__ 1
4755 $ac_includes_default
4757 main ()
4761 return 0;
4763 _ACEOF
4764 if ac_fn_c_try_compile "$LINENO"; then :
4765 ac_cv_safe_to_define___extensions__=yes
4766 else
4767 ac_cv_safe_to_define___extensions__=no
4769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4772 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4773 test $ac_cv_safe_to_define___extensions__ = yes &&
4774 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4776 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4778 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4780 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4782 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4786 ### Use -Wno-pointer-sign if the compiler supports it
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4788 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4789 SAVE_CFLAGS="$CFLAGS"
4790 CFLAGS="$CFLAGS -Wno-pointer-sign"
4791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4792 /* end confdefs.h. */
4795 main ()
4799 return 0;
4801 _ACEOF
4802 if ac_fn_c_try_compile "$LINENO"; then :
4803 has_option=yes
4804 else
4805 has_option=no
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808 if test $has_option = yes; then
4809 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4812 $as_echo "$has_option" >&6; }
4813 CFLAGS="$SAVE_CFLAGS"
4814 unset has_option
4815 unset SAVE_CFLAGS
4817 ### Use -Wdeclaration-after-statement if the compiler supports it
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4819 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4820 SAVE_CFLAGS="$CFLAGS"
4821 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4823 /* end confdefs.h. */
4826 main ()
4830 return 0;
4832 _ACEOF
4833 if ac_fn_c_try_compile "$LINENO"; then :
4834 has_option=yes
4835 else
4836 has_option=no
4838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4839 if test $has_option = yes; then
4840 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4843 $as_echo "$has_option" >&6; }
4844 CFLAGS="$SAVE_CFLAGS"
4845 unset has_option
4846 unset SAVE_CFLAGS
4848 ### Use -Wold-style-definition if the compiler supports it
4849 # This can be removed when conversion to standard C is finished.
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
4851 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
4852 SAVE_CFLAGS="$CFLAGS"
4853 CFLAGS="$CFLAGS -Wold-style-definition"
4854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855 /* end confdefs.h. */
4858 main ()
4862 return 0;
4864 _ACEOF
4865 if ac_fn_c_try_compile "$LINENO"; then :
4866 has_option=yes
4867 else
4868 has_option=no
4870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4871 if test $has_option = yes; then
4872 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4875 $as_echo "$has_option" >&6; }
4876 CFLAGS="$SAVE_CFLAGS"
4877 unset has_option
4878 unset SAVE_CFLAGS
4880 ### Use -Wimplicit-function-declaration if the compiler supports it
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
4882 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
4883 SAVE_CFLAGS="$CFLAGS"
4884 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h. */
4889 main ()
4893 return 0;
4895 _ACEOF
4896 if ac_fn_c_try_compile "$LINENO"; then :
4897 has_option=yes
4898 else
4899 has_option=no
4901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902 if test $has_option = yes; then
4903 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4906 $as_echo "$has_option" >&6; }
4907 CFLAGS="$SAVE_CFLAGS"
4908 unset has_option
4909 unset SAVE_CFLAGS
4914 #### Some other nice autoconf tests.
4916 ac_ext=c
4917 ac_cpp='$CPP $CPPFLAGS'
4918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4922 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4923 # On Suns, sometimes $CPP names a directory.
4924 if test -n "$CPP" && test -d "$CPP"; then
4925 CPP=
4927 if test -z "$CPP"; then
4928 if test "${ac_cv_prog_CPP+set}" = set; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 # Double quotes because CPP needs to be expanded
4932 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4934 ac_preproc_ok=false
4935 for ac_c_preproc_warn_flag in '' yes
4937 # Use a header file that comes with gcc, so configuring glibc
4938 # with a fresh cross-compiler works.
4939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4940 # <limits.h> exists even on freestanding compilers.
4941 # On the NeXT, cc -E runs the code through the compiler's parser,
4942 # not just through cpp. "Syntax error" is here to catch this case.
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4945 #ifdef __STDC__
4946 # include <limits.h>
4947 #else
4948 # include <assert.h>
4949 #endif
4950 Syntax error
4951 _ACEOF
4952 if ac_fn_c_try_cpp "$LINENO"; then :
4954 else
4955 # Broken: fails on valid input.
4956 continue
4958 rm -f conftest.err conftest.$ac_ext
4960 # OK, works on sane cases. Now check whether nonexistent headers
4961 # can be detected and how.
4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h. */
4964 #include <ac_nonexistent.h>
4965 _ACEOF
4966 if ac_fn_c_try_cpp "$LINENO"; then :
4967 # Broken: success on invalid input.
4968 continue
4969 else
4970 # Passes both tests.
4971 ac_preproc_ok=:
4972 break
4974 rm -f conftest.err conftest.$ac_ext
4976 done
4977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4978 rm -f conftest.err conftest.$ac_ext
4979 if $ac_preproc_ok; then :
4980 break
4983 done
4984 ac_cv_prog_CPP=$CPP
4987 CPP=$ac_cv_prog_CPP
4988 else
4989 ac_cv_prog_CPP=$CPP
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4992 $as_echo "$CPP" >&6; }
4993 ac_preproc_ok=false
4994 for ac_c_preproc_warn_flag in '' yes
4996 # Use a header file that comes with gcc, so configuring glibc
4997 # with a fresh cross-compiler works.
4998 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4999 # <limits.h> exists even on freestanding compilers.
5000 # On the NeXT, cc -E runs the code through the compiler's parser,
5001 # not just through cpp. "Syntax error" is here to catch this case.
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5004 #ifdef __STDC__
5005 # include <limits.h>
5006 #else
5007 # include <assert.h>
5008 #endif
5009 Syntax error
5010 _ACEOF
5011 if ac_fn_c_try_cpp "$LINENO"; then :
5013 else
5014 # Broken: fails on valid input.
5015 continue
5017 rm -f conftest.err conftest.$ac_ext
5019 # OK, works on sane cases. Now check whether nonexistent headers
5020 # can be detected and how.
5021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5022 /* end confdefs.h. */
5023 #include <ac_nonexistent.h>
5024 _ACEOF
5025 if ac_fn_c_try_cpp "$LINENO"; then :
5026 # Broken: success on invalid input.
5027 continue
5028 else
5029 # Passes both tests.
5030 ac_preproc_ok=:
5031 break
5033 rm -f conftest.err conftest.$ac_ext
5035 done
5036 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5037 rm -f conftest.err conftest.$ac_ext
5038 if $ac_preproc_ok; then :
5040 else
5041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5043 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5044 See \`config.log' for more details" "$LINENO" 5; }
5047 ac_ext=c
5048 ac_cpp='$CPP $CPPFLAGS'
5049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5053 # Find a good install program. We prefer a C program (faster),
5054 # so one script is as good as another. But avoid the broken or
5055 # incompatible versions:
5056 # SysV /etc/install, /usr/sbin/install
5057 # SunOS /usr/etc/install
5058 # IRIX /sbin/install
5059 # AIX /bin/install
5060 # AmigaOS /C/install, which installs bootblocks on floppy discs
5061 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5062 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5063 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5064 # OS/2's system install, which has a completely different semantic
5065 # ./install, which can be erroneously created by make from ./install.sh.
5066 # Reject install programs that cannot install multiple files.
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5068 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5069 if test -z "$INSTALL"; then
5070 if test "${ac_cv_path_install+set}" = set; then :
5071 $as_echo_n "(cached) " >&6
5072 else
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 for as_dir in $PATH
5076 IFS=$as_save_IFS
5077 test -z "$as_dir" && as_dir=.
5078 # Account for people who put trailing slashes in PATH elements.
5079 case $as_dir/ in #((
5080 ./ | .// | /[cC]/* | \
5081 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5082 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5083 /usr/ucb/* ) ;;
5085 # OSF1 and SCO ODT 3.0 have their own names for install.
5086 # Don't use installbsd from OSF since it installs stuff as root
5087 # by default.
5088 for ac_prog in ginstall scoinst install; do
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5091 if test $ac_prog = install &&
5092 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5093 # AIX install. It has an incompatible calling convention.
5095 elif test $ac_prog = install &&
5096 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5097 # program-specific install script used by HP pwplus--don't use.
5099 else
5100 rm -rf conftest.one conftest.two conftest.dir
5101 echo one > conftest.one
5102 echo two > conftest.two
5103 mkdir conftest.dir
5104 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5105 test -s conftest.one && test -s conftest.two &&
5106 test -s conftest.dir/conftest.one &&
5107 test -s conftest.dir/conftest.two
5108 then
5109 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5110 break 3
5114 done
5115 done
5117 esac
5119 done
5120 IFS=$as_save_IFS
5122 rm -rf conftest.one conftest.two conftest.dir
5125 if test "${ac_cv_path_install+set}" = set; then
5126 INSTALL=$ac_cv_path_install
5127 else
5128 # As a last resort, use the slow shell script. Don't cache a
5129 # value for INSTALL within a source directory, because that will
5130 # break other packages using the cache if that directory is
5131 # removed, or if the value is a relative name.
5132 INSTALL=$ac_install_sh
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5136 $as_echo "$INSTALL" >&6; }
5138 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5139 # It thinks the first close brace ends the variable substitution.
5140 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5142 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5144 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5146 if test "x$RANLIB" = x; then
5147 if test -n "$ac_tool_prefix"; then
5148 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5149 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151 $as_echo_n "checking for $ac_word... " >&6; }
5152 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5153 $as_echo_n "(cached) " >&6
5154 else
5155 if test -n "$RANLIB"; then
5156 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5157 else
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5165 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 break 2
5169 done
5170 done
5171 IFS=$as_save_IFS
5175 RANLIB=$ac_cv_prog_RANLIB
5176 if test -n "$RANLIB"; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5178 $as_echo "$RANLIB" >&6; }
5179 else
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5186 if test -z "$ac_cv_prog_RANLIB"; then
5187 ac_ct_RANLIB=$RANLIB
5188 # Extract the first word of "ranlib", so it can be a program name with args.
5189 set dummy ranlib; ac_word=$2
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5191 $as_echo_n "checking for $ac_word... " >&6; }
5192 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5193 $as_echo_n "(cached) " >&6
5194 else
5195 if test -n "$ac_ct_RANLIB"; then
5196 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5197 else
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 for as_dir in $PATH
5201 IFS=$as_save_IFS
5202 test -z "$as_dir" && as_dir=.
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5205 ac_cv_prog_ac_ct_RANLIB="ranlib"
5206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 break 2
5209 done
5210 done
5211 IFS=$as_save_IFS
5215 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5216 if test -n "$ac_ct_RANLIB"; then
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5218 $as_echo "$ac_ct_RANLIB" >&6; }
5219 else
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221 $as_echo "no" >&6; }
5224 if test "x$ac_ct_RANLIB" = x; then
5225 RANLIB=":"
5226 else
5227 case $cross_compiling:$ac_tool_warned in
5228 yes:)
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5231 ac_tool_warned=yes ;;
5232 esac
5233 RANLIB=$ac_ct_RANLIB
5235 else
5236 RANLIB="$ac_cv_prog_RANLIB"
5241 ## Although we're running on an amd64 kernel, we're actually compiling for
5242 ## the x86 architecture. The user should probably have provided an
5243 ## explicit --build to `configure', but if everything else than the kernel
5244 ## is running in i386 mode, we can help them out.
5245 if test "$machine" = "amdx86-64"; then
5246 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5247 if test "x$ac_cv_have_decl_i386" = x""yes; then :
5251 if test "$ac_cv_have_decl_i386" = "yes"; then
5252 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5253 machine=intel386
5254 machfile="m/${machine}.h"
5258 # Extract the first word of "install-info", so it can be a program name with args.
5259 set dummy install-info; 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_INSTALL_INFO+set}" = set; then :
5263 $as_echo_n "(cached) " >&6
5264 else
5265 case $INSTALL_INFO in
5266 [\\/]* | ?:[\\/]*)
5267 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # 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_INSTALL_INFO="$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
5286 esac
5288 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5289 if test -n "$INSTALL_INFO"; then
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5291 $as_echo "$INSTALL_INFO" >&6; }
5292 else
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294 $as_echo "no" >&6; }
5298 # Extract the first word of "install-info", so it can be a program name with args.
5299 set dummy install-info; ac_word=$2
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5301 $as_echo_n "checking for $ac_word... " >&6; }
5302 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5303 $as_echo_n "(cached) " >&6
5304 else
5305 case $INSTALL_INFO in
5306 [\\/]* | ?:[\\/]*)
5307 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in /usr/sbin
5313 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5317 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 break 2
5321 done
5322 done
5323 IFS=$as_save_IFS
5326 esac
5328 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5329 if test -n "$INSTALL_INFO"; then
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5331 $as_echo "$INSTALL_INFO" >&6; }
5332 else
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5334 $as_echo "no" >&6; }
5338 # Extract the first word of "install-info", so it can be a program name with args.
5339 set dummy install-info; ac_word=$2
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5341 $as_echo_n "checking for $ac_word... " >&6; }
5342 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5343 $as_echo_n "(cached) " >&6
5344 else
5345 case $INSTALL_INFO in
5346 [\\/]* | ?:[\\/]*)
5347 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 for as_dir in /sbin
5353 IFS=$as_save_IFS
5354 test -z "$as_dir" && as_dir=.
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5357 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5359 break 2
5361 done
5362 done
5363 IFS=$as_save_IFS
5365 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5367 esac
5369 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5370 if test -n "$INSTALL_INFO"; then
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5372 $as_echo "$INSTALL_INFO" >&6; }
5373 else
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 $as_echo "no" >&6; }
5379 # Extract the first word of "gzip", so it can be a program name with args.
5380 set dummy gzip; ac_word=$2
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5382 $as_echo_n "checking for $ac_word... " >&6; }
5383 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5384 $as_echo_n "(cached) " >&6
5385 else
5386 case $GZIP_PROG in
5387 [\\/]* | ?:[\\/]*)
5388 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 for as_dir in $PATH
5394 IFS=$as_save_IFS
5395 test -z "$as_dir" && as_dir=.
5396 for ac_exec_ext in '' $ac_executable_extensions; do
5397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5398 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5400 break 2
5402 done
5403 done
5404 IFS=$as_save_IFS
5407 esac
5409 GZIP_PROG=$ac_cv_path_GZIP_PROG
5410 if test -n "$GZIP_PROG"; then
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5412 $as_echo "$GZIP_PROG" >&6; }
5413 else
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5415 $as_echo "no" >&6; }
5421 ## Need makeinfo >= 4.6 (?) to build the manuals.
5422 # Extract the first word of "makeinfo", so it can be a program name with args.
5423 set dummy makeinfo; ac_word=$2
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5425 $as_echo_n "checking for $ac_word... " >&6; }
5426 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5427 $as_echo_n "(cached) " >&6
5428 else
5429 case $MAKEINFO in
5430 [\\/]* | ?:[\\/]*)
5431 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 for as_dir in $PATH
5437 IFS=$as_save_IFS
5438 test -z "$as_dir" && as_dir=.
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5441 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 break 2
5445 done
5446 done
5447 IFS=$as_save_IFS
5449 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5451 esac
5453 MAKEINFO=$ac_cv_path_MAKEINFO
5454 if test -n "$MAKEINFO"; then
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5456 $as_echo "$MAKEINFO" >&6; }
5457 else
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459 $as_echo "no" >&6; }
5463 if test "$MAKEINFO" != "no" && \
5464 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
5465 MAKEINFO=no
5468 ## Makeinfo is unusual. For a released Emacs, the manuals are
5469 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5470 ## therefore in the category of "special tools" not normally required, which
5471 ## configure does not have to check for (eg autoconf itself).
5472 ## In a Bazaar checkout on the other hand, the manuals are not included.
5473 ## So makeinfo is a requirement to build from Bazaar, and configure
5474 ## should test for it as it does for any other build requirement.
5475 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5476 ## with pre-built manuals, from a Bazaar checkout.
5477 if test "$MAKEINFO" = "no"; then
5478 if test "x${with_makeinfo}" = "xno"; then
5479 MAKEINFO=off
5480 elif test ! -e $srcdir/info/emacs; then
5481 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
5482 source tree does not seem to have pre-built manuals in the \`info' directory.
5483 Either install a suitable version of makeinfo, or re-run configure
5484 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5489 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5490 then
5491 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5494 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5495 then
5496 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5500 late_LDFLAGS=$LDFLAGS
5501 if test "$GCC" = yes; then
5502 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5503 else
5504 LDFLAGS="$LDFLAGS -znocombreloc"
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5508 $as_echo_n "checking for -znocombreloc... " >&6; }
5509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5510 /* end confdefs.h. */
5511 main(){return 0;}
5512 _ACEOF
5513 if ac_fn_c_try_link "$LINENO"; then :
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5515 $as_echo "yes" >&6; }
5516 else
5517 LDFLAGS=$late_LDFLAGS
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 $as_echo "no" >&6; }
5521 rm -f core conftest.err conftest.$ac_objext \
5522 conftest$ac_exeext conftest.$ac_ext
5525 # The value of CPP is a quoted variable reference, so we need to do this
5526 # to get its actual value...
5527 CPP=`eval "echo $CPP"`
5530 CANNOT_DUMP=no
5531 case "$opsys" in
5532 your-opsys-here)
5533 CANNOT_DUMP=yes
5535 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
5538 esac
5542 UNEXEC_OBJ=unexelf.o
5543 case "$opsys" in
5544 # MSDOS uses unexcoff.o
5545 # MSWindows uses unexw32.o
5546 aix4-2)
5547 UNEXEC_OBJ=unexaix.o
5549 cygwin)
5550 UNEXEC_OBJ=unexcw.o
5552 darwin)
5553 UNEXEC_OBJ=unexmacosx.o
5555 hpux10-20 | hpux11)
5556 UNEXEC_OBJ=unexhp9k800.o
5558 sol2-10)
5559 # Use the Solaris dldump() function, called from unexsol.c, to dump
5560 # emacs, instead of the generic ELF dump code found in unexelf.c.
5561 # The resulting binary has a complete symbol table, and is better
5562 # for debugging and other observability tools (debuggers, pstack, etc).
5564 # If you encounter a problem using dldump(), please consider sending
5565 # a message to the OpenSolaris tools-linking mailing list:
5566 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
5568 # It is likely that dldump() works with older Solaris too, but this has
5569 # not been tested, so for now this change is for Solaris 10 or newer.
5570 UNEXEC_OBJ=unexsol.o
5572 esac
5574 LD_SWITCH_SYSTEM=
5575 case "$opsys" in
5576 freebsd)
5577 ## Let `ld' find image libs and similar things in /usr/local/lib.
5578 ## The system compiler, GCC, has apparently been modified to not
5579 ## look there, contrary to what a stock GCC would do.
5580 LD_SWITCH_SYSTEM=-L/usr/local/lib
5583 gnu-linux)
5584 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5585 test "$machine" = "mips" && LD_SWITCH_SYSTEM="-G 0"
5588 netbsd)
5589 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5592 openbsd)
5593 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5594 ## otherwise Emacs dumps core on elf systems.
5595 LD_SWITCH_SYSTEM="-Z"
5597 esac
5600 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5602 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5603 ## which has not been defined yet. When this was handled with cpp,
5604 ## it was expanded to null when configure sourced the s/*.h file.
5605 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5606 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5607 ## (or somesuch), but because it is supposed to go at the _front_
5608 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5609 ## Compare with the gnu-linux case below, which added to the end
5610 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5611 ## LD_SWITCH_SYSTEM_TEMACS.
5612 case "$opsys" in
5613 netbsd|openbsd)
5614 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5615 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5616 esac
5619 C_SWITCH_MACHINE=
5620 if test "$machine" = "alpha"; then
5621 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5622 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
5626 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5627 ## With ELF, make sure that all common symbols get allocated to in the
5628 ## data section. Otherwise, the dump of temacs may miss variables in
5629 ## the shared library that have been initialized. For example, with
5630 ## GNU libc, __malloc_initialized would normally be resolved to the
5631 ## shared library's .bss section, which is fatal.
5632 if test "x$GCC" = "xyes"; then
5633 C_SWITCH_MACHINE="-fno-common"
5634 else
5635 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5637 else
5638 UNEXEC_OBJ=unexalpha.o
5645 C_SWITCH_SYSTEM=
5646 ## Some programs in src produce warnings saying certain subprograms
5647 ## are too complex and need a MAXMEM value greater than 2000 for
5648 ## additional optimization. --nils@exp-math.uni-essen.de
5649 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5650 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
5651 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5652 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5656 LIBS_SYSTEM=
5657 case "$opsys" in
5658 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5659 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
5661 freebsd) LIBS_SYSTEM="-lutil" ;;
5663 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
5665 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
5667 ## Motif needs -lgen.
5668 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
5669 esac
5673 ### Make sure subsequent tests use flags consistent with the build flags.
5675 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5676 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5677 else
5678 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5683 # Check whether --enable-largefile was given.
5684 if test "${enable_largefile+set}" = set; then :
5685 enableval=$enable_largefile;
5688 if test "$enable_largefile" != no; then
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5691 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5692 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5693 $as_echo_n "(cached) " >&6
5694 else
5695 ac_cv_sys_largefile_CC=no
5696 if test "$GCC" != yes; then
5697 ac_save_CC=$CC
5698 while :; do
5699 # IRIX 6.2 and later do not support large files by default,
5700 # so use the C compiler's -n32 option if that helps.
5701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702 /* end confdefs.h. */
5703 #include <sys/types.h>
5704 /* Check that off_t can represent 2**63 - 1 correctly.
5705 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5706 since some C++ compilers masquerading as C compilers
5707 incorrectly reject 9223372036854775807. */
5708 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5709 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5710 && LARGE_OFF_T % 2147483647 == 1)
5711 ? 1 : -1];
5713 main ()
5717 return 0;
5719 _ACEOF
5720 if ac_fn_c_try_compile "$LINENO"; then :
5721 break
5723 rm -f core conftest.err conftest.$ac_objext
5724 CC="$CC -n32"
5725 if ac_fn_c_try_compile "$LINENO"; then :
5726 ac_cv_sys_largefile_CC=' -n32'; break
5728 rm -f core conftest.err conftest.$ac_objext
5729 break
5730 done
5731 CC=$ac_save_CC
5732 rm -f conftest.$ac_ext
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5736 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5737 if test "$ac_cv_sys_largefile_CC" != no; then
5738 CC=$CC$ac_cv_sys_largefile_CC
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5742 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5743 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5744 $as_echo_n "(cached) " >&6
5745 else
5746 while :; do
5747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5748 /* end confdefs.h. */
5749 #include <sys/types.h>
5750 /* Check that off_t can represent 2**63 - 1 correctly.
5751 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5752 since some C++ compilers masquerading as C compilers
5753 incorrectly reject 9223372036854775807. */
5754 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5755 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5756 && LARGE_OFF_T % 2147483647 == 1)
5757 ? 1 : -1];
5759 main ()
5763 return 0;
5765 _ACEOF
5766 if ac_fn_c_try_compile "$LINENO"; then :
5767 ac_cv_sys_file_offset_bits=no; break
5769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771 /* end confdefs.h. */
5772 #define _FILE_OFFSET_BITS 64
5773 #include <sys/types.h>
5774 /* Check that off_t can represent 2**63 - 1 correctly.
5775 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5776 since some C++ compilers masquerading as C compilers
5777 incorrectly reject 9223372036854775807. */
5778 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5779 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5780 && LARGE_OFF_T % 2147483647 == 1)
5781 ? 1 : -1];
5783 main ()
5787 return 0;
5789 _ACEOF
5790 if ac_fn_c_try_compile "$LINENO"; then :
5791 ac_cv_sys_file_offset_bits=64; break
5793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5794 ac_cv_sys_file_offset_bits=unknown
5795 break
5796 done
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5799 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5800 case $ac_cv_sys_file_offset_bits in #(
5801 no | unknown) ;;
5803 cat >>confdefs.h <<_ACEOF
5804 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5805 _ACEOF
5807 esac
5808 rm -rf conftest*
5809 if test $ac_cv_sys_file_offset_bits = unknown; then
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5811 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5812 if test "${ac_cv_sys_large_files+set}" = set; then :
5813 $as_echo_n "(cached) " >&6
5814 else
5815 while :; do
5816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817 /* end confdefs.h. */
5818 #include <sys/types.h>
5819 /* Check that off_t can represent 2**63 - 1 correctly.
5820 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5821 since some C++ compilers masquerading as C compilers
5822 incorrectly reject 9223372036854775807. */
5823 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5824 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5825 && LARGE_OFF_T % 2147483647 == 1)
5826 ? 1 : -1];
5828 main ()
5832 return 0;
5834 _ACEOF
5835 if ac_fn_c_try_compile "$LINENO"; then :
5836 ac_cv_sys_large_files=no; break
5838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5841 #define _LARGE_FILES 1
5842 #include <sys/types.h>
5843 /* Check that off_t can represent 2**63 - 1 correctly.
5844 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5845 since some C++ compilers masquerading as C compilers
5846 incorrectly reject 9223372036854775807. */
5847 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5848 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5849 && LARGE_OFF_T % 2147483647 == 1)
5850 ? 1 : -1];
5852 main ()
5856 return 0;
5858 _ACEOF
5859 if ac_fn_c_try_compile "$LINENO"; then :
5860 ac_cv_sys_large_files=1; break
5862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5863 ac_cv_sys_large_files=unknown
5864 break
5865 done
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5868 $as_echo "$ac_cv_sys_large_files" >&6; }
5869 case $ac_cv_sys_large_files in #(
5870 no | unknown) ;;
5872 cat >>confdefs.h <<_ACEOF
5873 #define _LARGE_FILES $ac_cv_sys_large_files
5874 _ACEOF
5876 esac
5877 rm -rf conftest*
5883 ## If user specified a crt-dir, use that unconditionally.
5884 if test "X$CRT_DIR" = "X"; then
5886 case "$canonical" in
5887 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
5888 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5889 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5890 ## For anything else (eg /usr/lib32), it is up the user to specify
5891 ## the location (bug#5655).
5892 ## Test for crtn.o, not just the directory, because sometimes the
5893 ## directory exists but does not have the relevant files (bug#1287).
5894 ## FIXME better to test for binary compatibility somehow.
5895 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
5898 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
5899 esac
5901 case "$opsys" in
5902 hpux10-20) CRT_DIR=/lib ;;
5903 esac
5905 ## Default is /usr/lib.
5906 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
5908 else
5910 ## Some platforms don't use any of these files, so it is not
5911 ## appropriate to put this test outside the if block.
5912 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5913 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
5919 LIB_MATH=-lm
5920 LIB_STANDARD=
5921 START_FILES=
5923 case $opsys in
5924 cygwin )
5925 LIB_MATH=
5926 START_FILES='pre-crt0.o'
5928 darwin )
5929 ## Adding -lm confuses the dynamic linker, so omit it.
5930 LIB_MATH=
5931 START_FILES='pre-crt0.o'
5933 freebsd )
5934 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5935 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5937 gnu-linux | gnu-kfreebsd )
5938 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5939 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5941 hpux10-20 | hpux11 )
5942 LIB_STANDARD=-lc
5943 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
5945 netbsd | openbsd )
5946 if test -f $CRT_DIR/crti.o; then
5947 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5948 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5949 else
5950 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5951 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5954 esac
5962 if test "${with_sound}" != "no"; then
5963 # Sound support for GNU/Linux and the free BSDs.
5964 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5965 do :
5966 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5967 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5968 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5969 cat >>confdefs.h <<_ACEOF
5970 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5971 _ACEOF
5972 have_sound_header=yes
5975 done
5977 # Emulation library used on NetBSD.
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5979 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5980 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5981 $as_echo_n "(cached) " >&6
5982 else
5983 ac_check_lib_save_LIBS=$LIBS
5984 LIBS="-lossaudio $LIBS"
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h. */
5988 /* Override any GCC internal prototype to avoid an error.
5989 Use char because int might match the return type of a GCC
5990 builtin and then its argument prototype would still apply. */
5991 #ifdef __cplusplus
5992 extern "C"
5993 #endif
5994 char _oss_ioctl ();
5996 main ()
5998 return _oss_ioctl ();
6000 return 0;
6002 _ACEOF
6003 if ac_fn_c_try_link "$LINENO"; then :
6004 ac_cv_lib_ossaudio__oss_ioctl=yes
6005 else
6006 ac_cv_lib_ossaudio__oss_ioctl=no
6008 rm -f core conftest.err conftest.$ac_objext \
6009 conftest$ac_exeext conftest.$ac_ext
6010 LIBS=$ac_check_lib_save_LIBS
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6013 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6014 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
6015 LIBSOUND=-lossaudio
6016 else
6017 LIBSOUND=
6022 ALSA_REQUIRED=1.0.0
6023 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6025 succeeded=no
6027 # Extract the first word of "pkg-config", so it can be a program name with args.
6028 set dummy pkg-config; ac_word=$2
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6030 $as_echo_n "checking for $ac_word... " >&6; }
6031 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6032 $as_echo_n "(cached) " >&6
6033 else
6034 case $PKG_CONFIG in
6035 [\\/]* | ?:[\\/]*)
6036 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 for as_dir in $PATH
6042 IFS=$as_save_IFS
6043 test -z "$as_dir" && as_dir=.
6044 for ac_exec_ext in '' $ac_executable_extensions; do
6045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6046 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6048 break 2
6050 done
6051 done
6052 IFS=$as_save_IFS
6054 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6056 esac
6058 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6059 if test -n "$PKG_CONFIG"; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6061 $as_echo "$PKG_CONFIG" >&6; }
6062 else
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6069 if test "$PKG_CONFIG" = "no" ; then
6070 HAVE_ALSA=no
6071 else
6072 PKG_CONFIG_MIN_VERSION=0.9.0
6073 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6075 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6077 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6079 $as_echo "yes" >&6; }
6080 succeeded=yes
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6083 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6084 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6086 $as_echo "$ALSA_CFLAGS" >&6; }
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6089 $as_echo_n "checking ALSA_LIBS... " >&6; }
6090 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6092 $as_echo "$ALSA_LIBS" >&6; }
6093 else
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095 $as_echo "no" >&6; }
6096 ALSA_CFLAGS=""
6097 ALSA_LIBS=""
6098 ## If we have a custom action on failure, don't print errors, but
6099 ## do set a variable so people can do so.
6100 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6106 else
6107 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6108 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6112 if test $succeeded = yes; then
6113 HAVE_ALSA=yes
6114 else
6115 HAVE_ALSA=no
6118 if test $HAVE_ALSA = yes; then
6119 SAVE_CFLAGS="$CFLAGS"
6120 SAVE_LDFLAGS="$LDFLAGS"
6121 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6122 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h. */
6125 #include <asoundlib.h>
6127 main ()
6129 snd_lib_error_set_handler (0);
6131 return 0;
6133 _ACEOF
6134 if ac_fn_c_try_compile "$LINENO"; then :
6135 emacs_alsa_normal=yes
6136 else
6137 emacs_alsa_normal=no
6139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6140 if test "$emacs_alsa_normal" != yes; then
6141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6142 /* end confdefs.h. */
6143 #include <alsa/asoundlib.h>
6145 main ()
6147 snd_lib_error_set_handler (0);
6149 return 0;
6151 _ACEOF
6152 if ac_fn_c_try_compile "$LINENO"; then :
6153 emacs_alsa_subdir=yes
6154 else
6155 emacs_alsa_subdir=no
6157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6158 if test "$emacs_alsa_subdir" != yes; then
6159 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6161 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6164 CFLAGS="$SAVE_CFLAGS"
6165 LDFLAGS="$SAVE_LDFLAGS"
6166 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6167 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6169 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6173 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
6174 case "$opsys" in
6175 gnu-linux|freebsd|netbsd)
6177 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
6180 esac
6186 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6187 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6188 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6189 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6190 sys/utsname.h pwd.h utmp.h dirent.h util.h
6191 do :
6192 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6193 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6194 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6195 cat >>confdefs.h <<_ACEOF
6196 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6197 _ACEOF
6201 done
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6205 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6207 /* end confdefs.h. */
6208 #include <sys/personality.h>
6210 main ()
6212 personality (PER_LINUX32)
6214 return 0;
6216 _ACEOF
6217 if ac_fn_c_try_compile "$LINENO"; then :
6218 emacs_cv_personality_linux32=yes
6219 else
6220 emacs_cv_personality_linux32=no
6222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6224 $as_echo "$emacs_cv_personality_linux32" >&6; }
6226 if test $emacs_cv_personality_linux32 = yes; then
6228 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6232 for ac_header in term.h
6233 do :
6234 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
6235 if test "x$ac_cv_header_term_h" = x""yes; then :
6236 cat >>confdefs.h <<_ACEOF
6237 #define HAVE_TERM_H 1
6238 _ACEOF
6242 done
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6245 $as_echo_n "checking for ANSI C header files... " >&6; }
6246 if test "${ac_cv_header_stdc+set}" = set; then :
6247 $as_echo_n "(cached) " >&6
6248 else
6249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250 /* end confdefs.h. */
6251 #include <stdlib.h>
6252 #include <stdarg.h>
6253 #include <string.h>
6254 #include <float.h>
6257 main ()
6261 return 0;
6263 _ACEOF
6264 if ac_fn_c_try_compile "$LINENO"; then :
6265 ac_cv_header_stdc=yes
6266 else
6267 ac_cv_header_stdc=no
6269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6271 if test $ac_cv_header_stdc = yes; then
6272 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274 /* end confdefs.h. */
6275 #include <string.h>
6277 _ACEOF
6278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6279 $EGREP "memchr" >/dev/null 2>&1; then :
6281 else
6282 ac_cv_header_stdc=no
6284 rm -f conftest*
6288 if test $ac_cv_header_stdc = yes; then
6289 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291 /* end confdefs.h. */
6292 #include <stdlib.h>
6294 _ACEOF
6295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6296 $EGREP "free" >/dev/null 2>&1; then :
6298 else
6299 ac_cv_header_stdc=no
6301 rm -f conftest*
6305 if test $ac_cv_header_stdc = yes; then
6306 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6307 if test "$cross_compiling" = yes; then :
6309 else
6310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6311 /* end confdefs.h. */
6312 #include <ctype.h>
6313 #include <stdlib.h>
6314 #if ((' ' & 0x0FF) == 0x020)
6315 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6316 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6317 #else
6318 # define ISLOWER(c) \
6319 (('a' <= (c) && (c) <= 'i') \
6320 || ('j' <= (c) && (c) <= 'r') \
6321 || ('s' <= (c) && (c) <= 'z'))
6322 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6323 #endif
6325 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6327 main ()
6329 int i;
6330 for (i = 0; i < 256; i++)
6331 if (XOR (islower (i), ISLOWER (i))
6332 || toupper (i) != TOUPPER (i))
6333 return 2;
6334 return 0;
6336 _ACEOF
6337 if ac_fn_c_try_run "$LINENO"; then :
6339 else
6340 ac_cv_header_stdc=no
6342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6343 conftest.$ac_objext conftest.beam conftest.$ac_ext
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6349 $as_echo "$ac_cv_header_stdc" >&6; }
6350 if test $ac_cv_header_stdc = yes; then
6352 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6357 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6358 if test "${ac_cv_header_time+set}" = set; then :
6359 $as_echo_n "(cached) " >&6
6360 else
6361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362 /* end confdefs.h. */
6363 #include <sys/types.h>
6364 #include <sys/time.h>
6365 #include <time.h>
6368 main ()
6370 if ((struct tm *) 0)
6371 return 0;
6373 return 0;
6375 _ACEOF
6376 if ac_fn_c_try_compile "$LINENO"; then :
6377 ac_cv_header_time=yes
6378 else
6379 ac_cv_header_time=no
6381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6384 $as_echo "$ac_cv_header_time" >&6; }
6385 if test $ac_cv_header_time = yes; then
6387 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6391 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6392 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
6393 ac_have_decl=1
6394 else
6395 ac_have_decl=0
6398 cat >>confdefs.h <<_ACEOF
6399 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6400 _ACEOF
6402 if test $ac_cv_have_decl_sys_siglist != yes; then
6403 # For Tru64, at least:
6404 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6405 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
6406 ac_have_decl=1
6407 else
6408 ac_have_decl=0
6411 cat >>confdefs.h <<_ACEOF
6412 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6413 _ACEOF
6415 if test $ac_cv_have_decl___sys_siglist = yes; then
6417 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6422 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6423 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6427 /* end confdefs.h. */
6428 #include <sys/types.h>
6429 #include <sys/wait.h>
6430 #ifndef WEXITSTATUS
6431 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6432 #endif
6433 #ifndef WIFEXITED
6434 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6435 #endif
6438 main ()
6440 int s;
6441 wait (&s);
6442 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6444 return 0;
6446 _ACEOF
6447 if ac_fn_c_try_compile "$LINENO"; then :
6448 ac_cv_header_sys_wait_h=yes
6449 else
6450 ac_cv_header_sys_wait_h=no
6452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6455 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6456 if test $ac_cv_header_sys_wait_h = yes; then
6458 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6464 $as_echo_n "checking for struct utimbuf... " >&6; }
6465 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6466 $as_echo_n "(cached) " >&6
6467 else
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h. */
6470 #ifdef TIME_WITH_SYS_TIME
6471 #include <sys/time.h>
6472 #include <time.h>
6473 #else
6474 #ifdef HAVE_SYS_TIME_H
6475 #include <sys/time.h>
6476 #else
6477 #include <time.h>
6478 #endif
6479 #endif
6480 #ifdef HAVE_UTIME_H
6481 #include <utime.h>
6482 #endif
6484 main ()
6486 static struct utimbuf x; x.actime = x.modtime;
6488 return 0;
6490 _ACEOF
6491 if ac_fn_c_try_compile "$LINENO"; then :
6492 emacs_cv_struct_utimbuf=yes
6493 else
6494 emacs_cv_struct_utimbuf=no
6496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6499 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6500 if test $emacs_cv_struct_utimbuf = yes; then
6502 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6507 $as_echo_n "checking return type of signal handlers... " >&6; }
6508 if test "${ac_cv_type_signal+set}" = set; then :
6509 $as_echo_n "(cached) " >&6
6510 else
6511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512 /* end confdefs.h. */
6513 #include <sys/types.h>
6514 #include <signal.h>
6517 main ()
6519 return *(signal (0, 0)) (0) == 1;
6521 return 0;
6523 _ACEOF
6524 if ac_fn_c_try_compile "$LINENO"; then :
6525 ac_cv_type_signal=int
6526 else
6527 ac_cv_type_signal=void
6529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6532 $as_echo "$ac_cv_type_signal" >&6; }
6534 cat >>confdefs.h <<_ACEOF
6535 #define RETSIGTYPE $ac_cv_type_signal
6536 _ACEOF
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6541 $as_echo_n "checking for speed_t... " >&6; }
6542 if test "${emacs_cv_speed_t+set}" = set; then :
6543 $as_echo_n "(cached) " >&6
6544 else
6545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546 /* end confdefs.h. */
6547 #include <termios.h>
6549 main ()
6551 speed_t x = 1;
6553 return 0;
6555 _ACEOF
6556 if ac_fn_c_try_compile "$LINENO"; then :
6557 emacs_cv_speed_t=yes
6558 else
6559 emacs_cv_speed_t=no
6561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6564 $as_echo "$emacs_cv_speed_t" >&6; }
6565 if test $emacs_cv_speed_t = yes; then
6567 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6572 $as_echo_n "checking for struct timeval... " >&6; }
6573 if test "${emacs_cv_struct_timeval+set}" = set; then :
6574 $as_echo_n "(cached) " >&6
6575 else
6576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577 /* end confdefs.h. */
6578 #ifdef TIME_WITH_SYS_TIME
6579 #include <sys/time.h>
6580 #include <time.h>
6581 #else
6582 #ifdef HAVE_SYS_TIME_H
6583 #include <sys/time.h>
6584 #else
6585 #include <time.h>
6586 #endif
6587 #endif
6589 main ()
6591 static struct timeval x; x.tv_sec = x.tv_usec;
6593 return 0;
6595 _ACEOF
6596 if ac_fn_c_try_compile "$LINENO"; then :
6597 emacs_cv_struct_timeval=yes
6598 else
6599 emacs_cv_struct_timeval=no
6601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6604 $as_echo "$emacs_cv_struct_timeval" >&6; }
6605 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6606 if test $emacs_cv_struct_timeval = yes; then
6608 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6613 $as_echo_n "checking for struct exception... " >&6; }
6614 if test "${emacs_cv_struct_exception+set}" = set; then :
6615 $as_echo_n "(cached) " >&6
6616 else
6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h. */
6619 #include <math.h>
6621 main ()
6623 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6625 return 0;
6627 _ACEOF
6628 if ac_fn_c_try_compile "$LINENO"; then :
6629 emacs_cv_struct_exception=yes
6630 else
6631 emacs_cv_struct_exception=no
6633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6636 $as_echo "$emacs_cv_struct_exception" >&6; }
6637 HAVE_EXCEPTION=$emacs_cv_struct_exception
6638 if test $emacs_cv_struct_exception != yes; then
6640 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6644 for ac_header in sys/socket.h
6645 do :
6646 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6647 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
6648 cat >>confdefs.h <<_ACEOF
6649 #define HAVE_SYS_SOCKET_H 1
6650 _ACEOF
6654 done
6656 for ac_header in net/if.h
6657 do :
6658 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6659 #if HAVE_SYS_SOCKET_H
6660 #include <sys/socket.h>
6661 #endif
6663 if test "x$ac_cv_header_net_if_h" = x""yes; then :
6664 cat >>confdefs.h <<_ACEOF
6665 #define HAVE_NET_IF_H 1
6666 _ACEOF
6670 done
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6674 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6675 if test "${ac_cv_struct_tm+set}" = set; then :
6676 $as_echo_n "(cached) " >&6
6677 else
6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679 /* end confdefs.h. */
6680 #include <sys/types.h>
6681 #include <time.h>
6684 main ()
6686 struct tm tm;
6687 int *p = &tm.tm_sec;
6688 return !p;
6690 return 0;
6692 _ACEOF
6693 if ac_fn_c_try_compile "$LINENO"; then :
6694 ac_cv_struct_tm=time.h
6695 else
6696 ac_cv_struct_tm=sys/time.h
6698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6701 $as_echo "$ac_cv_struct_tm" >&6; }
6702 if test $ac_cv_struct_tm = sys/time.h; then
6704 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6708 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6709 #include <$ac_cv_struct_tm>
6712 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6714 cat >>confdefs.h <<_ACEOF
6715 #define HAVE_STRUCT_TM_TM_ZONE 1
6716 _ACEOF
6721 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6723 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6725 else
6726 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6728 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6729 ac_have_decl=1
6730 else
6731 ac_have_decl=0
6734 cat >>confdefs.h <<_ACEOF
6735 #define HAVE_DECL_TZNAME $ac_have_decl
6736 _ACEOF
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6739 $as_echo_n "checking for tzname... " >&6; }
6740 if test "${ac_cv_var_tzname+set}" = set; then :
6741 $as_echo_n "(cached) " >&6
6742 else
6743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744 /* end confdefs.h. */
6745 #include <time.h>
6746 #if !HAVE_DECL_TZNAME
6747 extern char *tzname[];
6748 #endif
6751 main ()
6753 return tzname[0][0];
6755 return 0;
6757 _ACEOF
6758 if ac_fn_c_try_link "$LINENO"; then :
6759 ac_cv_var_tzname=yes
6760 else
6761 ac_cv_var_tzname=no
6763 rm -f core conftest.err conftest.$ac_objext \
6764 conftest$ac_exeext conftest.$ac_ext
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6767 $as_echo "$ac_cv_var_tzname" >&6; }
6768 if test $ac_cv_var_tzname = yes; then
6770 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6775 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6777 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6779 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6783 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6784 #if HAVE_SYS_SOCKET_H
6785 #include <sys/socket.h>
6786 #endif
6787 #if HAVE_NET_IF_H
6788 #include <net/if.h>
6789 #endif
6791 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
6793 cat >>confdefs.h <<_ACEOF
6794 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6795 _ACEOF
6799 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6800 #if HAVE_SYS_SOCKET_H
6801 #include <sys/socket.h>
6802 #endif
6803 #if HAVE_NET_IF_H
6804 #include <net/if.h>
6805 #endif
6807 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
6809 cat >>confdefs.h <<_ACEOF
6810 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6811 _ACEOF
6815 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6816 #if HAVE_SYS_SOCKET_H
6817 #include <sys/socket.h>
6818 #endif
6819 #if HAVE_NET_IF_H
6820 #include <net/if.h>
6821 #endif
6823 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
6825 cat >>confdefs.h <<_ACEOF
6826 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6827 _ACEOF
6831 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6832 #if HAVE_SYS_SOCKET_H
6833 #include <sys/socket.h>
6834 #endif
6835 #if HAVE_NET_IF_H
6836 #include <net/if.h>
6837 #endif
6839 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
6841 cat >>confdefs.h <<_ACEOF
6842 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6843 _ACEOF
6847 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6848 #if HAVE_SYS_SOCKET_H
6849 #include <sys/socket.h>
6850 #endif
6851 #if HAVE_NET_IF_H
6852 #include <net/if.h>
6853 #endif
6855 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
6857 cat >>confdefs.h <<_ACEOF
6858 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6859 _ACEOF
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6867 $as_echo_n "checking for function prototypes... " >&6; }
6868 if test "$ac_cv_prog_cc_c89" != no; then
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6870 $as_echo "yes" >&6; }
6872 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6875 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6877 else
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879 $as_echo "no" >&6; }
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6883 $as_echo_n "checking for working volatile... " >&6; }
6884 if test "${ac_cv_c_volatile+set}" = set; then :
6885 $as_echo_n "(cached) " >&6
6886 else
6887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6888 /* end confdefs.h. */
6891 main ()
6894 volatile int x;
6895 int * volatile y = (int *) 0;
6896 return !x && !y;
6898 return 0;
6900 _ACEOF
6901 if ac_fn_c_try_compile "$LINENO"; then :
6902 ac_cv_c_volatile=yes
6903 else
6904 ac_cv_c_volatile=no
6906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6909 $as_echo "$ac_cv_c_volatile" >&6; }
6910 if test $ac_cv_c_volatile = no; then
6912 $as_echo "#define volatile /**/" >>confdefs.h
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6917 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6918 if test "${ac_cv_c_const+set}" = set; then :
6919 $as_echo_n "(cached) " >&6
6920 else
6921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6922 /* end confdefs.h. */
6925 main ()
6927 /* FIXME: Include the comments suggested by Paul. */
6928 #ifndef __cplusplus
6929 /* Ultrix mips cc rejects this. */
6930 typedef int charset[2];
6931 const charset cs;
6932 /* SunOS 4.1.1 cc rejects this. */
6933 char const *const *pcpcc;
6934 char **ppc;
6935 /* NEC SVR4.0.2 mips cc rejects this. */
6936 struct point {int x, y;};
6937 static struct point const zero = {0,0};
6938 /* AIX XL C 1.02.0.0 rejects this.
6939 It does not let you subtract one const X* pointer from another in
6940 an arm of an if-expression whose if-part is not a constant
6941 expression */
6942 const char *g = "string";
6943 pcpcc = &g + (g ? g-g : 0);
6944 /* HPUX 7.0 cc rejects these. */
6945 ++pcpcc;
6946 ppc = (char**) pcpcc;
6947 pcpcc = (char const *const *) ppc;
6948 { /* SCO 3.2v4 cc rejects this. */
6949 char *t;
6950 char const *s = 0 ? (char *) 0 : (char const *) 0;
6952 *t++ = 0;
6953 if (s) return 0;
6955 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6956 int x[] = {25, 17};
6957 const int *foo = &x[0];
6958 ++foo;
6960 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6961 typedef const int *iptr;
6962 iptr p = 0;
6963 ++p;
6965 { /* AIX XL C 1.02.0.0 rejects this saying
6966 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6967 struct s { int j; const int *ap[3]; };
6968 struct s *b; b->j = 5;
6970 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6971 const int foo = 10;
6972 if (!foo) return 0;
6974 return !cs[0] && !zero.x;
6975 #endif
6978 return 0;
6980 _ACEOF
6981 if ac_fn_c_try_compile "$LINENO"; then :
6982 ac_cv_c_const=yes
6983 else
6984 ac_cv_c_const=no
6986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6989 $as_echo "$ac_cv_c_const" >&6; }
6990 if test $ac_cv_c_const = no; then
6992 $as_echo "#define const /**/" >>confdefs.h
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
6997 $as_echo_n "checking for void * support... " >&6; }
6998 if test "${emacs_cv_void_star+set}" = set; then :
6999 $as_echo_n "(cached) " >&6
7000 else
7001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002 /* end confdefs.h. */
7005 main ()
7007 void * foo;
7009 return 0;
7011 _ACEOF
7012 if ac_fn_c_try_compile "$LINENO"; then :
7013 emacs_cv_void_star=yes
7014 else
7015 emacs_cv_void_star=no
7017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
7020 $as_echo "$emacs_cv_void_star" >&6; }
7021 if test $emacs_cv_void_star = yes; then
7022 $as_echo "#define POINTER_TYPE void" >>confdefs.h
7024 else
7025 $as_echo "#define POINTER_TYPE char" >>confdefs.h
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7030 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7031 if test "${ac_cv_c_bigendian+set}" = set; then :
7032 $as_echo_n "(cached) " >&6
7033 else
7034 ac_cv_c_bigendian=unknown
7035 # See if we're dealing with a universal compiler.
7036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h. */
7038 #ifndef __APPLE_CC__
7039 not a universal capable compiler
7040 #endif
7041 typedef int dummy;
7043 _ACEOF
7044 if ac_fn_c_try_compile "$LINENO"; then :
7046 # Check for potential -arch flags. It is not universal unless
7047 # there are at least two -arch flags with different values.
7048 ac_arch=
7049 ac_prev=
7050 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7051 if test -n "$ac_prev"; then
7052 case $ac_word in
7053 i?86 | x86_64 | ppc | ppc64)
7054 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7055 ac_arch=$ac_word
7056 else
7057 ac_cv_c_bigendian=universal
7058 break
7061 esac
7062 ac_prev=
7063 elif test "x$ac_word" = "x-arch"; then
7064 ac_prev=arch
7066 done
7068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7069 if test $ac_cv_c_bigendian = unknown; then
7070 # See if sys/param.h defines the BYTE_ORDER macro.
7071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7072 /* end confdefs.h. */
7073 #include <sys/types.h>
7074 #include <sys/param.h>
7077 main ()
7079 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7080 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7081 && LITTLE_ENDIAN)
7082 bogus endian macros
7083 #endif
7086 return 0;
7088 _ACEOF
7089 if ac_fn_c_try_compile "$LINENO"; then :
7090 # It does; now see whether it defined to BIG_ENDIAN or not.
7091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092 /* end confdefs.h. */
7093 #include <sys/types.h>
7094 #include <sys/param.h>
7097 main ()
7099 #if BYTE_ORDER != BIG_ENDIAN
7100 not big endian
7101 #endif
7104 return 0;
7106 _ACEOF
7107 if ac_fn_c_try_compile "$LINENO"; then :
7108 ac_cv_c_bigendian=yes
7109 else
7110 ac_cv_c_bigendian=no
7112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7116 if test $ac_cv_c_bigendian = unknown; then
7117 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h. */
7120 #include <limits.h>
7123 main ()
7125 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7126 bogus endian macros
7127 #endif
7130 return 0;
7132 _ACEOF
7133 if ac_fn_c_try_compile "$LINENO"; then :
7134 # It does; now see whether it defined to _BIG_ENDIAN or not.
7135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136 /* end confdefs.h. */
7137 #include <limits.h>
7140 main ()
7142 #ifndef _BIG_ENDIAN
7143 not big endian
7144 #endif
7147 return 0;
7149 _ACEOF
7150 if ac_fn_c_try_compile "$LINENO"; then :
7151 ac_cv_c_bigendian=yes
7152 else
7153 ac_cv_c_bigendian=no
7155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7159 if test $ac_cv_c_bigendian = unknown; then
7160 # Compile a test program.
7161 if test "$cross_compiling" = yes; then :
7162 # Try to guess by grepping values from an object file.
7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164 /* end confdefs.h. */
7165 short int ascii_mm[] =
7166 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7167 short int ascii_ii[] =
7168 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7169 int use_ascii (int i) {
7170 return ascii_mm[i] + ascii_ii[i];
7172 short int ebcdic_ii[] =
7173 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7174 short int ebcdic_mm[] =
7175 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7176 int use_ebcdic (int i) {
7177 return ebcdic_mm[i] + ebcdic_ii[i];
7179 extern int foo;
7182 main ()
7184 return use_ascii (foo) == use_ebcdic (foo);
7186 return 0;
7188 _ACEOF
7189 if ac_fn_c_try_compile "$LINENO"; then :
7190 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7191 ac_cv_c_bigendian=yes
7193 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7194 if test "$ac_cv_c_bigendian" = unknown; then
7195 ac_cv_c_bigendian=no
7196 else
7197 # finding both strings is unlikely to happen, but who knows?
7198 ac_cv_c_bigendian=unknown
7202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7203 else
7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205 /* end confdefs.h. */
7206 $ac_includes_default
7208 main ()
7211 /* Are we little or big endian? From Harbison&Steele. */
7212 union
7214 long int l;
7215 char c[sizeof (long int)];
7216 } u;
7217 u.l = 1;
7218 return u.c[sizeof (long int) - 1] == 1;
7221 return 0;
7223 _ACEOF
7224 if ac_fn_c_try_run "$LINENO"; then :
7225 ac_cv_c_bigendian=no
7226 else
7227 ac_cv_c_bigendian=yes
7229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7230 conftest.$ac_objext conftest.beam conftest.$ac_ext
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7236 $as_echo "$ac_cv_c_bigendian" >&6; }
7237 case $ac_cv_c_bigendian in #(
7238 yes)
7239 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7240 ;; #(
7242 ;; #(
7243 universal)
7245 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7247 ;; #(
7249 as_fn_error $? "unknown endianness
7250 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7251 esac
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7255 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7256 set x ${MAKE-make}
7257 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7258 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
7259 $as_echo_n "(cached) " >&6
7260 else
7261 cat >conftest.make <<\_ACEOF
7262 SHELL = /bin/sh
7263 all:
7264 @echo '@@@%%%=$(MAKE)=@@@%%%'
7265 _ACEOF
7266 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7267 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7268 *@@@%%%=?*=@@@%%%*)
7269 eval ac_cv_prog_make_${ac_make}_set=yes;;
7271 eval ac_cv_prog_make_${ac_make}_set=no;;
7272 esac
7273 rm -f conftest.make
7275 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7277 $as_echo "yes" >&6; }
7278 SET_MAKE=
7279 else
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }
7282 SET_MAKE="MAKE=${MAKE-make}"
7286 DEPFLAGS=
7287 MKDEPDIR=":"
7288 deps_frag=deps.mk
7289 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
7291 $as_echo_n "checking whether we are using GNU Make... " >&6; }
7292 HAVE_GNU_MAKE=no
7293 testval=`make --version 2>/dev/null | grep 'GNU Make'`
7294 if test "x$testval" != x; then
7295 HAVE_GNU_MAKE=yes
7296 else
7297 ac_enable_autodepend=no
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7300 $as_echo "$HAVE_GNU_MAKE" >&6; }
7301 if test $HAVE_GNU_MAKE = yes; then
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7303 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7304 SAVE_CFLAGS="$CFLAGS"
7305 CFLAGS="$CFLAGS -MMD -MF deps.d"
7306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7307 /* end confdefs.h. */
7310 main ()
7314 return 0;
7316 _ACEOF
7317 if ac_fn_c_try_compile "$LINENO"; then :
7319 else
7320 ac_enable_autodepend=no
7322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7323 CFLAGS="$SAVE_CFLAGS"
7324 test -f deps.d || ac_enable_autodepend=no
7325 rm -rf deps.d
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7327 $as_echo "$ac_enable_autodepend" >&6; }
7329 if test $ac_enable_autodepend = yes; then
7330 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
7331 ## In parallel builds, another make might create depdir between
7332 ## the first test and mkdir, so stick another test on the end.
7333 ## Or use mkinstalldirs? mkdir -p is not portable.
7334 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
7335 deps_frag=autodeps.mk
7338 deps_frag=$srcdir/src/$deps_frag
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7345 $as_echo_n "checking for long file names... " >&6; }
7346 if test "${ac_cv_sys_long_file_names+set}" = set; then :
7347 $as_echo_n "(cached) " >&6
7348 else
7349 ac_cv_sys_long_file_names=yes
7350 # Test for long file names in all the places we know might matter:
7351 # . the current directory, where building will happen
7352 # $prefix/lib where we will be installing things
7353 # $exec_prefix/lib likewise
7354 # $TMPDIR if set, where it might want to write temporary files
7355 # /tmp where it might want to write temporary files
7356 # /var/tmp likewise
7357 # /usr/tmp likewise
7358 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
7359 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7360 # in the usual case where exec_prefix is '${prefix}'.
7361 case $ac_dir in #(
7362 . | /* | ?:[\\/]*) ;; #(
7363 *) continue;;
7364 esac
7365 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
7366 ac_xdir=$ac_dir/cf$$
7367 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
7368 ac_tf1=$ac_xdir/conftest9012345
7369 ac_tf2=$ac_xdir/conftest9012346
7370 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7371 ac_cv_sys_long_file_names=no
7372 rm -f -r "$ac_xdir" 2>/dev/null
7373 test $ac_cv_sys_long_file_names = no && break
7374 done
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7377 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7378 if test $ac_cv_sys_long_file_names = yes; then
7380 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7385 #### Choose a window system.
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7388 $as_echo_n "checking for X... " >&6; }
7391 # Check whether --with-x was given.
7392 if test "${with_x+set}" = set; then :
7393 withval=$with_x;
7396 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7397 if test "x$with_x" = xno; then
7398 # The user explicitly disabled X.
7399 have_x=disabled
7400 else
7401 case $x_includes,$x_libraries in #(
7402 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7403 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7404 $as_echo_n "(cached) " >&6
7405 else
7406 # One or both of the vars are not set, and there is no cached value.
7407 ac_x_includes=no ac_x_libraries=no
7408 rm -f -r conftest.dir
7409 if mkdir conftest.dir; then
7410 cd conftest.dir
7411 cat >Imakefile <<'_ACEOF'
7412 incroot:
7413 @echo incroot='${INCROOT}'
7414 usrlibdir:
7415 @echo usrlibdir='${USRLIBDIR}'
7416 libdir:
7417 @echo libdir='${LIBDIR}'
7418 _ACEOF
7419 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7420 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7421 for ac_var in incroot usrlibdir libdir; do
7422 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7423 done
7424 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7425 for ac_extension in a so sl dylib la dll; do
7426 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7427 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7428 ac_im_usrlibdir=$ac_im_libdir; break
7430 done
7431 # Screen out bogus values from the imake configuration. They are
7432 # bogus both because they are the default anyway, and because
7433 # using them would break gcc on systems where it needs fixed includes.
7434 case $ac_im_incroot in
7435 /usr/include) ac_x_includes= ;;
7436 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7437 esac
7438 case $ac_im_usrlibdir in
7439 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7440 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7441 esac
7443 cd ..
7444 rm -f -r conftest.dir
7447 # Standard set of common directories for X headers.
7448 # Check X11 before X11Rn because it is often a symlink to the current release.
7449 ac_x_header_dirs='
7450 /usr/X11/include
7451 /usr/X11R7/include
7452 /usr/X11R6/include
7453 /usr/X11R5/include
7454 /usr/X11R4/include
7456 /usr/include/X11
7457 /usr/include/X11R7
7458 /usr/include/X11R6
7459 /usr/include/X11R5
7460 /usr/include/X11R4
7462 /usr/local/X11/include
7463 /usr/local/X11R7/include
7464 /usr/local/X11R6/include
7465 /usr/local/X11R5/include
7466 /usr/local/X11R4/include
7468 /usr/local/include/X11
7469 /usr/local/include/X11R7
7470 /usr/local/include/X11R6
7471 /usr/local/include/X11R5
7472 /usr/local/include/X11R4
7474 /usr/X386/include
7475 /usr/x386/include
7476 /usr/XFree86/include/X11
7478 /usr/include
7479 /usr/local/include
7480 /usr/unsupported/include
7481 /usr/athena/include
7482 /usr/local/x11r5/include
7483 /usr/lpp/Xamples/include
7485 /usr/openwin/include
7486 /usr/openwin/share/include'
7488 if test "$ac_x_includes" = no; then
7489 # Guess where to find include files, by looking for Xlib.h.
7490 # First, try using that file with no special directory specified.
7491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492 /* end confdefs.h. */
7493 #include <X11/Xlib.h>
7494 _ACEOF
7495 if ac_fn_c_try_cpp "$LINENO"; then :
7496 # We can compile using X headers with no special include directory.
7497 ac_x_includes=
7498 else
7499 for ac_dir in $ac_x_header_dirs; do
7500 if test -r "$ac_dir/X11/Xlib.h"; then
7501 ac_x_includes=$ac_dir
7502 break
7504 done
7506 rm -f conftest.err conftest.$ac_ext
7507 fi # $ac_x_includes = no
7509 if test "$ac_x_libraries" = no; then
7510 # Check for the libraries.
7511 # See if we find them without any special options.
7512 # Don't add to $LIBS permanently.
7513 ac_save_LIBS=$LIBS
7514 LIBS="-lX11 $LIBS"
7515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7516 /* end confdefs.h. */
7517 #include <X11/Xlib.h>
7519 main ()
7521 XrmInitialize ()
7523 return 0;
7525 _ACEOF
7526 if ac_fn_c_try_link "$LINENO"; then :
7527 LIBS=$ac_save_LIBS
7528 # We can link X programs with no special library path.
7529 ac_x_libraries=
7530 else
7531 LIBS=$ac_save_LIBS
7532 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7534 # Don't even attempt the hair of trying to link an X program!
7535 for ac_extension in a so sl dylib la dll; do
7536 if test -r "$ac_dir/libX11.$ac_extension"; then
7537 ac_x_libraries=$ac_dir
7538 break 2
7540 done
7541 done
7543 rm -f core conftest.err conftest.$ac_objext \
7544 conftest$ac_exeext conftest.$ac_ext
7545 fi # $ac_x_libraries = no
7547 case $ac_x_includes,$ac_x_libraries in #(
7548 no,* | *,no | *\'*)
7549 # Didn't find X, or a directory has "'" in its name.
7550 ac_cv_have_x="have_x=no";; #(
7552 # Record where we found X for the cache.
7553 ac_cv_have_x="have_x=yes\
7554 ac_x_includes='$ac_x_includes'\
7555 ac_x_libraries='$ac_x_libraries'"
7556 esac
7558 ;; #(
7559 *) have_x=yes;;
7560 esac
7561 eval "$ac_cv_have_x"
7562 fi # $with_x != no
7564 if test "$have_x" != yes; then
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7566 $as_echo "$have_x" >&6; }
7567 no_x=yes
7568 else
7569 # If each of the values was on the command line, it overrides each guess.
7570 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7571 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7572 # Update the cache value to reflect the command line values.
7573 ac_cv_have_x="have_x=yes\
7574 ac_x_includes='$x_includes'\
7575 ac_x_libraries='$x_libraries'"
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7577 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7580 if test "$no_x" = yes; then
7581 window_system=none
7582 else
7583 window_system=x11
7586 ## Workaround for bug in autoconf <= 2.62.
7587 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7588 ## No need to do anything special for these standard directories.
7589 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
7591 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7595 LD_SWITCH_X_SITE_AUX=
7596 LD_SWITCH_X_SITE_AUX_RPATH=
7597 if test "${x_libraries}" != NONE; then
7598 if test -n "${x_libraries}"; then
7599 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7600 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7601 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7603 x_default_search_path=""
7604 x_search_path=${x_libraries}
7605 if test -z "${x_search_path}"; then
7606 x_search_path=/usr/lib
7608 for x_library in `echo ${x_search_path}: | \
7609 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7610 x_search_path="\
7611 ${x_library}/X11/%L/%T/%N%C%S:\
7612 ${x_library}/X11/%l/%T/%N%C%S:\
7613 ${x_library}/X11/%T/%N%C%S:\
7614 ${x_library}/X11/%L/%T/%N%S:\
7615 ${x_library}/X11/%l/%T/%N%S:\
7616 ${x_library}/X11/%T/%N%S"
7617 if test x"${x_default_search_path}" = x; then
7618 x_default_search_path=${x_search_path}
7619 else
7620 x_default_search_path="${x_search_path}:${x_default_search_path}"
7622 done
7627 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7628 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7631 if test x"${x_includes}" = x; then
7632 bitmapdir=/usr/include/X11/bitmaps
7633 else
7634 # accumulate include directories that have X11 bitmap subdirectories
7635 bmd_acc="dummyval"
7636 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7637 if test -d "${bmd}/X11/bitmaps"; then
7638 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7640 if test -d "${bmd}/bitmaps"; then
7641 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7643 done
7644 if test ${bmd_acc} != "dummyval"; then
7645 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7649 HAVE_NS=no
7650 NS_IMPL_COCOA=no
7651 NS_IMPL_GNUSTEP=no
7652 tmp_CPPFLAGS="$CPPFLAGS"
7653 tmp_CFLAGS="$CFLAGS"
7654 CPPFLAGS="$CPPFLAGS -x objective-c"
7655 CFLAGS="$CFLAGS -x objective-c"
7656 TEMACS_LDFLAGS2="\${LDFLAGS} \${PROFILING_LDFLAGS}"
7657 if test "${with_ns}" != no; then
7658 if test "${opsys}" = darwin; then
7659 NS_IMPL_COCOA=yes
7660 ns_appdir=`pwd`/nextstep/Emacs.app/
7661 ns_appbindir=${ns_appdir}Contents/MacOS/
7662 ns_appresdir=${ns_appdir}Contents/Resources
7663 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
7664 elif test -f $GNUSTEP_CONFIG_FILE; then
7665 NS_IMPL_GNUSTEP=yes
7666 ns_appdir=`pwd`/nextstep/Emacs.app/
7667 ns_appbindir=${ns_appdir}
7668 ns_appresdir=${ns_appdir}Resources
7669 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
7670 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7671 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7672 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
7673 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
7674 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
7675 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
7676 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
7677 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
7678 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7679 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7680 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
7681 LIB_STANDARD=
7682 START_FILES=
7683 TEMACS_LDFLAGS2=
7685 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7686 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
7687 HAVE_NS=yes
7688 else
7689 as_fn_error $? "\`--with-ns' was specified, but the include
7690 files are missing or cannot be compiled." "$LINENO" 5
7694 NS_HAVE_NSINTEGER=yes
7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h. */
7697 #include <Foundation/NSObjCRuntime.h>
7699 main ()
7701 NSInteger i;
7703 return 0;
7705 _ACEOF
7706 if ac_fn_c_try_compile "$LINENO"; then :
7707 ns_have_nsinteger=yes
7708 else
7709 ns_have_nsinteger=no
7711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7712 if test $ns_have_nsinteger = no; then
7713 NS_HAVE_NSINTEGER=no
7718 ns_frag=/dev/null
7719 NS_OBJ=
7720 NS_SUPPORT=
7721 if test "${HAVE_NS}" = yes; then
7722 window_system=nextstep
7723 with_xft=no
7724 # set up packaging dirs
7725 exec_prefix=${ns_appbindir}
7726 libexecdir=${ns_appbindir}/libexec
7727 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7728 prefix=${ns_appresdir}
7730 ns_frag=$srcdir/src/ns.mk
7731 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7732 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
7734 CFLAGS="$tmp_CFLAGS"
7735 CPPFLAGS="$tmp_CPPFLAGS"
7741 case "${window_system}" in
7742 x11 )
7743 HAVE_X_WINDOWS=yes
7744 HAVE_X11=yes
7745 case "${with_x_toolkit}" in
7746 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7747 motif ) USE_X_TOOLKIT=MOTIF ;;
7748 gtk ) with_gtk=yes
7749 USE_X_TOOLKIT=none ;;
7750 gtk3 ) with_gtk3=yes
7751 USE_X_TOOLKIT=none ;;
7752 no ) USE_X_TOOLKIT=none ;;
7753 * ) USE_X_TOOLKIT=maybe ;;
7754 esac
7756 nextstep | none )
7757 HAVE_X_WINDOWS=no
7758 HAVE_X11=no
7759 USE_X_TOOLKIT=none
7761 esac
7763 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7764 # Extract the first word of "X", so it can be a program name with args.
7765 set dummy X; ac_word=$2
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7767 $as_echo_n "checking for $ac_word... " >&6; }
7768 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7769 $as_echo_n "(cached) " >&6
7770 else
7771 if test -n "$HAVE_XSERVER"; then
7772 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7773 else
7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 for as_dir in $PATH
7777 IFS=$as_save_IFS
7778 test -z "$as_dir" && as_dir=.
7779 for ac_exec_ext in '' $ac_executable_extensions; do
7780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7781 ac_cv_prog_HAVE_XSERVER="true"
7782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7783 break 2
7785 done
7786 done
7787 IFS=$as_save_IFS
7789 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7792 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7793 if test -n "$HAVE_XSERVER"; then
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7795 $as_echo "$HAVE_XSERVER" >&6; }
7796 else
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798 $as_echo "no" >&6; }
7802 if test "$HAVE_XSERVER" = true ||
7803 test -n "$DISPLAY" ||
7804 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7805 as_fn_error $? "You seem to be running X, but no X development libraries
7806 were found. You should install the relevant development files for X
7807 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7808 sure you have development files for image handling, i.e.
7809 tiff, gif, jpeg, png and xpm.
7810 If you are sure you want Emacs compiled without X window support, pass
7811 --without-x
7812 to configure." "$LINENO" 5
7816 ### If we're using X11, we should use the X menu package.
7817 HAVE_MENUS=no
7818 case ${HAVE_X11} in
7819 yes ) HAVE_MENUS=yes ;;
7820 esac
7822 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7823 # Assume not, until told otherwise.
7824 GNU_MALLOC=yes
7825 doug_lea_malloc=yes
7826 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7827 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
7829 else
7830 doug_lea_malloc=no
7833 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7834 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
7836 else
7837 doug_lea_malloc=no
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7841 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7842 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7843 $as_echo_n "(cached) " >&6
7844 else
7845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7846 /* end confdefs.h. */
7847 extern void (* __after_morecore_hook)();
7849 main ()
7851 __after_morecore_hook = 0
7853 return 0;
7855 _ACEOF
7856 if ac_fn_c_try_link "$LINENO"; then :
7857 emacs_cv_var___after_morecore_hook=yes
7858 else
7859 emacs_cv_var___after_morecore_hook=no
7861 rm -f core conftest.err conftest.$ac_objext \
7862 conftest$ac_exeext conftest.$ac_ext
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7865 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7866 if test $emacs_cv_var___after_morecore_hook = no; then
7867 doug_lea_malloc=no
7871 system_malloc=no
7872 case "$opsys" in
7873 ## darwin ld insists on the use of malloc routines in the System framework.
7874 darwin|sol2-10) system_malloc=yes ;;
7875 esac
7877 if test "${system_malloc}" = "yes"; then
7879 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
7881 GNU_MALLOC=no
7882 GNU_MALLOC_reason="
7883 (The GNU allocators don't work with this system configuration.)"
7884 GMALLOC_OBJ=
7885 VMLIMIT_OBJ=
7886 else
7887 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
7888 VMLIMIT_OBJ=vm-limit.o
7893 if test "$doug_lea_malloc" = "yes" ; then
7894 if test "$GNU_MALLOC" = yes ; then
7895 GNU_MALLOC_reason="
7896 (Using Doug Lea's new malloc from the GNU C Library.)"
7899 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7902 ## Use mmap directly for allocating larger buffers.
7903 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
7904 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
7905 ## Does the AC_FUNC_MMAP test below make this check unecessary?
7906 case "$opsys" in
7907 gnu*) REL_ALLOC=no ;;
7908 esac
7911 if test x"${REL_ALLOC}" = x; then
7912 REL_ALLOC=${GNU_MALLOC}
7915 use_mmap_for_buffers=no
7916 case "$opsys" in
7917 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
7918 esac
7923 for ac_header in $ac_header_list
7924 do :
7925 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7926 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7928 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7929 cat >>confdefs.h <<_ACEOF
7930 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7931 _ACEOF
7935 done
7944 for ac_func in getpagesize
7945 do :
7946 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7947 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7948 cat >>confdefs.h <<_ACEOF
7949 #define HAVE_GETPAGESIZE 1
7950 _ACEOF
7953 done
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7956 $as_echo_n "checking for working mmap... " >&6; }
7957 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7958 $as_echo_n "(cached) " >&6
7959 else
7960 if test "$cross_compiling" = yes; then :
7961 ac_cv_func_mmap_fixed_mapped=no
7962 else
7963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964 /* end confdefs.h. */
7965 $ac_includes_default
7966 /* malloc might have been renamed as rpl_malloc. */
7967 #undef malloc
7969 /* Thanks to Mike Haertel and Jim Avera for this test.
7970 Here is a matrix of mmap possibilities:
7971 mmap private not fixed
7972 mmap private fixed at somewhere currently unmapped
7973 mmap private fixed at somewhere already mapped
7974 mmap shared not fixed
7975 mmap shared fixed at somewhere currently unmapped
7976 mmap shared fixed at somewhere already mapped
7977 For private mappings, we should verify that changes cannot be read()
7978 back from the file, nor mmap's back from the file at a different
7979 address. (There have been systems where private was not correctly
7980 implemented like the infamous i386 svr4.0, and systems where the
7981 VM page cache was not coherent with the file system buffer cache
7982 like early versions of FreeBSD and possibly contemporary NetBSD.)
7983 For shared mappings, we should conversely verify that changes get
7984 propagated back to all the places they're supposed to be.
7986 Grep wants private fixed already mapped.
7987 The main things grep needs to know about mmap are:
7988 * does it exist and is it safe to write into the mmap'd area
7989 * how to use it (BSD variants) */
7991 #include <fcntl.h>
7992 #include <sys/mman.h>
7994 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7995 char *malloc ();
7996 #endif
7998 /* This mess was copied from the GNU getpagesize.h. */
7999 #ifndef HAVE_GETPAGESIZE
8000 # ifdef _SC_PAGESIZE
8001 # define getpagesize() sysconf(_SC_PAGESIZE)
8002 # else /* no _SC_PAGESIZE */
8003 # ifdef HAVE_SYS_PARAM_H
8004 # include <sys/param.h>
8005 # ifdef EXEC_PAGESIZE
8006 # define getpagesize() EXEC_PAGESIZE
8007 # else /* no EXEC_PAGESIZE */
8008 # ifdef NBPG
8009 # define getpagesize() NBPG * CLSIZE
8010 # ifndef CLSIZE
8011 # define CLSIZE 1
8012 # endif /* no CLSIZE */
8013 # else /* no NBPG */
8014 # ifdef NBPC
8015 # define getpagesize() NBPC
8016 # else /* no NBPC */
8017 # ifdef PAGESIZE
8018 # define getpagesize() PAGESIZE
8019 # endif /* PAGESIZE */
8020 # endif /* no NBPC */
8021 # endif /* no NBPG */
8022 # endif /* no EXEC_PAGESIZE */
8023 # else /* no HAVE_SYS_PARAM_H */
8024 # define getpagesize() 8192 /* punt totally */
8025 # endif /* no HAVE_SYS_PARAM_H */
8026 # endif /* no _SC_PAGESIZE */
8028 #endif /* no HAVE_GETPAGESIZE */
8031 main ()
8033 char *data, *data2, *data3;
8034 const char *cdata2;
8035 int i, pagesize;
8036 int fd, fd2;
8038 pagesize = getpagesize ();
8040 /* First, make a file with some known garbage in it. */
8041 data = (char *) malloc (pagesize);
8042 if (!data)
8043 return 1;
8044 for (i = 0; i < pagesize; ++i)
8045 *(data + i) = rand ();
8046 umask (0);
8047 fd = creat ("conftest.mmap", 0600);
8048 if (fd < 0)
8049 return 2;
8050 if (write (fd, data, pagesize) != pagesize)
8051 return 3;
8052 close (fd);
8054 /* Next, check that the tail of a page is zero-filled. File must have
8055 non-zero length, otherwise we risk SIGBUS for entire page. */
8056 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8057 if (fd2 < 0)
8058 return 4;
8059 cdata2 = "";
8060 if (write (fd2, cdata2, 1) != 1)
8061 return 5;
8062 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8063 if (data2 == MAP_FAILED)
8064 return 6;
8065 for (i = 0; i < pagesize; ++i)
8066 if (*(data2 + i))
8067 return 7;
8068 close (fd2);
8069 if (munmap (data2, pagesize))
8070 return 8;
8072 /* Next, try to mmap the file at a fixed address which already has
8073 something else allocated at it. If we can, also make sure that
8074 we see the same garbage. */
8075 fd = open ("conftest.mmap", O_RDWR);
8076 if (fd < 0)
8077 return 9;
8078 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8079 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8080 return 10;
8081 for (i = 0; i < pagesize; ++i)
8082 if (*(data + i) != *(data2 + i))
8083 return 11;
8085 /* Finally, make sure that changes to the mapped area do not
8086 percolate back to the file as seen by read(). (This is a bug on
8087 some variants of i386 svr4.0.) */
8088 for (i = 0; i < pagesize; ++i)
8089 *(data2 + i) = *(data2 + i) + 1;
8090 data3 = (char *) malloc (pagesize);
8091 if (!data3)
8092 return 12;
8093 if (read (fd, data3, pagesize) != pagesize)
8094 return 13;
8095 for (i = 0; i < pagesize; ++i)
8096 if (*(data + i) != *(data3 + i))
8097 return 14;
8098 close (fd);
8099 return 0;
8101 _ACEOF
8102 if ac_fn_c_try_run "$LINENO"; then :
8103 ac_cv_func_mmap_fixed_mapped=yes
8104 else
8105 ac_cv_func_mmap_fixed_mapped=no
8107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8108 conftest.$ac_objext conftest.beam conftest.$ac_ext
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8113 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8114 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8116 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8119 rm -f conftest.mmap conftest.txt
8121 if test $use_mmap_for_buffers = yes; then
8123 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
8125 REL_ALLOC=no
8128 LIBS="$LIBS_SYSTEM $LIBS"
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8131 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8132 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
8133 $as_echo_n "(cached) " >&6
8134 else
8135 ac_check_lib_save_LIBS=$LIBS
8136 LIBS="-ldnet $LIBS"
8137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8138 /* end confdefs.h. */
8140 /* Override any GCC internal prototype to avoid an error.
8141 Use char because int might match the return type of a GCC
8142 builtin and then its argument prototype would still apply. */
8143 #ifdef __cplusplus
8144 extern "C"
8145 #endif
8146 char dnet_ntoa ();
8148 main ()
8150 return dnet_ntoa ();
8152 return 0;
8154 _ACEOF
8155 if ac_fn_c_try_link "$LINENO"; then :
8156 ac_cv_lib_dnet_dnet_ntoa=yes
8157 else
8158 ac_cv_lib_dnet_dnet_ntoa=no
8160 rm -f core conftest.err conftest.$ac_objext \
8161 conftest$ac_exeext conftest.$ac_ext
8162 LIBS=$ac_check_lib_save_LIBS
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8165 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8166 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
8167 cat >>confdefs.h <<_ACEOF
8168 #define HAVE_LIBDNET 1
8169 _ACEOF
8171 LIBS="-ldnet $LIBS"
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
8177 $as_echo_n "checking for main in -lXbsd... " >&6; }
8178 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
8179 $as_echo_n "(cached) " >&6
8180 else
8181 ac_check_lib_save_LIBS=$LIBS
8182 LIBS="-lXbsd $LIBS"
8183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184 /* end confdefs.h. */
8188 main ()
8190 return main ();
8192 return 0;
8194 _ACEOF
8195 if ac_fn_c_try_link "$LINENO"; then :
8196 ac_cv_lib_Xbsd_main=yes
8197 else
8198 ac_cv_lib_Xbsd_main=no
8200 rm -f core conftest.err conftest.$ac_objext \
8201 conftest$ac_exeext conftest.$ac_ext
8202 LIBS=$ac_check_lib_save_LIBS
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
8205 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
8206 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
8207 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
8212 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
8213 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
8214 $as_echo_n "(cached) " >&6
8215 else
8216 ac_check_lib_save_LIBS=$LIBS
8217 LIBS="-lpthreads $LIBS"
8218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h. */
8221 /* Override any GCC internal prototype to avoid an error.
8222 Use char because int might match the return type of a GCC
8223 builtin and then its argument prototype would still apply. */
8224 #ifdef __cplusplus
8225 extern "C"
8226 #endif
8227 char cma_open ();
8229 main ()
8231 return cma_open ();
8233 return 0;
8235 _ACEOF
8236 if ac_fn_c_try_link "$LINENO"; then :
8237 ac_cv_lib_pthreads_cma_open=yes
8238 else
8239 ac_cv_lib_pthreads_cma_open=no
8241 rm -f core conftest.err conftest.$ac_objext \
8242 conftest$ac_exeext conftest.$ac_ext
8243 LIBS=$ac_check_lib_save_LIBS
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
8246 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
8247 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
8248 cat >>confdefs.h <<_ACEOF
8249 #define HAVE_LIBPTHREADS 1
8250 _ACEOF
8252 LIBS="-lpthreads $LIBS"
8257 ## Note: when using cpp in s/aix4.2.h, this definition depended on
8258 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
8259 ## the system file was sourced. Hence the value of LIBS_SYSTEM
8260 ## added to LIBS in configure would never contain the pthreads part,
8261 ## but the value used in Makefiles might. FIXME?
8263 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
8264 ## be harmless on older versions of X where it happens to exist.
8265 test "$opsys" = "aix4-2" && \
8266 test $ac_cv_lib_pthreads_cma_open = yes && \
8267 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
8270 case ${host_os} in
8271 aix*)
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
8273 $as_echo_n "checking for -bbigtoc option... " >&6; }
8274 if test "${gdb_cv_bigtoc+set}" = set; then :
8275 $as_echo_n "(cached) " >&6
8276 else
8278 case $GCC in
8279 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
8280 *) gdb_cv_bigtoc=-bbigtoc ;;
8281 esac
8283 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
8284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8285 /* end confdefs.h. */
8288 main ()
8290 int i;
8292 return 0;
8294 _ACEOF
8295 if ac_fn_c_try_link "$LINENO"; then :
8297 else
8298 gdb_cv_bigtoc=
8300 rm -f core conftest.err conftest.$ac_objext \
8301 conftest$ac_exeext conftest.$ac_ext
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
8305 $as_echo "$gdb_cv_bigtoc" >&6; }
8307 esac
8309 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8310 # used for the tests that follow. We set them back to REAL_CFLAGS and
8311 # REAL_CPPFLAGS later on.
8313 REAL_CFLAGS="$CFLAGS"
8314 REAL_CPPFLAGS="$CPPFLAGS"
8316 if test "${HAVE_X11}" = "yes"; then
8317 DEFS="$C_SWITCH_X_SITE $DEFS"
8318 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
8319 LIBS="-lX11 $LIBS"
8320 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
8321 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
8323 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8324 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8325 # but it's more convenient here to set LD_RUN_PATH
8326 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8327 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8328 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8329 export LD_RUN_PATH
8332 if test "${opsys}" = "gnu-linux"; then
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
8334 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h. */
8339 main ()
8341 XOpenDisplay ("foo");
8343 return 0;
8345 _ACEOF
8346 if ac_fn_c_try_link "$LINENO"; then :
8347 xlinux_first_failure=no
8348 else
8349 xlinux_first_failure=yes
8351 rm -f core conftest.err conftest.$ac_objext \
8352 conftest$ac_exeext conftest.$ac_ext
8353 if test "${xlinux_first_failure}" = "yes"; then
8354 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
8355 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
8356 OLD_CPPFLAGS="$CPPFLAGS"
8357 OLD_LIBS="$LIBS"
8358 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
8359 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
8360 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
8361 LIBS="$LIBS -b i486-linuxaout"
8362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363 /* end confdefs.h. */
8366 main ()
8368 XOpenDisplay ("foo");
8370 return 0;
8372 _ACEOF
8373 if ac_fn_c_try_link "$LINENO"; then :
8374 xlinux_second_failure=no
8375 else
8376 xlinux_second_failure=yes
8378 rm -f core conftest.err conftest.$ac_objext \
8379 conftest$ac_exeext conftest.$ac_ext
8380 if test "${xlinux_second_failure}" = "yes"; then
8381 # If we get the same failure with -b, there is no use adding -b.
8382 # So take it out. This plays safe.
8383 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
8384 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
8385 CPPFLAGS="$OLD_CPPFLAGS"
8386 LIBS="$OLD_LIBS"
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8389 else
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8391 $as_echo "yes" >&6; }
8393 else
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 $as_echo "no" >&6; }
8399 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8400 # header files included from there.
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8402 $as_echo_n "checking for Xkb... " >&6; }
8403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8404 /* end confdefs.h. */
8405 #include <X11/Xlib.h>
8406 #include <X11/XKBlib.h>
8408 main ()
8410 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8412 return 0;
8414 _ACEOF
8415 if ac_fn_c_try_link "$LINENO"; then :
8416 emacs_xkb=yes
8417 else
8418 emacs_xkb=no
8420 rm -f core conftest.err conftest.$ac_objext \
8421 conftest$ac_exeext conftest.$ac_ext
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8423 $as_echo "$emacs_xkb" >&6; }
8424 if test $emacs_xkb = yes; then
8426 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8430 for ac_func in XrmSetDatabase XScreenResourceString \
8431 XScreenNumberOfScreen XSetWMProtocols
8432 do :
8433 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8434 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8435 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8436 cat >>confdefs.h <<_ACEOF
8437 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8438 _ACEOF
8441 done
8445 if test "${window_system}" = "x11"; then
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8447 $as_echo_n "checking X11 version 6... " >&6; }
8448 if test "${emacs_cv_x11_version_6+set}" = set; then :
8449 $as_echo_n "(cached) " >&6
8450 else
8451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452 /* end confdefs.h. */
8453 #include <X11/Xlib.h>
8455 main ()
8457 #if XlibSpecificationRelease < 6
8458 fail;
8459 #endif
8462 return 0;
8464 _ACEOF
8465 if ac_fn_c_try_link "$LINENO"; then :
8466 emacs_cv_x11_version_6=yes
8467 else
8468 emacs_cv_x11_version_6=no
8470 rm -f core conftest.err conftest.$ac_objext \
8471 conftest$ac_exeext conftest.$ac_ext
8474 if test $emacs_cv_x11_version_6 = yes; then
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8476 $as_echo "6 or newer" >&6; }
8478 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8481 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
8483 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
8484 ## XIM support.
8485 case "$opsys" in
8486 sol2-*) : ;;
8488 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
8491 esac
8492 else
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8494 $as_echo "before 6" >&6; }
8499 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8500 HAVE_RSVG=no
8501 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
8502 if test "${with_rsvg}" != "no"; then
8503 RSVG_REQUIRED=2.11.0
8504 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
8507 succeeded=no
8509 # Extract the first word of "pkg-config", so it can be a program name with args.
8510 set dummy pkg-config; ac_word=$2
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8512 $as_echo_n "checking for $ac_word... " >&6; }
8513 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8514 $as_echo_n "(cached) " >&6
8515 else
8516 case $PKG_CONFIG in
8517 [\\/]* | ?:[\\/]*)
8518 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8522 for as_dir in $PATH
8524 IFS=$as_save_IFS
8525 test -z "$as_dir" && as_dir=.
8526 for ac_exec_ext in '' $ac_executable_extensions; do
8527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8528 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8530 break 2
8532 done
8533 done
8534 IFS=$as_save_IFS
8536 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8538 esac
8540 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8541 if test -n "$PKG_CONFIG"; then
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8543 $as_echo "$PKG_CONFIG" >&6; }
8544 else
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8546 $as_echo "no" >&6; }
8551 if test "$PKG_CONFIG" = "no" ; then
8553 else
8554 PKG_CONFIG_MIN_VERSION=0.9.0
8555 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8557 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8559 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8561 $as_echo "yes" >&6; }
8562 succeeded=yes
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8565 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8566 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8568 $as_echo "$RSVG_CFLAGS" >&6; }
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8571 $as_echo_n "checking RSVG_LIBS... " >&6; }
8572 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8574 $as_echo "$RSVG_LIBS" >&6; }
8575 else
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8577 $as_echo "no" >&6; }
8578 RSVG_CFLAGS=""
8579 RSVG_LIBS=""
8580 ## If we have a custom action on failure, don't print errors, but
8581 ## do set a variable so people can do so.
8582 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8588 else
8589 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8590 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8594 if test $succeeded = yes; then
8596 else
8603 if test ".${RSVG_CFLAGS}" != "."; then
8604 HAVE_RSVG=yes
8606 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8608 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8609 LIBS="$RSVG_LIBS $LIBS"
8615 HAVE_GTK=no
8616 if test "${with_gtk3}" = "yes"; then
8617 GLIB_REQUIRED=2.6
8618 GTK_REQUIRED=2.90
8619 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8622 succeeded=no
8624 # Extract the first word of "pkg-config", so it can be a program name with args.
8625 set dummy pkg-config; ac_word=$2
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8627 $as_echo_n "checking for $ac_word... " >&6; }
8628 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8629 $as_echo_n "(cached) " >&6
8630 else
8631 case $PKG_CONFIG in
8632 [\\/]* | ?:[\\/]*)
8633 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8637 for as_dir in $PATH
8639 IFS=$as_save_IFS
8640 test -z "$as_dir" && as_dir=.
8641 for ac_exec_ext in '' $ac_executable_extensions; do
8642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8643 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8645 break 2
8647 done
8648 done
8649 IFS=$as_save_IFS
8651 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8653 esac
8655 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8656 if test -n "$PKG_CONFIG"; then
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8658 $as_echo "$PKG_CONFIG" >&6; }
8659 else
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8661 $as_echo "no" >&6; }
8666 if test "$PKG_CONFIG" = "no" ; then
8667 pkg_check_gtk=no
8668 else
8669 PKG_CONFIG_MIN_VERSION=0.9.0
8670 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8672 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8674 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8676 $as_echo "yes" >&6; }
8677 succeeded=yes
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8680 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8681 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8683 $as_echo "$GTK_CFLAGS" >&6; }
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8686 $as_echo_n "checking GTK_LIBS... " >&6; }
8687 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8689 $as_echo "$GTK_LIBS" >&6; }
8690 else
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8692 $as_echo "no" >&6; }
8693 GTK_CFLAGS=""
8694 GTK_LIBS=""
8695 ## If we have a custom action on failure, don't print errors, but
8696 ## do set a variable so people can do so.
8697 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8703 else
8704 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8705 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8709 if test $succeeded = yes; then
8710 pkg_check_gtk=yes
8711 else
8712 pkg_check_gtk=no
8715 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8716 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
8720 if test "$pkg_check_gtk" != "yes"; then
8721 HAVE_GTK=no
8722 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8723 GLIB_REQUIRED=2.6
8724 GTK_REQUIRED=2.6
8725 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8728 succeeded=no
8730 # Extract the first word of "pkg-config", so it can be a program name with args.
8731 set dummy pkg-config; ac_word=$2
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8733 $as_echo_n "checking for $ac_word... " >&6; }
8734 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8735 $as_echo_n "(cached) " >&6
8736 else
8737 case $PKG_CONFIG in
8738 [\\/]* | ?:[\\/]*)
8739 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743 for as_dir in $PATH
8745 IFS=$as_save_IFS
8746 test -z "$as_dir" && as_dir=.
8747 for ac_exec_ext in '' $ac_executable_extensions; do
8748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8749 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8751 break 2
8753 done
8754 done
8755 IFS=$as_save_IFS
8757 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8759 esac
8761 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8762 if test -n "$PKG_CONFIG"; then
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8764 $as_echo "$PKG_CONFIG" >&6; }
8765 else
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767 $as_echo "no" >&6; }
8772 if test "$PKG_CONFIG" = "no" ; then
8773 pkg_check_gtk=no
8774 else
8775 PKG_CONFIG_MIN_VERSION=0.9.0
8776 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8778 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8780 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8782 $as_echo "yes" >&6; }
8783 succeeded=yes
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8786 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8787 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8789 $as_echo "$GTK_CFLAGS" >&6; }
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8792 $as_echo_n "checking GTK_LIBS... " >&6; }
8793 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8795 $as_echo "$GTK_LIBS" >&6; }
8796 else
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8798 $as_echo "no" >&6; }
8799 GTK_CFLAGS=""
8800 GTK_LIBS=""
8801 ## If we have a custom action on failure, don't print errors, but
8802 ## do set a variable so people can do so.
8803 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8809 else
8810 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8811 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8815 if test $succeeded = yes; then
8816 pkg_check_gtk=yes
8817 else
8818 pkg_check_gtk=no
8821 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8822 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
8827 GTK_OBJ=
8828 if test x"$pkg_check_gtk" = xyes; then
8832 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8833 CFLAGS="$CFLAGS $GTK_CFLAGS"
8834 LIBS="$GTK_LIBS $LIBS"
8835 GTK_COMPILES=no
8836 for ac_func in gtk_main
8837 do :
8838 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8839 if test "x$ac_cv_func_gtk_main" = x""yes; then :
8840 cat >>confdefs.h <<_ACEOF
8841 #define HAVE_GTK_MAIN 1
8842 _ACEOF
8843 GTK_COMPILES=yes
8845 done
8847 if test "${GTK_COMPILES}" != "yes"; then
8848 if test "$USE_X_TOOLKIT" != "maybe"; then
8849 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8851 else
8852 HAVE_GTK=yes
8854 $as_echo "#define USE_GTK 1" >>confdefs.h
8856 GTK_OBJ=gtkutil.o
8857 USE_X_TOOLKIT=none
8858 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
8860 else
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8862 closing open displays. This is no problem if you just use
8863 one display, but if you use more than one and close one of them
8864 Emacs may crash." >&5
8865 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8866 closing open displays. This is no problem if you just use
8867 one display, but if you use more than one and close one of them
8868 Emacs may crash." >&2;}
8869 sleep 3
8877 if test "${HAVE_GTK}" = "yes"; then
8879 if test "$with_toolkit_scroll_bars" != no; then
8880 with_toolkit_scroll_bars=yes
8883 HAVE_GTK_FILE_SELECTION=no
8884 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
8885 #include <gtk/gtk.h>
8887 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
8888 HAVE_GTK_FILE_SELECTION=yes
8889 else
8890 HAVE_GTK_FILE_SELECTION=no
8893 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
8894 for ac_func in gtk_file_selection_new
8895 do :
8896 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
8897 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
8898 cat >>confdefs.h <<_ACEOF
8899 #define HAVE_GTK_FILE_SELECTION_NEW 1
8900 _ACEOF
8903 done
8907 HAVE_GTK_AND_PTHREAD=no
8908 for ac_header in pthread.h
8909 do :
8910 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8911 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8912 cat >>confdefs.h <<_ACEOF
8913 #define HAVE_PTHREAD_H 1
8914 _ACEOF
8918 done
8920 if test "$ac_cv_header_pthread_h"; then
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
8922 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
8923 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
8924 $as_echo_n "(cached) " >&6
8925 else
8926 ac_check_lib_save_LIBS=$LIBS
8927 LIBS="-lpthread $LIBS"
8928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929 /* end confdefs.h. */
8931 /* Override any GCC internal prototype to avoid an error.
8932 Use char because int might match the return type of a GCC
8933 builtin and then its argument prototype would still apply. */
8934 #ifdef __cplusplus
8935 extern "C"
8936 #endif
8937 char pthread_self ();
8939 main ()
8941 return pthread_self ();
8943 return 0;
8945 _ACEOF
8946 if ac_fn_c_try_link "$LINENO"; then :
8947 ac_cv_lib_pthread_pthread_self=yes
8948 else
8949 ac_cv_lib_pthread_pthread_self=no
8951 rm -f core conftest.err conftest.$ac_objext \
8952 conftest$ac_exeext conftest.$ac_ext
8953 LIBS=$ac_check_lib_save_LIBS
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
8956 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
8957 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
8958 HAVE_GTK_AND_PTHREAD=yes
8962 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
8963 case "${canonical}" in
8964 *-hpux*) ;;
8965 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
8966 esac
8968 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
8972 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
8973 gtk_dialog_get_action_area gtk_widget_get_sensitive \
8974 gtk_widget_get_mapped gtk_adjustment_get_page_size \
8975 gtk_orientable_set_orientation
8976 do :
8977 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8978 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8979 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8980 cat >>confdefs.h <<_ACEOF
8981 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8982 _ACEOF
8985 done
8990 HAVE_DBUS=no
8991 DBUS_OBJ=
8992 if test "${with_dbus}" = "yes"; then
8994 succeeded=no
8996 # Extract the first word of "pkg-config", so it can be a program name with args.
8997 set dummy pkg-config; ac_word=$2
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8999 $as_echo_n "checking for $ac_word... " >&6; }
9000 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9001 $as_echo_n "(cached) " >&6
9002 else
9003 case $PKG_CONFIG in
9004 [\\/]* | ?:[\\/]*)
9005 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9009 for as_dir in $PATH
9011 IFS=$as_save_IFS
9012 test -z "$as_dir" && as_dir=.
9013 for ac_exec_ext in '' $ac_executable_extensions; do
9014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9015 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9017 break 2
9019 done
9020 done
9021 IFS=$as_save_IFS
9023 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9025 esac
9027 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9028 if test -n "$PKG_CONFIG"; then
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9030 $as_echo "$PKG_CONFIG" >&6; }
9031 else
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9033 $as_echo "no" >&6; }
9038 if test "$PKG_CONFIG" = "no" ; then
9039 HAVE_DBUS=no
9040 else
9041 PKG_CONFIG_MIN_VERSION=0.9.0
9042 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
9044 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
9046 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9048 $as_echo "yes" >&6; }
9049 succeeded=yes
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
9052 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
9053 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
9055 $as_echo "$DBUS_CFLAGS" >&6; }
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
9058 $as_echo_n "checking DBUS_LIBS... " >&6; }
9059 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
9061 $as_echo "$DBUS_LIBS" >&6; }
9062 else
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9064 $as_echo "no" >&6; }
9065 DBUS_CFLAGS=""
9066 DBUS_LIBS=""
9067 ## If we have a custom action on failure, don't print errors, but
9068 ## do set a variable so people can do so.
9069 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
9075 else
9076 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9077 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9081 if test $succeeded = yes; then
9082 HAVE_DBUS=yes
9083 else
9084 HAVE_DBUS=no
9087 if test "$HAVE_DBUS" = yes; then
9088 LIBS="$LIBS $DBUS_LIBS"
9090 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
9092 for ac_func in dbus_watch_get_unix_fd
9093 do :
9094 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
9095 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
9096 cat >>confdefs.h <<_ACEOF
9097 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
9098 _ACEOF
9101 done
9103 DBUS_OBJ=dbusbind.o
9108 HAVE_GCONF=no
9109 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
9111 succeeded=no
9113 # Extract the first word of "pkg-config", so it can be a program name with args.
9114 set dummy pkg-config; ac_word=$2
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9116 $as_echo_n "checking for $ac_word... " >&6; }
9117 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9118 $as_echo_n "(cached) " >&6
9119 else
9120 case $PKG_CONFIG in
9121 [\\/]* | ?:[\\/]*)
9122 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9126 for as_dir in $PATH
9128 IFS=$as_save_IFS
9129 test -z "$as_dir" && as_dir=.
9130 for ac_exec_ext in '' $ac_executable_extensions; do
9131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9132 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9134 break 2
9136 done
9137 done
9138 IFS=$as_save_IFS
9140 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9142 esac
9144 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9145 if test -n "$PKG_CONFIG"; then
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9147 $as_echo "$PKG_CONFIG" >&6; }
9148 else
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9150 $as_echo "no" >&6; }
9155 if test "$PKG_CONFIG" = "no" ; then
9156 HAVE_GCONF=no
9157 else
9158 PKG_CONFIG_MIN_VERSION=0.9.0
9159 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
9161 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
9163 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9165 $as_echo "yes" >&6; }
9166 succeeded=yes
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
9169 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
9170 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
9172 $as_echo "$GCONF_CFLAGS" >&6; }
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
9175 $as_echo_n "checking GCONF_LIBS... " >&6; }
9176 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
9178 $as_echo "$GCONF_LIBS" >&6; }
9179 else
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 $as_echo "no" >&6; }
9182 GCONF_CFLAGS=""
9183 GCONF_LIBS=""
9184 ## If we have a custom action on failure, don't print errors, but
9185 ## do set a variable so people can do so.
9186 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
9192 else
9193 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9194 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9198 if test $succeeded = yes; then
9199 HAVE_GCONF=yes
9200 else
9201 HAVE_GCONF=no
9204 if test "$HAVE_GCONF" = yes; then
9206 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
9211 HAVE_LIBSELINUX=no
9212 LIBSELINUX_LIBS=
9213 if test "${with_selinux}" = "yes"; then
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
9215 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
9216 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
9217 $as_echo_n "(cached) " >&6
9218 else
9219 ac_check_lib_save_LIBS=$LIBS
9220 LIBS="-lselinux $LIBS"
9221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9222 /* end confdefs.h. */
9224 /* Override any GCC internal prototype to avoid an error.
9225 Use char because int might match the return type of a GCC
9226 builtin and then its argument prototype would still apply. */
9227 #ifdef __cplusplus
9228 extern "C"
9229 #endif
9230 char lgetfilecon ();
9232 main ()
9234 return lgetfilecon ();
9236 return 0;
9238 _ACEOF
9239 if ac_fn_c_try_link "$LINENO"; then :
9240 ac_cv_lib_selinux_lgetfilecon=yes
9241 else
9242 ac_cv_lib_selinux_lgetfilecon=no
9244 rm -f core conftest.err conftest.$ac_objext \
9245 conftest$ac_exeext conftest.$ac_ext
9246 LIBS=$ac_check_lib_save_LIBS
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
9249 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
9250 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
9251 HAVE_LIBSELINUX=yes
9252 else
9253 HAVE_LIBSELINUX=no
9256 if test "$HAVE_LIBSELINUX" = yes; then
9258 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
9260 LIBSELINUX_LIBS=-lselinux
9265 HAVE_XAW3D=no
9266 LUCID_LIBW=
9267 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
9268 if test "$with_xaw3d" != no; then
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
9270 $as_echo_n "checking for xaw3d... " >&6; }
9271 if test "${emacs_cv_xaw3d+set}" = set; then :
9272 $as_echo_n "(cached) " >&6
9273 else
9274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275 /* end confdefs.h. */
9277 #include <X11/Intrinsic.h>
9278 #include <X11/Xaw3d/Simple.h>
9280 main ()
9284 return 0;
9286 _ACEOF
9287 if ac_fn_c_try_link "$LINENO"; then :
9288 emacs_cv_xaw3d=yes
9289 else
9290 emacs_cv_xaw3d=no
9292 rm -f core conftest.err conftest.$ac_objext \
9293 conftest$ac_exeext conftest.$ac_ext
9296 else
9297 emacs_cv_xaw3d=no
9299 if test $emacs_cv_xaw3d = yes; then
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9301 $as_echo "yes; using Lucid toolkit" >&6; }
9302 USE_X_TOOLKIT=LUCID
9303 HAVE_XAW3D=yes
9304 LUCID_LIBW=-lXaw3d
9306 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
9308 else
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9310 $as_echo "no" >&6; }
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
9312 $as_echo_n "checking for libXaw... " >&6; }
9313 if test "${emacs_cv_xaw+set}" = set; then :
9314 $as_echo_n "(cached) " >&6
9315 else
9316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9317 /* end confdefs.h. */
9319 #include <X11/Intrinsic.h>
9320 #include <X11/Xaw/Simple.h>
9322 main ()
9326 return 0;
9328 _ACEOF
9329 if ac_fn_c_try_link "$LINENO"; then :
9330 emacs_cv_xaw=yes
9331 else
9332 emacs_cv_xaw=no
9334 rm -f core conftest.err conftest.$ac_objext \
9335 conftest$ac_exeext conftest.$ac_ext
9338 if test $emacs_cv_xaw = yes; then
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9340 $as_echo "yes; using Lucid toolkit" >&6; }
9341 USE_X_TOOLKIT=LUCID
9342 LUCID_LIBW=-lXaw
9343 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
9344 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
9345 else
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
9347 $as_echo "no; do not use toolkit by default" >&6; }
9348 USE_X_TOOLKIT=none
9353 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
9355 LIBXTR6=
9356 if test "${USE_X_TOOLKIT}" != "none"; then
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
9358 $as_echo_n "checking X11 toolkit version... " >&6; }
9359 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
9360 $as_echo_n "(cached) " >&6
9361 else
9362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9363 /* end confdefs.h. */
9364 #include <X11/Intrinsic.h>
9366 main ()
9368 #if XtSpecificationRelease < 6
9369 fail;
9370 #endif
9373 return 0;
9375 _ACEOF
9376 if ac_fn_c_try_link "$LINENO"; then :
9377 emacs_cv_x11_toolkit_version_6=yes
9378 else
9379 emacs_cv_x11_toolkit_version_6=no
9381 rm -f core conftest.err conftest.$ac_objext \
9382 conftest$ac_exeext conftest.$ac_ext
9385 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
9386 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9388 $as_echo "6 or newer" >&6; }
9390 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
9392 LIBXTR6="-lSM -lICE"
9393 case "$opsys" in
9394 ## Use libw.a along with X11R6 Xt.
9395 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
9396 esac
9397 else
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9399 $as_echo "before 6" >&6; }
9402 OLDLIBS="$LIBS"
9403 if test x$HAVE_X11XTR6 = xyes; then
9404 LIBS="-lXt -lSM -lICE $LIBS"
9405 else
9406 LIBS="-lXt $LIBS"
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9409 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9410 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
9411 $as_echo_n "(cached) " >&6
9412 else
9413 ac_check_lib_save_LIBS=$LIBS
9414 LIBS="-lXmu $LIBS"
9415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9416 /* end confdefs.h. */
9418 /* Override any GCC internal prototype to avoid an error.
9419 Use char because int might match the return type of a GCC
9420 builtin and then its argument prototype would still apply. */
9421 #ifdef __cplusplus
9422 extern "C"
9423 #endif
9424 char XmuConvertStandardSelection ();
9426 main ()
9428 return XmuConvertStandardSelection ();
9430 return 0;
9432 _ACEOF
9433 if ac_fn_c_try_link "$LINENO"; then :
9434 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
9435 else
9436 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
9438 rm -f core conftest.err conftest.$ac_objext \
9439 conftest$ac_exeext conftest.$ac_ext
9440 LIBS=$ac_check_lib_save_LIBS
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9443 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9444 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
9445 cat >>confdefs.h <<_ACEOF
9446 #define HAVE_LIBXMU 1
9447 _ACEOF
9449 LIBS="-lXmu $LIBS"
9453 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
9457 LIBXMU=-lXmu
9458 case "$machine" in
9459 ## These machines don't supply Xmu.
9460 hpux* | aix4-2 )
9461 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
9463 esac
9466 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9467 if test "${HAVE_X11}" = "yes"; then
9468 if test "${USE_X_TOOLKIT}" != "none"; then
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9470 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9471 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
9472 $as_echo_n "(cached) " >&6
9473 else
9474 ac_check_lib_save_LIBS=$LIBS
9475 LIBS="-lXext $LIBS"
9476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477 /* end confdefs.h. */
9479 /* Override any GCC internal prototype to avoid an error.
9480 Use char because int might match the return type of a GCC
9481 builtin and then its argument prototype would still apply. */
9482 #ifdef __cplusplus
9483 extern "C"
9484 #endif
9485 char XShapeQueryExtension ();
9487 main ()
9489 return XShapeQueryExtension ();
9491 return 0;
9493 _ACEOF
9494 if ac_fn_c_try_link "$LINENO"; then :
9495 ac_cv_lib_Xext_XShapeQueryExtension=yes
9496 else
9497 ac_cv_lib_Xext_XShapeQueryExtension=no
9499 rm -f core conftest.err conftest.$ac_objext \
9500 conftest$ac_exeext conftest.$ac_ext
9501 LIBS=$ac_check_lib_save_LIBS
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9504 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9505 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
9506 cat >>confdefs.h <<_ACEOF
9507 #define HAVE_LIBXEXT 1
9508 _ACEOF
9510 LIBS="-lXext $LIBS"
9517 LIBXP=
9518 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9520 $as_echo_n "checking for Motif version 2.1... " >&6; }
9521 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
9522 $as_echo_n "(cached) " >&6
9523 else
9524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9525 /* end confdefs.h. */
9526 #include <Xm/Xm.h>
9528 main ()
9530 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9531 int x = 5;
9532 #else
9533 Motif version prior to 2.1.
9534 #endif
9536 return 0;
9538 _ACEOF
9539 if ac_fn_c_try_compile "$LINENO"; then :
9540 emacs_cv_motif_version_2_1=yes
9541 else
9542 emacs_cv_motif_version_2_1=no
9544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9547 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9548 if test $emacs_cv_motif_version_2_1 = yes; then
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9550 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9551 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
9552 $as_echo_n "(cached) " >&6
9553 else
9554 ac_check_lib_save_LIBS=$LIBS
9555 LIBS="-lXp $LIBS"
9556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9557 /* end confdefs.h. */
9559 /* Override any GCC internal prototype to avoid an error.
9560 Use char because int might match the return type of a GCC
9561 builtin and then its argument prototype would still apply. */
9562 #ifdef __cplusplus
9563 extern "C"
9564 #endif
9565 char XpCreateContext ();
9567 main ()
9569 return XpCreateContext ();
9571 return 0;
9573 _ACEOF
9574 if ac_fn_c_try_link "$LINENO"; then :
9575 ac_cv_lib_Xp_XpCreateContext=yes
9576 else
9577 ac_cv_lib_Xp_XpCreateContext=no
9579 rm -f core conftest.err conftest.$ac_objext \
9580 conftest$ac_exeext conftest.$ac_ext
9581 LIBS=$ac_check_lib_save_LIBS
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9584 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9585 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
9586 LIBXP=-lXp
9589 else
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9591 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9592 if test "${emacs_cv_lesstif+set}" = set; then :
9593 $as_echo_n "(cached) " >&6
9594 else
9595 # We put this in CFLAGS temporarily to precede other -I options
9596 # that might be in CFLAGS temporarily.
9597 # We put this in CPPFLAGS where it precedes the other -I options.
9598 OLD_CPPFLAGS=$CPPFLAGS
9599 OLD_CFLAGS=$CFLAGS
9600 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9601 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603 /* end confdefs.h. */
9604 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9606 main ()
9608 int x = 5;
9610 return 0;
9612 _ACEOF
9613 if ac_fn_c_try_compile "$LINENO"; then :
9614 emacs_cv_lesstif=yes
9615 else
9616 emacs_cv_lesstif=no
9618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9621 $as_echo "$emacs_cv_lesstif" >&6; }
9622 if test $emacs_cv_lesstif = yes; then
9623 # Make sure this -I option remains in CPPFLAGS after it is set
9624 # back to REAL_CPPFLAGS.
9625 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9626 # have those other -I options anyway. Ultimately, having this
9627 # directory ultimately in CPPFLAGS will be enough.
9628 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9629 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9630 else
9631 CFLAGS=$OLD_CFLAGS
9632 CPPFLAGS=$OLD_CPPFLAGS
9638 USE_TOOLKIT_SCROLL_BARS=no
9639 if test "${with_toolkit_scroll_bars}" != "no"; then
9640 if test "${USE_X_TOOLKIT}" != "none"; then
9641 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9642 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9644 HAVE_XAW3D=no
9645 USE_TOOLKIT_SCROLL_BARS=yes
9646 elif test "${HAVE_XAW3D}" = "yes"; then
9647 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9649 USE_TOOLKIT_SCROLL_BARS=yes
9651 elif test "${HAVE_GTK}" = "yes"; then
9652 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9654 USE_TOOLKIT_SCROLL_BARS=yes
9655 elif test "${HAVE_NS}" = "yes"; then
9656 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9658 USE_TOOLKIT_SCROLL_BARS=yes
9662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9663 /* end confdefs.h. */
9665 #include <X11/Xlib.h>
9666 #include <X11/Xresource.h>
9668 main ()
9670 XIMProc callback;
9672 return 0;
9674 _ACEOF
9675 if ac_fn_c_try_compile "$LINENO"; then :
9676 HAVE_XIM=yes
9678 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9680 else
9681 HAVE_XIM=no
9683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9686 if test "${with_xim}" != "no"; then
9688 $as_echo "#define USE_XIM 1" >>confdefs.h
9693 if test "${HAVE_XIM}" != "no"; then
9694 late_CFLAGS=$CFLAGS
9695 if test "$GCC" = yes; then
9696 CFLAGS="$CFLAGS --pedantic-errors"
9698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699 /* end confdefs.h. */
9701 #include <X11/Xlib.h>
9702 #include <X11/Xresource.h>
9704 main ()
9706 Display *display;
9707 XrmDatabase db;
9708 char *res_name;
9709 char *res_class;
9710 XIMProc callback;
9711 XPointer *client_data;
9712 #ifndef __GNUC__
9713 /* If we're not using GCC, it's probably not XFree86, and this is
9714 probably right, but we can't use something like --pedantic-errors. */
9715 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9716 char*, XIMProc, XPointer*);
9717 #endif
9718 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9719 client_data);
9721 return 0;
9723 _ACEOF
9724 if ac_fn_c_try_compile "$LINENO"; then :
9725 emacs_cv_arg6_star=yes
9727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9728 if test "$emacs_cv_arg6_star" = yes; then
9729 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9731 else
9732 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9735 CFLAGS=$late_CFLAGS
9738 ### Start of font-backend (under any platform) section.
9739 # (nothing here yet -- this is a placeholder)
9740 ### End of font-backend (under any platform) section.
9742 ### Start of font-backend (under X11) section.
9743 if test "${HAVE_X11}" = "yes"; then
9745 succeeded=no
9747 # Extract the first word of "pkg-config", so it can be a program name with args.
9748 set dummy pkg-config; ac_word=$2
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9750 $as_echo_n "checking for $ac_word... " >&6; }
9751 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9752 $as_echo_n "(cached) " >&6
9753 else
9754 case $PKG_CONFIG in
9755 [\\/]* | ?:[\\/]*)
9756 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9760 for as_dir in $PATH
9762 IFS=$as_save_IFS
9763 test -z "$as_dir" && as_dir=.
9764 for ac_exec_ext in '' $ac_executable_extensions; do
9765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9766 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9768 break 2
9770 done
9771 done
9772 IFS=$as_save_IFS
9774 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9776 esac
9778 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9779 if test -n "$PKG_CONFIG"; then
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9781 $as_echo "$PKG_CONFIG" >&6; }
9782 else
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9784 $as_echo "no" >&6; }
9789 if test "$PKG_CONFIG" = "no" ; then
9790 HAVE_FC=no
9791 else
9792 PKG_CONFIG_MIN_VERSION=0.9.0
9793 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
9795 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9797 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9799 $as_echo "yes" >&6; }
9800 succeeded=yes
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
9803 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9804 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
9806 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
9809 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9810 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
9812 $as_echo "$FONTCONFIG_LIBS" >&6; }
9813 else
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9815 $as_echo "no" >&6; }
9816 FONTCONFIG_CFLAGS=""
9817 FONTCONFIG_LIBS=""
9818 ## If we have a custom action on failure, don't print errors, but
9819 ## do set a variable so people can do so.
9820 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
9826 else
9827 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9828 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9832 if test $succeeded = yes; then
9833 HAVE_FC=yes
9834 else
9835 HAVE_FC=no
9839 ## Use -lXft if available, unless `--with-xft=no'.
9840 HAVE_XFT=maybe
9841 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
9842 with_xft="no";
9844 if test "x${with_xft}" != "xno"; then
9847 succeeded=no
9849 # Extract the first word of "pkg-config", so it can be a program name with args.
9850 set dummy pkg-config; ac_word=$2
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9852 $as_echo_n "checking for $ac_word... " >&6; }
9853 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9854 $as_echo_n "(cached) " >&6
9855 else
9856 case $PKG_CONFIG in
9857 [\\/]* | ?:[\\/]*)
9858 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9862 for as_dir in $PATH
9864 IFS=$as_save_IFS
9865 test -z "$as_dir" && as_dir=.
9866 for ac_exec_ext in '' $ac_executable_extensions; do
9867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9868 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9870 break 2
9872 done
9873 done
9874 IFS=$as_save_IFS
9876 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9878 esac
9880 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9881 if test -n "$PKG_CONFIG"; then
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9883 $as_echo "$PKG_CONFIG" >&6; }
9884 else
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9886 $as_echo "no" >&6; }
9891 if test "$PKG_CONFIG" = "no" ; then
9892 HAVE_XFT=no
9893 else
9894 PKG_CONFIG_MIN_VERSION=0.9.0
9895 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
9897 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
9899 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9901 $as_echo "yes" >&6; }
9902 succeeded=yes
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
9905 $as_echo_n "checking XFT_CFLAGS... " >&6; }
9906 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
9908 $as_echo "$XFT_CFLAGS" >&6; }
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
9911 $as_echo_n "checking XFT_LIBS... " >&6; }
9912 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
9914 $as_echo "$XFT_LIBS" >&6; }
9915 else
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9917 $as_echo "no" >&6; }
9918 XFT_CFLAGS=""
9919 XFT_LIBS=""
9920 ## If we have a custom action on failure, don't print errors, but
9921 ## do set a variable so people can do so.
9922 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
9928 else
9929 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9930 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9934 if test $succeeded = yes; then
9936 else
9937 HAVE_XFT=no
9940 ## Because xftfont.c uses XRenderQueryExtension, we also
9941 ## need to link to -lXrender.
9942 HAVE_XRENDER=no
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
9944 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
9945 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
9946 $as_echo_n "(cached) " >&6
9947 else
9948 ac_check_lib_save_LIBS=$LIBS
9949 LIBS="-lXrender $LIBS"
9950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9951 /* end confdefs.h. */
9953 /* Override any GCC internal prototype to avoid an error.
9954 Use char because int might match the return type of a GCC
9955 builtin and then its argument prototype would still apply. */
9956 #ifdef __cplusplus
9957 extern "C"
9958 #endif
9959 char XRenderQueryExtension ();
9961 main ()
9963 return XRenderQueryExtension ();
9965 return 0;
9967 _ACEOF
9968 if ac_fn_c_try_link "$LINENO"; then :
9969 ac_cv_lib_Xrender_XRenderQueryExtension=yes
9970 else
9971 ac_cv_lib_Xrender_XRenderQueryExtension=no
9973 rm -f core conftest.err conftest.$ac_objext \
9974 conftest$ac_exeext conftest.$ac_ext
9975 LIBS=$ac_check_lib_save_LIBS
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
9978 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
9979 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
9980 HAVE_XRENDER=yes
9983 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
9984 OLD_CPPFLAGS="$CPPFLAGS"
9985 OLD_CFLAGS="$CFLAGS"
9986 OLD_LIBS="$LIBS"
9987 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
9988 CFLAGS="$CFLAGS $XFT_CFLAGS"
9989 XFT_LIBS="-lXrender $XFT_LIBS"
9990 LIBS="$XFT_LIBS $LIBS"
9991 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
9992 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
9994 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
9995 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
9996 $as_echo_n "(cached) " >&6
9997 else
9998 ac_check_lib_save_LIBS=$LIBS
9999 LIBS="-lXft $XFT_LIBS $LIBS"
10000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10001 /* end confdefs.h. */
10003 /* Override any GCC internal prototype to avoid an error.
10004 Use char because int might match the return type of a GCC
10005 builtin and then its argument prototype would still apply. */
10006 #ifdef __cplusplus
10007 extern "C"
10008 #endif
10009 char XftFontOpen ();
10011 main ()
10013 return XftFontOpen ();
10015 return 0;
10017 _ACEOF
10018 if ac_fn_c_try_link "$LINENO"; then :
10019 ac_cv_lib_Xft_XftFontOpen=yes
10020 else
10021 ac_cv_lib_Xft_XftFontOpen=no
10023 rm -f core conftest.err conftest.$ac_objext \
10024 conftest$ac_exeext conftest.$ac_ext
10025 LIBS=$ac_check_lib_save_LIBS
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
10028 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
10029 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
10030 HAVE_XFT=yes
10037 if test "${HAVE_XFT}" = "yes"; then
10039 $as_echo "#define HAVE_XFT 1" >>confdefs.h
10042 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
10043 else
10044 CPPFLAGS="$OLD_CPPFLAGS"
10045 CFLAGS="$OLD_CFLAGS"
10046 LIBS="$OLD_LIBS"
10047 fi # "${HAVE_XFT}" = "yes"
10048 fi # "$HAVE_XFT" != no
10049 fi # "x${with_xft}" != "xno"
10051 if test "$HAVE_XFT" != "yes"; then
10052 HAVE_XFT=no
10056 HAVE_FREETYPE=no
10057 ## We used to allow building with FreeType and without Xft.
10058 ## However, the ftx font backend driver is not in good shape.
10059 if test "${HAVE_XFT}" = "yes"; then
10060 HAVE_FREETYPE=yes
10061 FONTCONFIG_CFLAGS=
10062 FONTCONFIG_LIBS=
10065 HAVE_LIBOTF=no
10066 if test "${HAVE_FREETYPE}" = "yes"; then
10068 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10070 if test "${with_libotf}" != "no"; then
10072 succeeded=no
10074 # Extract the first word of "pkg-config", so it can be a program name with args.
10075 set dummy pkg-config; ac_word=$2
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10077 $as_echo_n "checking for $ac_word... " >&6; }
10078 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10079 $as_echo_n "(cached) " >&6
10080 else
10081 case $PKG_CONFIG in
10082 [\\/]* | ?:[\\/]*)
10083 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10087 for as_dir in $PATH
10089 IFS=$as_save_IFS
10090 test -z "$as_dir" && as_dir=.
10091 for ac_exec_ext in '' $ac_executable_extensions; do
10092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10093 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10095 break 2
10097 done
10098 done
10099 IFS=$as_save_IFS
10101 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10103 esac
10105 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10106 if test -n "$PKG_CONFIG"; then
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10108 $as_echo "$PKG_CONFIG" >&6; }
10109 else
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111 $as_echo "no" >&6; }
10116 if test "$PKG_CONFIG" = "no" ; then
10117 HAVE_LIBOTF=no
10118 else
10119 PKG_CONFIG_MIN_VERSION=0.9.0
10120 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
10122 $as_echo_n "checking for libotf... " >&6; }
10124 if $PKG_CONFIG --exists "libotf" 2>&5; then
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10126 $as_echo "yes" >&6; }
10127 succeeded=yes
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
10130 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
10131 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
10133 $as_echo "$LIBOTF_CFLAGS" >&6; }
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
10136 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
10137 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
10139 $as_echo "$LIBOTF_LIBS" >&6; }
10140 else
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10142 $as_echo "no" >&6; }
10143 LIBOTF_CFLAGS=""
10144 LIBOTF_LIBS=""
10145 ## If we have a custom action on failure, don't print errors, but
10146 ## do set a variable so people can do so.
10147 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
10153 else
10154 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10155 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10159 if test $succeeded = yes; then
10160 HAVE_LIBOTF=yes
10161 else
10162 HAVE_LIBOTF=no
10165 if test "$HAVE_LIBOTF" = "yes"; then
10167 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
10170 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
10171 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
10172 $as_echo_n "(cached) " >&6
10173 else
10174 ac_check_lib_save_LIBS=$LIBS
10175 LIBS="-lotf $LIBS"
10176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10177 /* end confdefs.h. */
10179 /* Override any GCC internal prototype to avoid an error.
10180 Use char because int might match the return type of a GCC
10181 builtin and then its argument prototype would still apply. */
10182 #ifdef __cplusplus
10183 extern "C"
10184 #endif
10185 char OTF_get_variation_glyphs ();
10187 main ()
10189 return OTF_get_variation_glyphs ();
10191 return 0;
10193 _ACEOF
10194 if ac_fn_c_try_link "$LINENO"; then :
10195 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
10196 else
10197 ac_cv_lib_otf_OTF_get_variation_glyphs=no
10199 rm -f core conftest.err conftest.$ac_objext \
10200 conftest$ac_exeext conftest.$ac_ext
10201 LIBS=$ac_check_lib_save_LIBS
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
10204 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
10205 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
10206 HAVE_OTF_GET_VARIATION_GLYPHS=yes
10207 else
10208 HAVE_OTF_GET_VARIATION_GLYPHS=no
10211 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
10213 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
10220 HAVE_M17N_FLT=no
10221 if test "${HAVE_LIBOTF}" = yes; then
10222 if test "${with_m17n_flt}" != "no"; then
10224 succeeded=no
10226 # Extract the first word of "pkg-config", so it can be a program name with args.
10227 set dummy pkg-config; ac_word=$2
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10229 $as_echo_n "checking for $ac_word... " >&6; }
10230 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10231 $as_echo_n "(cached) " >&6
10232 else
10233 case $PKG_CONFIG in
10234 [\\/]* | ?:[\\/]*)
10235 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10239 for as_dir in $PATH
10241 IFS=$as_save_IFS
10242 test -z "$as_dir" && as_dir=.
10243 for ac_exec_ext in '' $ac_executable_extensions; do
10244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10245 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10247 break 2
10249 done
10250 done
10251 IFS=$as_save_IFS
10253 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10255 esac
10257 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10258 if test -n "$PKG_CONFIG"; then
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10260 $as_echo "$PKG_CONFIG" >&6; }
10261 else
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10263 $as_echo "no" >&6; }
10268 if test "$PKG_CONFIG" = "no" ; then
10269 HAVE_M17N_FLT=no
10270 else
10271 PKG_CONFIG_MIN_VERSION=0.9.0
10272 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
10274 $as_echo_n "checking for m17n-flt... " >&6; }
10276 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10278 $as_echo "yes" >&6; }
10279 succeeded=yes
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
10282 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
10283 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
10285 $as_echo "$M17N_FLT_CFLAGS" >&6; }
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
10288 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
10289 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
10291 $as_echo "$M17N_FLT_LIBS" >&6; }
10292 else
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10294 $as_echo "no" >&6; }
10295 M17N_FLT_CFLAGS=""
10296 M17N_FLT_LIBS=""
10297 ## If we have a custom action on failure, don't print errors, but
10298 ## do set a variable so people can do so.
10299 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
10305 else
10306 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10307 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10311 if test $succeeded = yes; then
10312 HAVE_M17N_FLT=yes
10313 else
10314 HAVE_M17N_FLT=no
10317 if test "$HAVE_M17N_FLT" = "yes"; then
10319 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
10324 else
10325 HAVE_XFT=no
10326 HAVE_FREETYPE=no
10327 HAVE_LIBOTF=no
10328 HAVE_M17N_FLT=no
10331 ### End of font-backend (under X11) section.
10342 ### Use -lXpm if available, unless `--with-xpm=no'.
10343 HAVE_XPM=no
10344 LIBXPM=
10345 if test "${HAVE_X11}" = "yes"; then
10346 if test "${with_xpm}" != "no"; then
10347 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
10348 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
10350 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
10351 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
10352 $as_echo_n "(cached) " >&6
10353 else
10354 ac_check_lib_save_LIBS=$LIBS
10355 LIBS="-lXpm -lX11 $LIBS"
10356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10357 /* end confdefs.h. */
10359 /* Override any GCC internal prototype to avoid an error.
10360 Use char because int might match the return type of a GCC
10361 builtin and then its argument prototype would still apply. */
10362 #ifdef __cplusplus
10363 extern "C"
10364 #endif
10365 char XpmReadFileToPixmap ();
10367 main ()
10369 return XpmReadFileToPixmap ();
10371 return 0;
10373 _ACEOF
10374 if ac_fn_c_try_link "$LINENO"; then :
10375 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10376 else
10377 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10379 rm -f core conftest.err conftest.$ac_objext \
10380 conftest$ac_exeext conftest.$ac_ext
10381 LIBS=$ac_check_lib_save_LIBS
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10384 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10385 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
10386 HAVE_XPM=yes
10392 if test "${HAVE_XPM}" = "yes"; then
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
10394 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
10395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10396 /* end confdefs.h. */
10397 #include "X11/xpm.h"
10398 #ifndef XpmReturnAllocPixels
10399 no_return_alloc_pixels
10400 #endif
10402 _ACEOF
10403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10404 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
10405 HAVE_XPM=no
10406 else
10407 HAVE_XPM=yes
10409 rm -f conftest*
10412 if test "${HAVE_XPM}" = "yes"; then
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10414 $as_echo "yes" >&6; }
10415 else
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10417 $as_echo "no" >&6; }
10422 if test "${HAVE_XPM}" = "yes"; then
10424 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10426 LIBXPM=-lXpm
10431 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10432 HAVE_JPEG=no
10433 LIBJPEG=
10434 if test "${HAVE_X11}" = "yes"; then
10435 if test "${with_jpeg}" != "no"; then
10436 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10437 if test "x$ac_cv_header_jerror_h" = x""yes; then :
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10439 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10440 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
10441 $as_echo_n "(cached) " >&6
10442 else
10443 ac_check_lib_save_LIBS=$LIBS
10444 LIBS="-ljpeg $LIBS"
10445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446 /* end confdefs.h. */
10448 /* Override any GCC internal prototype to avoid an error.
10449 Use char because int might match the return type of a GCC
10450 builtin and then its argument prototype would still apply. */
10451 #ifdef __cplusplus
10452 extern "C"
10453 #endif
10454 char jpeg_destroy_compress ();
10456 main ()
10458 return jpeg_destroy_compress ();
10460 return 0;
10462 _ACEOF
10463 if ac_fn_c_try_link "$LINENO"; then :
10464 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
10465 else
10466 ac_cv_lib_jpeg_jpeg_destroy_compress=no
10468 rm -f core conftest.err conftest.$ac_objext \
10469 conftest$ac_exeext conftest.$ac_ext
10470 LIBS=$ac_check_lib_save_LIBS
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10473 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10474 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
10475 HAVE_JPEG=yes
10483 if test "${HAVE_JPEG}" = "yes"; then
10484 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10487 /* end confdefs.h. */
10488 #include <jpeglib.h>
10489 version=JPEG_LIB_VERSION
10491 _ACEOF
10492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10493 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
10494 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10496 else
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10498 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10499 HAVE_JPEG=no
10501 rm -f conftest*
10504 if test "${HAVE_JPEG}" = "yes"; then
10505 LIBJPEG=-ljpeg
10510 ### Use -lpng if available, unless `--with-png=no'.
10511 HAVE_PNG=no
10512 LIBPNG=
10513 if test "${HAVE_X11}" = "yes"; then
10514 if test "${with_png}" != "no"; then
10515 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10516 # in /usr/include/libpng.
10517 for ac_header in png.h libpng/png.h
10518 do :
10519 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10520 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10521 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10522 cat >>confdefs.h <<_ACEOF
10523 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10524 _ACEOF
10528 done
10530 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10532 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10533 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
10534 $as_echo_n "(cached) " >&6
10535 else
10536 ac_check_lib_save_LIBS=$LIBS
10537 LIBS="-lpng -lz -lm $LIBS"
10538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h. */
10541 /* Override any GCC internal prototype to avoid an error.
10542 Use char because int might match the return type of a GCC
10543 builtin and then its argument prototype would still apply. */
10544 #ifdef __cplusplus
10545 extern "C"
10546 #endif
10547 char png_get_channels ();
10549 main ()
10551 return png_get_channels ();
10553 return 0;
10555 _ACEOF
10556 if ac_fn_c_try_link "$LINENO"; then :
10557 ac_cv_lib_png_png_get_channels=yes
10558 else
10559 ac_cv_lib_png_png_get_channels=no
10561 rm -f core conftest.err conftest.$ac_objext \
10562 conftest$ac_exeext conftest.$ac_ext
10563 LIBS=$ac_check_lib_save_LIBS
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10566 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10567 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
10568 HAVE_PNG=yes
10574 if test "${HAVE_PNG}" = "yes"; then
10576 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10578 LIBPNG="-lpng -lz -lm"
10583 ### Use -ltiff if available, unless `--with-tiff=no'.
10584 HAVE_TIFF=no
10585 LIBTIFF=
10586 if test "${HAVE_X11}" = "yes"; then
10587 if test "${with_tiff}" != "no"; then
10588 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10589 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
10590 tifflibs="-lz -lm"
10591 # At least one tiff package requires the jpeg library.
10592 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10594 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10595 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10596 $as_echo_n "(cached) " >&6
10597 else
10598 ac_check_lib_save_LIBS=$LIBS
10599 LIBS="-ltiff $tifflibs $LIBS"
10600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10601 /* end confdefs.h. */
10603 /* Override any GCC internal prototype to avoid an error.
10604 Use char because int might match the return type of a GCC
10605 builtin and then its argument prototype would still apply. */
10606 #ifdef __cplusplus
10607 extern "C"
10608 #endif
10609 char TIFFGetVersion ();
10611 main ()
10613 return TIFFGetVersion ();
10615 return 0;
10617 _ACEOF
10618 if ac_fn_c_try_link "$LINENO"; then :
10619 ac_cv_lib_tiff_TIFFGetVersion=yes
10620 else
10621 ac_cv_lib_tiff_TIFFGetVersion=no
10623 rm -f core conftest.err conftest.$ac_objext \
10624 conftest$ac_exeext conftest.$ac_ext
10625 LIBS=$ac_check_lib_save_LIBS
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10628 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10629 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
10630 HAVE_TIFF=yes
10638 if test "${HAVE_TIFF}" = "yes"; then
10640 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10642 LIBTIFF=-ltiff
10647 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10648 HAVE_GIF=no
10649 LIBGIF=
10650 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10651 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10652 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
10653 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10654 # Earlier versions can crash Emacs.
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10656 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10657 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10658 $as_echo_n "(cached) " >&6
10659 else
10660 ac_check_lib_save_LIBS=$LIBS
10661 LIBS="-lgif $LIBS"
10662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10663 /* end confdefs.h. */
10665 /* Override any GCC internal prototype to avoid an error.
10666 Use char because int might match the return type of a GCC
10667 builtin and then its argument prototype would still apply. */
10668 #ifdef __cplusplus
10669 extern "C"
10670 #endif
10671 char EGifPutExtensionLast ();
10673 main ()
10675 return EGifPutExtensionLast ();
10677 return 0;
10679 _ACEOF
10680 if ac_fn_c_try_link "$LINENO"; then :
10681 ac_cv_lib_gif_EGifPutExtensionLast=yes
10682 else
10683 ac_cv_lib_gif_EGifPutExtensionLast=no
10685 rm -f core conftest.err conftest.$ac_objext \
10686 conftest$ac_exeext conftest.$ac_ext
10687 LIBS=$ac_check_lib_save_LIBS
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10690 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10691 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
10692 HAVE_GIF=yes
10693 else
10694 HAVE_GIF=maybe
10701 if test "$HAVE_GIF" = yes; then
10702 LIBGIF=-lgif
10703 elif test "$HAVE_GIF" = maybe; then
10704 # If gif_lib.h but no libgif, try libungif.
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10706 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10707 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10708 $as_echo_n "(cached) " >&6
10709 else
10710 ac_check_lib_save_LIBS=$LIBS
10711 LIBS="-lungif $LIBS"
10712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10713 /* end confdefs.h. */
10715 /* Override any GCC internal prototype to avoid an error.
10716 Use char because int might match the return type of a GCC
10717 builtin and then its argument prototype would still apply. */
10718 #ifdef __cplusplus
10719 extern "C"
10720 #endif
10721 char EGifPutExtensionLast ();
10723 main ()
10725 return EGifPutExtensionLast ();
10727 return 0;
10729 _ACEOF
10730 if ac_fn_c_try_link "$LINENO"; then :
10731 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10732 else
10733 ac_cv_lib_ungif_EGifPutExtensionLast=no
10735 rm -f core conftest.err conftest.$ac_objext \
10736 conftest$ac_exeext conftest.$ac_ext
10737 LIBS=$ac_check_lib_save_LIBS
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10740 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10741 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
10742 HAVE_GIF=yes
10743 else
10744 HAVE_GIF=no
10747 test "$HAVE_GIF" = yes && LIBGIF=-lungif
10750 if test "${HAVE_GIF}" = "yes"; then
10752 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10758 if test "${HAVE_X11}" = "yes"; then
10759 MISSING=""
10760 WITH_NO=""
10761 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
10762 MISSING="libXpm" && WITH_NO="--with-xpm=no"
10763 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
10764 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
10765 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
10766 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
10767 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
10768 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
10769 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
10770 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
10772 if test "X${MISSING}" != X; then
10773 as_fn_error $? "The following required libraries were not found:
10774 $MISSING
10775 Maybe some development libraries/packages are missing?
10776 If you don't want to link with them give
10777 $WITH_NO
10778 as options to configure" "$LINENO" 5
10782 ### Use -lgpm if available, unless `--with-gpm=no'.
10783 HAVE_GPM=no
10784 LIBGPM=
10785 MOUSE_SUPPORT=
10786 if test "${with_gpm}" != "no"; then
10787 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
10788 if test "x$ac_cv_header_gpm_h" = x""yes; then :
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
10790 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10791 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
10792 $as_echo_n "(cached) " >&6
10793 else
10794 ac_check_lib_save_LIBS=$LIBS
10795 LIBS="-lgpm $LIBS"
10796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797 /* end confdefs.h. */
10799 /* Override any GCC internal prototype to avoid an error.
10800 Use char because int might match the return type of a GCC
10801 builtin and then its argument prototype would still apply. */
10802 #ifdef __cplusplus
10803 extern "C"
10804 #endif
10805 char Gpm_Open ();
10807 main ()
10809 return Gpm_Open ();
10811 return 0;
10813 _ACEOF
10814 if ac_fn_c_try_link "$LINENO"; then :
10815 ac_cv_lib_gpm_Gpm_Open=yes
10816 else
10817 ac_cv_lib_gpm_Gpm_Open=no
10819 rm -f core conftest.err conftest.$ac_objext \
10820 conftest$ac_exeext conftest.$ac_ext
10821 LIBS=$ac_check_lib_save_LIBS
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10824 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10825 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
10826 HAVE_GPM=yes
10833 if test "${HAVE_GPM}" = "yes"; then
10835 $as_echo "#define HAVE_GPM 1" >>confdefs.h
10837 LIBGPM=-lgpm
10838 ## May be reset below.
10839 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
10844 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
10845 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
10847 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
10853 C_SWITCH_X_SYSTEM=
10854 ### Use NeXTstep API to implement GUI.
10855 if test "${HAVE_NS}" = "yes"; then
10857 $as_echo "#define HAVE_NS 1" >>confdefs.h
10859 if test "${NS_IMPL_COCOA}" = "yes"; then
10861 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
10863 GNU_OBJC_CFLAGS=
10865 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
10867 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
10869 # See also .m.o rule in Makefile.in */
10870 # FIXME: are all these flags really needed? Document here why. */
10871 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
10872 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
10874 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
10876 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10879 # We also have mouse menus.
10880 HAVE_MENUS=yes
10881 OTHER_FILES=ns-app
10885 ### Use session management (-lSM -lICE) if available
10886 HAVE_X_SM=no
10887 LIBXSM=
10888 if test "${HAVE_X11}" = "yes"; then
10889 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10890 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
10892 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
10893 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
10894 $as_echo_n "(cached) " >&6
10895 else
10896 ac_check_lib_save_LIBS=$LIBS
10897 LIBS="-lSM -lICE $LIBS"
10898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10899 /* end confdefs.h. */
10901 /* Override any GCC internal prototype to avoid an error.
10902 Use char because int might match the return type of a GCC
10903 builtin and then its argument prototype would still apply. */
10904 #ifdef __cplusplus
10905 extern "C"
10906 #endif
10907 char SmcOpenConnection ();
10909 main ()
10911 return SmcOpenConnection ();
10913 return 0;
10915 _ACEOF
10916 if ac_fn_c_try_link "$LINENO"; then :
10917 ac_cv_lib_SM_SmcOpenConnection=yes
10918 else
10919 ac_cv_lib_SM_SmcOpenConnection=no
10921 rm -f core conftest.err conftest.$ac_objext \
10922 conftest$ac_exeext conftest.$ac_ext
10923 LIBS=$ac_check_lib_save_LIBS
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10926 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
10927 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
10928 HAVE_X_SM=yes
10935 if test "${HAVE_X_SM}" = "yes"; then
10937 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
10939 LIBXSM="-lSM -lICE"
10940 case "$LIBS" in
10941 *-lSM*) ;;
10942 *) LIBS="$LIBXSM $LIBS" ;;
10943 esac
10948 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
10950 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
10951 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
10952 $as_echo_n "(cached) " >&6
10953 else
10954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10955 /* end confdefs.h. */
10956 #include <netdb.h>
10958 main ()
10960 return h_errno;
10962 return 0;
10964 _ACEOF
10965 if ac_fn_c_try_link "$LINENO"; then :
10966 emacs_cv_netdb_declares_h_errno=yes
10967 else
10968 emacs_cv_netdb_declares_h_errno=no
10970 rm -f core conftest.err conftest.$ac_objext \
10971 conftest$ac_exeext conftest.$ac_ext
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
10974 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
10975 if test $emacs_cv_netdb_declares_h_errno = yes; then
10977 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
10981 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10982 # for constant arguments. Useless!
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10984 $as_echo_n "checking for working alloca.h... " >&6; }
10985 if test "${ac_cv_working_alloca_h+set}" = set; then :
10986 $as_echo_n "(cached) " >&6
10987 else
10988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10989 /* end confdefs.h. */
10990 #include <alloca.h>
10992 main ()
10994 char *p = (char *) alloca (2 * sizeof (int));
10995 if (p) return 0;
10997 return 0;
10999 _ACEOF
11000 if ac_fn_c_try_link "$LINENO"; then :
11001 ac_cv_working_alloca_h=yes
11002 else
11003 ac_cv_working_alloca_h=no
11005 rm -f core conftest.err conftest.$ac_objext \
11006 conftest$ac_exeext conftest.$ac_ext
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11009 $as_echo "$ac_cv_working_alloca_h" >&6; }
11010 if test $ac_cv_working_alloca_h = yes; then
11012 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11017 $as_echo_n "checking for alloca... " >&6; }
11018 if test "${ac_cv_func_alloca_works+set}" = set; then :
11019 $as_echo_n "(cached) " >&6
11020 else
11021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11022 /* end confdefs.h. */
11023 #ifdef __GNUC__
11024 # define alloca __builtin_alloca
11025 #else
11026 # ifdef _MSC_VER
11027 # include <malloc.h>
11028 # define alloca _alloca
11029 # else
11030 # ifdef HAVE_ALLOCA_H
11031 # include <alloca.h>
11032 # else
11033 # ifdef _AIX
11034 #pragma alloca
11035 # else
11036 # ifndef alloca /* predefined by HP cc +Olibcalls */
11037 char *alloca ();
11038 # endif
11039 # endif
11040 # endif
11041 # endif
11042 #endif
11045 main ()
11047 char *p = (char *) alloca (1);
11048 if (p) return 0;
11050 return 0;
11052 _ACEOF
11053 if ac_fn_c_try_link "$LINENO"; then :
11054 ac_cv_func_alloca_works=yes
11055 else
11056 ac_cv_func_alloca_works=no
11058 rm -f core conftest.err conftest.$ac_objext \
11059 conftest$ac_exeext conftest.$ac_ext
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11062 $as_echo "$ac_cv_func_alloca_works" >&6; }
11064 if test $ac_cv_func_alloca_works = yes; then
11066 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11068 else
11069 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11070 # that cause trouble. Some versions do not even contain alloca or
11071 # contain a buggy version. If you still want to use their alloca,
11072 # use ar to extract alloca.o from them instead of compiling alloca.c.
11074 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11076 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11080 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11081 if test "${ac_cv_os_cray+set}" = set; then :
11082 $as_echo_n "(cached) " >&6
11083 else
11084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11085 /* end confdefs.h. */
11086 #if defined CRAY && ! defined CRAY2
11087 webecray
11088 #else
11089 wenotbecray
11090 #endif
11092 _ACEOF
11093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11094 $EGREP "webecray" >/dev/null 2>&1; then :
11095 ac_cv_os_cray=yes
11096 else
11097 ac_cv_os_cray=no
11099 rm -f conftest*
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11103 $as_echo "$ac_cv_os_cray" >&6; }
11104 if test $ac_cv_os_cray = yes; then
11105 for ac_func in _getb67 GETB67 getb67; do
11106 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11107 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11108 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11110 cat >>confdefs.h <<_ACEOF
11111 #define CRAY_STACKSEG_END $ac_func
11112 _ACEOF
11114 break
11117 done
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11121 $as_echo_n "checking stack direction for C alloca... " >&6; }
11122 if test "${ac_cv_c_stack_direction+set}" = set; then :
11123 $as_echo_n "(cached) " >&6
11124 else
11125 if test "$cross_compiling" = yes; then :
11126 ac_cv_c_stack_direction=0
11127 else
11128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11129 /* end confdefs.h. */
11130 $ac_includes_default
11132 find_stack_direction ()
11134 static char *addr = 0;
11135 auto char dummy;
11136 if (addr == 0)
11138 addr = &dummy;
11139 return find_stack_direction ();
11141 else
11142 return (&dummy > addr) ? 1 : -1;
11146 main ()
11148 return find_stack_direction () < 0;
11150 _ACEOF
11151 if ac_fn_c_try_run "$LINENO"; then :
11152 ac_cv_c_stack_direction=1
11153 else
11154 ac_cv_c_stack_direction=-1
11156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11157 conftest.$ac_objext conftest.beam conftest.$ac_ext
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11162 $as_echo "$ac_cv_c_stack_direction" >&6; }
11163 cat >>confdefs.h <<_ACEOF
11164 #define STACK_DIRECTION $ac_cv_c_stack_direction
11165 _ACEOF
11171 if test x"$ac_cv_func_alloca_works" != xyes; then
11172 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
11175 # fmod, logb, and frexp are found in -lm on most systems.
11176 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
11178 $as_echo_n "checking for sqrt in -lm... " >&6; }
11179 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
11180 $as_echo_n "(cached) " >&6
11181 else
11182 ac_check_lib_save_LIBS=$LIBS
11183 LIBS="-lm $LIBS"
11184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11185 /* end confdefs.h. */
11187 /* Override any GCC internal prototype to avoid an error.
11188 Use char because int might match the return type of a GCC
11189 builtin and then its argument prototype would still apply. */
11190 #ifdef __cplusplus
11191 extern "C"
11192 #endif
11193 char sqrt ();
11195 main ()
11197 return sqrt ();
11199 return 0;
11201 _ACEOF
11202 if ac_fn_c_try_link "$LINENO"; then :
11203 ac_cv_lib_m_sqrt=yes
11204 else
11205 ac_cv_lib_m_sqrt=no
11207 rm -f core conftest.err conftest.$ac_objext \
11208 conftest$ac_exeext conftest.$ac_ext
11209 LIBS=$ac_check_lib_save_LIBS
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
11212 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
11213 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
11214 cat >>confdefs.h <<_ACEOF
11215 #define HAVE_LIBM 1
11216 _ACEOF
11218 LIBS="-lm $LIBS"
11223 # Check for mail-locking functions in a "mail" library. Probably this should
11224 # have the same check as for liblockfile below.
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
11226 $as_echo_n "checking for maillock in -lmail... " >&6; }
11227 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
11228 $as_echo_n "(cached) " >&6
11229 else
11230 ac_check_lib_save_LIBS=$LIBS
11231 LIBS="-lmail $LIBS"
11232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11233 /* end confdefs.h. */
11235 /* Override any GCC internal prototype to avoid an error.
11236 Use char because int might match the return type of a GCC
11237 builtin and then its argument prototype would still apply. */
11238 #ifdef __cplusplus
11239 extern "C"
11240 #endif
11241 char maillock ();
11243 main ()
11245 return maillock ();
11247 return 0;
11249 _ACEOF
11250 if ac_fn_c_try_link "$LINENO"; then :
11251 ac_cv_lib_mail_maillock=yes
11252 else
11253 ac_cv_lib_mail_maillock=no
11255 rm -f core conftest.err conftest.$ac_objext \
11256 conftest$ac_exeext conftest.$ac_ext
11257 LIBS=$ac_check_lib_save_LIBS
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
11260 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
11261 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
11262 have_mail=yes
11263 else
11264 have_mail=no
11267 if test $have_mail = yes; then
11268 LIBS_MAIL=-lmail
11269 LIBS="$LIBS_MAIL $LIBS"
11271 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
11273 else
11274 LIBS_MAIL=
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
11277 $as_echo_n "checking for maillock in -llockfile... " >&6; }
11278 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
11279 $as_echo_n "(cached) " >&6
11280 else
11281 ac_check_lib_save_LIBS=$LIBS
11282 LIBS="-llockfile $LIBS"
11283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11284 /* end confdefs.h. */
11286 /* Override any GCC internal prototype to avoid an error.
11287 Use char because int might match the return type of a GCC
11288 builtin and then its argument prototype would still apply. */
11289 #ifdef __cplusplus
11290 extern "C"
11291 #endif
11292 char maillock ();
11294 main ()
11296 return maillock ();
11298 return 0;
11300 _ACEOF
11301 if ac_fn_c_try_link "$LINENO"; then :
11302 ac_cv_lib_lockfile_maillock=yes
11303 else
11304 ac_cv_lib_lockfile_maillock=no
11306 rm -f core conftest.err conftest.$ac_objext \
11307 conftest$ac_exeext conftest.$ac_ext
11308 LIBS=$ac_check_lib_save_LIBS
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
11311 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
11312 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
11313 have_lockfile=yes
11314 else
11315 have_lockfile=no
11318 if test $have_lockfile = yes; then
11319 LIBS_MAIL=-llockfile
11320 LIBS="$LIBS_MAIL $LIBS"
11322 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
11324 else
11325 # If we have the shared liblockfile, assume we must use it for mail
11326 # locking (e.g. Debian). If we couldn't link against liblockfile
11327 # (no liblockfile.a installed), ensure that we don't need to.
11328 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11329 set dummy liblockfile.so; ac_word=$2
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11331 $as_echo_n "checking for $ac_word... " >&6; }
11332 if test "${ac_cv_prog_liblockfile+set}" = set; then :
11333 $as_echo_n "(cached) " >&6
11334 else
11335 if test -n "$liblockfile"; then
11336 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
11337 else
11338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11339 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11340 for as_dir in $as_dummy
11342 IFS=$as_save_IFS
11343 test -z "$as_dir" && as_dir=.
11344 for ac_exec_ext in '' $ac_executable_extensions; do
11345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11346 ac_cv_prog_liblockfile="yes"
11347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11348 break 2
11350 done
11351 done
11352 IFS=$as_save_IFS
11354 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
11357 liblockfile=$ac_cv_prog_liblockfile
11358 if test -n "$liblockfile"; then
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
11360 $as_echo "$liblockfile" >&6; }
11361 else
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11363 $as_echo "no" >&6; }
11367 if test $ac_cv_prog_liblockfile = yes; then
11368 as_fn_error $? "Shared liblockfile found but can't link against it.
11369 This probably means that movemail could lose mail.
11370 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
11373 for ac_func in touchlock
11374 do :
11375 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
11376 if test "x$ac_cv_func_touchlock" = x""yes; then :
11377 cat >>confdefs.h <<_ACEOF
11378 #define HAVE_TOUCHLOCK 1
11379 _ACEOF
11382 done
11384 for ac_header in maillock.h
11385 do :
11386 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
11387 if test "x$ac_cv_header_maillock_h" = x""yes; then :
11388 cat >>confdefs.h <<_ACEOF
11389 #define HAVE_MAILLOCK_H 1
11390 _ACEOF
11394 done
11398 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
11399 ## interlock access to the mail spool. The alternative is a lock file named
11400 ## /usr/spool/mail/$USER.lock.
11401 mail_lock=no
11402 case "$opsys" in
11403 aix4-2) mail_lock="lockf" ;;
11405 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
11407 ## On GNU/Linux systems, both methods are used by various mail programs.
11408 ## I assume most people are using newer mailers that have heard of flock.
11409 ## Change this if you need to.
11410 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11411 ## configure gets the right answers, and that means *NOT* using flock.
11412 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11413 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11414 ## Debian maintainer hasn't provided a clean fix for Emacs.
11415 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11416 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11417 ## correct logic. -- fx
11418 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11419 ## liblockfile is a Free Software replacement for libmail, used on
11420 ## Debian systems and elsewhere. -rfr.
11421 gnu-*)
11422 mail_lock="flock"
11423 if test $have_mail = yes || test $have_lockfile = yes; then
11424 test $ac_cv_header_maillock_h = yes && mail_lock=no
11427 esac
11429 BLESSMAIL_TARGET=
11430 case "$mail_lock" in
11431 flock)
11432 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11435 lockf)
11436 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11439 *) BLESSMAIL_TARGET="need-blessmail" ;;
11440 esac
11444 for ac_func in gethostname getdomainname dup2 \
11445 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
11446 random lrand48 logb frexp fmod rint cbrt ftime setsid \
11447 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11448 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11449 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
11450 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11451 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
11452 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11453 cfmakeraw cfsetspeed isnan copysign __executable_start
11454 do :
11455 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11456 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11457 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11458 cat >>confdefs.h <<_ACEOF
11459 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11460 _ACEOF
11463 done
11466 for ac_header in sys/un.h
11467 do :
11468 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11469 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
11470 cat >>confdefs.h <<_ACEOF
11471 #define HAVE_SYS_UN_H 1
11472 _ACEOF
11476 done
11484 for ac_func in $ac_func_list
11485 do :
11486 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11487 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11488 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11489 cat >>confdefs.h <<_ACEOF
11490 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11491 _ACEOF
11494 done
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11501 $as_echo_n "checking for working mktime... " >&6; }
11502 if test "${ac_cv_func_working_mktime+set}" = set; then :
11503 $as_echo_n "(cached) " >&6
11504 else
11505 if test "$cross_compiling" = yes; then :
11506 ac_cv_func_working_mktime=no
11507 else
11508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11509 /* end confdefs.h. */
11510 /* Test program from Paul Eggert and Tony Leneis. */
11511 #ifdef TIME_WITH_SYS_TIME
11512 # include <sys/time.h>
11513 # include <time.h>
11514 #else
11515 # ifdef HAVE_SYS_TIME_H
11516 # include <sys/time.h>
11517 # else
11518 # include <time.h>
11519 # endif
11520 #endif
11522 #include <limits.h>
11523 #include <stdlib.h>
11525 #ifdef HAVE_UNISTD_H
11526 # include <unistd.h>
11527 #endif
11529 #ifndef HAVE_ALARM
11530 # define alarm(X) /* empty */
11531 #endif
11533 /* Work around redefinition to rpl_putenv by other config tests. */
11534 #undef putenv
11536 static time_t time_t_max;
11537 static time_t time_t_min;
11539 /* Values we'll use to set the TZ environment variable. */
11540 static const char *tz_strings[] = {
11541 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11542 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11544 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11546 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11547 Based on a problem report from Andreas Jaeger. */
11548 static int
11549 spring_forward_gap ()
11551 /* glibc (up to about 1998-10-07) failed this test. */
11552 struct tm tm;
11554 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11555 instead of "TZ=America/Vancouver" in order to detect the bug even
11556 on systems that don't support the Olson extension, or don't have the
11557 full zoneinfo tables installed. */
11558 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
11560 tm.tm_year = 98;
11561 tm.tm_mon = 3;
11562 tm.tm_mday = 5;
11563 tm.tm_hour = 2;
11564 tm.tm_min = 0;
11565 tm.tm_sec = 0;
11566 tm.tm_isdst = -1;
11567 return mktime (&tm) != (time_t) -1;
11570 static int
11571 mktime_test1 (time_t now)
11573 struct tm *lt;
11574 return ! (lt = localtime (&now)) || mktime (lt) == now;
11577 static int
11578 mktime_test (time_t now)
11580 return (mktime_test1 (now)
11581 && mktime_test1 ((time_t) (time_t_max - now))
11582 && mktime_test1 ((time_t) (time_t_min + now)));
11585 static int
11586 irix_6_4_bug ()
11588 /* Based on code from Ariel Faigon. */
11589 struct tm tm;
11590 tm.tm_year = 96;
11591 tm.tm_mon = 3;
11592 tm.tm_mday = 0;
11593 tm.tm_hour = 0;
11594 tm.tm_min = 0;
11595 tm.tm_sec = 0;
11596 tm.tm_isdst = -1;
11597 mktime (&tm);
11598 return tm.tm_mon == 2 && tm.tm_mday == 31;
11601 static int
11602 bigtime_test (int j)
11604 struct tm tm;
11605 time_t now;
11606 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11607 now = mktime (&tm);
11608 if (now != (time_t) -1)
11610 struct tm *lt = localtime (&now);
11611 if (! (lt
11612 && lt->tm_year == tm.tm_year
11613 && lt->tm_mon == tm.tm_mon
11614 && lt->tm_mday == tm.tm_mday
11615 && lt->tm_hour == tm.tm_hour
11616 && lt->tm_min == tm.tm_min
11617 && lt->tm_sec == tm.tm_sec
11618 && lt->tm_yday == tm.tm_yday
11619 && lt->tm_wday == tm.tm_wday
11620 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11621 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11622 return 0;
11624 return 1;
11627 static int
11628 year_2050_test ()
11630 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
11631 ignoring leap seconds. */
11632 unsigned long int answer = 2527315200UL;
11634 struct tm tm;
11635 time_t t;
11636 tm.tm_year = 2050 - 1900;
11637 tm.tm_mon = 2 - 1;
11638 tm.tm_mday = 1;
11639 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
11640 tm.tm_isdst = -1;
11642 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11643 instead of "TZ=America/Vancouver" in order to detect the bug even
11644 on systems that don't support the Olson extension, or don't have the
11645 full zoneinfo tables installed. */
11646 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
11648 t = mktime (&tm);
11650 /* Check that the result is either a failure, or close enough
11651 to the correct answer that we can assume the discrepancy is
11652 due to leap seconds. */
11653 return (t == (time_t) -1
11654 || (0 < t && answer - 120 <= t && t <= answer + 120));
11658 main ()
11660 time_t t, delta;
11661 int i, j;
11663 /* This test makes some buggy mktime implementations loop.
11664 Give up after 60 seconds; a mktime slower than that
11665 isn't worth using anyway. */
11666 alarm (60);
11668 for (;;)
11670 t = (time_t_max << 1) + 1;
11671 if (t <= time_t_max)
11672 break;
11673 time_t_max = t;
11675 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
11677 delta = time_t_max / 997; /* a suitable prime number */
11678 for (i = 0; i < N_STRINGS; i++)
11680 if (tz_strings[i])
11681 putenv ((char*) tz_strings[i]);
11683 for (t = 0; t <= time_t_max - delta; t += delta)
11684 if (! mktime_test (t))
11685 return 1;
11686 if (! (mktime_test ((time_t) 1)
11687 && mktime_test ((time_t) (60 * 60))
11688 && mktime_test ((time_t) (60 * 60 * 24))))
11689 return 1;
11691 for (j = 1; ; j <<= 1)
11692 if (! bigtime_test (j))
11693 return 1;
11694 else if (INT_MAX / 2 < j)
11695 break;
11696 if (! bigtime_test (INT_MAX))
11697 return 1;
11699 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
11701 _ACEOF
11702 if ac_fn_c_try_run "$LINENO"; then :
11703 ac_cv_func_working_mktime=yes
11704 else
11705 ac_cv_func_working_mktime=no
11707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11708 conftest.$ac_objext conftest.beam conftest.$ac_ext
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
11713 $as_echo "$ac_cv_func_working_mktime" >&6; }
11714 if test $ac_cv_func_working_mktime = no; then
11715 case " $LIBOBJS " in
11716 *" mktime.$ac_objext "* ) ;;
11717 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
11719 esac
11723 if test "$ac_cv_func_working_mktime" = no; then
11725 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
11729 ac_have_func=no # yes means we've found a way to get the load average.
11731 # Make sure getloadavg.c is where it belongs, at configure-time.
11732 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11733 as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
11735 ac_save_LIBS=$LIBS
11737 # Check for getloadavg, but be sure not to touch the cache variable.
11738 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11739 if test "x$ac_cv_func_getloadavg" = x""yes; then :
11740 exit 0
11741 else
11742 exit 1
11744 ) && ac_have_func=yes
11746 # On HPUX9, an unprivileged user can get load averages through this function.
11747 for ac_func in pstat_getdynamic
11748 do :
11749 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
11750 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
11751 cat >>confdefs.h <<_ACEOF
11752 #define HAVE_PSTAT_GETDYNAMIC 1
11753 _ACEOF
11756 done
11759 # Solaris has libkstat which does not require root.
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11761 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11762 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11763 $as_echo_n "(cached) " >&6
11764 else
11765 ac_check_lib_save_LIBS=$LIBS
11766 LIBS="-lkstat $LIBS"
11767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11768 /* end confdefs.h. */
11770 /* Override any GCC internal prototype to avoid an error.
11771 Use char because int might match the return type of a GCC
11772 builtin and then its argument prototype would still apply. */
11773 #ifdef __cplusplus
11774 extern "C"
11775 #endif
11776 char kstat_open ();
11778 main ()
11780 return kstat_open ();
11782 return 0;
11784 _ACEOF
11785 if ac_fn_c_try_link "$LINENO"; then :
11786 ac_cv_lib_kstat_kstat_open=yes
11787 else
11788 ac_cv_lib_kstat_kstat_open=no
11790 rm -f core conftest.err conftest.$ac_objext \
11791 conftest$ac_exeext conftest.$ac_ext
11792 LIBS=$ac_check_lib_save_LIBS
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11795 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11796 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
11797 cat >>confdefs.h <<_ACEOF
11798 #define HAVE_LIBKSTAT 1
11799 _ACEOF
11801 LIBS="-lkstat $LIBS"
11805 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
11807 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11808 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11809 # to get the right answer into the cache.
11810 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11811 if test $ac_have_func = no; then
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
11813 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
11814 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
11815 $as_echo_n "(cached) " >&6
11816 else
11817 ac_check_lib_save_LIBS=$LIBS
11818 LIBS="-lelf $LIBS"
11819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11820 /* end confdefs.h. */
11822 /* Override any GCC internal prototype to avoid an error.
11823 Use char because int might match the return type of a GCC
11824 builtin and then its argument prototype would still apply. */
11825 #ifdef __cplusplus
11826 extern "C"
11827 #endif
11828 char elf_begin ();
11830 main ()
11832 return elf_begin ();
11834 return 0;
11836 _ACEOF
11837 if ac_fn_c_try_link "$LINENO"; then :
11838 ac_cv_lib_elf_elf_begin=yes
11839 else
11840 ac_cv_lib_elf_elf_begin=no
11842 rm -f core conftest.err conftest.$ac_objext \
11843 conftest$ac_exeext conftest.$ac_ext
11844 LIBS=$ac_check_lib_save_LIBS
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
11847 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11848 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
11849 LIBS="-lelf $LIBS"
11853 if test $ac_have_func = no; then
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
11855 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11856 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
11857 $as_echo_n "(cached) " >&6
11858 else
11859 ac_check_lib_save_LIBS=$LIBS
11860 LIBS="-lkvm $LIBS"
11861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11862 /* end confdefs.h. */
11864 /* Override any GCC internal prototype to avoid an error.
11865 Use char because int might match the return type of a GCC
11866 builtin and then its argument prototype would still apply. */
11867 #ifdef __cplusplus
11868 extern "C"
11869 #endif
11870 char kvm_open ();
11872 main ()
11874 return kvm_open ();
11876 return 0;
11878 _ACEOF
11879 if ac_fn_c_try_link "$LINENO"; then :
11880 ac_cv_lib_kvm_kvm_open=yes
11881 else
11882 ac_cv_lib_kvm_kvm_open=no
11884 rm -f core conftest.err conftest.$ac_objext \
11885 conftest$ac_exeext conftest.$ac_ext
11886 LIBS=$ac_check_lib_save_LIBS
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
11889 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11890 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
11891 LIBS="-lkvm $LIBS"
11894 # Check for the 4.4BSD definition of getloadavg.
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
11896 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
11897 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
11898 $as_echo_n "(cached) " >&6
11899 else
11900 ac_check_lib_save_LIBS=$LIBS
11901 LIBS="-lutil $LIBS"
11902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11903 /* end confdefs.h. */
11905 /* Override any GCC internal prototype to avoid an error.
11906 Use char because int might match the return type of a GCC
11907 builtin and then its argument prototype would still apply. */
11908 #ifdef __cplusplus
11909 extern "C"
11910 #endif
11911 char getloadavg ();
11913 main ()
11915 return getloadavg ();
11917 return 0;
11919 _ACEOF
11920 if ac_fn_c_try_link "$LINENO"; then :
11921 ac_cv_lib_util_getloadavg=yes
11922 else
11923 ac_cv_lib_util_getloadavg=no
11925 rm -f core conftest.err conftest.$ac_objext \
11926 conftest$ac_exeext conftest.$ac_ext
11927 LIBS=$ac_check_lib_save_LIBS
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
11930 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11931 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
11932 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
11937 if test $ac_have_func = no; then
11938 # There is a commonly available library for RS/6000 AIX.
11939 # Since it is not a standard part of AIX, it might be installed locally.
11940 ac_getloadavg_LIBS=$LIBS
11941 LIBS="-L/usr/local/lib $LIBS"
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
11943 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11944 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
11945 $as_echo_n "(cached) " >&6
11946 else
11947 ac_check_lib_save_LIBS=$LIBS
11948 LIBS="-lgetloadavg $LIBS"
11949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11950 /* end confdefs.h. */
11952 /* Override any GCC internal prototype to avoid an error.
11953 Use char because int might match the return type of a GCC
11954 builtin and then its argument prototype would still apply. */
11955 #ifdef __cplusplus
11956 extern "C"
11957 #endif
11958 char getloadavg ();
11960 main ()
11962 return getloadavg ();
11964 return 0;
11966 _ACEOF
11967 if ac_fn_c_try_link "$LINENO"; then :
11968 ac_cv_lib_getloadavg_getloadavg=yes
11969 else
11970 ac_cv_lib_getloadavg_getloadavg=no
11972 rm -f core conftest.err conftest.$ac_objext \
11973 conftest$ac_exeext conftest.$ac_ext
11974 LIBS=$ac_check_lib_save_LIBS
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11977 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11978 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
11979 LIBS="-lgetloadavg $LIBS"
11980 else
11981 LIBS=$ac_getloadavg_LIBS
11986 # Make sure it is really in the library, if we think we found it,
11987 # otherwise set up the replacement function.
11988 for ac_func in getloadavg
11989 do :
11990 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11991 if test "x$ac_cv_func_getloadavg" = x""yes; then :
11992 cat >>confdefs.h <<_ACEOF
11993 #define HAVE_GETLOADAVG 1
11994 _ACEOF
11996 else
11997 case " $LIBOBJS " in
11998 *" getloadavg.$ac_objext "* ) ;;
11999 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
12001 esac
12004 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
12006 # Figure out what our getloadavg.c needs.
12007 ac_have_func=no
12008 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
12009 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
12010 ac_have_func=yes
12012 $as_echo "#define DGUX 1" >>confdefs.h
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
12015 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
12016 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
12017 $as_echo_n "(cached) " >&6
12018 else
12019 ac_check_lib_save_LIBS=$LIBS
12020 LIBS="-ldgc $LIBS"
12021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12022 /* end confdefs.h. */
12024 /* Override any GCC internal prototype to avoid an error.
12025 Use char because int might match the return type of a GCC
12026 builtin and then its argument prototype would still apply. */
12027 #ifdef __cplusplus
12028 extern "C"
12029 #endif
12030 char dg_sys_info ();
12032 main ()
12034 return dg_sys_info ();
12036 return 0;
12038 _ACEOF
12039 if ac_fn_c_try_link "$LINENO"; then :
12040 ac_cv_lib_dgc_dg_sys_info=yes
12041 else
12042 ac_cv_lib_dgc_dg_sys_info=no
12044 rm -f core conftest.err conftest.$ac_objext \
12045 conftest$ac_exeext conftest.$ac_ext
12046 LIBS=$ac_check_lib_save_LIBS
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12049 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
12050 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
12051 cat >>confdefs.h <<_ACEOF
12052 #define HAVE_LIBDGC 1
12053 _ACEOF
12055 LIBS="-ldgc $LIBS"
12063 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
12064 if test "x$ac_cv_header_locale_h" = x""yes; then :
12069 for ac_func in setlocale
12070 do :
12071 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
12072 if test "x$ac_cv_func_setlocale" = x""yes; then :
12073 cat >>confdefs.h <<_ACEOF
12074 #define HAVE_SETLOCALE 1
12075 _ACEOF
12078 done
12081 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12082 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12083 # Irix 4.0.5F has the header but not the library.
12084 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
12085 ac_have_func=yes
12087 $as_echo "#define SVR4 1" >>confdefs.h
12091 if test $ac_have_func = no; then
12092 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
12093 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
12094 ac_have_func=yes
12096 $as_echo "#define UMAX 1" >>confdefs.h
12099 $as_echo "#define UMAX4_3 1" >>confdefs.h
12106 if test $ac_have_func = no; then
12107 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
12108 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
12109 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
12116 if test $ac_have_func = no; then
12117 for ac_header in mach/mach.h
12118 do :
12119 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
12120 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
12121 cat >>confdefs.h <<_ACEOF
12122 #define HAVE_MACH_MACH_H 1
12123 _ACEOF
12127 done
12131 for ac_header in nlist.h
12132 do :
12133 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
12134 if test "x$ac_cv_header_nlist_h" = x""yes; then :
12135 cat >>confdefs.h <<_ACEOF
12136 #define HAVE_NLIST_H 1
12137 _ACEOF
12138 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
12140 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
12142 cat >>confdefs.h <<_ACEOF
12143 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12144 _ACEOF
12147 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
12154 done
12157 done
12160 # Some definitions of getloadavg require that the program be installed setgid.
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
12162 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
12163 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
12164 $as_echo_n "(cached) " >&6
12165 else
12166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12167 /* end confdefs.h. */
12168 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
12169 #ifdef LDAV_PRIVILEGED
12170 Yowza Am I SETGID yet
12171 #endif
12172 _ACEOF
12173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12174 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
12175 ac_cv_func_getloadavg_setgid=yes
12176 else
12177 ac_cv_func_getloadavg_setgid=no
12179 rm -f conftest*
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
12183 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
12184 if test $ac_cv_func_getloadavg_setgid = yes; then
12185 NEED_SETGID=true
12187 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
12189 else
12190 NEED_SETGID=false
12193 if test $ac_cv_func_getloadavg_setgid = yes; then
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
12195 $as_echo_n "checking group of /dev/kmem... " >&6; }
12196 if test "${ac_cv_group_kmem+set}" = set; then :
12197 $as_echo_n "(cached) " >&6
12198 else
12199 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12200 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
12201 # If we got an error (system does not support symlinks), try without -L.
12202 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
12203 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
12204 | sed -ne 's/[ ][ ]*/ /g;
12205 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12206 / /s/.* //;p;'`
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
12210 $as_echo "$ac_cv_group_kmem" >&6; }
12211 KMEM_GROUP=$ac_cv_group_kmem
12213 if test "x$ac_save_LIBS" = x; then
12214 GETLOADAVG_LIBS=$LIBS
12215 else
12216 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
12218 LIBS=$ac_save_LIBS
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12223 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12224 if test "${ac_cv_sys_largefile_source+set}" = set; then :
12225 $as_echo_n "(cached) " >&6
12226 else
12227 while :; do
12228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12229 /* end confdefs.h. */
12230 #include <sys/types.h> /* for off_t */
12231 #include <stdio.h>
12233 main ()
12235 int (*fp) (FILE *, off_t, int) = fseeko;
12236 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12238 return 0;
12240 _ACEOF
12241 if ac_fn_c_try_link "$LINENO"; then :
12242 ac_cv_sys_largefile_source=no; break
12244 rm -f core conftest.err conftest.$ac_objext \
12245 conftest$ac_exeext conftest.$ac_ext
12246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12247 /* end confdefs.h. */
12248 #define _LARGEFILE_SOURCE 1
12249 #include <sys/types.h> /* for off_t */
12250 #include <stdio.h>
12252 main ()
12254 int (*fp) (FILE *, off_t, int) = fseeko;
12255 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12257 return 0;
12259 _ACEOF
12260 if ac_fn_c_try_link "$LINENO"; then :
12261 ac_cv_sys_largefile_source=1; break
12263 rm -f core conftest.err conftest.$ac_objext \
12264 conftest$ac_exeext conftest.$ac_ext
12265 ac_cv_sys_largefile_source=unknown
12266 break
12267 done
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12270 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12271 case $ac_cv_sys_largefile_source in #(
12272 no | unknown) ;;
12274 cat >>confdefs.h <<_ACEOF
12275 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12276 _ACEOF
12278 esac
12279 rm -rf conftest*
12281 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12282 # in glibc 2.1.3, but that breaks too many other things.
12283 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12284 if test $ac_cv_sys_largefile_source != unknown; then
12286 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12291 # Configure getopt.
12292 # getopt.m4 serial 10
12294 # The getopt module assume you want GNU getopt, with getopt_long etc,
12295 # rather than vanilla POSIX getopt. This means your your code should
12296 # always include <getopt.h> for the getopt prototypes.
12308 # Prerequisites of lib/getopt*.
12313 GETOPT_H=
12314 for ac_header in getopt.h
12315 do :
12316 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12317 if test "x$ac_cv_header_getopt_h" = x""yes; then :
12318 cat >>confdefs.h <<_ACEOF
12319 #define HAVE_GETOPT_H 1
12320 _ACEOF
12322 else
12323 GETOPT_H=getopt.h
12326 done
12328 if test -z "$GETOPT_H"; then
12329 for ac_func in getopt_long_only
12330 do :
12331 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
12332 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
12333 cat >>confdefs.h <<_ACEOF
12334 #define HAVE_GETOPT_LONG_ONLY 1
12335 _ACEOF
12337 else
12338 GETOPT_H=getopt.h
12340 done
12344 if test -z "$GETOPT_H"; then
12345 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
12347 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
12348 GETOPT_H=getopt.h
12353 if test -z "$GETOPT_H"; then
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
12355 $as_echo_n "checking for working GNU getopt function... " >&6; }
12356 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
12357 $as_echo_n "(cached) " >&6
12358 else
12359 if test "$cross_compiling" = yes; then :
12360 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
12362 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
12363 gl_cv_func_gnu_getopt=no
12364 else
12365 gl_cv_func_gnu_getopt=yes
12368 else
12369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12370 /* end confdefs.h. */
12371 #include <getopt.h>
12373 main ()
12376 char *myargv[3];
12377 myargv[0] = "conftest";
12378 myargv[1] = "-+";
12379 myargv[2] = 0;
12380 return getopt (2, myargv, "+a") != '?';
12383 return 0;
12385 _ACEOF
12386 if ac_fn_c_try_run "$LINENO"; then :
12387 gl_cv_func_gnu_getopt=yes
12388 else
12389 gl_cv_func_gnu_getopt=no
12391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12392 conftest.$ac_objext conftest.beam conftest.$ac_ext
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
12397 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
12398 if test "$gl_cv_func_gnu_getopt" = "no"; then
12399 GETOPT_H=getopt.h
12405 if test -n "$GETOPT_H"; then :
12408 GETOPT_H=getopt.h
12410 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12415 GETOPTOBJS='getopt.o getopt1.o'
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12422 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12423 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
12424 $as_echo_n "(cached) " >&6
12425 else
12426 # Use it with a single arg.
12427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12428 /* end confdefs.h. */
12429 $ac_includes_default
12431 main ()
12433 getpgrp (0);
12435 return 0;
12437 _ACEOF
12438 if ac_fn_c_try_compile "$LINENO"; then :
12439 ac_cv_func_getpgrp_void=no
12440 else
12441 ac_cv_func_getpgrp_void=yes
12443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12447 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12448 if test $ac_cv_func_getpgrp_void = yes; then
12450 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12455 for ac_func in strftime
12456 do :
12457 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12458 if test "x$ac_cv_func_strftime" = x""yes; then :
12459 cat >>confdefs.h <<_ACEOF
12460 #define HAVE_STRFTIME 1
12461 _ACEOF
12463 else
12464 # strftime is in -lintl on SCO UNIX.
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12466 $as_echo_n "checking for strftime in -lintl... " >&6; }
12467 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12468 $as_echo_n "(cached) " >&6
12469 else
12470 ac_check_lib_save_LIBS=$LIBS
12471 LIBS="-lintl $LIBS"
12472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12473 /* end confdefs.h. */
12475 /* Override any GCC internal prototype to avoid an error.
12476 Use char because int might match the return type of a GCC
12477 builtin and then its argument prototype would still apply. */
12478 #ifdef __cplusplus
12479 extern "C"
12480 #endif
12481 char strftime ();
12483 main ()
12485 return strftime ();
12487 return 0;
12489 _ACEOF
12490 if ac_fn_c_try_link "$LINENO"; then :
12491 ac_cv_lib_intl_strftime=yes
12492 else
12493 ac_cv_lib_intl_strftime=no
12495 rm -f core conftest.err conftest.$ac_objext \
12496 conftest$ac_exeext conftest.$ac_ext
12497 LIBS=$ac_check_lib_save_LIBS
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12500 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12501 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12502 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12504 LIBS="-lintl $LIBS"
12508 done
12511 # UNIX98 PTYs.
12512 for ac_func in grantpt
12513 do :
12514 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
12515 if test "x$ac_cv_func_grantpt" = x""yes; then :
12516 cat >>confdefs.h <<_ACEOF
12517 #define HAVE_GRANTPT 1
12518 _ACEOF
12521 done
12524 # PTY-related GNU extensions.
12525 for ac_func in getpt
12526 do :
12527 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
12528 if test "x$ac_cv_func_getpt" = x""yes; then :
12529 cat >>confdefs.h <<_ACEOF
12530 #define HAVE_GETPT 1
12531 _ACEOF
12534 done
12537 # Check this now, so that we will NOT find the above functions in ncurses.
12538 # That is because we have not set up to link ncurses in lib-src.
12539 # It's better to believe a function is not available
12540 # than to expect to find it in ncurses.
12541 # Also we need tputs and friends to be able to build at all.
12542 have_tputs_et_al=true
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12544 $as_echo_n "checking for library containing tputs... " >&6; }
12545 if test "${ac_cv_search_tputs+set}" = set; then :
12546 $as_echo_n "(cached) " >&6
12547 else
12548 ac_func_search_save_LIBS=$LIBS
12549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12550 /* end confdefs.h. */
12552 /* Override any GCC internal prototype to avoid an error.
12553 Use char because int might match the return type of a GCC
12554 builtin and then its argument prototype would still apply. */
12555 #ifdef __cplusplus
12556 extern "C"
12557 #endif
12558 char tputs ();
12560 main ()
12562 return tputs ();
12564 return 0;
12566 _ACEOF
12567 for ac_lib in '' ncurses terminfo termcap; do
12568 if test -z "$ac_lib"; then
12569 ac_res="none required"
12570 else
12571 ac_res=-l$ac_lib
12572 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12574 if ac_fn_c_try_link "$LINENO"; then :
12575 ac_cv_search_tputs=$ac_res
12577 rm -f core conftest.err conftest.$ac_objext \
12578 conftest$ac_exeext
12579 if test "${ac_cv_search_tputs+set}" = set; then :
12580 break
12582 done
12583 if test "${ac_cv_search_tputs+set}" = set; then :
12585 else
12586 ac_cv_search_tputs=no
12588 rm conftest.$ac_ext
12589 LIBS=$ac_func_search_save_LIBS
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
12592 $as_echo "$ac_cv_search_tputs" >&6; }
12593 ac_res=$ac_cv_search_tputs
12594 if test "$ac_res" != no; then :
12595 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12597 else
12598 have_tputs_et_al=false
12601 if test "$have_tputs_et_al" != true; then
12602 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
12603 Maybe some development libraries/packages are missing? Try installing
12604 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
12606 # Must define this when any termcap library is found.
12608 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
12610 ## FIXME This was the cpp logic, but I am not sure it is right.
12611 ## The above test has not necessarily found libncurses.
12612 HAVE_LIBNCURSES=yes
12614 ## Use terminfo instead of termcap?
12615 ## Note only system files NOT using terminfo are:
12616 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
12617 ## darwin|gnu without ncurses.
12618 TERMINFO=no
12619 LIBS_TERMCAP=
12620 case "$opsys" in
12621 ## cygwin: Fewer environment variables to go wrong, more terminal types.
12622 ## hpux10-20: Use the system provided termcap(3) library.
12623 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
12624 ## is necessary. Otherwise Emacs dumps core when run -nw.
12625 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
12627 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
12628 ## The ncurses library has been moved out of the System framework in
12629 ## Mac OS X 10.2. So if configure detects it, set the command-line
12630 ## option to use it.
12631 darwin|gnu*)
12632 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
12633 if test "x$HAVE_LIBNCURSES" = "xyes"; then
12634 TERMINFO=yes
12635 LIBS_TERMCAP="-lncurses"
12639 freebsd)
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
12641 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
12642 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
12643 $as_echo_n "(cached) " >&6
12644 else
12645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646 /* end confdefs.h. */
12647 #include <osreldate.h>
12649 main ()
12651 #if __FreeBSD_version < 400000
12652 fail;
12653 #endif
12656 return 0;
12658 _ACEOF
12659 if ac_fn_c_try_link "$LINENO"; then :
12660 emacs_cv_freebsd_terminfo=yes
12661 else
12662 emacs_cv_freebsd_terminfo=no
12664 rm -f core conftest.err conftest.$ac_objext \
12665 conftest$ac_exeext conftest.$ac_ext
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
12670 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
12672 if test $emacs_cv_freebsd_terminfo = yes; then
12673 TERMINFO=yes
12674 LIBS_TERMCAP="-lncurses"
12675 else
12676 LIBS_TERMCAP="-ltermcap"
12680 netbsd)
12681 if test $ac_cv_search_tputs = -lterminfo; then
12682 TERMINFO=yes
12683 LIBS_TERMCAP="-lterminfo"
12684 else
12685 LIBS_TERMCAP="-ltermcap"
12689 esac
12691 case "$opsys" in
12692 ## hpux: Make sure we get select from libc rather than from libcurses
12693 ## because libcurses on HPUX 10.10 has a broken version of select.
12694 ## We used to use -lc -lcurses, but this may be cleaner.
12695 hpux*) LIBS_TERMCAP="-ltermcap" ;;
12697 openbsd) LIBS_TERMCAP="-lncurses" ;;
12699 ## Must use system termcap, if we use any termcap. It does special things.
12700 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
12701 esac
12703 TERMCAP_OBJ=tparam.o
12704 if test $TERMINFO = yes; then
12706 $as_echo "#define TERMINFO 1" >>confdefs.h
12709 ## Default used to be -ltermcap. Add a case above if need something else.
12710 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
12712 TERMCAP_OBJ=terminfo.o
12718 # Do we have res_init, for detecting changes in /etc/resolv.conf?
12719 resolv=no
12720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12721 /* end confdefs.h. */
12722 #include <netinet/in.h>
12723 #include <arpa/nameser.h>
12724 #include <resolv.h>
12726 main ()
12728 return res_init();
12730 return 0;
12732 _ACEOF
12733 if ac_fn_c_try_link "$LINENO"; then :
12734 have_res_init=yes
12735 else
12736 have_res_init=no
12738 rm -f core conftest.err conftest.$ac_objext \
12739 conftest$ac_exeext conftest.$ac_ext
12740 if test "$have_res_init" = no; then
12741 OLIBS="$LIBS"
12742 LIBS="$LIBS -lresolv"
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
12744 $as_echo_n "checking for res_init with -lresolv... " >&6; }
12745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12746 /* end confdefs.h. */
12747 #include <netinet/in.h>
12748 #include <arpa/nameser.h>
12749 #include <resolv.h>
12751 main ()
12753 return res_init();
12755 return 0;
12757 _ACEOF
12758 if ac_fn_c_try_link "$LINENO"; then :
12759 have_res_init=yes
12760 else
12761 have_res_init=no
12763 rm -f core conftest.err conftest.$ac_objext \
12764 conftest$ac_exeext conftest.$ac_ext
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
12766 $as_echo "$have_res_init" >&6; }
12767 if test "$have_res_init" = yes ; then
12768 resolv=yes
12770 LIBS="$OLIBS"
12773 if test "$have_res_init" = yes; then
12775 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
12779 # Do we need the Hesiod library to provide the support routines?
12780 LIBHESIOD=
12781 if test "$with_hesiod" != no ; then
12782 # Don't set $LIBS here -- see comments above. FIXME which comments?
12783 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
12784 if test "x$ac_cv_func_res_send" = x""yes; then :
12786 else
12787 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
12788 if test "x$ac_cv_func___res_send" = x""yes; then :
12790 else
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
12792 $as_echo_n "checking for res_send in -lresolv... " >&6; }
12793 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
12794 $as_echo_n "(cached) " >&6
12795 else
12796 ac_check_lib_save_LIBS=$LIBS
12797 LIBS="-lresolv $LIBS"
12798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799 /* end confdefs.h. */
12801 /* Override any GCC internal prototype to avoid an error.
12802 Use char because int might match the return type of a GCC
12803 builtin and then its argument prototype would still apply. */
12804 #ifdef __cplusplus
12805 extern "C"
12806 #endif
12807 char res_send ();
12809 main ()
12811 return res_send ();
12813 return 0;
12815 _ACEOF
12816 if ac_fn_c_try_link "$LINENO"; then :
12817 ac_cv_lib_resolv_res_send=yes
12818 else
12819 ac_cv_lib_resolv_res_send=no
12821 rm -f core conftest.err conftest.$ac_objext \
12822 conftest$ac_exeext conftest.$ac_ext
12823 LIBS=$ac_check_lib_save_LIBS
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
12826 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
12827 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
12828 resolv=yes
12829 else
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
12831 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
12832 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
12833 $as_echo_n "(cached) " >&6
12834 else
12835 ac_check_lib_save_LIBS=$LIBS
12836 LIBS="-lresolv $LIBS"
12837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12838 /* end confdefs.h. */
12840 /* Override any GCC internal prototype to avoid an error.
12841 Use char because int might match the return type of a GCC
12842 builtin and then its argument prototype would still apply. */
12843 #ifdef __cplusplus
12844 extern "C"
12845 #endif
12846 char __res_send ();
12848 main ()
12850 return __res_send ();
12852 return 0;
12854 _ACEOF
12855 if ac_fn_c_try_link "$LINENO"; then :
12856 ac_cv_lib_resolv___res_send=yes
12857 else
12858 ac_cv_lib_resolv___res_send=no
12860 rm -f core conftest.err conftest.$ac_objext \
12861 conftest$ac_exeext conftest.$ac_ext
12862 LIBS=$ac_check_lib_save_LIBS
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
12865 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
12866 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
12867 resolv=yes
12876 if test "$resolv" = yes ; then
12877 RESOLVLIB=-lresolv
12878 else
12879 RESOLVLIB=
12881 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
12882 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
12884 else
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
12886 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
12887 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
12888 $as_echo_n "(cached) " >&6
12889 else
12890 ac_check_lib_save_LIBS=$LIBS
12891 LIBS="-lhesiod $RESOLVLIB $LIBS"
12892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12893 /* end confdefs.h. */
12895 /* Override any GCC internal prototype to avoid an error.
12896 Use char because int might match the return type of a GCC
12897 builtin and then its argument prototype would still apply. */
12898 #ifdef __cplusplus
12899 extern "C"
12900 #endif
12901 char hes_getmailhost ();
12903 main ()
12905 return hes_getmailhost ();
12907 return 0;
12909 _ACEOF
12910 if ac_fn_c_try_link "$LINENO"; then :
12911 ac_cv_lib_hesiod_hes_getmailhost=yes
12912 else
12913 ac_cv_lib_hesiod_hes_getmailhost=no
12915 rm -f core conftest.err conftest.$ac_objext \
12916 conftest$ac_exeext conftest.$ac_ext
12917 LIBS=$ac_check_lib_save_LIBS
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12920 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
12921 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
12922 hesiod=yes
12923 else
12930 if test x"$hesiod" = xyes; then
12932 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
12934 LIBHESIOD=-lhesiod
12939 # Do we need libresolv (due to res_init or Hesiod)?
12940 if test "$resolv" = yes ; then
12942 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
12944 LIBRESOLV=-lresolv
12945 else
12946 LIBRESOLV=
12950 # These tell us which Kerberos-related libraries to use.
12951 COM_ERRLIB=
12952 CRYPTOLIB=
12953 KRB5LIB=
12954 DESLIB=
12955 KRB4LIB=
12957 if test "${with_kerberos}" != no; then
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
12959 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
12960 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
12961 $as_echo_n "(cached) " >&6
12962 else
12963 ac_check_lib_save_LIBS=$LIBS
12964 LIBS="-lcom_err $LIBS"
12965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12966 /* end confdefs.h. */
12968 /* Override any GCC internal prototype to avoid an error.
12969 Use char because int might match the return type of a GCC
12970 builtin and then its argument prototype would still apply. */
12971 #ifdef __cplusplus
12972 extern "C"
12973 #endif
12974 char com_err ();
12976 main ()
12978 return com_err ();
12980 return 0;
12982 _ACEOF
12983 if ac_fn_c_try_link "$LINENO"; then :
12984 ac_cv_lib_com_err_com_err=yes
12985 else
12986 ac_cv_lib_com_err_com_err=no
12988 rm -f core conftest.err conftest.$ac_objext \
12989 conftest$ac_exeext conftest.$ac_ext
12990 LIBS=$ac_check_lib_save_LIBS
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
12993 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12994 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
12995 have_com_err=yes
12996 else
12997 have_com_err=no
13000 if test $have_com_err = yes; then
13001 COM_ERRLIB=-lcom_err
13002 LIBS="$COM_ERRLIB $LIBS"
13004 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13008 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13009 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13010 $as_echo_n "(cached) " >&6
13011 else
13012 ac_check_lib_save_LIBS=$LIBS
13013 LIBS="-lcrypto $LIBS"
13014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13015 /* end confdefs.h. */
13017 /* Override any GCC internal prototype to avoid an error.
13018 Use char because int might match the return type of a GCC
13019 builtin and then its argument prototype would still apply. */
13020 #ifdef __cplusplus
13021 extern "C"
13022 #endif
13023 char mit_des_cbc_encrypt ();
13025 main ()
13027 return mit_des_cbc_encrypt ();
13029 return 0;
13031 _ACEOF
13032 if ac_fn_c_try_link "$LINENO"; then :
13033 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13034 else
13035 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13037 rm -f core conftest.err conftest.$ac_objext \
13038 conftest$ac_exeext conftest.$ac_ext
13039 LIBS=$ac_check_lib_save_LIBS
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13042 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13043 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
13044 have_crypto=yes
13045 else
13046 have_crypto=no
13049 if test $have_crypto = yes; then
13050 CRYPTOLIB=-lcrypto
13051 LIBS="$CRYPTOLIB $LIBS"
13053 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13057 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13058 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13059 $as_echo_n "(cached) " >&6
13060 else
13061 ac_check_lib_save_LIBS=$LIBS
13062 LIBS="-lk5crypto $LIBS"
13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h. */
13066 /* Override any GCC internal prototype to avoid an error.
13067 Use char because int might match the return type of a GCC
13068 builtin and then its argument prototype would still apply. */
13069 #ifdef __cplusplus
13070 extern "C"
13071 #endif
13072 char mit_des_cbc_encrypt ();
13074 main ()
13076 return mit_des_cbc_encrypt ();
13078 return 0;
13080 _ACEOF
13081 if ac_fn_c_try_link "$LINENO"; then :
13082 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
13083 else
13084 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
13086 rm -f core conftest.err conftest.$ac_objext \
13087 conftest$ac_exeext conftest.$ac_ext
13088 LIBS=$ac_check_lib_save_LIBS
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13091 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13092 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
13093 have_k5crypto=yes
13094 else
13095 have_k5crypto=no
13098 if test $have_k5crypto = yes; then
13099 CRYPTOLIB=-lk5crypto
13100 LIBS="$CRYPTOLIB $LIBS"
13102 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13106 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13107 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13108 $as_echo_n "(cached) " >&6
13109 else
13110 ac_check_lib_save_LIBS=$LIBS
13111 LIBS="-lkrb5 $LIBS"
13112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113 /* end confdefs.h. */
13115 /* Override any GCC internal prototype to avoid an error.
13116 Use char because int might match the return type of a GCC
13117 builtin and then its argument prototype would still apply. */
13118 #ifdef __cplusplus
13119 extern "C"
13120 #endif
13121 char krb5_init_context ();
13123 main ()
13125 return krb5_init_context ();
13127 return 0;
13129 _ACEOF
13130 if ac_fn_c_try_link "$LINENO"; then :
13131 ac_cv_lib_krb5_krb5_init_context=yes
13132 else
13133 ac_cv_lib_krb5_krb5_init_context=no
13135 rm -f core conftest.err conftest.$ac_objext \
13136 conftest$ac_exeext conftest.$ac_ext
13137 LIBS=$ac_check_lib_save_LIBS
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13140 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13141 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
13142 have_krb5=yes
13143 else
13144 have_krb5=no
13147 if test $have_krb5=yes; then
13148 KRB5LIB=-lkrb5
13149 LIBS="$KRB5LIB $LIBS"
13151 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13154 if test "${with_kerberos5}" = no; then
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13156 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13157 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
13158 $as_echo_n "(cached) " >&6
13159 else
13160 ac_check_lib_save_LIBS=$LIBS
13161 LIBS="-ldes425 $LIBS"
13162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13163 /* end confdefs.h. */
13165 /* Override any GCC internal prototype to avoid an error.
13166 Use char because int might match the return type of a GCC
13167 builtin and then its argument prototype would still apply. */
13168 #ifdef __cplusplus
13169 extern "C"
13170 #endif
13171 char des_cbc_encrypt ();
13173 main ()
13175 return des_cbc_encrypt ();
13177 return 0;
13179 _ACEOF
13180 if ac_fn_c_try_link "$LINENO"; then :
13181 ac_cv_lib_des425_des_cbc_encrypt=yes
13182 else
13183 ac_cv_lib_des425_des_cbc_encrypt=no
13185 rm -f core conftest.err conftest.$ac_objext \
13186 conftest$ac_exeext conftest.$ac_ext
13187 LIBS=$ac_check_lib_save_LIBS
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13190 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13191 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
13192 have_des425=yes
13193 else
13194 have_des425=no
13197 if test $have_des425 = yes; then
13198 DESLIB=-ldes425
13199 LIBS="$DESLIB $LIBS"
13201 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13203 else
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13205 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13206 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
13207 $as_echo_n "(cached) " >&6
13208 else
13209 ac_check_lib_save_LIBS=$LIBS
13210 LIBS="-ldes $LIBS"
13211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13212 /* end confdefs.h. */
13214 /* Override any GCC internal prototype to avoid an error.
13215 Use char because int might match the return type of a GCC
13216 builtin and then its argument prototype would still apply. */
13217 #ifdef __cplusplus
13218 extern "C"
13219 #endif
13220 char des_cbc_encrypt ();
13222 main ()
13224 return des_cbc_encrypt ();
13226 return 0;
13228 _ACEOF
13229 if ac_fn_c_try_link "$LINENO"; then :
13230 ac_cv_lib_des_des_cbc_encrypt=yes
13231 else
13232 ac_cv_lib_des_des_cbc_encrypt=no
13234 rm -f core conftest.err conftest.$ac_objext \
13235 conftest$ac_exeext conftest.$ac_ext
13236 LIBS=$ac_check_lib_save_LIBS
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13239 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13240 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
13241 have_des=yes
13242 else
13243 have_des=no
13246 if test $have_des = yes; then
13247 DESLIB=-ldes
13248 LIBS="$DESLIB $LIBS"
13250 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13255 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13256 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
13257 $as_echo_n "(cached) " >&6
13258 else
13259 ac_check_lib_save_LIBS=$LIBS
13260 LIBS="-lkrb4 $LIBS"
13261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13262 /* end confdefs.h. */
13264 /* Override any GCC internal prototype to avoid an error.
13265 Use char because int might match the return type of a GCC
13266 builtin and then its argument prototype would still apply. */
13267 #ifdef __cplusplus
13268 extern "C"
13269 #endif
13270 char krb_get_cred ();
13272 main ()
13274 return krb_get_cred ();
13276 return 0;
13278 _ACEOF
13279 if ac_fn_c_try_link "$LINENO"; then :
13280 ac_cv_lib_krb4_krb_get_cred=yes
13281 else
13282 ac_cv_lib_krb4_krb_get_cred=no
13284 rm -f core conftest.err conftest.$ac_objext \
13285 conftest$ac_exeext conftest.$ac_ext
13286 LIBS=$ac_check_lib_save_LIBS
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13289 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13290 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
13291 have_krb4=yes
13292 else
13293 have_krb4=no
13296 if test $have_krb4 = yes; then
13297 KRB4LIB=-lkrb4
13298 LIBS="$KRB4LIB $LIBS"
13300 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13302 else
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13304 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13305 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
13306 $as_echo_n "(cached) " >&6
13307 else
13308 ac_check_lib_save_LIBS=$LIBS
13309 LIBS="-lkrb $LIBS"
13310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13311 /* end confdefs.h. */
13313 /* Override any GCC internal prototype to avoid an error.
13314 Use char because int might match the return type of a GCC
13315 builtin and then its argument prototype would still apply. */
13316 #ifdef __cplusplus
13317 extern "C"
13318 #endif
13319 char krb_get_cred ();
13321 main ()
13323 return krb_get_cred ();
13325 return 0;
13327 _ACEOF
13328 if ac_fn_c_try_link "$LINENO"; then :
13329 ac_cv_lib_krb_krb_get_cred=yes
13330 else
13331 ac_cv_lib_krb_krb_get_cred=no
13333 rm -f core conftest.err conftest.$ac_objext \
13334 conftest$ac_exeext conftest.$ac_ext
13335 LIBS=$ac_check_lib_save_LIBS
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13338 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13339 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
13340 have_krb=yes
13341 else
13342 have_krb=no
13345 if test $have_krb = yes; then
13346 KRB4LIB=-lkrb
13347 LIBS="$KRB4LIB $LIBS"
13349 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
13355 if test "${with_kerberos5}" != no; then
13356 for ac_header in krb5.h
13357 do :
13358 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13359 if test "x$ac_cv_header_krb5_h" = x""yes; then :
13360 cat >>confdefs.h <<_ACEOF
13361 #define HAVE_KRB5_H 1
13362 _ACEOF
13363 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13365 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
13367 cat >>confdefs.h <<_ACEOF
13368 #define HAVE_KRB5_ERROR_TEXT 1
13369 _ACEOF
13373 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13375 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
13377 cat >>confdefs.h <<_ACEOF
13378 #define HAVE_KRB5_ERROR_E_TEXT 1
13379 _ACEOF
13386 done
13388 else
13389 for ac_header in des.h
13390 do :
13391 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
13392 if test "x$ac_cv_header_des_h" = x""yes; then :
13393 cat >>confdefs.h <<_ACEOF
13394 #define HAVE_DES_H 1
13395 _ACEOF
13397 else
13398 for ac_header in kerberosIV/des.h
13399 do :
13400 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
13401 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
13402 cat >>confdefs.h <<_ACEOF
13403 #define HAVE_KERBEROSIV_DES_H 1
13404 _ACEOF
13406 else
13407 for ac_header in kerberos/des.h
13408 do :
13409 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
13410 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
13411 cat >>confdefs.h <<_ACEOF
13412 #define HAVE_KERBEROS_DES_H 1
13413 _ACEOF
13417 done
13421 done
13425 done
13427 for ac_header in krb.h
13428 do :
13429 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13430 if test "x$ac_cv_header_krb_h" = x""yes; then :
13431 cat >>confdefs.h <<_ACEOF
13432 #define HAVE_KRB_H 1
13433 _ACEOF
13435 else
13436 for ac_header in kerberosIV/krb.h
13437 do :
13438 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13439 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
13440 cat >>confdefs.h <<_ACEOF
13441 #define HAVE_KERBEROSIV_KRB_H 1
13442 _ACEOF
13444 else
13445 for ac_header in kerberos/krb.h
13446 do :
13447 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13448 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
13449 cat >>confdefs.h <<_ACEOF
13450 #define HAVE_KERBEROS_KRB_H 1
13451 _ACEOF
13455 done
13459 done
13463 done
13466 for ac_header in com_err.h
13467 do :
13468 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13469 if test "x$ac_cv_header_com_err_h" = x""yes; then :
13470 cat >>confdefs.h <<_ACEOF
13471 #define HAVE_COM_ERR_H 1
13472 _ACEOF
13476 done
13486 # Solaris requires -lintl if you want strerror (which calls dgettext)
13487 # to return localized messages.
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13489 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13490 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
13491 $as_echo_n "(cached) " >&6
13492 else
13493 ac_check_lib_save_LIBS=$LIBS
13494 LIBS="-lintl $LIBS"
13495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13496 /* end confdefs.h. */
13498 /* Override any GCC internal prototype to avoid an error.
13499 Use char because int might match the return type of a GCC
13500 builtin and then its argument prototype would still apply. */
13501 #ifdef __cplusplus
13502 extern "C"
13503 #endif
13504 char dgettext ();
13506 main ()
13508 return dgettext ();
13510 return 0;
13512 _ACEOF
13513 if ac_fn_c_try_link "$LINENO"; then :
13514 ac_cv_lib_intl_dgettext=yes
13515 else
13516 ac_cv_lib_intl_dgettext=no
13518 rm -f core conftest.err conftest.$ac_objext \
13519 conftest$ac_exeext conftest.$ac_ext
13520 LIBS=$ac_check_lib_save_LIBS
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13523 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13524 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
13525 cat >>confdefs.h <<_ACEOF
13526 #define HAVE_LIBINTL 1
13527 _ACEOF
13529 LIBS="-lintl $LIBS"
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13535 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13536 if test "${emacs_cv_localtime_cache+set}" = set; then :
13537 $as_echo_n "(cached) " >&6
13538 else
13539 if test x$ac_cv_func_tzset = xyes; then
13540 if test "$cross_compiling" = yes; then :
13541 # If we have tzset, assume the worst when cross-compiling.
13542 emacs_cv_localtime_cache=yes
13543 else
13544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13545 /* end confdefs.h. */
13546 #include <time.h>
13547 extern char **environ;
13548 unset_TZ ()
13550 char **from, **to;
13551 for (to = from = environ; (*to = *from); from++)
13552 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
13553 to++;
13555 char TZ_GMT0[] = "TZ=GMT0";
13556 char TZ_PST8[] = "TZ=PST8";
13557 main()
13559 time_t now = time ((time_t *) 0);
13560 int hour_GMT0, hour_unset;
13561 if (putenv (TZ_GMT0) != 0)
13562 exit (1);
13563 hour_GMT0 = localtime (&now)->tm_hour;
13564 unset_TZ ();
13565 hour_unset = localtime (&now)->tm_hour;
13566 if (putenv (TZ_PST8) != 0)
13567 exit (1);
13568 if (localtime (&now)->tm_hour == hour_GMT0)
13569 exit (1);
13570 unset_TZ ();
13571 if (localtime (&now)->tm_hour != hour_unset)
13572 exit (1);
13573 exit (0);
13575 _ACEOF
13576 if ac_fn_c_try_run "$LINENO"; then :
13577 emacs_cv_localtime_cache=no
13578 else
13579 emacs_cv_localtime_cache=yes
13581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13582 conftest.$ac_objext conftest.beam conftest.$ac_ext
13585 else
13586 # If we lack tzset, report that localtime does not cache TZ,
13587 # since we can't invalidate the cache if we don't have tzset.
13588 emacs_cv_localtime_cache=no
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
13592 $as_echo "$emacs_cv_localtime_cache" >&6; }
13593 if test $emacs_cv_localtime_cache = yes; then
13595 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
13599 if test "x$HAVE_TIMEVAL" = xyes; then
13600 for ac_func in gettimeofday
13601 do :
13602 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
13603 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
13604 cat >>confdefs.h <<_ACEOF
13605 #define HAVE_GETTIMEOFDAY 1
13606 _ACEOF
13609 done
13611 if test $ac_cv_func_gettimeofday = yes; then
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
13613 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
13614 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
13615 $as_echo_n "(cached) " >&6
13616 else
13617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13618 /* end confdefs.h. */
13620 #ifdef TIME_WITH_SYS_TIME
13621 #include <sys/time.h>
13622 #include <time.h>
13623 #else
13624 #ifdef HAVE_SYS_TIME_H
13625 #include <sys/time.h>
13626 #else
13627 #include <time.h>
13628 #endif
13629 #endif
13631 main ()
13633 struct timeval time;
13634 gettimeofday (&time, 0);
13636 return 0;
13638 _ACEOF
13639 if ac_fn_c_try_compile "$LINENO"; then :
13640 emacs_cv_gettimeofday_two_arguments=yes
13641 else
13642 emacs_cv_gettimeofday_two_arguments=no
13644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
13647 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
13648 if test $emacs_cv_gettimeofday_two_arguments = no; then
13650 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
13656 ok_so_far=yes
13657 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
13658 if test "x$ac_cv_func_socket" = x""yes; then :
13660 else
13661 ok_so_far=no
13664 if test $ok_so_far = yes; then
13665 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
13666 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
13668 else
13669 ok_so_far=no
13674 if test $ok_so_far = yes; then
13675 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
13676 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
13678 else
13679 ok_so_far=no
13684 if test $ok_so_far = yes; then
13686 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
13690 for ac_header in sys/ioctl.h
13691 do :
13692 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
13693 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
13694 cat >>confdefs.h <<_ACEOF
13695 #define HAVE_SYS_IOCTL_H 1
13696 _ACEOF
13700 done
13703 if test -f /usr/lpp/X11/bin/smt.exp; then
13705 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
13710 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
13711 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13713 $as_echo "yes" >&6; }
13715 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
13717 else
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13719 $as_echo "no" >&6; }
13722 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13723 if test "x$ac_cv_type_pid_t" = x""yes; then :
13725 else
13727 cat >>confdefs.h <<_ACEOF
13728 #define pid_t int
13729 _ACEOF
13733 for ac_header in vfork.h
13734 do :
13735 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13736 if test "x$ac_cv_header_vfork_h" = x""yes; then :
13737 cat >>confdefs.h <<_ACEOF
13738 #define HAVE_VFORK_H 1
13739 _ACEOF
13743 done
13745 for ac_func in fork vfork
13746 do :
13747 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13748 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13749 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13750 cat >>confdefs.h <<_ACEOF
13751 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13752 _ACEOF
13755 done
13757 if test "x$ac_cv_func_fork" = xyes; then
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13759 $as_echo_n "checking for working fork... " >&6; }
13760 if test "${ac_cv_func_fork_works+set}" = set; then :
13761 $as_echo_n "(cached) " >&6
13762 else
13763 if test "$cross_compiling" = yes; then :
13764 ac_cv_func_fork_works=cross
13765 else
13766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13767 /* end confdefs.h. */
13768 $ac_includes_default
13770 main ()
13773 /* By Ruediger Kuhlmann. */
13774 return fork () < 0;
13777 return 0;
13779 _ACEOF
13780 if ac_fn_c_try_run "$LINENO"; then :
13781 ac_cv_func_fork_works=yes
13782 else
13783 ac_cv_func_fork_works=no
13785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13786 conftest.$ac_objext conftest.beam conftest.$ac_ext
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13791 $as_echo "$ac_cv_func_fork_works" >&6; }
13793 else
13794 ac_cv_func_fork_works=$ac_cv_func_fork
13796 if test "x$ac_cv_func_fork_works" = xcross; then
13797 case $host in
13798 *-*-amigaos* | *-*-msdosdjgpp*)
13799 # Override, as these systems have only a dummy fork() stub
13800 ac_cv_func_fork_works=no
13803 ac_cv_func_fork_works=yes
13805 esac
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13807 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13809 ac_cv_func_vfork_works=$ac_cv_func_vfork
13810 if test "x$ac_cv_func_vfork" = xyes; then
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13812 $as_echo_n "checking for working vfork... " >&6; }
13813 if test "${ac_cv_func_vfork_works+set}" = set; then :
13814 $as_echo_n "(cached) " >&6
13815 else
13816 if test "$cross_compiling" = yes; then :
13817 ac_cv_func_vfork_works=cross
13818 else
13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820 /* end confdefs.h. */
13821 /* Thanks to Paul Eggert for this test. */
13822 $ac_includes_default
13823 #include <sys/wait.h>
13824 #ifdef HAVE_VFORK_H
13825 # include <vfork.h>
13826 #endif
13827 /* On some sparc systems, changes by the child to local and incoming
13828 argument registers are propagated back to the parent. The compiler
13829 is told about this with #include <vfork.h>, but some compilers
13830 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13831 static variable whose address is put into a register that is
13832 clobbered by the vfork. */
13833 static void
13834 #ifdef __cplusplus
13835 sparc_address_test (int arg)
13836 # else
13837 sparc_address_test (arg) int arg;
13838 #endif
13840 static pid_t child;
13841 if (!child) {
13842 child = vfork ();
13843 if (child < 0) {
13844 perror ("vfork");
13845 _exit(2);
13847 if (!child) {
13848 arg = getpid();
13849 write(-1, "", 0);
13850 _exit (arg);
13856 main ()
13858 pid_t parent = getpid ();
13859 pid_t child;
13861 sparc_address_test (0);
13863 child = vfork ();
13865 if (child == 0) {
13866 /* Here is another test for sparc vfork register problems. This
13867 test uses lots of local variables, at least as many local
13868 variables as main has allocated so far including compiler
13869 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13870 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13871 reuse the register of parent for one of the local variables,
13872 since it will think that parent can't possibly be used any more
13873 in this routine. Assigning to the local variable will thus
13874 munge parent in the parent process. */
13875 pid_t
13876 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13877 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13878 /* Convince the compiler that p..p7 are live; otherwise, it might
13879 use the same hardware register for all 8 local variables. */
13880 if (p != p1 || p != p2 || p != p3 || p != p4
13881 || p != p5 || p != p6 || p != p7)
13882 _exit(1);
13884 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13885 from child file descriptors. If the child closes a descriptor
13886 before it execs or exits, this munges the parent's descriptor
13887 as well. Test for this by closing stdout in the child. */
13888 _exit(close(fileno(stdout)) != 0);
13889 } else {
13890 int status;
13891 struct stat st;
13893 while (wait(&status) != child)
13895 return (
13896 /* Was there some problem with vforking? */
13897 child < 0
13899 /* Did the child fail? (This shouldn't happen.) */
13900 || status
13902 /* Did the vfork/compiler bug occur? */
13903 || parent != getpid()
13905 /* Did the file descriptor bug occur? */
13906 || fstat(fileno(stdout), &st) != 0
13910 _ACEOF
13911 if ac_fn_c_try_run "$LINENO"; then :
13912 ac_cv_func_vfork_works=yes
13913 else
13914 ac_cv_func_vfork_works=no
13916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13917 conftest.$ac_objext conftest.beam conftest.$ac_ext
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13922 $as_echo "$ac_cv_func_vfork_works" >&6; }
13925 if test "x$ac_cv_func_fork_works" = xcross; then
13926 ac_cv_func_vfork_works=$ac_cv_func_vfork
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13928 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13931 if test "x$ac_cv_func_vfork_works" = xyes; then
13933 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13935 else
13937 $as_echo "#define vfork fork" >>confdefs.h
13940 if test "x$ac_cv_func_fork_works" = xyes; then
13942 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13948 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13949 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
13950 $as_echo_n "(cached) " >&6
13951 else
13952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13953 /* end confdefs.h. */
13954 #include <langinfo.h>
13956 main ()
13958 char* cs = nl_langinfo(CODESET);
13960 return 0;
13962 _ACEOF
13963 if ac_fn_c_try_link "$LINENO"; then :
13964 emacs_cv_langinfo_codeset=yes
13965 else
13966 emacs_cv_langinfo_codeset=no
13968 rm -f core conftest.err conftest.$ac_objext \
13969 conftest$ac_exeext conftest.$ac_ext
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
13973 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
13974 if test $emacs_cv_langinfo_codeset = yes; then
13976 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13980 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13981 if test "x$ac_cv_type_size_t" = x""yes; then :
13983 cat >>confdefs.h <<_ACEOF
13984 #define HAVE_SIZE_T 1
13985 _ACEOF
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13992 $as_echo_n "checking for mbstate_t... " >&6; }
13993 if test "${ac_cv_type_mbstate_t+set}" = set; then :
13994 $as_echo_n "(cached) " >&6
13995 else
13996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997 /* end confdefs.h. */
13998 $ac_includes_default
13999 # include <wchar.h>
14001 main ()
14003 mbstate_t x; return sizeof x;
14005 return 0;
14007 _ACEOF
14008 if ac_fn_c_try_compile "$LINENO"; then :
14009 ac_cv_type_mbstate_t=yes
14010 else
14011 ac_cv_type_mbstate_t=no
14013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14016 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14017 if test $ac_cv_type_mbstate_t = yes; then
14019 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14021 else
14023 $as_echo "#define mbstate_t int" >>confdefs.h
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
14028 $as_echo_n "checking for C restrict keyword... " >&6; }
14029 if test "${emacs_cv_c_restrict+set}" = set; then :
14030 $as_echo_n "(cached) " >&6
14031 else
14032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14033 /* end confdefs.h. */
14034 void fred (int *restrict x);
14036 main ()
14040 return 0;
14042 _ACEOF
14043 if ac_fn_c_try_compile "$LINENO"; then :
14044 emacs_cv_c_restrict=yes
14045 else
14046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14047 /* end confdefs.h. */
14048 void fred (int *__restrict x);
14050 main ()
14054 return 0;
14056 _ACEOF
14057 if ac_fn_c_try_compile "$LINENO"; then :
14058 emacs_cv_c_restrict=__restrict
14059 else
14060 emacs_cv_c_restrict=no
14062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
14067 $as_echo "$emacs_cv_c_restrict" >&6; }
14068 case "$emacs_cv_c_restrict" in
14069 yes) emacs_restrict=restrict;;
14070 no) emacs_restrict="";;
14071 *) emacs_restrict="$emacs_cv_c_restrict";;
14072 esac
14073 if test "$emacs_restrict" != __restrict; then
14075 cat >>confdefs.h <<_ACEOF
14076 #define __restrict $emacs_restrict
14077 _ACEOF
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14082 $as_echo_n "checking for C restricted array declarations... " >&6; }
14083 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14084 $as_echo_n "(cached) " >&6
14085 else
14086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14087 /* end confdefs.h. */
14088 void fred (int x[__restrict]);
14090 main ()
14094 return 0;
14096 _ACEOF
14097 if ac_fn_c_try_compile "$LINENO"; then :
14098 emacs_cv_c_restrict_arr=yes
14099 else
14100 emacs_cv_c_restrict_arr=no
14102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14105 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14106 if test "$emacs_cv_c_restrict_arr" = yes; then
14108 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14114 # Set up the CFLAGS for real compilation, so we can substitute it.
14115 CFLAGS="$REAL_CFLAGS"
14116 CPPFLAGS="$REAL_CPPFLAGS"
14118 ## Hack to detect a buggy GCC version.
14119 if test "x$GCC" = xyes \
14120 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
14121 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
14122 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
14123 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
14126 #### Find out which version of Emacs this is.
14127 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
14128 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
14129 if test x"${version}" = x; then
14130 as_fn_error $? "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
14132 if test x"${version}" != x"$PACKAGE_VERSION"; then
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
14134 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
14137 ### Specify what sort of things we'll be editing into Makefile and config.h.
14138 ### Use configuration here uncanonicalized to avoid exceeding size limits.
14141 ## Unused?
14162 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
14163 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
14164 ## end of LIBX_BASE, but nothing ever set it.
14169 ## Used in lwlib/Makefile.in.
14182 cat >>confdefs.h <<_ACEOF
14183 #define EMACS_CONFIGURATION "${canonical}"
14184 _ACEOF
14187 cat >>confdefs.h <<_ACEOF
14188 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
14189 _ACEOF
14192 cat >>confdefs.h <<_ACEOF
14193 #define config_machfile "${machfile}"
14194 _ACEOF
14197 cat >>confdefs.h <<_ACEOF
14198 #define config_opsysfile "${opsysfile}"
14199 _ACEOF
14202 XMENU_OBJ=
14203 XOBJ=
14204 FONT_OBJ=
14205 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14207 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14209 XMENU_OBJ=xmenu.o
14210 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14211 FONT_OBJ=xfont.o
14212 if test "$HAVE_XFT" = "yes"; then
14213 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14214 elif test "$HAVE_FREETYPE" = "yes"; then
14215 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14223 WIDGET_OBJ=
14224 MOTIF_LIBW=
14225 if test "${USE_X_TOOLKIT}" != "none" ; then
14226 WIDGET_OBJ=widget.o
14228 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14230 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14232 $as_echo "#define USE_LUCID 1" >>confdefs.h
14234 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14236 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14238 MOTIF_LIBW=-lXm
14239 case "$opsys" in
14240 gnu-linux)
14241 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14242 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
14245 unixware)
14246 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14247 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14248 MOTIF_LIBW="MOTIF_LIBW -lXimp"
14251 aix4-2)
14252 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14253 MOTIF_LIBW="$MOTIF_LIBW -li18n"
14255 esac
14256 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
14261 TOOLKIT_LIBW=
14262 case "$USE_X_TOOLKIT" in
14263 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
14264 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
14265 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
14266 esac
14269 if test "$USE_X_TOOLKIT" = "none"; then
14270 LIBXT_OTHER="\$(LIBXSM)"
14271 OLDXMENU_TARGET="really-oldXMenu"
14272 else
14273 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14274 OLDXMENU_TARGET="really-lwlib"
14278 ## The X Menu stuff is present in the X10 distribution, but missing
14279 ## from X11. If we have X10, just use the installed library;
14280 ## otherwise, use our own copy.
14281 if test "${HAVE_X11}" = "yes" ; then
14283 $as_echo "#define HAVE_X11 1" >>confdefs.h
14286 if test "$USE_X_TOOLKIT" = "none"; then
14287 OLDXMENU="\${oldXMenudir}libXMenu11.a"
14288 else
14289 OLDXMENU="\${lwlibdir}liblw.a"
14291 LIBXMENU="\$(OLDXMENU)"
14292 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
14293 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
14294 else
14295 ## For a syntactically valid Makefile; not actually used for anything.
14296 ## See comments in src/Makefile.in.
14297 OLDXMENU=nothing
14298 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14299 if test "${HAVE_X_WINDOWS}" = "yes"; then
14300 LIBXMENU="-lXMenu"
14301 else
14302 LIBXMENU=
14304 LIBX_OTHER=
14305 OLDXMENU_DEPS=
14308 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
14309 OLDXMENU_TARGET=
14310 OLDXMENU=nothing
14311 LIBXMENU=
14312 OLDXMENU_DEPS=
14321 if test "${HAVE_MENUS}" = "yes" ; then
14323 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14327 if test "${GNU_MALLOC}" = "yes" ; then
14329 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14333 RALLOC_OBJ=
14334 if test "${REL_ALLOC}" = "yes" ; then
14336 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14339 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
14343 if test "$opsys" = "cygwin"; then
14344 CYGWIN_OBJ="sheap.o"
14345 ## Cygwin differs because of its unexec().
14346 PRE_ALLOC_OBJ=
14347 POST_ALLOC_OBJ=lastfile.o
14348 else
14349 CYGWIN_OBJ=
14350 PRE_ALLOC_OBJ=lastfile.o
14351 POST_ALLOC_OBJ=
14358 case "$opsys" in
14359 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
14361 darwin)
14362 ## The -headerpad option tells ld (see man page) to leave room at the
14363 ## end of the header for adding load commands. Needed for dumping.
14364 ## 0x690 is the total size of 30 segment load commands (at 56
14365 ## each); under Cocoa 31 commands are required.
14366 if test "$HAVE_NS" = "yes"; then
14367 libs_nsgui="-framework AppKit"
14368 headerpad_extra=6C8
14369 else
14370 libs_nsgui=
14371 headerpad_extra=690
14373 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
14375 ## This is here because src/Makefile.in did some extra fiddling around
14376 ## with LD_SWITCH_SYSTEM. The cpp logic was:
14377 ## #ifndef LD_SWITCH_SYSTEM
14378 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
14379 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
14380 ## not using gcc, darwin system not on an alpha (ie darwin, since
14381 ## darwin + alpha does not occur).
14382 ## Because this was done in src/Makefile.in, the resulting part of
14383 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
14384 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
14385 ## rather than LD_SWITCH_SYSTEM.
14386 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
14387 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
14390 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
14391 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
14392 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
14393 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
14394 ## had different values in configure (in ac_link) and src/Makefile.in.
14395 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
14396 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
14398 *) LD_SWITCH_SYSTEM_TEMACS= ;;
14399 esac
14401 if test "$NS_IMPL_GNUSTEP" = "yes"; then
14402 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
14408 LINKER=
14409 ORDINARY_LINK=
14410 case "$opsys" in
14411 ## gnu: GNU needs its own crt0.
14412 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
14414 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14415 ## library search parth, i.e. it won't search /usr/lib for libc and
14416 ## friends. Using -nostartfiles instead avoids this problem, and
14417 ## will also work on earlier NetBSD releases.
14418 netbsd|openbsd) LINKER="\$(CC) -nostartfiles" ;;
14420 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14421 ## MkLinux/LinuxPPC needs this.
14422 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14423 gnu-*)
14424 case "$machine" in
14425 macppc|ibms390x) LINKER="\$(CC) -nostdlib" ;;
14426 esac
14428 esac
14431 if test "x$ORDINARY_LINK" = "xyes"; then
14433 LINKER="\$(CC)"
14435 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14438 ## The system files defining neither ORDINARY_LINK nor LINKER are:
14439 ## freebsd, gnu-* not on macppc|ibms390x.
14440 elif test "x$GCC" = "xyes" && test "x$LINKER" = "x"; then
14442 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14443 ## places that are difficult to figure out at make time. Fortunately,
14444 ## these same versions allow you to pass arbitrary flags on to the
14445 ## linker, so there is no reason not to use it as a linker.
14447 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14448 ## searching for libraries in its internal directories, so we have to
14449 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14450 LINKER="\$(CC) -nostdlib"
14453 test "x$LINKER" = "x" && LINKER=ld
14454 ## FIXME? What setting of EDIT_LDFLAGS should this have?
14455 test "$NS_IMPL_GNUSTEP" = "yes" && LINKER="\$(CC) -rdynamic"
14460 ## FIXME? The logic here is not precisely the same as that above.
14461 ## There is no check here for a pre-defined LINKER.
14462 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14463 LIB_GCC=
14464 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14466 case "$opsys" in
14467 freebsd|netbsd|openbsd) LIB_GCC= ;;
14469 gnu-*)
14470 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
14471 ## build on ARM EABI under GNU/Linux. (Bug#5518)
14472 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
14473 if test "$machine" = "arm"; then
14474 LIB_GCC="-lgcc_s"
14475 else
14476 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
14477 ## immediately undefine it again and redefine it to empty.
14478 ## Was the C_SWITCH_X_SITE part really necessary?
14479 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
14480 LIB_GCC=
14484 ## Ask GCC where to find libgcc.a.
14485 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
14486 esac
14490 TOOLTIP_SUPPORT=
14491 WINDOW_SUPPORT=
14492 ## If we're using X11/GNUstep, define some consequences.
14493 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
14495 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14498 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14500 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
14501 TOOLTIP_SUPPORT="\${lispsource}mouse.elc"
14503 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
14504 test "$HAVE_X_WINDOWS" = "yes" && \
14505 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14515 #### Report on what we decided to do.
14516 #### Report GTK as a toolkit, even if it doesn't use Xt.
14517 #### It makes printing result more understandable as using GTK sets
14518 #### toolkit_scroll_bars to yes by default.
14519 if test "${HAVE_GTK}" = "yes"; then
14520 USE_X_TOOLKIT=GTK
14523 echo "
14524 Configured for \`${canonical}'.
14526 Where should the build process find the source code? ${srcdir}
14527 What operating system and machine description files should Emacs use?
14528 \`${opsysfile}' and \`${machfile}'
14529 What compiler should emacs be built with? ${CC} ${CFLAGS}
14530 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14531 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14532 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14533 What window system should Emacs use? ${window_system}
14534 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14536 if test -n "${x_includes}"; then
14537 echo " Where do we find X Windows header files? ${x_includes}"
14538 else
14539 echo " Where do we find X Windows header files? Standard dirs"
14541 if test -n "${x_libraries}"; then
14542 echo " Where do we find X Windows libraries? ${x_libraries}"
14543 else
14544 echo " Where do we find X Windows libraries? Standard dirs"
14547 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14548 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14549 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14550 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14551 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14552 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14553 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14554 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
14555 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
14556 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
14557 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
14559 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
14560 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
14561 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
14562 echo " Does Emacs use -lxft? ${HAVE_XFT}"
14564 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
14565 echo
14567 if test $USE_XASSERTS = yes; then
14568 echo " Compiling with asserts turned on."
14569 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
14572 echo
14574 if test "$HAVE_NS" = "yes"; then
14575 echo
14576 echo "You must run \"make install\" in order to test the built application.
14577 The installed application will go to nextstep/Emacs.app and can be
14578 run or moved from there."
14579 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
14580 echo "The application will be fully self-contained."
14581 else
14582 echo "The lisp resources for the application will be installed under ${prefix}.
14583 You may need to run \"make install\" with sudo. The application will fail
14584 to run if these resources are not installed."
14586 echo
14589 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
14590 echo "D-Bus integration has been tested for GNU/Linux only."
14591 echo
14595 # Remove any trailing slashes in these variables.
14596 test "${prefix}" != NONE &&
14597 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
14598 test "${exec_prefix}" != NONE &&
14599 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
14601 ac_config_files="$ac_config_files Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile"
14603 ac_config_commands="$ac_config_commands default"
14605 cat >confcache <<\_ACEOF
14606 # This file is a shell script that caches the results of configure
14607 # tests run on this system so they can be shared between configure
14608 # scripts and configure runs, see configure's option --config-cache.
14609 # It is not useful on other systems. If it contains results you don't
14610 # want to keep, you may remove or edit it.
14612 # config.status only pays attention to the cache file if you give it
14613 # the --recheck option to rerun configure.
14615 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14616 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14617 # following values.
14619 _ACEOF
14621 # The following way of writing the cache mishandles newlines in values,
14622 # but we know of no workaround that is simple, portable, and efficient.
14623 # So, we kill variables containing newlines.
14624 # Ultrix sh set writes to stderr and can't be redirected directly,
14625 # and sets the high bit in the cache file unless we assign to the vars.
14627 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14628 eval ac_val=\$$ac_var
14629 case $ac_val in #(
14630 *${as_nl}*)
14631 case $ac_var in #(
14632 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14633 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14634 esac
14635 case $ac_var in #(
14636 _ | IFS | as_nl) ;; #(
14637 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14638 *) { eval $ac_var=; unset $ac_var;} ;;
14639 esac ;;
14640 esac
14641 done
14643 (set) 2>&1 |
14644 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14645 *${as_nl}ac_space=\ *)
14646 # `set' does not quote correctly, so add quotes: double-quote
14647 # substitution turns \\\\ into \\, and sed turns \\ into \.
14648 sed -n \
14649 "s/'/'\\\\''/g;
14650 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14651 ;; #(
14653 # `set' quotes correctly as required by POSIX, so do not add quotes.
14654 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14656 esac |
14657 sort
14659 sed '
14660 /^ac_cv_env_/b end
14661 t clear
14662 :clear
14663 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14664 t end
14665 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14666 :end' >>confcache
14667 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14668 if test -w "$cache_file"; then
14669 test "x$cache_file" != "x/dev/null" &&
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14671 $as_echo "$as_me: updating cache $cache_file" >&6;}
14672 cat confcache >$cache_file
14673 else
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14675 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14678 rm -f confcache
14680 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14681 # Let make expand exec_prefix.
14682 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14684 DEFS=-DHAVE_CONFIG_H
14686 ac_libobjs=
14687 ac_ltlibobjs=
14689 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14690 # 1. Remove the extension, and $U if already installed.
14691 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14692 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14693 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14694 # will be set to the directory where LIBOBJS objects are built.
14695 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14696 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14697 done
14698 LIBOBJS=$ac_libobjs
14700 LTLIBOBJS=$ac_ltlibobjs
14705 : ${CONFIG_STATUS=./config.status}
14706 ac_write_fail=0
14707 ac_clean_files_save=$ac_clean_files
14708 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14710 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14711 as_write_fail=0
14712 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14713 #! $SHELL
14714 # Generated by $as_me.
14715 # Run this file to recreate the current configuration.
14716 # Compiler output produced by configure, useful for debugging
14717 # configure, is in config.log if it exists.
14719 debug=false
14720 ac_cs_recheck=false
14721 ac_cs_silent=false
14723 SHELL=\${CONFIG_SHELL-$SHELL}
14724 export SHELL
14725 _ASEOF
14726 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14727 ## -------------------- ##
14728 ## M4sh Initialization. ##
14729 ## -------------------- ##
14731 # Be more Bourne compatible
14732 DUALCASE=1; export DUALCASE # for MKS sh
14733 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14734 emulate sh
14735 NULLCMD=:
14736 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14737 # is contrary to our usage. Disable this feature.
14738 alias -g '${1+"$@"}'='"$@"'
14739 setopt NO_GLOB_SUBST
14740 else
14741 case `(set -o) 2>/dev/null` in #(
14742 *posix*) :
14743 set -o posix ;; #(
14744 *) :
14746 esac
14750 as_nl='
14752 export as_nl
14753 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14754 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14755 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14756 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14757 # Prefer a ksh shell builtin over an external printf program on Solaris,
14758 # but without wasting forks for bash or zsh.
14759 if test -z "$BASH_VERSION$ZSH_VERSION" \
14760 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14761 as_echo='print -r --'
14762 as_echo_n='print -rn --'
14763 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14764 as_echo='printf %s\n'
14765 as_echo_n='printf %s'
14766 else
14767 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14768 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14769 as_echo_n='/usr/ucb/echo -n'
14770 else
14771 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14772 as_echo_n_body='eval
14773 arg=$1;
14774 case $arg in #(
14775 *"$as_nl"*)
14776 expr "X$arg" : "X\\(.*\\)$as_nl";
14777 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14778 esac;
14779 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14781 export as_echo_n_body
14782 as_echo_n='sh -c $as_echo_n_body as_echo'
14784 export as_echo_body
14785 as_echo='sh -c $as_echo_body as_echo'
14788 # The user is always right.
14789 if test "${PATH_SEPARATOR+set}" != set; then
14790 PATH_SEPARATOR=:
14791 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14792 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14793 PATH_SEPARATOR=';'
14798 # IFS
14799 # We need space, tab and new line, in precisely that order. Quoting is
14800 # there to prevent editors from complaining about space-tab.
14801 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14802 # splitting by setting IFS to empty value.)
14803 IFS=" "" $as_nl"
14805 # Find who we are. Look in the path if we contain no directory separator.
14806 case $0 in #((
14807 *[\\/]* ) as_myself=$0 ;;
14808 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14809 for as_dir in $PATH
14811 IFS=$as_save_IFS
14812 test -z "$as_dir" && as_dir=.
14813 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14814 done
14815 IFS=$as_save_IFS
14818 esac
14819 # We did not find ourselves, most probably we were run as `sh COMMAND'
14820 # in which case we are not to be found in the path.
14821 if test "x$as_myself" = x; then
14822 as_myself=$0
14824 if test ! -f "$as_myself"; then
14825 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14826 exit 1
14829 # Unset variables that we do not need and which cause bugs (e.g. in
14830 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14831 # suppresses any "Segmentation fault" message there. '((' could
14832 # trigger a bug in pdksh 5.2.14.
14833 for as_var in BASH_ENV ENV MAIL MAILPATH
14834 do eval test x\${$as_var+set} = xset \
14835 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14836 done
14837 PS1='$ '
14838 PS2='> '
14839 PS4='+ '
14841 # NLS nuisances.
14842 LC_ALL=C
14843 export LC_ALL
14844 LANGUAGE=C
14845 export LANGUAGE
14847 # CDPATH.
14848 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14851 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14852 # ----------------------------------------
14853 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14854 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14855 # script with STATUS, using 1 if that was 0.
14856 as_fn_error ()
14858 as_status=$1; test $as_status -eq 0 && as_status=1
14859 if test "$4"; then
14860 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14861 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14863 $as_echo "$as_me: error: $2" >&2
14864 as_fn_exit $as_status
14865 } # as_fn_error
14868 # as_fn_set_status STATUS
14869 # -----------------------
14870 # Set $? to STATUS, without forking.
14871 as_fn_set_status ()
14873 return $1
14874 } # as_fn_set_status
14876 # as_fn_exit STATUS
14877 # -----------------
14878 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14879 as_fn_exit ()
14881 set +e
14882 as_fn_set_status $1
14883 exit $1
14884 } # as_fn_exit
14886 # as_fn_unset VAR
14887 # ---------------
14888 # Portably unset VAR.
14889 as_fn_unset ()
14891 { eval $1=; unset $1;}
14893 as_unset=as_fn_unset
14894 # as_fn_append VAR VALUE
14895 # ----------------------
14896 # Append the text in VALUE to the end of the definition contained in VAR. Take
14897 # advantage of any shell optimizations that allow amortized linear growth over
14898 # repeated appends, instead of the typical quadratic growth present in naive
14899 # implementations.
14900 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14901 eval 'as_fn_append ()
14903 eval $1+=\$2
14905 else
14906 as_fn_append ()
14908 eval $1=\$$1\$2
14910 fi # as_fn_append
14912 # as_fn_arith ARG...
14913 # ------------------
14914 # Perform arithmetic evaluation on the ARGs, and store the result in the
14915 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14916 # must be portable across $(()) and expr.
14917 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14918 eval 'as_fn_arith ()
14920 as_val=$(( $* ))
14922 else
14923 as_fn_arith ()
14925 as_val=`expr "$@" || test $? -eq 1`
14927 fi # as_fn_arith
14930 if expr a : '\(a\)' >/dev/null 2>&1 &&
14931 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14932 as_expr=expr
14933 else
14934 as_expr=false
14937 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14938 as_basename=basename
14939 else
14940 as_basename=false
14943 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14944 as_dirname=dirname
14945 else
14946 as_dirname=false
14949 as_me=`$as_basename -- "$0" ||
14950 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14951 X"$0" : 'X\(//\)$' \| \
14952 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14953 $as_echo X/"$0" |
14954 sed '/^.*\/\([^/][^/]*\)\/*$/{
14955 s//\1/
14958 /^X\/\(\/\/\)$/{
14959 s//\1/
14962 /^X\/\(\/\).*/{
14963 s//\1/
14966 s/.*/./; q'`
14968 # Avoid depending upon Character Ranges.
14969 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14970 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14971 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14972 as_cr_digits='0123456789'
14973 as_cr_alnum=$as_cr_Letters$as_cr_digits
14975 ECHO_C= ECHO_N= ECHO_T=
14976 case `echo -n x` in #(((((
14977 -n*)
14978 case `echo 'xy\c'` in
14979 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14980 xy) ECHO_C='\c';;
14981 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14982 ECHO_T=' ';;
14983 esac;;
14985 ECHO_N='-n';;
14986 esac
14988 rm -f conf$$ conf$$.exe conf$$.file
14989 if test -d conf$$.dir; then
14990 rm -f conf$$.dir/conf$$.file
14991 else
14992 rm -f conf$$.dir
14993 mkdir conf$$.dir 2>/dev/null
14995 if (echo >conf$$.file) 2>/dev/null; then
14996 if ln -s conf$$.file conf$$ 2>/dev/null; then
14997 as_ln_s='ln -s'
14998 # ... but there are two gotchas:
14999 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15000 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15001 # In both cases, we have to default to `cp -p'.
15002 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15003 as_ln_s='cp -p'
15004 elif ln conf$$.file conf$$ 2>/dev/null; then
15005 as_ln_s=ln
15006 else
15007 as_ln_s='cp -p'
15009 else
15010 as_ln_s='cp -p'
15012 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15013 rmdir conf$$.dir 2>/dev/null
15016 # as_fn_mkdir_p
15017 # -------------
15018 # Create "$as_dir" as a directory, including parents if necessary.
15019 as_fn_mkdir_p ()
15022 case $as_dir in #(
15023 -*) as_dir=./$as_dir;;
15024 esac
15025 test -d "$as_dir" || eval $as_mkdir_p || {
15026 as_dirs=
15027 while :; do
15028 case $as_dir in #(
15029 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15030 *) as_qdir=$as_dir;;
15031 esac
15032 as_dirs="'$as_qdir' $as_dirs"
15033 as_dir=`$as_dirname -- "$as_dir" ||
15034 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15035 X"$as_dir" : 'X\(//\)[^/]' \| \
15036 X"$as_dir" : 'X\(//\)$' \| \
15037 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15038 $as_echo X"$as_dir" |
15039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15040 s//\1/
15043 /^X\(\/\/\)[^/].*/{
15044 s//\1/
15047 /^X\(\/\/\)$/{
15048 s//\1/
15051 /^X\(\/\).*/{
15052 s//\1/
15055 s/.*/./; q'`
15056 test -d "$as_dir" && break
15057 done
15058 test -z "$as_dirs" || eval "mkdir $as_dirs"
15059 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15062 } # as_fn_mkdir_p
15063 if mkdir -p . 2>/dev/null; then
15064 as_mkdir_p='mkdir -p "$as_dir"'
15065 else
15066 test -d ./-p && rmdir ./-p
15067 as_mkdir_p=false
15070 if test -x / >/dev/null 2>&1; then
15071 as_test_x='test -x'
15072 else
15073 if ls -dL / >/dev/null 2>&1; then
15074 as_ls_L_option=L
15075 else
15076 as_ls_L_option=
15078 as_test_x='
15079 eval sh -c '\''
15080 if test -d "$1"; then
15081 test -d "$1/.";
15082 else
15083 case $1 in #(
15084 -*)set "./$1";;
15085 esac;
15086 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15087 ???[sx]*):;;*)false;;esac;fi
15088 '\'' sh
15091 as_executable_p=$as_test_x
15093 # Sed expression to map a string onto a valid CPP name.
15094 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15096 # Sed expression to map a string onto a valid variable name.
15097 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15100 exec 6>&1
15101 ## ----------------------------------- ##
15102 ## Main body of $CONFIG_STATUS script. ##
15103 ## ----------------------------------- ##
15104 _ASEOF
15105 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15108 # Save the log message, to keep $0 and so on meaningful, and to
15109 # report actual input values of CONFIG_FILES etc. instead of their
15110 # values after options handling.
15111 ac_log="
15112 This file was extended by emacs $as_me 24.0.50, which was
15113 generated by GNU Autoconf 2.66. Invocation command line was
15115 CONFIG_FILES = $CONFIG_FILES
15116 CONFIG_HEADERS = $CONFIG_HEADERS
15117 CONFIG_LINKS = $CONFIG_LINKS
15118 CONFIG_COMMANDS = $CONFIG_COMMANDS
15119 $ $0 $@
15121 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15124 _ACEOF
15126 case $ac_config_files in *"
15127 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15128 esac
15130 case $ac_config_headers in *"
15131 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15132 esac
15135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15136 # Files that config.status was made for.
15137 config_files="$ac_config_files"
15138 config_headers="$ac_config_headers"
15139 config_commands="$ac_config_commands"
15141 _ACEOF
15143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15144 ac_cs_usage="\
15145 \`$as_me' instantiates files and other configuration actions
15146 from templates according to the current configuration. Unless the files
15147 and actions are specified as TAGs, all are instantiated by default.
15149 Usage: $0 [OPTION]... [TAG]...
15151 -h, --help print this help, then exit
15152 -V, --version print version number and configuration settings, then exit
15153 --config print configuration, then exit
15154 -q, --quiet, --silent
15155 do not print progress messages
15156 -d, --debug don't remove temporary files
15157 --recheck update $as_me by reconfiguring in the same conditions
15158 --file=FILE[:TEMPLATE]
15159 instantiate the configuration file FILE
15160 --header=FILE[:TEMPLATE]
15161 instantiate the configuration header FILE
15163 Configuration files:
15164 $config_files
15166 Configuration headers:
15167 $config_headers
15169 Configuration commands:
15170 $config_commands
15172 Report bugs to the package provider."
15174 _ACEOF
15175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15176 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15177 ac_cs_version="\\
15178 emacs config.status 24.0.50
15179 configured by $0, generated by GNU Autoconf 2.66,
15180 with options \\"\$ac_cs_config\\"
15182 Copyright (C) 2010 Free Software Foundation, Inc.
15183 This config.status script is free software; the Free Software Foundation
15184 gives unlimited permission to copy, distribute and modify it."
15186 ac_pwd='$ac_pwd'
15187 srcdir='$srcdir'
15188 INSTALL='$INSTALL'
15189 test -n "\$AWK" || AWK=awk
15190 _ACEOF
15192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15193 # The default lists apply if the user does not specify any file.
15194 ac_need_defaults=:
15195 while test $# != 0
15197 case $1 in
15198 --*=*)
15199 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15200 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15201 ac_shift=:
15204 ac_option=$1
15205 ac_optarg=$2
15206 ac_shift=shift
15208 esac
15210 case $ac_option in
15211 # Handling of the options.
15212 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15213 ac_cs_recheck=: ;;
15214 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15215 $as_echo "$ac_cs_version"; exit ;;
15216 --config | --confi | --conf | --con | --co | --c )
15217 $as_echo "$ac_cs_config"; exit ;;
15218 --debug | --debu | --deb | --de | --d | -d )
15219 debug=: ;;
15220 --file | --fil | --fi | --f )
15221 $ac_shift
15222 case $ac_optarg in
15223 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15224 esac
15225 as_fn_append CONFIG_FILES " '$ac_optarg'"
15226 ac_need_defaults=false;;
15227 --header | --heade | --head | --hea )
15228 $ac_shift
15229 case $ac_optarg in
15230 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15231 esac
15232 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15233 ac_need_defaults=false;;
15234 --he | --h)
15235 # Conflict between --help and --header
15236 as_fn_error $? "ambiguous option: \`$1'
15237 Try \`$0 --help' for more information.";;
15238 --help | --hel | -h )
15239 $as_echo "$ac_cs_usage"; exit ;;
15240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15241 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15242 ac_cs_silent=: ;;
15244 # This is an error.
15245 -*) as_fn_error $? "unrecognized option: \`$1'
15246 Try \`$0 --help' for more information." ;;
15248 *) as_fn_append ac_config_targets " $1"
15249 ac_need_defaults=false ;;
15251 esac
15252 shift
15253 done
15255 ac_configure_extra_args=
15257 if $ac_cs_silent; then
15258 exec 6>/dev/null
15259 ac_configure_extra_args="$ac_configure_extra_args --silent"
15262 _ACEOF
15263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15264 if \$ac_cs_recheck; then
15265 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15266 shift
15267 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15268 CONFIG_SHELL='$SHELL'
15269 export CONFIG_SHELL
15270 exec "\$@"
15273 _ACEOF
15274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15275 exec 5>>config.log
15277 echo
15278 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15279 ## Running $as_me. ##
15280 _ASBOX
15281 $as_echo "$ac_log"
15282 } >&5
15284 _ACEOF
15285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15287 # INIT-COMMANDS
15289 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
15291 _ACEOF
15293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15295 # Handling of arguments.
15296 for ac_config_target in $ac_config_targets
15298 case $ac_config_target in
15299 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
15300 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15301 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
15302 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
15303 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
15304 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
15305 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
15306 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
15307 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15308 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
15309 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
15310 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
15311 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15313 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15314 esac
15315 done
15318 # If the user did not use the arguments to specify the items to instantiate,
15319 # then the envvar interface is used. Set only those that are not.
15320 # We use the long form for the default assignment because of an extremely
15321 # bizarre bug on SunOS 4.1.3.
15322 if $ac_need_defaults; then
15323 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15324 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15325 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15328 # Have a temporary directory for convenience. Make it in the build tree
15329 # simply because there is no reason against having it here, and in addition,
15330 # creating and moving files from /tmp can sometimes cause problems.
15331 # Hook for its removal unless debugging.
15332 # Note that there is a small window in which the directory will not be cleaned:
15333 # after its creation but before its name has been assigned to `$tmp'.
15334 $debug ||
15336 tmp=
15337 trap 'exit_status=$?
15338 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15340 trap 'as_fn_exit 1' 1 2 13 15
15342 # Create a (secure) tmp directory for tmp files.
15345 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15346 test -n "$tmp" && test -d "$tmp"
15347 } ||
15349 tmp=./conf$$-$RANDOM
15350 (umask 077 && mkdir "$tmp")
15351 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15353 # Set up the scripts for CONFIG_FILES section.
15354 # No need to generate them if there are no CONFIG_FILES.
15355 # This happens for instance with `./config.status config.h'.
15356 if test -n "$CONFIG_FILES"; then
15358 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15359 ac_cs_awk_getline=:
15360 ac_cs_awk_pipe_init=
15361 ac_cs_awk_read_file='
15362 while ((getline aline < (F[key])) > 0)
15363 print(aline)
15364 close(F[key])'
15365 ac_cs_awk_pipe_fini=
15366 else
15367 ac_cs_awk_getline=false
15368 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15369 ac_cs_awk_read_file='
15370 print "|#_!!_#|"
15371 print "cat " F[key] " &&"
15372 '$ac_cs_awk_pipe_init
15373 # The final `:' finishes the AND list.
15374 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15376 ac_cr=`echo X | tr X '\015'`
15377 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15378 # But we know of no other shell where ac_cr would be empty at this
15379 # point, so we can use a bashism as a fallback.
15380 if test "x$ac_cr" = x; then
15381 eval ac_cr=\$\'\\r\'
15383 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15384 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15385 ac_cs_awk_cr='\\r'
15386 else
15387 ac_cs_awk_cr=$ac_cr
15390 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15391 _ACEOF
15393 # Create commands to substitute file output variables.
15395 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15396 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15397 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15398 echo "_ACAWK" &&
15399 echo "_ACEOF"
15400 } >conf$$files.sh &&
15401 . ./conf$$files.sh ||
15402 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15403 rm -f conf$$files.sh
15406 echo "cat >conf$$subs.awk <<_ACEOF" &&
15407 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15408 echo "_ACEOF"
15409 } >conf$$subs.sh ||
15410 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15411 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15412 ac_delim='%!_!# '
15413 for ac_last_try in false false false false false :; do
15414 . ./conf$$subs.sh ||
15415 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15417 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15418 if test $ac_delim_n = $ac_delim_num; then
15419 break
15420 elif $ac_last_try; then
15421 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15422 else
15423 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15425 done
15426 rm -f conf$$subs.sh
15428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15429 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15430 _ACEOF
15431 sed -n '
15433 s/^/S["/; s/!.*/"]=/
15436 s/^[^!]*!//
15437 :repl
15438 t repl
15439 s/'"$ac_delim"'$//
15440 t delim
15443 s/\(.\{148\}\)..*/\1/
15444 t more1
15445 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15448 b repl
15449 :more1
15450 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15453 s/.\{148\}//
15454 t nl
15455 :delim
15457 s/\(.\{148\}\)..*/\1/
15458 t more2
15459 s/["\\]/\\&/g; s/^/"/; s/$/"/
15462 :more2
15463 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15466 s/.\{148\}//
15467 t delim
15468 ' <conf$$subs.awk | sed '
15469 /^[^""]/{
15471 s/\n//
15473 ' >>$CONFIG_STATUS || ac_write_fail=1
15474 rm -f conf$$subs.awk
15475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15476 _ACAWK
15477 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15478 for (key in S) S_is_set[key] = 1
15479 FS = "\a"
15480 \$ac_cs_awk_pipe_init
15483 line = $ 0
15484 nfields = split(line, field, "@")
15485 substed = 0
15486 len = length(field[1])
15487 for (i = 2; i < nfields; i++) {
15488 key = field[i]
15489 keylen = length(key)
15490 if (S_is_set[key]) {
15491 value = S[key]
15492 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15493 len += length(value) + length(field[++i])
15494 substed = 1
15495 } else
15496 len += 1 + keylen
15498 if (nfields == 3 && !substed) {
15499 key = field[2]
15500 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15501 \$ac_cs_awk_read_file
15502 next
15505 print line
15507 \$ac_cs_awk_pipe_fini
15508 _ACAWK
15509 _ACEOF
15510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15511 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15512 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15513 else
15515 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15516 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15517 _ACEOF
15519 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15520 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15521 # trailing colons and then remove the whole line if VPATH becomes empty
15522 # (actually we leave an empty line to preserve line numbers).
15523 if test "x$srcdir" = x.; then
15524 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15526 s///
15527 s/^/:/
15528 s/[ ]*$/:/
15529 s/:\$(srcdir):/:/g
15530 s/:\${srcdir}:/:/g
15531 s/:@srcdir@:/:/g
15532 s/^:*//
15533 s/:*$//
15535 s/\(=[ ]*\).*/\1/
15537 s/\n//
15538 s/^[^=]*=[ ]*$//
15542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15543 fi # test -n "$CONFIG_FILES"
15545 # Set up the scripts for CONFIG_HEADERS section.
15546 # No need to generate them if there are no CONFIG_HEADERS.
15547 # This happens for instance with `./config.status Makefile'.
15548 if test -n "$CONFIG_HEADERS"; then
15549 cat >"$tmp/defines.awk" <<\_ACAWK ||
15550 BEGIN {
15551 _ACEOF
15553 # Transform confdefs.h into an awk script `defines.awk', embedded as
15554 # here-document in config.status, that substitutes the proper values into
15555 # config.h.in to produce config.h.
15557 # Create a delimiter string that does not exist in confdefs.h, to ease
15558 # handling of long lines.
15559 ac_delim='%!_!# '
15560 for ac_last_try in false false :; do
15561 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15562 if test -z "$ac_t"; then
15563 break
15564 elif $ac_last_try; then
15565 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15566 else
15567 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15569 done
15571 # For the awk script, D is an array of macro values keyed by name,
15572 # likewise P contains macro parameters if any. Preserve backslash
15573 # newline sequences.
15575 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15576 sed -n '
15577 s/.\{148\}/&'"$ac_delim"'/g
15578 t rset
15579 :rset
15580 s/^[ ]*#[ ]*define[ ][ ]*/ /
15581 t def
15583 :def
15584 s/\\$//
15585 t bsnl
15586 s/["\\]/\\&/g
15587 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15588 D["\1"]=" \3"/p
15589 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15591 :bsnl
15592 s/["\\]/\\&/g
15593 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15594 D["\1"]=" \3\\\\\\n"\\/p
15595 t cont
15596 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15597 t cont
15599 :cont
15601 s/.\{148\}/&'"$ac_delim"'/g
15602 t clear
15603 :clear
15604 s/\\$//
15605 t bsnlc
15606 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15608 :bsnlc
15609 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15610 b cont
15611 ' <confdefs.h | sed '
15612 s/'"$ac_delim"'/"\\\
15613 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15616 for (key in D) D_is_set[key] = 1
15617 FS = "\a"
15619 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15620 line = \$ 0
15621 split(line, arg, " ")
15622 if (arg[1] == "#") {
15623 defundef = arg[2]
15624 mac1 = arg[3]
15625 } else {
15626 defundef = substr(arg[1], 2)
15627 mac1 = arg[2]
15629 split(mac1, mac2, "(") #)
15630 macro = mac2[1]
15631 prefix = substr(line, 1, index(line, defundef) - 1)
15632 if (D_is_set[macro]) {
15633 # Preserve the white space surrounding the "#".
15634 print prefix "define", macro P[macro] D[macro]
15635 next
15636 } else {
15637 # Replace #undef with comments. This is necessary, for example,
15638 # in the case of _POSIX_SOURCE, which is predefined and required
15639 # on some systems where configure will not decide to define it.
15640 if (defundef == "undef") {
15641 print "/*", prefix defundef, macro, "*/"
15642 next
15646 { print }
15647 _ACAWK
15648 _ACEOF
15649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15650 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15651 fi # test -n "$CONFIG_HEADERS"
15654 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15655 shift
15656 for ac_tag
15658 case $ac_tag in
15659 :[FHLC]) ac_mode=$ac_tag; continue;;
15660 esac
15661 case $ac_mode$ac_tag in
15662 :[FHL]*:*);;
15663 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15664 :[FH]-) ac_tag=-:-;;
15665 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15666 esac
15667 ac_save_IFS=$IFS
15668 IFS=:
15669 set x $ac_tag
15670 IFS=$ac_save_IFS
15671 shift
15672 ac_file=$1
15673 shift
15675 case $ac_mode in
15676 :L) ac_source=$1;;
15677 :[FH])
15678 ac_file_inputs=
15679 for ac_f
15681 case $ac_f in
15682 -) ac_f="$tmp/stdin";;
15683 *) # Look for the file first in the build tree, then in the source tree
15684 # (if the path is not absolute). The absolute path cannot be DOS-style,
15685 # because $ac_f cannot contain `:'.
15686 test -f "$ac_f" ||
15687 case $ac_f in
15688 [\\/$]*) false;;
15689 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15690 esac ||
15691 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15692 esac
15693 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15694 as_fn_append ac_file_inputs " '$ac_f'"
15695 done
15697 # Let's still pretend it is `configure' which instantiates (i.e., don't
15698 # use $as_me), people would be surprised to read:
15699 # /* config.h. Generated by config.status. */
15700 configure_input='Generated from '`
15701 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15702 `' by configure.'
15703 if test x"$ac_file" != x-; then
15704 configure_input="$ac_file. $configure_input"
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15706 $as_echo "$as_me: creating $ac_file" >&6;}
15708 # Neutralize special characters interpreted by sed in replacement strings.
15709 case $configure_input in #(
15710 *\&* | *\|* | *\\* )
15711 ac_sed_conf_input=`$as_echo "$configure_input" |
15712 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15713 *) ac_sed_conf_input=$configure_input;;
15714 esac
15716 case $ac_tag in
15717 *:-:* | *:-) cat >"$tmp/stdin" \
15718 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15719 esac
15721 esac
15723 ac_dir=`$as_dirname -- "$ac_file" ||
15724 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15725 X"$ac_file" : 'X\(//\)[^/]' \| \
15726 X"$ac_file" : 'X\(//\)$' \| \
15727 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15728 $as_echo X"$ac_file" |
15729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15730 s//\1/
15733 /^X\(\/\/\)[^/].*/{
15734 s//\1/
15737 /^X\(\/\/\)$/{
15738 s//\1/
15741 /^X\(\/\).*/{
15742 s//\1/
15745 s/.*/./; q'`
15746 as_dir="$ac_dir"; as_fn_mkdir_p
15747 ac_builddir=.
15749 case "$ac_dir" in
15750 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15752 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15753 # A ".." for each directory in $ac_dir_suffix.
15754 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15755 case $ac_top_builddir_sub in
15756 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15757 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15758 esac ;;
15759 esac
15760 ac_abs_top_builddir=$ac_pwd
15761 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15762 # for backward compatibility:
15763 ac_top_builddir=$ac_top_build_prefix
15765 case $srcdir in
15766 .) # We are building in place.
15767 ac_srcdir=.
15768 ac_top_srcdir=$ac_top_builddir_sub
15769 ac_abs_top_srcdir=$ac_pwd ;;
15770 [\\/]* | ?:[\\/]* ) # Absolute name.
15771 ac_srcdir=$srcdir$ac_dir_suffix;
15772 ac_top_srcdir=$srcdir
15773 ac_abs_top_srcdir=$srcdir ;;
15774 *) # Relative name.
15775 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15776 ac_top_srcdir=$ac_top_build_prefix$srcdir
15777 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15778 esac
15779 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15782 case $ac_mode in
15785 # CONFIG_FILE
15788 case $INSTALL in
15789 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15790 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15791 esac
15792 _ACEOF
15794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15795 # If the template does not know about datarootdir, expand it.
15796 # FIXME: This hack should be removed a few years after 2.60.
15797 ac_datarootdir_hack=; ac_datarootdir_seen=
15798 ac_sed_dataroot='
15799 /datarootdir/ {
15803 /@datadir@/p
15804 /@docdir@/p
15805 /@infodir@/p
15806 /@localedir@/p
15807 /@mandir@/p'
15808 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15809 *datarootdir*) ac_datarootdir_seen=yes;;
15810 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15812 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15813 _ACEOF
15814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15815 ac_datarootdir_hack='
15816 s&@datadir@&$datadir&g
15817 s&@docdir@&$docdir&g
15818 s&@infodir@&$infodir&g
15819 s&@localedir@&$localedir&g
15820 s&@mandir@&$mandir&g
15821 s&\\\${datarootdir}&$datarootdir&g' ;;
15822 esac
15823 _ACEOF
15825 # Neutralize VPATH when `$srcdir' = `.'.
15826 # Shell code in configure.ac might set extrasub.
15827 # FIXME: do we really want to maintain this feature?
15828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15829 ac_sed_extra="$ac_vpsub
15830 $extrasub
15831 _ACEOF
15832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15834 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15835 s|@configure_input@|$ac_sed_conf_input|;t t
15836 s&@top_builddir@&$ac_top_builddir_sub&;t t
15837 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15838 s&@srcdir@&$ac_srcdir&;t t
15839 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15840 s&@top_srcdir@&$ac_top_srcdir&;t t
15841 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15842 s&@builddir@&$ac_builddir&;t t
15843 s&@abs_builddir@&$ac_abs_builddir&;t t
15844 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15845 s&@INSTALL@&$ac_INSTALL&;t t
15846 $ac_datarootdir_hack
15848 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15849 if $ac_cs_awk_getline; then
15850 $AWK -f "$tmp/subs.awk"
15851 else
15852 $AWK -f "$tmp/subs.awk" | $SHELL
15853 fi >$tmp/out \
15854 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15856 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15857 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15858 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15860 which seems to be undefined. Please make sure it is defined" >&5
15861 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15862 which seems to be undefined. Please make sure it is defined" >&2;}
15864 rm -f "$tmp/stdin"
15865 case $ac_file in
15866 -) cat "$tmp/out" && rm -f "$tmp/out";;
15867 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15868 esac \
15869 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15873 # CONFIG_HEADER
15875 if test x"$ac_file" != x-; then
15877 $as_echo "/* $configure_input */" \
15878 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15879 } >"$tmp/config.h" \
15880 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15881 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15883 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15884 else
15885 rm -f "$ac_file"
15886 mv "$tmp/config.h" "$ac_file" \
15887 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15889 else
15890 $as_echo "/* $configure_input */" \
15891 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15892 || as_fn_error $? "could not create -" "$LINENO" 5
15896 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15897 $as_echo "$as_me: executing $ac_file commands" >&6;}
15899 esac
15902 case $ac_file$ac_mode in
15903 "default":C)
15905 ### Make the necessary directories, if they don't exist.
15906 for dir in etc lisp ; do
15907 test -d ${dir} || mkdir ${dir}
15908 done
15910 echo creating src/epaths.h
15911 ${MAKE-make} epaths-force
15913 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
15914 echo creating src/.gdbinit
15915 echo source $srcdir/src/.gdbinit > src/.gdbinit
15920 esac
15921 done # for ac_tag
15924 as_fn_exit 0
15925 _ACEOF
15926 ac_clean_files=$ac_clean_files_save
15928 test $ac_write_fail = 0 ||
15929 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15932 # configure is writing to config.log, and then calls config.status.
15933 # config.status does its own redirection, appending to config.log.
15934 # Unfortunately, on DOS this fails, as config.log is still kept open
15935 # by configure, so config.status won't be able to write to it; its
15936 # output is simply discarded. So we exec the FD to /dev/null,
15937 # effectively closing config.log, so it can be properly (re)opened and
15938 # appended to by config.status. When coming back to configure, we
15939 # need to make the FD available again.
15940 if test "$no_create" != yes; then
15941 ac_cs_success=:
15942 ac_config_status_args=
15943 test "$silent" = yes &&
15944 ac_config_status_args="$ac_config_status_args --quiet"
15945 exec 5>/dev/null
15946 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15947 exec 5>>config.log
15948 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15949 # would make configure fail if this is the last instruction.
15950 $ac_cs_success || as_fn_exit 1
15952 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15954 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}