* configure.in: Make gameuser configurable (Bug#7717).
[emacs.git] / configure
blobe3fb8e263d40ff5254b85c3a65f7c6c4e0d6ece0
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 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 LD_FIRSTFLAG
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 S_FILE
626 M_FILE
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 LIBXML2_LIBS
664 LIBXML2_CFLAGS
665 LIBXSM
666 LIBGPM
667 LIBGIF
668 LIBTIFF
669 LIBPNG
670 LIBJPEG
671 LIBXPM
672 FREETYPE_LIBS
673 FREETYPE_CFLAGS
674 M17N_FLT_LIBS
675 M17N_FLT_CFLAGS
676 LIBOTF_LIBS
677 LIBOTF_CFLAGS
678 XFT_LIBS
679 XFT_CFLAGS
680 FONTCONFIG_LIBS
681 FONTCONFIG_CFLAGS
682 LIBXMU
683 LIBXTR6
684 LIBGNUTLS_LIBS
685 LIBGNUTLS_CFLAGS
686 LIBSELINUX_LIBS
687 GCONF_LIBS
688 GCONF_CFLAGS
689 DBUS_OBJ
690 DBUS_LIBS
691 DBUS_CFLAGS
692 GTK_OBJ
693 GTK_LIBS
694 GTK_CFLAGS
695 IMAGEMAGICK_LIBS
696 IMAGEMAGICK_CFLAGS
697 RSVG_LIBS
698 RSVG_CFLAGS
699 VMLIMIT_OBJ
700 GMALLOC_OBJ
701 HAVE_XSERVER
702 LIB_STANDARD
703 NS_SUPPORT
704 NS_OBJ
705 TEMACS_LDFLAGS2
706 LD_SWITCH_X_SITE_AUX_RPATH
707 LD_SWITCH_X_SITE_AUX
708 XMKMF
709 DEPFLAGS
710 MKDEPDIR
711 SET_MAKE
712 CFLAGS_SOUND
713 ALSA_LIBS
714 ALSA_CFLAGS
715 PKG_CONFIG
716 LIBSOUND
717 START_FILES
718 LIB_MATH
719 CRT_DIR
720 LIBS_SYSTEM
721 C_SWITCH_SYSTEM
722 UNEXEC_OBJ
723 C_SWITCH_MACHINE
724 LD_SWITCH_SYSTEM
725 CANNOT_DUMP
726 MAKEINFO
727 GZIP_PROG
728 INSTALL_INFO
729 RANLIB
730 INSTALL_DATA
731 INSTALL_SCRIPT
732 INSTALL_PROGRAM
733 C_WARNINGS_SWITCH
734 EGREP
735 GREP
737 OBJEXT
738 EXEEXT
739 ac_ct_CC
740 CPPFLAGS
741 LDFLAGS
742 CFLAGS
744 host_os
745 host_vendor
746 host_cpu
747 host
748 build_os
749 build_vendor
750 build_cpu
751 build
752 PROFILING_CFLAGS
753 MAINT
754 GZIP_INFO
755 target_alias
756 host_alias
757 build_alias
758 LIBS
759 ECHO_T
760 ECHO_N
761 ECHO_C
762 DEFS
763 mandir
764 localedir
765 libdir
766 psdir
767 pdfdir
768 dvidir
769 htmldir
770 infodir
771 docdir
772 oldincludedir
773 includedir
774 localstatedir
775 sharedstatedir
776 sysconfdir
777 datadir
778 datarootdir
779 libexecdir
780 sbindir
781 bindir
782 program_transform_name
783 prefix
784 exec_prefix
785 PACKAGE_URL
786 PACKAGE_BUGREPORT
787 PACKAGE_STRING
788 PACKAGE_VERSION
789 PACKAGE_TARNAME
790 PACKAGE_NAME
791 PATH_SEPARATOR
792 SHELL'
793 ac_subst_files='deps_frag
794 ns_frag'
795 ac_user_opts='
796 enable_option_checking
797 with_pop
798 with_kerberos
799 with_kerberos5
800 with_hesiod
801 with_mmdf
802 with_mail_unlink
803 with_mailhost
804 with_sound
805 with_sync_input
806 with_x_toolkit
807 with_xpm
808 with_jpeg
809 with_tiff
810 with_gif
811 with_png
812 with_rsvg
813 with_xml2
814 with_imagemagick
815 with_xft
816 with_libotf
817 with_m17n_flt
818 with_toolkit_scroll_bars
819 with_xaw3d
820 with_xim
821 with_ns
822 with_gpm
823 with_dbus
824 with_gconf
825 with_selinux
826 with_gnutls
827 with_makeinfo
828 with_compress_info
829 with_pkg_config_prog
830 with_crt_dir
831 with_gameuser
832 with_gnustep_conf
833 enable_ns_self_contained
834 enable_asserts
835 enable_maintainer_mode
836 enable_locallisppath
837 enable_checking
838 enable_use_lisp_union_type
839 enable_profiling
840 enable_autodepend
841 enable_largefile
842 with_x
844 ac_precious_vars='build_alias
845 host_alias
846 target_alias
848 CFLAGS
849 LDFLAGS
850 LIBS
851 CPPFLAGS
853 XMKMF'
856 # Initialize some variables set by options.
857 ac_init_help=
858 ac_init_version=false
859 ac_unrecognized_opts=
860 ac_unrecognized_sep=
861 # The variables have the same names as the options, with
862 # dashes changed to underlines.
863 cache_file=/dev/null
864 exec_prefix=NONE
865 no_create=
866 no_recursion=
867 prefix=NONE
868 program_prefix=NONE
869 program_suffix=NONE
870 program_transform_name=s,x,x,
871 silent=
872 site=
873 srcdir=
874 verbose=
875 x_includes=NONE
876 x_libraries=NONE
878 # Installation directory options.
879 # These are left unexpanded so users can "make install exec_prefix=/foo"
880 # and all the variables that are supposed to be based on exec_prefix
881 # by default will actually change.
882 # Use braces instead of parens because sh, perl, etc. also accept them.
883 # (The list follows the same order as the GNU Coding Standards.)
884 bindir='${exec_prefix}/bin'
885 sbindir='${exec_prefix}/sbin'
886 libexecdir='${exec_prefix}/libexec'
887 datarootdir='${prefix}/share'
888 datadir='${datarootdir}'
889 sysconfdir='${prefix}/etc'
890 sharedstatedir='${prefix}/com'
891 localstatedir='${prefix}/var'
892 includedir='${prefix}/include'
893 oldincludedir='/usr/include'
894 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
895 infodir='${datarootdir}/info'
896 htmldir='${docdir}'
897 dvidir='${docdir}'
898 pdfdir='${docdir}'
899 psdir='${docdir}'
900 libdir='${exec_prefix}/lib'
901 localedir='${datarootdir}/locale'
902 mandir='${datarootdir}/man'
904 ac_prev=
905 ac_dashdash=
906 for ac_option
908 # If the previous option needs an argument, assign it.
909 if test -n "$ac_prev"; then
910 eval $ac_prev=\$ac_option
911 ac_prev=
912 continue
915 case $ac_option in
916 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
917 *=) ac_optarg= ;;
918 *) ac_optarg=yes ;;
919 esac
921 # Accept the important Cygnus configure options, so we can diagnose typos.
923 case $ac_dashdash$ac_option in
925 ac_dashdash=yes ;;
927 -bindir | --bindir | --bindi | --bind | --bin | --bi)
928 ac_prev=bindir ;;
929 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
930 bindir=$ac_optarg ;;
932 -build | --build | --buil | --bui | --bu)
933 ac_prev=build_alias ;;
934 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
935 build_alias=$ac_optarg ;;
937 -cache-file | --cache-file | --cache-fil | --cache-fi \
938 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
939 ac_prev=cache_file ;;
940 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
941 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
942 cache_file=$ac_optarg ;;
944 --config-cache | -C)
945 cache_file=config.cache ;;
947 -datadir | --datadir | --datadi | --datad)
948 ac_prev=datadir ;;
949 -datadir=* | --datadir=* | --datadi=* | --datad=*)
950 datadir=$ac_optarg ;;
952 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
953 | --dataroo | --dataro | --datar)
954 ac_prev=datarootdir ;;
955 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
956 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
957 datarootdir=$ac_optarg ;;
959 -disable-* | --disable-*)
960 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963 as_fn_error $? "invalid feature name: $ac_useropt"
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
968 "enable_$ac_useropt"
969 "*) ;;
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
972 esac
973 eval enable_$ac_useropt=no ;;
975 -docdir | --docdir | --docdi | --doc | --do)
976 ac_prev=docdir ;;
977 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
978 docdir=$ac_optarg ;;
980 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
981 ac_prev=dvidir ;;
982 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
983 dvidir=$ac_optarg ;;
985 -enable-* | --enable-*)
986 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989 as_fn_error $? "invalid feature name: $ac_useropt"
990 ac_useropt_orig=$ac_useropt
991 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
994 "enable_$ac_useropt"
995 "*) ;;
996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
997 ac_unrecognized_sep=', ';;
998 esac
999 eval enable_$ac_useropt=\$ac_optarg ;;
1001 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1002 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1003 | --exec | --exe | --ex)
1004 ac_prev=exec_prefix ;;
1005 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1006 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1007 | --exec=* | --exe=* | --ex=*)
1008 exec_prefix=$ac_optarg ;;
1010 -gas | --gas | --ga | --g)
1011 # Obsolete; use --with-gas.
1012 with_gas=yes ;;
1014 -help | --help | --hel | --he | -h)
1015 ac_init_help=long ;;
1016 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1017 ac_init_help=recursive ;;
1018 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1019 ac_init_help=short ;;
1021 -host | --host | --hos | --ho)
1022 ac_prev=host_alias ;;
1023 -host=* | --host=* | --hos=* | --ho=*)
1024 host_alias=$ac_optarg ;;
1026 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1027 ac_prev=htmldir ;;
1028 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1029 | --ht=*)
1030 htmldir=$ac_optarg ;;
1032 -includedir | --includedir | --includedi | --included | --include \
1033 | --includ | --inclu | --incl | --inc)
1034 ac_prev=includedir ;;
1035 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1036 | --includ=* | --inclu=* | --incl=* | --inc=*)
1037 includedir=$ac_optarg ;;
1039 -infodir | --infodir | --infodi | --infod | --info | --inf)
1040 ac_prev=infodir ;;
1041 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1042 infodir=$ac_optarg ;;
1044 -libdir | --libdir | --libdi | --libd)
1045 ac_prev=libdir ;;
1046 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1047 libdir=$ac_optarg ;;
1049 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1050 | --libexe | --libex | --libe)
1051 ac_prev=libexecdir ;;
1052 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1053 | --libexe=* | --libex=* | --libe=*)
1054 libexecdir=$ac_optarg ;;
1056 -localedir | --localedir | --localedi | --localed | --locale)
1057 ac_prev=localedir ;;
1058 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1059 localedir=$ac_optarg ;;
1061 -localstatedir | --localstatedir | --localstatedi | --localstated \
1062 | --localstate | --localstat | --localsta | --localst | --locals)
1063 ac_prev=localstatedir ;;
1064 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1065 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1066 localstatedir=$ac_optarg ;;
1068 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1069 ac_prev=mandir ;;
1070 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1071 mandir=$ac_optarg ;;
1073 -nfp | --nfp | --nf)
1074 # Obsolete; use --without-fp.
1075 with_fp=no ;;
1077 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1078 | --no-cr | --no-c | -n)
1079 no_create=yes ;;
1081 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1082 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1083 no_recursion=yes ;;
1085 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1086 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1087 | --oldin | --oldi | --old | --ol | --o)
1088 ac_prev=oldincludedir ;;
1089 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1090 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1091 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1092 oldincludedir=$ac_optarg ;;
1094 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1095 ac_prev=prefix ;;
1096 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1097 prefix=$ac_optarg ;;
1099 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1100 | --program-pre | --program-pr | --program-p)
1101 ac_prev=program_prefix ;;
1102 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1103 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1104 program_prefix=$ac_optarg ;;
1106 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1107 | --program-suf | --program-su | --program-s)
1108 ac_prev=program_suffix ;;
1109 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1110 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1111 program_suffix=$ac_optarg ;;
1113 -program-transform-name | --program-transform-name \
1114 | --program-transform-nam | --program-transform-na \
1115 | --program-transform-n | --program-transform- \
1116 | --program-transform | --program-transfor \
1117 | --program-transfo | --program-transf \
1118 | --program-trans | --program-tran \
1119 | --progr-tra | --program-tr | --program-t)
1120 ac_prev=program_transform_name ;;
1121 -program-transform-name=* | --program-transform-name=* \
1122 | --program-transform-nam=* | --program-transform-na=* \
1123 | --program-transform-n=* | --program-transform-=* \
1124 | --program-transform=* | --program-transfor=* \
1125 | --program-transfo=* | --program-transf=* \
1126 | --program-trans=* | --program-tran=* \
1127 | --progr-tra=* | --program-tr=* | --program-t=*)
1128 program_transform_name=$ac_optarg ;;
1130 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1131 ac_prev=pdfdir ;;
1132 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1133 pdfdir=$ac_optarg ;;
1135 -psdir | --psdir | --psdi | --psd | --ps)
1136 ac_prev=psdir ;;
1137 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1138 psdir=$ac_optarg ;;
1140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1141 | -silent | --silent | --silen | --sile | --sil)
1142 silent=yes ;;
1144 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1145 ac_prev=sbindir ;;
1146 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1147 | --sbi=* | --sb=*)
1148 sbindir=$ac_optarg ;;
1150 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1151 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1152 | --sharedst | --shareds | --shared | --share | --shar \
1153 | --sha | --sh)
1154 ac_prev=sharedstatedir ;;
1155 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1156 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1157 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1158 | --sha=* | --sh=*)
1159 sharedstatedir=$ac_optarg ;;
1161 -site | --site | --sit)
1162 ac_prev=site ;;
1163 -site=* | --site=* | --sit=*)
1164 site=$ac_optarg ;;
1166 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1167 ac_prev=srcdir ;;
1168 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1169 srcdir=$ac_optarg ;;
1171 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1172 | --syscon | --sysco | --sysc | --sys | --sy)
1173 ac_prev=sysconfdir ;;
1174 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1175 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1176 sysconfdir=$ac_optarg ;;
1178 -target | --target | --targe | --targ | --tar | --ta | --t)
1179 ac_prev=target_alias ;;
1180 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1181 target_alias=$ac_optarg ;;
1183 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1184 verbose=yes ;;
1186 -version | --version | --versio | --versi | --vers | -V)
1187 ac_init_version=: ;;
1189 -with-* | --with-*)
1190 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error $? "invalid package name: $ac_useropt"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1198 "with_$ac_useropt"
1199 "*) ;;
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1202 esac
1203 eval with_$ac_useropt=\$ac_optarg ;;
1205 -without-* | --without-*)
1206 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209 as_fn_error $? "invalid package name: $ac_useropt"
1210 ac_useropt_orig=$ac_useropt
1211 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212 case $ac_user_opts in
1214 "with_$ac_useropt"
1215 "*) ;;
1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1217 ac_unrecognized_sep=', ';;
1218 esac
1219 eval with_$ac_useropt=no ;;
1221 --x)
1222 # Obsolete; use --with-x.
1223 with_x=yes ;;
1225 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1226 | --x-incl | --x-inc | --x-in | --x-i)
1227 ac_prev=x_includes ;;
1228 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1229 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1230 x_includes=$ac_optarg ;;
1232 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1233 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1234 ac_prev=x_libraries ;;
1235 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1236 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1237 x_libraries=$ac_optarg ;;
1239 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1240 Try \`$0 --help' for more information"
1243 *=*)
1244 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1245 # Reject names that are not valid shell variable names.
1246 case $ac_envvar in #(
1247 '' | [0-9]* | *[!_$as_cr_alnum]* )
1248 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1249 esac
1250 eval $ac_envvar=\$ac_optarg
1251 export $ac_envvar ;;
1254 # FIXME: should be removed in autoconf 3.0.
1255 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1256 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1257 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1258 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1261 esac
1262 done
1264 if test -n "$ac_prev"; then
1265 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1266 as_fn_error $? "missing argument to $ac_option"
1269 if test -n "$ac_unrecognized_opts"; then
1270 case $enable_option_checking in
1271 no) ;;
1272 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1273 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1274 esac
1277 # Check all directory arguments for consistency.
1278 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279 datadir sysconfdir sharedstatedir localstatedir includedir \
1280 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1281 libdir localedir mandir
1283 eval ac_val=\$$ac_var
1284 # Remove trailing slashes.
1285 case $ac_val in
1286 */ )
1287 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1288 eval $ac_var=\$ac_val;;
1289 esac
1290 # Be sure to have absolute directory names.
1291 case $ac_val in
1292 [\\/$]* | ?:[\\/]* ) continue;;
1293 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1294 esac
1295 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1296 done
1298 # There might be people who depend on the old broken behavior: `$host'
1299 # used to hold the argument of --host etc.
1300 # FIXME: To remove some day.
1301 build=$build_alias
1302 host=$host_alias
1303 target=$target_alias
1305 # FIXME: To remove some day.
1306 if test "x$host_alias" != x; then
1307 if test "x$build_alias" = x; then
1308 cross_compiling=maybe
1309 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1310 If a cross compiler is detected then cross compile mode will be used" >&2
1311 elif test "x$build_alias" != "x$host_alias"; then
1312 cross_compiling=yes
1316 ac_tool_prefix=
1317 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1319 test "$silent" = yes && exec 6>/dev/null
1322 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1323 ac_ls_di=`ls -di .` &&
1324 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1325 as_fn_error $? "working directory cannot be determined"
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327 as_fn_error $? "pwd does not report name of working directory"
1330 # Find the source files, if location was not specified.
1331 if test -z "$srcdir"; then
1332 ac_srcdir_defaulted=yes
1333 # Try the directory containing this script, then the parent directory.
1334 ac_confdir=`$as_dirname -- "$as_myself" ||
1335 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336 X"$as_myself" : 'X\(//\)[^/]' \| \
1337 X"$as_myself" : 'X\(//\)$' \| \
1338 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1339 $as_echo X"$as_myself" |
1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341 s//\1/
1344 /^X\(\/\/\)[^/].*/{
1345 s//\1/
1348 /^X\(\/\/\)$/{
1349 s//\1/
1352 /^X\(\/\).*/{
1353 s//\1/
1356 s/.*/./; q'`
1357 srcdir=$ac_confdir
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 srcdir=..
1361 else
1362 ac_srcdir_defaulted=no
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1366 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1368 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369 ac_abs_confdir=`(
1370 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1371 pwd)`
1372 # When building in place, set srcdir=.
1373 if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 srcdir=.
1376 # Remove unnecessary trailing slashes from srcdir.
1377 # Double slashes in file names in object file debugging info
1378 # mess up M-x gdb in Emacs.
1379 case $srcdir in
1380 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381 esac
1382 for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387 done
1390 # Report the --help message.
1392 if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1395 cat <<_ACEOF
1396 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE. See below for descriptions of some of the useful variables.
1403 Defaults for the options are specified in brackets.
1405 Configuration:
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking ...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416 Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 [PREFIX]
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1427 For better control, use the options below.
1429 Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1449 _ACEOF
1451 cat <<\_ACEOF
1453 Program names:
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1458 X features:
1459 --x-includes=DIR X include files are in DIR
1460 --x-libraries=DIR X library files are in DIR
1462 System types:
1463 --build=BUILD configure for building on BUILD [guessed]
1464 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1465 _ACEOF
1468 if test -n "$ac_init_help"; then
1469 case $ac_init_help in
1470 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1471 esac
1472 cat <<\_ACEOF
1474 Optional Features:
1475 --disable-option-checking ignore unrecognized --enable/--with options
1476 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1477 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1478 --disable-ns-self-contained
1479 disable self contained build under NeXTstep
1480 --enable-asserts compile code with asserts enabled
1481 --enable-maintainer-mode
1482 enable make rules and dependencies not useful (and
1483 sometimes confusing) to the casual installer
1484 --enable-locallisppath=PATH
1485 directories Emacs should search for lisp files
1486 specific to this site
1487 --enable-checking[=LIST]
1488 enable expensive run-time checks. With LIST, enable
1489 only specific categories of checks. Categories are:
1490 all,yes,no. Flags are: stringbytes, stringoverrun,
1491 stringfreelist, xmallocoverrun, conslist
1492 --enable-use-lisp-union-type
1493 use a union for the Lisp_Object data type. This is
1494 only useful for development for catching certain
1495 types of bugs.
1496 --enable-profiling build emacs with profiling support. This might not
1497 work on all platforms
1498 --enable-autodepend automatically generate dependencies to .h-files.
1499 Requires GNU Make and Gcc. Enabled if GNU Make and
1500 Gcc is found
1501 --disable-largefile omit support for large files
1503 Optional Packages:
1504 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1505 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1506 --without-pop don't support POP mail retrieval with movemail
1507 --with-kerberos support Kerberos-authenticated POP
1508 --with-kerberos5 support Kerberos version 5 authenticated POP
1509 --with-hesiod support Hesiod to get the POP server host
1510 --with-mmdf support MMDF mailboxes
1511 --with-mail-unlink unlink, rather than empty, mail spool after reading
1512 --with-mailhost=HOSTNAME
1513 string giving default POP mail host
1514 --without-sound don't compile with sound support
1515 --without-sync-input process async input synchronously
1516 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1517 lucid or athena, motif, no)
1518 --without-xpm don't compile with XPM image support
1519 --without-jpeg don't compile with JPEG image support
1520 --without-tiff don't compile with TIFF image support
1521 --without-gif don't compile with GIF image support
1522 --without-png don't compile with PNG image support
1523 --without-rsvg don't compile with SVG image support
1524 --without-xml2 don't compile with XML parsing support
1525 --without-imagemagick don't compile with ImageMagick image support
1526 --without-xft don't use XFT for anti aliased fonts
1527 --without-libotf don't use libotf for OpenType font support
1528 --without-m17n-flt don't use m17n-flt for text shaping
1529 --without-toolkit-scroll-bars
1530 don't use Motif or Xaw3d scroll bars
1531 --without-xaw3d don't use Xaw3d
1532 --without-xim don't use X11 XIM
1533 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1534 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1535 console
1536 --without-dbus don't compile with D-Bus support
1537 --without-gconf don't compile with GConf support
1538 --without-selinux don't compile with SELinux support
1539 --without-gnutls don't use -lgnutls for SSL/TLS support
1540 --without-makeinfo don't require makeinfo for building manuals
1541 --without-compress-info don't compress the installed Info pages
1542 --with-pkg-config-prog=PATH
1543 path to pkg-config for finding GTK and librsvg
1544 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1545 /usr/lib, or /usr/lib64 on some platforms.
1546 --with-gameuser=USER user for shared game score files
1547 --with-gnustep-conf=PATH
1548 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1549 or /etc/GNUstep/GNUstep.conf
1550 --with-x use the X Window System
1552 Some influential environment variables:
1553 CC C compiler command
1554 CFLAGS C compiler flags
1555 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1556 nonstandard directory <lib dir>
1557 LIBS libraries to pass to the linker, e.g. -l<library>
1558 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1559 you have headers in a nonstandard directory <include dir>
1560 CPP C preprocessor
1561 XMKMF Path to xmkmf, Makefile generator for X Window System
1563 Use these variables to override the choices made by `configure' or to help
1564 it to find libraries and programs with nonstandard names/locations.
1566 Report bugs to the package provider.
1567 _ACEOF
1568 ac_status=$?
1571 if test "$ac_init_help" = "recursive"; then
1572 # If there are subdirs, report their specific --help.
1573 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1574 test -d "$ac_dir" ||
1575 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1576 continue
1577 ac_builddir=.
1579 case "$ac_dir" in
1580 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1583 # A ".." for each directory in $ac_dir_suffix.
1584 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1585 case $ac_top_builddir_sub in
1586 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1588 esac ;;
1589 esac
1590 ac_abs_top_builddir=$ac_pwd
1591 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1592 # for backward compatibility:
1593 ac_top_builddir=$ac_top_build_prefix
1595 case $srcdir in
1596 .) # We are building in place.
1597 ac_srcdir=.
1598 ac_top_srcdir=$ac_top_builddir_sub
1599 ac_abs_top_srcdir=$ac_pwd ;;
1600 [\\/]* | ?:[\\/]* ) # Absolute name.
1601 ac_srcdir=$srcdir$ac_dir_suffix;
1602 ac_top_srcdir=$srcdir
1603 ac_abs_top_srcdir=$srcdir ;;
1604 *) # Relative name.
1605 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1606 ac_top_srcdir=$ac_top_build_prefix$srcdir
1607 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1608 esac
1609 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1611 cd "$ac_dir" || { ac_status=$?; continue; }
1612 # Check for guested configure.
1613 if test -f "$ac_srcdir/configure.gnu"; then
1614 echo &&
1615 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1616 elif test -f "$ac_srcdir/configure"; then
1617 echo &&
1618 $SHELL "$ac_srcdir/configure" --help=recursive
1619 else
1620 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1621 fi || ac_status=$?
1622 cd "$ac_pwd" || { ac_status=$?; break; }
1623 done
1626 test -n "$ac_init_help" && exit $ac_status
1627 if $ac_init_version; then
1628 cat <<\_ACEOF
1629 emacs configure 24.0.50
1630 generated by GNU Autoconf 2.67
1632 Copyright (C) 2010 Free Software Foundation, Inc.
1633 This configure script is free software; the Free Software Foundation
1634 gives unlimited permission to copy, distribute and modify it.
1635 _ACEOF
1636 exit
1639 ## ------------------------ ##
1640 ## Autoconf initialization. ##
1641 ## ------------------------ ##
1643 # ac_fn_c_try_compile LINENO
1644 # --------------------------
1645 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_c_try_compile ()
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 rm -f conftest.$ac_objext
1650 if { { ac_try="$ac_compile"
1651 case "(($ac_try" in
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1654 esac
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_compile") 2>conftest.err
1658 ac_status=$?
1659 if test -s conftest.err; then
1660 grep -v '^ *+' conftest.err >conftest.er1
1661 cat conftest.er1 >&5
1662 mv -f conftest.er1 conftest.err
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } && {
1666 test -z "$ac_c_werror_flag" ||
1667 test ! -s conftest.err
1668 } && test -s conftest.$ac_objext; then :
1669 ac_retval=0
1670 else
1671 $as_echo "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1674 ac_retval=1
1676 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1677 as_fn_set_status $ac_retval
1679 } # ac_fn_c_try_compile
1681 # ac_fn_c_try_link LINENO
1682 # -----------------------
1683 # Try to link conftest.$ac_ext, and return whether this succeeded.
1684 ac_fn_c_try_link ()
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 rm -f conftest.$ac_objext conftest$ac_exeext
1688 if { { ac_try="$ac_link"
1689 case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692 esac
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_link") 2>conftest.err
1696 ac_status=$?
1697 if test -s conftest.err; then
1698 grep -v '^ *+' conftest.err >conftest.er1
1699 cat conftest.er1 >&5
1700 mv -f conftest.er1 conftest.err
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && {
1704 test -z "$ac_c_werror_flag" ||
1705 test ! -s conftest.err
1706 } && test -s conftest$ac_exeext && {
1707 test "$cross_compiling" = yes ||
1708 $as_test_x conftest$ac_exeext
1709 }; then :
1710 ac_retval=0
1711 else
1712 $as_echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1715 ac_retval=1
1717 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1718 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1719 # interfere with the next link command; also delete a directory that is
1720 # left behind by Apple's compiler. We do this before executing the actions.
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1723 as_fn_set_status $ac_retval
1725 } # ac_fn_c_try_link
1727 # ac_fn_c_try_cpp LINENO
1728 # ----------------------
1729 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1730 ac_fn_c_try_cpp ()
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { { ac_try="$ac_cpp conftest.$ac_ext"
1734 case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1741 ac_status=$?
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } > conftest.i && {
1749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1750 test ! -s conftest.err
1751 }; then :
1752 ac_retval=0
1753 else
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1757 ac_retval=1
1759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760 as_fn_set_status $ac_retval
1762 } # ac_fn_c_try_cpp
1764 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1765 # -------------------------------------------------------
1766 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1767 # the include files in INCLUDES and setting the cache variable VAR
1768 # accordingly.
1769 ac_fn_c_check_header_mongrel ()
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 if eval "test \"\${$3+set}\"" = set; then :
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if eval "test \"\${$3+set}\"" = set; then :
1776 $as_echo_n "(cached) " >&6
1778 eval ac_res=\$$3
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 $as_echo "$ac_res" >&6; }
1781 else
1782 # Is the header compilable?
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1784 $as_echo_n "checking $2 usability... " >&6; }
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1788 #include <$2>
1789 _ACEOF
1790 if ac_fn_c_try_compile "$LINENO"; then :
1791 ac_header_compiler=yes
1792 else
1793 ac_header_compiler=no
1795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1797 $as_echo "$ac_header_compiler" >&6; }
1799 # Is the header present?
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1801 $as_echo_n "checking $2 presence... " >&6; }
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1804 #include <$2>
1805 _ACEOF
1806 if ac_fn_c_try_cpp "$LINENO"; then :
1807 ac_header_preproc=yes
1808 else
1809 ac_header_preproc=no
1811 rm -f conftest.err conftest.i conftest.$ac_ext
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1813 $as_echo "$ac_header_preproc" >&6; }
1815 # So? What about this header?
1816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1817 yes:no: )
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1819 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1821 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1823 no:yes:* )
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1825 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1827 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1829 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1831 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1833 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1835 esac
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if eval "test \"\${$3+set}\"" = set; then :
1839 $as_echo_n "(cached) " >&6
1840 else
1841 eval "$3=\$ac_header_compiler"
1843 eval ac_res=\$$3
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845 $as_echo "$ac_res" >&6; }
1847 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1849 } # ac_fn_c_check_header_mongrel
1851 # ac_fn_c_try_run LINENO
1852 # ----------------------
1853 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1854 # that executables *can* be run.
1855 ac_fn_c_try_run ()
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 if { { ac_try="$ac_link"
1859 case "(($ac_try" in
1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861 *) ac_try_echo=$ac_try;;
1862 esac
1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_link") 2>&5
1866 ac_status=$?
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1869 { { case "(($ac_try" in
1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_try") 2>&5
1876 ac_status=$?
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; }; }; then :
1879 ac_retval=0
1880 else
1881 $as_echo "$as_me: program exited with status $ac_status" >&5
1882 $as_echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1885 ac_retval=$ac_status
1887 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1889 as_fn_set_status $ac_retval
1891 } # ac_fn_c_try_run
1893 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1894 # -------------------------------------------------------
1895 # Tests whether HEADER exists and can be compiled using the include files in
1896 # INCLUDES, setting the cache variable VAR accordingly.
1897 ac_fn_c_check_header_compile ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if eval "test \"\${$3+set}\"" = set; then :
1903 $as_echo_n "(cached) " >&6
1904 else
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1908 #include <$2>
1909 _ACEOF
1910 if ac_fn_c_try_compile "$LINENO"; then :
1911 eval "$3=yes"
1912 else
1913 eval "$3=no"
1915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917 eval ac_res=\$$3
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919 $as_echo "$ac_res" >&6; }
1920 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1922 } # ac_fn_c_check_header_compile
1924 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1925 # ---------------------------------------------
1926 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1927 # accordingly.
1928 ac_fn_c_check_decl ()
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 as_decl_name=`echo $2|sed 's/ *(.*//'`
1932 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1934 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1935 if eval "test \"\${$3+set}\"" = set; then :
1936 $as_echo_n "(cached) " >&6
1937 else
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1942 main ()
1944 #ifndef $as_decl_name
1945 #ifdef __cplusplus
1946 (void) $as_decl_use;
1947 #else
1948 (void) $as_decl_name;
1949 #endif
1950 #endif
1953 return 0;
1955 _ACEOF
1956 if ac_fn_c_try_compile "$LINENO"; then :
1957 eval "$3=yes"
1958 else
1959 eval "$3=no"
1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963 eval ac_res=\$$3
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1968 } # ac_fn_c_check_decl
1970 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1971 # ----------------------------------------------
1972 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1973 ac_fn_c_check_header_preproc ()
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977 $as_echo_n "checking for $2... " >&6; }
1978 if eval "test \"\${$3+set}\"" = set; then :
1979 $as_echo_n "(cached) " >&6
1980 else
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1983 #include <$2>
1984 _ACEOF
1985 if ac_fn_c_try_cpp "$LINENO"; then :
1986 eval "$3=yes"
1987 else
1988 eval "$3=no"
1990 rm -f conftest.err conftest.i conftest.$ac_ext
1992 eval ac_res=\$$3
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994 $as_echo "$ac_res" >&6; }
1995 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1997 } # ac_fn_c_check_header_preproc
1999 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2000 # ----------------------------------------------------
2001 # Tries to find if the field MEMBER exists in type AGGR, after including
2002 # INCLUDES, setting cache variable VAR accordingly.
2003 ac_fn_c_check_member ()
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2007 $as_echo_n "checking for $2.$3... " >&6; }
2008 if eval "test \"\${$4+set}\"" = set; then :
2009 $as_echo_n "(cached) " >&6
2010 else
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2015 main ()
2017 static $2 ac_aggr;
2018 if (ac_aggr.$3)
2019 return 0;
2021 return 0;
2023 _ACEOF
2024 if ac_fn_c_try_compile "$LINENO"; then :
2025 eval "$4=yes"
2026 else
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2031 main ()
2033 static $2 ac_aggr;
2034 if (sizeof ac_aggr.$3)
2035 return 0;
2037 return 0;
2039 _ACEOF
2040 if ac_fn_c_try_compile "$LINENO"; then :
2041 eval "$4=yes"
2042 else
2043 eval "$4=no"
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 eval ac_res=\$$4
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2052 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2054 } # ac_fn_c_check_member
2056 # ac_fn_c_check_func LINENO FUNC VAR
2057 # ----------------------------------
2058 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2059 ac_fn_c_check_func ()
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2063 $as_echo_n "checking for $2... " >&6; }
2064 if eval "test \"\${$3+set}\"" = set; then :
2065 $as_echo_n "(cached) " >&6
2066 else
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2069 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2071 #define $2 innocuous_$2
2073 /* System header to define __stub macros and hopefully few prototypes,
2074 which can conflict with char $2 (); below.
2075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2076 <limits.h> exists even on freestanding compilers. */
2078 #ifdef __STDC__
2079 # include <limits.h>
2080 #else
2081 # include <assert.h>
2082 #endif
2084 #undef $2
2086 /* Override any GCC internal prototype to avoid an error.
2087 Use char because int might match the return type of a GCC
2088 builtin and then its argument prototype would still apply. */
2089 #ifdef __cplusplus
2090 extern "C"
2091 #endif
2092 char $2 ();
2093 /* The GNU C library defines this for functions which it implements
2094 to always fail with ENOSYS. Some functions are actually named
2095 something starting with __ and the normal name is an alias. */
2096 #if defined __stub_$2 || defined __stub___$2
2097 choke me
2098 #endif
2101 main ()
2103 return $2 ();
2105 return 0;
2107 _ACEOF
2108 if ac_fn_c_try_link "$LINENO"; then :
2109 eval "$3=yes"
2110 else
2111 eval "$3=no"
2113 rm -f core conftest.err conftest.$ac_objext \
2114 conftest$ac_exeext conftest.$ac_ext
2116 eval ac_res=\$$3
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118 $as_echo "$ac_res" >&6; }
2119 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2121 } # ac_fn_c_check_func
2123 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2124 # -------------------------------------------
2125 # Tests whether TYPE exists after having included INCLUDES, setting cache
2126 # variable VAR accordingly.
2127 ac_fn_c_check_type ()
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2131 $as_echo_n "checking for $2... " >&6; }
2132 if eval "test \"\${$3+set}\"" = set; then :
2133 $as_echo_n "(cached) " >&6
2134 else
2135 eval "$3=no"
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h. */
2140 main ()
2142 if (sizeof ($2))
2143 return 0;
2145 return 0;
2147 _ACEOF
2148 if ac_fn_c_try_compile "$LINENO"; then :
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2153 main ()
2155 if (sizeof (($2)))
2156 return 0;
2158 return 0;
2160 _ACEOF
2161 if ac_fn_c_try_compile "$LINENO"; then :
2163 else
2164 eval "$3=yes"
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 eval ac_res=\$$3
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2172 $as_echo "$ac_res" >&6; }
2173 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2175 } # ac_fn_c_check_type
2176 cat >config.log <<_ACEOF
2177 This file contains any messages produced by compilers while
2178 running configure, to aid debugging if configure makes a mistake.
2180 It was created by emacs $as_me 24.0.50, which was
2181 generated by GNU Autoconf 2.67. Invocation command line was
2183 $ $0 $@
2185 _ACEOF
2186 exec 5>>config.log
2188 cat <<_ASUNAME
2189 ## --------- ##
2190 ## Platform. ##
2191 ## --------- ##
2193 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2194 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2195 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2196 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2197 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2199 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2200 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2202 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2203 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2204 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2205 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2206 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2207 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2208 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2210 _ASUNAME
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213 for as_dir in $PATH
2215 IFS=$as_save_IFS
2216 test -z "$as_dir" && as_dir=.
2217 $as_echo "PATH: $as_dir"
2218 done
2219 IFS=$as_save_IFS
2221 } >&5
2223 cat >&5 <<_ACEOF
2226 ## ----------- ##
2227 ## Core tests. ##
2228 ## ----------- ##
2230 _ACEOF
2233 # Keep a trace of the command line.
2234 # Strip out --no-create and --no-recursion so they do not pile up.
2235 # Strip out --silent because we don't want to record it for future runs.
2236 # Also quote any args containing shell meta-characters.
2237 # Make two passes to allow for proper duplicate-argument suppression.
2238 ac_configure_args=
2239 ac_configure_args0=
2240 ac_configure_args1=
2241 ac_must_keep_next=false
2242 for ac_pass in 1 2
2244 for ac_arg
2246 case $ac_arg in
2247 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2249 | -silent | --silent | --silen | --sile | --sil)
2250 continue ;;
2251 *\'*)
2252 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2253 esac
2254 case $ac_pass in
2255 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2257 as_fn_append ac_configure_args1 " '$ac_arg'"
2258 if test $ac_must_keep_next = true; then
2259 ac_must_keep_next=false # Got value, back to normal.
2260 else
2261 case $ac_arg in
2262 *=* | --config-cache | -C | -disable-* | --disable-* \
2263 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2264 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2265 | -with-* | --with-* | -without-* | --without-* | --x)
2266 case "$ac_configure_args0 " in
2267 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2268 esac
2270 -* ) ac_must_keep_next=true ;;
2271 esac
2273 as_fn_append ac_configure_args " '$ac_arg'"
2275 esac
2276 done
2277 done
2278 { ac_configure_args0=; unset ac_configure_args0;}
2279 { ac_configure_args1=; unset ac_configure_args1;}
2281 # When interrupted or exit'd, cleanup temporary files, and complete
2282 # config.log. We remove comments because anyway the quotes in there
2283 # would cause problems or look ugly.
2284 # WARNING: Use '\'' to represent an apostrophe within the trap.
2285 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2286 trap 'exit_status=$?
2287 # Save into config.log some information that might help in debugging.
2289 echo
2291 $as_echo "## ---------------- ##
2292 ## Cache variables. ##
2293 ## ---------------- ##"
2294 echo
2295 # The following way of writing the cache mishandles newlines in values,
2297 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2298 eval ac_val=\$$ac_var
2299 case $ac_val in #(
2300 *${as_nl}*)
2301 case $ac_var in #(
2302 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2303 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2304 esac
2305 case $ac_var in #(
2306 _ | IFS | as_nl) ;; #(
2307 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2308 *) { eval $ac_var=; unset $ac_var;} ;;
2309 esac ;;
2310 esac
2311 done
2312 (set) 2>&1 |
2313 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2314 *${as_nl}ac_space=\ *)
2315 sed -n \
2316 "s/'\''/'\''\\\\'\'''\''/g;
2317 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2318 ;; #(
2320 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2322 esac |
2323 sort
2325 echo
2327 $as_echo "## ----------------- ##
2328 ## Output variables. ##
2329 ## ----------------- ##"
2330 echo
2331 for ac_var in $ac_subst_vars
2333 eval ac_val=\$$ac_var
2334 case $ac_val in
2335 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2336 esac
2337 $as_echo "$ac_var='\''$ac_val'\''"
2338 done | sort
2339 echo
2341 if test -n "$ac_subst_files"; then
2342 $as_echo "## ------------------- ##
2343 ## File substitutions. ##
2344 ## ------------------- ##"
2345 echo
2346 for ac_var in $ac_subst_files
2348 eval ac_val=\$$ac_var
2349 case $ac_val in
2350 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2351 esac
2352 $as_echo "$ac_var='\''$ac_val'\''"
2353 done | sort
2354 echo
2357 if test -s confdefs.h; then
2358 $as_echo "## ----------- ##
2359 ## confdefs.h. ##
2360 ## ----------- ##"
2361 echo
2362 cat confdefs.h
2363 echo
2365 test "$ac_signal" != 0 &&
2366 $as_echo "$as_me: caught signal $ac_signal"
2367 $as_echo "$as_me: exit $exit_status"
2368 } >&5
2369 rm -f core *.core core.conftest.* &&
2370 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2371 exit $exit_status
2373 for ac_signal in 1 2 13 15; do
2374 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2375 done
2376 ac_signal=0
2378 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2379 rm -f -r conftest* confdefs.h
2381 $as_echo "/* confdefs.h */" > confdefs.h
2383 # Predefined preprocessor variables.
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_NAME "$PACKAGE_NAME"
2387 _ACEOF
2389 cat >>confdefs.h <<_ACEOF
2390 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2391 _ACEOF
2393 cat >>confdefs.h <<_ACEOF
2394 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2395 _ACEOF
2397 cat >>confdefs.h <<_ACEOF
2398 #define PACKAGE_STRING "$PACKAGE_STRING"
2399 _ACEOF
2401 cat >>confdefs.h <<_ACEOF
2402 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2403 _ACEOF
2405 cat >>confdefs.h <<_ACEOF
2406 #define PACKAGE_URL "$PACKAGE_URL"
2407 _ACEOF
2410 # Let the site file select an alternate cache file if it wants to.
2411 # Prefer an explicitly selected file to automatically selected ones.
2412 ac_site_file1=NONE
2413 ac_site_file2=NONE
2414 if test -n "$CONFIG_SITE"; then
2415 # We do not want a PATH search for config.site.
2416 case $CONFIG_SITE in #((
2417 -*) ac_site_file1=./$CONFIG_SITE;;
2418 */*) ac_site_file1=$CONFIG_SITE;;
2419 *) ac_site_file1=./$CONFIG_SITE;;
2420 esac
2421 elif test "x$prefix" != xNONE; then
2422 ac_site_file1=$prefix/share/config.site
2423 ac_site_file2=$prefix/etc/config.site
2424 else
2425 ac_site_file1=$ac_default_prefix/share/config.site
2426 ac_site_file2=$ac_default_prefix/etc/config.site
2428 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2430 test "x$ac_site_file" = xNONE && continue
2431 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2433 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2434 sed 's/^/| /' "$ac_site_file" >&5
2435 . "$ac_site_file" \
2436 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2438 as_fn_error $? "failed to load site script $ac_site_file
2439 See \`config.log' for more details" "$LINENO" 5; }
2441 done
2443 if test -r "$cache_file"; then
2444 # Some versions of bash will fail to source /dev/null (special files
2445 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2446 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2448 $as_echo "$as_me: loading cache $cache_file" >&6;}
2449 case $cache_file in
2450 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2451 *) . "./$cache_file";;
2452 esac
2454 else
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2456 $as_echo "$as_me: creating cache $cache_file" >&6;}
2457 >$cache_file
2460 as_fn_append ac_header_list " stdlib.h"
2461 as_fn_append ac_header_list " unistd.h"
2462 as_fn_append ac_header_list " sys/param.h"
2463 as_fn_append ac_header_list " sys/time.h"
2464 as_fn_append ac_func_list " alarm"
2465 # Check that the precious variables saved in the cache have kept the same
2466 # value.
2467 ac_cache_corrupted=false
2468 for ac_var in $ac_precious_vars; do
2469 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2470 eval ac_new_set=\$ac_env_${ac_var}_set
2471 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2472 eval ac_new_val=\$ac_env_${ac_var}_value
2473 case $ac_old_set,$ac_new_set in
2474 set,)
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2476 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2477 ac_cache_corrupted=: ;;
2478 ,set)
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2480 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2481 ac_cache_corrupted=: ;;
2482 ,);;
2484 if test "x$ac_old_val" != "x$ac_new_val"; then
2485 # differences in whitespace do not lead to failure.
2486 ac_old_val_w=`echo x $ac_old_val`
2487 ac_new_val_w=`echo x $ac_new_val`
2488 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2490 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2491 ac_cache_corrupted=:
2492 else
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2494 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2495 eval $ac_var=\$ac_old_val
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2498 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2500 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2501 fi;;
2502 esac
2503 # Pass precious variables to config.status.
2504 if test "$ac_new_set" = set; then
2505 case $ac_new_val in
2506 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2507 *) ac_arg=$ac_var=$ac_new_val ;;
2508 esac
2509 case " $ac_configure_args " in
2510 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2511 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2512 esac
2514 done
2515 if $ac_cache_corrupted; then
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2519 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2520 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2522 ## -------------------- ##
2523 ## Main body of script. ##
2524 ## -------------------- ##
2526 ac_ext=c
2527 ac_cpp='$CPP $CPPFLAGS'
2528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2533 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2537 test "$program_prefix" != NONE &&
2538 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2539 # Use a double $ so make ignores it.
2540 test "$program_suffix" != NONE &&
2541 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2542 # Double any \ or $.
2543 # By default was `s,x,x', remove it if useless.
2544 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2545 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2548 lispdir='${datadir}/emacs/${version}/lisp'
2549 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2550 '${datadir}/emacs/site-lisp'
2551 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2552 etcdir='${datadir}/emacs/${version}/etc'
2553 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2554 docdir='${datadir}/emacs/${version}/etc'
2555 gamedir='${localstatedir}/games/emacs'
2560 # Check whether --with-pop was given.
2561 if test "${with_pop+set}" = set; then :
2562 withval=$with_pop;
2563 else
2564 with_pop=yes
2567 if test "$with_pop" = yes; then
2568 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2573 # Check whether --with-kerberos was given.
2574 if test "${with_kerberos+set}" = set; then :
2575 withval=$with_kerberos;
2576 else
2577 with_kerberos=no
2580 if test "$with_kerberos" != no; then
2581 $as_echo "#define KERBEROS 1" >>confdefs.h
2586 # Check whether --with-kerberos5 was given.
2587 if test "${with_kerberos5+set}" = set; then :
2588 withval=$with_kerberos5;
2589 else
2590 with_kerberos5=no
2593 if test "${with_kerberos5}" != no; then
2594 if test "${with_kerberos}" = no; then
2595 with_kerberos=yes
2596 $as_echo "#define KERBEROS 1" >>confdefs.h
2600 $as_echo "#define KERBEROS5 1" >>confdefs.h
2605 # Check whether --with-hesiod was given.
2606 if test "${with_hesiod+set}" = set; then :
2607 withval=$with_hesiod;
2608 else
2609 with_hesiod=no
2612 if test "$with_hesiod" != no; then
2614 $as_echo "#define HESIOD 1" >>confdefs.h
2619 # Check whether --with-mmdf was given.
2620 if test "${with_mmdf+set}" = set; then :
2621 withval=$with_mmdf;
2622 else
2623 with_mmdf=no
2626 if test "$with_mmdf" != no; then
2628 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2633 # Check whether --with-mail-unlink was given.
2634 if test "${with_mail_unlink+set}" = set; then :
2635 withval=$with_mail_unlink;
2636 else
2637 with_mail_unlink=no
2640 if test "$with_mail_unlink" != no; then
2642 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2647 # Check whether --with-mailhost was given.
2648 if test "${with_mailhost+set}" = set; then :
2649 withval=$with_mailhost;
2650 cat >>confdefs.h <<_ACEOF
2651 #define MAILHOST "$withval"
2652 _ACEOF
2658 # Check whether --with-sound was given.
2659 if test "${with_sound+set}" = set; then :
2660 withval=$with_sound;
2661 else
2662 with_sound=yes
2667 # Check whether --with-sync-input was given.
2668 if test "${with_sync_input+set}" = set; then :
2669 withval=$with_sync_input;
2670 else
2671 with_sync_input=yes
2674 if test "$with_sync_input" = yes; then
2676 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2681 # Check whether --with-x-toolkit was given.
2682 if test "${with_x_toolkit+set}" = set; then :
2683 withval=$with_x_toolkit; case "${withval}" in
2684 y | ye | yes ) val=gtk ;;
2685 n | no ) val=no ;;
2686 l | lu | luc | luci | lucid ) val=lucid ;;
2687 a | at | ath | athe | athen | athena ) val=athena ;;
2688 m | mo | mot | moti | motif ) val=motif ;;
2689 g | gt | gtk ) val=gtk ;;
2690 gtk3 ) val=gtk3 ;;
2692 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
2693 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
2694 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2696 esac
2697 with_x_toolkit=$val
2703 # Check whether --with-xpm was given.
2704 if test "${with_xpm+set}" = set; then :
2705 withval=$with_xpm;
2706 else
2707 with_xpm=yes
2711 # Check whether --with-jpeg was given.
2712 if test "${with_jpeg+set}" = set; then :
2713 withval=$with_jpeg;
2714 else
2715 with_jpeg=yes
2719 # Check whether --with-tiff was given.
2720 if test "${with_tiff+set}" = set; then :
2721 withval=$with_tiff;
2722 else
2723 with_tiff=yes
2727 # Check whether --with-gif was given.
2728 if test "${with_gif+set}" = set; then :
2729 withval=$with_gif;
2730 else
2731 with_gif=yes
2735 # Check whether --with-png was given.
2736 if test "${with_png+set}" = set; then :
2737 withval=$with_png;
2738 else
2739 with_png=yes
2743 # Check whether --with-rsvg was given.
2744 if test "${with_rsvg+set}" = set; then :
2745 withval=$with_rsvg;
2746 else
2747 with_rsvg=yes
2751 # Check whether --with-xml2 was given.
2752 if test "${with_xml2+set}" = set; then :
2753 withval=$with_xml2;
2754 else
2755 with_xml2=yes
2759 # Check whether --with-imagemagick was given.
2760 if test "${with_imagemagick+set}" = set; then :
2761 withval=$with_imagemagick;
2762 else
2763 with_imagemagick=yes
2768 # Check whether --with-xft was given.
2769 if test "${with_xft+set}" = set; then :
2770 withval=$with_xft;
2771 else
2772 with_xft=yes
2776 # Check whether --with-libotf was given.
2777 if test "${with_libotf+set}" = set; then :
2778 withval=$with_libotf;
2779 else
2780 with_libotf=yes
2784 # Check whether --with-m17n-flt was given.
2785 if test "${with_m17n_flt+set}" = set; then :
2786 withval=$with_m17n_flt;
2787 else
2788 with_m17n_flt=yes
2793 # Check whether --with-toolkit-scroll-bars was given.
2794 if test "${with_toolkit_scroll_bars+set}" = set; then :
2795 withval=$with_toolkit_scroll_bars;
2796 else
2797 with_toolkit_scroll_bars=yes
2801 # Check whether --with-xaw3d was given.
2802 if test "${with_xaw3d+set}" = set; then :
2803 withval=$with_xaw3d;
2804 else
2805 with_xaw3d=yes
2809 # Check whether --with-xim was given.
2810 if test "${with_xim+set}" = set; then :
2811 withval=$with_xim;
2812 else
2813 with_xim=yes
2817 # Check whether --with-ns was given.
2818 if test "${with_ns+set}" = set; then :
2819 withval=$with_ns;
2820 else
2821 with_ns=no
2826 # Check whether --with-gpm was given.
2827 if test "${with_gpm+set}" = set; then :
2828 withval=$with_gpm;
2829 else
2830 with_gpm=yes
2834 # Check whether --with-dbus was given.
2835 if test "${with_dbus+set}" = set; then :
2836 withval=$with_dbus;
2837 else
2838 with_dbus=yes
2842 # Check whether --with-gconf was given.
2843 if test "${with_gconf+set}" = set; then :
2844 withval=$with_gconf;
2845 else
2846 with_gconf=yes
2850 # Check whether --with-selinux was given.
2851 if test "${with_selinux+set}" = set; then :
2852 withval=$with_selinux;
2853 else
2854 with_selinux=yes
2858 # Check whether --with-gnutls was given.
2859 if test "${with_gnutls+set}" = set; then :
2860 withval=$with_gnutls;
2861 else
2862 with_gnutls=yes
2866 ## For the times when you want to build Emacs but don't have
2867 ## a suitable makeinfo, and can live without the manuals.
2869 # Check whether --with-makeinfo was given.
2870 if test "${with_makeinfo+set}" = set; then :
2871 withval=$with_makeinfo;
2872 else
2873 with_makeinfo=yes
2877 ## This is an option because I do not know if all info/man support
2878 ## compressed files, nor how to test if they do so.
2880 # Check whether --with-compress-info was given.
2881 if test "${with_compress_info+set}" = set; then :
2882 withval=$with_compress_info;
2883 else
2884 with_compress_info=yes
2887 if test $with_compress_info = yes; then
2888 GZIP_INFO=yes
2889 else
2890 GZIP_INFO=
2895 # Check whether --with-pkg-config-prog was given.
2896 if test "${with_pkg_config_prog+set}" = set; then :
2897 withval=$with_pkg_config_prog;
2900 if test "X${with_pkg_config_prog}" != X; then
2901 if test "${with_pkg_config_prog}" != yes; then
2902 PKG_CONFIG="${with_pkg_config_prog}"
2906 CRT_DIR=
2908 # Check whether --with-crt-dir was given.
2909 if test "${with_crt_dir+set}" = set; then :
2910 withval=$with_crt_dir;
2913 CRT_DIR="${with_crt_dir}"
2916 # Check whether --with-gameuser was given.
2917 if test "${with_gameuser+set}" = set; then :
2918 withval=$with_gameuser;
2921 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
2922 && gameuser="${with_gameuser}"
2923 test "X$gameuser" = X && gameuser=games
2926 # Check whether --with-gnustep-conf was given.
2927 if test "${with_gnustep_conf+set}" = set; then :
2928 withval=$with_gnustep_conf;
2931 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2932 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2933 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2934 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2936 # Check whether --enable-ns-self-contained was given.
2937 if test "${enable_ns_self_contained+set}" = set; then :
2938 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2939 else
2940 EN_NS_SELF_CONTAINED=yes
2944 # Check whether --enable-asserts was given.
2945 if test "${enable_asserts+set}" = set; then :
2946 enableval=$enable_asserts; USE_XASSERTS=$enableval
2947 else
2948 USE_XASSERTS=no
2952 # Check whether --enable-maintainer-mode was given.
2953 if test "${enable_maintainer_mode+set}" = set; then :
2954 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2955 else
2956 USE_MAINTAINER_MODE=no
2959 if test $USE_MAINTAINER_MODE = yes; then
2960 MAINT=
2961 else
2962 MAINT=#
2966 # Check whether --enable-locallisppath was given.
2967 if test "${enable_locallisppath+set}" = set; then :
2968 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2969 locallisppath=
2970 elif test "${enableval}" != "yes"; then
2971 locallisppath=${enableval}
2976 # Check whether --enable-checking was given.
2977 if test "${enable_checking+set}" = set; then :
2978 enableval=$enable_checking; ac_checking_flags="${enableval}"
2981 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2982 for check in $ac_checking_flags
2984 case $check in
2985 # these set all the flags to specific states
2986 yes) ac_enable_checking=1 ;;
2987 no) ac_enable_checking= ;
2988 ac_gc_check_stringbytes= ;
2989 ac_gc_check_string_overrun= ;
2990 ac_gc_check_string_free_list= ;
2991 ac_xmalloc_overrun= ;
2992 ac_gc_check_cons_list= ;;
2993 all) ac_enable_checking=1 ;
2994 ac_gc_check_stringbytes=1 ;
2995 ac_gc_check_string_overrun=1 ;
2996 ac_gc_check_string_free_list=1 ;
2997 ac_xmalloc_overrun=1 ;
2998 ac_gc_check_cons_list=1 ;;
2999 # these enable particular checks
3000 stringbytes) ac_gc_check_stringbytes=1 ;;
3001 stringoverrun) ac_gc_check_string_overrun=1 ;;
3002 stringfreelist) ac_gc_check_string_free_list=1 ;;
3003 xmallocoverrun) ac_xmalloc_overrun=1 ;;
3004 conslist) ac_gc_check_cons_list=1 ;;
3005 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
3006 esac
3007 done
3008 IFS="$ac_save_IFS"
3010 if test x$ac_enable_checking != x ; then
3012 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3015 if test x$ac_gc_check_stringbytes != x ; then
3017 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3020 if test x$ac_gc_check_stringoverrun != x ; then
3022 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3025 if test x$ac_gc_check_string_free_list != x ; then
3027 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3030 if test x$ac_xmalloc_overrun != x ; then
3032 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3035 if test x$ac_gc_check_cons_list != x ; then
3037 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3041 # Check whether --enable-use-lisp-union-type was given.
3042 if test "${enable_use_lisp_union_type+set}" = set; then :
3043 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3045 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3052 # Check whether --enable-profiling was given.
3053 if test "${enable_profiling+set}" = set; then :
3054 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3057 if test x$ac_enable_profiling != x ; then
3058 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3059 else
3060 PROFILING_CFLAGS=
3064 # Check whether --enable-autodepend was given.
3065 if test "${enable_autodepend+set}" = set; then :
3066 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3067 else
3068 ac_enable_autodepend=yes
3072 #### Make srcdir absolute, if it isn't already. It's important to
3073 #### avoid running the path through pwd unnecessarily, since pwd can
3074 #### give you automounter prefixes, which can go away. We do all this
3075 #### so Emacs can find its files when run uninstalled.
3076 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3077 unset CDPATH
3078 case "${srcdir}" in
3079 /* ) ;;
3081 ## We may be able to use the $PWD environment variable to make this
3082 ## absolute. But sometimes PWD is inaccurate.
3083 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3084 ## but that tested only for a well-formed and valid PWD,
3085 ## it did not object when PWD was well-formed and valid but just wrong.
3086 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3087 then
3088 srcdir="$PWD"
3089 else
3090 srcdir="`(cd ${srcdir}; pwd)`"
3093 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3094 esac
3096 #### Check if the source directory already has a configured system in it.
3097 if test `pwd` != `(cd ${srcdir} && pwd)` \
3098 && test -f "${srcdir}/src/config.h" ; then
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3100 as a build directory right now; it has been configured in its own
3101 right. To configure in another directory as well, you MUST
3102 use GNU make. If you do not have GNU make, then you must
3103 now do \`make distclean' in ${srcdir},
3104 and then run $0 again." >&5
3105 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3106 as a build directory right now; it has been configured in its own
3107 right. To configure in another directory as well, you MUST
3108 use GNU make. If you do not have GNU make, then you must
3109 now do \`make distclean' in ${srcdir},
3110 and then run $0 again." >&2;}
3113 #### Given the configuration name, set machfile and opsysfile to the
3114 #### names of the m/*.h and s/*.h files we should use.
3116 ### Canonicalize the configuration name.
3118 ac_aux_dir=
3119 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3120 if test -f "$ac_dir/install-sh"; then
3121 ac_aux_dir=$ac_dir
3122 ac_install_sh="$ac_aux_dir/install-sh -c"
3123 break
3124 elif test -f "$ac_dir/install.sh"; then
3125 ac_aux_dir=$ac_dir
3126 ac_install_sh="$ac_aux_dir/install.sh -c"
3127 break
3128 elif test -f "$ac_dir/shtool"; then
3129 ac_aux_dir=$ac_dir
3130 ac_install_sh="$ac_aux_dir/shtool install -c"
3131 break
3133 done
3134 if test -z "$ac_aux_dir"; then
3135 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3138 # These three variables are undocumented and unsupported,
3139 # and are intended to be withdrawn in a future Autoconf release.
3140 # They can cause serious problems if a builder's source tree is in a directory
3141 # whose full name contains unusual characters.
3142 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3143 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3144 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3147 # Make sure we can run config.sub.
3148 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3149 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3152 $as_echo_n "checking build system type... " >&6; }
3153 if test "${ac_cv_build+set}" = set; then :
3154 $as_echo_n "(cached) " >&6
3155 else
3156 ac_build_alias=$build_alias
3157 test "x$ac_build_alias" = x &&
3158 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3159 test "x$ac_build_alias" = x &&
3160 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3161 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3162 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3166 $as_echo "$ac_cv_build" >&6; }
3167 case $ac_cv_build in
3168 *-*-*) ;;
3169 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3170 esac
3171 build=$ac_cv_build
3172 ac_save_IFS=$IFS; IFS='-'
3173 set x $ac_cv_build
3174 shift
3175 build_cpu=$1
3176 build_vendor=$2
3177 shift; shift
3178 # Remember, the first character of IFS is used to create $*,
3179 # except with old shells:
3180 build_os=$*
3181 IFS=$ac_save_IFS
3182 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3186 $as_echo_n "checking host system type... " >&6; }
3187 if test "${ac_cv_host+set}" = set; then :
3188 $as_echo_n "(cached) " >&6
3189 else
3190 if test "x$host_alias" = x; then
3191 ac_cv_host=$ac_cv_build
3192 else
3193 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3194 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3199 $as_echo "$ac_cv_host" >&6; }
3200 case $ac_cv_host in
3201 *-*-*) ;;
3202 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3203 esac
3204 host=$ac_cv_host
3205 ac_save_IFS=$IFS; IFS='-'
3206 set x $ac_cv_host
3207 shift
3208 host_cpu=$1
3209 host_vendor=$2
3210 shift; shift
3211 # Remember, the first character of IFS is used to create $*,
3212 # except with old shells:
3213 host_os=$*
3214 IFS=$ac_save_IFS
3215 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3218 canonical=$host
3219 configuration=${host_alias-${build_alias-$host}}
3223 ### If you add support for a new configuration, add code to this
3224 ### switch statement to recognize your configuration name and select
3225 ### the appropriate operating system and machine description files.
3227 ### You would hope that you could choose an m/*.h file pretty much
3228 ### based on the machine portion of the configuration name, and an s/*.h
3229 ### file based on the operating system portion. However, it turns out
3230 ### that each m/*.h file is pretty manufacturer-specific - for
3231 ### example mips.h is MIPS
3232 ### So we basically have to have a special case for each
3233 ### configuration name.
3235 ### As far as handling version numbers on operating systems is
3236 ### concerned, make sure things will fail in a fixable way. If
3237 ### /etc/MACHINES doesn't say anything about version numbers, be
3238 ### prepared to handle anything reasonably. If version numbers
3239 ### matter, be sure /etc/MACHINES says something about it.
3241 machine='' opsys='' unported=no
3242 case "${canonical}" in
3244 ## GNU/Linux ports
3245 *-*-linux-gnu*)
3246 opsys=gnu-linux
3247 case ${canonical} in
3248 alpha*) machine=alpha ;;
3249 s390-*) machine=ibms390 ;;
3250 s390x-*) machine=ibms390x ;;
3251 powerpc*) machine=macppc ;;
3252 sparc*) machine=sparc ;;
3253 ia64*) machine=ia64 ;;
3254 m68k*) machine=m68k ;;
3255 x86_64*) machine=amdx86-64 ;;
3256 esac
3259 ## FreeBSD ports
3260 *-*-freebsd* )
3261 opsys=freebsd
3262 case "${canonical}" in
3263 alpha*) machine=alpha ;;
3264 amd64-*|x86_64-*) machine=amdx86-64 ;;
3265 ia64-*) machine=ia64 ;;
3266 i[3456]86-*) machine=intel386 ;;
3267 powerpc-*) machine=macppc ;;
3268 sparc-*) machine=sparc ;;
3269 sparc64-*) machine=sparc ;;
3270 esac
3273 ## FreeBSD kernel + glibc based userland
3274 *-*-kfreebsd*gnu* )
3275 opsys=gnu-kfreebsd
3276 case "${canonical}" in
3277 alpha*) machine=alpha ;;
3278 amd64-*|x86_64-*) machine=amdx86-64 ;;
3279 ia64-*) machine=ia64 ;;
3280 i[3456]86-*) machine=intel386 ;;
3281 powerpc-*) machine=macppc ;;
3282 sparc-*) machine=sparc ;;
3283 sparc64-*) machine=sparc ;;
3284 esac
3287 ## NetBSD ports
3288 *-*-netbsd* )
3289 opsys=netbsd
3290 case "${canonical}" in
3291 alpha*) machine=alpha ;;
3292 x86_64-*) machine=amdx86-64 ;;
3293 i[3456]86-*) machine=intel386 ;;
3294 m68k-*) machine=m68k ;;
3295 powerpc-*) machine=macppc ;;
3296 sparc*-) machine=sparc ;;
3297 vax-*) machine=vax ;;
3298 esac
3301 ## OpenBSD ports
3302 *-*-openbsd* )
3303 opsys=openbsd
3304 case "${canonical}" in
3305 alpha*) machine=alpha ;;
3306 x86_64-*) machine=amdx86-64 ;;
3307 i386-*) machine=intel386 ;;
3308 powerpc-*) machine=macppc ;;
3309 sparc*) machine=sparc ;;
3310 vax-*) machine=vax ;;
3311 esac
3314 ## Apple Darwin / Mac OS X
3315 *-apple-darwin* )
3316 case "${canonical}" in
3317 i[3456]86-* ) machine=intel386 ;;
3318 powerpc-* ) machine=macppc ;;
3319 x86_64-* ) machine=amdx86-64 ;;
3320 * ) unported=yes ;;
3321 esac
3322 opsys=darwin
3323 # Define CPP as follows to make autoconf work correctly.
3324 CPP="${CC-cc} -E -no-cpp-precomp"
3325 # Use fink packages if available.
3326 if test -d /sw/include && test -d /sw/lib; then
3327 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3328 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3329 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3333 ## HP 9000 series 700 and 800, running HP/UX
3334 hppa*-hp-hpux10.2* )
3335 opsys=hpux10-20
3337 hppa*-hp-hpux1[1-9]* )
3338 opsys=hpux11
3339 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3342 ## IBM machines
3343 rs6000-ibm-aix4.[23]* )
3344 machine=ibmrs6000 opsys=aix4-2
3346 powerpc-ibm-aix4.[23]* )
3347 machine=ibmrs6000 opsys=aix4-2
3349 rs6000-ibm-aix[56]* )
3350 machine=ibmrs6000 opsys=aix4-2
3352 powerpc-ibm-aix[56]* )
3353 machine=ibmrs6000 opsys=aix4-2
3356 ## Silicon Graphics machines
3357 ## Iris 4D
3358 mips-sgi-irix6.5 )
3359 machine=iris4d opsys=irix6-5
3360 # Without defining _LANGUAGE_C, things get masked out in the headers
3361 # so that, for instance, grepping for `free' in stdlib.h fails and
3362 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3363 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3364 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3367 ## Suns
3368 *-sun-solaris* \
3369 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3370 | x86_64-*-solaris2* | x86_64-*-sunos5*)
3371 case "${canonical}" in
3372 i[3456]86-*-* ) machine=intel386 ;;
3373 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3374 sparc* ) machine=sparc ;;
3375 * ) unported=yes ;;
3376 esac
3377 case "${canonical}" in
3378 *-sunos5.6* | *-solaris2.6* )
3379 opsys=sol2-6
3380 NON_GNU_CPP=/usr/ccs/lib/cpp
3381 RANLIB="ar -ts"
3383 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3384 opsys=sol2-6
3385 emacs_check_sunpro_c=yes
3386 NON_GNU_CPP=/usr/ccs/lib/cpp
3388 *-sunos5* | *-solaris* )
3389 opsys=sol2-10
3390 emacs_check_sunpro_c=yes
3391 NON_GNU_CPP=/usr/ccs/lib/cpp
3393 esac
3394 ## Watch out for a compiler that we know will not work.
3395 case "${canonical}" in
3396 *-solaris* | *-sunos5* )
3397 if [ "x$CC" = x/usr/ucb/cc ]; then
3398 ## /usr/ucb/cc doesn't work;
3399 ## we should find some other compiler that does work.
3400 unset CC
3403 *) ;;
3404 esac
3407 ## Intel 386 machines where we don't care about the manufacturer.
3408 i[3456]86-*-* )
3409 machine=intel386
3410 case "${canonical}" in
3411 *-cygwin ) opsys=cygwin ;;
3412 *-darwin* ) opsys=darwin
3413 CPP="${CC-cc} -E -no-cpp-precomp"
3415 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3416 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3417 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3418 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3419 esac
3423 unported=yes
3425 esac
3427 ### If the code above didn't choose an operating system, just choose
3428 ### an operating system based on the configuration name. You really
3429 ### only want to use this when you have no idea what the right
3430 ### operating system is; if you know what operating systems a machine
3431 ### runs, it's cleaner to make it explicit in the case statement
3432 ### above.
3433 if test x"${opsys}" = x; then
3434 case "${canonical}" in
3435 *-gnu* ) opsys=gnu ;;
3437 unported=yes
3439 esac
3444 if test $unported = yes; then
3445 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
3446 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3449 if test -n "$machine"; then
3450 machfile="m/${machine}.h"
3451 else
3452 machfile=
3454 opsysfile="s/${opsys}.h"
3457 #### Choose a compiler.
3458 test -n "$CC" && cc_specified=yes
3460 # Save the value of CFLAGS that the user specified.
3461 SPECIFIED_CFLAGS="$CFLAGS"
3463 ac_ext=c
3464 ac_cpp='$CPP $CPPFLAGS'
3465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3468 if test -n "$ac_tool_prefix"; then
3469 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3470 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472 $as_echo_n "checking for $ac_word... " >&6; }
3473 if test "${ac_cv_prog_CC+set}" = set; then :
3474 $as_echo_n "(cached) " >&6
3475 else
3476 if test -n "$CC"; then
3477 ac_cv_prog_CC="$CC" # Let the user override the test.
3478 else
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 for as_dir in $PATH
3482 IFS=$as_save_IFS
3483 test -z "$as_dir" && as_dir=.
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3486 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 break 2
3490 done
3491 done
3492 IFS=$as_save_IFS
3496 CC=$ac_cv_prog_CC
3497 if test -n "$CC"; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3499 $as_echo "$CC" >&6; }
3500 else
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502 $as_echo "no" >&6; }
3507 if test -z "$ac_cv_prog_CC"; then
3508 ac_ct_CC=$CC
3509 # Extract the first word of "gcc", so it can be a program name with args.
3510 set dummy gcc; ac_word=$2
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3512 $as_echo_n "checking for $ac_word... " >&6; }
3513 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3514 $as_echo_n "(cached) " >&6
3515 else
3516 if test -n "$ac_ct_CC"; then
3517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3518 else
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 for as_dir in $PATH
3522 IFS=$as_save_IFS
3523 test -z "$as_dir" && as_dir=.
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3526 ac_cv_prog_ac_ct_CC="gcc"
3527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3528 break 2
3530 done
3531 done
3532 IFS=$as_save_IFS
3536 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3537 if test -n "$ac_ct_CC"; then
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3539 $as_echo "$ac_ct_CC" >&6; }
3540 else
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3542 $as_echo "no" >&6; }
3545 if test "x$ac_ct_CC" = x; then
3546 CC=""
3547 else
3548 case $cross_compiling:$ac_tool_warned in
3549 yes:)
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3552 ac_tool_warned=yes ;;
3553 esac
3554 CC=$ac_ct_CC
3556 else
3557 CC="$ac_cv_prog_CC"
3560 if test -z "$CC"; then
3561 if test -n "$ac_tool_prefix"; then
3562 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3563 set dummy ${ac_tool_prefix}cc; ac_word=$2
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3565 $as_echo_n "checking for $ac_word... " >&6; }
3566 if test "${ac_cv_prog_CC+set}" = set; then :
3567 $as_echo_n "(cached) " >&6
3568 else
3569 if test -n "$CC"; then
3570 ac_cv_prog_CC="$CC" # Let the user override the test.
3571 else
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 for as_dir in $PATH
3575 IFS=$as_save_IFS
3576 test -z "$as_dir" && as_dir=.
3577 for ac_exec_ext in '' $ac_executable_extensions; do
3578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3579 ac_cv_prog_CC="${ac_tool_prefix}cc"
3580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3581 break 2
3583 done
3584 done
3585 IFS=$as_save_IFS
3589 CC=$ac_cv_prog_CC
3590 if test -n "$CC"; then
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3592 $as_echo "$CC" >&6; }
3593 else
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595 $as_echo "no" >&6; }
3601 if test -z "$CC"; then
3602 # Extract the first word of "cc", so it can be a program name with args.
3603 set dummy cc; ac_word=$2
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605 $as_echo_n "checking for $ac_word... " >&6; }
3606 if test "${ac_cv_prog_CC+set}" = set; then :
3607 $as_echo_n "(cached) " >&6
3608 else
3609 if test -n "$CC"; then
3610 ac_cv_prog_CC="$CC" # Let the user override the test.
3611 else
3612 ac_prog_rejected=no
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 for as_dir in $PATH
3616 IFS=$as_save_IFS
3617 test -z "$as_dir" && as_dir=.
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3620 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3621 ac_prog_rejected=yes
3622 continue
3624 ac_cv_prog_CC="cc"
3625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3626 break 2
3628 done
3629 done
3630 IFS=$as_save_IFS
3632 if test $ac_prog_rejected = yes; then
3633 # We found a bogon in the path, so make sure we never use it.
3634 set dummy $ac_cv_prog_CC
3635 shift
3636 if test $# != 0; then
3637 # We chose a different compiler from the bogus one.
3638 # However, it has the same basename, so the bogon will be chosen
3639 # first if we set CC to just the basename; use the full file name.
3640 shift
3641 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3646 CC=$ac_cv_prog_CC
3647 if test -n "$CC"; then
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3649 $as_echo "$CC" >&6; }
3650 else
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3652 $as_echo "no" >&6; }
3657 if test -z "$CC"; then
3658 if test -n "$ac_tool_prefix"; then
3659 for ac_prog in cl.exe
3661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3662 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3664 $as_echo_n "checking for $ac_word... " >&6; }
3665 if test "${ac_cv_prog_CC+set}" = set; then :
3666 $as_echo_n "(cached) " >&6
3667 else
3668 if test -n "$CC"; then
3669 ac_cv_prog_CC="$CC" # Let the user override the test.
3670 else
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 for as_dir in $PATH
3674 IFS=$as_save_IFS
3675 test -z "$as_dir" && as_dir=.
3676 for ac_exec_ext in '' $ac_executable_extensions; do
3677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3678 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3680 break 2
3682 done
3683 done
3684 IFS=$as_save_IFS
3688 CC=$ac_cv_prog_CC
3689 if test -n "$CC"; then
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3691 $as_echo "$CC" >&6; }
3692 else
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3694 $as_echo "no" >&6; }
3698 test -n "$CC" && break
3699 done
3701 if test -z "$CC"; then
3702 ac_ct_CC=$CC
3703 for ac_prog in cl.exe
3705 # Extract the first word of "$ac_prog", so it can be a program name with args.
3706 set dummy $ac_prog; ac_word=$2
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3708 $as_echo_n "checking for $ac_word... " >&6; }
3709 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3710 $as_echo_n "(cached) " >&6
3711 else
3712 if test -n "$ac_ct_CC"; then
3713 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3714 else
3715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716 for as_dir in $PATH
3718 IFS=$as_save_IFS
3719 test -z "$as_dir" && as_dir=.
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3722 ac_cv_prog_ac_ct_CC="$ac_prog"
3723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3724 break 2
3726 done
3727 done
3728 IFS=$as_save_IFS
3732 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3733 if test -n "$ac_ct_CC"; then
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3735 $as_echo "$ac_ct_CC" >&6; }
3736 else
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3738 $as_echo "no" >&6; }
3742 test -n "$ac_ct_CC" && break
3743 done
3745 if test "x$ac_ct_CC" = x; then
3746 CC=""
3747 else
3748 case $cross_compiling:$ac_tool_warned in
3749 yes:)
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3752 ac_tool_warned=yes ;;
3753 esac
3754 CC=$ac_ct_CC
3761 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3763 as_fn_error $? "no acceptable C compiler found in \$PATH
3764 See \`config.log' for more details" "$LINENO" 5; }
3766 # Provide some information about the compiler.
3767 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3768 set X $ac_compile
3769 ac_compiler=$2
3770 for ac_option in --version -v -V -qversion; do
3771 { { ac_try="$ac_compiler $ac_option >&5"
3772 case "(($ac_try" in
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3775 esac
3776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3777 $as_echo "$ac_try_echo"; } >&5
3778 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3779 ac_status=$?
3780 if test -s conftest.err; then
3781 sed '10a\
3782 ... rest of stderr output deleted ...
3783 10q' conftest.err >conftest.er1
3784 cat conftest.er1 >&5
3786 rm -f conftest.er1 conftest.err
3787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3788 test $ac_status = 0; }
3789 done
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h. */
3795 main ()
3799 return 0;
3801 _ACEOF
3802 ac_clean_files_save=$ac_clean_files
3803 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3804 # Try to create an executable without -o first, disregard a.out.
3805 # It will help us diagnose broken compilers, and finding out an intuition
3806 # of exeext.
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3808 $as_echo_n "checking whether the C compiler works... " >&6; }
3809 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3811 # The possible output files:
3812 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3814 ac_rmfiles=
3815 for ac_file in $ac_files
3817 case $ac_file in
3818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3819 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3820 esac
3821 done
3822 rm -f $ac_rmfiles
3824 if { { ac_try="$ac_link_default"
3825 case "(($ac_try" in
3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827 *) ac_try_echo=$ac_try;;
3828 esac
3829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3830 $as_echo "$ac_try_echo"; } >&5
3831 (eval "$ac_link_default") 2>&5
3832 ac_status=$?
3833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3834 test $ac_status = 0; }; then :
3835 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3836 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3837 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3838 # so that the user can short-circuit this test for compilers unknown to
3839 # Autoconf.
3840 for ac_file in $ac_files ''
3842 test -f "$ac_file" || continue
3843 case $ac_file in
3844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3846 [ab].out )
3847 # We found the default executable, but exeext='' is most
3848 # certainly right.
3849 break;;
3850 *.* )
3851 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3852 then :; else
3853 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3855 # We set ac_cv_exeext here because the later test for it is not
3856 # safe: cross compilers may not add the suffix if given an `-o'
3857 # argument, so we may need to know it at that point already.
3858 # Even if this section looks crufty: it has the advantage of
3859 # actually working.
3860 break;;
3862 break;;
3863 esac
3864 done
3865 test "$ac_cv_exeext" = no && ac_cv_exeext=
3867 else
3868 ac_file=''
3870 if test -z "$ac_file"; then :
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872 $as_echo "no" >&6; }
3873 $as_echo "$as_me: failed program was:" >&5
3874 sed 's/^/| /' conftest.$ac_ext >&5
3876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3878 as_fn_error 77 "C compiler cannot create executables
3879 See \`config.log' for more details" "$LINENO" 5; }
3880 else
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3882 $as_echo "yes" >&6; }
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3885 $as_echo_n "checking for C compiler default output file name... " >&6; }
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3887 $as_echo "$ac_file" >&6; }
3888 ac_exeext=$ac_cv_exeext
3890 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3891 ac_clean_files=$ac_clean_files_save
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3893 $as_echo_n "checking for suffix of executables... " >&6; }
3894 if { { ac_try="$ac_link"
3895 case "(($ac_try" in
3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3898 esac
3899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3900 $as_echo "$ac_try_echo"; } >&5
3901 (eval "$ac_link") 2>&5
3902 ac_status=$?
3903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3904 test $ac_status = 0; }; then :
3905 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3906 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3907 # work properly (i.e., refer to `conftest.exe'), while it won't with
3908 # `rm'.
3909 for ac_file in conftest.exe conftest conftest.*; do
3910 test -f "$ac_file" || continue
3911 case $ac_file in
3912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3913 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3914 break;;
3915 * ) break;;
3916 esac
3917 done
3918 else
3919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3921 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3922 See \`config.log' for more details" "$LINENO" 5; }
3924 rm -f conftest conftest$ac_cv_exeext
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3926 $as_echo "$ac_cv_exeext" >&6; }
3928 rm -f conftest.$ac_ext
3929 EXEEXT=$ac_cv_exeext
3930 ac_exeext=$EXEEXT
3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h. */
3933 #include <stdio.h>
3935 main ()
3937 FILE *f = fopen ("conftest.out", "w");
3938 return ferror (f) || fclose (f) != 0;
3941 return 0;
3943 _ACEOF
3944 ac_clean_files="$ac_clean_files conftest.out"
3945 # Check that the compiler produces executables we can run. If not, either
3946 # the compiler is broken, or we cross compile.
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3948 $as_echo_n "checking whether we are cross compiling... " >&6; }
3949 if test "$cross_compiling" != yes; then
3950 { { ac_try="$ac_link"
3951 case "(($ac_try" in
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3954 esac
3955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3956 $as_echo "$ac_try_echo"; } >&5
3957 (eval "$ac_link") 2>&5
3958 ac_status=$?
3959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3960 test $ac_status = 0; }
3961 if { ac_try='./conftest$ac_cv_exeext'
3962 { { case "(($ac_try" in
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3965 esac
3966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3967 $as_echo "$ac_try_echo"; } >&5
3968 (eval "$ac_try") 2>&5
3969 ac_status=$?
3970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3971 test $ac_status = 0; }; }; then
3972 cross_compiling=no
3973 else
3974 if test "$cross_compiling" = maybe; then
3975 cross_compiling=yes
3976 else
3977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3979 as_fn_error $? "cannot run C compiled programs.
3980 If you meant to cross compile, use \`--host'.
3981 See \`config.log' for more details" "$LINENO" 5; }
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3986 $as_echo "$cross_compiling" >&6; }
3988 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3989 ac_clean_files=$ac_clean_files_save
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3991 $as_echo_n "checking for suffix of object files... " >&6; }
3992 if test "${ac_cv_objext+set}" = set; then :
3993 $as_echo_n "(cached) " >&6
3994 else
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
3999 main ()
4003 return 0;
4005 _ACEOF
4006 rm -f conftest.o conftest.obj
4007 if { { ac_try="$ac_compile"
4008 case "(($ac_try" in
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4011 esac
4012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4013 $as_echo "$ac_try_echo"; } >&5
4014 (eval "$ac_compile") 2>&5
4015 ac_status=$?
4016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4017 test $ac_status = 0; }; then :
4018 for ac_file in conftest.o conftest.obj conftest.*; do
4019 test -f "$ac_file" || continue;
4020 case $ac_file in
4021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4022 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4023 break;;
4024 esac
4025 done
4026 else
4027 $as_echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4032 as_fn_error $? "cannot compute suffix of object files: cannot compile
4033 See \`config.log' for more details" "$LINENO" 5; }
4035 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4038 $as_echo "$ac_cv_objext" >&6; }
4039 OBJEXT=$ac_cv_objext
4040 ac_objext=$OBJEXT
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4042 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4043 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4044 $as_echo_n "(cached) " >&6
4045 else
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4050 main ()
4052 #ifndef __GNUC__
4053 choke me
4054 #endif
4057 return 0;
4059 _ACEOF
4060 if ac_fn_c_try_compile "$LINENO"; then :
4061 ac_compiler_gnu=yes
4062 else
4063 ac_compiler_gnu=no
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4070 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4071 if test $ac_compiler_gnu = yes; then
4072 GCC=yes
4073 else
4074 GCC=
4076 ac_test_CFLAGS=${CFLAGS+set}
4077 ac_save_CFLAGS=$CFLAGS
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4079 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4080 if test "${ac_cv_prog_cc_g+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
4082 else
4083 ac_save_c_werror_flag=$ac_c_werror_flag
4084 ac_c_werror_flag=yes
4085 ac_cv_prog_cc_g=no
4086 CFLAGS="-g"
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4091 main ()
4095 return 0;
4097 _ACEOF
4098 if ac_fn_c_try_compile "$LINENO"; then :
4099 ac_cv_prog_cc_g=yes
4100 else
4101 CFLAGS=""
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4106 main ()
4110 return 0;
4112 _ACEOF
4113 if ac_fn_c_try_compile "$LINENO"; then :
4115 else
4116 ac_c_werror_flag=$ac_save_c_werror_flag
4117 CFLAGS="-g"
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4122 main ()
4126 return 0;
4128 _ACEOF
4129 if ac_fn_c_try_compile "$LINENO"; then :
4130 ac_cv_prog_cc_g=yes
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 ac_c_werror_flag=$ac_save_c_werror_flag
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4140 $as_echo "$ac_cv_prog_cc_g" >&6; }
4141 if test "$ac_test_CFLAGS" = set; then
4142 CFLAGS=$ac_save_CFLAGS
4143 elif test $ac_cv_prog_cc_g = yes; then
4144 if test "$GCC" = yes; then
4145 CFLAGS="-g -O2"
4146 else
4147 CFLAGS="-g"
4149 else
4150 if test "$GCC" = yes; then
4151 CFLAGS="-O2"
4152 else
4153 CFLAGS=
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4157 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4158 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4159 $as_echo_n "(cached) " >&6
4160 else
4161 ac_cv_prog_cc_c89=no
4162 ac_save_CC=$CC
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4165 #include <stdarg.h>
4166 #include <stdio.h>
4167 #include <sys/types.h>
4168 #include <sys/stat.h>
4169 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4170 struct buf { int x; };
4171 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4172 static char *e (p, i)
4173 char **p;
4174 int i;
4176 return p[i];
4178 static char *f (char * (*g) (char **, int), char **p, ...)
4180 char *s;
4181 va_list v;
4182 va_start (v,p);
4183 s = g (p, va_arg (v,int));
4184 va_end (v);
4185 return s;
4188 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4189 function prototypes and stuff, but not '\xHH' hex character constants.
4190 These don't provoke an error unfortunately, instead are silently treated
4191 as 'x'. The following induces an error, until -std is added to get
4192 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4193 array size at least. It's necessary to write '\x00'==0 to get something
4194 that's true only with -std. */
4195 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4197 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4198 inside strings and character constants. */
4199 #define FOO(x) 'x'
4200 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4202 int test (int i, double x);
4203 struct s1 {int (*f) (int a);};
4204 struct s2 {int (*f) (double a);};
4205 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4206 int argc;
4207 char **argv;
4209 main ()
4211 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4213 return 0;
4215 _ACEOF
4216 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4217 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4219 CC="$ac_save_CC $ac_arg"
4220 if ac_fn_c_try_compile "$LINENO"; then :
4221 ac_cv_prog_cc_c89=$ac_arg
4223 rm -f core conftest.err conftest.$ac_objext
4224 test "x$ac_cv_prog_cc_c89" != "xno" && break
4225 done
4226 rm -f conftest.$ac_ext
4227 CC=$ac_save_CC
4230 # AC_CACHE_VAL
4231 case "x$ac_cv_prog_cc_c89" in
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4234 $as_echo "none needed" >&6; } ;;
4235 xno)
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4237 $as_echo "unsupported" >&6; } ;;
4239 CC="$CC $ac_cv_prog_cc_c89"
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4241 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4242 esac
4243 if test "x$ac_cv_prog_cc_c89" != xno; then :
4247 ac_ext=c
4248 ac_cpp='$CPP $CPPFLAGS'
4249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4254 # On Suns, sometimes $CPP names a directory.
4255 if test -n "$CPP" && test -d "$CPP"; then
4256 CPP=
4259 ## If not using gcc, and on Solaris, and no CPP specified, see if
4260 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4261 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4262 test x"$CPP" = x; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4264 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4266 if test "${emacs_cv_sunpro_c+set}" = set; then :
4267 $as_echo_n "(cached) " >&6
4268 else
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4273 main ()
4275 #ifndef __SUNPRO_C
4276 fail;
4277 #endif
4280 return 0;
4282 _ACEOF
4283 if ac_fn_c_try_link "$LINENO"; then :
4284 emacs_cv_sunpro_c=yes
4285 else
4286 emacs_cv_sunpro_c=no
4288 rm -f core conftest.err conftest.$ac_objext \
4289 conftest$ac_exeext conftest.$ac_ext
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4293 $as_echo "$emacs_cv_sunpro_c" >&6; }
4295 if test x"$emacs_cv_sunpro_c" = xyes; then
4296 NON_GNU_CPP="$CC -E -Xs"
4300 #### Some systems specify a CPP to use unless we are using GCC.
4301 #### Now that we know whether we are using GCC, we can decide whether
4302 #### to use that one.
4303 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4304 then
4305 CPP="$NON_GNU_CPP"
4308 #### Some systems specify a CC to use unless we are using GCC.
4309 #### Now that we know whether we are using GCC, we can decide whether
4310 #### to use that one.
4311 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4312 test x$cc_specified != xyes
4313 then
4314 CC="$NON_GNU_CC"
4317 if test x$GCC = xyes; then
4318 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
4319 else
4320 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
4323 ac_ext=c
4324 ac_cpp='$CPP $CPPFLAGS'
4325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4329 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4330 # On Suns, sometimes $CPP names a directory.
4331 if test -n "$CPP" && test -d "$CPP"; then
4332 CPP=
4334 if test -z "$CPP"; then
4335 if test "${ac_cv_prog_CPP+set}" = set; then :
4336 $as_echo_n "(cached) " >&6
4337 else
4338 # Double quotes because CPP needs to be expanded
4339 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4341 ac_preproc_ok=false
4342 for ac_c_preproc_warn_flag in '' yes
4344 # Use a header file that comes with gcc, so configuring glibc
4345 # with a fresh cross-compiler works.
4346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4347 # <limits.h> exists even on freestanding compilers.
4348 # On the NeXT, cc -E runs the code through the compiler's parser,
4349 # not just through cpp. "Syntax error" is here to catch this case.
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4352 #ifdef __STDC__
4353 # include <limits.h>
4354 #else
4355 # include <assert.h>
4356 #endif
4357 Syntax error
4358 _ACEOF
4359 if ac_fn_c_try_cpp "$LINENO"; then :
4361 else
4362 # Broken: fails on valid input.
4363 continue
4365 rm -f conftest.err conftest.i conftest.$ac_ext
4367 # OK, works on sane cases. Now check whether nonexistent headers
4368 # can be detected and how.
4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4371 #include <ac_nonexistent.h>
4372 _ACEOF
4373 if ac_fn_c_try_cpp "$LINENO"; then :
4374 # Broken: success on invalid input.
4375 continue
4376 else
4377 # Passes both tests.
4378 ac_preproc_ok=:
4379 break
4381 rm -f conftest.err conftest.i conftest.$ac_ext
4383 done
4384 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4385 rm -f conftest.i conftest.err conftest.$ac_ext
4386 if $ac_preproc_ok; then :
4387 break
4390 done
4391 ac_cv_prog_CPP=$CPP
4394 CPP=$ac_cv_prog_CPP
4395 else
4396 ac_cv_prog_CPP=$CPP
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4399 $as_echo "$CPP" >&6; }
4400 ac_preproc_ok=false
4401 for ac_c_preproc_warn_flag in '' yes
4403 # Use a header file that comes with gcc, so configuring glibc
4404 # with a fresh cross-compiler works.
4405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4406 # <limits.h> exists even on freestanding compilers.
4407 # On the NeXT, cc -E runs the code through the compiler's parser,
4408 # not just through cpp. "Syntax error" is here to catch this case.
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4411 #ifdef __STDC__
4412 # include <limits.h>
4413 #else
4414 # include <assert.h>
4415 #endif
4416 Syntax error
4417 _ACEOF
4418 if ac_fn_c_try_cpp "$LINENO"; then :
4420 else
4421 # Broken: fails on valid input.
4422 continue
4424 rm -f conftest.err conftest.i conftest.$ac_ext
4426 # OK, works on sane cases. Now check whether nonexistent headers
4427 # can be detected and how.
4428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h. */
4430 #include <ac_nonexistent.h>
4431 _ACEOF
4432 if ac_fn_c_try_cpp "$LINENO"; then :
4433 # Broken: success on invalid input.
4434 continue
4435 else
4436 # Passes both tests.
4437 ac_preproc_ok=:
4438 break
4440 rm -f conftest.err conftest.i conftest.$ac_ext
4442 done
4443 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4444 rm -f conftest.i conftest.err conftest.$ac_ext
4445 if $ac_preproc_ok; then :
4447 else
4448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4450 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4451 See \`config.log' for more details" "$LINENO" 5; }
4454 ac_ext=c
4455 ac_cpp='$CPP $CPPFLAGS'
4456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4462 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4463 if test "${ac_cv_path_GREP+set}" = set; then :
4464 $as_echo_n "(cached) " >&6
4465 else
4466 if test -z "$GREP"; then
4467 ac_path_GREP_found=false
4468 # Loop through the user's path and test for each of PROGNAME-LIST
4469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4472 IFS=$as_save_IFS
4473 test -z "$as_dir" && as_dir=.
4474 for ac_prog in grep ggrep; do
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4477 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4478 # Check for GNU ac_path_GREP and select it if it is found.
4479 # Check for GNU $ac_path_GREP
4480 case `"$ac_path_GREP" --version 2>&1` in
4481 *GNU*)
4482 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4484 ac_count=0
4485 $as_echo_n 0123456789 >"conftest.in"
4486 while :
4488 cat "conftest.in" "conftest.in" >"conftest.tmp"
4489 mv "conftest.tmp" "conftest.in"
4490 cp "conftest.in" "conftest.nl"
4491 $as_echo 'GREP' >> "conftest.nl"
4492 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4493 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4494 as_fn_arith $ac_count + 1 && ac_count=$as_val
4495 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4496 # Best one so far, save it but keep looking for a better one
4497 ac_cv_path_GREP="$ac_path_GREP"
4498 ac_path_GREP_max=$ac_count
4500 # 10*(2^10) chars as input seems more than enough
4501 test $ac_count -gt 10 && break
4502 done
4503 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4504 esac
4506 $ac_path_GREP_found && break 3
4507 done
4508 done
4509 done
4510 IFS=$as_save_IFS
4511 if test -z "$ac_cv_path_GREP"; then
4512 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4514 else
4515 ac_cv_path_GREP=$GREP
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4520 $as_echo "$ac_cv_path_GREP" >&6; }
4521 GREP="$ac_cv_path_GREP"
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4525 $as_echo_n "checking for egrep... " >&6; }
4526 if test "${ac_cv_path_EGREP+set}" = set; then :
4527 $as_echo_n "(cached) " >&6
4528 else
4529 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4530 then ac_cv_path_EGREP="$GREP -E"
4531 else
4532 if test -z "$EGREP"; then
4533 ac_path_EGREP_found=false
4534 # Loop through the user's path and test for each of PROGNAME-LIST
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4538 IFS=$as_save_IFS
4539 test -z "$as_dir" && as_dir=.
4540 for ac_prog in egrep; do
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4543 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4544 # Check for GNU ac_path_EGREP and select it if it is found.
4545 # Check for GNU $ac_path_EGREP
4546 case `"$ac_path_EGREP" --version 2>&1` in
4547 *GNU*)
4548 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4550 ac_count=0
4551 $as_echo_n 0123456789 >"conftest.in"
4552 while :
4554 cat "conftest.in" "conftest.in" >"conftest.tmp"
4555 mv "conftest.tmp" "conftest.in"
4556 cp "conftest.in" "conftest.nl"
4557 $as_echo 'EGREP' >> "conftest.nl"
4558 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4559 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4560 as_fn_arith $ac_count + 1 && ac_count=$as_val
4561 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4562 # Best one so far, save it but keep looking for a better one
4563 ac_cv_path_EGREP="$ac_path_EGREP"
4564 ac_path_EGREP_max=$ac_count
4566 # 10*(2^10) chars as input seems more than enough
4567 test $ac_count -gt 10 && break
4568 done
4569 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4570 esac
4572 $ac_path_EGREP_found && break 3
4573 done
4574 done
4575 done
4576 IFS=$as_save_IFS
4577 if test -z "$ac_cv_path_EGREP"; then
4578 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4580 else
4581 ac_cv_path_EGREP=$EGREP
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4587 $as_echo "$ac_cv_path_EGREP" >&6; }
4588 EGREP="$ac_cv_path_EGREP"
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4592 $as_echo_n "checking for ANSI C header files... " >&6; }
4593 if test "${ac_cv_header_stdc+set}" = set; then :
4594 $as_echo_n "(cached) " >&6
4595 else
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4598 #include <stdlib.h>
4599 #include <stdarg.h>
4600 #include <string.h>
4601 #include <float.h>
4604 main ()
4608 return 0;
4610 _ACEOF
4611 if ac_fn_c_try_compile "$LINENO"; then :
4612 ac_cv_header_stdc=yes
4613 else
4614 ac_cv_header_stdc=no
4616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4618 if test $ac_cv_header_stdc = yes; then
4619 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4622 #include <string.h>
4624 _ACEOF
4625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4626 $EGREP "memchr" >/dev/null 2>&1; then :
4628 else
4629 ac_cv_header_stdc=no
4631 rm -f conftest*
4635 if test $ac_cv_header_stdc = yes; then
4636 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4639 #include <stdlib.h>
4641 _ACEOF
4642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4643 $EGREP "free" >/dev/null 2>&1; then :
4645 else
4646 ac_cv_header_stdc=no
4648 rm -f conftest*
4652 if test $ac_cv_header_stdc = yes; then
4653 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4654 if test "$cross_compiling" = yes; then :
4656 else
4657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4658 /* end confdefs.h. */
4659 #include <ctype.h>
4660 #include <stdlib.h>
4661 #if ((' ' & 0x0FF) == 0x020)
4662 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4663 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4664 #else
4665 # define ISLOWER(c) \
4666 (('a' <= (c) && (c) <= 'i') \
4667 || ('j' <= (c) && (c) <= 'r') \
4668 || ('s' <= (c) && (c) <= 'z'))
4669 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4670 #endif
4672 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4674 main ()
4676 int i;
4677 for (i = 0; i < 256; i++)
4678 if (XOR (islower (i), ISLOWER (i))
4679 || toupper (i) != TOUPPER (i))
4680 return 2;
4681 return 0;
4683 _ACEOF
4684 if ac_fn_c_try_run "$LINENO"; then :
4686 else
4687 ac_cv_header_stdc=no
4689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4690 conftest.$ac_objext conftest.beam conftest.$ac_ext
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4696 $as_echo "$ac_cv_header_stdc" >&6; }
4697 if test $ac_cv_header_stdc = yes; then
4699 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4703 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4704 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4705 inttypes.h stdint.h unistd.h
4706 do :
4707 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4708 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4710 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4711 cat >>confdefs.h <<_ACEOF
4712 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4713 _ACEOF
4717 done
4721 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4722 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4723 MINIX=yes
4724 else
4725 MINIX=
4729 if test "$MINIX" = yes; then
4731 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4734 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4737 $as_echo "#define _MINIX 1" >>confdefs.h
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4743 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4744 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4745 $as_echo_n "(cached) " >&6
4746 else
4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748 /* end confdefs.h. */
4750 # define __EXTENSIONS__ 1
4751 $ac_includes_default
4753 main ()
4757 return 0;
4759 _ACEOF
4760 if ac_fn_c_try_compile "$LINENO"; then :
4761 ac_cv_safe_to_define___extensions__=yes
4762 else
4763 ac_cv_safe_to_define___extensions__=no
4765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4768 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4769 test $ac_cv_safe_to_define___extensions__ = yes &&
4770 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4772 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4774 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4776 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4778 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4782 ### Use -Wno-pointer-sign if the compiler supports it
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4784 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4785 SAVE_CFLAGS="$CFLAGS"
4786 CFLAGS="$CFLAGS -Wno-pointer-sign"
4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h. */
4791 main ()
4795 return 0;
4797 _ACEOF
4798 if ac_fn_c_try_compile "$LINENO"; then :
4799 has_option=yes
4800 else
4801 has_option=no
4803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804 if test $has_option = yes; then
4805 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4808 $as_echo "$has_option" >&6; }
4809 CFLAGS="$SAVE_CFLAGS"
4810 unset has_option
4811 unset SAVE_CFLAGS
4813 ### Use -Wdeclaration-after-statement if the compiler supports it
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4815 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4816 SAVE_CFLAGS="$CFLAGS"
4817 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h. */
4822 main ()
4826 return 0;
4828 _ACEOF
4829 if ac_fn_c_try_compile "$LINENO"; then :
4830 has_option=yes
4831 else
4832 has_option=no
4834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4835 if test $has_option = yes; then
4836 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4839 $as_echo "$has_option" >&6; }
4840 CFLAGS="$SAVE_CFLAGS"
4841 unset has_option
4842 unset SAVE_CFLAGS
4844 ### Use -Wold-style-definition if the compiler supports it
4845 # This can be removed when conversion to standard C is finished.
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
4847 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
4848 SAVE_CFLAGS="$CFLAGS"
4849 CFLAGS="$CFLAGS -Wold-style-definition"
4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851 /* end confdefs.h. */
4854 main ()
4858 return 0;
4860 _ACEOF
4861 if ac_fn_c_try_compile "$LINENO"; then :
4862 has_option=yes
4863 else
4864 has_option=no
4866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4867 if test $has_option = yes; then
4868 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4871 $as_echo "$has_option" >&6; }
4872 CFLAGS="$SAVE_CFLAGS"
4873 unset has_option
4874 unset SAVE_CFLAGS
4876 ### Use -Wimplicit-function-declaration if the compiler supports it
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
4878 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
4879 SAVE_CFLAGS="$CFLAGS"
4880 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
4881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4882 /* end confdefs.h. */
4885 main ()
4889 return 0;
4891 _ACEOF
4892 if ac_fn_c_try_compile "$LINENO"; then :
4893 has_option=yes
4894 else
4895 has_option=no
4897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4898 if test $has_option = yes; then
4899 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4902 $as_echo "$has_option" >&6; }
4903 CFLAGS="$SAVE_CFLAGS"
4904 unset has_option
4905 unset SAVE_CFLAGS
4910 #### Some other nice autoconf tests.
4912 ac_ext=c
4913 ac_cpp='$CPP $CPPFLAGS'
4914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4918 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4919 # On Suns, sometimes $CPP names a directory.
4920 if test -n "$CPP" && test -d "$CPP"; then
4921 CPP=
4923 if test -z "$CPP"; then
4924 if test "${ac_cv_prog_CPP+set}" = set; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 # Double quotes because CPP needs to be expanded
4928 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4930 ac_preproc_ok=false
4931 for ac_c_preproc_warn_flag in '' yes
4933 # Use a header file that comes with gcc, so configuring glibc
4934 # with a fresh cross-compiler works.
4935 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4936 # <limits.h> exists even on freestanding compilers.
4937 # On the NeXT, cc -E runs the code through the compiler's parser,
4938 # not just through cpp. "Syntax error" is here to catch this case.
4939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940 /* end confdefs.h. */
4941 #ifdef __STDC__
4942 # include <limits.h>
4943 #else
4944 # include <assert.h>
4945 #endif
4946 Syntax error
4947 _ACEOF
4948 if ac_fn_c_try_cpp "$LINENO"; then :
4950 else
4951 # Broken: fails on valid input.
4952 continue
4954 rm -f conftest.err conftest.i conftest.$ac_ext
4956 # OK, works on sane cases. Now check whether nonexistent headers
4957 # can be detected and how.
4958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959 /* end confdefs.h. */
4960 #include <ac_nonexistent.h>
4961 _ACEOF
4962 if ac_fn_c_try_cpp "$LINENO"; then :
4963 # Broken: success on invalid input.
4964 continue
4965 else
4966 # Passes both tests.
4967 ac_preproc_ok=:
4968 break
4970 rm -f conftest.err conftest.i conftest.$ac_ext
4972 done
4973 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4974 rm -f conftest.i conftest.err conftest.$ac_ext
4975 if $ac_preproc_ok; then :
4976 break
4979 done
4980 ac_cv_prog_CPP=$CPP
4983 CPP=$ac_cv_prog_CPP
4984 else
4985 ac_cv_prog_CPP=$CPP
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4988 $as_echo "$CPP" >&6; }
4989 ac_preproc_ok=false
4990 for ac_c_preproc_warn_flag in '' yes
4992 # Use a header file that comes with gcc, so configuring glibc
4993 # with a fresh cross-compiler works.
4994 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4995 # <limits.h> exists even on freestanding compilers.
4996 # On the NeXT, cc -E runs the code through the compiler's parser,
4997 # not just through cpp. "Syntax error" is here to catch this case.
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5000 #ifdef __STDC__
5001 # include <limits.h>
5002 #else
5003 # include <assert.h>
5004 #endif
5005 Syntax error
5006 _ACEOF
5007 if ac_fn_c_try_cpp "$LINENO"; then :
5009 else
5010 # Broken: fails on valid input.
5011 continue
5013 rm -f conftest.err conftest.i conftest.$ac_ext
5015 # OK, works on sane cases. Now check whether nonexistent headers
5016 # can be detected and how.
5017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018 /* end confdefs.h. */
5019 #include <ac_nonexistent.h>
5020 _ACEOF
5021 if ac_fn_c_try_cpp "$LINENO"; then :
5022 # Broken: success on invalid input.
5023 continue
5024 else
5025 # Passes both tests.
5026 ac_preproc_ok=:
5027 break
5029 rm -f conftest.err conftest.i conftest.$ac_ext
5031 done
5032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5033 rm -f conftest.i conftest.err conftest.$ac_ext
5034 if $ac_preproc_ok; then :
5036 else
5037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5039 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5040 See \`config.log' for more details" "$LINENO" 5; }
5043 ac_ext=c
5044 ac_cpp='$CPP $CPPFLAGS'
5045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5049 # Find a good install program. We prefer a C program (faster),
5050 # so one script is as good as another. But avoid the broken or
5051 # incompatible versions:
5052 # SysV /etc/install, /usr/sbin/install
5053 # SunOS /usr/etc/install
5054 # IRIX /sbin/install
5055 # AIX /bin/install
5056 # AmigaOS /C/install, which installs bootblocks on floppy discs
5057 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5058 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5059 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5060 # OS/2's system install, which has a completely different semantic
5061 # ./install, which can be erroneously created by make from ./install.sh.
5062 # Reject install programs that cannot install multiple files.
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5064 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5065 if test -z "$INSTALL"; then
5066 if test "${ac_cv_path_install+set}" = set; then :
5067 $as_echo_n "(cached) " >&6
5068 else
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 for as_dir in $PATH
5072 IFS=$as_save_IFS
5073 test -z "$as_dir" && as_dir=.
5074 # Account for people who put trailing slashes in PATH elements.
5075 case $as_dir/ in #((
5076 ./ | .// | /[cC]/* | \
5077 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5078 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5079 /usr/ucb/* ) ;;
5081 # OSF1 and SCO ODT 3.0 have their own names for install.
5082 # Don't use installbsd from OSF since it installs stuff as root
5083 # by default.
5084 for ac_prog in ginstall scoinst install; do
5085 for ac_exec_ext in '' $ac_executable_extensions; do
5086 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5087 if test $ac_prog = install &&
5088 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5089 # AIX install. It has an incompatible calling convention.
5091 elif test $ac_prog = install &&
5092 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5093 # program-specific install script used by HP pwplus--don't use.
5095 else
5096 rm -rf conftest.one conftest.two conftest.dir
5097 echo one > conftest.one
5098 echo two > conftest.two
5099 mkdir conftest.dir
5100 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5101 test -s conftest.one && test -s conftest.two &&
5102 test -s conftest.dir/conftest.one &&
5103 test -s conftest.dir/conftest.two
5104 then
5105 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5106 break 3
5110 done
5111 done
5113 esac
5115 done
5116 IFS=$as_save_IFS
5118 rm -rf conftest.one conftest.two conftest.dir
5121 if test "${ac_cv_path_install+set}" = set; then
5122 INSTALL=$ac_cv_path_install
5123 else
5124 # As a last resort, use the slow shell script. Don't cache a
5125 # value for INSTALL within a source directory, because that will
5126 # break other packages using the cache if that directory is
5127 # removed, or if the value is a relative name.
5128 INSTALL=$ac_install_sh
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5132 $as_echo "$INSTALL" >&6; }
5134 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5135 # It thinks the first close brace ends the variable substitution.
5136 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5138 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5140 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5142 if test "x$RANLIB" = x; then
5143 if test -n "$ac_tool_prefix"; then
5144 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5145 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 $as_echo_n "checking for $ac_word... " >&6; }
5148 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5149 $as_echo_n "(cached) " >&6
5150 else
5151 if test -n "$RANLIB"; then
5152 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5153 else
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH
5157 IFS=$as_save_IFS
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5161 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5163 break 2
5165 done
5166 done
5167 IFS=$as_save_IFS
5171 RANLIB=$ac_cv_prog_RANLIB
5172 if test -n "$RANLIB"; then
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5174 $as_echo "$RANLIB" >&6; }
5175 else
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 $as_echo "no" >&6; }
5182 if test -z "$ac_cv_prog_RANLIB"; then
5183 ac_ct_RANLIB=$RANLIB
5184 # Extract the first word of "ranlib", so it can be a program name with args.
5185 set dummy ranlib; ac_word=$2
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187 $as_echo_n "checking for $ac_word... " >&6; }
5188 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5189 $as_echo_n "(cached) " >&6
5190 else
5191 if test -n "$ac_ct_RANLIB"; then
5192 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5193 else
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5201 ac_cv_prog_ac_ct_RANLIB="ranlib"
5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 break 2
5205 done
5206 done
5207 IFS=$as_save_IFS
5211 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5212 if test -n "$ac_ct_RANLIB"; then
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5214 $as_echo "$ac_ct_RANLIB" >&6; }
5215 else
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5220 if test "x$ac_ct_RANLIB" = x; then
5221 RANLIB=":"
5222 else
5223 case $cross_compiling:$ac_tool_warned in
5224 yes:)
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5227 ac_tool_warned=yes ;;
5228 esac
5229 RANLIB=$ac_ct_RANLIB
5231 else
5232 RANLIB="$ac_cv_prog_RANLIB"
5237 ## Although we're running on an amd64 kernel, we're actually compiling for
5238 ## the x86 architecture. The user should probably have provided an
5239 ## explicit --build to `configure', but if everything else than the kernel
5240 ## is running in i386 mode, we can help them out.
5241 if test "$machine" = "amdx86-64"; then
5242 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5243 if test "x$ac_cv_have_decl_i386" = x""yes; then :
5247 if test "$ac_cv_have_decl_i386" = "yes"; then
5248 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5249 machine=intel386
5250 machfile="m/${machine}.h"
5254 # Extract the first word of "install-info", so it can be a program name with args.
5255 set dummy install-info; ac_word=$2
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5257 $as_echo_n "checking for $ac_word... " >&6; }
5258 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5259 $as_echo_n "(cached) " >&6
5260 else
5261 case $INSTALL_INFO in
5262 [\\/]* | ?:[\\/]*)
5263 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH
5269 IFS=$as_save_IFS
5270 test -z "$as_dir" && as_dir=.
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5273 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 break 2
5277 done
5278 done
5279 IFS=$as_save_IFS
5282 esac
5284 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5285 if test -n "$INSTALL_INFO"; then
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5287 $as_echo "$INSTALL_INFO" >&6; }
5288 else
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5290 $as_echo "no" >&6; }
5294 # Extract the first word of "install-info", so it can be a program name with args.
5295 set dummy install-info; ac_word=$2
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297 $as_echo_n "checking for $ac_word... " >&6; }
5298 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5299 $as_echo_n "(cached) " >&6
5300 else
5301 case $INSTALL_INFO in
5302 [\\/]* | ?:[\\/]*)
5303 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 for as_dir in /usr/sbin
5309 IFS=$as_save_IFS
5310 test -z "$as_dir" && as_dir=.
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5313 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 break 2
5317 done
5318 done
5319 IFS=$as_save_IFS
5322 esac
5324 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5325 if test -n "$INSTALL_INFO"; then
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5327 $as_echo "$INSTALL_INFO" >&6; }
5328 else
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330 $as_echo "no" >&6; }
5334 # Extract the first word of "install-info", so it can be a program name with args.
5335 set dummy install-info; ac_word=$2
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337 $as_echo_n "checking for $ac_word... " >&6; }
5338 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5339 $as_echo_n "(cached) " >&6
5340 else
5341 case $INSTALL_INFO in
5342 [\\/]* | ?:[\\/]*)
5343 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 for as_dir in /sbin
5349 IFS=$as_save_IFS
5350 test -z "$as_dir" && as_dir=.
5351 for ac_exec_ext in '' $ac_executable_extensions; do
5352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5353 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5355 break 2
5357 done
5358 done
5359 IFS=$as_save_IFS
5361 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5363 esac
5365 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5366 if test -n "$INSTALL_INFO"; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5368 $as_echo "$INSTALL_INFO" >&6; }
5369 else
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 $as_echo "no" >&6; }
5375 # Extract the first word of "gzip", so it can be a program name with args.
5376 set dummy gzip; ac_word=$2
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378 $as_echo_n "checking for $ac_word... " >&6; }
5379 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5380 $as_echo_n "(cached) " >&6
5381 else
5382 case $GZIP_PROG in
5383 [\\/]* | ?:[\\/]*)
5384 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 for as_dir in $PATH
5390 IFS=$as_save_IFS
5391 test -z "$as_dir" && as_dir=.
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5394 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5396 break 2
5398 done
5399 done
5400 IFS=$as_save_IFS
5403 esac
5405 GZIP_PROG=$ac_cv_path_GZIP_PROG
5406 if test -n "$GZIP_PROG"; then
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5408 $as_echo "$GZIP_PROG" >&6; }
5409 else
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411 $as_echo "no" >&6; }
5417 ## Need makeinfo >= 4.6 (?) to build the manuals.
5418 # Extract the first word of "makeinfo", so it can be a program name with args.
5419 set dummy makeinfo; ac_word=$2
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5421 $as_echo_n "checking for $ac_word... " >&6; }
5422 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5423 $as_echo_n "(cached) " >&6
5424 else
5425 case $MAKEINFO in
5426 [\\/]* | ?:[\\/]*)
5427 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 for as_dir in $PATH
5433 IFS=$as_save_IFS
5434 test -z "$as_dir" && as_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5437 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5439 break 2
5441 done
5442 done
5443 IFS=$as_save_IFS
5445 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5447 esac
5449 MAKEINFO=$ac_cv_path_MAKEINFO
5450 if test -n "$MAKEINFO"; then
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5452 $as_echo "$MAKEINFO" >&6; }
5453 else
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455 $as_echo "no" >&6; }
5459 if test "$MAKEINFO" != "no" && \
5460 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
5461 MAKEINFO=no
5464 ## Makeinfo is unusual. For a released Emacs, the manuals are
5465 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5466 ## therefore in the category of "special tools" not normally required, which
5467 ## configure does not have to check for (eg autoconf itself).
5468 ## In a Bazaar checkout on the other hand, the manuals are not included.
5469 ## So makeinfo is a requirement to build from Bazaar, and configure
5470 ## should test for it as it does for any other build requirement.
5471 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5472 ## with pre-built manuals, from a Bazaar checkout.
5473 if test "$MAKEINFO" = "no"; then
5474 if test "x${with_makeinfo}" = "xno"; then
5475 MAKEINFO=off
5476 elif test ! -e $srcdir/info/emacs; then
5477 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
5478 source tree does not seem to have pre-built manuals in the \`info' directory.
5479 Either install a suitable version of makeinfo, or re-run configure
5480 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5485 if test x$GCC = xyes; then
5486 test "x$GCC_LINK_TEST_OPTIONS" != x && \
5487 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5488 else
5489 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
5490 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5494 late_LDFLAGS=$LDFLAGS
5495 if test x$GCC = xyes; then
5496 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5497 else
5498 LDFLAGS="$LDFLAGS -znocombreloc"
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5502 $as_echo_n "checking for -znocombreloc... " >&6; }
5503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5504 /* end confdefs.h. */
5507 main ()
5511 return 0;
5513 _ACEOF
5514 if ac_fn_c_try_link "$LINENO"; then :
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5516 $as_echo "yes" >&6; }
5517 else
5518 LDFLAGS=$late_LDFLAGS
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520 $as_echo "no" >&6; }
5522 rm -f core conftest.err conftest.$ac_objext \
5523 conftest$ac_exeext conftest.$ac_ext
5526 # The value of CPP is a quoted variable reference, so we need to do this
5527 # to get its actual value...
5528 CPP=`eval "echo $CPP"`
5531 CANNOT_DUMP=no
5532 case "$opsys" in
5533 your-opsys-here)
5534 CANNOT_DUMP=yes
5536 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
5539 esac
5543 UNEXEC_OBJ=unexelf.o
5544 case "$opsys" in
5545 # MSDOS uses unexcoff.o
5546 # MSWindows uses unexw32.o
5547 aix4-2)
5548 UNEXEC_OBJ=unexaix.o
5550 cygwin)
5551 UNEXEC_OBJ=unexcw.o
5553 darwin)
5554 UNEXEC_OBJ=unexmacosx.o
5556 hpux10-20 | hpux11)
5557 UNEXEC_OBJ=unexhp9k800.o
5559 sol2-10)
5560 # Use the Solaris dldump() function, called from unexsol.c, to dump
5561 # emacs, instead of the generic ELF dump code found in unexelf.c.
5562 # The resulting binary has a complete symbol table, and is better
5563 # for debugging and other observability tools (debuggers, pstack, etc).
5565 # If you encounter a problem using dldump(), please consider sending
5566 # a message to the OpenSolaris tools-linking mailing list:
5567 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
5569 # It is likely that dldump() works with older Solaris too, but this has
5570 # not been tested, so for now this change is for Solaris 10 or newer.
5571 UNEXEC_OBJ=unexsol.o
5573 esac
5575 LD_SWITCH_SYSTEM=
5576 case "$opsys" in
5577 freebsd)
5578 ## Let `ld' find image libs and similar things in /usr/local/lib.
5579 ## The system compiler, GCC, has apparently been modified to not
5580 ## look there, contrary to what a stock GCC would do.
5581 LD_SWITCH_SYSTEM=-L/usr/local/lib
5584 gnu-linux)
5585 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5586 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
5589 netbsd)
5590 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5593 openbsd)
5594 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5595 ## otherwise Emacs dumps core on elf systems.
5596 LD_SWITCH_SYSTEM="-Z"
5598 esac
5601 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5603 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5604 ## which has not been defined yet. When this was handled with cpp,
5605 ## it was expanded to null when configure sourced the s/*.h file.
5606 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5607 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5608 ## (or somesuch), but because it is supposed to go at the _front_
5609 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5610 ## Compare with the gnu-linux case below, which added to the end
5611 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5612 ## LD_SWITCH_SYSTEM_TEMACS.
5613 case "$opsys" in
5614 netbsd|openbsd)
5615 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5616 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5617 esac
5620 C_SWITCH_MACHINE=
5621 if test "$machine" = "alpha"; then
5622 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5623 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
5627 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5628 ## With ELF, make sure that all common symbols get allocated to in the
5629 ## data section. Otherwise, the dump of temacs may miss variables in
5630 ## the shared library that have been initialized. For example, with
5631 ## GNU libc, __malloc_initialized would normally be resolved to the
5632 ## shared library's .bss section, which is fatal.
5633 if test "x$GCC" = "xyes"; then
5634 C_SWITCH_MACHINE="-fno-common"
5635 else
5636 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5638 else
5639 UNEXEC_OBJ=unexalpha.o
5646 C_SWITCH_SYSTEM=
5647 ## Some programs in src produce warnings saying certain subprograms
5648 ## are too complex and need a MAXMEM value greater than 2000 for
5649 ## additional optimization. --nils@exp-math.uni-essen.de
5650 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5651 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
5652 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5653 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5657 LIBS_SYSTEM=
5658 case "$opsys" in
5659 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5660 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
5662 freebsd) LIBS_SYSTEM="-lutil" ;;
5664 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
5666 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
5668 ## Motif needs -lgen.
5669 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
5670 esac
5674 ### Make sure subsequent tests use flags consistent with the build flags.
5676 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5677 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5678 else
5679 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5684 # Check whether --enable-largefile was given.
5685 if test "${enable_largefile+set}" = set; then :
5686 enableval=$enable_largefile;
5689 if test "$enable_largefile" != no; then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5692 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5693 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5694 $as_echo_n "(cached) " >&6
5695 else
5696 ac_cv_sys_largefile_CC=no
5697 if test "$GCC" != yes; then
5698 ac_save_CC=$CC
5699 while :; do
5700 # IRIX 6.2 and later do not support large files by default,
5701 # so use the C compiler's -n32 option if that helps.
5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h. */
5704 #include <sys/types.h>
5705 /* Check that off_t can represent 2**63 - 1 correctly.
5706 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5707 since some C++ compilers masquerading as C compilers
5708 incorrectly reject 9223372036854775807. */
5709 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5710 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5711 && LARGE_OFF_T % 2147483647 == 1)
5712 ? 1 : -1];
5714 main ()
5718 return 0;
5720 _ACEOF
5721 if ac_fn_c_try_compile "$LINENO"; then :
5722 break
5724 rm -f core conftest.err conftest.$ac_objext
5725 CC="$CC -n32"
5726 if ac_fn_c_try_compile "$LINENO"; then :
5727 ac_cv_sys_largefile_CC=' -n32'; break
5729 rm -f core conftest.err conftest.$ac_objext
5730 break
5731 done
5732 CC=$ac_save_CC
5733 rm -f conftest.$ac_ext
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5737 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5738 if test "$ac_cv_sys_largefile_CC" != no; then
5739 CC=$CC$ac_cv_sys_largefile_CC
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5743 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5744 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5745 $as_echo_n "(cached) " >&6
5746 else
5747 while :; do
5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5750 #include <sys/types.h>
5751 /* Check that off_t can represent 2**63 - 1 correctly.
5752 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5753 since some C++ compilers masquerading as C compilers
5754 incorrectly reject 9223372036854775807. */
5755 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5756 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5757 && LARGE_OFF_T % 2147483647 == 1)
5758 ? 1 : -1];
5760 main ()
5764 return 0;
5766 _ACEOF
5767 if ac_fn_c_try_compile "$LINENO"; then :
5768 ac_cv_sys_file_offset_bits=no; break
5770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h. */
5773 #define _FILE_OFFSET_BITS 64
5774 #include <sys/types.h>
5775 /* Check that off_t can represent 2**63 - 1 correctly.
5776 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5777 since some C++ compilers masquerading as C compilers
5778 incorrectly reject 9223372036854775807. */
5779 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5780 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5781 && LARGE_OFF_T % 2147483647 == 1)
5782 ? 1 : -1];
5784 main ()
5788 return 0;
5790 _ACEOF
5791 if ac_fn_c_try_compile "$LINENO"; then :
5792 ac_cv_sys_file_offset_bits=64; break
5794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5795 ac_cv_sys_file_offset_bits=unknown
5796 break
5797 done
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5800 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5801 case $ac_cv_sys_file_offset_bits in #(
5802 no | unknown) ;;
5804 cat >>confdefs.h <<_ACEOF
5805 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5806 _ACEOF
5808 esac
5809 rm -rf conftest*
5810 if test $ac_cv_sys_file_offset_bits = unknown; then
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5812 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5813 if test "${ac_cv_sys_large_files+set}" = set; then :
5814 $as_echo_n "(cached) " >&6
5815 else
5816 while :; do
5817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818 /* end confdefs.h. */
5819 #include <sys/types.h>
5820 /* Check that off_t can represent 2**63 - 1 correctly.
5821 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5822 since some C++ compilers masquerading as C compilers
5823 incorrectly reject 9223372036854775807. */
5824 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5825 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5826 && LARGE_OFF_T % 2147483647 == 1)
5827 ? 1 : -1];
5829 main ()
5833 return 0;
5835 _ACEOF
5836 if ac_fn_c_try_compile "$LINENO"; then :
5837 ac_cv_sys_large_files=no; break
5839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5842 #define _LARGE_FILES 1
5843 #include <sys/types.h>
5844 /* Check that off_t can represent 2**63 - 1 correctly.
5845 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5846 since some C++ compilers masquerading as C compilers
5847 incorrectly reject 9223372036854775807. */
5848 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5849 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5850 && LARGE_OFF_T % 2147483647 == 1)
5851 ? 1 : -1];
5853 main ()
5857 return 0;
5859 _ACEOF
5860 if ac_fn_c_try_compile "$LINENO"; then :
5861 ac_cv_sys_large_files=1; break
5863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5864 ac_cv_sys_large_files=unknown
5865 break
5866 done
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5869 $as_echo "$ac_cv_sys_large_files" >&6; }
5870 case $ac_cv_sys_large_files in #(
5871 no | unknown) ;;
5873 cat >>confdefs.h <<_ACEOF
5874 #define _LARGE_FILES $ac_cv_sys_large_files
5875 _ACEOF
5877 esac
5878 rm -rf conftest*
5884 ## If user specified a crt-dir, use that unconditionally.
5885 if test "X$CRT_DIR" = "X"; then
5887 case "$canonical" in
5888 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
5889 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5890 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5891 ## For anything else (eg /usr/lib32), it is up the user to specify
5892 ## the location (bug#5655).
5893 ## Test for crtn.o, not just the directory, because sometimes the
5894 ## directory exists but does not have the relevant files (bug#1287).
5895 ## FIXME better to test for binary compatibility somehow.
5896 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
5899 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
5900 esac
5902 case "$opsys" in
5903 hpux10-20) CRT_DIR=/lib ;;
5904 esac
5906 ## Default is /usr/lib.
5907 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
5909 else
5911 ## Some platforms don't use any of these files, so it is not
5912 ## appropriate to put this test outside the if block.
5913 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5914 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
5920 LIB_MATH=-lm
5921 LIB_STANDARD=
5922 START_FILES=
5924 case $opsys in
5925 cygwin )
5926 LIB_MATH=
5927 START_FILES='pre-crt0.o'
5929 darwin )
5930 ## Adding -lm confuses the dynamic linker, so omit it.
5931 LIB_MATH=
5932 START_FILES='pre-crt0.o'
5934 freebsd )
5935 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5936 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5938 gnu-linux | gnu-kfreebsd )
5939 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5940 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5942 hpux10-20 | hpux11 )
5943 LIB_STANDARD=-lc
5944 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
5946 netbsd | openbsd )
5947 if test -f $CRT_DIR/crti.o; then
5948 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5949 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5950 else
5951 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5952 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5955 esac
5963 if test "${with_sound}" != "no"; then
5964 # Sound support for GNU/Linux and the free BSDs.
5965 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5966 do :
5967 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5968 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5969 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5970 cat >>confdefs.h <<_ACEOF
5971 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5972 _ACEOF
5973 have_sound_header=yes
5976 done
5978 # Emulation library used on NetBSD.
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5980 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5981 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5982 $as_echo_n "(cached) " >&6
5983 else
5984 ac_check_lib_save_LIBS=$LIBS
5985 LIBS="-lossaudio $LIBS"
5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987 /* end confdefs.h. */
5989 /* Override any GCC internal prototype to avoid an error.
5990 Use char because int might match the return type of a GCC
5991 builtin and then its argument prototype would still apply. */
5992 #ifdef __cplusplus
5993 extern "C"
5994 #endif
5995 char _oss_ioctl ();
5997 main ()
5999 return _oss_ioctl ();
6001 return 0;
6003 _ACEOF
6004 if ac_fn_c_try_link "$LINENO"; then :
6005 ac_cv_lib_ossaudio__oss_ioctl=yes
6006 else
6007 ac_cv_lib_ossaudio__oss_ioctl=no
6009 rm -f core conftest.err conftest.$ac_objext \
6010 conftest$ac_exeext conftest.$ac_ext
6011 LIBS=$ac_check_lib_save_LIBS
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6014 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6015 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
6016 LIBSOUND=-lossaudio
6017 else
6018 LIBSOUND=
6023 ALSA_REQUIRED=1.0.0
6024 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6026 succeeded=no
6028 # Extract the first word of "pkg-config", so it can be a program name with args.
6029 set dummy pkg-config; ac_word=$2
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6031 $as_echo_n "checking for $ac_word... " >&6; }
6032 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6033 $as_echo_n "(cached) " >&6
6034 else
6035 case $PKG_CONFIG in
6036 [\\/]* | ?:[\\/]*)
6037 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041 for as_dir in $PATH
6043 IFS=$as_save_IFS
6044 test -z "$as_dir" && as_dir=.
6045 for ac_exec_ext in '' $ac_executable_extensions; do
6046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6047 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6049 break 2
6051 done
6052 done
6053 IFS=$as_save_IFS
6055 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6057 esac
6059 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6060 if test -n "$PKG_CONFIG"; then
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6062 $as_echo "$PKG_CONFIG" >&6; }
6063 else
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065 $as_echo "no" >&6; }
6070 if test "$PKG_CONFIG" = "no" ; then
6071 HAVE_ALSA=no
6072 else
6073 PKG_CONFIG_MIN_VERSION=0.9.0
6074 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6076 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6078 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6080 $as_echo "yes" >&6; }
6081 succeeded=yes
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6084 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6085 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6087 $as_echo "$ALSA_CFLAGS" >&6; }
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6090 $as_echo_n "checking ALSA_LIBS... " >&6; }
6091 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6093 $as_echo "$ALSA_LIBS" >&6; }
6094 else
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096 $as_echo "no" >&6; }
6097 ALSA_CFLAGS=""
6098 ALSA_LIBS=""
6099 ## If we have a custom action on failure, don't print errors, but
6100 ## do set a variable so people can do so.
6101 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6107 else
6108 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6109 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6113 if test $succeeded = yes; then
6114 HAVE_ALSA=yes
6115 else
6116 HAVE_ALSA=no
6119 if test $HAVE_ALSA = yes; then
6120 SAVE_CFLAGS="$CFLAGS"
6121 SAVE_LDFLAGS="$LDFLAGS"
6122 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6123 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125 /* end confdefs.h. */
6126 #include <asoundlib.h>
6128 main ()
6130 snd_lib_error_set_handler (0);
6132 return 0;
6134 _ACEOF
6135 if ac_fn_c_try_compile "$LINENO"; then :
6136 emacs_alsa_normal=yes
6137 else
6138 emacs_alsa_normal=no
6140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6141 if test "$emacs_alsa_normal" != yes; then
6142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143 /* end confdefs.h. */
6144 #include <alsa/asoundlib.h>
6146 main ()
6148 snd_lib_error_set_handler (0);
6150 return 0;
6152 _ACEOF
6153 if ac_fn_c_try_compile "$LINENO"; then :
6154 emacs_alsa_subdir=yes
6155 else
6156 emacs_alsa_subdir=no
6158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6159 if test "$emacs_alsa_subdir" != yes; then
6160 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6162 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6165 CFLAGS="$SAVE_CFLAGS"
6166 LDFLAGS="$SAVE_LDFLAGS"
6167 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6168 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6170 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6174 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
6175 case "$opsys" in
6176 gnu-linux|freebsd|netbsd)
6178 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
6181 esac
6187 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
6188 linux/version.h sys/systeminfo.h limits.h \
6189 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
6190 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6191 sys/utsname.h pwd.h utmp.h dirent.h util.h
6192 do :
6193 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6194 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6195 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6196 cat >>confdefs.h <<_ACEOF
6197 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6198 _ACEOF
6202 done
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6206 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208 /* end confdefs.h. */
6209 #include <sys/personality.h>
6211 main ()
6213 personality (PER_LINUX32)
6215 return 0;
6217 _ACEOF
6218 if ac_fn_c_try_compile "$LINENO"; then :
6219 emacs_cv_personality_linux32=yes
6220 else
6221 emacs_cv_personality_linux32=no
6223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6225 $as_echo "$emacs_cv_personality_linux32" >&6; }
6227 if test $emacs_cv_personality_linux32 = yes; then
6229 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6233 for ac_header in term.h
6234 do :
6235 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
6236 if test "x$ac_cv_header_term_h" = x""yes; then :
6237 cat >>confdefs.h <<_ACEOF
6238 #define HAVE_TERM_H 1
6239 _ACEOF
6243 done
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6246 $as_echo_n "checking for ANSI C header files... " >&6; }
6247 if test "${ac_cv_header_stdc+set}" = set; then :
6248 $as_echo_n "(cached) " >&6
6249 else
6250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251 /* end confdefs.h. */
6252 #include <stdlib.h>
6253 #include <stdarg.h>
6254 #include <string.h>
6255 #include <float.h>
6258 main ()
6262 return 0;
6264 _ACEOF
6265 if ac_fn_c_try_compile "$LINENO"; then :
6266 ac_cv_header_stdc=yes
6267 else
6268 ac_cv_header_stdc=no
6270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6272 if test $ac_cv_header_stdc = yes; then
6273 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h. */
6276 #include <string.h>
6278 _ACEOF
6279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6280 $EGREP "memchr" >/dev/null 2>&1; then :
6282 else
6283 ac_cv_header_stdc=no
6285 rm -f conftest*
6289 if test $ac_cv_header_stdc = yes; then
6290 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292 /* end confdefs.h. */
6293 #include <stdlib.h>
6295 _ACEOF
6296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6297 $EGREP "free" >/dev/null 2>&1; then :
6299 else
6300 ac_cv_header_stdc=no
6302 rm -f conftest*
6306 if test $ac_cv_header_stdc = yes; then
6307 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6308 if test "$cross_compiling" = yes; then :
6310 else
6311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312 /* end confdefs.h. */
6313 #include <ctype.h>
6314 #include <stdlib.h>
6315 #if ((' ' & 0x0FF) == 0x020)
6316 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6317 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6318 #else
6319 # define ISLOWER(c) \
6320 (('a' <= (c) && (c) <= 'i') \
6321 || ('j' <= (c) && (c) <= 'r') \
6322 || ('s' <= (c) && (c) <= 'z'))
6323 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6324 #endif
6326 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6328 main ()
6330 int i;
6331 for (i = 0; i < 256; i++)
6332 if (XOR (islower (i), ISLOWER (i))
6333 || toupper (i) != TOUPPER (i))
6334 return 2;
6335 return 0;
6337 _ACEOF
6338 if ac_fn_c_try_run "$LINENO"; then :
6340 else
6341 ac_cv_header_stdc=no
6343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6344 conftest.$ac_objext conftest.beam conftest.$ac_ext
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6350 $as_echo "$ac_cv_header_stdc" >&6; }
6351 if test $ac_cv_header_stdc = yes; then
6353 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6358 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6359 if test "${ac_cv_header_time+set}" = set; then :
6360 $as_echo_n "(cached) " >&6
6361 else
6362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6363 /* end confdefs.h. */
6364 #include <sys/types.h>
6365 #include <sys/time.h>
6366 #include <time.h>
6369 main ()
6371 if ((struct tm *) 0)
6372 return 0;
6374 return 0;
6376 _ACEOF
6377 if ac_fn_c_try_compile "$LINENO"; then :
6378 ac_cv_header_time=yes
6379 else
6380 ac_cv_header_time=no
6382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6385 $as_echo "$ac_cv_header_time" >&6; }
6386 if test $ac_cv_header_time = yes; then
6388 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6392 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6393 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
6394 ac_have_decl=1
6395 else
6396 ac_have_decl=0
6399 cat >>confdefs.h <<_ACEOF
6400 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6401 _ACEOF
6403 if test $ac_cv_have_decl_sys_siglist != yes; then
6404 # For Tru64, at least:
6405 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6406 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
6407 ac_have_decl=1
6408 else
6409 ac_have_decl=0
6412 cat >>confdefs.h <<_ACEOF
6413 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6414 _ACEOF
6416 if test $ac_cv_have_decl___sys_siglist = yes; then
6418 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6423 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6424 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6425 $as_echo_n "(cached) " >&6
6426 else
6427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6428 /* end confdefs.h. */
6429 #include <sys/types.h>
6430 #include <sys/wait.h>
6431 #ifndef WEXITSTATUS
6432 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6433 #endif
6434 #ifndef WIFEXITED
6435 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6436 #endif
6439 main ()
6441 int s;
6442 wait (&s);
6443 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6445 return 0;
6447 _ACEOF
6448 if ac_fn_c_try_compile "$LINENO"; then :
6449 ac_cv_header_sys_wait_h=yes
6450 else
6451 ac_cv_header_sys_wait_h=no
6453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6456 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6457 if test $ac_cv_header_sys_wait_h = yes; then
6459 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6465 $as_echo_n "checking for struct utimbuf... " >&6; }
6466 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6467 $as_echo_n "(cached) " >&6
6468 else
6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470 /* end confdefs.h. */
6471 #ifdef TIME_WITH_SYS_TIME
6472 #include <sys/time.h>
6473 #include <time.h>
6474 #else
6475 #ifdef HAVE_SYS_TIME_H
6476 #include <sys/time.h>
6477 #else
6478 #include <time.h>
6479 #endif
6480 #endif
6481 #ifdef HAVE_UTIME_H
6482 #include <utime.h>
6483 #endif
6485 main ()
6487 static struct utimbuf x; x.actime = x.modtime;
6489 return 0;
6491 _ACEOF
6492 if ac_fn_c_try_compile "$LINENO"; then :
6493 emacs_cv_struct_utimbuf=yes
6494 else
6495 emacs_cv_struct_utimbuf=no
6497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6500 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6501 if test $emacs_cv_struct_utimbuf = yes; then
6503 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6508 $as_echo_n "checking return type of signal handlers... " >&6; }
6509 if test "${ac_cv_type_signal+set}" = set; then :
6510 $as_echo_n "(cached) " >&6
6511 else
6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513 /* end confdefs.h. */
6514 #include <sys/types.h>
6515 #include <signal.h>
6518 main ()
6520 return *(signal (0, 0)) (0) == 1;
6522 return 0;
6524 _ACEOF
6525 if ac_fn_c_try_compile "$LINENO"; then :
6526 ac_cv_type_signal=int
6527 else
6528 ac_cv_type_signal=void
6530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6533 $as_echo "$ac_cv_type_signal" >&6; }
6535 cat >>confdefs.h <<_ACEOF
6536 #define RETSIGTYPE $ac_cv_type_signal
6537 _ACEOF
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6542 $as_echo_n "checking for speed_t... " >&6; }
6543 if test "${emacs_cv_speed_t+set}" = set; then :
6544 $as_echo_n "(cached) " >&6
6545 else
6546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547 /* end confdefs.h. */
6548 #include <termios.h>
6550 main ()
6552 speed_t x = 1;
6554 return 0;
6556 _ACEOF
6557 if ac_fn_c_try_compile "$LINENO"; then :
6558 emacs_cv_speed_t=yes
6559 else
6560 emacs_cv_speed_t=no
6562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6565 $as_echo "$emacs_cv_speed_t" >&6; }
6566 if test $emacs_cv_speed_t = yes; then
6568 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6573 $as_echo_n "checking for struct timeval... " >&6; }
6574 if test "${emacs_cv_struct_timeval+set}" = set; then :
6575 $as_echo_n "(cached) " >&6
6576 else
6577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6578 /* end confdefs.h. */
6579 #ifdef TIME_WITH_SYS_TIME
6580 #include <sys/time.h>
6581 #include <time.h>
6582 #else
6583 #ifdef HAVE_SYS_TIME_H
6584 #include <sys/time.h>
6585 #else
6586 #include <time.h>
6587 #endif
6588 #endif
6590 main ()
6592 static struct timeval x; x.tv_sec = x.tv_usec;
6594 return 0;
6596 _ACEOF
6597 if ac_fn_c_try_compile "$LINENO"; then :
6598 emacs_cv_struct_timeval=yes
6599 else
6600 emacs_cv_struct_timeval=no
6602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6605 $as_echo "$emacs_cv_struct_timeval" >&6; }
6606 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6607 if test $emacs_cv_struct_timeval = yes; then
6609 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6614 $as_echo_n "checking for struct exception... " >&6; }
6615 if test "${emacs_cv_struct_exception+set}" = set; then :
6616 $as_echo_n "(cached) " >&6
6617 else
6618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6619 /* end confdefs.h. */
6620 #include <math.h>
6622 main ()
6624 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6626 return 0;
6628 _ACEOF
6629 if ac_fn_c_try_compile "$LINENO"; then :
6630 emacs_cv_struct_exception=yes
6631 else
6632 emacs_cv_struct_exception=no
6634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6637 $as_echo "$emacs_cv_struct_exception" >&6; }
6638 HAVE_EXCEPTION=$emacs_cv_struct_exception
6639 if test $emacs_cv_struct_exception != yes; then
6641 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6645 for ac_header in sys/socket.h
6646 do :
6647 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6648 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
6649 cat >>confdefs.h <<_ACEOF
6650 #define HAVE_SYS_SOCKET_H 1
6651 _ACEOF
6655 done
6657 for ac_header in net/if.h
6658 do :
6659 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6660 #if HAVE_SYS_SOCKET_H
6661 #include <sys/socket.h>
6662 #endif
6664 if test "x$ac_cv_header_net_if_h" = x""yes; then :
6665 cat >>confdefs.h <<_ACEOF
6666 #define HAVE_NET_IF_H 1
6667 _ACEOF
6671 done
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6675 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6676 if test "${ac_cv_struct_tm+set}" = set; then :
6677 $as_echo_n "(cached) " >&6
6678 else
6679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6680 /* end confdefs.h. */
6681 #include <sys/types.h>
6682 #include <time.h>
6685 main ()
6687 struct tm tm;
6688 int *p = &tm.tm_sec;
6689 return !p;
6691 return 0;
6693 _ACEOF
6694 if ac_fn_c_try_compile "$LINENO"; then :
6695 ac_cv_struct_tm=time.h
6696 else
6697 ac_cv_struct_tm=sys/time.h
6699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6702 $as_echo "$ac_cv_struct_tm" >&6; }
6703 if test $ac_cv_struct_tm = sys/time.h; then
6705 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6709 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6710 #include <$ac_cv_struct_tm>
6713 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6715 cat >>confdefs.h <<_ACEOF
6716 #define HAVE_STRUCT_TM_TM_ZONE 1
6717 _ACEOF
6722 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6724 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6726 else
6727 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6729 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6730 ac_have_decl=1
6731 else
6732 ac_have_decl=0
6735 cat >>confdefs.h <<_ACEOF
6736 #define HAVE_DECL_TZNAME $ac_have_decl
6737 _ACEOF
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6740 $as_echo_n "checking for tzname... " >&6; }
6741 if test "${ac_cv_var_tzname+set}" = set; then :
6742 $as_echo_n "(cached) " >&6
6743 else
6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h. */
6746 #include <time.h>
6747 #if !HAVE_DECL_TZNAME
6748 extern char *tzname[];
6749 #endif
6752 main ()
6754 return tzname[0][0];
6756 return 0;
6758 _ACEOF
6759 if ac_fn_c_try_link "$LINENO"; then :
6760 ac_cv_var_tzname=yes
6761 else
6762 ac_cv_var_tzname=no
6764 rm -f core conftest.err conftest.$ac_objext \
6765 conftest$ac_exeext conftest.$ac_ext
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6768 $as_echo "$ac_cv_var_tzname" >&6; }
6769 if test $ac_cv_var_tzname = yes; then
6771 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6776 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6778 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6780 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6784 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6785 #if HAVE_SYS_SOCKET_H
6786 #include <sys/socket.h>
6787 #endif
6788 #if HAVE_NET_IF_H
6789 #include <net/if.h>
6790 #endif
6792 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
6794 cat >>confdefs.h <<_ACEOF
6795 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6796 _ACEOF
6800 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6801 #if HAVE_SYS_SOCKET_H
6802 #include <sys/socket.h>
6803 #endif
6804 #if HAVE_NET_IF_H
6805 #include <net/if.h>
6806 #endif
6808 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
6810 cat >>confdefs.h <<_ACEOF
6811 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6812 _ACEOF
6816 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6817 #if HAVE_SYS_SOCKET_H
6818 #include <sys/socket.h>
6819 #endif
6820 #if HAVE_NET_IF_H
6821 #include <net/if.h>
6822 #endif
6824 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
6826 cat >>confdefs.h <<_ACEOF
6827 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6828 _ACEOF
6832 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6833 #if HAVE_SYS_SOCKET_H
6834 #include <sys/socket.h>
6835 #endif
6836 #if HAVE_NET_IF_H
6837 #include <net/if.h>
6838 #endif
6840 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
6842 cat >>confdefs.h <<_ACEOF
6843 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6844 _ACEOF
6848 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6849 #if HAVE_SYS_SOCKET_H
6850 #include <sys/socket.h>
6851 #endif
6852 #if HAVE_NET_IF_H
6853 #include <net/if.h>
6854 #endif
6856 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
6858 cat >>confdefs.h <<_ACEOF
6859 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6860 _ACEOF
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6868 $as_echo_n "checking for function prototypes... " >&6; }
6869 if test "$ac_cv_prog_cc_c89" != no; then
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6871 $as_echo "yes" >&6; }
6873 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6876 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6878 else
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880 $as_echo "no" >&6; }
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6884 $as_echo_n "checking for working volatile... " >&6; }
6885 if test "${ac_cv_c_volatile+set}" = set; then :
6886 $as_echo_n "(cached) " >&6
6887 else
6888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h. */
6892 main ()
6895 volatile int x;
6896 int * volatile y = (int *) 0;
6897 return !x && !y;
6899 return 0;
6901 _ACEOF
6902 if ac_fn_c_try_compile "$LINENO"; then :
6903 ac_cv_c_volatile=yes
6904 else
6905 ac_cv_c_volatile=no
6907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6910 $as_echo "$ac_cv_c_volatile" >&6; }
6911 if test $ac_cv_c_volatile = no; then
6913 $as_echo "#define volatile /**/" >>confdefs.h
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6918 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6919 if test "${ac_cv_c_const+set}" = set; then :
6920 $as_echo_n "(cached) " >&6
6921 else
6922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h. */
6926 main ()
6928 /* FIXME: Include the comments suggested by Paul. */
6929 #ifndef __cplusplus
6930 /* Ultrix mips cc rejects this. */
6931 typedef int charset[2];
6932 const charset cs;
6933 /* SunOS 4.1.1 cc rejects this. */
6934 char const *const *pcpcc;
6935 char **ppc;
6936 /* NEC SVR4.0.2 mips cc rejects this. */
6937 struct point {int x, y;};
6938 static struct point const zero = {0,0};
6939 /* AIX XL C 1.02.0.0 rejects this.
6940 It does not let you subtract one const X* pointer from another in
6941 an arm of an if-expression whose if-part is not a constant
6942 expression */
6943 const char *g = "string";
6944 pcpcc = &g + (g ? g-g : 0);
6945 /* HPUX 7.0 cc rejects these. */
6946 ++pcpcc;
6947 ppc = (char**) pcpcc;
6948 pcpcc = (char const *const *) ppc;
6949 { /* SCO 3.2v4 cc rejects this. */
6950 char *t;
6951 char const *s = 0 ? (char *) 0 : (char const *) 0;
6953 *t++ = 0;
6954 if (s) return 0;
6956 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6957 int x[] = {25, 17};
6958 const int *foo = &x[0];
6959 ++foo;
6961 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6962 typedef const int *iptr;
6963 iptr p = 0;
6964 ++p;
6966 { /* AIX XL C 1.02.0.0 rejects this saying
6967 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6968 struct s { int j; const int *ap[3]; };
6969 struct s *b; b->j = 5;
6971 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6972 const int foo = 10;
6973 if (!foo) return 0;
6975 return !cs[0] && !zero.x;
6976 #endif
6979 return 0;
6981 _ACEOF
6982 if ac_fn_c_try_compile "$LINENO"; then :
6983 ac_cv_c_const=yes
6984 else
6985 ac_cv_c_const=no
6987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6990 $as_echo "$ac_cv_c_const" >&6; }
6991 if test $ac_cv_c_const = no; then
6993 $as_echo "#define const /**/" >>confdefs.h
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
6998 $as_echo_n "checking for void * support... " >&6; }
6999 if test "${emacs_cv_void_star+set}" = set; then :
7000 $as_echo_n "(cached) " >&6
7001 else
7002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003 /* end confdefs.h. */
7006 main ()
7008 void * foo;
7010 return 0;
7012 _ACEOF
7013 if ac_fn_c_try_compile "$LINENO"; then :
7014 emacs_cv_void_star=yes
7015 else
7016 emacs_cv_void_star=no
7018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
7021 $as_echo "$emacs_cv_void_star" >&6; }
7022 if test $emacs_cv_void_star = yes; then
7023 $as_echo "#define POINTER_TYPE void" >>confdefs.h
7025 else
7026 $as_echo "#define POINTER_TYPE char" >>confdefs.h
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7031 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7032 if test "${ac_cv_c_bigendian+set}" = set; then :
7033 $as_echo_n "(cached) " >&6
7034 else
7035 ac_cv_c_bigendian=unknown
7036 # See if we're dealing with a universal compiler.
7037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7038 /* end confdefs.h. */
7039 #ifndef __APPLE_CC__
7040 not a universal capable compiler
7041 #endif
7042 typedef int dummy;
7044 _ACEOF
7045 if ac_fn_c_try_compile "$LINENO"; then :
7047 # Check for potential -arch flags. It is not universal unless
7048 # there are at least two -arch flags with different values.
7049 ac_arch=
7050 ac_prev=
7051 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7052 if test -n "$ac_prev"; then
7053 case $ac_word in
7054 i?86 | x86_64 | ppc | ppc64)
7055 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7056 ac_arch=$ac_word
7057 else
7058 ac_cv_c_bigendian=universal
7059 break
7062 esac
7063 ac_prev=
7064 elif test "x$ac_word" = "x-arch"; then
7065 ac_prev=arch
7067 done
7069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7070 if test $ac_cv_c_bigendian = unknown; then
7071 # See if sys/param.h defines the BYTE_ORDER macro.
7072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7073 /* end confdefs.h. */
7074 #include <sys/types.h>
7075 #include <sys/param.h>
7078 main ()
7080 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7081 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7082 && LITTLE_ENDIAN)
7083 bogus endian macros
7084 #endif
7087 return 0;
7089 _ACEOF
7090 if ac_fn_c_try_compile "$LINENO"; then :
7091 # It does; now see whether it defined to BIG_ENDIAN or not.
7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7094 #include <sys/types.h>
7095 #include <sys/param.h>
7098 main ()
7100 #if BYTE_ORDER != BIG_ENDIAN
7101 not big endian
7102 #endif
7105 return 0;
7107 _ACEOF
7108 if ac_fn_c_try_compile "$LINENO"; then :
7109 ac_cv_c_bigendian=yes
7110 else
7111 ac_cv_c_bigendian=no
7113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7117 if test $ac_cv_c_bigendian = unknown; then
7118 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h. */
7121 #include <limits.h>
7124 main ()
7126 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7127 bogus endian macros
7128 #endif
7131 return 0;
7133 _ACEOF
7134 if ac_fn_c_try_compile "$LINENO"; then :
7135 # It does; now see whether it defined to _BIG_ENDIAN or not.
7136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h. */
7138 #include <limits.h>
7141 main ()
7143 #ifndef _BIG_ENDIAN
7144 not big endian
7145 #endif
7148 return 0;
7150 _ACEOF
7151 if ac_fn_c_try_compile "$LINENO"; then :
7152 ac_cv_c_bigendian=yes
7153 else
7154 ac_cv_c_bigendian=no
7156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7160 if test $ac_cv_c_bigendian = unknown; then
7161 # Compile a test program.
7162 if test "$cross_compiling" = yes; then :
7163 # Try to guess by grepping values from an object file.
7164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7165 /* end confdefs.h. */
7166 short int ascii_mm[] =
7167 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7168 short int ascii_ii[] =
7169 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7170 int use_ascii (int i) {
7171 return ascii_mm[i] + ascii_ii[i];
7173 short int ebcdic_ii[] =
7174 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7175 short int ebcdic_mm[] =
7176 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7177 int use_ebcdic (int i) {
7178 return ebcdic_mm[i] + ebcdic_ii[i];
7180 extern int foo;
7183 main ()
7185 return use_ascii (foo) == use_ebcdic (foo);
7187 return 0;
7189 _ACEOF
7190 if ac_fn_c_try_compile "$LINENO"; then :
7191 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7192 ac_cv_c_bigendian=yes
7194 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7195 if test "$ac_cv_c_bigendian" = unknown; then
7196 ac_cv_c_bigendian=no
7197 else
7198 # finding both strings is unlikely to happen, but who knows?
7199 ac_cv_c_bigendian=unknown
7203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7204 else
7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206 /* end confdefs.h. */
7207 $ac_includes_default
7209 main ()
7212 /* Are we little or big endian? From Harbison&Steele. */
7213 union
7215 long int l;
7216 char c[sizeof (long int)];
7217 } u;
7218 u.l = 1;
7219 return u.c[sizeof (long int) - 1] == 1;
7222 return 0;
7224 _ACEOF
7225 if ac_fn_c_try_run "$LINENO"; then :
7226 ac_cv_c_bigendian=no
7227 else
7228 ac_cv_c_bigendian=yes
7230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7231 conftest.$ac_objext conftest.beam conftest.$ac_ext
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7237 $as_echo "$ac_cv_c_bigendian" >&6; }
7238 case $ac_cv_c_bigendian in #(
7239 yes)
7240 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7241 ;; #(
7243 ;; #(
7244 universal)
7246 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7248 ;; #(
7250 as_fn_error $? "unknown endianness
7251 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7252 esac
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7256 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7257 set x ${MAKE-make}
7258 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7259 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
7260 $as_echo_n "(cached) " >&6
7261 else
7262 cat >conftest.make <<\_ACEOF
7263 SHELL = /bin/sh
7264 all:
7265 @echo '@@@%%%=$(MAKE)=@@@%%%'
7266 _ACEOF
7267 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7268 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7269 *@@@%%%=?*=@@@%%%*)
7270 eval ac_cv_prog_make_${ac_make}_set=yes;;
7272 eval ac_cv_prog_make_${ac_make}_set=no;;
7273 esac
7274 rm -f conftest.make
7276 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7278 $as_echo "yes" >&6; }
7279 SET_MAKE=
7280 else
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282 $as_echo "no" >&6; }
7283 SET_MAKE="MAKE=${MAKE-make}"
7287 DEPFLAGS=
7288 MKDEPDIR=":"
7289 deps_frag=deps.mk
7290 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
7292 $as_echo_n "checking whether we are using GNU Make... " >&6; }
7293 HAVE_GNU_MAKE=no
7294 testval=`make --version 2>/dev/null | grep 'GNU Make'`
7295 if test "x$testval" != x; then
7296 HAVE_GNU_MAKE=yes
7297 else
7298 ac_enable_autodepend=no
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7301 $as_echo "$HAVE_GNU_MAKE" >&6; }
7302 if test $HAVE_GNU_MAKE = yes; then
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7304 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7305 SAVE_CFLAGS="$CFLAGS"
7306 CFLAGS="$CFLAGS -MMD -MF deps.d"
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7311 main ()
7315 return 0;
7317 _ACEOF
7318 if ac_fn_c_try_compile "$LINENO"; then :
7320 else
7321 ac_enable_autodepend=no
7323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7324 CFLAGS="$SAVE_CFLAGS"
7325 test -f deps.d || ac_enable_autodepend=no
7326 rm -rf deps.d
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7328 $as_echo "$ac_enable_autodepend" >&6; }
7330 if test $ac_enable_autodepend = yes; then
7331 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
7332 ## In parallel builds, another make might create depdir between
7333 ## the first test and mkdir, so stick another test on the end.
7334 ## Or use mkinstalldirs? mkdir -p is not portable.
7335 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
7336 deps_frag=autodeps.mk
7339 deps_frag=$srcdir/src/$deps_frag
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7346 $as_echo_n "checking for long file names... " >&6; }
7347 if test "${ac_cv_sys_long_file_names+set}" = set; then :
7348 $as_echo_n "(cached) " >&6
7349 else
7350 ac_cv_sys_long_file_names=yes
7351 # Test for long file names in all the places we know might matter:
7352 # . the current directory, where building will happen
7353 # $prefix/lib where we will be installing things
7354 # $exec_prefix/lib likewise
7355 # $TMPDIR if set, where it might want to write temporary files
7356 # /tmp where it might want to write temporary files
7357 # /var/tmp likewise
7358 # /usr/tmp likewise
7359 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
7360 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7361 # in the usual case where exec_prefix is '${prefix}'.
7362 case $ac_dir in #(
7363 . | /* | ?:[\\/]*) ;; #(
7364 *) continue;;
7365 esac
7366 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
7367 ac_xdir=$ac_dir/cf$$
7368 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
7369 ac_tf1=$ac_xdir/conftest9012345
7370 ac_tf2=$ac_xdir/conftest9012346
7371 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7372 ac_cv_sys_long_file_names=no
7373 rm -f -r "$ac_xdir" 2>/dev/null
7374 test $ac_cv_sys_long_file_names = no && break
7375 done
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7378 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7379 if test $ac_cv_sys_long_file_names = yes; then
7381 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7386 #### Choose a window system.
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7389 $as_echo_n "checking for X... " >&6; }
7392 # Check whether --with-x was given.
7393 if test "${with_x+set}" = set; then :
7394 withval=$with_x;
7397 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7398 if test "x$with_x" = xno; then
7399 # The user explicitly disabled X.
7400 have_x=disabled
7401 else
7402 case $x_includes,$x_libraries in #(
7403 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7404 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7405 $as_echo_n "(cached) " >&6
7406 else
7407 # One or both of the vars are not set, and there is no cached value.
7408 ac_x_includes=no ac_x_libraries=no
7409 rm -f -r conftest.dir
7410 if mkdir conftest.dir; then
7411 cd conftest.dir
7412 cat >Imakefile <<'_ACEOF'
7413 incroot:
7414 @echo incroot='${INCROOT}'
7415 usrlibdir:
7416 @echo usrlibdir='${USRLIBDIR}'
7417 libdir:
7418 @echo libdir='${LIBDIR}'
7419 _ACEOF
7420 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7421 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7422 for ac_var in incroot usrlibdir libdir; do
7423 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7424 done
7425 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7426 for ac_extension in a so sl dylib la dll; do
7427 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7428 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7429 ac_im_usrlibdir=$ac_im_libdir; break
7431 done
7432 # Screen out bogus values from the imake configuration. They are
7433 # bogus both because they are the default anyway, and because
7434 # using them would break gcc on systems where it needs fixed includes.
7435 case $ac_im_incroot in
7436 /usr/include) ac_x_includes= ;;
7437 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7438 esac
7439 case $ac_im_usrlibdir in
7440 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7441 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7442 esac
7444 cd ..
7445 rm -f -r conftest.dir
7448 # Standard set of common directories for X headers.
7449 # Check X11 before X11Rn because it is often a symlink to the current release.
7450 ac_x_header_dirs='
7451 /usr/X11/include
7452 /usr/X11R7/include
7453 /usr/X11R6/include
7454 /usr/X11R5/include
7455 /usr/X11R4/include
7457 /usr/include/X11
7458 /usr/include/X11R7
7459 /usr/include/X11R6
7460 /usr/include/X11R5
7461 /usr/include/X11R4
7463 /usr/local/X11/include
7464 /usr/local/X11R7/include
7465 /usr/local/X11R6/include
7466 /usr/local/X11R5/include
7467 /usr/local/X11R4/include
7469 /usr/local/include/X11
7470 /usr/local/include/X11R7
7471 /usr/local/include/X11R6
7472 /usr/local/include/X11R5
7473 /usr/local/include/X11R4
7475 /usr/X386/include
7476 /usr/x386/include
7477 /usr/XFree86/include/X11
7479 /usr/include
7480 /usr/local/include
7481 /usr/unsupported/include
7482 /usr/athena/include
7483 /usr/local/x11r5/include
7484 /usr/lpp/Xamples/include
7486 /usr/openwin/include
7487 /usr/openwin/share/include'
7489 if test "$ac_x_includes" = no; then
7490 # Guess where to find include files, by looking for Xlib.h.
7491 # First, try using that file with no special directory specified.
7492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7493 /* end confdefs.h. */
7494 #include <X11/Xlib.h>
7495 _ACEOF
7496 if ac_fn_c_try_cpp "$LINENO"; then :
7497 # We can compile using X headers with no special include directory.
7498 ac_x_includes=
7499 else
7500 for ac_dir in $ac_x_header_dirs; do
7501 if test -r "$ac_dir/X11/Xlib.h"; then
7502 ac_x_includes=$ac_dir
7503 break
7505 done
7507 rm -f conftest.err conftest.i conftest.$ac_ext
7508 fi # $ac_x_includes = no
7510 if test "$ac_x_libraries" = no; then
7511 # Check for the libraries.
7512 # See if we find them without any special options.
7513 # Don't add to $LIBS permanently.
7514 ac_save_LIBS=$LIBS
7515 LIBS="-lX11 $LIBS"
7516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517 /* end confdefs.h. */
7518 #include <X11/Xlib.h>
7520 main ()
7522 XrmInitialize ()
7524 return 0;
7526 _ACEOF
7527 if ac_fn_c_try_link "$LINENO"; then :
7528 LIBS=$ac_save_LIBS
7529 # We can link X programs with no special library path.
7530 ac_x_libraries=
7531 else
7532 LIBS=$ac_save_LIBS
7533 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7535 # Don't even attempt the hair of trying to link an X program!
7536 for ac_extension in a so sl dylib la dll; do
7537 if test -r "$ac_dir/libX11.$ac_extension"; then
7538 ac_x_libraries=$ac_dir
7539 break 2
7541 done
7542 done
7544 rm -f core conftest.err conftest.$ac_objext \
7545 conftest$ac_exeext conftest.$ac_ext
7546 fi # $ac_x_libraries = no
7548 case $ac_x_includes,$ac_x_libraries in #(
7549 no,* | *,no | *\'*)
7550 # Didn't find X, or a directory has "'" in its name.
7551 ac_cv_have_x="have_x=no";; #(
7553 # Record where we found X for the cache.
7554 ac_cv_have_x="have_x=yes\
7555 ac_x_includes='$ac_x_includes'\
7556 ac_x_libraries='$ac_x_libraries'"
7557 esac
7559 ;; #(
7560 *) have_x=yes;;
7561 esac
7562 eval "$ac_cv_have_x"
7563 fi # $with_x != no
7565 if test "$have_x" != yes; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7567 $as_echo "$have_x" >&6; }
7568 no_x=yes
7569 else
7570 # If each of the values was on the command line, it overrides each guess.
7571 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7572 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7573 # Update the cache value to reflect the command line values.
7574 ac_cv_have_x="have_x=yes\
7575 ac_x_includes='$x_includes'\
7576 ac_x_libraries='$x_libraries'"
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7578 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7581 if test "$no_x" = yes; then
7582 window_system=none
7583 else
7584 window_system=x11
7587 ## Workaround for bug in autoconf <= 2.62.
7588 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7589 ## No need to do anything special for these standard directories.
7590 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
7592 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7596 LD_SWITCH_X_SITE_AUX=
7597 LD_SWITCH_X_SITE_AUX_RPATH=
7598 if test "${x_libraries}" != NONE; then
7599 if test -n "${x_libraries}"; then
7600 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7601 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7602 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7604 x_default_search_path=""
7605 x_search_path=${x_libraries}
7606 if test -z "${x_search_path}"; then
7607 x_search_path=/usr/lib
7609 for x_library in `echo ${x_search_path}: | \
7610 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7611 x_search_path="\
7612 ${x_library}/X11/%L/%T/%N%C%S:\
7613 ${x_library}/X11/%l/%T/%N%C%S:\
7614 ${x_library}/X11/%T/%N%C%S:\
7615 ${x_library}/X11/%L/%T/%N%S:\
7616 ${x_library}/X11/%l/%T/%N%S:\
7617 ${x_library}/X11/%T/%N%S"
7618 if test x"${x_default_search_path}" = x; then
7619 x_default_search_path=${x_search_path}
7620 else
7621 x_default_search_path="${x_search_path}:${x_default_search_path}"
7623 done
7628 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7629 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7632 if test x"${x_includes}" = x; then
7633 bitmapdir=/usr/include/X11/bitmaps
7634 else
7635 # accumulate include directories that have X11 bitmap subdirectories
7636 bmd_acc="dummyval"
7637 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7638 if test -d "${bmd}/X11/bitmaps"; then
7639 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7641 if test -d "${bmd}/bitmaps"; then
7642 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7644 done
7645 if test ${bmd_acc} != "dummyval"; then
7646 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7650 HAVE_NS=no
7651 NS_IMPL_COCOA=no
7652 NS_IMPL_GNUSTEP=no
7653 tmp_CPPFLAGS="$CPPFLAGS"
7654 tmp_CFLAGS="$CFLAGS"
7655 CPPFLAGS="$CPPFLAGS -x objective-c"
7656 CFLAGS="$CFLAGS -x objective-c"
7657 TEMACS_LDFLAGS2="\${LDFLAGS}"
7658 if test "${with_ns}" != no; then
7659 if test "${opsys}" = darwin; then
7660 NS_IMPL_COCOA=yes
7661 ns_appdir=`pwd`/nextstep/Emacs.app
7662 ns_appbindir=${ns_appdir}/Contents/MacOS/
7663 ns_appresdir=${ns_appdir}/Contents/Resources
7664 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
7665 elif test -f $GNUSTEP_CONFIG_FILE; then
7666 NS_IMPL_GNUSTEP=yes
7667 ns_appdir=`pwd`/nextstep/Emacs.app
7668 ns_appbindir=${ns_appdir}/
7669 ns_appresdir=${ns_appdir}/Resources
7670 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
7671 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7672 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7673 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
7674 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
7675 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
7676 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
7677 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
7678 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
7679 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7680 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7681 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
7682 LIB_STANDARD=
7683 START_FILES=
7684 TEMACS_LDFLAGS2=
7686 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7687 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
7688 HAVE_NS=yes
7689 else
7690 as_fn_error $? "\`--with-ns' was specified, but the include
7691 files are missing or cannot be compiled." "$LINENO" 5
7695 NS_HAVE_NSINTEGER=yes
7696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697 /* end confdefs.h. */
7698 #include <Foundation/NSObjCRuntime.h>
7700 main ()
7702 NSInteger i;
7704 return 0;
7706 _ACEOF
7707 if ac_fn_c_try_compile "$LINENO"; then :
7708 ns_have_nsinteger=yes
7709 else
7710 ns_have_nsinteger=no
7712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7713 if test $ns_have_nsinteger = no; then
7714 NS_HAVE_NSINTEGER=no
7719 ns_frag=/dev/null
7720 NS_OBJ=
7721 NS_SUPPORT=
7722 if test "${HAVE_NS}" = yes; then
7723 window_system=nextstep
7724 with_xft=no
7725 # set up packaging dirs
7726 exec_prefix=${ns_appbindir}
7727 libexecdir=${ns_appbindir}/libexec
7728 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7729 prefix=${ns_appresdir}
7731 ns_frag=$srcdir/src/ns.mk
7732 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7733 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
7735 CFLAGS="$tmp_CFLAGS"
7736 CPPFLAGS="$tmp_CPPFLAGS"
7742 case "${window_system}" in
7743 x11 )
7744 HAVE_X_WINDOWS=yes
7745 HAVE_X11=yes
7746 case "${with_x_toolkit}" in
7747 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7748 motif ) USE_X_TOOLKIT=MOTIF ;;
7749 gtk ) with_gtk=yes
7750 USE_X_TOOLKIT=none ;;
7751 gtk3 ) with_gtk3=yes
7752 USE_X_TOOLKIT=none ;;
7753 no ) USE_X_TOOLKIT=none ;;
7754 * ) USE_X_TOOLKIT=maybe ;;
7755 esac
7757 nextstep | none )
7758 HAVE_X_WINDOWS=no
7759 HAVE_X11=no
7760 USE_X_TOOLKIT=none
7762 esac
7764 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7765 # Extract the first word of "X", so it can be a program name with args.
7766 set dummy X; ac_word=$2
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768 $as_echo_n "checking for $ac_word... " >&6; }
7769 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7770 $as_echo_n "(cached) " >&6
7771 else
7772 if test -n "$HAVE_XSERVER"; then
7773 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7774 else
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 for as_dir in $PATH
7778 IFS=$as_save_IFS
7779 test -z "$as_dir" && as_dir=.
7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7782 ac_cv_prog_HAVE_XSERVER="true"
7783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7784 break 2
7786 done
7787 done
7788 IFS=$as_save_IFS
7790 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7793 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7794 if test -n "$HAVE_XSERVER"; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7796 $as_echo "$HAVE_XSERVER" >&6; }
7797 else
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799 $as_echo "no" >&6; }
7803 if test "$HAVE_XSERVER" = true ||
7804 test -n "$DISPLAY" ||
7805 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7806 as_fn_error $? "You seem to be running X, but no X development libraries
7807 were found. You should install the relevant development files for X
7808 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7809 sure you have development files for image handling, i.e.
7810 tiff, gif, jpeg, png and xpm.
7811 If you are sure you want Emacs compiled without X window support, pass
7812 --without-x
7813 to configure." "$LINENO" 5
7817 ### If we're using X11, we should use the X menu package.
7818 HAVE_MENUS=no
7819 case ${HAVE_X11} in
7820 yes ) HAVE_MENUS=yes ;;
7821 esac
7823 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7824 # Assume not, until told otherwise.
7825 GNU_MALLOC=yes
7826 doug_lea_malloc=yes
7827 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7828 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
7830 else
7831 doug_lea_malloc=no
7834 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7835 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
7837 else
7838 doug_lea_malloc=no
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7842 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7843 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7844 $as_echo_n "(cached) " >&6
7845 else
7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7848 extern void (* __after_morecore_hook)();
7850 main ()
7852 __after_morecore_hook = 0
7854 return 0;
7856 _ACEOF
7857 if ac_fn_c_try_link "$LINENO"; then :
7858 emacs_cv_var___after_morecore_hook=yes
7859 else
7860 emacs_cv_var___after_morecore_hook=no
7862 rm -f core conftest.err conftest.$ac_objext \
7863 conftest$ac_exeext conftest.$ac_ext
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7866 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7867 if test $emacs_cv_var___after_morecore_hook = no; then
7868 doug_lea_malloc=no
7872 system_malloc=no
7873 case "$opsys" in
7874 ## darwin ld insists on the use of malloc routines in the System framework.
7875 darwin|sol2-10) system_malloc=yes ;;
7876 esac
7878 if test "${system_malloc}" = "yes"; then
7880 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
7882 GNU_MALLOC=no
7883 GNU_MALLOC_reason="
7884 (The GNU allocators don't work with this system configuration.)"
7885 GMALLOC_OBJ=
7886 VMLIMIT_OBJ=
7887 else
7888 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
7889 VMLIMIT_OBJ=vm-limit.o
7894 if test "$doug_lea_malloc" = "yes" ; then
7895 if test "$GNU_MALLOC" = yes ; then
7896 GNU_MALLOC_reason="
7897 (Using Doug Lea's new malloc from the GNU C Library.)"
7900 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7903 ## Use mmap directly for allocating larger buffers.
7904 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
7905 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
7906 ## Does the AC_FUNC_MMAP test below make this check unecessary?
7907 case "$opsys" in
7908 gnu*) REL_ALLOC=no ;;
7909 esac
7912 if test x"${REL_ALLOC}" = x; then
7913 REL_ALLOC=${GNU_MALLOC}
7916 use_mmap_for_buffers=no
7917 case "$opsys" in
7918 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
7919 esac
7924 for ac_header in $ac_header_list
7925 do :
7926 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7927 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7929 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7930 cat >>confdefs.h <<_ACEOF
7931 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7932 _ACEOF
7936 done
7945 for ac_func in getpagesize
7946 do :
7947 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7948 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7949 cat >>confdefs.h <<_ACEOF
7950 #define HAVE_GETPAGESIZE 1
7951 _ACEOF
7954 done
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7957 $as_echo_n "checking for working mmap... " >&6; }
7958 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7959 $as_echo_n "(cached) " >&6
7960 else
7961 if test "$cross_compiling" = yes; then :
7962 ac_cv_func_mmap_fixed_mapped=no
7963 else
7964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965 /* end confdefs.h. */
7966 $ac_includes_default
7967 /* malloc might have been renamed as rpl_malloc. */
7968 #undef malloc
7970 /* Thanks to Mike Haertel and Jim Avera for this test.
7971 Here is a matrix of mmap possibilities:
7972 mmap private not fixed
7973 mmap private fixed at somewhere currently unmapped
7974 mmap private fixed at somewhere already mapped
7975 mmap shared not fixed
7976 mmap shared fixed at somewhere currently unmapped
7977 mmap shared fixed at somewhere already mapped
7978 For private mappings, we should verify that changes cannot be read()
7979 back from the file, nor mmap's back from the file at a different
7980 address. (There have been systems where private was not correctly
7981 implemented like the infamous i386 svr4.0, and systems where the
7982 VM page cache was not coherent with the file system buffer cache
7983 like early versions of FreeBSD and possibly contemporary NetBSD.)
7984 For shared mappings, we should conversely verify that changes get
7985 propagated back to all the places they're supposed to be.
7987 Grep wants private fixed already mapped.
7988 The main things grep needs to know about mmap are:
7989 * does it exist and is it safe to write into the mmap'd area
7990 * how to use it (BSD variants) */
7992 #include <fcntl.h>
7993 #include <sys/mman.h>
7995 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7996 char *malloc ();
7997 #endif
7999 /* This mess was copied from the GNU getpagesize.h. */
8000 #ifndef HAVE_GETPAGESIZE
8001 # ifdef _SC_PAGESIZE
8002 # define getpagesize() sysconf(_SC_PAGESIZE)
8003 # else /* no _SC_PAGESIZE */
8004 # ifdef HAVE_SYS_PARAM_H
8005 # include <sys/param.h>
8006 # ifdef EXEC_PAGESIZE
8007 # define getpagesize() EXEC_PAGESIZE
8008 # else /* no EXEC_PAGESIZE */
8009 # ifdef NBPG
8010 # define getpagesize() NBPG * CLSIZE
8011 # ifndef CLSIZE
8012 # define CLSIZE 1
8013 # endif /* no CLSIZE */
8014 # else /* no NBPG */
8015 # ifdef NBPC
8016 # define getpagesize() NBPC
8017 # else /* no NBPC */
8018 # ifdef PAGESIZE
8019 # define getpagesize() PAGESIZE
8020 # endif /* PAGESIZE */
8021 # endif /* no NBPC */
8022 # endif /* no NBPG */
8023 # endif /* no EXEC_PAGESIZE */
8024 # else /* no HAVE_SYS_PARAM_H */
8025 # define getpagesize() 8192 /* punt totally */
8026 # endif /* no HAVE_SYS_PARAM_H */
8027 # endif /* no _SC_PAGESIZE */
8029 #endif /* no HAVE_GETPAGESIZE */
8032 main ()
8034 char *data, *data2, *data3;
8035 const char *cdata2;
8036 int i, pagesize;
8037 int fd, fd2;
8039 pagesize = getpagesize ();
8041 /* First, make a file with some known garbage in it. */
8042 data = (char *) malloc (pagesize);
8043 if (!data)
8044 return 1;
8045 for (i = 0; i < pagesize; ++i)
8046 *(data + i) = rand ();
8047 umask (0);
8048 fd = creat ("conftest.mmap", 0600);
8049 if (fd < 0)
8050 return 2;
8051 if (write (fd, data, pagesize) != pagesize)
8052 return 3;
8053 close (fd);
8055 /* Next, check that the tail of a page is zero-filled. File must have
8056 non-zero length, otherwise we risk SIGBUS for entire page. */
8057 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8058 if (fd2 < 0)
8059 return 4;
8060 cdata2 = "";
8061 if (write (fd2, cdata2, 1) != 1)
8062 return 5;
8063 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8064 if (data2 == MAP_FAILED)
8065 return 6;
8066 for (i = 0; i < pagesize; ++i)
8067 if (*(data2 + i))
8068 return 7;
8069 close (fd2);
8070 if (munmap (data2, pagesize))
8071 return 8;
8073 /* Next, try to mmap the file at a fixed address which already has
8074 something else allocated at it. If we can, also make sure that
8075 we see the same garbage. */
8076 fd = open ("conftest.mmap", O_RDWR);
8077 if (fd < 0)
8078 return 9;
8079 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8080 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8081 return 10;
8082 for (i = 0; i < pagesize; ++i)
8083 if (*(data + i) != *(data2 + i))
8084 return 11;
8086 /* Finally, make sure that changes to the mapped area do not
8087 percolate back to the file as seen by read(). (This is a bug on
8088 some variants of i386 svr4.0.) */
8089 for (i = 0; i < pagesize; ++i)
8090 *(data2 + i) = *(data2 + i) + 1;
8091 data3 = (char *) malloc (pagesize);
8092 if (!data3)
8093 return 12;
8094 if (read (fd, data3, pagesize) != pagesize)
8095 return 13;
8096 for (i = 0; i < pagesize; ++i)
8097 if (*(data + i) != *(data3 + i))
8098 return 14;
8099 close (fd);
8100 return 0;
8102 _ACEOF
8103 if ac_fn_c_try_run "$LINENO"; then :
8104 ac_cv_func_mmap_fixed_mapped=yes
8105 else
8106 ac_cv_func_mmap_fixed_mapped=no
8108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8109 conftest.$ac_objext conftest.beam conftest.$ac_ext
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8114 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8115 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8117 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8120 rm -f conftest.mmap conftest.txt
8122 if test $use_mmap_for_buffers = yes; then
8124 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
8126 REL_ALLOC=no
8129 LIBS="$LIBS_SYSTEM $LIBS"
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8132 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8133 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
8134 $as_echo_n "(cached) " >&6
8135 else
8136 ac_check_lib_save_LIBS=$LIBS
8137 LIBS="-ldnet $LIBS"
8138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139 /* end confdefs.h. */
8141 /* Override any GCC internal prototype to avoid an error.
8142 Use char because int might match the return type of a GCC
8143 builtin and then its argument prototype would still apply. */
8144 #ifdef __cplusplus
8145 extern "C"
8146 #endif
8147 char dnet_ntoa ();
8149 main ()
8151 return dnet_ntoa ();
8153 return 0;
8155 _ACEOF
8156 if ac_fn_c_try_link "$LINENO"; then :
8157 ac_cv_lib_dnet_dnet_ntoa=yes
8158 else
8159 ac_cv_lib_dnet_dnet_ntoa=no
8161 rm -f core conftest.err conftest.$ac_objext \
8162 conftest$ac_exeext conftest.$ac_ext
8163 LIBS=$ac_check_lib_save_LIBS
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8166 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8167 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
8168 cat >>confdefs.h <<_ACEOF
8169 #define HAVE_LIBDNET 1
8170 _ACEOF
8172 LIBS="-ldnet $LIBS"
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
8178 $as_echo_n "checking for main in -lXbsd... " >&6; }
8179 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
8180 $as_echo_n "(cached) " >&6
8181 else
8182 ac_check_lib_save_LIBS=$LIBS
8183 LIBS="-lXbsd $LIBS"
8184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8185 /* end confdefs.h. */
8189 main ()
8191 return main ();
8193 return 0;
8195 _ACEOF
8196 if ac_fn_c_try_link "$LINENO"; then :
8197 ac_cv_lib_Xbsd_main=yes
8198 else
8199 ac_cv_lib_Xbsd_main=no
8201 rm -f core conftest.err conftest.$ac_objext \
8202 conftest$ac_exeext conftest.$ac_ext
8203 LIBS=$ac_check_lib_save_LIBS
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
8206 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
8207 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
8208 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
8213 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
8214 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
8215 $as_echo_n "(cached) " >&6
8216 else
8217 ac_check_lib_save_LIBS=$LIBS
8218 LIBS="-lpthreads $LIBS"
8219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8220 /* end confdefs.h. */
8222 /* Override any GCC internal prototype to avoid an error.
8223 Use char because int might match the return type of a GCC
8224 builtin and then its argument prototype would still apply. */
8225 #ifdef __cplusplus
8226 extern "C"
8227 #endif
8228 char cma_open ();
8230 main ()
8232 return cma_open ();
8234 return 0;
8236 _ACEOF
8237 if ac_fn_c_try_link "$LINENO"; then :
8238 ac_cv_lib_pthreads_cma_open=yes
8239 else
8240 ac_cv_lib_pthreads_cma_open=no
8242 rm -f core conftest.err conftest.$ac_objext \
8243 conftest$ac_exeext conftest.$ac_ext
8244 LIBS=$ac_check_lib_save_LIBS
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
8247 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
8248 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
8249 cat >>confdefs.h <<_ACEOF
8250 #define HAVE_LIBPTHREADS 1
8251 _ACEOF
8253 LIBS="-lpthreads $LIBS"
8258 ## Note: when using cpp in s/aix4.2.h, this definition depended on
8259 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
8260 ## the system file was sourced. Hence the value of LIBS_SYSTEM
8261 ## added to LIBS in configure would never contain the pthreads part,
8262 ## but the value used in Makefiles might. FIXME?
8264 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
8265 ## be harmless on older versions of X where it happens to exist.
8266 test "$opsys" = "aix4-2" && \
8267 test $ac_cv_lib_pthreads_cma_open = yes && \
8268 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
8271 case ${host_os} in
8272 aix*)
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
8274 $as_echo_n "checking for -bbigtoc option... " >&6; }
8275 if test "${gdb_cv_bigtoc+set}" = set; then :
8276 $as_echo_n "(cached) " >&6
8277 else
8279 case $GCC in
8280 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
8281 *) gdb_cv_bigtoc=-bbigtoc ;;
8282 esac
8284 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
8285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8286 /* end confdefs.h. */
8289 main ()
8291 int i;
8293 return 0;
8295 _ACEOF
8296 if ac_fn_c_try_link "$LINENO"; then :
8298 else
8299 gdb_cv_bigtoc=
8301 rm -f core conftest.err conftest.$ac_objext \
8302 conftest$ac_exeext conftest.$ac_ext
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
8306 $as_echo "$gdb_cv_bigtoc" >&6; }
8308 esac
8310 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8311 # used for the tests that follow. We set them back to REAL_CFLAGS and
8312 # REAL_CPPFLAGS later on.
8314 REAL_CFLAGS="$CFLAGS"
8315 REAL_CPPFLAGS="$CPPFLAGS"
8317 if test "${HAVE_X11}" = "yes"; then
8318 DEFS="$C_SWITCH_X_SITE $DEFS"
8319 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
8320 LIBS="-lX11 $LIBS"
8321 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
8322 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
8324 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8325 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8326 # but it's more convenient here to set LD_RUN_PATH
8327 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8328 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8329 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8330 export LD_RUN_PATH
8333 if test "${opsys}" = "gnu-linux"; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
8335 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h. */
8340 main ()
8342 XOpenDisplay ("foo");
8344 return 0;
8346 _ACEOF
8347 if ac_fn_c_try_link "$LINENO"; then :
8348 xlinux_first_failure=no
8349 else
8350 xlinux_first_failure=yes
8352 rm -f core conftest.err conftest.$ac_objext \
8353 conftest$ac_exeext conftest.$ac_ext
8354 if test "${xlinux_first_failure}" = "yes"; then
8355 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
8356 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
8357 OLD_CPPFLAGS="$CPPFLAGS"
8358 OLD_LIBS="$LIBS"
8359 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
8360 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
8361 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
8362 LIBS="$LIBS -b i486-linuxaout"
8363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8364 /* end confdefs.h. */
8367 main ()
8369 XOpenDisplay ("foo");
8371 return 0;
8373 _ACEOF
8374 if ac_fn_c_try_link "$LINENO"; then :
8375 xlinux_second_failure=no
8376 else
8377 xlinux_second_failure=yes
8379 rm -f core conftest.err conftest.$ac_objext \
8380 conftest$ac_exeext conftest.$ac_ext
8381 if test "${xlinux_second_failure}" = "yes"; then
8382 # If we get the same failure with -b, there is no use adding -b.
8383 # So take it out. This plays safe.
8384 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
8385 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
8386 CPPFLAGS="$OLD_CPPFLAGS"
8387 LIBS="$OLD_LIBS"
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389 $as_echo "no" >&6; }
8390 else
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8392 $as_echo "yes" >&6; }
8394 else
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396 $as_echo "no" >&6; }
8400 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8401 # header files included from there.
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8403 $as_echo_n "checking for Xkb... " >&6; }
8404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8405 /* end confdefs.h. */
8406 #include <X11/Xlib.h>
8407 #include <X11/XKBlib.h>
8409 main ()
8411 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8413 return 0;
8415 _ACEOF
8416 if ac_fn_c_try_link "$LINENO"; then :
8417 emacs_xkb=yes
8418 else
8419 emacs_xkb=no
8421 rm -f core conftest.err conftest.$ac_objext \
8422 conftest$ac_exeext conftest.$ac_ext
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8424 $as_echo "$emacs_xkb" >&6; }
8425 if test $emacs_xkb = yes; then
8427 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8431 for ac_func in XrmSetDatabase XScreenResourceString \
8432 XScreenNumberOfScreen XSetWMProtocols
8433 do :
8434 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8435 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8436 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8437 cat >>confdefs.h <<_ACEOF
8438 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8439 _ACEOF
8442 done
8446 if test "${window_system}" = "x11"; then
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8448 $as_echo_n "checking X11 version 6... " >&6; }
8449 if test "${emacs_cv_x11_version_6+set}" = set; then :
8450 $as_echo_n "(cached) " >&6
8451 else
8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453 /* end confdefs.h. */
8454 #include <X11/Xlib.h>
8456 main ()
8458 #if XlibSpecificationRelease < 6
8459 fail;
8460 #endif
8463 return 0;
8465 _ACEOF
8466 if ac_fn_c_try_link "$LINENO"; then :
8467 emacs_cv_x11_version_6=yes
8468 else
8469 emacs_cv_x11_version_6=no
8471 rm -f core conftest.err conftest.$ac_objext \
8472 conftest$ac_exeext conftest.$ac_ext
8475 if test $emacs_cv_x11_version_6 = yes; then
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8477 $as_echo "6 or newer" >&6; }
8479 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8482 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
8484 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
8485 ## XIM support.
8486 case "$opsys" in
8487 sol2-*) : ;;
8489 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
8492 esac
8493 else
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8495 $as_echo "before 6" >&6; }
8500 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8501 HAVE_RSVG=no
8502 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
8503 if test "${with_rsvg}" != "no"; then
8504 RSVG_REQUIRED=2.11.0
8505 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
8508 succeeded=no
8510 # Extract the first word of "pkg-config", so it can be a program name with args.
8511 set dummy pkg-config; ac_word=$2
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8513 $as_echo_n "checking for $ac_word... " >&6; }
8514 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8515 $as_echo_n "(cached) " >&6
8516 else
8517 case $PKG_CONFIG in
8518 [\\/]* | ?:[\\/]*)
8519 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8523 for as_dir in $PATH
8525 IFS=$as_save_IFS
8526 test -z "$as_dir" && as_dir=.
8527 for ac_exec_ext in '' $ac_executable_extensions; do
8528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8529 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8531 break 2
8533 done
8534 done
8535 IFS=$as_save_IFS
8537 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8539 esac
8541 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8542 if test -n "$PKG_CONFIG"; then
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8544 $as_echo "$PKG_CONFIG" >&6; }
8545 else
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8547 $as_echo "no" >&6; }
8552 if test "$PKG_CONFIG" = "no" ; then
8554 else
8555 PKG_CONFIG_MIN_VERSION=0.9.0
8556 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8558 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8560 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8562 $as_echo "yes" >&6; }
8563 succeeded=yes
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8566 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8567 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8569 $as_echo "$RSVG_CFLAGS" >&6; }
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8572 $as_echo_n "checking RSVG_LIBS... " >&6; }
8573 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8575 $as_echo "$RSVG_LIBS" >&6; }
8576 else
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8578 $as_echo "no" >&6; }
8579 RSVG_CFLAGS=""
8580 RSVG_LIBS=""
8581 ## If we have a custom action on failure, don't print errors, but
8582 ## do set a variable so people can do so.
8583 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8589 else
8590 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8591 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8595 if test $succeeded = yes; then
8596 HAVE_RSVG=yes
8597 else
8604 if test $HAVE_RSVG = yes; then
8606 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8608 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8609 LIBS="$RSVG_LIBS $LIBS"
8614 HAVE_IMAGEMAGICK=no
8615 if test "${HAVE_X11}" = "yes"; then
8616 if test "${with_imagemagick}" != "no"; then
8617 IMAGEMAGICK_MODULE="Wand"
8619 succeeded=no
8621 # Extract the first word of "pkg-config", so it can be a program name with args.
8622 set dummy pkg-config; ac_word=$2
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8624 $as_echo_n "checking for $ac_word... " >&6; }
8625 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8626 $as_echo_n "(cached) " >&6
8627 else
8628 case $PKG_CONFIG in
8629 [\\/]* | ?:[\\/]*)
8630 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634 for as_dir in $PATH
8636 IFS=$as_save_IFS
8637 test -z "$as_dir" && as_dir=.
8638 for ac_exec_ext in '' $ac_executable_extensions; do
8639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8640 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8642 break 2
8644 done
8645 done
8646 IFS=$as_save_IFS
8648 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8650 esac
8652 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8653 if test -n "$PKG_CONFIG"; then
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8655 $as_echo "$PKG_CONFIG" >&6; }
8656 else
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8658 $as_echo "no" >&6; }
8663 if test "$PKG_CONFIG" = "no" ; then
8665 else
8666 PKG_CONFIG_MIN_VERSION=0.9.0
8667 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
8669 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
8671 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8673 $as_echo "yes" >&6; }
8674 succeeded=yes
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
8677 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
8678 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
8680 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
8683 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
8684 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
8686 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
8687 else
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8689 $as_echo "no" >&6; }
8690 IMAGEMAGICK_CFLAGS=""
8691 IMAGEMAGICK_LIBS=""
8692 ## If we have a custom action on failure, don't print errors, but
8693 ## do set a variable so people can do so.
8694 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
8700 else
8701 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8702 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8706 if test $succeeded = yes; then
8707 HAVE_IMAGEMAGICK=yes
8708 else
8715 if test $HAVE_IMAGEMAGICK = yes; then
8717 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
8719 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
8720 LIBS="$IMAGEMAGICK_LIBS $LIBS"
8721 for ac_func in MagickExportImagePixels
8722 do :
8723 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
8724 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
8725 cat >>confdefs.h <<_ACEOF
8726 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
8727 _ACEOF
8730 done
8737 HAVE_GTK=no
8738 if test "${with_gtk3}" = "yes"; then
8739 GLIB_REQUIRED=2.6
8740 GTK_REQUIRED=2.90
8741 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8744 succeeded=no
8746 # Extract the first word of "pkg-config", so it can be a program name with args.
8747 set dummy pkg-config; ac_word=$2
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8749 $as_echo_n "checking for $ac_word... " >&6; }
8750 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8751 $as_echo_n "(cached) " >&6
8752 else
8753 case $PKG_CONFIG in
8754 [\\/]* | ?:[\\/]*)
8755 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8759 for as_dir in $PATH
8761 IFS=$as_save_IFS
8762 test -z "$as_dir" && as_dir=.
8763 for ac_exec_ext in '' $ac_executable_extensions; do
8764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8765 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8767 break 2
8769 done
8770 done
8771 IFS=$as_save_IFS
8773 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8775 esac
8777 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8778 if test -n "$PKG_CONFIG"; then
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8780 $as_echo "$PKG_CONFIG" >&6; }
8781 else
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8783 $as_echo "no" >&6; }
8788 if test "$PKG_CONFIG" = "no" ; then
8789 pkg_check_gtk=no
8790 else
8791 PKG_CONFIG_MIN_VERSION=0.9.0
8792 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8794 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8796 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8798 $as_echo "yes" >&6; }
8799 succeeded=yes
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8802 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8803 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8805 $as_echo "$GTK_CFLAGS" >&6; }
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8808 $as_echo_n "checking GTK_LIBS... " >&6; }
8809 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8811 $as_echo "$GTK_LIBS" >&6; }
8812 else
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8814 $as_echo "no" >&6; }
8815 GTK_CFLAGS=""
8816 GTK_LIBS=""
8817 ## If we have a custom action on failure, don't print errors, but
8818 ## do set a variable so people can do so.
8819 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8825 else
8826 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8827 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8831 if test $succeeded = yes; then
8832 pkg_check_gtk=yes
8833 else
8834 pkg_check_gtk=no
8837 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8838 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
8842 if test "$pkg_check_gtk" != "yes"; then
8843 HAVE_GTK=no
8844 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8845 GLIB_REQUIRED=2.6
8846 GTK_REQUIRED=2.6
8847 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8850 succeeded=no
8852 # Extract the first word of "pkg-config", so it can be a program name with args.
8853 set dummy pkg-config; ac_word=$2
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8855 $as_echo_n "checking for $ac_word... " >&6; }
8856 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8857 $as_echo_n "(cached) " >&6
8858 else
8859 case $PKG_CONFIG in
8860 [\\/]* | ?:[\\/]*)
8861 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8865 for as_dir in $PATH
8867 IFS=$as_save_IFS
8868 test -z "$as_dir" && as_dir=.
8869 for ac_exec_ext in '' $ac_executable_extensions; do
8870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8871 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8873 break 2
8875 done
8876 done
8877 IFS=$as_save_IFS
8879 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8881 esac
8883 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8884 if test -n "$PKG_CONFIG"; then
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8886 $as_echo "$PKG_CONFIG" >&6; }
8887 else
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8889 $as_echo "no" >&6; }
8894 if test "$PKG_CONFIG" = "no" ; then
8895 pkg_check_gtk=no
8896 else
8897 PKG_CONFIG_MIN_VERSION=0.9.0
8898 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8900 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8902 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8904 $as_echo "yes" >&6; }
8905 succeeded=yes
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8908 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8909 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8911 $as_echo "$GTK_CFLAGS" >&6; }
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8914 $as_echo_n "checking GTK_LIBS... " >&6; }
8915 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8917 $as_echo "$GTK_LIBS" >&6; }
8918 else
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8920 $as_echo "no" >&6; }
8921 GTK_CFLAGS=""
8922 GTK_LIBS=""
8923 ## If we have a custom action on failure, don't print errors, but
8924 ## do set a variable so people can do so.
8925 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8931 else
8932 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8933 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8937 if test $succeeded = yes; then
8938 pkg_check_gtk=yes
8939 else
8940 pkg_check_gtk=no
8943 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8944 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
8949 GTK_OBJ=
8950 if test x"$pkg_check_gtk" = xyes; then
8954 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8955 CFLAGS="$CFLAGS $GTK_CFLAGS"
8956 LIBS="$GTK_LIBS $LIBS"
8957 GTK_COMPILES=no
8958 for ac_func in gtk_main
8959 do :
8960 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8961 if test "x$ac_cv_func_gtk_main" = x""yes; then :
8962 cat >>confdefs.h <<_ACEOF
8963 #define HAVE_GTK_MAIN 1
8964 _ACEOF
8965 GTK_COMPILES=yes
8967 done
8969 if test "${GTK_COMPILES}" != "yes"; then
8970 if test "$USE_X_TOOLKIT" != "maybe"; then
8971 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8973 else
8974 HAVE_GTK=yes
8976 $as_echo "#define USE_GTK 1" >>confdefs.h
8978 GTK_OBJ=gtkutil.o
8979 USE_X_TOOLKIT=none
8980 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
8982 else
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8984 closing open displays. This is no problem if you just use
8985 one display, but if you use more than one and close one of them
8986 Emacs may crash." >&5
8987 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8988 closing open displays. This is no problem if you just use
8989 one display, but if you use more than one and close one of them
8990 Emacs may crash." >&2;}
8991 sleep 3
8999 if test "${HAVE_GTK}" = "yes"; then
9001 if test "$with_toolkit_scroll_bars" != no; then
9002 with_toolkit_scroll_bars=yes
9005 HAVE_GTK_FILE_SELECTION=no
9006 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
9007 #include <gtk/gtk.h>
9009 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
9010 HAVE_GTK_FILE_SELECTION=yes
9011 else
9012 HAVE_GTK_FILE_SELECTION=no
9015 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
9016 for ac_func in gtk_file_selection_new
9017 do :
9018 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
9019 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
9020 cat >>confdefs.h <<_ACEOF
9021 #define HAVE_GTK_FILE_SELECTION_NEW 1
9022 _ACEOF
9025 done
9029 HAVE_GTK_AND_PTHREAD=no
9030 for ac_header in pthread.h
9031 do :
9032 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9033 if test "x$ac_cv_header_pthread_h" = x""yes; then :
9034 cat >>confdefs.h <<_ACEOF
9035 #define HAVE_PTHREAD_H 1
9036 _ACEOF
9040 done
9042 if test "$ac_cv_header_pthread_h"; then
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
9044 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
9045 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
9046 $as_echo_n "(cached) " >&6
9047 else
9048 ac_check_lib_save_LIBS=$LIBS
9049 LIBS="-lpthread $LIBS"
9050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9051 /* end confdefs.h. */
9053 /* Override any GCC internal prototype to avoid an error.
9054 Use char because int might match the return type of a GCC
9055 builtin and then its argument prototype would still apply. */
9056 #ifdef __cplusplus
9057 extern "C"
9058 #endif
9059 char pthread_self ();
9061 main ()
9063 return pthread_self ();
9065 return 0;
9067 _ACEOF
9068 if ac_fn_c_try_link "$LINENO"; then :
9069 ac_cv_lib_pthread_pthread_self=yes
9070 else
9071 ac_cv_lib_pthread_pthread_self=no
9073 rm -f core conftest.err conftest.$ac_objext \
9074 conftest$ac_exeext conftest.$ac_ext
9075 LIBS=$ac_check_lib_save_LIBS
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
9078 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
9079 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
9080 HAVE_GTK_AND_PTHREAD=yes
9084 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
9085 case "${canonical}" in
9086 *-hpux*) ;;
9087 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
9088 esac
9090 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
9094 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
9095 gtk_dialog_get_action_area gtk_widget_get_sensitive \
9096 gtk_widget_get_mapped gtk_adjustment_get_page_size \
9097 gtk_orientable_set_orientation
9098 do :
9099 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9100 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9101 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9102 cat >>confdefs.h <<_ACEOF
9103 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9104 _ACEOF
9107 done
9112 HAVE_DBUS=no
9113 DBUS_OBJ=
9114 if test "${with_dbus}" = "yes"; then
9116 succeeded=no
9118 # Extract the first word of "pkg-config", so it can be a program name with args.
9119 set dummy pkg-config; ac_word=$2
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9121 $as_echo_n "checking for $ac_word... " >&6; }
9122 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9123 $as_echo_n "(cached) " >&6
9124 else
9125 case $PKG_CONFIG in
9126 [\\/]* | ?:[\\/]*)
9127 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9131 for as_dir in $PATH
9133 IFS=$as_save_IFS
9134 test -z "$as_dir" && as_dir=.
9135 for ac_exec_ext in '' $ac_executable_extensions; do
9136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9137 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9139 break 2
9141 done
9142 done
9143 IFS=$as_save_IFS
9145 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9147 esac
9149 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9150 if test -n "$PKG_CONFIG"; then
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9152 $as_echo "$PKG_CONFIG" >&6; }
9153 else
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9155 $as_echo "no" >&6; }
9160 if test "$PKG_CONFIG" = "no" ; then
9161 HAVE_DBUS=no
9162 else
9163 PKG_CONFIG_MIN_VERSION=0.9.0
9164 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
9166 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
9168 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9170 $as_echo "yes" >&6; }
9171 succeeded=yes
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
9174 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
9175 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
9177 $as_echo "$DBUS_CFLAGS" >&6; }
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
9180 $as_echo_n "checking DBUS_LIBS... " >&6; }
9181 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
9183 $as_echo "$DBUS_LIBS" >&6; }
9184 else
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9186 $as_echo "no" >&6; }
9187 DBUS_CFLAGS=""
9188 DBUS_LIBS=""
9189 ## If we have a custom action on failure, don't print errors, but
9190 ## do set a variable so people can do so.
9191 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
9197 else
9198 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9199 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9203 if test $succeeded = yes; then
9204 HAVE_DBUS=yes
9205 else
9206 HAVE_DBUS=no
9209 if test "$HAVE_DBUS" = yes; then
9210 LIBS="$LIBS $DBUS_LIBS"
9212 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
9214 for ac_func in dbus_watch_get_unix_fd
9215 do :
9216 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
9217 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
9218 cat >>confdefs.h <<_ACEOF
9219 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
9220 _ACEOF
9223 done
9225 DBUS_OBJ=dbusbind.o
9230 HAVE_GCONF=no
9231 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
9233 succeeded=no
9235 # Extract the first word of "pkg-config", so it can be a program name with args.
9236 set dummy pkg-config; ac_word=$2
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9238 $as_echo_n "checking for $ac_word... " >&6; }
9239 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9240 $as_echo_n "(cached) " >&6
9241 else
9242 case $PKG_CONFIG in
9243 [\\/]* | ?:[\\/]*)
9244 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9248 for as_dir in $PATH
9250 IFS=$as_save_IFS
9251 test -z "$as_dir" && as_dir=.
9252 for ac_exec_ext in '' $ac_executable_extensions; do
9253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9254 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9256 break 2
9258 done
9259 done
9260 IFS=$as_save_IFS
9262 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9264 esac
9266 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9267 if test -n "$PKG_CONFIG"; then
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9269 $as_echo "$PKG_CONFIG" >&6; }
9270 else
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9272 $as_echo "no" >&6; }
9277 if test "$PKG_CONFIG" = "no" ; then
9278 HAVE_GCONF=no
9279 else
9280 PKG_CONFIG_MIN_VERSION=0.9.0
9281 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
9283 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
9285 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9287 $as_echo "yes" >&6; }
9288 succeeded=yes
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
9291 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
9292 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
9294 $as_echo "$GCONF_CFLAGS" >&6; }
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
9297 $as_echo_n "checking GCONF_LIBS... " >&6; }
9298 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
9300 $as_echo "$GCONF_LIBS" >&6; }
9301 else
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9303 $as_echo "no" >&6; }
9304 GCONF_CFLAGS=""
9305 GCONF_LIBS=""
9306 ## If we have a custom action on failure, don't print errors, but
9307 ## do set a variable so people can do so.
9308 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
9314 else
9315 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9316 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9320 if test $succeeded = yes; then
9321 HAVE_GCONF=yes
9322 else
9323 HAVE_GCONF=no
9326 if test "$HAVE_GCONF" = yes; then
9328 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
9330 for ac_func in g_type_init
9331 do :
9332 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
9333 if test "x$ac_cv_func_g_type_init" = x""yes; then :
9334 cat >>confdefs.h <<_ACEOF
9335 #define HAVE_G_TYPE_INIT 1
9336 _ACEOF
9339 done
9344 HAVE_LIBSELINUX=no
9345 LIBSELINUX_LIBS=
9346 if test "${with_selinux}" = "yes"; then
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
9348 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
9349 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
9350 $as_echo_n "(cached) " >&6
9351 else
9352 ac_check_lib_save_LIBS=$LIBS
9353 LIBS="-lselinux $LIBS"
9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h. */
9357 /* Override any GCC internal prototype to avoid an error.
9358 Use char because int might match the return type of a GCC
9359 builtin and then its argument prototype would still apply. */
9360 #ifdef __cplusplus
9361 extern "C"
9362 #endif
9363 char lgetfilecon ();
9365 main ()
9367 return lgetfilecon ();
9369 return 0;
9371 _ACEOF
9372 if ac_fn_c_try_link "$LINENO"; then :
9373 ac_cv_lib_selinux_lgetfilecon=yes
9374 else
9375 ac_cv_lib_selinux_lgetfilecon=no
9377 rm -f core conftest.err conftest.$ac_objext \
9378 conftest$ac_exeext conftest.$ac_ext
9379 LIBS=$ac_check_lib_save_LIBS
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
9382 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
9383 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
9384 HAVE_LIBSELINUX=yes
9385 else
9386 HAVE_LIBSELINUX=no
9389 if test "$HAVE_LIBSELINUX" = yes; then
9391 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
9393 LIBSELINUX_LIBS=-lselinux
9398 HAVE_GNUTLS=no
9399 if test "${with_gnutls}" = "yes" ; then
9401 succeeded=no
9403 # Extract the first word of "pkg-config", so it can be a program name with args.
9404 set dummy pkg-config; ac_word=$2
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9406 $as_echo_n "checking for $ac_word... " >&6; }
9407 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9408 $as_echo_n "(cached) " >&6
9409 else
9410 case $PKG_CONFIG in
9411 [\\/]* | ?:[\\/]*)
9412 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9416 for as_dir in $PATH
9418 IFS=$as_save_IFS
9419 test -z "$as_dir" && as_dir=.
9420 for ac_exec_ext in '' $ac_executable_extensions; do
9421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9422 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9424 break 2
9426 done
9427 done
9428 IFS=$as_save_IFS
9430 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9432 esac
9434 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9435 if test -n "$PKG_CONFIG"; then
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9437 $as_echo "$PKG_CONFIG" >&6; }
9438 else
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9440 $as_echo "no" >&6; }
9445 if test "$PKG_CONFIG" = "no" ; then
9446 HAVE_GNUTLS=no
9447 else
9448 PKG_CONFIG_MIN_VERSION=0.9.0
9449 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
9451 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
9453 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9455 $as_echo "yes" >&6; }
9456 succeeded=yes
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
9459 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
9460 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
9462 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
9465 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
9466 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
9468 $as_echo "$LIBGNUTLS_LIBS" >&6; }
9469 else
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9471 $as_echo "no" >&6; }
9472 LIBGNUTLS_CFLAGS=""
9473 LIBGNUTLS_LIBS=""
9474 ## If we have a custom action on failure, don't print errors, but
9475 ## do set a variable so people can do so.
9476 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
9482 else
9483 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9484 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9488 if test $succeeded = yes; then
9489 HAVE_GNUTLS=yes
9490 else
9491 HAVE_GNUTLS=no
9494 if test "${HAVE_GNUTLS}" = "yes"; then
9496 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
9503 HAVE_XAW3D=no
9504 LUCID_LIBW=
9505 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
9506 if test "$with_xaw3d" != no; then
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
9508 $as_echo_n "checking for xaw3d... " >&6; }
9509 if test "${emacs_cv_xaw3d+set}" = set; then :
9510 $as_echo_n "(cached) " >&6
9511 else
9512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9513 /* end confdefs.h. */
9515 #include <X11/Intrinsic.h>
9516 #include <X11/Xaw3d/Simple.h>
9518 main ()
9522 return 0;
9524 _ACEOF
9525 if ac_fn_c_try_link "$LINENO"; then :
9526 emacs_cv_xaw3d=yes
9527 else
9528 emacs_cv_xaw3d=no
9530 rm -f core conftest.err conftest.$ac_objext \
9531 conftest$ac_exeext conftest.$ac_ext
9534 else
9535 emacs_cv_xaw3d=no
9537 if test $emacs_cv_xaw3d = yes; then
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9539 $as_echo "yes; using Lucid toolkit" >&6; }
9540 USE_X_TOOLKIT=LUCID
9541 HAVE_XAW3D=yes
9542 LUCID_LIBW=-lXaw3d
9544 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
9546 else
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9548 $as_echo "no" >&6; }
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
9550 $as_echo_n "checking for libXaw... " >&6; }
9551 if test "${emacs_cv_xaw+set}" = set; then :
9552 $as_echo_n "(cached) " >&6
9553 else
9554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h. */
9557 #include <X11/Intrinsic.h>
9558 #include <X11/Xaw/Simple.h>
9560 main ()
9564 return 0;
9566 _ACEOF
9567 if ac_fn_c_try_link "$LINENO"; then :
9568 emacs_cv_xaw=yes
9569 else
9570 emacs_cv_xaw=no
9572 rm -f core conftest.err conftest.$ac_objext \
9573 conftest$ac_exeext conftest.$ac_ext
9576 if test $emacs_cv_xaw = yes; then
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9578 $as_echo "yes; using Lucid toolkit" >&6; }
9579 USE_X_TOOLKIT=LUCID
9580 LUCID_LIBW=-lXaw
9581 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
9582 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
9583 else
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
9585 $as_echo "no; do not use toolkit by default" >&6; }
9586 USE_X_TOOLKIT=none
9591 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
9593 LIBXTR6=
9594 if test "${USE_X_TOOLKIT}" != "none"; then
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
9596 $as_echo_n "checking X11 toolkit version... " >&6; }
9597 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
9598 $as_echo_n "(cached) " >&6
9599 else
9600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601 /* end confdefs.h. */
9602 #include <X11/Intrinsic.h>
9604 main ()
9606 #if XtSpecificationRelease < 6
9607 fail;
9608 #endif
9611 return 0;
9613 _ACEOF
9614 if ac_fn_c_try_link "$LINENO"; then :
9615 emacs_cv_x11_toolkit_version_6=yes
9616 else
9617 emacs_cv_x11_toolkit_version_6=no
9619 rm -f core conftest.err conftest.$ac_objext \
9620 conftest$ac_exeext conftest.$ac_ext
9623 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
9624 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9626 $as_echo "6 or newer" >&6; }
9628 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
9630 LIBXTR6="-lSM -lICE"
9631 case "$opsys" in
9632 ## Use libw.a along with X11R6 Xt.
9633 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
9634 esac
9635 else
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9637 $as_echo "before 6" >&6; }
9640 OLDLIBS="$LIBS"
9641 if test x$HAVE_X11XTR6 = xyes; then
9642 LIBS="-lXt -lSM -lICE $LIBS"
9643 else
9644 LIBS="-lXt $LIBS"
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9647 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9648 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
9649 $as_echo_n "(cached) " >&6
9650 else
9651 ac_check_lib_save_LIBS=$LIBS
9652 LIBS="-lXmu $LIBS"
9653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654 /* end confdefs.h. */
9656 /* Override any GCC internal prototype to avoid an error.
9657 Use char because int might match the return type of a GCC
9658 builtin and then its argument prototype would still apply. */
9659 #ifdef __cplusplus
9660 extern "C"
9661 #endif
9662 char XmuConvertStandardSelection ();
9664 main ()
9666 return XmuConvertStandardSelection ();
9668 return 0;
9670 _ACEOF
9671 if ac_fn_c_try_link "$LINENO"; then :
9672 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
9673 else
9674 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
9676 rm -f core conftest.err conftest.$ac_objext \
9677 conftest$ac_exeext conftest.$ac_ext
9678 LIBS=$ac_check_lib_save_LIBS
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9681 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9682 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
9683 cat >>confdefs.h <<_ACEOF
9684 #define HAVE_LIBXMU 1
9685 _ACEOF
9687 LIBS="-lXmu $LIBS"
9691 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
9695 LIBXMU=-lXmu
9696 case $opsys in
9697 ## These systems don't supply Xmu.
9698 hpux* | aix4-2 )
9699 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
9701 esac
9704 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9705 if test "${HAVE_X11}" = "yes"; then
9706 if test "${USE_X_TOOLKIT}" != "none"; then
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9708 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9709 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
9710 $as_echo_n "(cached) " >&6
9711 else
9712 ac_check_lib_save_LIBS=$LIBS
9713 LIBS="-lXext $LIBS"
9714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715 /* end confdefs.h. */
9717 /* Override any GCC internal prototype to avoid an error.
9718 Use char because int might match the return type of a GCC
9719 builtin and then its argument prototype would still apply. */
9720 #ifdef __cplusplus
9721 extern "C"
9722 #endif
9723 char XShapeQueryExtension ();
9725 main ()
9727 return XShapeQueryExtension ();
9729 return 0;
9731 _ACEOF
9732 if ac_fn_c_try_link "$LINENO"; then :
9733 ac_cv_lib_Xext_XShapeQueryExtension=yes
9734 else
9735 ac_cv_lib_Xext_XShapeQueryExtension=no
9737 rm -f core conftest.err conftest.$ac_objext \
9738 conftest$ac_exeext conftest.$ac_ext
9739 LIBS=$ac_check_lib_save_LIBS
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9742 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9743 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
9744 cat >>confdefs.h <<_ACEOF
9745 #define HAVE_LIBXEXT 1
9746 _ACEOF
9748 LIBS="-lXext $LIBS"
9755 LIBXP=
9756 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9758 $as_echo_n "checking for Motif version 2.1... " >&6; }
9759 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
9760 $as_echo_n "(cached) " >&6
9761 else
9762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9763 /* end confdefs.h. */
9764 #include <Xm/Xm.h>
9766 main ()
9768 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9769 int x = 5;
9770 #else
9771 Motif version prior to 2.1.
9772 #endif
9774 return 0;
9776 _ACEOF
9777 if ac_fn_c_try_compile "$LINENO"; then :
9778 emacs_cv_motif_version_2_1=yes
9779 else
9780 emacs_cv_motif_version_2_1=no
9782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9785 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9786 if test $emacs_cv_motif_version_2_1 = yes; then
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9788 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9789 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
9790 $as_echo_n "(cached) " >&6
9791 else
9792 ac_check_lib_save_LIBS=$LIBS
9793 LIBS="-lXp $LIBS"
9794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9795 /* end confdefs.h. */
9797 /* Override any GCC internal prototype to avoid an error.
9798 Use char because int might match the return type of a GCC
9799 builtin and then its argument prototype would still apply. */
9800 #ifdef __cplusplus
9801 extern "C"
9802 #endif
9803 char XpCreateContext ();
9805 main ()
9807 return XpCreateContext ();
9809 return 0;
9811 _ACEOF
9812 if ac_fn_c_try_link "$LINENO"; then :
9813 ac_cv_lib_Xp_XpCreateContext=yes
9814 else
9815 ac_cv_lib_Xp_XpCreateContext=no
9817 rm -f core conftest.err conftest.$ac_objext \
9818 conftest$ac_exeext conftest.$ac_ext
9819 LIBS=$ac_check_lib_save_LIBS
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9822 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9823 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
9824 LIBXP=-lXp
9827 else
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9829 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9830 if test "${emacs_cv_lesstif+set}" = set; then :
9831 $as_echo_n "(cached) " >&6
9832 else
9833 # We put this in CFLAGS temporarily to precede other -I options
9834 # that might be in CFLAGS temporarily.
9835 # We put this in CPPFLAGS where it precedes the other -I options.
9836 OLD_CPPFLAGS=$CPPFLAGS
9837 OLD_CFLAGS=$CFLAGS
9838 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9839 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9841 /* end confdefs.h. */
9842 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9844 main ()
9846 int x = 5;
9848 return 0;
9850 _ACEOF
9851 if ac_fn_c_try_compile "$LINENO"; then :
9852 emacs_cv_lesstif=yes
9853 else
9854 emacs_cv_lesstif=no
9856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9859 $as_echo "$emacs_cv_lesstif" >&6; }
9860 if test $emacs_cv_lesstif = yes; then
9861 # Make sure this -I option remains in CPPFLAGS after it is set
9862 # back to REAL_CPPFLAGS.
9863 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9864 # have those other -I options anyway. Ultimately, having this
9865 # directory ultimately in CPPFLAGS will be enough.
9866 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9867 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9868 else
9869 CFLAGS=$OLD_CFLAGS
9870 CPPFLAGS=$OLD_CPPFLAGS
9876 USE_TOOLKIT_SCROLL_BARS=no
9877 if test "${with_toolkit_scroll_bars}" != "no"; then
9878 if test "${USE_X_TOOLKIT}" != "none"; then
9879 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9880 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9882 HAVE_XAW3D=no
9883 USE_TOOLKIT_SCROLL_BARS=yes
9884 elif test "${HAVE_XAW3D}" = "yes"; then
9885 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9887 USE_TOOLKIT_SCROLL_BARS=yes
9889 elif test "${HAVE_GTK}" = "yes"; then
9890 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9892 USE_TOOLKIT_SCROLL_BARS=yes
9893 elif test "${HAVE_NS}" = "yes"; then
9894 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9896 USE_TOOLKIT_SCROLL_BARS=yes
9900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9901 /* end confdefs.h. */
9903 #include <X11/Xlib.h>
9904 #include <X11/Xresource.h>
9906 main ()
9908 XIMProc callback;
9910 return 0;
9912 _ACEOF
9913 if ac_fn_c_try_compile "$LINENO"; then :
9914 HAVE_XIM=yes
9916 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9918 else
9919 HAVE_XIM=no
9921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9924 if test "${with_xim}" != "no"; then
9926 $as_echo "#define USE_XIM 1" >>confdefs.h
9931 if test "${HAVE_XIM}" != "no"; then
9932 late_CFLAGS=$CFLAGS
9933 if test "$GCC" = yes; then
9934 CFLAGS="$CFLAGS --pedantic-errors"
9936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9937 /* end confdefs.h. */
9939 #include <X11/Xlib.h>
9940 #include <X11/Xresource.h>
9942 main ()
9944 Display *display;
9945 XrmDatabase db;
9946 char *res_name;
9947 char *res_class;
9948 XIMProc callback;
9949 XPointer *client_data;
9950 #ifndef __GNUC__
9951 /* If we're not using GCC, it's probably not XFree86, and this is
9952 probably right, but we can't use something like --pedantic-errors. */
9953 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9954 char*, XIMProc, XPointer*);
9955 #endif
9956 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9957 client_data);
9959 return 0;
9961 _ACEOF
9962 if ac_fn_c_try_compile "$LINENO"; then :
9963 emacs_cv_arg6_star=yes
9965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9966 if test "$emacs_cv_arg6_star" = yes; then
9967 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9969 else
9970 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9973 CFLAGS=$late_CFLAGS
9976 ### Start of font-backend (under any platform) section.
9977 # (nothing here yet -- this is a placeholder)
9978 ### End of font-backend (under any platform) section.
9980 ### Start of font-backend (under X11) section.
9981 if test "${HAVE_X11}" = "yes"; then
9983 succeeded=no
9985 # Extract the first word of "pkg-config", so it can be a program name with args.
9986 set dummy pkg-config; ac_word=$2
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9988 $as_echo_n "checking for $ac_word... " >&6; }
9989 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9990 $as_echo_n "(cached) " >&6
9991 else
9992 case $PKG_CONFIG in
9993 [\\/]* | ?:[\\/]*)
9994 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9998 for as_dir in $PATH
10000 IFS=$as_save_IFS
10001 test -z "$as_dir" && as_dir=.
10002 for ac_exec_ext in '' $ac_executable_extensions; do
10003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10004 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10006 break 2
10008 done
10009 done
10010 IFS=$as_save_IFS
10012 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10014 esac
10016 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10017 if test -n "$PKG_CONFIG"; then
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10019 $as_echo "$PKG_CONFIG" >&6; }
10020 else
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10022 $as_echo "no" >&6; }
10027 if test "$PKG_CONFIG" = "no" ; then
10028 HAVE_FC=no
10029 else
10030 PKG_CONFIG_MIN_VERSION=0.9.0
10031 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
10033 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
10035 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10037 $as_echo "yes" >&6; }
10038 succeeded=yes
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
10041 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
10042 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
10044 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
10047 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
10048 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
10050 $as_echo "$FONTCONFIG_LIBS" >&6; }
10051 else
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10053 $as_echo "no" >&6; }
10054 FONTCONFIG_CFLAGS=""
10055 FONTCONFIG_LIBS=""
10056 ## If we have a custom action on failure, don't print errors, but
10057 ## do set a variable so people can do so.
10058 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
10064 else
10065 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10066 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10070 if test $succeeded = yes; then
10071 HAVE_FC=yes
10072 else
10073 HAVE_FC=no
10077 ## Use -lXft if available, unless `--with-xft=no'.
10078 HAVE_XFT=maybe
10079 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
10080 with_xft="no";
10082 if test "x${with_xft}" != "xno"; then
10085 succeeded=no
10087 # Extract the first word of "pkg-config", so it can be a program name with args.
10088 set dummy pkg-config; ac_word=$2
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10090 $as_echo_n "checking for $ac_word... " >&6; }
10091 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10092 $as_echo_n "(cached) " >&6
10093 else
10094 case $PKG_CONFIG in
10095 [\\/]* | ?:[\\/]*)
10096 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10100 for as_dir in $PATH
10102 IFS=$as_save_IFS
10103 test -z "$as_dir" && as_dir=.
10104 for ac_exec_ext in '' $ac_executable_extensions; do
10105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10106 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10108 break 2
10110 done
10111 done
10112 IFS=$as_save_IFS
10114 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10116 esac
10118 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10119 if test -n "$PKG_CONFIG"; then
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10121 $as_echo "$PKG_CONFIG" >&6; }
10122 else
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10124 $as_echo "no" >&6; }
10129 if test "$PKG_CONFIG" = "no" ; then
10130 HAVE_XFT=no
10131 else
10132 PKG_CONFIG_MIN_VERSION=0.9.0
10133 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
10135 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
10137 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10139 $as_echo "yes" >&6; }
10140 succeeded=yes
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
10143 $as_echo_n "checking XFT_CFLAGS... " >&6; }
10144 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
10146 $as_echo "$XFT_CFLAGS" >&6; }
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
10149 $as_echo_n "checking XFT_LIBS... " >&6; }
10150 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
10152 $as_echo "$XFT_LIBS" >&6; }
10153 else
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10155 $as_echo "no" >&6; }
10156 XFT_CFLAGS=""
10157 XFT_LIBS=""
10158 ## If we have a custom action on failure, don't print errors, but
10159 ## do set a variable so people can do so.
10160 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
10166 else
10167 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10168 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10172 if test $succeeded = yes; then
10174 else
10175 HAVE_XFT=no
10178 ## Because xftfont.c uses XRenderQueryExtension, we also
10179 ## need to link to -lXrender.
10180 HAVE_XRENDER=no
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
10182 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
10183 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
10184 $as_echo_n "(cached) " >&6
10185 else
10186 ac_check_lib_save_LIBS=$LIBS
10187 LIBS="-lXrender $LIBS"
10188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10189 /* end confdefs.h. */
10191 /* Override any GCC internal prototype to avoid an error.
10192 Use char because int might match the return type of a GCC
10193 builtin and then its argument prototype would still apply. */
10194 #ifdef __cplusplus
10195 extern "C"
10196 #endif
10197 char XRenderQueryExtension ();
10199 main ()
10201 return XRenderQueryExtension ();
10203 return 0;
10205 _ACEOF
10206 if ac_fn_c_try_link "$LINENO"; then :
10207 ac_cv_lib_Xrender_XRenderQueryExtension=yes
10208 else
10209 ac_cv_lib_Xrender_XRenderQueryExtension=no
10211 rm -f core conftest.err conftest.$ac_objext \
10212 conftest$ac_exeext conftest.$ac_ext
10213 LIBS=$ac_check_lib_save_LIBS
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
10216 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
10217 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
10218 HAVE_XRENDER=yes
10221 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
10222 OLD_CPPFLAGS="$CPPFLAGS"
10223 OLD_CFLAGS="$CFLAGS"
10224 OLD_LIBS="$LIBS"
10225 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
10226 CFLAGS="$CFLAGS $XFT_CFLAGS"
10227 XFT_LIBS="-lXrender $XFT_LIBS"
10228 LIBS="$XFT_LIBS $LIBS"
10229 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
10230 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
10232 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
10233 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
10234 $as_echo_n "(cached) " >&6
10235 else
10236 ac_check_lib_save_LIBS=$LIBS
10237 LIBS="-lXft $XFT_LIBS $LIBS"
10238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10239 /* end confdefs.h. */
10241 /* Override any GCC internal prototype to avoid an error.
10242 Use char because int might match the return type of a GCC
10243 builtin and then its argument prototype would still apply. */
10244 #ifdef __cplusplus
10245 extern "C"
10246 #endif
10247 char XftFontOpen ();
10249 main ()
10251 return XftFontOpen ();
10253 return 0;
10255 _ACEOF
10256 if ac_fn_c_try_link "$LINENO"; then :
10257 ac_cv_lib_Xft_XftFontOpen=yes
10258 else
10259 ac_cv_lib_Xft_XftFontOpen=no
10261 rm -f core conftest.err conftest.$ac_objext \
10262 conftest$ac_exeext conftest.$ac_ext
10263 LIBS=$ac_check_lib_save_LIBS
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
10266 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
10267 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
10268 HAVE_XFT=yes
10275 if test "${HAVE_XFT}" = "yes"; then
10277 $as_echo "#define HAVE_XFT 1" >>confdefs.h
10280 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
10281 else
10282 CPPFLAGS="$OLD_CPPFLAGS"
10283 CFLAGS="$OLD_CFLAGS"
10284 LIBS="$OLD_LIBS"
10285 fi # "${HAVE_XFT}" = "yes"
10286 fi # "$HAVE_XFT" != no
10287 fi # "x${with_xft}" != "xno"
10289 if test "$HAVE_XFT" != "yes"; then
10290 HAVE_XFT=no
10294 HAVE_FREETYPE=no
10295 ## We used to allow building with FreeType and without Xft.
10296 ## However, the ftx font backend driver is not in good shape.
10297 if test "${HAVE_XFT}" = "yes"; then
10298 HAVE_FREETYPE=yes
10299 FONTCONFIG_CFLAGS=
10300 FONTCONFIG_LIBS=
10303 HAVE_LIBOTF=no
10304 if test "${HAVE_FREETYPE}" = "yes"; then
10306 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10308 if test "${with_libotf}" != "no"; then
10310 succeeded=no
10312 # Extract the first word of "pkg-config", so it can be a program name with args.
10313 set dummy pkg-config; ac_word=$2
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10315 $as_echo_n "checking for $ac_word... " >&6; }
10316 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10317 $as_echo_n "(cached) " >&6
10318 else
10319 case $PKG_CONFIG in
10320 [\\/]* | ?:[\\/]*)
10321 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10325 for as_dir in $PATH
10327 IFS=$as_save_IFS
10328 test -z "$as_dir" && as_dir=.
10329 for ac_exec_ext in '' $ac_executable_extensions; do
10330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10331 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10333 break 2
10335 done
10336 done
10337 IFS=$as_save_IFS
10339 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10341 esac
10343 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10344 if test -n "$PKG_CONFIG"; then
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10346 $as_echo "$PKG_CONFIG" >&6; }
10347 else
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10349 $as_echo "no" >&6; }
10354 if test "$PKG_CONFIG" = "no" ; then
10355 HAVE_LIBOTF=no
10356 else
10357 PKG_CONFIG_MIN_VERSION=0.9.0
10358 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
10360 $as_echo_n "checking for libotf... " >&6; }
10362 if $PKG_CONFIG --exists "libotf" 2>&5; then
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10364 $as_echo "yes" >&6; }
10365 succeeded=yes
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
10368 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
10369 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
10371 $as_echo "$LIBOTF_CFLAGS" >&6; }
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
10374 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
10375 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
10377 $as_echo "$LIBOTF_LIBS" >&6; }
10378 else
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10380 $as_echo "no" >&6; }
10381 LIBOTF_CFLAGS=""
10382 LIBOTF_LIBS=""
10383 ## If we have a custom action on failure, don't print errors, but
10384 ## do set a variable so people can do so.
10385 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
10391 else
10392 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10393 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10397 if test $succeeded = yes; then
10398 HAVE_LIBOTF=yes
10399 else
10400 HAVE_LIBOTF=no
10403 if test "$HAVE_LIBOTF" = "yes"; then
10405 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
10408 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
10409 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
10410 $as_echo_n "(cached) " >&6
10411 else
10412 ac_check_lib_save_LIBS=$LIBS
10413 LIBS="-lotf $LIBS"
10414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10415 /* end confdefs.h. */
10417 /* Override any GCC internal prototype to avoid an error.
10418 Use char because int might match the return type of a GCC
10419 builtin and then its argument prototype would still apply. */
10420 #ifdef __cplusplus
10421 extern "C"
10422 #endif
10423 char OTF_get_variation_glyphs ();
10425 main ()
10427 return OTF_get_variation_glyphs ();
10429 return 0;
10431 _ACEOF
10432 if ac_fn_c_try_link "$LINENO"; then :
10433 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
10434 else
10435 ac_cv_lib_otf_OTF_get_variation_glyphs=no
10437 rm -f core conftest.err conftest.$ac_objext \
10438 conftest$ac_exeext conftest.$ac_ext
10439 LIBS=$ac_check_lib_save_LIBS
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
10442 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
10443 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
10444 HAVE_OTF_GET_VARIATION_GLYPHS=yes
10445 else
10446 HAVE_OTF_GET_VARIATION_GLYPHS=no
10449 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
10451 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
10458 HAVE_M17N_FLT=no
10459 if test "${HAVE_LIBOTF}" = yes; then
10460 if test "${with_m17n_flt}" != "no"; then
10462 succeeded=no
10464 # Extract the first word of "pkg-config", so it can be a program name with args.
10465 set dummy pkg-config; ac_word=$2
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10467 $as_echo_n "checking for $ac_word... " >&6; }
10468 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10469 $as_echo_n "(cached) " >&6
10470 else
10471 case $PKG_CONFIG in
10472 [\\/]* | ?:[\\/]*)
10473 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10477 for as_dir in $PATH
10479 IFS=$as_save_IFS
10480 test -z "$as_dir" && as_dir=.
10481 for ac_exec_ext in '' $ac_executable_extensions; do
10482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10483 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10485 break 2
10487 done
10488 done
10489 IFS=$as_save_IFS
10491 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10493 esac
10495 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10496 if test -n "$PKG_CONFIG"; then
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10498 $as_echo "$PKG_CONFIG" >&6; }
10499 else
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10501 $as_echo "no" >&6; }
10506 if test "$PKG_CONFIG" = "no" ; then
10507 HAVE_M17N_FLT=no
10508 else
10509 PKG_CONFIG_MIN_VERSION=0.9.0
10510 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
10512 $as_echo_n "checking for m17n-flt... " >&6; }
10514 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10516 $as_echo "yes" >&6; }
10517 succeeded=yes
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
10520 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
10521 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
10523 $as_echo "$M17N_FLT_CFLAGS" >&6; }
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
10526 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
10527 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
10529 $as_echo "$M17N_FLT_LIBS" >&6; }
10530 else
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10532 $as_echo "no" >&6; }
10533 M17N_FLT_CFLAGS=""
10534 M17N_FLT_LIBS=""
10535 ## If we have a custom action on failure, don't print errors, but
10536 ## do set a variable so people can do so.
10537 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
10543 else
10544 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10545 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10549 if test $succeeded = yes; then
10550 HAVE_M17N_FLT=yes
10551 else
10552 HAVE_M17N_FLT=no
10555 if test "$HAVE_M17N_FLT" = "yes"; then
10557 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
10562 else
10563 HAVE_XFT=no
10564 HAVE_FREETYPE=no
10565 HAVE_LIBOTF=no
10566 HAVE_M17N_FLT=no
10569 ### End of font-backend (under X11) section.
10580 ### Use -lXpm if available, unless `--with-xpm=no'.
10581 HAVE_XPM=no
10582 LIBXPM=
10583 if test "${HAVE_X11}" = "yes"; then
10584 if test "${with_xpm}" != "no"; then
10585 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
10586 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
10588 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
10589 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
10590 $as_echo_n "(cached) " >&6
10591 else
10592 ac_check_lib_save_LIBS=$LIBS
10593 LIBS="-lXpm -lX11 $LIBS"
10594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10595 /* end confdefs.h. */
10597 /* Override any GCC internal prototype to avoid an error.
10598 Use char because int might match the return type of a GCC
10599 builtin and then its argument prototype would still apply. */
10600 #ifdef __cplusplus
10601 extern "C"
10602 #endif
10603 char XpmReadFileToPixmap ();
10605 main ()
10607 return XpmReadFileToPixmap ();
10609 return 0;
10611 _ACEOF
10612 if ac_fn_c_try_link "$LINENO"; then :
10613 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10614 else
10615 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10617 rm -f core conftest.err conftest.$ac_objext \
10618 conftest$ac_exeext conftest.$ac_ext
10619 LIBS=$ac_check_lib_save_LIBS
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10622 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10623 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
10624 HAVE_XPM=yes
10630 if test "${HAVE_XPM}" = "yes"; then
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
10632 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
10633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10634 /* end confdefs.h. */
10635 #include "X11/xpm.h"
10636 #ifndef XpmReturnAllocPixels
10637 no_return_alloc_pixels
10638 #endif
10640 _ACEOF
10641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10642 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
10643 HAVE_XPM=no
10644 else
10645 HAVE_XPM=yes
10647 rm -f conftest*
10650 if test "${HAVE_XPM}" = "yes"; then
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10652 $as_echo "yes" >&6; }
10653 else
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10655 $as_echo "no" >&6; }
10660 if test "${HAVE_XPM}" = "yes"; then
10662 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10664 LIBXPM=-lXpm
10669 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10670 HAVE_JPEG=no
10671 LIBJPEG=
10672 if test "${HAVE_X11}" = "yes"; then
10673 if test "${with_jpeg}" != "no"; then
10674 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10675 if test "x$ac_cv_header_jerror_h" = x""yes; then :
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10677 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10678 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
10679 $as_echo_n "(cached) " >&6
10680 else
10681 ac_check_lib_save_LIBS=$LIBS
10682 LIBS="-ljpeg $LIBS"
10683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10684 /* end confdefs.h. */
10686 /* Override any GCC internal prototype to avoid an error.
10687 Use char because int might match the return type of a GCC
10688 builtin and then its argument prototype would still apply. */
10689 #ifdef __cplusplus
10690 extern "C"
10691 #endif
10692 char jpeg_destroy_compress ();
10694 main ()
10696 return jpeg_destroy_compress ();
10698 return 0;
10700 _ACEOF
10701 if ac_fn_c_try_link "$LINENO"; then :
10702 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
10703 else
10704 ac_cv_lib_jpeg_jpeg_destroy_compress=no
10706 rm -f core conftest.err conftest.$ac_objext \
10707 conftest$ac_exeext conftest.$ac_ext
10708 LIBS=$ac_check_lib_save_LIBS
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10711 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10712 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
10713 HAVE_JPEG=yes
10721 if test "${HAVE_JPEG}" = "yes"; then
10722 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10725 /* end confdefs.h. */
10726 #include <jpeglib.h>
10727 version=JPEG_LIB_VERSION
10729 _ACEOF
10730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10731 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
10732 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10734 else
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10736 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10737 HAVE_JPEG=no
10739 rm -f conftest*
10742 if test "${HAVE_JPEG}" = "yes"; then
10743 LIBJPEG=-ljpeg
10748 ### Use -lpng if available, unless `--with-png=no'.
10749 HAVE_PNG=no
10750 LIBPNG=
10751 if test "${HAVE_X11}" = "yes"; then
10752 if test "${with_png}" != "no"; then
10753 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10754 # in /usr/include/libpng.
10755 for ac_header in png.h libpng/png.h
10756 do :
10757 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10758 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10759 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10760 cat >>confdefs.h <<_ACEOF
10761 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10762 _ACEOF
10766 done
10768 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10770 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10771 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
10772 $as_echo_n "(cached) " >&6
10773 else
10774 ac_check_lib_save_LIBS=$LIBS
10775 LIBS="-lpng -lz -lm $LIBS"
10776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777 /* end confdefs.h. */
10779 /* Override any GCC internal prototype to avoid an error.
10780 Use char because int might match the return type of a GCC
10781 builtin and then its argument prototype would still apply. */
10782 #ifdef __cplusplus
10783 extern "C"
10784 #endif
10785 char png_get_channels ();
10787 main ()
10789 return png_get_channels ();
10791 return 0;
10793 _ACEOF
10794 if ac_fn_c_try_link "$LINENO"; then :
10795 ac_cv_lib_png_png_get_channels=yes
10796 else
10797 ac_cv_lib_png_png_get_channels=no
10799 rm -f core conftest.err conftest.$ac_objext \
10800 conftest$ac_exeext conftest.$ac_ext
10801 LIBS=$ac_check_lib_save_LIBS
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10804 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10805 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
10806 HAVE_PNG=yes
10812 if test "${HAVE_PNG}" = "yes"; then
10814 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10816 LIBPNG="-lpng -lz -lm"
10821 ### Use -ltiff if available, unless `--with-tiff=no'.
10822 HAVE_TIFF=no
10823 LIBTIFF=
10824 if test "${HAVE_X11}" = "yes"; then
10825 if test "${with_tiff}" != "no"; then
10826 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10827 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
10828 tifflibs="-lz -lm"
10829 # At least one tiff package requires the jpeg library.
10830 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10832 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10833 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10834 $as_echo_n "(cached) " >&6
10835 else
10836 ac_check_lib_save_LIBS=$LIBS
10837 LIBS="-ltiff $tifflibs $LIBS"
10838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10839 /* end confdefs.h. */
10841 /* Override any GCC internal prototype to avoid an error.
10842 Use char because int might match the return type of a GCC
10843 builtin and then its argument prototype would still apply. */
10844 #ifdef __cplusplus
10845 extern "C"
10846 #endif
10847 char TIFFGetVersion ();
10849 main ()
10851 return TIFFGetVersion ();
10853 return 0;
10855 _ACEOF
10856 if ac_fn_c_try_link "$LINENO"; then :
10857 ac_cv_lib_tiff_TIFFGetVersion=yes
10858 else
10859 ac_cv_lib_tiff_TIFFGetVersion=no
10861 rm -f core conftest.err conftest.$ac_objext \
10862 conftest$ac_exeext conftest.$ac_ext
10863 LIBS=$ac_check_lib_save_LIBS
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10866 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10867 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
10868 HAVE_TIFF=yes
10876 if test "${HAVE_TIFF}" = "yes"; then
10878 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10880 LIBTIFF=-ltiff
10885 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10886 HAVE_GIF=no
10887 LIBGIF=
10888 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10889 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10890 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
10891 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10892 # Earlier versions can crash Emacs.
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10894 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10895 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10896 $as_echo_n "(cached) " >&6
10897 else
10898 ac_check_lib_save_LIBS=$LIBS
10899 LIBS="-lgif $LIBS"
10900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10901 /* end confdefs.h. */
10903 /* Override any GCC internal prototype to avoid an error.
10904 Use char because int might match the return type of a GCC
10905 builtin and then its argument prototype would still apply. */
10906 #ifdef __cplusplus
10907 extern "C"
10908 #endif
10909 char EGifPutExtensionLast ();
10911 main ()
10913 return EGifPutExtensionLast ();
10915 return 0;
10917 _ACEOF
10918 if ac_fn_c_try_link "$LINENO"; then :
10919 ac_cv_lib_gif_EGifPutExtensionLast=yes
10920 else
10921 ac_cv_lib_gif_EGifPutExtensionLast=no
10923 rm -f core conftest.err conftest.$ac_objext \
10924 conftest$ac_exeext conftest.$ac_ext
10925 LIBS=$ac_check_lib_save_LIBS
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10928 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10929 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
10930 HAVE_GIF=yes
10931 else
10932 HAVE_GIF=maybe
10939 if test "$HAVE_GIF" = yes; then
10940 LIBGIF=-lgif
10941 elif test "$HAVE_GIF" = maybe; then
10942 # If gif_lib.h but no libgif, try libungif.
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10944 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10945 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10946 $as_echo_n "(cached) " >&6
10947 else
10948 ac_check_lib_save_LIBS=$LIBS
10949 LIBS="-lungif $LIBS"
10950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10951 /* end confdefs.h. */
10953 /* Override any GCC internal prototype to avoid an error.
10954 Use char because int might match the return type of a GCC
10955 builtin and then its argument prototype would still apply. */
10956 #ifdef __cplusplus
10957 extern "C"
10958 #endif
10959 char EGifPutExtensionLast ();
10961 main ()
10963 return EGifPutExtensionLast ();
10965 return 0;
10967 _ACEOF
10968 if ac_fn_c_try_link "$LINENO"; then :
10969 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10970 else
10971 ac_cv_lib_ungif_EGifPutExtensionLast=no
10973 rm -f core conftest.err conftest.$ac_objext \
10974 conftest$ac_exeext conftest.$ac_ext
10975 LIBS=$ac_check_lib_save_LIBS
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10978 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10979 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
10980 HAVE_GIF=yes
10981 else
10982 HAVE_GIF=no
10985 test "$HAVE_GIF" = yes && LIBGIF=-lungif
10988 if test "${HAVE_GIF}" = "yes"; then
10990 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10996 if test "${HAVE_X11}" = "yes"; then
10997 MISSING=""
10998 WITH_NO=""
10999 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
11000 MISSING="libXpm" && WITH_NO="--with-xpm=no"
11001 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
11002 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
11003 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
11004 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
11005 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
11006 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
11007 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
11008 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
11010 if test "X${MISSING}" != X; then
11011 as_fn_error $? "The following required libraries were not found:
11012 $MISSING
11013 Maybe some development libraries/packages are missing?
11014 If you don't want to link with them give
11015 $WITH_NO
11016 as options to configure" "$LINENO" 5
11020 ### Use -lgpm if available, unless `--with-gpm=no'.
11021 HAVE_GPM=no
11022 LIBGPM=
11023 MOUSE_SUPPORT=
11024 if test "${with_gpm}" != "no"; then
11025 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
11026 if test "x$ac_cv_header_gpm_h" = x""yes; then :
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
11028 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
11029 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
11030 $as_echo_n "(cached) " >&6
11031 else
11032 ac_check_lib_save_LIBS=$LIBS
11033 LIBS="-lgpm $LIBS"
11034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11035 /* end confdefs.h. */
11037 /* Override any GCC internal prototype to avoid an error.
11038 Use char because int might match the return type of a GCC
11039 builtin and then its argument prototype would still apply. */
11040 #ifdef __cplusplus
11041 extern "C"
11042 #endif
11043 char Gpm_Open ();
11045 main ()
11047 return Gpm_Open ();
11049 return 0;
11051 _ACEOF
11052 if ac_fn_c_try_link "$LINENO"; then :
11053 ac_cv_lib_gpm_Gpm_Open=yes
11054 else
11055 ac_cv_lib_gpm_Gpm_Open=no
11057 rm -f core conftest.err conftest.$ac_objext \
11058 conftest$ac_exeext conftest.$ac_ext
11059 LIBS=$ac_check_lib_save_LIBS
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
11062 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
11063 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
11064 HAVE_GPM=yes
11071 if test "${HAVE_GPM}" = "yes"; then
11073 $as_echo "#define HAVE_GPM 1" >>confdefs.h
11075 LIBGPM=-lgpm
11076 ## May be reset below.
11077 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
11082 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
11083 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
11085 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
11091 C_SWITCH_X_SYSTEM=
11092 ### Use NeXTstep API to implement GUI.
11093 if test "${HAVE_NS}" = "yes"; then
11095 $as_echo "#define HAVE_NS 1" >>confdefs.h
11097 if test "${NS_IMPL_COCOA}" = "yes"; then
11099 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
11101 GNU_OBJC_CFLAGS=
11103 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
11105 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
11107 # See also .m.o rule in Makefile.in */
11108 # FIXME: are all these flags really needed? Document here why. */
11109 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
11110 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
11112 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
11114 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
11117 # We also have mouse menus.
11118 HAVE_MENUS=yes
11119 OTHER_FILES=ns-app
11123 ### Use session management (-lSM -lICE) if available
11124 HAVE_X_SM=no
11125 LIBXSM=
11126 if test "${HAVE_X11}" = "yes"; then
11127 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
11128 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
11130 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
11131 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
11132 $as_echo_n "(cached) " >&6
11133 else
11134 ac_check_lib_save_LIBS=$LIBS
11135 LIBS="-lSM -lICE $LIBS"
11136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11137 /* end confdefs.h. */
11139 /* Override any GCC internal prototype to avoid an error.
11140 Use char because int might match the return type of a GCC
11141 builtin and then its argument prototype would still apply. */
11142 #ifdef __cplusplus
11143 extern "C"
11144 #endif
11145 char SmcOpenConnection ();
11147 main ()
11149 return SmcOpenConnection ();
11151 return 0;
11153 _ACEOF
11154 if ac_fn_c_try_link "$LINENO"; then :
11155 ac_cv_lib_SM_SmcOpenConnection=yes
11156 else
11157 ac_cv_lib_SM_SmcOpenConnection=no
11159 rm -f core conftest.err conftest.$ac_objext \
11160 conftest$ac_exeext conftest.$ac_ext
11161 LIBS=$ac_check_lib_save_LIBS
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
11164 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
11165 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
11166 HAVE_X_SM=yes
11173 if test "${HAVE_X_SM}" = "yes"; then
11175 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
11177 LIBXSM="-lSM -lICE"
11178 case "$LIBS" in
11179 *-lSM*) ;;
11180 *) LIBS="$LIBXSM $LIBS" ;;
11181 esac
11186 ### Use libxml (-lxml2) if available
11187 if test "${with_xml2}" != "no"; then
11188 ### I'm not sure what the version number should be, so I just guessed.
11190 succeeded=no
11192 # Extract the first word of "pkg-config", so it can be a program name with args.
11193 set dummy pkg-config; ac_word=$2
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11195 $as_echo_n "checking for $ac_word... " >&6; }
11196 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11197 $as_echo_n "(cached) " >&6
11198 else
11199 case $PKG_CONFIG in
11200 [\\/]* | ?:[\\/]*)
11201 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11205 for as_dir in $PATH
11207 IFS=$as_save_IFS
11208 test -z "$as_dir" && as_dir=.
11209 for ac_exec_ext in '' $ac_executable_extensions; do
11210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11211 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11213 break 2
11215 done
11216 done
11217 IFS=$as_save_IFS
11219 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11221 esac
11223 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11224 if test -n "$PKG_CONFIG"; then
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11226 $as_echo "$PKG_CONFIG" >&6; }
11227 else
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11229 $as_echo "no" >&6; }
11234 if test "$PKG_CONFIG" = "no" ; then
11235 HAVE_LIBXML2=no
11236 else
11237 PKG_CONFIG_MIN_VERSION=0.9.0
11238 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.2.0" >&5
11240 $as_echo_n "checking for libxml-2.0 > 2.2.0... " >&6; }
11242 if $PKG_CONFIG --exists "libxml-2.0 > 2.2.0" 2>&5; then
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11244 $as_echo "yes" >&6; }
11245 succeeded=yes
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
11248 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
11249 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
11251 $as_echo "$LIBXML2_CFLAGS" >&6; }
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
11254 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
11255 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
11257 $as_echo "$LIBXML2_LIBS" >&6; }
11258 else
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11260 $as_echo "no" >&6; }
11261 LIBXML2_CFLAGS=""
11262 LIBXML2_LIBS=""
11263 ## If we have a custom action on failure, don't print errors, but
11264 ## do set a variable so people can do so.
11265 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.2.0"`
11271 else
11272 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11273 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11277 if test $succeeded = yes; then
11278 HAVE_LIBXML2=yes
11279 else
11280 HAVE_LIBXML2=no
11283 if test "${HAVE_LIBXML2}" = "yes"; then
11284 LIBS="$LIBXML2_LIBS $LIBS"
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
11286 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
11287 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
11288 $as_echo_n "(cached) " >&6
11289 else
11290 ac_check_lib_save_LIBS=$LIBS
11291 LIBS="-lxml2 $LIBS"
11292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11293 /* end confdefs.h. */
11295 /* Override any GCC internal prototype to avoid an error.
11296 Use char because int might match the return type of a GCC
11297 builtin and then its argument prototype would still apply. */
11298 #ifdef __cplusplus
11299 extern "C"
11300 #endif
11301 char htmlReadMemory ();
11303 main ()
11305 return htmlReadMemory ();
11307 return 0;
11309 _ACEOF
11310 if ac_fn_c_try_link "$LINENO"; then :
11311 ac_cv_lib_xml2_htmlReadMemory=yes
11312 else
11313 ac_cv_lib_xml2_htmlReadMemory=no
11315 rm -f core conftest.err conftest.$ac_objext \
11316 conftest$ac_exeext conftest.$ac_ext
11317 LIBS=$ac_check_lib_save_LIBS
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
11320 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
11321 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
11322 HAVE_LIBXML2=yes
11323 else
11324 HAVE_LIBXML2=no
11327 if test "${HAVE_LIBXML2}" = "yes"; then
11329 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
11331 else
11332 LIBXML2_LIBS=""
11333 LIBXML2_CFLAGS=""
11340 # If netdb.h doesn't declare h_errno, we must declare it by hand.
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
11342 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
11343 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
11344 $as_echo_n "(cached) " >&6
11345 else
11346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11347 /* end confdefs.h. */
11348 #include <netdb.h>
11350 main ()
11352 return h_errno;
11354 return 0;
11356 _ACEOF
11357 if ac_fn_c_try_link "$LINENO"; then :
11358 emacs_cv_netdb_declares_h_errno=yes
11359 else
11360 emacs_cv_netdb_declares_h_errno=no
11362 rm -f core conftest.err conftest.$ac_objext \
11363 conftest$ac_exeext conftest.$ac_ext
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
11366 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
11367 if test $emacs_cv_netdb_declares_h_errno = yes; then
11369 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
11373 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11374 # for constant arguments. Useless!
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11376 $as_echo_n "checking for working alloca.h... " >&6; }
11377 if test "${ac_cv_working_alloca_h+set}" = set; then :
11378 $as_echo_n "(cached) " >&6
11379 else
11380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h. */
11382 #include <alloca.h>
11384 main ()
11386 char *p = (char *) alloca (2 * sizeof (int));
11387 if (p) return 0;
11389 return 0;
11391 _ACEOF
11392 if ac_fn_c_try_link "$LINENO"; then :
11393 ac_cv_working_alloca_h=yes
11394 else
11395 ac_cv_working_alloca_h=no
11397 rm -f core conftest.err conftest.$ac_objext \
11398 conftest$ac_exeext conftest.$ac_ext
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11401 $as_echo "$ac_cv_working_alloca_h" >&6; }
11402 if test $ac_cv_working_alloca_h = yes; then
11404 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11409 $as_echo_n "checking for alloca... " >&6; }
11410 if test "${ac_cv_func_alloca_works+set}" = set; then :
11411 $as_echo_n "(cached) " >&6
11412 else
11413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11414 /* end confdefs.h. */
11415 #ifdef __GNUC__
11416 # define alloca __builtin_alloca
11417 #else
11418 # ifdef _MSC_VER
11419 # include <malloc.h>
11420 # define alloca _alloca
11421 # else
11422 # ifdef HAVE_ALLOCA_H
11423 # include <alloca.h>
11424 # else
11425 # ifdef _AIX
11426 #pragma alloca
11427 # else
11428 # ifndef alloca /* predefined by HP cc +Olibcalls */
11429 char *alloca ();
11430 # endif
11431 # endif
11432 # endif
11433 # endif
11434 #endif
11437 main ()
11439 char *p = (char *) alloca (1);
11440 if (p) return 0;
11442 return 0;
11444 _ACEOF
11445 if ac_fn_c_try_link "$LINENO"; then :
11446 ac_cv_func_alloca_works=yes
11447 else
11448 ac_cv_func_alloca_works=no
11450 rm -f core conftest.err conftest.$ac_objext \
11451 conftest$ac_exeext conftest.$ac_ext
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11454 $as_echo "$ac_cv_func_alloca_works" >&6; }
11456 if test $ac_cv_func_alloca_works = yes; then
11458 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11460 else
11461 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11462 # that cause trouble. Some versions do not even contain alloca or
11463 # contain a buggy version. If you still want to use their alloca,
11464 # use ar to extract alloca.o from them instead of compiling alloca.c.
11466 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11468 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11472 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11473 if test "${ac_cv_os_cray+set}" = set; then :
11474 $as_echo_n "(cached) " >&6
11475 else
11476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11477 /* end confdefs.h. */
11478 #if defined CRAY && ! defined CRAY2
11479 webecray
11480 #else
11481 wenotbecray
11482 #endif
11484 _ACEOF
11485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11486 $EGREP "webecray" >/dev/null 2>&1; then :
11487 ac_cv_os_cray=yes
11488 else
11489 ac_cv_os_cray=no
11491 rm -f conftest*
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11495 $as_echo "$ac_cv_os_cray" >&6; }
11496 if test $ac_cv_os_cray = yes; then
11497 for ac_func in _getb67 GETB67 getb67; do
11498 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11499 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11500 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11502 cat >>confdefs.h <<_ACEOF
11503 #define CRAY_STACKSEG_END $ac_func
11504 _ACEOF
11506 break
11509 done
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11513 $as_echo_n "checking stack direction for C alloca... " >&6; }
11514 if test "${ac_cv_c_stack_direction+set}" = set; then :
11515 $as_echo_n "(cached) " >&6
11516 else
11517 if test "$cross_compiling" = yes; then :
11518 ac_cv_c_stack_direction=0
11519 else
11520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11521 /* end confdefs.h. */
11522 $ac_includes_default
11524 find_stack_direction ()
11526 static char *addr = 0;
11527 auto char dummy;
11528 if (addr == 0)
11530 addr = &dummy;
11531 return find_stack_direction ();
11533 else
11534 return (&dummy > addr) ? 1 : -1;
11538 main ()
11540 return find_stack_direction () < 0;
11542 _ACEOF
11543 if ac_fn_c_try_run "$LINENO"; then :
11544 ac_cv_c_stack_direction=1
11545 else
11546 ac_cv_c_stack_direction=-1
11548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11549 conftest.$ac_objext conftest.beam conftest.$ac_ext
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11554 $as_echo "$ac_cv_c_stack_direction" >&6; }
11555 cat >>confdefs.h <<_ACEOF
11556 #define STACK_DIRECTION $ac_cv_c_stack_direction
11557 _ACEOF
11563 if test x"$ac_cv_func_alloca_works" != xyes; then
11564 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
11567 # fmod, logb, and frexp are found in -lm on most systems.
11568 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
11570 $as_echo_n "checking for sqrt in -lm... " >&6; }
11571 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
11572 $as_echo_n "(cached) " >&6
11573 else
11574 ac_check_lib_save_LIBS=$LIBS
11575 LIBS="-lm $LIBS"
11576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11577 /* end confdefs.h. */
11579 /* Override any GCC internal prototype to avoid an error.
11580 Use char because int might match the return type of a GCC
11581 builtin and then its argument prototype would still apply. */
11582 #ifdef __cplusplus
11583 extern "C"
11584 #endif
11585 char sqrt ();
11587 main ()
11589 return sqrt ();
11591 return 0;
11593 _ACEOF
11594 if ac_fn_c_try_link "$LINENO"; then :
11595 ac_cv_lib_m_sqrt=yes
11596 else
11597 ac_cv_lib_m_sqrt=no
11599 rm -f core conftest.err conftest.$ac_objext \
11600 conftest$ac_exeext conftest.$ac_ext
11601 LIBS=$ac_check_lib_save_LIBS
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
11604 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
11605 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
11606 cat >>confdefs.h <<_ACEOF
11607 #define HAVE_LIBM 1
11608 _ACEOF
11610 LIBS="-lm $LIBS"
11615 # Check for mail-locking functions in a "mail" library. Probably this should
11616 # have the same check as for liblockfile below.
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
11618 $as_echo_n "checking for maillock in -lmail... " >&6; }
11619 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
11620 $as_echo_n "(cached) " >&6
11621 else
11622 ac_check_lib_save_LIBS=$LIBS
11623 LIBS="-lmail $LIBS"
11624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11625 /* end confdefs.h. */
11627 /* Override any GCC internal prototype to avoid an error.
11628 Use char because int might match the return type of a GCC
11629 builtin and then its argument prototype would still apply. */
11630 #ifdef __cplusplus
11631 extern "C"
11632 #endif
11633 char maillock ();
11635 main ()
11637 return maillock ();
11639 return 0;
11641 _ACEOF
11642 if ac_fn_c_try_link "$LINENO"; then :
11643 ac_cv_lib_mail_maillock=yes
11644 else
11645 ac_cv_lib_mail_maillock=no
11647 rm -f core conftest.err conftest.$ac_objext \
11648 conftest$ac_exeext conftest.$ac_ext
11649 LIBS=$ac_check_lib_save_LIBS
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
11652 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
11653 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
11654 have_mail=yes
11655 else
11656 have_mail=no
11659 if test $have_mail = yes; then
11660 LIBS_MAIL=-lmail
11661 LIBS="$LIBS_MAIL $LIBS"
11663 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
11665 else
11666 LIBS_MAIL=
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
11669 $as_echo_n "checking for maillock in -llockfile... " >&6; }
11670 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
11671 $as_echo_n "(cached) " >&6
11672 else
11673 ac_check_lib_save_LIBS=$LIBS
11674 LIBS="-llockfile $LIBS"
11675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11676 /* end confdefs.h. */
11678 /* Override any GCC internal prototype to avoid an error.
11679 Use char because int might match the return type of a GCC
11680 builtin and then its argument prototype would still apply. */
11681 #ifdef __cplusplus
11682 extern "C"
11683 #endif
11684 char maillock ();
11686 main ()
11688 return maillock ();
11690 return 0;
11692 _ACEOF
11693 if ac_fn_c_try_link "$LINENO"; then :
11694 ac_cv_lib_lockfile_maillock=yes
11695 else
11696 ac_cv_lib_lockfile_maillock=no
11698 rm -f core conftest.err conftest.$ac_objext \
11699 conftest$ac_exeext conftest.$ac_ext
11700 LIBS=$ac_check_lib_save_LIBS
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
11703 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
11704 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
11705 have_lockfile=yes
11706 else
11707 have_lockfile=no
11710 if test $have_lockfile = yes; then
11711 LIBS_MAIL=-llockfile
11712 LIBS="$LIBS_MAIL $LIBS"
11714 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
11716 else
11717 # If we have the shared liblockfile, assume we must use it for mail
11718 # locking (e.g. Debian). If we couldn't link against liblockfile
11719 # (no liblockfile.a installed), ensure that we don't need to.
11720 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11721 set dummy liblockfile.so; ac_word=$2
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11723 $as_echo_n "checking for $ac_word... " >&6; }
11724 if test "${ac_cv_prog_liblockfile+set}" = set; then :
11725 $as_echo_n "(cached) " >&6
11726 else
11727 if test -n "$liblockfile"; then
11728 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
11729 else
11730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11731 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11732 for as_dir in $as_dummy
11734 IFS=$as_save_IFS
11735 test -z "$as_dir" && as_dir=.
11736 for ac_exec_ext in '' $ac_executable_extensions; do
11737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11738 ac_cv_prog_liblockfile="yes"
11739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11740 break 2
11742 done
11743 done
11744 IFS=$as_save_IFS
11746 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
11749 liblockfile=$ac_cv_prog_liblockfile
11750 if test -n "$liblockfile"; then
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
11752 $as_echo "$liblockfile" >&6; }
11753 else
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755 $as_echo "no" >&6; }
11759 if test $ac_cv_prog_liblockfile = yes; then
11760 as_fn_error $? "Shared liblockfile found but can't link against it.
11761 This probably means that movemail could lose mail.
11762 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
11765 for ac_func in touchlock
11766 do :
11767 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
11768 if test "x$ac_cv_func_touchlock" = x""yes; then :
11769 cat >>confdefs.h <<_ACEOF
11770 #define HAVE_TOUCHLOCK 1
11771 _ACEOF
11774 done
11776 for ac_header in maillock.h
11777 do :
11778 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
11779 if test "x$ac_cv_header_maillock_h" = x""yes; then :
11780 cat >>confdefs.h <<_ACEOF
11781 #define HAVE_MAILLOCK_H 1
11782 _ACEOF
11786 done
11790 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
11791 ## interlock access to the mail spool. The alternative is a lock file named
11792 ## /usr/spool/mail/$USER.lock.
11793 mail_lock=no
11794 case "$opsys" in
11795 aix4-2) mail_lock="lockf" ;;
11797 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
11799 ## On GNU/Linux systems, both methods are used by various mail programs.
11800 ## I assume most people are using newer mailers that have heard of flock.
11801 ## Change this if you need to.
11802 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11803 ## configure gets the right answers, and that means *NOT* using flock.
11804 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11805 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11806 ## Debian maintainer hasn't provided a clean fix for Emacs.
11807 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11808 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11809 ## correct logic. -- fx
11810 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11811 ## liblockfile is a Free Software replacement for libmail, used on
11812 ## Debian systems and elsewhere. -rfr.
11813 gnu-*)
11814 mail_lock="flock"
11815 if test $have_mail = yes || test $have_lockfile = yes; then
11816 test $ac_cv_header_maillock_h = yes && mail_lock=no
11819 esac
11821 BLESSMAIL_TARGET=
11822 case "$mail_lock" in
11823 flock)
11824 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11827 lockf)
11828 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11831 *) BLESSMAIL_TARGET="need-blessmail" ;;
11832 esac
11836 for ac_func in gethostname getdomainname dup2 \
11837 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
11838 random lrand48 logb frexp fmod rint cbrt ftime setsid \
11839 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11840 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11841 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
11842 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11843 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
11844 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11845 cfmakeraw cfsetspeed isnan copysign __executable_start
11846 do :
11847 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11848 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11849 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11850 cat >>confdefs.h <<_ACEOF
11851 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11852 _ACEOF
11855 done
11858 for ac_header in sys/un.h
11859 do :
11860 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11861 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
11862 cat >>confdefs.h <<_ACEOF
11863 #define HAVE_SYS_UN_H 1
11864 _ACEOF
11868 done
11876 for ac_func in $ac_func_list
11877 do :
11878 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11879 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11880 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11881 cat >>confdefs.h <<_ACEOF
11882 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11883 _ACEOF
11886 done
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11893 $as_echo_n "checking for working mktime... " >&6; }
11894 if test "${ac_cv_func_working_mktime+set}" = set; then :
11895 $as_echo_n "(cached) " >&6
11896 else
11897 if test "$cross_compiling" = yes; then :
11898 ac_cv_func_working_mktime=no
11899 else
11900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11901 /* end confdefs.h. */
11902 /* Test program from Paul Eggert and Tony Leneis. */
11903 #ifdef TIME_WITH_SYS_TIME
11904 # include <sys/time.h>
11905 # include <time.h>
11906 #else
11907 # ifdef HAVE_SYS_TIME_H
11908 # include <sys/time.h>
11909 # else
11910 # include <time.h>
11911 # endif
11912 #endif
11914 #include <limits.h>
11915 #include <stdlib.h>
11917 #ifdef HAVE_UNISTD_H
11918 # include <unistd.h>
11919 #endif
11921 #ifndef HAVE_ALARM
11922 # define alarm(X) /* empty */
11923 #endif
11925 /* Work around redefinition to rpl_putenv by other config tests. */
11926 #undef putenv
11928 static time_t time_t_max;
11929 static time_t time_t_min;
11931 /* Values we'll use to set the TZ environment variable. */
11932 static const char *tz_strings[] = {
11933 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11934 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11936 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11938 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11939 Based on a problem report from Andreas Jaeger. */
11940 static int
11941 spring_forward_gap ()
11943 /* glibc (up to about 1998-10-07) failed this test. */
11944 struct tm tm;
11946 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11947 instead of "TZ=America/Vancouver" in order to detect the bug even
11948 on systems that don't support the Olson extension, or don't have the
11949 full zoneinfo tables installed. */
11950 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
11952 tm.tm_year = 98;
11953 tm.tm_mon = 3;
11954 tm.tm_mday = 5;
11955 tm.tm_hour = 2;
11956 tm.tm_min = 0;
11957 tm.tm_sec = 0;
11958 tm.tm_isdst = -1;
11959 return mktime (&tm) != (time_t) -1;
11962 static int
11963 mktime_test1 (time_t now)
11965 struct tm *lt;
11966 return ! (lt = localtime (&now)) || mktime (lt) == now;
11969 static int
11970 mktime_test (time_t now)
11972 return (mktime_test1 (now)
11973 && mktime_test1 ((time_t) (time_t_max - now))
11974 && mktime_test1 ((time_t) (time_t_min + now)));
11977 static int
11978 irix_6_4_bug ()
11980 /* Based on code from Ariel Faigon. */
11981 struct tm tm;
11982 tm.tm_year = 96;
11983 tm.tm_mon = 3;
11984 tm.tm_mday = 0;
11985 tm.tm_hour = 0;
11986 tm.tm_min = 0;
11987 tm.tm_sec = 0;
11988 tm.tm_isdst = -1;
11989 mktime (&tm);
11990 return tm.tm_mon == 2 && tm.tm_mday == 31;
11993 static int
11994 bigtime_test (int j)
11996 struct tm tm;
11997 time_t now;
11998 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11999 now = mktime (&tm);
12000 if (now != (time_t) -1)
12002 struct tm *lt = localtime (&now);
12003 if (! (lt
12004 && lt->tm_year == tm.tm_year
12005 && lt->tm_mon == tm.tm_mon
12006 && lt->tm_mday == tm.tm_mday
12007 && lt->tm_hour == tm.tm_hour
12008 && lt->tm_min == tm.tm_min
12009 && lt->tm_sec == tm.tm_sec
12010 && lt->tm_yday == tm.tm_yday
12011 && lt->tm_wday == tm.tm_wday
12012 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12013 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12014 return 0;
12016 return 1;
12019 static int
12020 year_2050_test ()
12022 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
12023 ignoring leap seconds. */
12024 unsigned long int answer = 2527315200UL;
12026 struct tm tm;
12027 time_t t;
12028 tm.tm_year = 2050 - 1900;
12029 tm.tm_mon = 2 - 1;
12030 tm.tm_mday = 1;
12031 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
12032 tm.tm_isdst = -1;
12034 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12035 instead of "TZ=America/Vancouver" in order to detect the bug even
12036 on systems that don't support the Olson extension, or don't have the
12037 full zoneinfo tables installed. */
12038 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
12040 t = mktime (&tm);
12042 /* Check that the result is either a failure, or close enough
12043 to the correct answer that we can assume the discrepancy is
12044 due to leap seconds. */
12045 return (t == (time_t) -1
12046 || (0 < t && answer - 120 <= t && t <= answer + 120));
12050 main ()
12052 time_t t, delta;
12053 int i, j;
12055 /* This test makes some buggy mktime implementations loop.
12056 Give up after 60 seconds; a mktime slower than that
12057 isn't worth using anyway. */
12058 alarm (60);
12060 for (;;)
12062 t = (time_t_max << 1) + 1;
12063 if (t <= time_t_max)
12064 break;
12065 time_t_max = t;
12067 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
12069 delta = time_t_max / 997; /* a suitable prime number */
12070 for (i = 0; i < N_STRINGS; i++)
12072 if (tz_strings[i])
12073 putenv ((char*) tz_strings[i]);
12075 for (t = 0; t <= time_t_max - delta; t += delta)
12076 if (! mktime_test (t))
12077 return 1;
12078 if (! (mktime_test ((time_t) 1)
12079 && mktime_test ((time_t) (60 * 60))
12080 && mktime_test ((time_t) (60 * 60 * 24))))
12081 return 1;
12083 for (j = 1; ; j <<= 1)
12084 if (! bigtime_test (j))
12085 return 1;
12086 else if (INT_MAX / 2 < j)
12087 break;
12088 if (! bigtime_test (INT_MAX))
12089 return 1;
12091 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
12093 _ACEOF
12094 if ac_fn_c_try_run "$LINENO"; then :
12095 ac_cv_func_working_mktime=yes
12096 else
12097 ac_cv_func_working_mktime=no
12099 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12100 conftest.$ac_objext conftest.beam conftest.$ac_ext
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
12105 $as_echo "$ac_cv_func_working_mktime" >&6; }
12106 if test $ac_cv_func_working_mktime = no; then
12107 case " $LIBOBJS " in
12108 *" mktime.$ac_objext "* ) ;;
12109 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
12111 esac
12115 if test "$ac_cv_func_working_mktime" = no; then
12117 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
12121 ac_have_func=no # yes means we've found a way to get the load average.
12123 # Make sure getloadavg.c is where it belongs, at configure-time.
12124 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12125 as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
12127 ac_save_LIBS=$LIBS
12129 # Check for getloadavg, but be sure not to touch the cache variable.
12130 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12131 if test "x$ac_cv_func_getloadavg" = x""yes; then :
12132 exit 0
12133 else
12134 exit 1
12136 ) && ac_have_func=yes
12138 # On HPUX9, an unprivileged user can get load averages through this function.
12139 for ac_func in pstat_getdynamic
12140 do :
12141 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
12142 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
12143 cat >>confdefs.h <<_ACEOF
12144 #define HAVE_PSTAT_GETDYNAMIC 1
12145 _ACEOF
12148 done
12151 # Solaris has libkstat which does not require root.
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12153 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12154 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
12155 $as_echo_n "(cached) " >&6
12156 else
12157 ac_check_lib_save_LIBS=$LIBS
12158 LIBS="-lkstat $LIBS"
12159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12160 /* end confdefs.h. */
12162 /* Override any GCC internal prototype to avoid an error.
12163 Use char because int might match the return type of a GCC
12164 builtin and then its argument prototype would still apply. */
12165 #ifdef __cplusplus
12166 extern "C"
12167 #endif
12168 char kstat_open ();
12170 main ()
12172 return kstat_open ();
12174 return 0;
12176 _ACEOF
12177 if ac_fn_c_try_link "$LINENO"; then :
12178 ac_cv_lib_kstat_kstat_open=yes
12179 else
12180 ac_cv_lib_kstat_kstat_open=no
12182 rm -f core conftest.err conftest.$ac_objext \
12183 conftest$ac_exeext conftest.$ac_ext
12184 LIBS=$ac_check_lib_save_LIBS
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12187 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12188 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
12189 cat >>confdefs.h <<_ACEOF
12190 #define HAVE_LIBKSTAT 1
12191 _ACEOF
12193 LIBS="-lkstat $LIBS"
12197 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12199 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12200 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12201 # to get the right answer into the cache.
12202 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12203 if test $ac_have_func = no; then
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
12205 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
12206 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
12207 $as_echo_n "(cached) " >&6
12208 else
12209 ac_check_lib_save_LIBS=$LIBS
12210 LIBS="-lelf $LIBS"
12211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12212 /* end confdefs.h. */
12214 /* Override any GCC internal prototype to avoid an error.
12215 Use char because int might match the return type of a GCC
12216 builtin and then its argument prototype would still apply. */
12217 #ifdef __cplusplus
12218 extern "C"
12219 #endif
12220 char elf_begin ();
12222 main ()
12224 return elf_begin ();
12226 return 0;
12228 _ACEOF
12229 if ac_fn_c_try_link "$LINENO"; then :
12230 ac_cv_lib_elf_elf_begin=yes
12231 else
12232 ac_cv_lib_elf_elf_begin=no
12234 rm -f core conftest.err conftest.$ac_objext \
12235 conftest$ac_exeext conftest.$ac_ext
12236 LIBS=$ac_check_lib_save_LIBS
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
12239 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
12240 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
12241 LIBS="-lelf $LIBS"
12245 if test $ac_have_func = no; then
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
12247 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
12248 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
12249 $as_echo_n "(cached) " >&6
12250 else
12251 ac_check_lib_save_LIBS=$LIBS
12252 LIBS="-lkvm $LIBS"
12253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12254 /* end confdefs.h. */
12256 /* Override any GCC internal prototype to avoid an error.
12257 Use char because int might match the return type of a GCC
12258 builtin and then its argument prototype would still apply. */
12259 #ifdef __cplusplus
12260 extern "C"
12261 #endif
12262 char kvm_open ();
12264 main ()
12266 return kvm_open ();
12268 return 0;
12270 _ACEOF
12271 if ac_fn_c_try_link "$LINENO"; then :
12272 ac_cv_lib_kvm_kvm_open=yes
12273 else
12274 ac_cv_lib_kvm_kvm_open=no
12276 rm -f core conftest.err conftest.$ac_objext \
12277 conftest$ac_exeext conftest.$ac_ext
12278 LIBS=$ac_check_lib_save_LIBS
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
12281 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
12282 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
12283 LIBS="-lkvm $LIBS"
12286 # Check for the 4.4BSD definition of getloadavg.
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
12288 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
12289 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
12290 $as_echo_n "(cached) " >&6
12291 else
12292 ac_check_lib_save_LIBS=$LIBS
12293 LIBS="-lutil $LIBS"
12294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12295 /* end confdefs.h. */
12297 /* Override any GCC internal prototype to avoid an error.
12298 Use char because int might match the return type of a GCC
12299 builtin and then its argument prototype would still apply. */
12300 #ifdef __cplusplus
12301 extern "C"
12302 #endif
12303 char getloadavg ();
12305 main ()
12307 return getloadavg ();
12309 return 0;
12311 _ACEOF
12312 if ac_fn_c_try_link "$LINENO"; then :
12313 ac_cv_lib_util_getloadavg=yes
12314 else
12315 ac_cv_lib_util_getloadavg=no
12317 rm -f core conftest.err conftest.$ac_objext \
12318 conftest$ac_exeext conftest.$ac_ext
12319 LIBS=$ac_check_lib_save_LIBS
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
12322 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
12323 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
12324 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12329 if test $ac_have_func = no; then
12330 # There is a commonly available library for RS/6000 AIX.
12331 # Since it is not a standard part of AIX, it might be installed locally.
12332 ac_getloadavg_LIBS=$LIBS
12333 LIBS="-L/usr/local/lib $LIBS"
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
12335 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
12336 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
12337 $as_echo_n "(cached) " >&6
12338 else
12339 ac_check_lib_save_LIBS=$LIBS
12340 LIBS="-lgetloadavg $LIBS"
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h. */
12344 /* Override any GCC internal prototype to avoid an error.
12345 Use char because int might match the return type of a GCC
12346 builtin and then its argument prototype would still apply. */
12347 #ifdef __cplusplus
12348 extern "C"
12349 #endif
12350 char getloadavg ();
12352 main ()
12354 return getloadavg ();
12356 return 0;
12358 _ACEOF
12359 if ac_fn_c_try_link "$LINENO"; then :
12360 ac_cv_lib_getloadavg_getloadavg=yes
12361 else
12362 ac_cv_lib_getloadavg_getloadavg=no
12364 rm -f core conftest.err conftest.$ac_objext \
12365 conftest$ac_exeext conftest.$ac_ext
12366 LIBS=$ac_check_lib_save_LIBS
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12369 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
12370 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
12371 LIBS="-lgetloadavg $LIBS"
12372 else
12373 LIBS=$ac_getloadavg_LIBS
12378 # Make sure it is really in the library, if we think we found it,
12379 # otherwise set up the replacement function.
12380 for ac_func in getloadavg
12381 do :
12382 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12383 if test "x$ac_cv_func_getloadavg" = x""yes; then :
12384 cat >>confdefs.h <<_ACEOF
12385 #define HAVE_GETLOADAVG 1
12386 _ACEOF
12388 else
12389 case " $LIBOBJS " in
12390 *" getloadavg.$ac_objext "* ) ;;
12391 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
12393 esac
12396 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
12398 # Figure out what our getloadavg.c needs.
12399 ac_have_func=no
12400 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
12401 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
12402 ac_have_func=yes
12404 $as_echo "#define DGUX 1" >>confdefs.h
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
12407 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
12408 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
12409 $as_echo_n "(cached) " >&6
12410 else
12411 ac_check_lib_save_LIBS=$LIBS
12412 LIBS="-ldgc $LIBS"
12413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12414 /* end confdefs.h. */
12416 /* Override any GCC internal prototype to avoid an error.
12417 Use char because int might match the return type of a GCC
12418 builtin and then its argument prototype would still apply. */
12419 #ifdef __cplusplus
12420 extern "C"
12421 #endif
12422 char dg_sys_info ();
12424 main ()
12426 return dg_sys_info ();
12428 return 0;
12430 _ACEOF
12431 if ac_fn_c_try_link "$LINENO"; then :
12432 ac_cv_lib_dgc_dg_sys_info=yes
12433 else
12434 ac_cv_lib_dgc_dg_sys_info=no
12436 rm -f core conftest.err conftest.$ac_objext \
12437 conftest$ac_exeext conftest.$ac_ext
12438 LIBS=$ac_check_lib_save_LIBS
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12441 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
12442 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
12443 cat >>confdefs.h <<_ACEOF
12444 #define HAVE_LIBDGC 1
12445 _ACEOF
12447 LIBS="-ldgc $LIBS"
12455 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
12456 if test "x$ac_cv_header_locale_h" = x""yes; then :
12461 for ac_func in setlocale
12462 do :
12463 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
12464 if test "x$ac_cv_func_setlocale" = x""yes; then :
12465 cat >>confdefs.h <<_ACEOF
12466 #define HAVE_SETLOCALE 1
12467 _ACEOF
12470 done
12473 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12474 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12475 # Irix 4.0.5F has the header but not the library.
12476 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
12477 ac_have_func=yes
12479 $as_echo "#define SVR4 1" >>confdefs.h
12483 if test $ac_have_func = no; then
12484 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
12485 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
12486 ac_have_func=yes
12488 $as_echo "#define UMAX 1" >>confdefs.h
12491 $as_echo "#define UMAX4_3 1" >>confdefs.h
12498 if test $ac_have_func = no; then
12499 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
12500 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
12501 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
12508 if test $ac_have_func = no; then
12509 for ac_header in mach/mach.h
12510 do :
12511 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
12512 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
12513 cat >>confdefs.h <<_ACEOF
12514 #define HAVE_MACH_MACH_H 1
12515 _ACEOF
12519 done
12523 for ac_header in nlist.h
12524 do :
12525 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
12526 if test "x$ac_cv_header_nlist_h" = x""yes; then :
12527 cat >>confdefs.h <<_ACEOF
12528 #define HAVE_NLIST_H 1
12529 _ACEOF
12530 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
12532 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
12534 cat >>confdefs.h <<_ACEOF
12535 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12536 _ACEOF
12539 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
12546 done
12549 done
12552 # Some definitions of getloadavg require that the program be installed setgid.
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
12554 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
12555 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
12556 $as_echo_n "(cached) " >&6
12557 else
12558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h. */
12560 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
12561 #ifdef LDAV_PRIVILEGED
12562 Yowza Am I SETGID yet
12563 #endif
12564 _ACEOF
12565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12566 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
12567 ac_cv_func_getloadavg_setgid=yes
12568 else
12569 ac_cv_func_getloadavg_setgid=no
12571 rm -f conftest*
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
12575 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
12576 if test $ac_cv_func_getloadavg_setgid = yes; then
12577 NEED_SETGID=true
12579 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
12581 else
12582 NEED_SETGID=false
12585 if test $ac_cv_func_getloadavg_setgid = yes; then
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
12587 $as_echo_n "checking group of /dev/kmem... " >&6; }
12588 if test "${ac_cv_group_kmem+set}" = set; then :
12589 $as_echo_n "(cached) " >&6
12590 else
12591 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12592 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
12593 # If we got an error (system does not support symlinks), try without -L.
12594 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
12595 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
12596 | sed -ne 's/[ ][ ]*/ /g;
12597 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12598 / /s/.* //;p;'`
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
12602 $as_echo "$ac_cv_group_kmem" >&6; }
12603 KMEM_GROUP=$ac_cv_group_kmem
12605 if test "x$ac_save_LIBS" = x; then
12606 GETLOADAVG_LIBS=$LIBS
12607 else
12608 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
12610 LIBS=$ac_save_LIBS
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12615 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12616 if test "${ac_cv_sys_largefile_source+set}" = set; then :
12617 $as_echo_n "(cached) " >&6
12618 else
12619 while :; do
12620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621 /* end confdefs.h. */
12622 #include <sys/types.h> /* for off_t */
12623 #include <stdio.h>
12625 main ()
12627 int (*fp) (FILE *, off_t, int) = fseeko;
12628 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12630 return 0;
12632 _ACEOF
12633 if ac_fn_c_try_link "$LINENO"; then :
12634 ac_cv_sys_largefile_source=no; break
12636 rm -f core conftest.err conftest.$ac_objext \
12637 conftest$ac_exeext conftest.$ac_ext
12638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12639 /* end confdefs.h. */
12640 #define _LARGEFILE_SOURCE 1
12641 #include <sys/types.h> /* for off_t */
12642 #include <stdio.h>
12644 main ()
12646 int (*fp) (FILE *, off_t, int) = fseeko;
12647 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12649 return 0;
12651 _ACEOF
12652 if ac_fn_c_try_link "$LINENO"; then :
12653 ac_cv_sys_largefile_source=1; break
12655 rm -f core conftest.err conftest.$ac_objext \
12656 conftest$ac_exeext conftest.$ac_ext
12657 ac_cv_sys_largefile_source=unknown
12658 break
12659 done
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12662 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12663 case $ac_cv_sys_largefile_source in #(
12664 no | unknown) ;;
12666 cat >>confdefs.h <<_ACEOF
12667 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12668 _ACEOF
12670 esac
12671 rm -rf conftest*
12673 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12674 # in glibc 2.1.3, but that breaks too many other things.
12675 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12676 if test $ac_cv_sys_largefile_source != unknown; then
12678 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12683 # Configure getopt.
12684 # getopt.m4 serial 10
12686 # The getopt module assume you want GNU getopt, with getopt_long etc,
12687 # rather than vanilla POSIX getopt. This means your your code should
12688 # always include <getopt.h> for the getopt prototypes.
12700 # Prerequisites of lib/getopt*.
12705 GETOPT_H=
12706 for ac_header in getopt.h
12707 do :
12708 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12709 if test "x$ac_cv_header_getopt_h" = x""yes; then :
12710 cat >>confdefs.h <<_ACEOF
12711 #define HAVE_GETOPT_H 1
12712 _ACEOF
12714 else
12715 GETOPT_H=getopt.h
12718 done
12720 if test -z "$GETOPT_H"; then
12721 for ac_func in getopt_long_only
12722 do :
12723 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
12724 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
12725 cat >>confdefs.h <<_ACEOF
12726 #define HAVE_GETOPT_LONG_ONLY 1
12727 _ACEOF
12729 else
12730 GETOPT_H=getopt.h
12732 done
12736 if test -z "$GETOPT_H"; then
12737 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
12739 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
12740 GETOPT_H=getopt.h
12745 if test -z "$GETOPT_H"; then
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
12747 $as_echo_n "checking for working GNU getopt function... " >&6; }
12748 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
12749 $as_echo_n "(cached) " >&6
12750 else
12751 if test "$cross_compiling" = yes; then :
12752 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
12754 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
12755 gl_cv_func_gnu_getopt=no
12756 else
12757 gl_cv_func_gnu_getopt=yes
12760 else
12761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12762 /* end confdefs.h. */
12763 #include <getopt.h>
12765 main ()
12768 char *myargv[3];
12769 myargv[0] = "conftest";
12770 myargv[1] = "-+";
12771 myargv[2] = 0;
12772 return getopt (2, myargv, "+a") != '?';
12775 return 0;
12777 _ACEOF
12778 if ac_fn_c_try_run "$LINENO"; then :
12779 gl_cv_func_gnu_getopt=yes
12780 else
12781 gl_cv_func_gnu_getopt=no
12783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12784 conftest.$ac_objext conftest.beam conftest.$ac_ext
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
12789 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
12790 if test "$gl_cv_func_gnu_getopt" = "no"; then
12791 GETOPT_H=getopt.h
12797 if test -n "$GETOPT_H"; then :
12800 GETOPT_H=getopt.h
12802 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12807 GETOPTOBJS='getopt.o getopt1.o'
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12814 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12815 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
12816 $as_echo_n "(cached) " >&6
12817 else
12818 # Use it with a single arg.
12819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12820 /* end confdefs.h. */
12821 $ac_includes_default
12823 main ()
12825 getpgrp (0);
12827 return 0;
12829 _ACEOF
12830 if ac_fn_c_try_compile "$LINENO"; then :
12831 ac_cv_func_getpgrp_void=no
12832 else
12833 ac_cv_func_getpgrp_void=yes
12835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12839 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12840 if test $ac_cv_func_getpgrp_void = yes; then
12842 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12847 for ac_func in strftime
12848 do :
12849 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12850 if test "x$ac_cv_func_strftime" = x""yes; then :
12851 cat >>confdefs.h <<_ACEOF
12852 #define HAVE_STRFTIME 1
12853 _ACEOF
12855 else
12856 # strftime is in -lintl on SCO UNIX.
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12858 $as_echo_n "checking for strftime in -lintl... " >&6; }
12859 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12860 $as_echo_n "(cached) " >&6
12861 else
12862 ac_check_lib_save_LIBS=$LIBS
12863 LIBS="-lintl $LIBS"
12864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12865 /* end confdefs.h. */
12867 /* Override any GCC internal prototype to avoid an error.
12868 Use char because int might match the return type of a GCC
12869 builtin and then its argument prototype would still apply. */
12870 #ifdef __cplusplus
12871 extern "C"
12872 #endif
12873 char strftime ();
12875 main ()
12877 return strftime ();
12879 return 0;
12881 _ACEOF
12882 if ac_fn_c_try_link "$LINENO"; then :
12883 ac_cv_lib_intl_strftime=yes
12884 else
12885 ac_cv_lib_intl_strftime=no
12887 rm -f core conftest.err conftest.$ac_objext \
12888 conftest$ac_exeext conftest.$ac_ext
12889 LIBS=$ac_check_lib_save_LIBS
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12892 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12893 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12894 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12896 LIBS="-lintl $LIBS"
12900 done
12903 # UNIX98 PTYs.
12904 for ac_func in grantpt
12905 do :
12906 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
12907 if test "x$ac_cv_func_grantpt" = x""yes; then :
12908 cat >>confdefs.h <<_ACEOF
12909 #define HAVE_GRANTPT 1
12910 _ACEOF
12913 done
12916 # PTY-related GNU extensions.
12917 for ac_func in getpt
12918 do :
12919 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
12920 if test "x$ac_cv_func_getpt" = x""yes; then :
12921 cat >>confdefs.h <<_ACEOF
12922 #define HAVE_GETPT 1
12923 _ACEOF
12926 done
12929 # Check this now, so that we will NOT find the above functions in ncurses.
12930 # That is because we have not set up to link ncurses in lib-src.
12931 # It's better to believe a function is not available
12932 # than to expect to find it in ncurses.
12933 # Also we need tputs and friends to be able to build at all.
12934 have_tputs_et_al=true
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12936 $as_echo_n "checking for library containing tputs... " >&6; }
12937 if test "${ac_cv_search_tputs+set}" = set; then :
12938 $as_echo_n "(cached) " >&6
12939 else
12940 ac_func_search_save_LIBS=$LIBS
12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12942 /* end confdefs.h. */
12944 /* Override any GCC internal prototype to avoid an error.
12945 Use char because int might match the return type of a GCC
12946 builtin and then its argument prototype would still apply. */
12947 #ifdef __cplusplus
12948 extern "C"
12949 #endif
12950 char tputs ();
12952 main ()
12954 return tputs ();
12956 return 0;
12958 _ACEOF
12959 for ac_lib in '' ncurses terminfo termcap; do
12960 if test -z "$ac_lib"; then
12961 ac_res="none required"
12962 else
12963 ac_res=-l$ac_lib
12964 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12966 if ac_fn_c_try_link "$LINENO"; then :
12967 ac_cv_search_tputs=$ac_res
12969 rm -f core conftest.err conftest.$ac_objext \
12970 conftest$ac_exeext
12971 if test "${ac_cv_search_tputs+set}" = set; then :
12972 break
12974 done
12975 if test "${ac_cv_search_tputs+set}" = set; then :
12977 else
12978 ac_cv_search_tputs=no
12980 rm conftest.$ac_ext
12981 LIBS=$ac_func_search_save_LIBS
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
12984 $as_echo "$ac_cv_search_tputs" >&6; }
12985 ac_res=$ac_cv_search_tputs
12986 if test "$ac_res" != no; then :
12987 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12989 else
12990 have_tputs_et_al=false
12993 if test "$have_tputs_et_al" != true; then
12994 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
12995 Maybe some development libraries/packages are missing? Try installing
12996 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
12998 # Must define this when any termcap library is found.
13000 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
13002 ## FIXME This was the cpp logic, but I am not sure it is right.
13003 ## The above test has not necessarily found libncurses.
13004 HAVE_LIBNCURSES=yes
13006 ## Use terminfo instead of termcap?
13007 ## Note only system files NOT using terminfo are:
13008 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
13009 ## darwin|gnu without ncurses.
13010 TERMINFO=no
13011 LIBS_TERMCAP=
13012 case "$opsys" in
13013 ## cygwin: Fewer environment variables to go wrong, more terminal types.
13014 ## hpux10-20: Use the system provided termcap(3) library.
13015 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
13016 ## is necessary. Otherwise Emacs dumps core when run -nw.
13017 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
13019 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13020 ## The ncurses library has been moved out of the System framework in
13021 ## Mac OS X 10.2. So if configure detects it, set the command-line
13022 ## option to use it.
13023 darwin|gnu*)
13024 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
13025 if test "x$HAVE_LIBNCURSES" = "xyes"; then
13026 TERMINFO=yes
13027 LIBS_TERMCAP="-lncurses"
13031 freebsd)
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13033 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13034 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13035 $as_echo_n "(cached) " >&6
13036 else
13037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13038 /* end confdefs.h. */
13039 #include <osreldate.h>
13041 main ()
13043 #if __FreeBSD_version < 400000
13044 fail;
13045 #endif
13048 return 0;
13050 _ACEOF
13051 if ac_fn_c_try_link "$LINENO"; then :
13052 emacs_cv_freebsd_terminfo=yes
13053 else
13054 emacs_cv_freebsd_terminfo=no
13056 rm -f core conftest.err conftest.$ac_objext \
13057 conftest$ac_exeext conftest.$ac_ext
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13062 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13064 if test $emacs_cv_freebsd_terminfo = yes; then
13065 TERMINFO=yes
13066 LIBS_TERMCAP="-lncurses"
13067 else
13068 LIBS_TERMCAP="-ltermcap"
13072 netbsd)
13073 if test $ac_cv_search_tputs = -lterminfo; then
13074 TERMINFO=yes
13075 LIBS_TERMCAP="-lterminfo"
13076 else
13077 LIBS_TERMCAP="-ltermcap"
13081 esac
13083 case "$opsys" in
13084 ## hpux: Make sure we get select from libc rather than from libcurses
13085 ## because libcurses on HPUX 10.10 has a broken version of select.
13086 ## We used to use -lc -lcurses, but this may be cleaner.
13087 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13089 openbsd) LIBS_TERMCAP="-lncurses" ;;
13091 ## Must use system termcap, if we use any termcap. It does special things.
13092 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
13093 esac
13095 TERMCAP_OBJ=tparam.o
13096 if test $TERMINFO = yes; then
13098 $as_echo "#define TERMINFO 1" >>confdefs.h
13101 ## Default used to be -ltermcap. Add a case above if need something else.
13102 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
13104 TERMCAP_OBJ=terminfo.o
13110 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13111 resolv=no
13112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113 /* end confdefs.h. */
13114 #include <netinet/in.h>
13115 #include <arpa/nameser.h>
13116 #include <resolv.h>
13118 main ()
13120 return res_init();
13122 return 0;
13124 _ACEOF
13125 if ac_fn_c_try_link "$LINENO"; then :
13126 have_res_init=yes
13127 else
13128 have_res_init=no
13130 rm -f core conftest.err conftest.$ac_objext \
13131 conftest$ac_exeext conftest.$ac_ext
13132 if test "$have_res_init" = no; then
13133 OLIBS="$LIBS"
13134 LIBS="$LIBS -lresolv"
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13136 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13138 /* end confdefs.h. */
13139 #include <netinet/in.h>
13140 #include <arpa/nameser.h>
13141 #include <resolv.h>
13143 main ()
13145 return res_init();
13147 return 0;
13149 _ACEOF
13150 if ac_fn_c_try_link "$LINENO"; then :
13151 have_res_init=yes
13152 else
13153 have_res_init=no
13155 rm -f core conftest.err conftest.$ac_objext \
13156 conftest$ac_exeext conftest.$ac_ext
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13158 $as_echo "$have_res_init" >&6; }
13159 if test "$have_res_init" = yes ; then
13160 resolv=yes
13162 LIBS="$OLIBS"
13165 if test "$have_res_init" = yes; then
13167 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13171 # Do we need the Hesiod library to provide the support routines?
13172 LIBHESIOD=
13173 if test "$with_hesiod" != no ; then
13174 # Don't set $LIBS here -- see comments above. FIXME which comments?
13175 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13176 if test "x$ac_cv_func_res_send" = x""yes; then :
13178 else
13179 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13180 if test "x$ac_cv_func___res_send" = x""yes; then :
13182 else
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13184 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13185 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13186 $as_echo_n "(cached) " >&6
13187 else
13188 ac_check_lib_save_LIBS=$LIBS
13189 LIBS="-lresolv $LIBS"
13190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13191 /* end confdefs.h. */
13193 /* Override any GCC internal prototype to avoid an error.
13194 Use char because int might match the return type of a GCC
13195 builtin and then its argument prototype would still apply. */
13196 #ifdef __cplusplus
13197 extern "C"
13198 #endif
13199 char res_send ();
13201 main ()
13203 return res_send ();
13205 return 0;
13207 _ACEOF
13208 if ac_fn_c_try_link "$LINENO"; then :
13209 ac_cv_lib_resolv_res_send=yes
13210 else
13211 ac_cv_lib_resolv_res_send=no
13213 rm -f core conftest.err conftest.$ac_objext \
13214 conftest$ac_exeext conftest.$ac_ext
13215 LIBS=$ac_check_lib_save_LIBS
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13218 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13219 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
13220 resolv=yes
13221 else
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13223 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13224 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13225 $as_echo_n "(cached) " >&6
13226 else
13227 ac_check_lib_save_LIBS=$LIBS
13228 LIBS="-lresolv $LIBS"
13229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13230 /* end confdefs.h. */
13232 /* Override any GCC internal prototype to avoid an error.
13233 Use char because int might match the return type of a GCC
13234 builtin and then its argument prototype would still apply. */
13235 #ifdef __cplusplus
13236 extern "C"
13237 #endif
13238 char __res_send ();
13240 main ()
13242 return __res_send ();
13244 return 0;
13246 _ACEOF
13247 if ac_fn_c_try_link "$LINENO"; then :
13248 ac_cv_lib_resolv___res_send=yes
13249 else
13250 ac_cv_lib_resolv___res_send=no
13252 rm -f core conftest.err conftest.$ac_objext \
13253 conftest$ac_exeext conftest.$ac_ext
13254 LIBS=$ac_check_lib_save_LIBS
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13257 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13258 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
13259 resolv=yes
13268 if test "$resolv" = yes ; then
13269 RESOLVLIB=-lresolv
13270 else
13271 RESOLVLIB=
13273 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13274 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
13276 else
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13278 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13279 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13280 $as_echo_n "(cached) " >&6
13281 else
13282 ac_check_lib_save_LIBS=$LIBS
13283 LIBS="-lhesiod $RESOLVLIB $LIBS"
13284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13285 /* end confdefs.h. */
13287 /* Override any GCC internal prototype to avoid an error.
13288 Use char because int might match the return type of a GCC
13289 builtin and then its argument prototype would still apply. */
13290 #ifdef __cplusplus
13291 extern "C"
13292 #endif
13293 char hes_getmailhost ();
13295 main ()
13297 return hes_getmailhost ();
13299 return 0;
13301 _ACEOF
13302 if ac_fn_c_try_link "$LINENO"; then :
13303 ac_cv_lib_hesiod_hes_getmailhost=yes
13304 else
13305 ac_cv_lib_hesiod_hes_getmailhost=no
13307 rm -f core conftest.err conftest.$ac_objext \
13308 conftest$ac_exeext conftest.$ac_ext
13309 LIBS=$ac_check_lib_save_LIBS
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13312 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13313 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
13314 hesiod=yes
13315 else
13322 if test x"$hesiod" = xyes; then
13324 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13326 LIBHESIOD=-lhesiod
13331 # Do we need libresolv (due to res_init or Hesiod)?
13332 if test "$resolv" = yes ; then
13334 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13336 LIBRESOLV=-lresolv
13337 else
13338 LIBRESOLV=
13342 # These tell us which Kerberos-related libraries to use.
13343 COM_ERRLIB=
13344 CRYPTOLIB=
13345 KRB5LIB=
13346 DESLIB=
13347 KRB4LIB=
13349 if test "${with_kerberos}" != no; then
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13351 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13352 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13353 $as_echo_n "(cached) " >&6
13354 else
13355 ac_check_lib_save_LIBS=$LIBS
13356 LIBS="-lcom_err $LIBS"
13357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13358 /* end confdefs.h. */
13360 /* Override any GCC internal prototype to avoid an error.
13361 Use char because int might match the return type of a GCC
13362 builtin and then its argument prototype would still apply. */
13363 #ifdef __cplusplus
13364 extern "C"
13365 #endif
13366 char com_err ();
13368 main ()
13370 return com_err ();
13372 return 0;
13374 _ACEOF
13375 if ac_fn_c_try_link "$LINENO"; then :
13376 ac_cv_lib_com_err_com_err=yes
13377 else
13378 ac_cv_lib_com_err_com_err=no
13380 rm -f core conftest.err conftest.$ac_objext \
13381 conftest$ac_exeext conftest.$ac_ext
13382 LIBS=$ac_check_lib_save_LIBS
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13385 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13386 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
13387 have_com_err=yes
13388 else
13389 have_com_err=no
13392 if test $have_com_err = yes; then
13393 COM_ERRLIB=-lcom_err
13394 LIBS="$COM_ERRLIB $LIBS"
13396 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13400 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13401 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13402 $as_echo_n "(cached) " >&6
13403 else
13404 ac_check_lib_save_LIBS=$LIBS
13405 LIBS="-lcrypto $LIBS"
13406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13407 /* end confdefs.h. */
13409 /* Override any GCC internal prototype to avoid an error.
13410 Use char because int might match the return type of a GCC
13411 builtin and then its argument prototype would still apply. */
13412 #ifdef __cplusplus
13413 extern "C"
13414 #endif
13415 char mit_des_cbc_encrypt ();
13417 main ()
13419 return mit_des_cbc_encrypt ();
13421 return 0;
13423 _ACEOF
13424 if ac_fn_c_try_link "$LINENO"; then :
13425 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13426 else
13427 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13429 rm -f core conftest.err conftest.$ac_objext \
13430 conftest$ac_exeext conftest.$ac_ext
13431 LIBS=$ac_check_lib_save_LIBS
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13434 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13435 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
13436 have_crypto=yes
13437 else
13438 have_crypto=no
13441 if test $have_crypto = yes; then
13442 CRYPTOLIB=-lcrypto
13443 LIBS="$CRYPTOLIB $LIBS"
13445 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13449 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13450 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13451 $as_echo_n "(cached) " >&6
13452 else
13453 ac_check_lib_save_LIBS=$LIBS
13454 LIBS="-lk5crypto $LIBS"
13455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13456 /* end confdefs.h. */
13458 /* Override any GCC internal prototype to avoid an error.
13459 Use char because int might match the return type of a GCC
13460 builtin and then its argument prototype would still apply. */
13461 #ifdef __cplusplus
13462 extern "C"
13463 #endif
13464 char mit_des_cbc_encrypt ();
13466 main ()
13468 return mit_des_cbc_encrypt ();
13470 return 0;
13472 _ACEOF
13473 if ac_fn_c_try_link "$LINENO"; then :
13474 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
13475 else
13476 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
13478 rm -f core conftest.err conftest.$ac_objext \
13479 conftest$ac_exeext conftest.$ac_ext
13480 LIBS=$ac_check_lib_save_LIBS
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13483 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13484 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
13485 have_k5crypto=yes
13486 else
13487 have_k5crypto=no
13490 if test $have_k5crypto = yes; then
13491 CRYPTOLIB=-lk5crypto
13492 LIBS="$CRYPTOLIB $LIBS"
13494 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13498 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13499 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13500 $as_echo_n "(cached) " >&6
13501 else
13502 ac_check_lib_save_LIBS=$LIBS
13503 LIBS="-lkrb5 $LIBS"
13504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13505 /* end confdefs.h. */
13507 /* Override any GCC internal prototype to avoid an error.
13508 Use char because int might match the return type of a GCC
13509 builtin and then its argument prototype would still apply. */
13510 #ifdef __cplusplus
13511 extern "C"
13512 #endif
13513 char krb5_init_context ();
13515 main ()
13517 return krb5_init_context ();
13519 return 0;
13521 _ACEOF
13522 if ac_fn_c_try_link "$LINENO"; then :
13523 ac_cv_lib_krb5_krb5_init_context=yes
13524 else
13525 ac_cv_lib_krb5_krb5_init_context=no
13527 rm -f core conftest.err conftest.$ac_objext \
13528 conftest$ac_exeext conftest.$ac_ext
13529 LIBS=$ac_check_lib_save_LIBS
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13532 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13533 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
13534 have_krb5=yes
13535 else
13536 have_krb5=no
13539 if test $have_krb5=yes; then
13540 KRB5LIB=-lkrb5
13541 LIBS="$KRB5LIB $LIBS"
13543 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13546 if test "${with_kerberos5}" = no; then
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13548 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13549 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
13550 $as_echo_n "(cached) " >&6
13551 else
13552 ac_check_lib_save_LIBS=$LIBS
13553 LIBS="-ldes425 $LIBS"
13554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13555 /* end confdefs.h. */
13557 /* Override any GCC internal prototype to avoid an error.
13558 Use char because int might match the return type of a GCC
13559 builtin and then its argument prototype would still apply. */
13560 #ifdef __cplusplus
13561 extern "C"
13562 #endif
13563 char des_cbc_encrypt ();
13565 main ()
13567 return des_cbc_encrypt ();
13569 return 0;
13571 _ACEOF
13572 if ac_fn_c_try_link "$LINENO"; then :
13573 ac_cv_lib_des425_des_cbc_encrypt=yes
13574 else
13575 ac_cv_lib_des425_des_cbc_encrypt=no
13577 rm -f core conftest.err conftest.$ac_objext \
13578 conftest$ac_exeext conftest.$ac_ext
13579 LIBS=$ac_check_lib_save_LIBS
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13582 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13583 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
13584 have_des425=yes
13585 else
13586 have_des425=no
13589 if test $have_des425 = yes; then
13590 DESLIB=-ldes425
13591 LIBS="$DESLIB $LIBS"
13593 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13595 else
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13597 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13598 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
13599 $as_echo_n "(cached) " >&6
13600 else
13601 ac_check_lib_save_LIBS=$LIBS
13602 LIBS="-ldes $LIBS"
13603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13604 /* end confdefs.h. */
13606 /* Override any GCC internal prototype to avoid an error.
13607 Use char because int might match the return type of a GCC
13608 builtin and then its argument prototype would still apply. */
13609 #ifdef __cplusplus
13610 extern "C"
13611 #endif
13612 char des_cbc_encrypt ();
13614 main ()
13616 return des_cbc_encrypt ();
13618 return 0;
13620 _ACEOF
13621 if ac_fn_c_try_link "$LINENO"; then :
13622 ac_cv_lib_des_des_cbc_encrypt=yes
13623 else
13624 ac_cv_lib_des_des_cbc_encrypt=no
13626 rm -f core conftest.err conftest.$ac_objext \
13627 conftest$ac_exeext conftest.$ac_ext
13628 LIBS=$ac_check_lib_save_LIBS
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13631 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13632 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
13633 have_des=yes
13634 else
13635 have_des=no
13638 if test $have_des = yes; then
13639 DESLIB=-ldes
13640 LIBS="$DESLIB $LIBS"
13642 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13647 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13648 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
13649 $as_echo_n "(cached) " >&6
13650 else
13651 ac_check_lib_save_LIBS=$LIBS
13652 LIBS="-lkrb4 $LIBS"
13653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13654 /* end confdefs.h. */
13656 /* Override any GCC internal prototype to avoid an error.
13657 Use char because int might match the return type of a GCC
13658 builtin and then its argument prototype would still apply. */
13659 #ifdef __cplusplus
13660 extern "C"
13661 #endif
13662 char krb_get_cred ();
13664 main ()
13666 return krb_get_cred ();
13668 return 0;
13670 _ACEOF
13671 if ac_fn_c_try_link "$LINENO"; then :
13672 ac_cv_lib_krb4_krb_get_cred=yes
13673 else
13674 ac_cv_lib_krb4_krb_get_cred=no
13676 rm -f core conftest.err conftest.$ac_objext \
13677 conftest$ac_exeext conftest.$ac_ext
13678 LIBS=$ac_check_lib_save_LIBS
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13681 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13682 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
13683 have_krb4=yes
13684 else
13685 have_krb4=no
13688 if test $have_krb4 = yes; then
13689 KRB4LIB=-lkrb4
13690 LIBS="$KRB4LIB $LIBS"
13692 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13694 else
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13696 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13697 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
13698 $as_echo_n "(cached) " >&6
13699 else
13700 ac_check_lib_save_LIBS=$LIBS
13701 LIBS="-lkrb $LIBS"
13702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13703 /* end confdefs.h. */
13705 /* Override any GCC internal prototype to avoid an error.
13706 Use char because int might match the return type of a GCC
13707 builtin and then its argument prototype would still apply. */
13708 #ifdef __cplusplus
13709 extern "C"
13710 #endif
13711 char krb_get_cred ();
13713 main ()
13715 return krb_get_cred ();
13717 return 0;
13719 _ACEOF
13720 if ac_fn_c_try_link "$LINENO"; then :
13721 ac_cv_lib_krb_krb_get_cred=yes
13722 else
13723 ac_cv_lib_krb_krb_get_cred=no
13725 rm -f core conftest.err conftest.$ac_objext \
13726 conftest$ac_exeext conftest.$ac_ext
13727 LIBS=$ac_check_lib_save_LIBS
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13730 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13731 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
13732 have_krb=yes
13733 else
13734 have_krb=no
13737 if test $have_krb = yes; then
13738 KRB4LIB=-lkrb
13739 LIBS="$KRB4LIB $LIBS"
13741 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
13747 if test "${with_kerberos5}" != no; then
13748 for ac_header in krb5.h
13749 do :
13750 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13751 if test "x$ac_cv_header_krb5_h" = x""yes; then :
13752 cat >>confdefs.h <<_ACEOF
13753 #define HAVE_KRB5_H 1
13754 _ACEOF
13755 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13757 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
13759 cat >>confdefs.h <<_ACEOF
13760 #define HAVE_KRB5_ERROR_TEXT 1
13761 _ACEOF
13765 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13767 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
13769 cat >>confdefs.h <<_ACEOF
13770 #define HAVE_KRB5_ERROR_E_TEXT 1
13771 _ACEOF
13778 done
13780 else
13781 for ac_header in des.h
13782 do :
13783 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
13784 if test "x$ac_cv_header_des_h" = x""yes; then :
13785 cat >>confdefs.h <<_ACEOF
13786 #define HAVE_DES_H 1
13787 _ACEOF
13789 else
13790 for ac_header in kerberosIV/des.h
13791 do :
13792 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
13793 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
13794 cat >>confdefs.h <<_ACEOF
13795 #define HAVE_KERBEROSIV_DES_H 1
13796 _ACEOF
13798 else
13799 for ac_header in kerberos/des.h
13800 do :
13801 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
13802 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
13803 cat >>confdefs.h <<_ACEOF
13804 #define HAVE_KERBEROS_DES_H 1
13805 _ACEOF
13809 done
13813 done
13817 done
13819 for ac_header in krb.h
13820 do :
13821 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13822 if test "x$ac_cv_header_krb_h" = x""yes; then :
13823 cat >>confdefs.h <<_ACEOF
13824 #define HAVE_KRB_H 1
13825 _ACEOF
13827 else
13828 for ac_header in kerberosIV/krb.h
13829 do :
13830 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13831 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
13832 cat >>confdefs.h <<_ACEOF
13833 #define HAVE_KERBEROSIV_KRB_H 1
13834 _ACEOF
13836 else
13837 for ac_header in kerberos/krb.h
13838 do :
13839 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13840 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
13841 cat >>confdefs.h <<_ACEOF
13842 #define HAVE_KERBEROS_KRB_H 1
13843 _ACEOF
13847 done
13851 done
13855 done
13858 for ac_header in com_err.h
13859 do :
13860 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13861 if test "x$ac_cv_header_com_err_h" = x""yes; then :
13862 cat >>confdefs.h <<_ACEOF
13863 #define HAVE_COM_ERR_H 1
13864 _ACEOF
13868 done
13878 # Solaris requires -lintl if you want strerror (which calls dgettext)
13879 # to return localized messages.
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13881 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13882 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
13883 $as_echo_n "(cached) " >&6
13884 else
13885 ac_check_lib_save_LIBS=$LIBS
13886 LIBS="-lintl $LIBS"
13887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13888 /* end confdefs.h. */
13890 /* Override any GCC internal prototype to avoid an error.
13891 Use char because int might match the return type of a GCC
13892 builtin and then its argument prototype would still apply. */
13893 #ifdef __cplusplus
13894 extern "C"
13895 #endif
13896 char dgettext ();
13898 main ()
13900 return dgettext ();
13902 return 0;
13904 _ACEOF
13905 if ac_fn_c_try_link "$LINENO"; then :
13906 ac_cv_lib_intl_dgettext=yes
13907 else
13908 ac_cv_lib_intl_dgettext=no
13910 rm -f core conftest.err conftest.$ac_objext \
13911 conftest$ac_exeext conftest.$ac_ext
13912 LIBS=$ac_check_lib_save_LIBS
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13915 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13916 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
13917 cat >>confdefs.h <<_ACEOF
13918 #define HAVE_LIBINTL 1
13919 _ACEOF
13921 LIBS="-lintl $LIBS"
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13927 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13928 if test "${emacs_cv_localtime_cache+set}" = set; then :
13929 $as_echo_n "(cached) " >&6
13930 else
13931 if test x$ac_cv_func_tzset = xyes; then
13932 if test "$cross_compiling" = yes; then :
13933 # If we have tzset, assume the worst when cross-compiling.
13934 emacs_cv_localtime_cache=yes
13935 else
13936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937 /* end confdefs.h. */
13938 #include <time.h>
13939 char TZ_GMT0[] = "TZ=GMT0";
13940 char TZ_PST8[] = "TZ=PST8";
13941 main()
13943 time_t now = time ((time_t *) 0);
13944 int hour_GMT0, hour_unset;
13945 if (putenv (TZ_GMT0) != 0)
13946 exit (1);
13947 hour_GMT0 = localtime (&now)->tm_hour;
13948 unsetenv("TZ");
13949 hour_unset = localtime (&now)->tm_hour;
13950 if (putenv (TZ_PST8) != 0)
13951 exit (1);
13952 if (localtime (&now)->tm_hour == hour_GMT0)
13953 exit (1);
13954 unsetenv("TZ");
13955 if (localtime (&now)->tm_hour != hour_unset)
13956 exit (1);
13957 exit (0);
13959 _ACEOF
13960 if ac_fn_c_try_run "$LINENO"; then :
13961 emacs_cv_localtime_cache=no
13962 else
13963 emacs_cv_localtime_cache=yes
13965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13966 conftest.$ac_objext conftest.beam conftest.$ac_ext
13969 else
13970 # If we lack tzset, report that localtime does not cache TZ,
13971 # since we can't invalidate the cache if we don't have tzset.
13972 emacs_cv_localtime_cache=no
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
13976 $as_echo "$emacs_cv_localtime_cache" >&6; }
13977 if test $emacs_cv_localtime_cache = yes; then
13979 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
13983 if test "x$HAVE_TIMEVAL" = xyes; then
13984 for ac_func in gettimeofday
13985 do :
13986 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
13987 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
13988 cat >>confdefs.h <<_ACEOF
13989 #define HAVE_GETTIMEOFDAY 1
13990 _ACEOF
13993 done
13995 if test $ac_cv_func_gettimeofday = yes; then
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
13997 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
13998 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
13999 $as_echo_n "(cached) " >&6
14000 else
14001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14002 /* end confdefs.h. */
14004 #ifdef TIME_WITH_SYS_TIME
14005 #include <sys/time.h>
14006 #include <time.h>
14007 #else
14008 #ifdef HAVE_SYS_TIME_H
14009 #include <sys/time.h>
14010 #else
14011 #include <time.h>
14012 #endif
14013 #endif
14015 main ()
14017 struct timeval time;
14018 gettimeofday (&time, 0);
14020 return 0;
14022 _ACEOF
14023 if ac_fn_c_try_compile "$LINENO"; then :
14024 emacs_cv_gettimeofday_two_arguments=yes
14025 else
14026 emacs_cv_gettimeofday_two_arguments=no
14028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14031 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14032 if test $emacs_cv_gettimeofday_two_arguments = no; then
14034 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14040 ok_so_far=yes
14041 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14042 if test "x$ac_cv_func_socket" = x""yes; then :
14044 else
14045 ok_so_far=no
14048 if test $ok_so_far = yes; then
14049 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14050 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14052 else
14053 ok_so_far=no
14058 if test $ok_so_far = yes; then
14059 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14060 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14062 else
14063 ok_so_far=no
14068 if test $ok_so_far = yes; then
14070 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14074 if test -f /usr/lpp/X11/bin/smt.exp; then
14076 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14081 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14082 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14084 $as_echo "yes" >&6; }
14086 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14088 else
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14090 $as_echo "no" >&6; }
14093 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14094 if test "x$ac_cv_type_pid_t" = x""yes; then :
14096 else
14098 cat >>confdefs.h <<_ACEOF
14099 #define pid_t int
14100 _ACEOF
14104 for ac_header in vfork.h
14105 do :
14106 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14107 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14108 cat >>confdefs.h <<_ACEOF
14109 #define HAVE_VFORK_H 1
14110 _ACEOF
14114 done
14116 for ac_func in fork vfork
14117 do :
14118 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14119 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14120 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14121 cat >>confdefs.h <<_ACEOF
14122 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14123 _ACEOF
14126 done
14128 if test "x$ac_cv_func_fork" = xyes; then
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14130 $as_echo_n "checking for working fork... " >&6; }
14131 if test "${ac_cv_func_fork_works+set}" = set; then :
14132 $as_echo_n "(cached) " >&6
14133 else
14134 if test "$cross_compiling" = yes; then :
14135 ac_cv_func_fork_works=cross
14136 else
14137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14138 /* end confdefs.h. */
14139 $ac_includes_default
14141 main ()
14144 /* By Ruediger Kuhlmann. */
14145 return fork () < 0;
14148 return 0;
14150 _ACEOF
14151 if ac_fn_c_try_run "$LINENO"; then :
14152 ac_cv_func_fork_works=yes
14153 else
14154 ac_cv_func_fork_works=no
14156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14157 conftest.$ac_objext conftest.beam conftest.$ac_ext
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14162 $as_echo "$ac_cv_func_fork_works" >&6; }
14164 else
14165 ac_cv_func_fork_works=$ac_cv_func_fork
14167 if test "x$ac_cv_func_fork_works" = xcross; then
14168 case $host in
14169 *-*-amigaos* | *-*-msdosdjgpp*)
14170 # Override, as these systems have only a dummy fork() stub
14171 ac_cv_func_fork_works=no
14174 ac_cv_func_fork_works=yes
14176 esac
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14178 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14180 ac_cv_func_vfork_works=$ac_cv_func_vfork
14181 if test "x$ac_cv_func_vfork" = xyes; then
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14183 $as_echo_n "checking for working vfork... " >&6; }
14184 if test "${ac_cv_func_vfork_works+set}" = set; then :
14185 $as_echo_n "(cached) " >&6
14186 else
14187 if test "$cross_compiling" = yes; then :
14188 ac_cv_func_vfork_works=cross
14189 else
14190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14191 /* end confdefs.h. */
14192 /* Thanks to Paul Eggert for this test. */
14193 $ac_includes_default
14194 #include <sys/wait.h>
14195 #ifdef HAVE_VFORK_H
14196 # include <vfork.h>
14197 #endif
14198 /* On some sparc systems, changes by the child to local and incoming
14199 argument registers are propagated back to the parent. The compiler
14200 is told about this with #include <vfork.h>, but some compilers
14201 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14202 static variable whose address is put into a register that is
14203 clobbered by the vfork. */
14204 static void
14205 #ifdef __cplusplus
14206 sparc_address_test (int arg)
14207 # else
14208 sparc_address_test (arg) int arg;
14209 #endif
14211 static pid_t child;
14212 if (!child) {
14213 child = vfork ();
14214 if (child < 0) {
14215 perror ("vfork");
14216 _exit(2);
14218 if (!child) {
14219 arg = getpid();
14220 write(-1, "", 0);
14221 _exit (arg);
14227 main ()
14229 pid_t parent = getpid ();
14230 pid_t child;
14232 sparc_address_test (0);
14234 child = vfork ();
14236 if (child == 0) {
14237 /* Here is another test for sparc vfork register problems. This
14238 test uses lots of local variables, at least as many local
14239 variables as main has allocated so far including compiler
14240 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14241 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14242 reuse the register of parent for one of the local variables,
14243 since it will think that parent can't possibly be used any more
14244 in this routine. Assigning to the local variable will thus
14245 munge parent in the parent process. */
14246 pid_t
14247 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14248 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14249 /* Convince the compiler that p..p7 are live; otherwise, it might
14250 use the same hardware register for all 8 local variables. */
14251 if (p != p1 || p != p2 || p != p3 || p != p4
14252 || p != p5 || p != p6 || p != p7)
14253 _exit(1);
14255 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14256 from child file descriptors. If the child closes a descriptor
14257 before it execs or exits, this munges the parent's descriptor
14258 as well. Test for this by closing stdout in the child. */
14259 _exit(close(fileno(stdout)) != 0);
14260 } else {
14261 int status;
14262 struct stat st;
14264 while (wait(&status) != child)
14266 return (
14267 /* Was there some problem with vforking? */
14268 child < 0
14270 /* Did the child fail? (This shouldn't happen.) */
14271 || status
14273 /* Did the vfork/compiler bug occur? */
14274 || parent != getpid()
14276 /* Did the file descriptor bug occur? */
14277 || fstat(fileno(stdout), &st) != 0
14281 _ACEOF
14282 if ac_fn_c_try_run "$LINENO"; then :
14283 ac_cv_func_vfork_works=yes
14284 else
14285 ac_cv_func_vfork_works=no
14287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14288 conftest.$ac_objext conftest.beam conftest.$ac_ext
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14293 $as_echo "$ac_cv_func_vfork_works" >&6; }
14296 if test "x$ac_cv_func_fork_works" = xcross; then
14297 ac_cv_func_vfork_works=$ac_cv_func_vfork
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14299 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14302 if test "x$ac_cv_func_vfork_works" = xyes; then
14304 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14306 else
14308 $as_echo "#define vfork fork" >>confdefs.h
14311 if test "x$ac_cv_func_fork_works" = xyes; then
14313 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14319 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14320 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14321 $as_echo_n "(cached) " >&6
14322 else
14323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h. */
14325 #include <langinfo.h>
14327 main ()
14329 char* cs = nl_langinfo(CODESET);
14331 return 0;
14333 _ACEOF
14334 if ac_fn_c_try_link "$LINENO"; then :
14335 emacs_cv_langinfo_codeset=yes
14336 else
14337 emacs_cv_langinfo_codeset=no
14339 rm -f core conftest.err conftest.$ac_objext \
14340 conftest$ac_exeext conftest.$ac_ext
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14344 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14345 if test $emacs_cv_langinfo_codeset = yes; then
14347 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14351 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14352 if test "x$ac_cv_type_size_t" = x""yes; then :
14354 cat >>confdefs.h <<_ACEOF
14355 #define HAVE_SIZE_T 1
14356 _ACEOF
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14363 $as_echo_n "checking for mbstate_t... " >&6; }
14364 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14365 $as_echo_n "(cached) " >&6
14366 else
14367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14368 /* end confdefs.h. */
14369 $ac_includes_default
14370 # include <wchar.h>
14372 main ()
14374 mbstate_t x; return sizeof x;
14376 return 0;
14378 _ACEOF
14379 if ac_fn_c_try_compile "$LINENO"; then :
14380 ac_cv_type_mbstate_t=yes
14381 else
14382 ac_cv_type_mbstate_t=no
14384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14387 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14388 if test $ac_cv_type_mbstate_t = yes; then
14390 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14392 else
14394 $as_echo "#define mbstate_t int" >>confdefs.h
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
14399 $as_echo_n "checking for C restrict keyword... " >&6; }
14400 if test "${emacs_cv_c_restrict+set}" = set; then :
14401 $as_echo_n "(cached) " >&6
14402 else
14403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14404 /* end confdefs.h. */
14405 void fred (int *restrict x);
14407 main ()
14411 return 0;
14413 _ACEOF
14414 if ac_fn_c_try_compile "$LINENO"; then :
14415 emacs_cv_c_restrict=yes
14416 else
14417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14418 /* end confdefs.h. */
14419 void fred (int *__restrict x);
14421 main ()
14425 return 0;
14427 _ACEOF
14428 if ac_fn_c_try_compile "$LINENO"; then :
14429 emacs_cv_c_restrict=__restrict
14430 else
14431 emacs_cv_c_restrict=no
14433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
14438 $as_echo "$emacs_cv_c_restrict" >&6; }
14439 case "$emacs_cv_c_restrict" in
14440 yes) emacs_restrict=restrict;;
14441 no) emacs_restrict="";;
14442 *) emacs_restrict="$emacs_cv_c_restrict";;
14443 esac
14444 if test "$emacs_restrict" != __restrict; then
14446 cat >>confdefs.h <<_ACEOF
14447 #define __restrict $emacs_restrict
14448 _ACEOF
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14453 $as_echo_n "checking for C restricted array declarations... " >&6; }
14454 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14455 $as_echo_n "(cached) " >&6
14456 else
14457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14458 /* end confdefs.h. */
14459 void fred (int x[__restrict]);
14461 main ()
14465 return 0;
14467 _ACEOF
14468 if ac_fn_c_try_compile "$LINENO"; then :
14469 emacs_cv_c_restrict_arr=yes
14470 else
14471 emacs_cv_c_restrict_arr=no
14473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14476 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14477 if test "$emacs_cv_c_restrict_arr" = yes; then
14479 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14485 # Set up the CFLAGS for real compilation, so we can substitute it.
14486 CFLAGS="$REAL_CFLAGS"
14487 CPPFLAGS="$REAL_CPPFLAGS"
14489 ## Hack to detect a buggy GCC version.
14490 if test "x$GCC" = xyes \
14491 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
14492 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
14493 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
14494 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
14497 #### Find out which version of Emacs this is.
14498 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
14499 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
14500 if test x"${version}" = x; then
14501 as_fn_error $? "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
14503 if test x"${version}" != x"$PACKAGE_VERSION"; then
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
14505 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
14508 ### Specify what sort of things we'll be editing into Makefile and config.h.
14509 ### Use configuration here uncanonicalized to avoid exceeding size limits.
14512 ## Unused?
14533 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
14534 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
14535 ## end of LIBX_BASE, but nothing ever set it.
14540 ## Used in lwlib/Makefile.in.
14542 if test -n "${machfile}"; then
14543 M_FILE="\$(srcdir)/${machfile}"
14544 else
14545 M_FILE=
14547 S_FILE="\$(srcdir)/${opsysfile}"
14559 cat >>confdefs.h <<_ACEOF
14560 #define EMACS_CONFIGURATION "${canonical}"
14561 _ACEOF
14564 cat >>confdefs.h <<_ACEOF
14565 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
14566 _ACEOF
14568 if test -n "$machfile"; then
14570 cat >>confdefs.h <<_ACEOF
14571 #define config_machfile "${machfile}"
14572 _ACEOF
14576 cat >>confdefs.h <<_ACEOF
14577 #define config_opsysfile "${opsysfile}"
14578 _ACEOF
14581 XMENU_OBJ=
14582 XOBJ=
14583 FONT_OBJ=
14584 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14586 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14588 XMENU_OBJ=xmenu.o
14589 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14590 FONT_OBJ=xfont.o
14591 if test "$HAVE_XFT" = "yes"; then
14592 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14593 elif test "$HAVE_FREETYPE" = "yes"; then
14594 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14602 WIDGET_OBJ=
14603 MOTIF_LIBW=
14604 if test "${USE_X_TOOLKIT}" != "none" ; then
14605 WIDGET_OBJ=widget.o
14607 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14609 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14611 $as_echo "#define USE_LUCID 1" >>confdefs.h
14613 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14615 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14617 MOTIF_LIBW=-lXm
14618 case "$opsys" in
14619 gnu-linux)
14620 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14621 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
14624 unixware)
14625 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14626 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14627 MOTIF_LIBW="MOTIF_LIBW -lXimp"
14630 aix4-2)
14631 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14632 MOTIF_LIBW="$MOTIF_LIBW -li18n"
14634 esac
14635 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
14640 TOOLKIT_LIBW=
14641 case "$USE_X_TOOLKIT" in
14642 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
14643 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
14644 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
14645 esac
14648 if test "$USE_X_TOOLKIT" = "none"; then
14649 LIBXT_OTHER="\$(LIBXSM)"
14650 OLDXMENU_TARGET="really-oldXMenu"
14651 else
14652 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14653 OLDXMENU_TARGET="really-lwlib"
14657 ## The X Menu stuff is present in the X10 distribution, but missing
14658 ## from X11. If we have X10, just use the installed library;
14659 ## otherwise, use our own copy.
14660 if test "${HAVE_X11}" = "yes" ; then
14662 $as_echo "#define HAVE_X11 1" >>confdefs.h
14665 if test "$USE_X_TOOLKIT" = "none"; then
14666 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
14667 else
14668 OLDXMENU="\${lwlibdir}/liblw.a"
14670 LIBXMENU="\$(OLDXMENU)"
14671 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
14672 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
14673 else
14674 ## For a syntactically valid Makefile; not actually used for anything.
14675 ## See comments in src/Makefile.in.
14676 OLDXMENU=nothing
14677 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14678 if test "${HAVE_X_WINDOWS}" = "yes"; then
14679 LIBXMENU="-lXMenu"
14680 else
14681 LIBXMENU=
14683 LIBX_OTHER=
14684 OLDXMENU_DEPS=
14687 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
14688 OLDXMENU_TARGET=
14689 OLDXMENU=nothing
14690 LIBXMENU=
14691 OLDXMENU_DEPS=
14700 if test "${HAVE_MENUS}" = "yes" ; then
14702 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14706 if test "${GNU_MALLOC}" = "yes" ; then
14708 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14712 RALLOC_OBJ=
14713 if test "${REL_ALLOC}" = "yes" ; then
14715 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14718 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
14722 if test "$opsys" = "cygwin"; then
14723 CYGWIN_OBJ="sheap.o"
14724 ## Cygwin differs because of its unexec().
14725 PRE_ALLOC_OBJ=
14726 POST_ALLOC_OBJ=lastfile.o
14727 else
14728 CYGWIN_OBJ=
14729 PRE_ALLOC_OBJ=lastfile.o
14730 POST_ALLOC_OBJ=
14737 case "$opsys" in
14738 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
14740 darwin)
14741 ## The -headerpad option tells ld (see man page) to leave room at the
14742 ## end of the header for adding load commands. Needed for dumping.
14743 ## 0x690 is the total size of 30 segment load commands (at 56
14744 ## each); under Cocoa 31 commands are required.
14745 if test "$HAVE_NS" = "yes"; then
14746 libs_nsgui="-framework AppKit"
14747 headerpad_extra=6C8
14748 else
14749 libs_nsgui=
14750 headerpad_extra=690
14752 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
14754 ## This is here because src/Makefile.in did some extra fiddling around
14755 ## with LD_SWITCH_SYSTEM. The cpp logic was:
14756 ## #ifndef LD_SWITCH_SYSTEM
14757 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
14758 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
14759 ## not using gcc, darwin system not on an alpha (ie darwin, since
14760 ## darwin + alpha does not occur).
14761 ## Because this was done in src/Makefile.in, the resulting part of
14762 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
14763 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
14764 ## rather than LD_SWITCH_SYSTEM.
14765 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
14766 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
14769 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
14770 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
14771 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
14772 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
14773 ## had different values in configure (in ac_link) and src/Makefile.in.
14774 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
14775 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
14777 *) LD_SWITCH_SYSTEM_TEMACS= ;;
14778 esac
14780 if test "$NS_IMPL_GNUSTEP" = "yes"; then
14781 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
14787 LD_FIRSTFLAG=
14788 ORDINARY_LINK=
14789 case "$opsys" in
14790 ## gnu: GNU needs its own crt0.
14791 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
14793 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14794 ## library search parth, i.e. it won't search /usr/lib for libc and
14795 ## friends. Using -nostartfiles instead avoids this problem, and
14796 ## will also work on earlier NetBSD releases.
14797 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
14799 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14800 ## MkLinux/LinuxPPC needs this.
14801 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14802 gnu-*)
14803 case "$machine" in
14804 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
14805 esac
14807 esac
14810 if test "x$ORDINARY_LINK" = "xyes"; then
14812 LD_FIRSTFLAG=""
14814 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14817 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
14818 ## freebsd, gnu-* not on macppc|ibms390x.
14819 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
14821 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14822 ## places that are difficult to figure out at make time. Fortunately,
14823 ## these same versions allow you to pass arbitrary flags on to the
14824 ## linker, so there is no reason not to use it as a linker.
14826 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14827 ## searching for libraries in its internal directories, so we have to
14828 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14829 LD_FIRSTFLAG="-nostdlib"
14832 ## FIXME? What setting of EDIT_LDFLAGS should this have?
14833 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
14838 ## FIXME? The logic here is not precisely the same as that above.
14839 ## There is no check here for a pre-defined LD_FIRSTFLAG.
14840 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14841 LIB_GCC=
14842 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14844 case "$opsys" in
14845 freebsd|netbsd|openbsd) LIB_GCC= ;;
14847 gnu-*)
14848 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
14849 ## build on ARM EABI under GNU/Linux. (Bug#5518)
14850 case $host_cpu in
14851 arm*)
14852 LIB_GCC="-lgcc_s"
14855 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
14856 ## immediately undefine it again and redefine it to empty.
14857 ## Was the C_SWITCH_X_SITE part really necessary?
14858 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
14859 LIB_GCC=
14861 esac
14864 ## Ask GCC where to find libgcc.a.
14865 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
14866 esac
14870 TOOLTIP_SUPPORT=
14871 WINDOW_SUPPORT=
14872 ## If we're using X11/GNUstep, define some consequences.
14873 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
14875 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14878 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14880 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
14881 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
14883 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
14884 test "$HAVE_X_WINDOWS" = "yes" && \
14885 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14895 #### Report on what we decided to do.
14896 #### Report GTK as a toolkit, even if it doesn't use Xt.
14897 #### It makes printing result more understandable as using GTK sets
14898 #### toolkit_scroll_bars to yes by default.
14899 if test "${HAVE_GTK}" = "yes"; then
14900 USE_X_TOOLKIT=GTK
14903 and_machfile=
14904 if test -n "$machfile"; then
14905 and_machfile=" and \`${machfile}'"
14908 echo "
14909 Configured for \`${canonical}'.
14911 Where should the build process find the source code? ${srcdir}
14912 What operating system and machine description files should Emacs use?
14913 \`${opsysfile}'${and_machfile}
14914 What compiler should emacs be built with? ${CC} ${CFLAGS}
14915 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14916 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14917 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14918 What window system should Emacs use? ${window_system}
14919 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14921 if test -n "${x_includes}"; then
14922 echo " Where do we find X Windows header files? ${x_includes}"
14923 else
14924 echo " Where do we find X Windows header files? Standard dirs"
14926 if test -n "${x_libraries}"; then
14927 echo " Where do we find X Windows libraries? ${x_libraries}"
14928 else
14929 echo " Where do we find X Windows libraries? Standard dirs"
14932 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14933 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14934 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14935 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14936 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14937 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14938 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14939 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
14941 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
14942 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
14943 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
14944 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
14945 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
14946 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
14948 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
14949 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
14950 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
14951 echo " Does Emacs use -lxft? ${HAVE_XFT}"
14953 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
14954 echo
14956 if test $USE_XASSERTS = yes; then
14957 echo " Compiling with asserts turned on."
14958 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
14961 echo
14963 if test "$HAVE_NS" = "yes"; then
14964 echo
14965 echo "You must run \"make install\" in order to test the built application.
14966 The installed application will go to nextstep/Emacs.app and can be
14967 run or moved from there."
14968 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
14969 echo "The application will be fully self-contained."
14970 else
14971 echo "The lisp resources for the application will be installed under ${prefix}.
14972 You may need to run \"make install\" with sudo. The application will fail
14973 to run if these resources are not installed."
14975 echo
14979 # Remove any trailing slashes in these variables.
14980 test "${prefix}" != NONE &&
14981 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
14982 test "${exec_prefix}" != NONE &&
14983 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
14985 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"
14987 ac_config_commands="$ac_config_commands default"
14989 cat >confcache <<\_ACEOF
14990 # This file is a shell script that caches the results of configure
14991 # tests run on this system so they can be shared between configure
14992 # scripts and configure runs, see configure's option --config-cache.
14993 # It is not useful on other systems. If it contains results you don't
14994 # want to keep, you may remove or edit it.
14996 # config.status only pays attention to the cache file if you give it
14997 # the --recheck option to rerun configure.
14999 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15000 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15001 # following values.
15003 _ACEOF
15005 # The following way of writing the cache mishandles newlines in values,
15006 # but we know of no workaround that is simple, portable, and efficient.
15007 # So, we kill variables containing newlines.
15008 # Ultrix sh set writes to stderr and can't be redirected directly,
15009 # and sets the high bit in the cache file unless we assign to the vars.
15011 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15012 eval ac_val=\$$ac_var
15013 case $ac_val in #(
15014 *${as_nl}*)
15015 case $ac_var in #(
15016 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15017 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15018 esac
15019 case $ac_var in #(
15020 _ | IFS | as_nl) ;; #(
15021 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15022 *) { eval $ac_var=; unset $ac_var;} ;;
15023 esac ;;
15024 esac
15025 done
15027 (set) 2>&1 |
15028 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15029 *${as_nl}ac_space=\ *)
15030 # `set' does not quote correctly, so add quotes: double-quote
15031 # substitution turns \\\\ into \\, and sed turns \\ into \.
15032 sed -n \
15033 "s/'/'\\\\''/g;
15034 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15035 ;; #(
15037 # `set' quotes correctly as required by POSIX, so do not add quotes.
15038 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15040 esac |
15041 sort
15043 sed '
15044 /^ac_cv_env_/b end
15045 t clear
15046 :clear
15047 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15048 t end
15049 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15050 :end' >>confcache
15051 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15052 if test -w "$cache_file"; then
15053 test "x$cache_file" != "x/dev/null" &&
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15055 $as_echo "$as_me: updating cache $cache_file" >&6;}
15056 cat confcache >$cache_file
15057 else
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15059 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15062 rm -f confcache
15064 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15065 # Let make expand exec_prefix.
15066 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15068 DEFS=-DHAVE_CONFIG_H
15070 ac_libobjs=
15071 ac_ltlibobjs=
15073 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15074 # 1. Remove the extension, and $U if already installed.
15075 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15076 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15077 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15078 # will be set to the directory where LIBOBJS objects are built.
15079 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15080 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15081 done
15082 LIBOBJS=$ac_libobjs
15084 LTLIBOBJS=$ac_ltlibobjs
15089 : ${CONFIG_STATUS=./config.status}
15090 ac_write_fail=0
15091 ac_clean_files_save=$ac_clean_files
15092 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15094 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15095 as_write_fail=0
15096 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15097 #! $SHELL
15098 # Generated by $as_me.
15099 # Run this file to recreate the current configuration.
15100 # Compiler output produced by configure, useful for debugging
15101 # configure, is in config.log if it exists.
15103 debug=false
15104 ac_cs_recheck=false
15105 ac_cs_silent=false
15107 SHELL=\${CONFIG_SHELL-$SHELL}
15108 export SHELL
15109 _ASEOF
15110 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15111 ## -------------------- ##
15112 ## M4sh Initialization. ##
15113 ## -------------------- ##
15115 # Be more Bourne compatible
15116 DUALCASE=1; export DUALCASE # for MKS sh
15117 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15118 emulate sh
15119 NULLCMD=:
15120 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15121 # is contrary to our usage. Disable this feature.
15122 alias -g '${1+"$@"}'='"$@"'
15123 setopt NO_GLOB_SUBST
15124 else
15125 case `(set -o) 2>/dev/null` in #(
15126 *posix*) :
15127 set -o posix ;; #(
15128 *) :
15130 esac
15134 as_nl='
15136 export as_nl
15137 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15138 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15139 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15140 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15141 # Prefer a ksh shell builtin over an external printf program on Solaris,
15142 # but without wasting forks for bash or zsh.
15143 if test -z "$BASH_VERSION$ZSH_VERSION" \
15144 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15145 as_echo='print -r --'
15146 as_echo_n='print -rn --'
15147 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15148 as_echo='printf %s\n'
15149 as_echo_n='printf %s'
15150 else
15151 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15152 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15153 as_echo_n='/usr/ucb/echo -n'
15154 else
15155 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15156 as_echo_n_body='eval
15157 arg=$1;
15158 case $arg in #(
15159 *"$as_nl"*)
15160 expr "X$arg" : "X\\(.*\\)$as_nl";
15161 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15162 esac;
15163 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15165 export as_echo_n_body
15166 as_echo_n='sh -c $as_echo_n_body as_echo'
15168 export as_echo_body
15169 as_echo='sh -c $as_echo_body as_echo'
15172 # The user is always right.
15173 if test "${PATH_SEPARATOR+set}" != set; then
15174 PATH_SEPARATOR=:
15175 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15176 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15177 PATH_SEPARATOR=';'
15182 # IFS
15183 # We need space, tab and new line, in precisely that order. Quoting is
15184 # there to prevent editors from complaining about space-tab.
15185 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15186 # splitting by setting IFS to empty value.)
15187 IFS=" "" $as_nl"
15189 # Find who we are. Look in the path if we contain no directory separator.
15190 case $0 in #((
15191 *[\\/]* ) as_myself=$0 ;;
15192 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15193 for as_dir in $PATH
15195 IFS=$as_save_IFS
15196 test -z "$as_dir" && as_dir=.
15197 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15198 done
15199 IFS=$as_save_IFS
15202 esac
15203 # We did not find ourselves, most probably we were run as `sh COMMAND'
15204 # in which case we are not to be found in the path.
15205 if test "x$as_myself" = x; then
15206 as_myself=$0
15208 if test ! -f "$as_myself"; then
15209 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15210 exit 1
15213 # Unset variables that we do not need and which cause bugs (e.g. in
15214 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15215 # suppresses any "Segmentation fault" message there. '((' could
15216 # trigger a bug in pdksh 5.2.14.
15217 for as_var in BASH_ENV ENV MAIL MAILPATH
15218 do eval test x\${$as_var+set} = xset \
15219 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15220 done
15221 PS1='$ '
15222 PS2='> '
15223 PS4='+ '
15225 # NLS nuisances.
15226 LC_ALL=C
15227 export LC_ALL
15228 LANGUAGE=C
15229 export LANGUAGE
15231 # CDPATH.
15232 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15235 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15236 # ----------------------------------------
15237 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15238 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15239 # script with STATUS, using 1 if that was 0.
15240 as_fn_error ()
15242 as_status=$1; test $as_status -eq 0 && as_status=1
15243 if test "$4"; then
15244 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15245 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15247 $as_echo "$as_me: error: $2" >&2
15248 as_fn_exit $as_status
15249 } # as_fn_error
15252 # as_fn_set_status STATUS
15253 # -----------------------
15254 # Set $? to STATUS, without forking.
15255 as_fn_set_status ()
15257 return $1
15258 } # as_fn_set_status
15260 # as_fn_exit STATUS
15261 # -----------------
15262 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15263 as_fn_exit ()
15265 set +e
15266 as_fn_set_status $1
15267 exit $1
15268 } # as_fn_exit
15270 # as_fn_unset VAR
15271 # ---------------
15272 # Portably unset VAR.
15273 as_fn_unset ()
15275 { eval $1=; unset $1;}
15277 as_unset=as_fn_unset
15278 # as_fn_append VAR VALUE
15279 # ----------------------
15280 # Append the text in VALUE to the end of the definition contained in VAR. Take
15281 # advantage of any shell optimizations that allow amortized linear growth over
15282 # repeated appends, instead of the typical quadratic growth present in naive
15283 # implementations.
15284 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15285 eval 'as_fn_append ()
15287 eval $1+=\$2
15289 else
15290 as_fn_append ()
15292 eval $1=\$$1\$2
15294 fi # as_fn_append
15296 # as_fn_arith ARG...
15297 # ------------------
15298 # Perform arithmetic evaluation on the ARGs, and store the result in the
15299 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15300 # must be portable across $(()) and expr.
15301 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15302 eval 'as_fn_arith ()
15304 as_val=$(( $* ))
15306 else
15307 as_fn_arith ()
15309 as_val=`expr "$@" || test $? -eq 1`
15311 fi # as_fn_arith
15314 if expr a : '\(a\)' >/dev/null 2>&1 &&
15315 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15316 as_expr=expr
15317 else
15318 as_expr=false
15321 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15322 as_basename=basename
15323 else
15324 as_basename=false
15327 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15328 as_dirname=dirname
15329 else
15330 as_dirname=false
15333 as_me=`$as_basename -- "$0" ||
15334 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15335 X"$0" : 'X\(//\)$' \| \
15336 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15337 $as_echo X/"$0" |
15338 sed '/^.*\/\([^/][^/]*\)\/*$/{
15339 s//\1/
15342 /^X\/\(\/\/\)$/{
15343 s//\1/
15346 /^X\/\(\/\).*/{
15347 s//\1/
15350 s/.*/./; q'`
15352 # Avoid depending upon Character Ranges.
15353 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15354 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15355 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15356 as_cr_digits='0123456789'
15357 as_cr_alnum=$as_cr_Letters$as_cr_digits
15359 ECHO_C= ECHO_N= ECHO_T=
15360 case `echo -n x` in #(((((
15361 -n*)
15362 case `echo 'xy\c'` in
15363 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15364 xy) ECHO_C='\c';;
15365 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15366 ECHO_T=' ';;
15367 esac;;
15369 ECHO_N='-n';;
15370 esac
15372 rm -f conf$$ conf$$.exe conf$$.file
15373 if test -d conf$$.dir; then
15374 rm -f conf$$.dir/conf$$.file
15375 else
15376 rm -f conf$$.dir
15377 mkdir conf$$.dir 2>/dev/null
15379 if (echo >conf$$.file) 2>/dev/null; then
15380 if ln -s conf$$.file conf$$ 2>/dev/null; then
15381 as_ln_s='ln -s'
15382 # ... but there are two gotchas:
15383 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15384 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15385 # In both cases, we have to default to `cp -p'.
15386 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15387 as_ln_s='cp -p'
15388 elif ln conf$$.file conf$$ 2>/dev/null; then
15389 as_ln_s=ln
15390 else
15391 as_ln_s='cp -p'
15393 else
15394 as_ln_s='cp -p'
15396 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15397 rmdir conf$$.dir 2>/dev/null
15400 # as_fn_mkdir_p
15401 # -------------
15402 # Create "$as_dir" as a directory, including parents if necessary.
15403 as_fn_mkdir_p ()
15406 case $as_dir in #(
15407 -*) as_dir=./$as_dir;;
15408 esac
15409 test -d "$as_dir" || eval $as_mkdir_p || {
15410 as_dirs=
15411 while :; do
15412 case $as_dir in #(
15413 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15414 *) as_qdir=$as_dir;;
15415 esac
15416 as_dirs="'$as_qdir' $as_dirs"
15417 as_dir=`$as_dirname -- "$as_dir" ||
15418 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15419 X"$as_dir" : 'X\(//\)[^/]' \| \
15420 X"$as_dir" : 'X\(//\)$' \| \
15421 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15422 $as_echo X"$as_dir" |
15423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15424 s//\1/
15427 /^X\(\/\/\)[^/].*/{
15428 s//\1/
15431 /^X\(\/\/\)$/{
15432 s//\1/
15435 /^X\(\/\).*/{
15436 s//\1/
15439 s/.*/./; q'`
15440 test -d "$as_dir" && break
15441 done
15442 test -z "$as_dirs" || eval "mkdir $as_dirs"
15443 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15446 } # as_fn_mkdir_p
15447 if mkdir -p . 2>/dev/null; then
15448 as_mkdir_p='mkdir -p "$as_dir"'
15449 else
15450 test -d ./-p && rmdir ./-p
15451 as_mkdir_p=false
15454 if test -x / >/dev/null 2>&1; then
15455 as_test_x='test -x'
15456 else
15457 if ls -dL / >/dev/null 2>&1; then
15458 as_ls_L_option=L
15459 else
15460 as_ls_L_option=
15462 as_test_x='
15463 eval sh -c '\''
15464 if test -d "$1"; then
15465 test -d "$1/.";
15466 else
15467 case $1 in #(
15468 -*)set "./$1";;
15469 esac;
15470 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15471 ???[sx]*):;;*)false;;esac;fi
15472 '\'' sh
15475 as_executable_p=$as_test_x
15477 # Sed expression to map a string onto a valid CPP name.
15478 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15480 # Sed expression to map a string onto a valid variable name.
15481 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15484 exec 6>&1
15485 ## ----------------------------------- ##
15486 ## Main body of $CONFIG_STATUS script. ##
15487 ## ----------------------------------- ##
15488 _ASEOF
15489 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15492 # Save the log message, to keep $0 and so on meaningful, and to
15493 # report actual input values of CONFIG_FILES etc. instead of their
15494 # values after options handling.
15495 ac_log="
15496 This file was extended by emacs $as_me 24.0.50, which was
15497 generated by GNU Autoconf 2.67. Invocation command line was
15499 CONFIG_FILES = $CONFIG_FILES
15500 CONFIG_HEADERS = $CONFIG_HEADERS
15501 CONFIG_LINKS = $CONFIG_LINKS
15502 CONFIG_COMMANDS = $CONFIG_COMMANDS
15503 $ $0 $@
15505 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15508 _ACEOF
15510 case $ac_config_files in *"
15511 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15512 esac
15514 case $ac_config_headers in *"
15515 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15516 esac
15519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15520 # Files that config.status was made for.
15521 config_files="$ac_config_files"
15522 config_headers="$ac_config_headers"
15523 config_commands="$ac_config_commands"
15525 _ACEOF
15527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15528 ac_cs_usage="\
15529 \`$as_me' instantiates files and other configuration actions
15530 from templates according to the current configuration. Unless the files
15531 and actions are specified as TAGs, all are instantiated by default.
15533 Usage: $0 [OPTION]... [TAG]...
15535 -h, --help print this help, then exit
15536 -V, --version print version number and configuration settings, then exit
15537 --config print configuration, then exit
15538 -q, --quiet, --silent
15539 do not print progress messages
15540 -d, --debug don't remove temporary files
15541 --recheck update $as_me by reconfiguring in the same conditions
15542 --file=FILE[:TEMPLATE]
15543 instantiate the configuration file FILE
15544 --header=FILE[:TEMPLATE]
15545 instantiate the configuration header FILE
15547 Configuration files:
15548 $config_files
15550 Configuration headers:
15551 $config_headers
15553 Configuration commands:
15554 $config_commands
15556 Report bugs to the package provider."
15558 _ACEOF
15559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15560 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15561 ac_cs_version="\\
15562 emacs config.status 24.0.50
15563 configured by $0, generated by GNU Autoconf 2.67,
15564 with options \\"\$ac_cs_config\\"
15566 Copyright (C) 2010 Free Software Foundation, Inc.
15567 This config.status script is free software; the Free Software Foundation
15568 gives unlimited permission to copy, distribute and modify it."
15570 ac_pwd='$ac_pwd'
15571 srcdir='$srcdir'
15572 INSTALL='$INSTALL'
15573 test -n "\$AWK" || AWK=awk
15574 _ACEOF
15576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15577 # The default lists apply if the user does not specify any file.
15578 ac_need_defaults=:
15579 while test $# != 0
15581 case $1 in
15582 --*=?*)
15583 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15584 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15585 ac_shift=:
15587 --*=)
15588 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15589 ac_optarg=
15590 ac_shift=:
15593 ac_option=$1
15594 ac_optarg=$2
15595 ac_shift=shift
15597 esac
15599 case $ac_option in
15600 # Handling of the options.
15601 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15602 ac_cs_recheck=: ;;
15603 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15604 $as_echo "$ac_cs_version"; exit ;;
15605 --config | --confi | --conf | --con | --co | --c )
15606 $as_echo "$ac_cs_config"; exit ;;
15607 --debug | --debu | --deb | --de | --d | -d )
15608 debug=: ;;
15609 --file | --fil | --fi | --f )
15610 $ac_shift
15611 case $ac_optarg in
15612 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15613 '') as_fn_error $? "missing file argument" ;;
15614 esac
15615 as_fn_append CONFIG_FILES " '$ac_optarg'"
15616 ac_need_defaults=false;;
15617 --header | --heade | --head | --hea )
15618 $ac_shift
15619 case $ac_optarg in
15620 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15621 esac
15622 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15623 ac_need_defaults=false;;
15624 --he | --h)
15625 # Conflict between --help and --header
15626 as_fn_error $? "ambiguous option: \`$1'
15627 Try \`$0 --help' for more information.";;
15628 --help | --hel | -h )
15629 $as_echo "$ac_cs_usage"; exit ;;
15630 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15631 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15632 ac_cs_silent=: ;;
15634 # This is an error.
15635 -*) as_fn_error $? "unrecognized option: \`$1'
15636 Try \`$0 --help' for more information." ;;
15638 *) as_fn_append ac_config_targets " $1"
15639 ac_need_defaults=false ;;
15641 esac
15642 shift
15643 done
15645 ac_configure_extra_args=
15647 if $ac_cs_silent; then
15648 exec 6>/dev/null
15649 ac_configure_extra_args="$ac_configure_extra_args --silent"
15652 _ACEOF
15653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15654 if \$ac_cs_recheck; then
15655 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15656 shift
15657 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15658 CONFIG_SHELL='$SHELL'
15659 export CONFIG_SHELL
15660 exec "\$@"
15663 _ACEOF
15664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15665 exec 5>>config.log
15667 echo
15668 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15669 ## Running $as_me. ##
15670 _ASBOX
15671 $as_echo "$ac_log"
15672 } >&5
15674 _ACEOF
15675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15677 # INIT-COMMANDS
15679 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
15681 _ACEOF
15683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15685 # Handling of arguments.
15686 for ac_config_target in $ac_config_targets
15688 case $ac_config_target in
15689 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
15690 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15691 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
15692 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
15693 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
15694 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
15695 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
15696 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
15697 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15698 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
15699 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
15700 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
15701 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15703 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15704 esac
15705 done
15708 # If the user did not use the arguments to specify the items to instantiate,
15709 # then the envvar interface is used. Set only those that are not.
15710 # We use the long form for the default assignment because of an extremely
15711 # bizarre bug on SunOS 4.1.3.
15712 if $ac_need_defaults; then
15713 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15714 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15715 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15718 # Have a temporary directory for convenience. Make it in the build tree
15719 # simply because there is no reason against having it here, and in addition,
15720 # creating and moving files from /tmp can sometimes cause problems.
15721 # Hook for its removal unless debugging.
15722 # Note that there is a small window in which the directory will not be cleaned:
15723 # after its creation but before its name has been assigned to `$tmp'.
15724 $debug ||
15726 tmp=
15727 trap 'exit_status=$?
15728 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15730 trap 'as_fn_exit 1' 1 2 13 15
15732 # Create a (secure) tmp directory for tmp files.
15735 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15736 test -n "$tmp" && test -d "$tmp"
15737 } ||
15739 tmp=./conf$$-$RANDOM
15740 (umask 077 && mkdir "$tmp")
15741 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15743 # Set up the scripts for CONFIG_FILES section.
15744 # No need to generate them if there are no CONFIG_FILES.
15745 # This happens for instance with `./config.status config.h'.
15746 if test -n "$CONFIG_FILES"; then
15748 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15749 ac_cs_awk_getline=:
15750 ac_cs_awk_pipe_init=
15751 ac_cs_awk_read_file='
15752 while ((getline aline < (F[key])) > 0)
15753 print(aline)
15754 close(F[key])'
15755 ac_cs_awk_pipe_fini=
15756 else
15757 ac_cs_awk_getline=false
15758 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15759 ac_cs_awk_read_file='
15760 print "|#_!!_#|"
15761 print "cat " F[key] " &&"
15762 '$ac_cs_awk_pipe_init
15763 # The final `:' finishes the AND list.
15764 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15766 ac_cr=`echo X | tr X '\015'`
15767 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15768 # But we know of no other shell where ac_cr would be empty at this
15769 # point, so we can use a bashism as a fallback.
15770 if test "x$ac_cr" = x; then
15771 eval ac_cr=\$\'\\r\'
15773 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15774 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15775 ac_cs_awk_cr='\\r'
15776 else
15777 ac_cs_awk_cr=$ac_cr
15780 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15781 _ACEOF
15783 # Create commands to substitute file output variables.
15785 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15786 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15787 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15788 echo "_ACAWK" &&
15789 echo "_ACEOF"
15790 } >conf$$files.sh &&
15791 . ./conf$$files.sh ||
15792 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15793 rm -f conf$$files.sh
15796 echo "cat >conf$$subs.awk <<_ACEOF" &&
15797 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15798 echo "_ACEOF"
15799 } >conf$$subs.sh ||
15800 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15801 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15802 ac_delim='%!_!# '
15803 for ac_last_try in false false false false false :; do
15804 . ./conf$$subs.sh ||
15805 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15807 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15808 if test $ac_delim_n = $ac_delim_num; then
15809 break
15810 elif $ac_last_try; then
15811 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15812 else
15813 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15815 done
15816 rm -f conf$$subs.sh
15818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15819 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15820 _ACEOF
15821 sed -n '
15823 s/^/S["/; s/!.*/"]=/
15826 s/^[^!]*!//
15827 :repl
15828 t repl
15829 s/'"$ac_delim"'$//
15830 t delim
15833 s/\(.\{148\}\)..*/\1/
15834 t more1
15835 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15838 b repl
15839 :more1
15840 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15843 s/.\{148\}//
15844 t nl
15845 :delim
15847 s/\(.\{148\}\)..*/\1/
15848 t more2
15849 s/["\\]/\\&/g; s/^/"/; s/$/"/
15852 :more2
15853 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15856 s/.\{148\}//
15857 t delim
15858 ' <conf$$subs.awk | sed '
15859 /^[^""]/{
15861 s/\n//
15863 ' >>$CONFIG_STATUS || ac_write_fail=1
15864 rm -f conf$$subs.awk
15865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15866 _ACAWK
15867 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15868 for (key in S) S_is_set[key] = 1
15869 FS = "\a"
15870 \$ac_cs_awk_pipe_init
15873 line = $ 0
15874 nfields = split(line, field, "@")
15875 substed = 0
15876 len = length(field[1])
15877 for (i = 2; i < nfields; i++) {
15878 key = field[i]
15879 keylen = length(key)
15880 if (S_is_set[key]) {
15881 value = S[key]
15882 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15883 len += length(value) + length(field[++i])
15884 substed = 1
15885 } else
15886 len += 1 + keylen
15888 if (nfields == 3 && !substed) {
15889 key = field[2]
15890 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15891 \$ac_cs_awk_read_file
15892 next
15895 print line
15897 \$ac_cs_awk_pipe_fini
15898 _ACAWK
15899 _ACEOF
15900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15901 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15902 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15903 else
15905 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15906 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15907 _ACEOF
15909 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15910 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15911 # trailing colons and then remove the whole line if VPATH becomes empty
15912 # (actually we leave an empty line to preserve line numbers).
15913 if test "x$srcdir" = x.; then
15914 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15916 s///
15917 s/^/:/
15918 s/[ ]*$/:/
15919 s/:\$(srcdir):/:/g
15920 s/:\${srcdir}:/:/g
15921 s/:@srcdir@:/:/g
15922 s/^:*//
15923 s/:*$//
15925 s/\(=[ ]*\).*/\1/
15927 s/\n//
15928 s/^[^=]*=[ ]*$//
15932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15933 fi # test -n "$CONFIG_FILES"
15935 # Set up the scripts for CONFIG_HEADERS section.
15936 # No need to generate them if there are no CONFIG_HEADERS.
15937 # This happens for instance with `./config.status Makefile'.
15938 if test -n "$CONFIG_HEADERS"; then
15939 cat >"$tmp/defines.awk" <<\_ACAWK ||
15940 BEGIN {
15941 _ACEOF
15943 # Transform confdefs.h into an awk script `defines.awk', embedded as
15944 # here-document in config.status, that substitutes the proper values into
15945 # config.h.in to produce config.h.
15947 # Create a delimiter string that does not exist in confdefs.h, to ease
15948 # handling of long lines.
15949 ac_delim='%!_!# '
15950 for ac_last_try in false false :; do
15951 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15952 if test -z "$ac_t"; then
15953 break
15954 elif $ac_last_try; then
15955 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15956 else
15957 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15959 done
15961 # For the awk script, D is an array of macro values keyed by name,
15962 # likewise P contains macro parameters if any. Preserve backslash
15963 # newline sequences.
15965 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15966 sed -n '
15967 s/.\{148\}/&'"$ac_delim"'/g
15968 t rset
15969 :rset
15970 s/^[ ]*#[ ]*define[ ][ ]*/ /
15971 t def
15973 :def
15974 s/\\$//
15975 t bsnl
15976 s/["\\]/\\&/g
15977 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15978 D["\1"]=" \3"/p
15979 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15981 :bsnl
15982 s/["\\]/\\&/g
15983 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15984 D["\1"]=" \3\\\\\\n"\\/p
15985 t cont
15986 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15987 t cont
15989 :cont
15991 s/.\{148\}/&'"$ac_delim"'/g
15992 t clear
15993 :clear
15994 s/\\$//
15995 t bsnlc
15996 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15998 :bsnlc
15999 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16000 b cont
16001 ' <confdefs.h | sed '
16002 s/'"$ac_delim"'/"\\\
16003 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16006 for (key in D) D_is_set[key] = 1
16007 FS = "\a"
16009 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16010 line = \$ 0
16011 split(line, arg, " ")
16012 if (arg[1] == "#") {
16013 defundef = arg[2]
16014 mac1 = arg[3]
16015 } else {
16016 defundef = substr(arg[1], 2)
16017 mac1 = arg[2]
16019 split(mac1, mac2, "(") #)
16020 macro = mac2[1]
16021 prefix = substr(line, 1, index(line, defundef) - 1)
16022 if (D_is_set[macro]) {
16023 # Preserve the white space surrounding the "#".
16024 print prefix "define", macro P[macro] D[macro]
16025 next
16026 } else {
16027 # Replace #undef with comments. This is necessary, for example,
16028 # in the case of _POSIX_SOURCE, which is predefined and required
16029 # on some systems where configure will not decide to define it.
16030 if (defundef == "undef") {
16031 print "/*", prefix defundef, macro, "*/"
16032 next
16036 { print }
16037 _ACAWK
16038 _ACEOF
16039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16040 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16041 fi # test -n "$CONFIG_HEADERS"
16044 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16045 shift
16046 for ac_tag
16048 case $ac_tag in
16049 :[FHLC]) ac_mode=$ac_tag; continue;;
16050 esac
16051 case $ac_mode$ac_tag in
16052 :[FHL]*:*);;
16053 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16054 :[FH]-) ac_tag=-:-;;
16055 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16056 esac
16057 ac_save_IFS=$IFS
16058 IFS=:
16059 set x $ac_tag
16060 IFS=$ac_save_IFS
16061 shift
16062 ac_file=$1
16063 shift
16065 case $ac_mode in
16066 :L) ac_source=$1;;
16067 :[FH])
16068 ac_file_inputs=
16069 for ac_f
16071 case $ac_f in
16072 -) ac_f="$tmp/stdin";;
16073 *) # Look for the file first in the build tree, then in the source tree
16074 # (if the path is not absolute). The absolute path cannot be DOS-style,
16075 # because $ac_f cannot contain `:'.
16076 test -f "$ac_f" ||
16077 case $ac_f in
16078 [\\/$]*) false;;
16079 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16080 esac ||
16081 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16082 esac
16083 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16084 as_fn_append ac_file_inputs " '$ac_f'"
16085 done
16087 # Let's still pretend it is `configure' which instantiates (i.e., don't
16088 # use $as_me), people would be surprised to read:
16089 # /* config.h. Generated by config.status. */
16090 configure_input='Generated from '`
16091 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16092 `' by configure.'
16093 if test x"$ac_file" != x-; then
16094 configure_input="$ac_file. $configure_input"
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16096 $as_echo "$as_me: creating $ac_file" >&6;}
16098 # Neutralize special characters interpreted by sed in replacement strings.
16099 case $configure_input in #(
16100 *\&* | *\|* | *\\* )
16101 ac_sed_conf_input=`$as_echo "$configure_input" |
16102 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16103 *) ac_sed_conf_input=$configure_input;;
16104 esac
16106 case $ac_tag in
16107 *:-:* | *:-) cat >"$tmp/stdin" \
16108 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16109 esac
16111 esac
16113 ac_dir=`$as_dirname -- "$ac_file" ||
16114 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16115 X"$ac_file" : 'X\(//\)[^/]' \| \
16116 X"$ac_file" : 'X\(//\)$' \| \
16117 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16118 $as_echo X"$ac_file" |
16119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16120 s//\1/
16123 /^X\(\/\/\)[^/].*/{
16124 s//\1/
16127 /^X\(\/\/\)$/{
16128 s//\1/
16131 /^X\(\/\).*/{
16132 s//\1/
16135 s/.*/./; q'`
16136 as_dir="$ac_dir"; as_fn_mkdir_p
16137 ac_builddir=.
16139 case "$ac_dir" in
16140 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16142 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16143 # A ".." for each directory in $ac_dir_suffix.
16144 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16145 case $ac_top_builddir_sub in
16146 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16147 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16148 esac ;;
16149 esac
16150 ac_abs_top_builddir=$ac_pwd
16151 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16152 # for backward compatibility:
16153 ac_top_builddir=$ac_top_build_prefix
16155 case $srcdir in
16156 .) # We are building in place.
16157 ac_srcdir=.
16158 ac_top_srcdir=$ac_top_builddir_sub
16159 ac_abs_top_srcdir=$ac_pwd ;;
16160 [\\/]* | ?:[\\/]* ) # Absolute name.
16161 ac_srcdir=$srcdir$ac_dir_suffix;
16162 ac_top_srcdir=$srcdir
16163 ac_abs_top_srcdir=$srcdir ;;
16164 *) # Relative name.
16165 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16166 ac_top_srcdir=$ac_top_build_prefix$srcdir
16167 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16168 esac
16169 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16172 case $ac_mode in
16175 # CONFIG_FILE
16178 case $INSTALL in
16179 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16180 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16181 esac
16182 _ACEOF
16184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16185 # If the template does not know about datarootdir, expand it.
16186 # FIXME: This hack should be removed a few years after 2.60.
16187 ac_datarootdir_hack=; ac_datarootdir_seen=
16188 ac_sed_dataroot='
16189 /datarootdir/ {
16193 /@datadir@/p
16194 /@docdir@/p
16195 /@infodir@/p
16196 /@localedir@/p
16197 /@mandir@/p'
16198 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16199 *datarootdir*) ac_datarootdir_seen=yes;;
16200 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16202 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16203 _ACEOF
16204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16205 ac_datarootdir_hack='
16206 s&@datadir@&$datadir&g
16207 s&@docdir@&$docdir&g
16208 s&@infodir@&$infodir&g
16209 s&@localedir@&$localedir&g
16210 s&@mandir@&$mandir&g
16211 s&\\\${datarootdir}&$datarootdir&g' ;;
16212 esac
16213 _ACEOF
16215 # Neutralize VPATH when `$srcdir' = `.'.
16216 # Shell code in configure.ac might set extrasub.
16217 # FIXME: do we really want to maintain this feature?
16218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16219 ac_sed_extra="$ac_vpsub
16220 $extrasub
16221 _ACEOF
16222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16224 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16225 s|@configure_input@|$ac_sed_conf_input|;t t
16226 s&@top_builddir@&$ac_top_builddir_sub&;t t
16227 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16228 s&@srcdir@&$ac_srcdir&;t t
16229 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16230 s&@top_srcdir@&$ac_top_srcdir&;t t
16231 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16232 s&@builddir@&$ac_builddir&;t t
16233 s&@abs_builddir@&$ac_abs_builddir&;t t
16234 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16235 s&@INSTALL@&$ac_INSTALL&;t t
16236 $ac_datarootdir_hack
16238 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16239 if $ac_cs_awk_getline; then
16240 $AWK -f "$tmp/subs.awk"
16241 else
16242 $AWK -f "$tmp/subs.awk" | $SHELL
16243 fi >$tmp/out \
16244 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16246 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16247 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16248 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16250 which seems to be undefined. Please make sure it is defined" >&5
16251 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16252 which seems to be undefined. Please make sure it is defined" >&2;}
16254 rm -f "$tmp/stdin"
16255 case $ac_file in
16256 -) cat "$tmp/out" && rm -f "$tmp/out";;
16257 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16258 esac \
16259 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16263 # CONFIG_HEADER
16265 if test x"$ac_file" != x-; then
16267 $as_echo "/* $configure_input */" \
16268 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16269 } >"$tmp/config.h" \
16270 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16271 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16273 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16274 else
16275 rm -f "$ac_file"
16276 mv "$tmp/config.h" "$ac_file" \
16277 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16279 else
16280 $as_echo "/* $configure_input */" \
16281 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16282 || as_fn_error $? "could not create -" "$LINENO" 5
16286 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16287 $as_echo "$as_me: executing $ac_file commands" >&6;}
16289 esac
16292 case $ac_file$ac_mode in
16293 "default":C)
16295 ### Make the necessary directories, if they don't exist.
16296 for dir in etc lisp ; do
16297 test -d ${dir} || mkdir ${dir}
16298 done
16300 echo creating src/epaths.h
16301 ${MAKE-make} epaths-force
16303 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
16304 echo creating src/.gdbinit
16305 echo source $srcdir/src/.gdbinit > src/.gdbinit
16310 esac
16311 done # for ac_tag
16314 as_fn_exit 0
16315 _ACEOF
16316 ac_clean_files=$ac_clean_files_save
16318 test $ac_write_fail = 0 ||
16319 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16322 # configure is writing to config.log, and then calls config.status.
16323 # config.status does its own redirection, appending to config.log.
16324 # Unfortunately, on DOS this fails, as config.log is still kept open
16325 # by configure, so config.status won't be able to write to it; its
16326 # output is simply discarded. So we exec the FD to /dev/null,
16327 # effectively closing config.log, so it can be properly (re)opened and
16328 # appended to by config.status. When coming back to configure, we
16329 # need to make the FD available again.
16330 if test "$no_create" != yes; then
16331 ac_cs_success=:
16332 ac_config_status_args=
16333 test "$silent" = yes &&
16334 ac_config_status_args="$ac_config_status_args --quiet"
16335 exec 5>/dev/null
16336 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16337 exec 5>>config.log
16338 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16339 # would make configure fail if this is the last instruction.
16340 $ac_cs_success || as_fn_exit 1
16342 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16344 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}